diff options
Diffstat (limited to 'libraries/ode-0.9/configure')
-rwxr-xr-x | libraries/ode-0.9/configure | 14308 |
1 files changed, 14308 insertions, 0 deletions
diff --git a/libraries/ode-0.9/configure b/libraries/ode-0.9/configure new file mode 100755 index 0000000..3785f0f --- /dev/null +++ b/libraries/ode-0.9/configure | |||
@@ -0,0 +1,14308 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.61 for ODE 0.9.0. | ||
4 | # | ||
5 | # Report bugs to <ode@ode.org>. | ||
6 | # | ||
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
9 | # This configure script is free software; the Free Software Foundation | ||
10 | # gives unlimited permission to copy, distribute and modify it. | ||
11 | ## --------------------- ## | ||
12 | ## M4sh Initialization. ## | ||
13 | ## --------------------- ## | ||
14 | |||
15 | # Be more Bourne compatible | ||
16 | DUALCASE=1; export DUALCASE # for MKS sh | ||
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
18 | emulate sh | ||
19 | NULLCMD=: | ||
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
21 | # is contrary to our usage. Disable this feature. | ||
22 | alias -g '${1+"$@"}'='"$@"' | ||
23 | setopt NO_GLOB_SUBST | ||
24 | else | ||
25 | case `(set -o) 2>/dev/null` in | ||
26 | *posix*) set -o posix ;; | ||
27 | esac | ||
28 | |||
29 | fi | ||
30 | |||
31 | |||
32 | |||
33 | |||
34 | # PATH needs CR | ||
35 | # Avoid depending upon Character Ranges. | ||
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
39 | as_cr_digits='0123456789' | ||
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
41 | |||
42 | # The user is always right. | ||
43 | if test "${PATH_SEPARATOR+set}" != set; then | ||
44 | echo "#! /bin/sh" >conf$$.sh | ||
45 | echo "exit 0" >>conf$$.sh | ||
46 | chmod +x conf$$.sh | ||
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
48 | PATH_SEPARATOR=';' | ||
49 | else | ||
50 | PATH_SEPARATOR=: | ||
51 | fi | ||
52 | rm -f conf$$.sh | ||
53 | fi | ||
54 | |||
55 | # Support unset when possible. | ||
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
57 | as_unset=unset | ||
58 | else | ||
59 | as_unset=false | ||
60 | fi | ||
61 | |||
62 | |||
63 | # IFS | ||
64 | # We need space, tab and new line, in precisely that order. Quoting is | ||
65 | # there to prevent editors from complaining about space-tab. | ||
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
67 | # splitting by setting IFS to empty value.) | ||
68 | as_nl=' | ||
69 | ' | ||
70 | IFS=" "" $as_nl" | ||
71 | |||
72 | # Find who we are. Look in the path if we contain no directory separator. | ||
73 | case $0 in | ||
74 | *[\\/]* ) as_myself=$0 ;; | ||
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
76 | for as_dir in $PATH | ||
77 | do | ||
78 | IFS=$as_save_IFS | ||
79 | test -z "$as_dir" && as_dir=. | ||
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
81 | done | ||
82 | IFS=$as_save_IFS | ||
83 | |||
84 | ;; | ||
85 | esac | ||
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
87 | # in which case we are not to be found in the path. | ||
88 | if test "x$as_myself" = x; then | ||
89 | as_myself=$0 | ||
90 | fi | ||
91 | if test ! -f "$as_myself"; then | ||
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
93 | { (exit 1); exit 1; } | ||
94 | fi | ||
95 | |||
96 | # Work around bugs in pre-3.0 UWIN ksh. | ||
97 | for as_var in ENV MAIL MAILPATH | ||
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
99 | done | ||
100 | PS1='$ ' | ||
101 | PS2='> ' | ||
102 | PS4='+ ' | ||
103 | |||
104 | # NLS nuisances. | ||
105 | for as_var in \ | ||
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
108 | LC_TELEPHONE LC_TIME | ||
109 | do | ||
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
111 | eval $as_var=C; export $as_var | ||
112 | else | ||
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
114 | fi | ||
115 | done | ||
116 | |||
117 | # Required to use basename. | ||
118 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
120 | as_expr=expr | ||
121 | else | ||
122 | as_expr=false | ||
123 | fi | ||
124 | |||
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
126 | as_basename=basename | ||
127 | else | ||
128 | as_basename=false | ||
129 | fi | ||
130 | |||
131 | |||
132 | # Name of the executable. | ||
133 | as_me=`$as_basename -- "$0" || | ||
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
135 | X"$0" : 'X\(//\)$' \| \ | ||
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
137 | echo X/"$0" | | ||
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
139 | s//\1/ | ||
140 | q | ||
141 | } | ||
142 | /^X\/\(\/\/\)$/{ | ||
143 | s//\1/ | ||
144 | q | ||
145 | } | ||
146 | /^X\/\(\/\).*/{ | ||
147 | s//\1/ | ||
148 | q | ||
149 | } | ||
150 | s/.*/./; q'` | ||
151 | |||
152 | # CDPATH. | ||
153 | $as_unset CDPATH | ||
154 | |||
155 | |||
156 | if test "x$CONFIG_SHELL" = x; then | ||
157 | if (eval ":") 2>/dev/null; then | ||
158 | as_have_required=yes | ||
159 | else | ||
160 | as_have_required=no | ||
161 | fi | ||
162 | |||
163 | if test $as_have_required = yes && (eval ": | ||
164 | (as_func_return () { | ||
165 | (exit \$1) | ||
166 | } | ||
167 | as_func_success () { | ||
168 | as_func_return 0 | ||
169 | } | ||
170 | as_func_failure () { | ||
171 | as_func_return 1 | ||
172 | } | ||
173 | as_func_ret_success () { | ||
174 | return 0 | ||
175 | } | ||
176 | as_func_ret_failure () { | ||
177 | return 1 | ||
178 | } | ||
179 | |||
180 | exitcode=0 | ||
181 | if as_func_success; then | ||
182 | : | ||
183 | else | ||
184 | exitcode=1 | ||
185 | echo as_func_success failed. | ||
186 | fi | ||
187 | |||
188 | if as_func_failure; then | ||
189 | exitcode=1 | ||
190 | echo as_func_failure succeeded. | ||
191 | fi | ||
192 | |||
193 | if as_func_ret_success; then | ||
194 | : | ||
195 | else | ||
196 | exitcode=1 | ||
197 | echo as_func_ret_success failed. | ||
198 | fi | ||
199 | |||
200 | if as_func_ret_failure; then | ||
201 | exitcode=1 | ||
202 | echo as_func_ret_failure succeeded. | ||
203 | fi | ||
204 | |||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
206 | : | ||
207 | else | ||
208 | exitcode=1 | ||
209 | echo positional parameters were not saved. | ||
210 | fi | ||
211 | |||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
213 | |||
214 | ( | ||
215 | as_lineno_1=\$LINENO | ||
216 | as_lineno_2=\$LINENO | ||
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
219 | ") 2> /dev/null; then | ||
220 | : | ||
221 | else | ||
222 | as_candidate_shells= | ||
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
225 | do | ||
226 | IFS=$as_save_IFS | ||
227 | test -z "$as_dir" && as_dir=. | ||
228 | case $as_dir in | ||
229 | /*) | ||
230 | for as_base in sh bash ksh sh5; do | ||
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
232 | done;; | ||
233 | esac | ||
234 | done | ||
235 | IFS=$as_save_IFS | ||
236 | |||
237 | |||
238 | for as_shell in $as_candidate_shells $SHELL; do | ||
239 | # Try only shells that exist, to save several forks. | ||
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
243 | emulate sh | ||
244 | NULLCMD=: | ||
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
246 | # is contrary to our usage. Disable this feature. | ||
247 | alias -g '${1+"$@"}'='"$@"' | ||
248 | setopt NO_GLOB_SUBST | ||
249 | else | ||
250 | case `(set -o) 2>/dev/null` in | ||
251 | *posix*) set -o posix ;; | ||
252 | esac | ||
253 | |||
254 | fi | ||
255 | |||
256 | |||
257 | : | ||
258 | _ASEOF | ||
259 | }; then | ||
260 | CONFIG_SHELL=$as_shell | ||
261 | as_have_required=yes | ||
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
264 | emulate sh | ||
265 | NULLCMD=: | ||
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
267 | # is contrary to our usage. Disable this feature. | ||
268 | alias -g '${1+"$@"}'='"$@"' | ||
269 | setopt NO_GLOB_SUBST | ||
270 | else | ||
271 | case `(set -o) 2>/dev/null` in | ||
272 | *posix*) set -o posix ;; | ||
273 | esac | ||
274 | |||
275 | fi | ||
276 | |||
277 | |||
278 | : | ||
279 | (as_func_return () { | ||
280 | (exit $1) | ||
281 | } | ||
282 | as_func_success () { | ||
283 | as_func_return 0 | ||
284 | } | ||
285 | as_func_failure () { | ||
286 | as_func_return 1 | ||
287 | } | ||
288 | as_func_ret_success () { | ||
289 | return 0 | ||
290 | } | ||
291 | as_func_ret_failure () { | ||
292 | return 1 | ||
293 | } | ||
294 | |||
295 | exitcode=0 | ||
296 | if as_func_success; then | ||
297 | : | ||
298 | else | ||
299 | exitcode=1 | ||
300 | echo as_func_success failed. | ||
301 | fi | ||
302 | |||
303 | if as_func_failure; then | ||
304 | exitcode=1 | ||
305 | echo as_func_failure succeeded. | ||
306 | fi | ||
307 | |||
308 | if as_func_ret_success; then | ||
309 | : | ||
310 | else | ||
311 | exitcode=1 | ||
312 | echo as_func_ret_success failed. | ||
313 | fi | ||
314 | |||
315 | if as_func_ret_failure; then | ||
316 | exitcode=1 | ||
317 | echo as_func_ret_failure succeeded. | ||
318 | fi | ||
319 | |||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
321 | : | ||
322 | else | ||
323 | exitcode=1 | ||
324 | echo positional parameters were not saved. | ||
325 | fi | ||
326 | |||
327 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
328 | |||
329 | ( | ||
330 | as_lineno_1=$LINENO | ||
331 | as_lineno_2=$LINENO | ||
332 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
334 | |||
335 | _ASEOF | ||
336 | }; then | ||
337 | break | ||
338 | fi | ||
339 | |||
340 | fi | ||
341 | |||
342 | done | ||
343 | |||
344 | if test "x$CONFIG_SHELL" != x; then | ||
345 | for as_var in BASH_ENV ENV | ||
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
347 | done | ||
348 | export CONFIG_SHELL | ||
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
350 | fi | ||
351 | |||
352 | |||
353 | if test $as_have_required = no; then | ||
354 | echo This script requires a shell more modern than all the | ||
355 | echo shells that I found on your system. Please install a | ||
356 | echo modern shell, or manually run the script under such a | ||
357 | echo shell if you do have one. | ||
358 | { (exit 1); exit 1; } | ||
359 | fi | ||
360 | |||
361 | |||
362 | fi | ||
363 | |||
364 | fi | ||
365 | |||
366 | |||
367 | |||
368 | (eval "as_func_return () { | ||
369 | (exit \$1) | ||
370 | } | ||
371 | as_func_success () { | ||
372 | as_func_return 0 | ||
373 | } | ||
374 | as_func_failure () { | ||
375 | as_func_return 1 | ||
376 | } | ||
377 | as_func_ret_success () { | ||
378 | return 0 | ||
379 | } | ||
380 | as_func_ret_failure () { | ||
381 | return 1 | ||
382 | } | ||
383 | |||
384 | exitcode=0 | ||
385 | if as_func_success; then | ||
386 | : | ||
387 | else | ||
388 | exitcode=1 | ||
389 | echo as_func_success failed. | ||
390 | fi | ||
391 | |||
392 | if as_func_failure; then | ||
393 | exitcode=1 | ||
394 | echo as_func_failure succeeded. | ||
395 | fi | ||
396 | |||
397 | if as_func_ret_success; then | ||
398 | : | ||
399 | else | ||
400 | exitcode=1 | ||
401 | echo as_func_ret_success failed. | ||
402 | fi | ||
403 | |||
404 | if as_func_ret_failure; then | ||
405 | exitcode=1 | ||
406 | echo as_func_ret_failure succeeded. | ||
407 | fi | ||
408 | |||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
410 | : | ||
411 | else | ||
412 | exitcode=1 | ||
413 | echo positional parameters were not saved. | ||
414 | fi | ||
415 | |||
416 | test \$exitcode = 0") || { | ||
417 | echo No shell found that supports shell functions. | ||
418 | echo Please tell autoconf@gnu.org about your system, | ||
419 | echo including any error possibly output before this | ||
420 | echo message | ||
421 | } | ||
422 | |||
423 | |||
424 | |||
425 | as_lineno_1=$LINENO | ||
426 | as_lineno_2=$LINENO | ||
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
429 | |||
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
431 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
432 | # line-number line after each line using $LINENO; the second 'sed' | ||
433 | # does the real work. The second script uses 'N' to pair each | ||
434 | # line-number line with the line containing $LINENO, and appends | ||
435 | # trailing '-' during substitution so that $LINENO is not a special | ||
436 | # case at line end. | ||
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
440 | sed -n ' | ||
441 | p | ||
442 | /[$]LINENO/= | ||
443 | ' <$as_myself | | ||
444 | sed ' | ||
445 | s/[$]LINENO.*/&-/ | ||
446 | t lineno | ||
447 | b | ||
448 | :lineno | ||
449 | N | ||
450 | :loop | ||
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
452 | t loop | ||
453 | s/-\n.*// | ||
454 | ' >$as_me.lineno && | ||
455 | chmod +x "$as_me.lineno" || | ||
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
457 | { (exit 1); exit 1; }; } | ||
458 | |||
459 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
460 | # (the dirname of $[0] is not the place where we might find the | ||
461 | # original and so on. Autoconf is especially sensitive to this). | ||
462 | . "./$as_me.lineno" | ||
463 | # Exit status is that of the last command. | ||
464 | exit | ||
465 | } | ||
466 | |||
467 | |||
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
469 | as_dirname=dirname | ||
470 | else | ||
471 | as_dirname=false | ||
472 | fi | ||
473 | |||
474 | ECHO_C= ECHO_N= ECHO_T= | ||
475 | case `echo -n x` in | ||
476 | -n*) | ||
477 | case `echo 'x\c'` in | ||
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
479 | *) ECHO_C='\c';; | ||
480 | esac;; | ||
481 | *) | ||
482 | ECHO_N='-n';; | ||
483 | esac | ||
484 | |||
485 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
487 | as_expr=expr | ||
488 | else | ||
489 | as_expr=false | ||
490 | fi | ||
491 | |||
492 | rm -f conf$$ conf$$.exe conf$$.file | ||
493 | if test -d conf$$.dir; then | ||
494 | rm -f conf$$.dir/conf$$.file | ||
495 | else | ||
496 | rm -f conf$$.dir | ||
497 | mkdir conf$$.dir | ||
498 | fi | ||
499 | echo >conf$$.file | ||
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
501 | as_ln_s='ln -s' | ||
502 | # ... but there are two gotchas: | ||
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
505 | # In both cases, we have to default to `cp -p'. | ||
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
507 | as_ln_s='cp -p' | ||
508 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
509 | as_ln_s=ln | ||
510 | else | ||
511 | as_ln_s='cp -p' | ||
512 | fi | ||
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
514 | rmdir conf$$.dir 2>/dev/null | ||
515 | |||
516 | if mkdir -p . 2>/dev/null; then | ||
517 | as_mkdir_p=: | ||
518 | else | ||
519 | test -d ./-p && rmdir ./-p | ||
520 | as_mkdir_p=false | ||
521 | fi | ||
522 | |||
523 | if test -x / >/dev/null 2>&1; then | ||
524 | as_test_x='test -x' | ||
525 | else | ||
526 | if ls -dL / >/dev/null 2>&1; then | ||
527 | as_ls_L_option=L | ||
528 | else | ||
529 | as_ls_L_option= | ||
530 | fi | ||
531 | as_test_x=' | ||
532 | eval sh -c '\'' | ||
533 | if test -d "$1"; then | ||
534 | test -d "$1/."; | ||
535 | else | ||
536 | case $1 in | ||
537 | -*)set "./$1";; | ||
538 | esac; | ||
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
540 | ???[sx]*):;;*)false;;esac;fi | ||
541 | '\'' sh | ||
542 | ' | ||
543 | fi | ||
544 | as_executable_p=$as_test_x | ||
545 | |||
546 | # Sed expression to map a string onto a valid CPP name. | ||
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
548 | |||
549 | # Sed expression to map a string onto a valid variable name. | ||
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
551 | |||
552 | |||
553 | |||
554 | exec 7<&0 </dev/null 6>&1 | ||
555 | |||
556 | # Name of the host. | ||
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
558 | # so uname gets run too. | ||
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
560 | |||
561 | # | ||
562 | # Initializations. | ||
563 | # | ||
564 | ac_default_prefix=/usr/local | ||
565 | ac_clean_files= | ||
566 | ac_config_libobj_dir=. | ||
567 | LIBOBJS= | ||
568 | cross_compiling=no | ||
569 | subdirs= | ||
570 | MFLAGS= | ||
571 | MAKEFLAGS= | ||
572 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
573 | |||
574 | # Identity of this package. | ||
575 | PACKAGE_NAME='ODE' | ||
576 | PACKAGE_TARNAME='ode' | ||
577 | PACKAGE_VERSION='0.9.0' | ||
578 | PACKAGE_STRING='ODE 0.9.0' | ||
579 | PACKAGE_BUGREPORT='ode@ode.org' | ||
580 | |||
581 | # Factoring default headers for most tests. | ||
582 | ac_includes_default="\ | ||
583 | #include <stdio.h> | ||
584 | #ifdef HAVE_SYS_TYPES_H | ||
585 | # include <sys/types.h> | ||
586 | #endif | ||
587 | #ifdef HAVE_SYS_STAT_H | ||
588 | # include <sys/stat.h> | ||
589 | #endif | ||
590 | #ifdef STDC_HEADERS | ||
591 | # include <stdlib.h> | ||
592 | # include <stddef.h> | ||
593 | #else | ||
594 | # ifdef HAVE_STDLIB_H | ||
595 | # include <stdlib.h> | ||
596 | # endif | ||
597 | #endif | ||
598 | #ifdef HAVE_STRING_H | ||
599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
600 | # include <memory.h> | ||
601 | # endif | ||
602 | # include <string.h> | ||
603 | #endif | ||
604 | #ifdef HAVE_STRINGS_H | ||
605 | # include <strings.h> | ||
606 | #endif | ||
607 | #ifdef HAVE_INTTYPES_H | ||
608 | # include <inttypes.h> | ||
609 | #endif | ||
610 | #ifdef HAVE_STDINT_H | ||
611 | # include <stdint.h> | ||
612 | #endif | ||
613 | #ifdef HAVE_UNISTD_H | ||
614 | # include <unistd.h> | ||
615 | #endif" | ||
616 | |||
617 | ac_subst_vars='SHELL | ||
618 | PATH_SEPARATOR | ||
619 | PACKAGE_NAME | ||
620 | PACKAGE_TARNAME | ||
621 | PACKAGE_VERSION | ||
622 | PACKAGE_STRING | ||
623 | PACKAGE_BUGREPORT | ||
624 | exec_prefix | ||
625 | prefix | ||
626 | program_transform_name | ||
627 | bindir | ||
628 | sbindir | ||
629 | libexecdir | ||
630 | datarootdir | ||
631 | datadir | ||
632 | sysconfdir | ||
633 | sharedstatedir | ||
634 | localstatedir | ||
635 | includedir | ||
636 | oldincludedir | ||
637 | docdir | ||
638 | infodir | ||
639 | htmldir | ||
640 | dvidir | ||
641 | pdfdir | ||
642 | psdir | ||
643 | libdir | ||
644 | localedir | ||
645 | mandir | ||
646 | DEFS | ||
647 | ECHO_C | ||
648 | ECHO_N | ||
649 | ECHO_T | ||
650 | LIBS | ||
651 | build_alias | ||
652 | host_alias | ||
653 | target_alias | ||
654 | build | ||
655 | build_cpu | ||
656 | build_vendor | ||
657 | build_os | ||
658 | host | ||
659 | host_cpu | ||
660 | host_vendor | ||
661 | host_os | ||
662 | target | ||
663 | target_cpu | ||
664 | target_vendor | ||
665 | target_os | ||
666 | INSTALL_PROGRAM | ||
667 | INSTALL_SCRIPT | ||
668 | INSTALL_DATA | ||
669 | am__isrc | ||
670 | CYGPATH_W | ||
671 | PACKAGE | ||
672 | VERSION | ||
673 | ACLOCAL | ||
674 | AUTOCONF | ||
675 | AUTOMAKE | ||
676 | AUTOHEADER | ||
677 | MAKEINFO | ||
678 | install_sh | ||
679 | STRIP | ||
680 | INSTALL_STRIP_PROGRAM | ||
681 | mkdir_p | ||
682 | AWK | ||
683 | SET_MAKE | ||
684 | am__leading_dot | ||
685 | AMTAR | ||
686 | am__tar | ||
687 | am__untar | ||
688 | CC | ||
689 | CFLAGS | ||
690 | LDFLAGS | ||
691 | CPPFLAGS | ||
692 | ac_ct_CC | ||
693 | EXEEXT | ||
694 | OBJEXT | ||
695 | DEPDIR | ||
696 | am__include | ||
697 | am__quote | ||
698 | AMDEP_TRUE | ||
699 | AMDEP_FALSE | ||
700 | AMDEPBACKSLASH | ||
701 | CCDEPMODE | ||
702 | am__fastdepCC_TRUE | ||
703 | am__fastdepCC_FALSE | ||
704 | CPP | ||
705 | GREP | ||
706 | EGREP | ||
707 | XMKMF | ||
708 | X_CFLAGS | ||
709 | X_PRE_LIBS | ||
710 | X_LIBS | ||
711 | X_EXTRA_LIBS | ||
712 | ODE_CURRENT | ||
713 | ODE_REVISION | ||
714 | ODE_AGE | ||
715 | ODE_RELEASE | ||
716 | ODE_SONAME | ||
717 | CXX | ||
718 | CXXFLAGS | ||
719 | ac_ct_CXX | ||
720 | CXXDEPMODE | ||
721 | am__fastdepCXX_TRUE | ||
722 | am__fastdepCXX_FALSE | ||
723 | WINDRES | ||
724 | ac_ct_WINDRES | ||
725 | RANLIB | ||
726 | USE_SONAME_TRUE | ||
727 | USE_SONAME_FALSE | ||
728 | ENABLE_DEMOS_TRUE | ||
729 | ENABLE_DEMOS_FALSE | ||
730 | ARCHFLAGS | ||
731 | OPCODE_TRUE | ||
732 | OPCODE_FALSE | ||
733 | GIMPACT_TRUE | ||
734 | GIMPACT_FALSE | ||
735 | TRIMESH_TRUE | ||
736 | TRIMESH_FALSE | ||
737 | X86_64_SYSTEM_TRUE | ||
738 | X86_64_SYSTEM_FALSE | ||
739 | WIN32_TRUE | ||
740 | WIN32_FALSE | ||
741 | X11_TRUE | ||
742 | X11_FALSE | ||
743 | OSX_TRUE | ||
744 | OSX_FALSE | ||
745 | DRAWSTUFF | ||
746 | so_ext | ||
747 | SHARED_LDFLAGS | ||
748 | GL_LIBS | ||
749 | TOPDIR | ||
750 | ALLOCA | ||
751 | LIBOBJS | ||
752 | LTLIBOBJS' | ||
753 | ac_subst_files='' | ||
754 | ac_precious_vars='build_alias | ||
755 | host_alias | ||
756 | target_alias | ||
757 | CC | ||
758 | CFLAGS | ||
759 | LDFLAGS | ||
760 | LIBS | ||
761 | CPPFLAGS | ||
762 | CPP | ||
763 | XMKMF | ||
764 | CXX | ||
765 | CXXFLAGS | ||
766 | CCC' | ||
767 | |||
768 | |||
769 | # Initialize some variables set by options. | ||
770 | ac_init_help= | ||
771 | ac_init_version=false | ||
772 | # The variables have the same names as the options, with | ||
773 | # dashes changed to underlines. | ||
774 | cache_file=/dev/null | ||
775 | exec_prefix=NONE | ||
776 | no_create= | ||
777 | no_recursion= | ||
778 | prefix=NONE | ||
779 | program_prefix=NONE | ||
780 | program_suffix=NONE | ||
781 | program_transform_name=s,x,x, | ||
782 | silent= | ||
783 | site= | ||
784 | srcdir= | ||
785 | verbose= | ||
786 | x_includes=NONE | ||
787 | x_libraries=NONE | ||
788 | |||
789 | # Installation directory options. | ||
790 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
791 | # and all the variables that are supposed to be based on exec_prefix | ||
792 | # by default will actually change. | ||
793 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
794 | # (The list follows the same order as the GNU Coding Standards.) | ||
795 | bindir='${exec_prefix}/bin' | ||
796 | sbindir='${exec_prefix}/sbin' | ||
797 | libexecdir='${exec_prefix}/libexec' | ||
798 | datarootdir='${prefix}/share' | ||
799 | datadir='${datarootdir}' | ||
800 | sysconfdir='${prefix}/etc' | ||
801 | sharedstatedir='${prefix}/com' | ||
802 | localstatedir='${prefix}/var' | ||
803 | includedir='${prefix}/include' | ||
804 | oldincludedir='/usr/include' | ||
805 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
806 | infodir='${datarootdir}/info' | ||
807 | htmldir='${docdir}' | ||
808 | dvidir='${docdir}' | ||
809 | pdfdir='${docdir}' | ||
810 | psdir='${docdir}' | ||
811 | libdir='${exec_prefix}/lib' | ||
812 | localedir='${datarootdir}/locale' | ||
813 | mandir='${datarootdir}/man' | ||
814 | |||
815 | ac_prev= | ||
816 | ac_dashdash= | ||
817 | for ac_option | ||
818 | do | ||
819 | # If the previous option needs an argument, assign it. | ||
820 | if test -n "$ac_prev"; then | ||
821 | eval $ac_prev=\$ac_option | ||
822 | ac_prev= | ||
823 | continue | ||
824 | fi | ||
825 | |||
826 | case $ac_option in | ||
827 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
828 | *) ac_optarg=yes ;; | ||
829 | esac | ||
830 | |||
831 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
832 | |||
833 | case $ac_dashdash$ac_option in | ||
834 | --) | ||
835 | ac_dashdash=yes ;; | ||
836 | |||
837 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
838 | ac_prev=bindir ;; | ||
839 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
840 | bindir=$ac_optarg ;; | ||
841 | |||
842 | -build | --build | --buil | --bui | --bu) | ||
843 | ac_prev=build_alias ;; | ||
844 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
845 | build_alias=$ac_optarg ;; | ||
846 | |||
847 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
848 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
849 | ac_prev=cache_file ;; | ||
850 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
851 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
852 | cache_file=$ac_optarg ;; | ||
853 | |||
854 | --config-cache | -C) | ||
855 | cache_file=config.cache ;; | ||
856 | |||
857 | -datadir | --datadir | --datadi | --datad) | ||
858 | ac_prev=datadir ;; | ||
859 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
860 | datadir=$ac_optarg ;; | ||
861 | |||
862 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
863 | | --dataroo | --dataro | --datar) | ||
864 | ac_prev=datarootdir ;; | ||
865 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
866 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
867 | datarootdir=$ac_optarg ;; | ||
868 | |||
869 | -disable-* | --disable-*) | ||
870 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
871 | # Reject names that are not valid shell variable names. | ||
872 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
873 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
874 | { (exit 1); exit 1; }; } | ||
875 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
876 | eval enable_$ac_feature=no ;; | ||
877 | |||
878 | -docdir | --docdir | --docdi | --doc | --do) | ||
879 | ac_prev=docdir ;; | ||
880 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
881 | docdir=$ac_optarg ;; | ||
882 | |||
883 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
884 | ac_prev=dvidir ;; | ||
885 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
886 | dvidir=$ac_optarg ;; | ||
887 | |||
888 | -enable-* | --enable-*) | ||
889 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
890 | # Reject names that are not valid shell variable names. | ||
891 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
892 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
893 | { (exit 1); exit 1; }; } | ||
894 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
895 | eval enable_$ac_feature=\$ac_optarg ;; | ||
896 | |||
897 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
898 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
899 | | --exec | --exe | --ex) | ||
900 | ac_prev=exec_prefix ;; | ||
901 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
902 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
903 | | --exec=* | --exe=* | --ex=*) | ||
904 | exec_prefix=$ac_optarg ;; | ||
905 | |||
906 | -gas | --gas | --ga | --g) | ||
907 | # Obsolete; use --with-gas. | ||
908 | with_gas=yes ;; | ||
909 | |||
910 | -help | --help | --hel | --he | -h) | ||
911 | ac_init_help=long ;; | ||
912 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
913 | ac_init_help=recursive ;; | ||
914 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
915 | ac_init_help=short ;; | ||
916 | |||
917 | -host | --host | --hos | --ho) | ||
918 | ac_prev=host_alias ;; | ||
919 | -host=* | --host=* | --hos=* | --ho=*) | ||
920 | host_alias=$ac_optarg ;; | ||
921 | |||
922 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
923 | ac_prev=htmldir ;; | ||
924 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
925 | | --ht=*) | ||
926 | htmldir=$ac_optarg ;; | ||
927 | |||
928 | -includedir | --includedir | --includedi | --included | --include \ | ||
929 | | --includ | --inclu | --incl | --inc) | ||
930 | ac_prev=includedir ;; | ||
931 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
932 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
933 | includedir=$ac_optarg ;; | ||
934 | |||
935 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
936 | ac_prev=infodir ;; | ||
937 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
938 | infodir=$ac_optarg ;; | ||
939 | |||
940 | -libdir | --libdir | --libdi | --libd) | ||
941 | ac_prev=libdir ;; | ||
942 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
943 | libdir=$ac_optarg ;; | ||
944 | |||
945 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
946 | | --libexe | --libex | --libe) | ||
947 | ac_prev=libexecdir ;; | ||
948 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
949 | | --libexe=* | --libex=* | --libe=*) | ||
950 | libexecdir=$ac_optarg ;; | ||
951 | |||
952 | -localedir | --localedir | --localedi | --localed | --locale) | ||
953 | ac_prev=localedir ;; | ||
954 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
955 | localedir=$ac_optarg ;; | ||
956 | |||
957 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
958 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
959 | ac_prev=localstatedir ;; | ||
960 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
961 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
962 | localstatedir=$ac_optarg ;; | ||
963 | |||
964 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
965 | ac_prev=mandir ;; | ||
966 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
967 | mandir=$ac_optarg ;; | ||
968 | |||
969 | -nfp | --nfp | --nf) | ||
970 | # Obsolete; use --without-fp. | ||
971 | with_fp=no ;; | ||
972 | |||
973 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
974 | | --no-cr | --no-c | -n) | ||
975 | no_create=yes ;; | ||
976 | |||
977 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
978 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
979 | no_recursion=yes ;; | ||
980 | |||
981 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
982 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
983 | | --oldin | --oldi | --old | --ol | --o) | ||
984 | ac_prev=oldincludedir ;; | ||
985 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
986 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
987 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
988 | oldincludedir=$ac_optarg ;; | ||
989 | |||
990 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
991 | ac_prev=prefix ;; | ||
992 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
993 | prefix=$ac_optarg ;; | ||
994 | |||
995 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
996 | | --program-pre | --program-pr | --program-p) | ||
997 | ac_prev=program_prefix ;; | ||
998 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
999 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1000 | program_prefix=$ac_optarg ;; | ||
1001 | |||
1002 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1003 | | --program-suf | --program-su | --program-s) | ||
1004 | ac_prev=program_suffix ;; | ||
1005 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1006 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1007 | program_suffix=$ac_optarg ;; | ||
1008 | |||
1009 | -program-transform-name | --program-transform-name \ | ||
1010 | | --program-transform-nam | --program-transform-na \ | ||
1011 | | --program-transform-n | --program-transform- \ | ||
1012 | | --program-transform | --program-transfor \ | ||
1013 | | --program-transfo | --program-transf \ | ||
1014 | | --program-trans | --program-tran \ | ||
1015 | | --progr-tra | --program-tr | --program-t) | ||
1016 | ac_prev=program_transform_name ;; | ||
1017 | -program-transform-name=* | --program-transform-name=* \ | ||
1018 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1019 | | --program-transform-n=* | --program-transform-=* \ | ||
1020 | | --program-transform=* | --program-transfor=* \ | ||
1021 | | --program-transfo=* | --program-transf=* \ | ||
1022 | | --program-trans=* | --program-tran=* \ | ||
1023 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1024 | program_transform_name=$ac_optarg ;; | ||
1025 | |||
1026 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1027 | ac_prev=pdfdir ;; | ||
1028 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1029 | pdfdir=$ac_optarg ;; | ||
1030 | |||
1031 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1032 | ac_prev=psdir ;; | ||
1033 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1034 | psdir=$ac_optarg ;; | ||
1035 | |||
1036 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1037 | | -silent | --silent | --silen | --sile | --sil) | ||
1038 | silent=yes ;; | ||
1039 | |||
1040 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1041 | ac_prev=sbindir ;; | ||
1042 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1043 | | --sbi=* | --sb=*) | ||
1044 | sbindir=$ac_optarg ;; | ||
1045 | |||
1046 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1047 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1048 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1049 | | --sha | --sh) | ||
1050 | ac_prev=sharedstatedir ;; | ||
1051 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1052 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1053 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1054 | | --sha=* | --sh=*) | ||
1055 | sharedstatedir=$ac_optarg ;; | ||
1056 | |||
1057 | -site | --site | --sit) | ||
1058 | ac_prev=site ;; | ||
1059 | -site=* | --site=* | --sit=*) | ||
1060 | site=$ac_optarg ;; | ||
1061 | |||
1062 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1063 | ac_prev=srcdir ;; | ||
1064 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1065 | srcdir=$ac_optarg ;; | ||
1066 | |||
1067 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1068 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1069 | ac_prev=sysconfdir ;; | ||
1070 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1071 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1072 | sysconfdir=$ac_optarg ;; | ||
1073 | |||
1074 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1075 | ac_prev=target_alias ;; | ||
1076 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1077 | target_alias=$ac_optarg ;; | ||
1078 | |||
1079 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1080 | verbose=yes ;; | ||
1081 | |||
1082 | -version | --version | --versio | --versi | --vers | -V) | ||
1083 | ac_init_version=: ;; | ||
1084 | |||
1085 | -with-* | --with-*) | ||
1086 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1087 | # Reject names that are not valid shell variable names. | ||
1088 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1089 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1090 | { (exit 1); exit 1; }; } | ||
1091 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1092 | eval with_$ac_package=\$ac_optarg ;; | ||
1093 | |||
1094 | -without-* | --without-*) | ||
1095 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1096 | # Reject names that are not valid shell variable names. | ||
1097 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1098 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1099 | { (exit 1); exit 1; }; } | ||
1100 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1101 | eval with_$ac_package=no ;; | ||
1102 | |||
1103 | --x) | ||
1104 | # Obsolete; use --with-x. | ||
1105 | with_x=yes ;; | ||
1106 | |||
1107 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1108 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1109 | ac_prev=x_includes ;; | ||
1110 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1111 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1112 | x_includes=$ac_optarg ;; | ||
1113 | |||
1114 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1115 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1116 | ac_prev=x_libraries ;; | ||
1117 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1118 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1119 | x_libraries=$ac_optarg ;; | ||
1120 | |||
1121 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1122 | Try \`$0 --help' for more information." >&2 | ||
1123 | { (exit 1); exit 1; }; } | ||
1124 | ;; | ||
1125 | |||
1126 | *=*) | ||
1127 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1128 | # Reject names that are not valid shell variable names. | ||
1129 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1130 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1131 | { (exit 1); exit 1; }; } | ||
1132 | eval $ac_envvar=\$ac_optarg | ||
1133 | export $ac_envvar ;; | ||
1134 | |||
1135 | *) | ||
1136 | # FIXME: should be removed in autoconf 3.0. | ||
1137 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1138 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1139 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1140 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1141 | ;; | ||
1142 | |||
1143 | esac | ||
1144 | done | ||
1145 | |||
1146 | if test -n "$ac_prev"; then | ||
1147 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1148 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1149 | { (exit 1); exit 1; }; } | ||
1150 | fi | ||
1151 | |||
1152 | # Be sure to have absolute directory names. | ||
1153 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1154 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1155 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1156 | libdir localedir mandir | ||
1157 | do | ||
1158 | eval ac_val=\$$ac_var | ||
1159 | case $ac_val in | ||
1160 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1161 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1162 | esac | ||
1163 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1164 | { (exit 1); exit 1; }; } | ||
1165 | done | ||
1166 | |||
1167 | # There might be people who depend on the old broken behavior: `$host' | ||
1168 | # used to hold the argument of --host etc. | ||
1169 | # FIXME: To remove some day. | ||
1170 | build=$build_alias | ||
1171 | host=$host_alias | ||
1172 | target=$target_alias | ||
1173 | |||
1174 | # FIXME: To remove some day. | ||
1175 | if test "x$host_alias" != x; then | ||
1176 | if test "x$build_alias" = x; then | ||
1177 | cross_compiling=maybe | ||
1178 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1179 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1180 | elif test "x$build_alias" != "x$host_alias"; then | ||
1181 | cross_compiling=yes | ||
1182 | fi | ||
1183 | fi | ||
1184 | |||
1185 | ac_tool_prefix= | ||
1186 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1187 | |||
1188 | test "$silent" = yes && exec 6>/dev/null | ||
1189 | |||
1190 | |||
1191 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1192 | ac_ls_di=`ls -di .` && | ||
1193 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1194 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1195 | { (exit 1); exit 1; }; } | ||
1196 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1197 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1198 | { (exit 1); exit 1; }; } | ||
1199 | |||
1200 | |||
1201 | # Find the source files, if location was not specified. | ||
1202 | if test -z "$srcdir"; then | ||
1203 | ac_srcdir_defaulted=yes | ||
1204 | # Try the directory containing this script, then the parent directory. | ||
1205 | ac_confdir=`$as_dirname -- "$0" || | ||
1206 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1207 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1208 | X"$0" : 'X\(//\)$' \| \ | ||
1209 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1210 | echo X"$0" | | ||
1211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1212 | s//\1/ | ||
1213 | q | ||
1214 | } | ||
1215 | /^X\(\/\/\)[^/].*/{ | ||
1216 | s//\1/ | ||
1217 | q | ||
1218 | } | ||
1219 | /^X\(\/\/\)$/{ | ||
1220 | s//\1/ | ||
1221 | q | ||
1222 | } | ||
1223 | /^X\(\/\).*/{ | ||
1224 | s//\1/ | ||
1225 | q | ||
1226 | } | ||
1227 | s/.*/./; q'` | ||
1228 | srcdir=$ac_confdir | ||
1229 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1230 | srcdir=.. | ||
1231 | fi | ||
1232 | else | ||
1233 | ac_srcdir_defaulted=no | ||
1234 | fi | ||
1235 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1236 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1237 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1238 | { (exit 1); exit 1; }; } | ||
1239 | fi | ||
1240 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1241 | ac_abs_confdir=`( | ||
1242 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1243 | { (exit 1); exit 1; }; } | ||
1244 | pwd)` | ||
1245 | # When building in place, set srcdir=. | ||
1246 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1247 | srcdir=. | ||
1248 | fi | ||
1249 | # Remove unnecessary trailing slashes from srcdir. | ||
1250 | # Double slashes in file names in object file debugging info | ||
1251 | # mess up M-x gdb in Emacs. | ||
1252 | case $srcdir in | ||
1253 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1254 | esac | ||
1255 | for ac_var in $ac_precious_vars; do | ||
1256 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1257 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1258 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1259 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1260 | done | ||
1261 | |||
1262 | # | ||
1263 | # Report the --help message. | ||
1264 | # | ||
1265 | if test "$ac_init_help" = "long"; then | ||
1266 | # Omit some internal or obsolete options to make the list less imposing. | ||
1267 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1268 | cat <<_ACEOF | ||
1269 | \`configure' configures ODE 0.9.0 to adapt to many kinds of systems. | ||
1270 | |||
1271 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1272 | |||
1273 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1274 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1275 | |||
1276 | Defaults for the options are specified in brackets. | ||
1277 | |||
1278 | Configuration: | ||
1279 | -h, --help display this help and exit | ||
1280 | --help=short display options specific to this package | ||
1281 | --help=recursive display the short help of all the included packages | ||
1282 | -V, --version display version information and exit | ||
1283 | -q, --quiet, --silent do not print \`checking...' messages | ||
1284 | --cache-file=FILE cache test results in FILE [disabled] | ||
1285 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1286 | -n, --no-create do not create output files | ||
1287 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1288 | |||
1289 | Installation directories: | ||
1290 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1291 | [$ac_default_prefix] | ||
1292 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1293 | [PREFIX] | ||
1294 | |||
1295 | By default, \`make install' will install all the files in | ||
1296 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1297 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1298 | for instance \`--prefix=\$HOME'. | ||
1299 | |||
1300 | For better control, use the options below. | ||
1301 | |||
1302 | Fine tuning of the installation directories: | ||
1303 | --bindir=DIR user executables [EPREFIX/bin] | ||
1304 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1305 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1306 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1307 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1308 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1309 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1310 | --includedir=DIR C header files [PREFIX/include] | ||
1311 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1312 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1313 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1314 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1315 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1316 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1317 | --docdir=DIR documentation root [DATAROOTDIR/doc/ode] | ||
1318 | --htmldir=DIR html documentation [DOCDIR] | ||
1319 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1320 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1321 | --psdir=DIR ps documentation [DOCDIR] | ||
1322 | _ACEOF | ||
1323 | |||
1324 | cat <<\_ACEOF | ||
1325 | |||
1326 | Program names: | ||
1327 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1328 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1329 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1330 | |||
1331 | X features: | ||
1332 | --x-includes=DIR X include files are in DIR | ||
1333 | --x-libraries=DIR X library files are in DIR | ||
1334 | |||
1335 | System types: | ||
1336 | --build=BUILD configure for building on BUILD [guessed] | ||
1337 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1338 | --target=TARGET configure for building compilers for TARGET [HOST] | ||
1339 | _ACEOF | ||
1340 | fi | ||
1341 | |||
1342 | if test -n "$ac_init_help"; then | ||
1343 | case $ac_init_help in | ||
1344 | short | recursive ) echo "Configuration of ODE 0.9.0:";; | ||
1345 | esac | ||
1346 | cat <<\_ACEOF | ||
1347 | |||
1348 | Optional Features: | ||
1349 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1350 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1351 | --disable-dependency-tracking speeds up one-time build | ||
1352 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1353 | --enable-soname Configure ODE shared library to set the soname field | ||
1354 | on ELF files | ||
1355 | --enable-demos build tests | ||
1356 | --disable-gyroscopic Configure ODE to work without gyroscopic term (may | ||
1357 | improve stability) | ||
1358 | --enable-double-precision | ||
1359 | Configure ODE to work with double precision, if not | ||
1360 | specified, single precision is used | ||
1361 | --enable-release build a release library with -fomit-frame-pointer | ||
1362 | and -ffast-math | ||
1363 | --enable-debug Add debug symbols to the library with -g | ||
1364 | --enable-gprof enable profiling with gprof | ||
1365 | |||
1366 | Optional Packages: | ||
1367 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1368 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1369 | --with-x use the X Window System | ||
1370 | --with-arch=arch build for $arch, where arch is any of the -march | ||
1371 | flags passed to gcc, without the -march, for example | ||
1372 | --with-arch=pentium3 | ||
1373 | --with-trimesh=opcode|gimpact|none | ||
1374 | use the specified system for trimesh support. | ||
1375 | |||
1376 | Some influential environment variables: | ||
1377 | CC C compiler command | ||
1378 | CFLAGS C compiler flags | ||
1379 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1380 | nonstandard directory <lib dir> | ||
1381 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1382 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1383 | you have headers in a nonstandard directory <include dir> | ||
1384 | CPP C preprocessor | ||
1385 | XMKMF Path to xmkmf, Makefile generator for X Window System | ||
1386 | CXX C++ compiler command | ||
1387 | CXXFLAGS C++ compiler flags | ||
1388 | |||
1389 | Use these variables to override the choices made by `configure' or to help | ||
1390 | it to find libraries and programs with nonstandard names/locations. | ||
1391 | |||
1392 | Report bugs to <ode@ode.org>. | ||
1393 | _ACEOF | ||
1394 | ac_status=$? | ||
1395 | fi | ||
1396 | |||
1397 | if test "$ac_init_help" = "recursive"; then | ||
1398 | # If there are subdirs, report their specific --help. | ||
1399 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1400 | test -d "$ac_dir" || continue | ||
1401 | ac_builddir=. | ||
1402 | |||
1403 | case "$ac_dir" in | ||
1404 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1405 | *) | ||
1406 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1407 | # A ".." for each directory in $ac_dir_suffix. | ||
1408 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1409 | case $ac_top_builddir_sub in | ||
1410 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1411 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1412 | esac ;; | ||
1413 | esac | ||
1414 | ac_abs_top_builddir=$ac_pwd | ||
1415 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1416 | # for backward compatibility: | ||
1417 | ac_top_builddir=$ac_top_build_prefix | ||
1418 | |||
1419 | case $srcdir in | ||
1420 | .) # We are building in place. | ||
1421 | ac_srcdir=. | ||
1422 | ac_top_srcdir=$ac_top_builddir_sub | ||
1423 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1424 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1425 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1426 | ac_top_srcdir=$srcdir | ||
1427 | ac_abs_top_srcdir=$srcdir ;; | ||
1428 | *) # Relative name. | ||
1429 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1430 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1431 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1432 | esac | ||
1433 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1434 | |||
1435 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1436 | # Check for guested configure. | ||
1437 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1438 | echo && | ||
1439 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1440 | elif test -f "$ac_srcdir/configure"; then | ||
1441 | echo && | ||
1442 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1443 | else | ||
1444 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1445 | fi || ac_status=$? | ||
1446 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1447 | done | ||
1448 | fi | ||
1449 | |||
1450 | test -n "$ac_init_help" && exit $ac_status | ||
1451 | if $ac_init_version; then | ||
1452 | cat <<\_ACEOF | ||
1453 | ODE configure 0.9.0 | ||
1454 | generated by GNU Autoconf 2.61 | ||
1455 | |||
1456 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1457 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1458 | This configure script is free software; the Free Software Foundation | ||
1459 | gives unlimited permission to copy, distribute and modify it. | ||
1460 | _ACEOF | ||
1461 | exit | ||
1462 | fi | ||
1463 | cat >config.log <<_ACEOF | ||
1464 | This file contains any messages produced by compilers while | ||
1465 | running configure, to aid debugging if configure makes a mistake. | ||
1466 | |||
1467 | It was created by ODE $as_me 0.9.0, which was | ||
1468 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1469 | |||
1470 | $ $0 $@ | ||
1471 | |||
1472 | _ACEOF | ||
1473 | exec 5>>config.log | ||
1474 | { | ||
1475 | cat <<_ASUNAME | ||
1476 | ## --------- ## | ||
1477 | ## Platform. ## | ||
1478 | ## --------- ## | ||
1479 | |||
1480 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1481 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1482 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1483 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1484 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1485 | |||
1486 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1487 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1488 | |||
1489 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1490 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1491 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1492 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1493 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1494 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1495 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1496 | |||
1497 | _ASUNAME | ||
1498 | |||
1499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1500 | for as_dir in $PATH | ||
1501 | do | ||
1502 | IFS=$as_save_IFS | ||
1503 | test -z "$as_dir" && as_dir=. | ||
1504 | echo "PATH: $as_dir" | ||
1505 | done | ||
1506 | IFS=$as_save_IFS | ||
1507 | |||
1508 | } >&5 | ||
1509 | |||
1510 | cat >&5 <<_ACEOF | ||
1511 | |||
1512 | |||
1513 | ## ----------- ## | ||
1514 | ## Core tests. ## | ||
1515 | ## ----------- ## | ||
1516 | |||
1517 | _ACEOF | ||
1518 | |||
1519 | |||
1520 | # Keep a trace of the command line. | ||
1521 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1522 | # Strip out --silent because we don't want to record it for future runs. | ||
1523 | # Also quote any args containing shell meta-characters. | ||
1524 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1525 | ac_configure_args= | ||
1526 | ac_configure_args0= | ||
1527 | ac_configure_args1= | ||
1528 | ac_must_keep_next=false | ||
1529 | for ac_pass in 1 2 | ||
1530 | do | ||
1531 | for ac_arg | ||
1532 | do | ||
1533 | case $ac_arg in | ||
1534 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1535 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1536 | | -silent | --silent | --silen | --sile | --sil) | ||
1537 | continue ;; | ||
1538 | *\'*) | ||
1539 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1540 | esac | ||
1541 | case $ac_pass in | ||
1542 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1543 | 2) | ||
1544 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1545 | if test $ac_must_keep_next = true; then | ||
1546 | ac_must_keep_next=false # Got value, back to normal. | ||
1547 | else | ||
1548 | case $ac_arg in | ||
1549 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1550 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1551 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1552 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1553 | case "$ac_configure_args0 " in | ||
1554 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1555 | esac | ||
1556 | ;; | ||
1557 | -* ) ac_must_keep_next=true ;; | ||
1558 | esac | ||
1559 | fi | ||
1560 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1561 | ;; | ||
1562 | esac | ||
1563 | done | ||
1564 | done | ||
1565 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1566 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1567 | |||
1568 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1569 | # config.log. We remove comments because anyway the quotes in there | ||
1570 | # would cause problems or look ugly. | ||
1571 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1572 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1573 | trap 'exit_status=$? | ||
1574 | # Save into config.log some information that might help in debugging. | ||
1575 | { | ||
1576 | echo | ||
1577 | |||
1578 | cat <<\_ASBOX | ||
1579 | ## ---------------- ## | ||
1580 | ## Cache variables. ## | ||
1581 | ## ---------------- ## | ||
1582 | _ASBOX | ||
1583 | echo | ||
1584 | # The following way of writing the cache mishandles newlines in values, | ||
1585 | ( | ||
1586 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1587 | eval ac_val=\$$ac_var | ||
1588 | case $ac_val in #( | ||
1589 | *${as_nl}*) | ||
1590 | case $ac_var in #( | ||
1591 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1592 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1593 | esac | ||
1594 | case $ac_var in #( | ||
1595 | _ | IFS | as_nl) ;; #( | ||
1596 | *) $as_unset $ac_var ;; | ||
1597 | esac ;; | ||
1598 | esac | ||
1599 | done | ||
1600 | (set) 2>&1 | | ||
1601 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1602 | *${as_nl}ac_space=\ *) | ||
1603 | sed -n \ | ||
1604 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1605 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1606 | ;; #( | ||
1607 | *) | ||
1608 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1609 | ;; | ||
1610 | esac | | ||
1611 | sort | ||
1612 | ) | ||
1613 | echo | ||
1614 | |||
1615 | cat <<\_ASBOX | ||
1616 | ## ----------------- ## | ||
1617 | ## Output variables. ## | ||
1618 | ## ----------------- ## | ||
1619 | _ASBOX | ||
1620 | echo | ||
1621 | for ac_var in $ac_subst_vars | ||
1622 | do | ||
1623 | eval ac_val=\$$ac_var | ||
1624 | case $ac_val in | ||
1625 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1626 | esac | ||
1627 | echo "$ac_var='\''$ac_val'\''" | ||
1628 | done | sort | ||
1629 | echo | ||
1630 | |||
1631 | if test -n "$ac_subst_files"; then | ||
1632 | cat <<\_ASBOX | ||
1633 | ## ------------------- ## | ||
1634 | ## File substitutions. ## | ||
1635 | ## ------------------- ## | ||
1636 | _ASBOX | ||
1637 | echo | ||
1638 | for ac_var in $ac_subst_files | ||
1639 | do | ||
1640 | eval ac_val=\$$ac_var | ||
1641 | case $ac_val in | ||
1642 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1643 | esac | ||
1644 | echo "$ac_var='\''$ac_val'\''" | ||
1645 | done | sort | ||
1646 | echo | ||
1647 | fi | ||
1648 | |||
1649 | if test -s confdefs.h; then | ||
1650 | cat <<\_ASBOX | ||
1651 | ## ----------- ## | ||
1652 | ## confdefs.h. ## | ||
1653 | ## ----------- ## | ||
1654 | _ASBOX | ||
1655 | echo | ||
1656 | cat confdefs.h | ||
1657 | echo | ||
1658 | fi | ||
1659 | test "$ac_signal" != 0 && | ||
1660 | echo "$as_me: caught signal $ac_signal" | ||
1661 | echo "$as_me: exit $exit_status" | ||
1662 | } >&5 | ||
1663 | rm -f core *.core core.conftest.* && | ||
1664 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1665 | exit $exit_status | ||
1666 | ' 0 | ||
1667 | for ac_signal in 1 2 13 15; do | ||
1668 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1669 | done | ||
1670 | ac_signal=0 | ||
1671 | |||
1672 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1673 | rm -f -r conftest* confdefs.h | ||
1674 | |||
1675 | # Predefined preprocessor variables. | ||
1676 | |||
1677 | cat >>confdefs.h <<_ACEOF | ||
1678 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1679 | _ACEOF | ||
1680 | |||
1681 | |||
1682 | cat >>confdefs.h <<_ACEOF | ||
1683 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1684 | _ACEOF | ||
1685 | |||
1686 | |||
1687 | cat >>confdefs.h <<_ACEOF | ||
1688 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1689 | _ACEOF | ||
1690 | |||
1691 | |||
1692 | cat >>confdefs.h <<_ACEOF | ||
1693 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1694 | _ACEOF | ||
1695 | |||
1696 | |||
1697 | cat >>confdefs.h <<_ACEOF | ||
1698 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1699 | _ACEOF | ||
1700 | |||
1701 | |||
1702 | # Let the site file select an alternate cache file if it wants to. | ||
1703 | # Prefer explicitly selected file to automatically selected ones. | ||
1704 | if test -n "$CONFIG_SITE"; then | ||
1705 | set x "$CONFIG_SITE" | ||
1706 | elif test "x$prefix" != xNONE; then | ||
1707 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1708 | else | ||
1709 | set x "$ac_default_prefix/share/config.site" \ | ||
1710 | "$ac_default_prefix/etc/config.site" | ||
1711 | fi | ||
1712 | shift | ||
1713 | for ac_site_file | ||
1714 | do | ||
1715 | if test -r "$ac_site_file"; then | ||
1716 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1717 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1718 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1719 | . "$ac_site_file" | ||
1720 | fi | ||
1721 | done | ||
1722 | |||
1723 | if test -r "$cache_file"; then | ||
1724 | # Some versions of bash will fail to source /dev/null (special | ||
1725 | # files actually), so we avoid doing that. | ||
1726 | if test -f "$cache_file"; then | ||
1727 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1728 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1729 | case $cache_file in | ||
1730 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1731 | *) . "./$cache_file";; | ||
1732 | esac | ||
1733 | fi | ||
1734 | else | ||
1735 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1736 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1737 | >$cache_file | ||
1738 | fi | ||
1739 | |||
1740 | # Check that the precious variables saved in the cache have kept the same | ||
1741 | # value. | ||
1742 | ac_cache_corrupted=false | ||
1743 | for ac_var in $ac_precious_vars; do | ||
1744 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1745 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1746 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1747 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1748 | case $ac_old_set,$ac_new_set in | ||
1749 | set,) | ||
1750 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1751 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1752 | ac_cache_corrupted=: ;; | ||
1753 | ,set) | ||
1754 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1755 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1756 | ac_cache_corrupted=: ;; | ||
1757 | ,);; | ||
1758 | *) | ||
1759 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1760 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1761 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1762 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1763 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1764 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1765 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1766 | ac_cache_corrupted=: | ||
1767 | fi;; | ||
1768 | esac | ||
1769 | # Pass precious variables to config.status. | ||
1770 | if test "$ac_new_set" = set; then | ||
1771 | case $ac_new_val in | ||
1772 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1773 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1774 | esac | ||
1775 | case " $ac_configure_args " in | ||
1776 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1777 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1778 | esac | ||
1779 | fi | ||
1780 | done | ||
1781 | if $ac_cache_corrupted; then | ||
1782 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1783 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1784 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1785 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1786 | { (exit 1); exit 1; }; } | ||
1787 | fi | ||
1788 | |||
1789 | |||
1790 | |||
1791 | |||
1792 | |||
1793 | |||
1794 | |||
1795 | |||
1796 | |||
1797 | |||
1798 | |||
1799 | |||
1800 | |||
1801 | |||
1802 | |||
1803 | |||
1804 | |||
1805 | |||
1806 | |||
1807 | |||
1808 | |||
1809 | |||
1810 | |||
1811 | |||
1812 | |||
1813 | ac_ext=c | ||
1814 | ac_cpp='$CPP $CPPFLAGS' | ||
1815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1818 | |||
1819 | |||
1820 | |||
1821 | ODE_CURRENT=0 | ||
1822 | ODE_REVISION=9 | ||
1823 | ODE_AGE=0 | ||
1824 | ODE_RELEASE=$ODE_CURRENT.$ODE_REVISION.$ODE_AGE | ||
1825 | ac_aux_dir= | ||
1826 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
1827 | if test -f "$ac_dir/install-sh"; then | ||
1828 | ac_aux_dir=$ac_dir | ||
1829 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1830 | break | ||
1831 | elif test -f "$ac_dir/install.sh"; then | ||
1832 | ac_aux_dir=$ac_dir | ||
1833 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1834 | break | ||
1835 | elif test -f "$ac_dir/shtool"; then | ||
1836 | ac_aux_dir=$ac_dir | ||
1837 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1838 | break | ||
1839 | fi | ||
1840 | done | ||
1841 | if test -z "$ac_aux_dir"; then | ||
1842 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
1843 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
1844 | { (exit 1); exit 1; }; } | ||
1845 | fi | ||
1846 | |||
1847 | # These three variables are undocumented and unsupported, | ||
1848 | # and are intended to be withdrawn in a future Autoconf release. | ||
1849 | # They can cause serious problems if a builder's source tree is in a directory | ||
1850 | # whose full name contains unusual characters. | ||
1851 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
1852 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
1853 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
1854 | |||
1855 | |||
1856 | # Make sure we can run config.sub. | ||
1857 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
1858 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
1859 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
1860 | { (exit 1); exit 1; }; } | ||
1861 | |||
1862 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
1863 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
1864 | if test "${ac_cv_build+set}" = set; then | ||
1865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1866 | else | ||
1867 | ac_build_alias=$build_alias | ||
1868 | test "x$ac_build_alias" = x && | ||
1869 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
1870 | test "x$ac_build_alias" = x && | ||
1871 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
1872 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
1873 | { (exit 1); exit 1; }; } | ||
1874 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
1875 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
1876 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
1877 | { (exit 1); exit 1; }; } | ||
1878 | |||
1879 | fi | ||
1880 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
1881 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
1882 | case $ac_cv_build in | ||
1883 | *-*-*) ;; | ||
1884 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
1885 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
1886 | { (exit 1); exit 1; }; };; | ||
1887 | esac | ||
1888 | build=$ac_cv_build | ||
1889 | ac_save_IFS=$IFS; IFS='-' | ||
1890 | set x $ac_cv_build | ||
1891 | shift | ||
1892 | build_cpu=$1 | ||
1893 | build_vendor=$2 | ||
1894 | shift; shift | ||
1895 | # Remember, the first character of IFS is used to create $*, | ||
1896 | # except with old shells: | ||
1897 | build_os=$* | ||
1898 | IFS=$ac_save_IFS | ||
1899 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
1900 | |||
1901 | |||
1902 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
1903 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
1904 | if test "${ac_cv_host+set}" = set; then | ||
1905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1906 | else | ||
1907 | if test "x$host_alias" = x; then | ||
1908 | ac_cv_host=$ac_cv_build | ||
1909 | else | ||
1910 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
1911 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
1912 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
1913 | { (exit 1); exit 1; }; } | ||
1914 | fi | ||
1915 | |||
1916 | fi | ||
1917 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
1918 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
1919 | case $ac_cv_host in | ||
1920 | *-*-*) ;; | ||
1921 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
1922 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
1923 | { (exit 1); exit 1; }; };; | ||
1924 | esac | ||
1925 | host=$ac_cv_host | ||
1926 | ac_save_IFS=$IFS; IFS='-' | ||
1927 | set x $ac_cv_host | ||
1928 | shift | ||
1929 | host_cpu=$1 | ||
1930 | host_vendor=$2 | ||
1931 | shift; shift | ||
1932 | # Remember, the first character of IFS is used to create $*, | ||
1933 | # except with old shells: | ||
1934 | host_os=$* | ||
1935 | IFS=$ac_save_IFS | ||
1936 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
1937 | |||
1938 | |||
1939 | { echo "$as_me:$LINENO: checking target system type" >&5 | ||
1940 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | ||
1941 | if test "${ac_cv_target+set}" = set; then | ||
1942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1943 | else | ||
1944 | if test "x$target_alias" = x; then | ||
1945 | ac_cv_target=$ac_cv_host | ||
1946 | else | ||
1947 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | ||
1948 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | ||
1949 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | ||
1950 | { (exit 1); exit 1; }; } | ||
1951 | fi | ||
1952 | |||
1953 | fi | ||
1954 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | ||
1955 | echo "${ECHO_T}$ac_cv_target" >&6; } | ||
1956 | case $ac_cv_target in | ||
1957 | *-*-*) ;; | ||
1958 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | ||
1959 | echo "$as_me: error: invalid value of canonical target" >&2;} | ||
1960 | { (exit 1); exit 1; }; };; | ||
1961 | esac | ||
1962 | target=$ac_cv_target | ||
1963 | ac_save_IFS=$IFS; IFS='-' | ||
1964 | set x $ac_cv_target | ||
1965 | shift | ||
1966 | target_cpu=$1 | ||
1967 | target_vendor=$2 | ||
1968 | shift; shift | ||
1969 | # Remember, the first character of IFS is used to create $*, | ||
1970 | # except with old shells: | ||
1971 | target_os=$* | ||
1972 | IFS=$ac_save_IFS | ||
1973 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | ||
1974 | |||
1975 | |||
1976 | # The aliases save the names the user supplied, while $host etc. | ||
1977 | # will get canonicalized. | ||
1978 | test -n "$target_alias" && | ||
1979 | test "$program_prefix$program_suffix$program_transform_name" = \ | ||
1980 | NONENONEs,x,x, && | ||
1981 | program_prefix=${target_alias}- | ||
1982 | |||
1983 | am__api_version='1.10' | ||
1984 | |||
1985 | # Find a good install program. We prefer a C program (faster), | ||
1986 | # so one script is as good as another. But avoid the broken or | ||
1987 | # incompatible versions: | ||
1988 | # SysV /etc/install, /usr/sbin/install | ||
1989 | # SunOS /usr/etc/install | ||
1990 | # IRIX /sbin/install | ||
1991 | # AIX /bin/install | ||
1992 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
1993 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
1994 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
1995 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
1996 | # OS/2's system install, which has a completely different semantic | ||
1997 | # ./install, which can be erroneously created by make from ./install.sh. | ||
1998 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
1999 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
2000 | if test -z "$INSTALL"; then | ||
2001 | if test "${ac_cv_path_install+set}" = set; then | ||
2002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2003 | else | ||
2004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2005 | for as_dir in $PATH | ||
2006 | do | ||
2007 | IFS=$as_save_IFS | ||
2008 | test -z "$as_dir" && as_dir=. | ||
2009 | # Account for people who put trailing slashes in PATH elements. | ||
2010 | case $as_dir/ in | ||
2011 | ./ | .// | /cC/* | \ | ||
2012 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2013 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
2014 | /usr/ucb/* ) ;; | ||
2015 | *) | ||
2016 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2017 | # Don't use installbsd from OSF since it installs stuff as root | ||
2018 | # by default. | ||
2019 | for ac_prog in ginstall scoinst install; do | ||
2020 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2021 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
2022 | if test $ac_prog = install && | ||
2023 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2024 | # AIX install. It has an incompatible calling convention. | ||
2025 | : | ||
2026 | elif test $ac_prog = install && | ||
2027 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2028 | # program-specific install script used by HP pwplus--don't use. | ||
2029 | : | ||
2030 | else | ||
2031 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2032 | break 3 | ||
2033 | fi | ||
2034 | fi | ||
2035 | done | ||
2036 | done | ||
2037 | ;; | ||
2038 | esac | ||
2039 | done | ||
2040 | IFS=$as_save_IFS | ||
2041 | |||
2042 | |||
2043 | fi | ||
2044 | if test "${ac_cv_path_install+set}" = set; then | ||
2045 | INSTALL=$ac_cv_path_install | ||
2046 | else | ||
2047 | # As a last resort, use the slow shell script. Don't cache a | ||
2048 | # value for INSTALL within a source directory, because that will | ||
2049 | # break other packages using the cache if that directory is | ||
2050 | # removed, or if the value is a relative name. | ||
2051 | INSTALL=$ac_install_sh | ||
2052 | fi | ||
2053 | fi | ||
2054 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
2055 | echo "${ECHO_T}$INSTALL" >&6; } | ||
2056 | |||
2057 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2058 | # It thinks the first close brace ends the variable substitution. | ||
2059 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2060 | |||
2061 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2062 | |||
2063 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2064 | |||
2065 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | ||
2066 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | ||
2067 | # Just in case | ||
2068 | sleep 1 | ||
2069 | echo timestamp > conftest.file | ||
2070 | # Do `set' in a subshell so we don't clobber the current shell's | ||
2071 | # arguments. Must try -L first in case configure is actually a | ||
2072 | # symlink; some systems play weird games with the mod time of symlinks | ||
2073 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
2074 | # directory). | ||
2075 | if ( | ||
2076 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
2077 | if test "$*" = "X"; then | ||
2078 | # -L didn't work. | ||
2079 | set X `ls -t $srcdir/configure conftest.file` | ||
2080 | fi | ||
2081 | rm -f conftest.file | ||
2082 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
2083 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
2084 | |||
2085 | # If neither matched, then we have a broken ls. This can happen | ||
2086 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
2087 | # broken ls alias from the environment. This has actually | ||
2088 | # happened. Such a system could not be considered "sane". | ||
2089 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | ||
2090 | alias in your environment" >&5 | ||
2091 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | ||
2092 | alias in your environment" >&2;} | ||
2093 | { (exit 1); exit 1; }; } | ||
2094 | fi | ||
2095 | |||
2096 | test "$2" = conftest.file | ||
2097 | ) | ||
2098 | then | ||
2099 | # Ok. | ||
2100 | : | ||
2101 | else | ||
2102 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | ||
2103 | Check your system clock" >&5 | ||
2104 | echo "$as_me: error: newly created file is older than distributed files! | ||
2105 | Check your system clock" >&2;} | ||
2106 | { (exit 1); exit 1; }; } | ||
2107 | fi | ||
2108 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2109 | echo "${ECHO_T}yes" >&6; } | ||
2110 | test "$program_prefix" != NONE && | ||
2111 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
2112 | # Use a double $ so make ignores it. | ||
2113 | test "$program_suffix" != NONE && | ||
2114 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
2115 | # Double any \ or $. echo might interpret backslashes. | ||
2116 | # By default was `s,x,x', remove it if useless. | ||
2117 | cat <<\_ACEOF >conftest.sed | ||
2118 | s/[\\$]/&&/g;s/;s,x,x,$// | ||
2119 | _ACEOF | ||
2120 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | ||
2121 | rm -f conftest.sed | ||
2122 | |||
2123 | # expand $ac_aux_dir to an absolute path | ||
2124 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
2125 | |||
2126 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
2127 | # Use eval to expand $SHELL | ||
2128 | if eval "$MISSING --run true"; then | ||
2129 | am_missing_run="$MISSING --run " | ||
2130 | else | ||
2131 | am_missing_run= | ||
2132 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | ||
2133 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
2134 | fi | ||
2135 | |||
2136 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | ||
2137 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | ||
2138 | if test -z "$MKDIR_P"; then | ||
2139 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
2140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2141 | else | ||
2142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2143 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
2144 | do | ||
2145 | IFS=$as_save_IFS | ||
2146 | test -z "$as_dir" && as_dir=. | ||
2147 | for ac_prog in mkdir gmkdir; do | ||
2148 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2149 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
2150 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
2151 | 'mkdir (GNU coreutils) '* | \ | ||
2152 | 'mkdir (coreutils) '* | \ | ||
2153 | 'mkdir (fileutils) '4.1*) | ||
2154 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
2155 | break 3;; | ||
2156 | esac | ||
2157 | done | ||
2158 | done | ||
2159 | done | ||
2160 | IFS=$as_save_IFS | ||
2161 | |||
2162 | fi | ||
2163 | |||
2164 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
2165 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
2166 | else | ||
2167 | # As a last resort, use the slow shell script. Don't cache a | ||
2168 | # value for MKDIR_P within a source directory, because that will | ||
2169 | # break other packages using the cache if that directory is | ||
2170 | # removed, or if the value is a relative name. | ||
2171 | test -d ./--version && rmdir ./--version | ||
2172 | MKDIR_P="$ac_install_sh -d" | ||
2173 | fi | ||
2174 | fi | ||
2175 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | ||
2176 | echo "${ECHO_T}$MKDIR_P" >&6; } | ||
2177 | |||
2178 | mkdir_p="$MKDIR_P" | ||
2179 | case $mkdir_p in | ||
2180 | [\\/$]* | ?:[\\/]*) ;; | ||
2181 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
2182 | esac | ||
2183 | |||
2184 | for ac_prog in gawk mawk nawk awk | ||
2185 | do | ||
2186 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2187 | set dummy $ac_prog; ac_word=$2 | ||
2188 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2190 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
2191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2192 | else | ||
2193 | if test -n "$AWK"; then | ||
2194 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2195 | else | ||
2196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2197 | for as_dir in $PATH | ||
2198 | do | ||
2199 | IFS=$as_save_IFS | ||
2200 | test -z "$as_dir" && as_dir=. | ||
2201 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2203 | ac_cv_prog_AWK="$ac_prog" | ||
2204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2205 | break 2 | ||
2206 | fi | ||
2207 | done | ||
2208 | done | ||
2209 | IFS=$as_save_IFS | ||
2210 | |||
2211 | fi | ||
2212 | fi | ||
2213 | AWK=$ac_cv_prog_AWK | ||
2214 | if test -n "$AWK"; then | ||
2215 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
2216 | echo "${ECHO_T}$AWK" >&6; } | ||
2217 | else | ||
2218 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2219 | echo "${ECHO_T}no" >&6; } | ||
2220 | fi | ||
2221 | |||
2222 | |||
2223 | test -n "$AWK" && break | ||
2224 | done | ||
2225 | |||
2226 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
2227 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | ||
2228 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
2229 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | ||
2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2231 | else | ||
2232 | cat >conftest.make <<\_ACEOF | ||
2233 | SHELL = /bin/sh | ||
2234 | all: | ||
2235 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2236 | _ACEOF | ||
2237 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
2238 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2239 | *@@@%%%=?*=@@@%%%*) | ||
2240 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2241 | *) | ||
2242 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2243 | esac | ||
2244 | rm -f conftest.make | ||
2245 | fi | ||
2246 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2247 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2248 | echo "${ECHO_T}yes" >&6; } | ||
2249 | SET_MAKE= | ||
2250 | else | ||
2251 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2252 | echo "${ECHO_T}no" >&6; } | ||
2253 | SET_MAKE="MAKE=${MAKE-make}" | ||
2254 | fi | ||
2255 | |||
2256 | rm -rf .tst 2>/dev/null | ||
2257 | mkdir .tst 2>/dev/null | ||
2258 | if test -d .tst; then | ||
2259 | am__leading_dot=. | ||
2260 | else | ||
2261 | am__leading_dot=_ | ||
2262 | fi | ||
2263 | rmdir .tst 2>/dev/null | ||
2264 | |||
2265 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
2266 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
2267 | # is not polluted with repeated "-I." | ||
2268 | am__isrc=' -I$(srcdir)' | ||
2269 | # test to see if srcdir already configured | ||
2270 | if test -f $srcdir/config.status; then | ||
2271 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | ||
2272 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | ||
2273 | { (exit 1); exit 1; }; } | ||
2274 | fi | ||
2275 | fi | ||
2276 | |||
2277 | # test whether we have cygpath | ||
2278 | if test -z "$CYGPATH_W"; then | ||
2279 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2280 | CYGPATH_W='cygpath -w' | ||
2281 | else | ||
2282 | CYGPATH_W=echo | ||
2283 | fi | ||
2284 | fi | ||
2285 | |||
2286 | |||
2287 | # Define the identity of the package. | ||
2288 | PACKAGE=ODE | ||
2289 | VERSION=$ODE_RELEASE | ||
2290 | |||
2291 | |||
2292 | cat >>confdefs.h <<_ACEOF | ||
2293 | #define PACKAGE "$PACKAGE" | ||
2294 | _ACEOF | ||
2295 | |||
2296 | |||
2297 | cat >>confdefs.h <<_ACEOF | ||
2298 | #define VERSION "$VERSION" | ||
2299 | _ACEOF | ||
2300 | |||
2301 | # Some tools Automake needs. | ||
2302 | |||
2303 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2304 | |||
2305 | |||
2306 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2307 | |||
2308 | |||
2309 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2310 | |||
2311 | |||
2312 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2313 | |||
2314 | |||
2315 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2316 | |||
2317 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | ||
2318 | |||
2319 | # Installed binaries are usually stripped using `strip' when the user | ||
2320 | # run `make install-strip'. However `strip' might not be the right | ||
2321 | # tool to use in cross-compilation environments, therefore Automake | ||
2322 | # will honor the `STRIP' environment variable to overrule this program. | ||
2323 | if test "$cross_compiling" != no; then | ||
2324 | if test -n "$ac_tool_prefix"; then | ||
2325 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2326 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2327 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2329 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
2330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2331 | else | ||
2332 | if test -n "$STRIP"; then | ||
2333 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2334 | else | ||
2335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2336 | for as_dir in $PATH | ||
2337 | do | ||
2338 | IFS=$as_save_IFS | ||
2339 | test -z "$as_dir" && as_dir=. | ||
2340 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2342 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2344 | break 2 | ||
2345 | fi | ||
2346 | done | ||
2347 | done | ||
2348 | IFS=$as_save_IFS | ||
2349 | |||
2350 | fi | ||
2351 | fi | ||
2352 | STRIP=$ac_cv_prog_STRIP | ||
2353 | if test -n "$STRIP"; then | ||
2354 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
2355 | echo "${ECHO_T}$STRIP" >&6; } | ||
2356 | else | ||
2357 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2358 | echo "${ECHO_T}no" >&6; } | ||
2359 | fi | ||
2360 | |||
2361 | |||
2362 | fi | ||
2363 | if test -z "$ac_cv_prog_STRIP"; then | ||
2364 | ac_ct_STRIP=$STRIP | ||
2365 | # Extract the first word of "strip", so it can be a program name with args. | ||
2366 | set dummy strip; ac_word=$2 | ||
2367 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2369 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
2370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2371 | else | ||
2372 | if test -n "$ac_ct_STRIP"; then | ||
2373 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2374 | else | ||
2375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2376 | for as_dir in $PATH | ||
2377 | do | ||
2378 | IFS=$as_save_IFS | ||
2379 | test -z "$as_dir" && as_dir=. | ||
2380 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2381 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2382 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2384 | break 2 | ||
2385 | fi | ||
2386 | done | ||
2387 | done | ||
2388 | IFS=$as_save_IFS | ||
2389 | |||
2390 | fi | ||
2391 | fi | ||
2392 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2393 | if test -n "$ac_ct_STRIP"; then | ||
2394 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
2395 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | ||
2396 | else | ||
2397 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2398 | echo "${ECHO_T}no" >&6; } | ||
2399 | fi | ||
2400 | |||
2401 | if test "x$ac_ct_STRIP" = x; then | ||
2402 | STRIP=":" | ||
2403 | else | ||
2404 | case $cross_compiling:$ac_tool_warned in | ||
2405 | yes:) | ||
2406 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2407 | whose name does not start with the host triplet. If you think this | ||
2408 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2409 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2410 | whose name does not start with the host triplet. If you think this | ||
2411 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2412 | ac_tool_warned=yes ;; | ||
2413 | esac | ||
2414 | STRIP=$ac_ct_STRIP | ||
2415 | fi | ||
2416 | else | ||
2417 | STRIP="$ac_cv_prog_STRIP" | ||
2418 | fi | ||
2419 | |||
2420 | fi | ||
2421 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
2422 | |||
2423 | # We need awk for the "check" target. The system "awk" is bad on | ||
2424 | # some platforms. | ||
2425 | # Always define AMTAR for backward compatibility. | ||
2426 | |||
2427 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2428 | |||
2429 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
2430 | |||
2431 | |||
2432 | |||
2433 | |||
2434 | |||
2435 | ac_config_headers="$ac_config_headers include/ode/config.h" | ||
2436 | |||
2437 | CFLAGS= | ||
2438 | CXXFLAGS= | ||
2439 | DEPDIR="${am__leading_dot}deps" | ||
2440 | |||
2441 | ac_config_commands="$ac_config_commands depfiles" | ||
2442 | |||
2443 | |||
2444 | am_make=${MAKE-make} | ||
2445 | cat > confinc << 'END' | ||
2446 | am__doit: | ||
2447 | @echo done | ||
2448 | .PHONY: am__doit | ||
2449 | END | ||
2450 | # If we don't find an include directive, just comment out the code. | ||
2451 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | ||
2452 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | ||
2453 | am__include="#" | ||
2454 | am__quote= | ||
2455 | _am_result=none | ||
2456 | # First try GNU make style include. | ||
2457 | echo "include confinc" > confmf | ||
2458 | # We grep out `Entering directory' and `Leaving directory' | ||
2459 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
2460 | # In particular we don't look at `^make:' because GNU make might | ||
2461 | # be invoked under some other name (usually "gmake"), in which | ||
2462 | # case it prints its new name instead of `make'. | ||
2463 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
2464 | am__include=include | ||
2465 | am__quote= | ||
2466 | _am_result=GNU | ||
2467 | fi | ||
2468 | # Now try BSD make style include. | ||
2469 | if test "$am__include" = "#"; then | ||
2470 | echo '.include "confinc"' > confmf | ||
2471 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
2472 | am__include=.include | ||
2473 | am__quote="\"" | ||
2474 | _am_result=BSD | ||
2475 | fi | ||
2476 | fi | ||
2477 | |||
2478 | |||
2479 | { echo "$as_me:$LINENO: result: $_am_result" >&5 | ||
2480 | echo "${ECHO_T}$_am_result" >&6; } | ||
2481 | rm -f confinc confmf | ||
2482 | |||
2483 | # Check whether --enable-dependency-tracking was given. | ||
2484 | if test "${enable_dependency_tracking+set}" = set; then | ||
2485 | enableval=$enable_dependency_tracking; | ||
2486 | fi | ||
2487 | |||
2488 | if test "x$enable_dependency_tracking" != xno; then | ||
2489 | am_depcomp="$ac_aux_dir/depcomp" | ||
2490 | AMDEPBACKSLASH='\' | ||
2491 | fi | ||
2492 | if test "x$enable_dependency_tracking" != xno; then | ||
2493 | AMDEP_TRUE= | ||
2494 | AMDEP_FALSE='#' | ||
2495 | else | ||
2496 | AMDEP_TRUE='#' | ||
2497 | AMDEP_FALSE= | ||
2498 | fi | ||
2499 | |||
2500 | |||
2501 | ac_ext=c | ||
2502 | ac_cpp='$CPP $CPPFLAGS' | ||
2503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2506 | if test -n "$ac_tool_prefix"; then | ||
2507 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2508 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2509 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2511 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2513 | else | ||
2514 | if test -n "$CC"; then | ||
2515 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2516 | else | ||
2517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2518 | for as_dir in $PATH | ||
2519 | do | ||
2520 | IFS=$as_save_IFS | ||
2521 | test -z "$as_dir" && as_dir=. | ||
2522 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2524 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2526 | break 2 | ||
2527 | fi | ||
2528 | done | ||
2529 | done | ||
2530 | IFS=$as_save_IFS | ||
2531 | |||
2532 | fi | ||
2533 | fi | ||
2534 | CC=$ac_cv_prog_CC | ||
2535 | if test -n "$CC"; then | ||
2536 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2537 | echo "${ECHO_T}$CC" >&6; } | ||
2538 | else | ||
2539 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2540 | echo "${ECHO_T}no" >&6; } | ||
2541 | fi | ||
2542 | |||
2543 | |||
2544 | fi | ||
2545 | if test -z "$ac_cv_prog_CC"; then | ||
2546 | ac_ct_CC=$CC | ||
2547 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2548 | set dummy gcc; ac_word=$2 | ||
2549 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2551 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2553 | else | ||
2554 | if test -n "$ac_ct_CC"; then | ||
2555 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2556 | else | ||
2557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2558 | for as_dir in $PATH | ||
2559 | do | ||
2560 | IFS=$as_save_IFS | ||
2561 | test -z "$as_dir" && as_dir=. | ||
2562 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2564 | ac_cv_prog_ac_ct_CC="gcc" | ||
2565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2566 | break 2 | ||
2567 | fi | ||
2568 | done | ||
2569 | done | ||
2570 | IFS=$as_save_IFS | ||
2571 | |||
2572 | fi | ||
2573 | fi | ||
2574 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2575 | if test -n "$ac_ct_CC"; then | ||
2576 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2577 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2578 | else | ||
2579 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2580 | echo "${ECHO_T}no" >&6; } | ||
2581 | fi | ||
2582 | |||
2583 | if test "x$ac_ct_CC" = x; then | ||
2584 | CC="" | ||
2585 | else | ||
2586 | case $cross_compiling:$ac_tool_warned in | ||
2587 | yes:) | ||
2588 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2589 | whose name does not start with the host triplet. If you think this | ||
2590 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2591 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2592 | whose name does not start with the host triplet. If you think this | ||
2593 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2594 | ac_tool_warned=yes ;; | ||
2595 | esac | ||
2596 | CC=$ac_ct_CC | ||
2597 | fi | ||
2598 | else | ||
2599 | CC="$ac_cv_prog_CC" | ||
2600 | fi | ||
2601 | |||
2602 | if test -z "$CC"; then | ||
2603 | if test -n "$ac_tool_prefix"; then | ||
2604 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2605 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2606 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2608 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2610 | else | ||
2611 | if test -n "$CC"; then | ||
2612 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2613 | else | ||
2614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2615 | for as_dir in $PATH | ||
2616 | do | ||
2617 | IFS=$as_save_IFS | ||
2618 | test -z "$as_dir" && as_dir=. | ||
2619 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2621 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2623 | break 2 | ||
2624 | fi | ||
2625 | done | ||
2626 | done | ||
2627 | IFS=$as_save_IFS | ||
2628 | |||
2629 | fi | ||
2630 | fi | ||
2631 | CC=$ac_cv_prog_CC | ||
2632 | if test -n "$CC"; then | ||
2633 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2634 | echo "${ECHO_T}$CC" >&6; } | ||
2635 | else | ||
2636 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2637 | echo "${ECHO_T}no" >&6; } | ||
2638 | fi | ||
2639 | |||
2640 | |||
2641 | fi | ||
2642 | fi | ||
2643 | if test -z "$CC"; then | ||
2644 | # Extract the first word of "cc", so it can be a program name with args. | ||
2645 | set dummy cc; ac_word=$2 | ||
2646 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2648 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2650 | else | ||
2651 | if test -n "$CC"; then | ||
2652 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2653 | else | ||
2654 | ac_prog_rejected=no | ||
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2656 | for as_dir in $PATH | ||
2657 | do | ||
2658 | IFS=$as_save_IFS | ||
2659 | test -z "$as_dir" && as_dir=. | ||
2660 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2662 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2663 | ac_prog_rejected=yes | ||
2664 | continue | ||
2665 | fi | ||
2666 | ac_cv_prog_CC="cc" | ||
2667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2668 | break 2 | ||
2669 | fi | ||
2670 | done | ||
2671 | done | ||
2672 | IFS=$as_save_IFS | ||
2673 | |||
2674 | if test $ac_prog_rejected = yes; then | ||
2675 | # We found a bogon in the path, so make sure we never use it. | ||
2676 | set dummy $ac_cv_prog_CC | ||
2677 | shift | ||
2678 | if test $# != 0; then | ||
2679 | # We chose a different compiler from the bogus one. | ||
2680 | # However, it has the same basename, so the bogon will be chosen | ||
2681 | # first if we set CC to just the basename; use the full file name. | ||
2682 | shift | ||
2683 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2684 | fi | ||
2685 | fi | ||
2686 | fi | ||
2687 | fi | ||
2688 | CC=$ac_cv_prog_CC | ||
2689 | if test -n "$CC"; then | ||
2690 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2691 | echo "${ECHO_T}$CC" >&6; } | ||
2692 | else | ||
2693 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2694 | echo "${ECHO_T}no" >&6; } | ||
2695 | fi | ||
2696 | |||
2697 | |||
2698 | fi | ||
2699 | if test -z "$CC"; then | ||
2700 | if test -n "$ac_tool_prefix"; then | ||
2701 | for ac_prog in cl.exe | ||
2702 | do | ||
2703 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2704 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2705 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2707 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2709 | else | ||
2710 | if test -n "$CC"; then | ||
2711 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2712 | else | ||
2713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2714 | for as_dir in $PATH | ||
2715 | do | ||
2716 | IFS=$as_save_IFS | ||
2717 | test -z "$as_dir" && as_dir=. | ||
2718 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2720 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2722 | break 2 | ||
2723 | fi | ||
2724 | done | ||
2725 | done | ||
2726 | IFS=$as_save_IFS | ||
2727 | |||
2728 | fi | ||
2729 | fi | ||
2730 | CC=$ac_cv_prog_CC | ||
2731 | if test -n "$CC"; then | ||
2732 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2733 | echo "${ECHO_T}$CC" >&6; } | ||
2734 | else | ||
2735 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2736 | echo "${ECHO_T}no" >&6; } | ||
2737 | fi | ||
2738 | |||
2739 | |||
2740 | test -n "$CC" && break | ||
2741 | done | ||
2742 | fi | ||
2743 | if test -z "$CC"; then | ||
2744 | ac_ct_CC=$CC | ||
2745 | for ac_prog in cl.exe | ||
2746 | do | ||
2747 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2748 | set dummy $ac_prog; ac_word=$2 | ||
2749 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2751 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2753 | else | ||
2754 | if test -n "$ac_ct_CC"; then | ||
2755 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2756 | else | ||
2757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2758 | for as_dir in $PATH | ||
2759 | do | ||
2760 | IFS=$as_save_IFS | ||
2761 | test -z "$as_dir" && as_dir=. | ||
2762 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2764 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2766 | break 2 | ||
2767 | fi | ||
2768 | done | ||
2769 | done | ||
2770 | IFS=$as_save_IFS | ||
2771 | |||
2772 | fi | ||
2773 | fi | ||
2774 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2775 | if test -n "$ac_ct_CC"; then | ||
2776 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2777 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2778 | else | ||
2779 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2780 | echo "${ECHO_T}no" >&6; } | ||
2781 | fi | ||
2782 | |||
2783 | |||
2784 | test -n "$ac_ct_CC" && break | ||
2785 | done | ||
2786 | |||
2787 | if test "x$ac_ct_CC" = x; then | ||
2788 | CC="" | ||
2789 | else | ||
2790 | case $cross_compiling:$ac_tool_warned in | ||
2791 | yes:) | ||
2792 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2793 | whose name does not start with the host triplet. If you think this | ||
2794 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2795 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2796 | whose name does not start with the host triplet. If you think this | ||
2797 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2798 | ac_tool_warned=yes ;; | ||
2799 | esac | ||
2800 | CC=$ac_ct_CC | ||
2801 | fi | ||
2802 | fi | ||
2803 | |||
2804 | fi | ||
2805 | |||
2806 | |||
2807 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2808 | See \`config.log' for more details." >&5 | ||
2809 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2810 | See \`config.log' for more details." >&2;} | ||
2811 | { (exit 1); exit 1; }; } | ||
2812 | |||
2813 | # Provide some information about the compiler. | ||
2814 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2815 | ac_compiler=`set X $ac_compile; echo $2` | ||
2816 | { (ac_try="$ac_compiler --version >&5" | ||
2817 | case "(($ac_try" in | ||
2818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2819 | *) ac_try_echo=$ac_try;; | ||
2820 | esac | ||
2821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2822 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2823 | ac_status=$? | ||
2824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2825 | (exit $ac_status); } | ||
2826 | { (ac_try="$ac_compiler -v >&5" | ||
2827 | case "(($ac_try" in | ||
2828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2829 | *) ac_try_echo=$ac_try;; | ||
2830 | esac | ||
2831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2832 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2833 | ac_status=$? | ||
2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2835 | (exit $ac_status); } | ||
2836 | { (ac_try="$ac_compiler -V >&5" | ||
2837 | case "(($ac_try" in | ||
2838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2839 | *) ac_try_echo=$ac_try;; | ||
2840 | esac | ||
2841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2842 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2843 | ac_status=$? | ||
2844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2845 | (exit $ac_status); } | ||
2846 | |||
2847 | cat >conftest.$ac_ext <<_ACEOF | ||
2848 | /* confdefs.h. */ | ||
2849 | _ACEOF | ||
2850 | cat confdefs.h >>conftest.$ac_ext | ||
2851 | cat >>conftest.$ac_ext <<_ACEOF | ||
2852 | /* end confdefs.h. */ | ||
2853 | |||
2854 | int | ||
2855 | main () | ||
2856 | { | ||
2857 | |||
2858 | ; | ||
2859 | return 0; | ||
2860 | } | ||
2861 | _ACEOF | ||
2862 | ac_clean_files_save=$ac_clean_files | ||
2863 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2864 | # Try to create an executable without -o first, disregard a.out. | ||
2865 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2866 | # of exeext. | ||
2867 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2868 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2869 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2870 | # | ||
2871 | # List of possible output files, starting from the most likely. | ||
2872 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2873 | # only as a last resort. b.out is created by i960 compilers. | ||
2874 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2875 | # | ||
2876 | # The IRIX 6 linker writes into existing files which may not be | ||
2877 | # executable, retaining their permissions. Remove them first so a | ||
2878 | # subsequent execution test works. | ||
2879 | ac_rmfiles= | ||
2880 | for ac_file in $ac_files | ||
2881 | do | ||
2882 | case $ac_file in | ||
2883 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2884 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2885 | esac | ||
2886 | done | ||
2887 | rm -f $ac_rmfiles | ||
2888 | |||
2889 | if { (ac_try="$ac_link_default" | ||
2890 | case "(($ac_try" in | ||
2891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2892 | *) ac_try_echo=$ac_try;; | ||
2893 | esac | ||
2894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2895 | (eval "$ac_link_default") 2>&5 | ||
2896 | ac_status=$? | ||
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2898 | (exit $ac_status); }; then | ||
2899 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2900 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2901 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2902 | # so that the user can short-circuit this test for compilers unknown to | ||
2903 | # Autoconf. | ||
2904 | for ac_file in $ac_files '' | ||
2905 | do | ||
2906 | test -f "$ac_file" || continue | ||
2907 | case $ac_file in | ||
2908 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2909 | ;; | ||
2910 | [ab].out ) | ||
2911 | # We found the default executable, but exeext='' is most | ||
2912 | # certainly right. | ||
2913 | break;; | ||
2914 | *.* ) | ||
2915 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2916 | then :; else | ||
2917 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2918 | fi | ||
2919 | # We set ac_cv_exeext here because the later test for it is not | ||
2920 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2921 | # argument, so we may need to know it at that point already. | ||
2922 | # Even if this section looks crufty: it has the advantage of | ||
2923 | # actually working. | ||
2924 | break;; | ||
2925 | * ) | ||
2926 | break;; | ||
2927 | esac | ||
2928 | done | ||
2929 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2930 | |||
2931 | else | ||
2932 | ac_file='' | ||
2933 | fi | ||
2934 | |||
2935 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2936 | echo "${ECHO_T}$ac_file" >&6; } | ||
2937 | if test -z "$ac_file"; then | ||
2938 | echo "$as_me: failed program was:" >&5 | ||
2939 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2940 | |||
2941 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2942 | See \`config.log' for more details." >&5 | ||
2943 | echo "$as_me: error: C compiler cannot create executables | ||
2944 | See \`config.log' for more details." >&2;} | ||
2945 | { (exit 77); exit 77; }; } | ||
2946 | fi | ||
2947 | |||
2948 | ac_exeext=$ac_cv_exeext | ||
2949 | |||
2950 | # Check that the compiler produces executables we can run. If not, either | ||
2951 | # the compiler is broken, or we cross compile. | ||
2952 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2953 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2954 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2955 | # If not cross compiling, check that we can run a simple program. | ||
2956 | if test "$cross_compiling" != yes; then | ||
2957 | if { ac_try='./$ac_file' | ||
2958 | { (case "(($ac_try" in | ||
2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2960 | *) ac_try_echo=$ac_try;; | ||
2961 | esac | ||
2962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2963 | (eval "$ac_try") 2>&5 | ||
2964 | ac_status=$? | ||
2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2966 | (exit $ac_status); }; }; then | ||
2967 | cross_compiling=no | ||
2968 | else | ||
2969 | if test "$cross_compiling" = maybe; then | ||
2970 | cross_compiling=yes | ||
2971 | else | ||
2972 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2973 | If you meant to cross compile, use \`--host'. | ||
2974 | See \`config.log' for more details." >&5 | ||
2975 | echo "$as_me: error: cannot run C compiled programs. | ||
2976 | If you meant to cross compile, use \`--host'. | ||
2977 | See \`config.log' for more details." >&2;} | ||
2978 | { (exit 1); exit 1; }; } | ||
2979 | fi | ||
2980 | fi | ||
2981 | fi | ||
2982 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2983 | echo "${ECHO_T}yes" >&6; } | ||
2984 | |||
2985 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2986 | ac_clean_files=$ac_clean_files_save | ||
2987 | # Check that the compiler produces executables we can run. If not, either | ||
2988 | # the compiler is broken, or we cross compile. | ||
2989 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2990 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2991 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2992 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2993 | |||
2994 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2995 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2996 | if { (ac_try="$ac_link" | ||
2997 | case "(($ac_try" in | ||
2998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2999 | *) ac_try_echo=$ac_try;; | ||
3000 | esac | ||
3001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3002 | (eval "$ac_link") 2>&5 | ||
3003 | ac_status=$? | ||
3004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3005 | (exit $ac_status); }; then | ||
3006 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3007 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3008 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3009 | # `rm'. | ||
3010 | for ac_file in conftest.exe conftest conftest.*; do | ||
3011 | test -f "$ac_file" || continue | ||
3012 | case $ac_file in | ||
3013 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
3014 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3015 | break;; | ||
3016 | * ) break;; | ||
3017 | esac | ||
3018 | done | ||
3019 | else | ||
3020 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
3021 | See \`config.log' for more details." >&5 | ||
3022 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
3023 | See \`config.log' for more details." >&2;} | ||
3024 | { (exit 1); exit 1; }; } | ||
3025 | fi | ||
3026 | |||
3027 | rm -f conftest$ac_cv_exeext | ||
3028 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
3029 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
3030 | |||
3031 | rm -f conftest.$ac_ext | ||
3032 | EXEEXT=$ac_cv_exeext | ||
3033 | ac_exeext=$EXEEXT | ||
3034 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
3035 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
3036 | if test "${ac_cv_objext+set}" = set; then | ||
3037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3038 | else | ||
3039 | cat >conftest.$ac_ext <<_ACEOF | ||
3040 | /* confdefs.h. */ | ||
3041 | _ACEOF | ||
3042 | cat confdefs.h >>conftest.$ac_ext | ||
3043 | cat >>conftest.$ac_ext <<_ACEOF | ||
3044 | /* end confdefs.h. */ | ||
3045 | |||
3046 | int | ||
3047 | main () | ||
3048 | { | ||
3049 | |||
3050 | ; | ||
3051 | return 0; | ||
3052 | } | ||
3053 | _ACEOF | ||
3054 | rm -f conftest.o conftest.obj | ||
3055 | if { (ac_try="$ac_compile" | ||
3056 | case "(($ac_try" in | ||
3057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3058 | *) ac_try_echo=$ac_try;; | ||
3059 | esac | ||
3060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3061 | (eval "$ac_compile") 2>&5 | ||
3062 | ac_status=$? | ||
3063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3064 | (exit $ac_status); }; then | ||
3065 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3066 | test -f "$ac_file" || continue; | ||
3067 | case $ac_file in | ||
3068 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
3069 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3070 | break;; | ||
3071 | esac | ||
3072 | done | ||
3073 | else | ||
3074 | echo "$as_me: failed program was:" >&5 | ||
3075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3076 | |||
3077 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
3078 | See \`config.log' for more details." >&5 | ||
3079 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
3080 | See \`config.log' for more details." >&2;} | ||
3081 | { (exit 1); exit 1; }; } | ||
3082 | fi | ||
3083 | |||
3084 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3085 | fi | ||
3086 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
3087 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
3088 | OBJEXT=$ac_cv_objext | ||
3089 | ac_objext=$OBJEXT | ||
3090 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
3091 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
3092 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
3093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3094 | else | ||
3095 | cat >conftest.$ac_ext <<_ACEOF | ||
3096 | /* confdefs.h. */ | ||
3097 | _ACEOF | ||
3098 | cat confdefs.h >>conftest.$ac_ext | ||
3099 | cat >>conftest.$ac_ext <<_ACEOF | ||
3100 | /* end confdefs.h. */ | ||
3101 | |||
3102 | int | ||
3103 | main () | ||
3104 | { | ||
3105 | #ifndef __GNUC__ | ||
3106 | choke me | ||
3107 | #endif | ||
3108 | |||
3109 | ; | ||
3110 | return 0; | ||
3111 | } | ||
3112 | _ACEOF | ||
3113 | rm -f conftest.$ac_objext | ||
3114 | if { (ac_try="$ac_compile" | ||
3115 | case "(($ac_try" in | ||
3116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3117 | *) ac_try_echo=$ac_try;; | ||
3118 | esac | ||
3119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3120 | (eval "$ac_compile") 2>conftest.er1 | ||
3121 | ac_status=$? | ||
3122 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3123 | rm -f conftest.er1 | ||
3124 | cat conftest.err >&5 | ||
3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3126 | (exit $ac_status); } && { | ||
3127 | test -z "$ac_c_werror_flag" || | ||
3128 | test ! -s conftest.err | ||
3129 | } && test -s conftest.$ac_objext; then | ||
3130 | ac_compiler_gnu=yes | ||
3131 | else | ||
3132 | echo "$as_me: failed program was:" >&5 | ||
3133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3134 | |||
3135 | ac_compiler_gnu=no | ||
3136 | fi | ||
3137 | |||
3138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3139 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3140 | |||
3141 | fi | ||
3142 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
3143 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
3144 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
3145 | ac_test_CFLAGS=${CFLAGS+set} | ||
3146 | ac_save_CFLAGS=$CFLAGS | ||
3147 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
3148 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
3149 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
3150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3151 | else | ||
3152 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3153 | ac_c_werror_flag=yes | ||
3154 | ac_cv_prog_cc_g=no | ||
3155 | CFLAGS="-g" | ||
3156 | cat >conftest.$ac_ext <<_ACEOF | ||
3157 | /* confdefs.h. */ | ||
3158 | _ACEOF | ||
3159 | cat confdefs.h >>conftest.$ac_ext | ||
3160 | cat >>conftest.$ac_ext <<_ACEOF | ||
3161 | /* end confdefs.h. */ | ||
3162 | |||
3163 | int | ||
3164 | main () | ||
3165 | { | ||
3166 | |||
3167 | ; | ||
3168 | return 0; | ||
3169 | } | ||
3170 | _ACEOF | ||
3171 | rm -f conftest.$ac_objext | ||
3172 | if { (ac_try="$ac_compile" | ||
3173 | case "(($ac_try" in | ||
3174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3175 | *) ac_try_echo=$ac_try;; | ||
3176 | esac | ||
3177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3178 | (eval "$ac_compile") 2>conftest.er1 | ||
3179 | ac_status=$? | ||
3180 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3181 | rm -f conftest.er1 | ||
3182 | cat conftest.err >&5 | ||
3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3184 | (exit $ac_status); } && { | ||
3185 | test -z "$ac_c_werror_flag" || | ||
3186 | test ! -s conftest.err | ||
3187 | } && test -s conftest.$ac_objext; then | ||
3188 | ac_cv_prog_cc_g=yes | ||
3189 | else | ||
3190 | echo "$as_me: failed program was:" >&5 | ||
3191 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3192 | |||
3193 | CFLAGS="" | ||
3194 | cat >conftest.$ac_ext <<_ACEOF | ||
3195 | /* confdefs.h. */ | ||
3196 | _ACEOF | ||
3197 | cat confdefs.h >>conftest.$ac_ext | ||
3198 | cat >>conftest.$ac_ext <<_ACEOF | ||
3199 | /* end confdefs.h. */ | ||
3200 | |||
3201 | int | ||
3202 | main () | ||
3203 | { | ||
3204 | |||
3205 | ; | ||
3206 | return 0; | ||
3207 | } | ||
3208 | _ACEOF | ||
3209 | rm -f conftest.$ac_objext | ||
3210 | if { (ac_try="$ac_compile" | ||
3211 | case "(($ac_try" in | ||
3212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3213 | *) ac_try_echo=$ac_try;; | ||
3214 | esac | ||
3215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3216 | (eval "$ac_compile") 2>conftest.er1 | ||
3217 | ac_status=$? | ||
3218 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3219 | rm -f conftest.er1 | ||
3220 | cat conftest.err >&5 | ||
3221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3222 | (exit $ac_status); } && { | ||
3223 | test -z "$ac_c_werror_flag" || | ||
3224 | test ! -s conftest.err | ||
3225 | } && test -s conftest.$ac_objext; then | ||
3226 | : | ||
3227 | else | ||
3228 | echo "$as_me: failed program was:" >&5 | ||
3229 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3230 | |||
3231 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3232 | CFLAGS="-g" | ||
3233 | cat >conftest.$ac_ext <<_ACEOF | ||
3234 | /* confdefs.h. */ | ||
3235 | _ACEOF | ||
3236 | cat confdefs.h >>conftest.$ac_ext | ||
3237 | cat >>conftest.$ac_ext <<_ACEOF | ||
3238 | /* end confdefs.h. */ | ||
3239 | |||
3240 | int | ||
3241 | main () | ||
3242 | { | ||
3243 | |||
3244 | ; | ||
3245 | return 0; | ||
3246 | } | ||
3247 | _ACEOF | ||
3248 | rm -f conftest.$ac_objext | ||
3249 | if { (ac_try="$ac_compile" | ||
3250 | case "(($ac_try" in | ||
3251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3252 | *) ac_try_echo=$ac_try;; | ||
3253 | esac | ||
3254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3255 | (eval "$ac_compile") 2>conftest.er1 | ||
3256 | ac_status=$? | ||
3257 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3258 | rm -f conftest.er1 | ||
3259 | cat conftest.err >&5 | ||
3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3261 | (exit $ac_status); } && { | ||
3262 | test -z "$ac_c_werror_flag" || | ||
3263 | test ! -s conftest.err | ||
3264 | } && test -s conftest.$ac_objext; then | ||
3265 | ac_cv_prog_cc_g=yes | ||
3266 | else | ||
3267 | echo "$as_me: failed program was:" >&5 | ||
3268 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3269 | |||
3270 | |||
3271 | fi | ||
3272 | |||
3273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3274 | fi | ||
3275 | |||
3276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3277 | fi | ||
3278 | |||
3279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3280 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3281 | fi | ||
3282 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
3283 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
3284 | if test "$ac_test_CFLAGS" = set; then | ||
3285 | CFLAGS=$ac_save_CFLAGS | ||
3286 | elif test $ac_cv_prog_cc_g = yes; then | ||
3287 | if test "$GCC" = yes; then | ||
3288 | CFLAGS="-g -O2" | ||
3289 | else | ||
3290 | CFLAGS="-g" | ||
3291 | fi | ||
3292 | else | ||
3293 | if test "$GCC" = yes; then | ||
3294 | CFLAGS="-O2" | ||
3295 | else | ||
3296 | CFLAGS= | ||
3297 | fi | ||
3298 | fi | ||
3299 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
3300 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
3301 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
3302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3303 | else | ||
3304 | ac_cv_prog_cc_c89=no | ||
3305 | ac_save_CC=$CC | ||
3306 | cat >conftest.$ac_ext <<_ACEOF | ||
3307 | /* confdefs.h. */ | ||
3308 | _ACEOF | ||
3309 | cat confdefs.h >>conftest.$ac_ext | ||
3310 | cat >>conftest.$ac_ext <<_ACEOF | ||
3311 | /* end confdefs.h. */ | ||
3312 | #include <stdarg.h> | ||
3313 | #include <stdio.h> | ||
3314 | #include <sys/types.h> | ||
3315 | #include <sys/stat.h> | ||
3316 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3317 | struct buf { int x; }; | ||
3318 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3319 | static char *e (p, i) | ||
3320 | char **p; | ||
3321 | int i; | ||
3322 | { | ||
3323 | return p[i]; | ||
3324 | } | ||
3325 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3326 | { | ||
3327 | char *s; | ||
3328 | va_list v; | ||
3329 | va_start (v,p); | ||
3330 | s = g (p, va_arg (v,int)); | ||
3331 | va_end (v); | ||
3332 | return s; | ||
3333 | } | ||
3334 | |||
3335 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3336 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3337 | These don't provoke an error unfortunately, instead are silently treated | ||
3338 | as 'x'. The following induces an error, until -std is added to get | ||
3339 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3340 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3341 | that's true only with -std. */ | ||
3342 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3343 | |||
3344 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3345 | inside strings and character constants. */ | ||
3346 | #define FOO(x) 'x' | ||
3347 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3348 | |||
3349 | int test (int i, double x); | ||
3350 | struct s1 {int (*f) (int a);}; | ||
3351 | struct s2 {int (*f) (double a);}; | ||
3352 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3353 | int argc; | ||
3354 | char **argv; | ||
3355 | int | ||
3356 | main () | ||
3357 | { | ||
3358 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3359 | ; | ||
3360 | return 0; | ||
3361 | } | ||
3362 | _ACEOF | ||
3363 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3364 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3365 | do | ||
3366 | CC="$ac_save_CC $ac_arg" | ||
3367 | rm -f conftest.$ac_objext | ||
3368 | if { (ac_try="$ac_compile" | ||
3369 | case "(($ac_try" in | ||
3370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3371 | *) ac_try_echo=$ac_try;; | ||
3372 | esac | ||
3373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3374 | (eval "$ac_compile") 2>conftest.er1 | ||
3375 | ac_status=$? | ||
3376 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3377 | rm -f conftest.er1 | ||
3378 | cat conftest.err >&5 | ||
3379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3380 | (exit $ac_status); } && { | ||
3381 | test -z "$ac_c_werror_flag" || | ||
3382 | test ! -s conftest.err | ||
3383 | } && test -s conftest.$ac_objext; then | ||
3384 | ac_cv_prog_cc_c89=$ac_arg | ||
3385 | else | ||
3386 | echo "$as_me: failed program was:" >&5 | ||
3387 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3388 | |||
3389 | |||
3390 | fi | ||
3391 | |||
3392 | rm -f core conftest.err conftest.$ac_objext | ||
3393 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3394 | done | ||
3395 | rm -f conftest.$ac_ext | ||
3396 | CC=$ac_save_CC | ||
3397 | |||
3398 | fi | ||
3399 | # AC_CACHE_VAL | ||
3400 | case "x$ac_cv_prog_cc_c89" in | ||
3401 | x) | ||
3402 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
3403 | echo "${ECHO_T}none needed" >&6; } ;; | ||
3404 | xno) | ||
3405 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
3406 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
3407 | *) | ||
3408 | CC="$CC $ac_cv_prog_cc_c89" | ||
3409 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
3410 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
3411 | esac | ||
3412 | |||
3413 | |||
3414 | ac_ext=c | ||
3415 | ac_cpp='$CPP $CPPFLAGS' | ||
3416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3419 | |||
3420 | depcc="$CC" am_compiler_list= | ||
3421 | |||
3422 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
3423 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | ||
3424 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | ||
3425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3426 | else | ||
3427 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
3428 | # We make a subdir and do the tests there. Otherwise we can end up | ||
3429 | # making bogus files that we don't know about and never remove. For | ||
3430 | # instance it was reported that on HP-UX the gcc test will end up | ||
3431 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
3432 | # in D'. | ||
3433 | mkdir conftest.dir | ||
3434 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
3435 | # using a relative directory. | ||
3436 | cp "$am_depcomp" conftest.dir | ||
3437 | cd conftest.dir | ||
3438 | # We will build objects and dependencies in a subdirectory because | ||
3439 | # it helps to detect inapplicable dependency modes. For instance | ||
3440 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
3441 | # side effect of compilation, but ICC will put the dependencies in | ||
3442 | # the current directory while Tru64 will put them in the object | ||
3443 | # directory. | ||
3444 | mkdir sub | ||
3445 | |||
3446 | am_cv_CC_dependencies_compiler_type=none | ||
3447 | if test "$am_compiler_list" = ""; then | ||
3448 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
3449 | fi | ||
3450 | for depmode in $am_compiler_list; do | ||
3451 | # Setup a source with many dependencies, because some compilers | ||
3452 | # like to wrap large dependency lists on column 80 (with \), and | ||
3453 | # we should not choose a depcomp mode which is confused by this. | ||
3454 | # | ||
3455 | # We need to recreate these files for each test, as the compiler may | ||
3456 | # overwrite some of them when testing with obscure command lines. | ||
3457 | # This happens at least with the AIX C compiler. | ||
3458 | : > sub/conftest.c | ||
3459 | for i in 1 2 3 4 5 6; do | ||
3460 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
3461 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
3462 | # Solaris 8's {/usr,}/bin/sh. | ||
3463 | touch sub/conftst$i.h | ||
3464 | done | ||
3465 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
3466 | |||
3467 | case $depmode in | ||
3468 | nosideeffect) | ||
3469 | # after this tag, mechanisms are not by side-effect, so they'll | ||
3470 | # only be used when explicitly requested | ||
3471 | if test "x$enable_dependency_tracking" = xyes; then | ||
3472 | continue | ||
3473 | else | ||
3474 | break | ||
3475 | fi | ||
3476 | ;; | ||
3477 | none) break ;; | ||
3478 | esac | ||
3479 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
3480 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
3481 | # handle `-M -o', and we need to detect this. | ||
3482 | if depmode=$depmode \ | ||
3483 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
3484 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
3485 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
3486 | >/dev/null 2>conftest.err && | ||
3487 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
3488 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
3489 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
3490 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
3491 | # icc doesn't choke on unknown options, it will just issue warnings | ||
3492 | # or remarks (even with -Werror). So we grep stderr for any message | ||
3493 | # that says an option was ignored or not supported. | ||
3494 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
3495 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
3496 | # The diagnosis changed in icc 8.0: | ||
3497 | # icc: Command line remark: option '-MP' not supported | ||
3498 | if (grep 'ignoring option' conftest.err || | ||
3499 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
3500 | am_cv_CC_dependencies_compiler_type=$depmode | ||
3501 | break | ||
3502 | fi | ||
3503 | fi | ||
3504 | done | ||
3505 | |||
3506 | cd .. | ||
3507 | rm -rf conftest.dir | ||
3508 | else | ||
3509 | am_cv_CC_dependencies_compiler_type=none | ||
3510 | fi | ||
3511 | |||
3512 | fi | ||
3513 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
3514 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | ||
3515 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
3516 | |||
3517 | if | ||
3518 | test "x$enable_dependency_tracking" != xno \ | ||
3519 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
3520 | am__fastdepCC_TRUE= | ||
3521 | am__fastdepCC_FALSE='#' | ||
3522 | else | ||
3523 | am__fastdepCC_TRUE='#' | ||
3524 | am__fastdepCC_FALSE= | ||
3525 | fi | ||
3526 | |||
3527 | |||
3528 | |||
3529 | ac_ext=c | ||
3530 | ac_cpp='$CPP $CPPFLAGS' | ||
3531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3534 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3535 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3536 | # On Suns, sometimes $CPP names a directory. | ||
3537 | if test -n "$CPP" && test -d "$CPP"; then | ||
3538 | CPP= | ||
3539 | fi | ||
3540 | if test -z "$CPP"; then | ||
3541 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3543 | else | ||
3544 | # Double quotes because CPP needs to be expanded | ||
3545 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3546 | do | ||
3547 | ac_preproc_ok=false | ||
3548 | for ac_c_preproc_warn_flag in '' yes | ||
3549 | do | ||
3550 | # Use a header file that comes with gcc, so configuring glibc | ||
3551 | # with a fresh cross-compiler works. | ||
3552 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3553 | # <limits.h> exists even on freestanding compilers. | ||
3554 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3555 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3556 | cat >conftest.$ac_ext <<_ACEOF | ||
3557 | /* confdefs.h. */ | ||
3558 | _ACEOF | ||
3559 | cat confdefs.h >>conftest.$ac_ext | ||
3560 | cat >>conftest.$ac_ext <<_ACEOF | ||
3561 | /* end confdefs.h. */ | ||
3562 | #ifdef __STDC__ | ||
3563 | # include <limits.h> | ||
3564 | #else | ||
3565 | # include <assert.h> | ||
3566 | #endif | ||
3567 | Syntax error | ||
3568 | _ACEOF | ||
3569 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3570 | case "(($ac_try" in | ||
3571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3572 | *) ac_try_echo=$ac_try;; | ||
3573 | esac | ||
3574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3575 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3576 | ac_status=$? | ||
3577 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3578 | rm -f conftest.er1 | ||
3579 | cat conftest.err >&5 | ||
3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3581 | (exit $ac_status); } >/dev/null && { | ||
3582 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3583 | test ! -s conftest.err | ||
3584 | }; then | ||
3585 | : | ||
3586 | else | ||
3587 | echo "$as_me: failed program was:" >&5 | ||
3588 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3589 | |||
3590 | # Broken: fails on valid input. | ||
3591 | continue | ||
3592 | fi | ||
3593 | |||
3594 | rm -f conftest.err conftest.$ac_ext | ||
3595 | |||
3596 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3597 | # can be detected and how. | ||
3598 | cat >conftest.$ac_ext <<_ACEOF | ||
3599 | /* confdefs.h. */ | ||
3600 | _ACEOF | ||
3601 | cat confdefs.h >>conftest.$ac_ext | ||
3602 | cat >>conftest.$ac_ext <<_ACEOF | ||
3603 | /* end confdefs.h. */ | ||
3604 | #include <ac_nonexistent.h> | ||
3605 | _ACEOF | ||
3606 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3607 | case "(($ac_try" in | ||
3608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3609 | *) ac_try_echo=$ac_try;; | ||
3610 | esac | ||
3611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3612 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3613 | ac_status=$? | ||
3614 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3615 | rm -f conftest.er1 | ||
3616 | cat conftest.err >&5 | ||
3617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3618 | (exit $ac_status); } >/dev/null && { | ||
3619 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3620 | test ! -s conftest.err | ||
3621 | }; then | ||
3622 | # Broken: success on invalid input. | ||
3623 | continue | ||
3624 | else | ||
3625 | echo "$as_me: failed program was:" >&5 | ||
3626 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3627 | |||
3628 | # Passes both tests. | ||
3629 | ac_preproc_ok=: | ||
3630 | break | ||
3631 | fi | ||
3632 | |||
3633 | rm -f conftest.err conftest.$ac_ext | ||
3634 | |||
3635 | done | ||
3636 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3637 | rm -f conftest.err conftest.$ac_ext | ||
3638 | if $ac_preproc_ok; then | ||
3639 | break | ||
3640 | fi | ||
3641 | |||
3642 | done | ||
3643 | ac_cv_prog_CPP=$CPP | ||
3644 | |||
3645 | fi | ||
3646 | CPP=$ac_cv_prog_CPP | ||
3647 | else | ||
3648 | ac_cv_prog_CPP=$CPP | ||
3649 | fi | ||
3650 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3651 | echo "${ECHO_T}$CPP" >&6; } | ||
3652 | ac_preproc_ok=false | ||
3653 | for ac_c_preproc_warn_flag in '' yes | ||
3654 | do | ||
3655 | # Use a header file that comes with gcc, so configuring glibc | ||
3656 | # with a fresh cross-compiler works. | ||
3657 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3658 | # <limits.h> exists even on freestanding compilers. | ||
3659 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3660 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3661 | cat >conftest.$ac_ext <<_ACEOF | ||
3662 | /* confdefs.h. */ | ||
3663 | _ACEOF | ||
3664 | cat confdefs.h >>conftest.$ac_ext | ||
3665 | cat >>conftest.$ac_ext <<_ACEOF | ||
3666 | /* end confdefs.h. */ | ||
3667 | #ifdef __STDC__ | ||
3668 | # include <limits.h> | ||
3669 | #else | ||
3670 | # include <assert.h> | ||
3671 | #endif | ||
3672 | Syntax error | ||
3673 | _ACEOF | ||
3674 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3675 | case "(($ac_try" in | ||
3676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3677 | *) ac_try_echo=$ac_try;; | ||
3678 | esac | ||
3679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3680 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3681 | ac_status=$? | ||
3682 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3683 | rm -f conftest.er1 | ||
3684 | cat conftest.err >&5 | ||
3685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3686 | (exit $ac_status); } >/dev/null && { | ||
3687 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3688 | test ! -s conftest.err | ||
3689 | }; then | ||
3690 | : | ||
3691 | else | ||
3692 | echo "$as_me: failed program was:" >&5 | ||
3693 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3694 | |||
3695 | # Broken: fails on valid input. | ||
3696 | continue | ||
3697 | fi | ||
3698 | |||
3699 | rm -f conftest.err conftest.$ac_ext | ||
3700 | |||
3701 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3702 | # can be detected and how. | ||
3703 | cat >conftest.$ac_ext <<_ACEOF | ||
3704 | /* confdefs.h. */ | ||
3705 | _ACEOF | ||
3706 | cat confdefs.h >>conftest.$ac_ext | ||
3707 | cat >>conftest.$ac_ext <<_ACEOF | ||
3708 | /* end confdefs.h. */ | ||
3709 | #include <ac_nonexistent.h> | ||
3710 | _ACEOF | ||
3711 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3712 | case "(($ac_try" in | ||
3713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3714 | *) ac_try_echo=$ac_try;; | ||
3715 | esac | ||
3716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3717 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3718 | ac_status=$? | ||
3719 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3720 | rm -f conftest.er1 | ||
3721 | cat conftest.err >&5 | ||
3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3723 | (exit $ac_status); } >/dev/null && { | ||
3724 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3725 | test ! -s conftest.err | ||
3726 | }; then | ||
3727 | # Broken: success on invalid input. | ||
3728 | continue | ||
3729 | else | ||
3730 | echo "$as_me: failed program was:" >&5 | ||
3731 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3732 | |||
3733 | # Passes both tests. | ||
3734 | ac_preproc_ok=: | ||
3735 | break | ||
3736 | fi | ||
3737 | |||
3738 | rm -f conftest.err conftest.$ac_ext | ||
3739 | |||
3740 | done | ||
3741 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3742 | rm -f conftest.err conftest.$ac_ext | ||
3743 | if $ac_preproc_ok; then | ||
3744 | : | ||
3745 | else | ||
3746 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3747 | See \`config.log' for more details." >&5 | ||
3748 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3749 | See \`config.log' for more details." >&2;} | ||
3750 | { (exit 1); exit 1; }; } | ||
3751 | fi | ||
3752 | |||
3753 | ac_ext=c | ||
3754 | ac_cpp='$CPP $CPPFLAGS' | ||
3755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3758 | |||
3759 | |||
3760 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3761 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
3762 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3764 | else | ||
3765 | # Extract the first word of "grep ggrep" to use in msg output | ||
3766 | if test -z "$GREP"; then | ||
3767 | set dummy grep ggrep; ac_prog_name=$2 | ||
3768 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3770 | else | ||
3771 | ac_path_GREP_found=false | ||
3772 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3774 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3775 | do | ||
3776 | IFS=$as_save_IFS | ||
3777 | test -z "$as_dir" && as_dir=. | ||
3778 | for ac_prog in grep ggrep; do | ||
3779 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3780 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3781 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3782 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3783 | # Check for GNU $ac_path_GREP | ||
3784 | case `"$ac_path_GREP" --version 2>&1` in | ||
3785 | *GNU*) | ||
3786 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3787 | *) | ||
3788 | ac_count=0 | ||
3789 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3790 | while : | ||
3791 | do | ||
3792 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3793 | mv "conftest.tmp" "conftest.in" | ||
3794 | cp "conftest.in" "conftest.nl" | ||
3795 | echo 'GREP' >> "conftest.nl" | ||
3796 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3797 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3798 | ac_count=`expr $ac_count + 1` | ||
3799 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3800 | # Best one so far, save it but keep looking for a better one | ||
3801 | ac_cv_path_GREP="$ac_path_GREP" | ||
3802 | ac_path_GREP_max=$ac_count | ||
3803 | fi | ||
3804 | # 10*(2^10) chars as input seems more than enough | ||
3805 | test $ac_count -gt 10 && break | ||
3806 | done | ||
3807 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3808 | esac | ||
3809 | |||
3810 | |||
3811 | $ac_path_GREP_found && break 3 | ||
3812 | done | ||
3813 | done | ||
3814 | |||
3815 | done | ||
3816 | IFS=$as_save_IFS | ||
3817 | |||
3818 | |||
3819 | fi | ||
3820 | |||
3821 | GREP="$ac_cv_path_GREP" | ||
3822 | if test -z "$GREP"; then | ||
3823 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3824 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3825 | { (exit 1); exit 1; }; } | ||
3826 | fi | ||
3827 | |||
3828 | else | ||
3829 | ac_cv_path_GREP=$GREP | ||
3830 | fi | ||
3831 | |||
3832 | |||
3833 | fi | ||
3834 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3835 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
3836 | GREP="$ac_cv_path_GREP" | ||
3837 | |||
3838 | |||
3839 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3840 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
3841 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3843 | else | ||
3844 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3845 | then ac_cv_path_EGREP="$GREP -E" | ||
3846 | else | ||
3847 | # Extract the first word of "egrep" to use in msg output | ||
3848 | if test -z "$EGREP"; then | ||
3849 | set dummy egrep; ac_prog_name=$2 | ||
3850 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3852 | else | ||
3853 | ac_path_EGREP_found=false | ||
3854 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3856 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3857 | do | ||
3858 | IFS=$as_save_IFS | ||
3859 | test -z "$as_dir" && as_dir=. | ||
3860 | for ac_prog in egrep; do | ||
3861 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3862 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3863 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3864 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3865 | # Check for GNU $ac_path_EGREP | ||
3866 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3867 | *GNU*) | ||
3868 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3869 | *) | ||
3870 | ac_count=0 | ||
3871 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
3872 | while : | ||
3873 | do | ||
3874 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3875 | mv "conftest.tmp" "conftest.in" | ||
3876 | cp "conftest.in" "conftest.nl" | ||
3877 | echo 'EGREP' >> "conftest.nl" | ||
3878 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3879 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3880 | ac_count=`expr $ac_count + 1` | ||
3881 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3882 | # Best one so far, save it but keep looking for a better one | ||
3883 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3884 | ac_path_EGREP_max=$ac_count | ||
3885 | fi | ||
3886 | # 10*(2^10) chars as input seems more than enough | ||
3887 | test $ac_count -gt 10 && break | ||
3888 | done | ||
3889 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3890 | esac | ||
3891 | |||
3892 | |||
3893 | $ac_path_EGREP_found && break 3 | ||
3894 | done | ||
3895 | done | ||
3896 | |||
3897 | done | ||
3898 | IFS=$as_save_IFS | ||
3899 | |||
3900 | |||
3901 | fi | ||
3902 | |||
3903 | EGREP="$ac_cv_path_EGREP" | ||
3904 | if test -z "$EGREP"; then | ||
3905 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3906 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3907 | { (exit 1); exit 1; }; } | ||
3908 | fi | ||
3909 | |||
3910 | else | ||
3911 | ac_cv_path_EGREP=$EGREP | ||
3912 | fi | ||
3913 | |||
3914 | |||
3915 | fi | ||
3916 | fi | ||
3917 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3918 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
3919 | EGREP="$ac_cv_path_EGREP" | ||
3920 | |||
3921 | |||
3922 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3923 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
3924 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3926 | else | ||
3927 | cat >conftest.$ac_ext <<_ACEOF | ||
3928 | /* confdefs.h. */ | ||
3929 | _ACEOF | ||
3930 | cat confdefs.h >>conftest.$ac_ext | ||
3931 | cat >>conftest.$ac_ext <<_ACEOF | ||
3932 | /* end confdefs.h. */ | ||
3933 | #include <stdlib.h> | ||
3934 | #include <stdarg.h> | ||
3935 | #include <string.h> | ||
3936 | #include <float.h> | ||
3937 | |||
3938 | int | ||
3939 | main () | ||
3940 | { | ||
3941 | |||
3942 | ; | ||
3943 | return 0; | ||
3944 | } | ||
3945 | _ACEOF | ||
3946 | rm -f conftest.$ac_objext | ||
3947 | if { (ac_try="$ac_compile" | ||
3948 | case "(($ac_try" in | ||
3949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3950 | *) ac_try_echo=$ac_try;; | ||
3951 | esac | ||
3952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3953 | (eval "$ac_compile") 2>conftest.er1 | ||
3954 | ac_status=$? | ||
3955 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3956 | rm -f conftest.er1 | ||
3957 | cat conftest.err >&5 | ||
3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3959 | (exit $ac_status); } && { | ||
3960 | test -z "$ac_c_werror_flag" || | ||
3961 | test ! -s conftest.err | ||
3962 | } && test -s conftest.$ac_objext; then | ||
3963 | ac_cv_header_stdc=yes | ||
3964 | else | ||
3965 | echo "$as_me: failed program was:" >&5 | ||
3966 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3967 | |||
3968 | ac_cv_header_stdc=no | ||
3969 | fi | ||
3970 | |||
3971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3972 | |||
3973 | if test $ac_cv_header_stdc = yes; then | ||
3974 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3975 | cat >conftest.$ac_ext <<_ACEOF | ||
3976 | /* confdefs.h. */ | ||
3977 | _ACEOF | ||
3978 | cat confdefs.h >>conftest.$ac_ext | ||
3979 | cat >>conftest.$ac_ext <<_ACEOF | ||
3980 | /* end confdefs.h. */ | ||
3981 | #include <string.h> | ||
3982 | |||
3983 | _ACEOF | ||
3984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3985 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3986 | : | ||
3987 | else | ||
3988 | ac_cv_header_stdc=no | ||
3989 | fi | ||
3990 | rm -f conftest* | ||
3991 | |||
3992 | fi | ||
3993 | |||
3994 | if test $ac_cv_header_stdc = yes; then | ||
3995 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3996 | cat >conftest.$ac_ext <<_ACEOF | ||
3997 | /* confdefs.h. */ | ||
3998 | _ACEOF | ||
3999 | cat confdefs.h >>conftest.$ac_ext | ||
4000 | cat >>conftest.$ac_ext <<_ACEOF | ||
4001 | /* end confdefs.h. */ | ||
4002 | #include <stdlib.h> | ||
4003 | |||
4004 | _ACEOF | ||
4005 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4006 | $EGREP "free" >/dev/null 2>&1; then | ||
4007 | : | ||
4008 | else | ||
4009 | ac_cv_header_stdc=no | ||
4010 | fi | ||
4011 | rm -f conftest* | ||
4012 | |||
4013 | fi | ||
4014 | |||
4015 | if test $ac_cv_header_stdc = yes; then | ||
4016 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4017 | if test "$cross_compiling" = yes; then | ||
4018 | : | ||
4019 | else | ||
4020 | cat >conftest.$ac_ext <<_ACEOF | ||
4021 | /* confdefs.h. */ | ||
4022 | _ACEOF | ||
4023 | cat confdefs.h >>conftest.$ac_ext | ||
4024 | cat >>conftest.$ac_ext <<_ACEOF | ||
4025 | /* end confdefs.h. */ | ||
4026 | #include <ctype.h> | ||
4027 | #include <stdlib.h> | ||
4028 | #if ((' ' & 0x0FF) == 0x020) | ||
4029 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4030 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4031 | #else | ||
4032 | # define ISLOWER(c) \ | ||
4033 | (('a' <= (c) && (c) <= 'i') \ | ||
4034 | || ('j' <= (c) && (c) <= 'r') \ | ||
4035 | || ('s' <= (c) && (c) <= 'z')) | ||
4036 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4037 | #endif | ||
4038 | |||
4039 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4040 | int | ||
4041 | main () | ||
4042 | { | ||
4043 | int i; | ||
4044 | for (i = 0; i < 256; i++) | ||
4045 | if (XOR (islower (i), ISLOWER (i)) | ||
4046 | || toupper (i) != TOUPPER (i)) | ||
4047 | return 2; | ||
4048 | return 0; | ||
4049 | } | ||
4050 | _ACEOF | ||
4051 | rm -f conftest$ac_exeext | ||
4052 | if { (ac_try="$ac_link" | ||
4053 | case "(($ac_try" in | ||
4054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4055 | *) ac_try_echo=$ac_try;; | ||
4056 | esac | ||
4057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4058 | (eval "$ac_link") 2>&5 | ||
4059 | ac_status=$? | ||
4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4061 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4062 | { (case "(($ac_try" in | ||
4063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4064 | *) ac_try_echo=$ac_try;; | ||
4065 | esac | ||
4066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4067 | (eval "$ac_try") 2>&5 | ||
4068 | ac_status=$? | ||
4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4070 | (exit $ac_status); }; }; then | ||
4071 | : | ||
4072 | else | ||
4073 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4074 | echo "$as_me: failed program was:" >&5 | ||
4075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4076 | |||
4077 | ( exit $ac_status ) | ||
4078 | ac_cv_header_stdc=no | ||
4079 | fi | ||
4080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4081 | fi | ||
4082 | |||
4083 | |||
4084 | fi | ||
4085 | fi | ||
4086 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
4087 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
4088 | if test $ac_cv_header_stdc = yes; then | ||
4089 | |||
4090 | cat >>confdefs.h <<\_ACEOF | ||
4091 | #define STDC_HEADERS 1 | ||
4092 | _ACEOF | ||
4093 | |||
4094 | fi | ||
4095 | |||
4096 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4097 | |||
4098 | |||
4099 | |||
4100 | |||
4101 | |||
4102 | |||
4103 | |||
4104 | |||
4105 | |||
4106 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4107 | inttypes.h stdint.h unistd.h | ||
4108 | do | ||
4109 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4110 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
4112 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
4113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4114 | else | ||
4115 | cat >conftest.$ac_ext <<_ACEOF | ||
4116 | /* confdefs.h. */ | ||
4117 | _ACEOF | ||
4118 | cat confdefs.h >>conftest.$ac_ext | ||
4119 | cat >>conftest.$ac_ext <<_ACEOF | ||
4120 | /* end confdefs.h. */ | ||
4121 | $ac_includes_default | ||
4122 | |||
4123 | #include <$ac_header> | ||
4124 | _ACEOF | ||
4125 | rm -f conftest.$ac_objext | ||
4126 | if { (ac_try="$ac_compile" | ||
4127 | case "(($ac_try" in | ||
4128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4129 | *) ac_try_echo=$ac_try;; | ||
4130 | esac | ||
4131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4132 | (eval "$ac_compile") 2>conftest.er1 | ||
4133 | ac_status=$? | ||
4134 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4135 | rm -f conftest.er1 | ||
4136 | cat conftest.err >&5 | ||
4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4138 | (exit $ac_status); } && { | ||
4139 | test -z "$ac_c_werror_flag" || | ||
4140 | test ! -s conftest.err | ||
4141 | } && test -s conftest.$ac_objext; then | ||
4142 | eval "$as_ac_Header=yes" | ||
4143 | else | ||
4144 | echo "$as_me: failed program was:" >&5 | ||
4145 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4146 | |||
4147 | eval "$as_ac_Header=no" | ||
4148 | fi | ||
4149 | |||
4150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4151 | fi | ||
4152 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
4153 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
4154 | echo "${ECHO_T}$ac_res" >&6; } | ||
4155 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4156 | cat >>confdefs.h <<_ACEOF | ||
4157 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4158 | _ACEOF | ||
4159 | |||
4160 | fi | ||
4161 | |||
4162 | done | ||
4163 | |||
4164 | |||
4165 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
4166 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | ||
4167 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
4168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4169 | else | ||
4170 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
4171 | cat >conftest.$ac_ext <<_ACEOF | ||
4172 | /* confdefs.h. */ | ||
4173 | _ACEOF | ||
4174 | cat confdefs.h >>conftest.$ac_ext | ||
4175 | cat >>conftest.$ac_ext <<_ACEOF | ||
4176 | /* end confdefs.h. */ | ||
4177 | #include <sys/types.h> | ||
4178 | #include <sys/param.h> | ||
4179 | |||
4180 | int | ||
4181 | main () | ||
4182 | { | ||
4183 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ | ||
4184 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | ||
4185 | bogus endian macros | ||
4186 | #endif | ||
4187 | |||
4188 | ; | ||
4189 | return 0; | ||
4190 | } | ||
4191 | _ACEOF | ||
4192 | rm -f conftest.$ac_objext | ||
4193 | if { (ac_try="$ac_compile" | ||
4194 | case "(($ac_try" in | ||
4195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4196 | *) ac_try_echo=$ac_try;; | ||
4197 | esac | ||
4198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4199 | (eval "$ac_compile") 2>conftest.er1 | ||
4200 | ac_status=$? | ||
4201 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4202 | rm -f conftest.er1 | ||
4203 | cat conftest.err >&5 | ||
4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4205 | (exit $ac_status); } && { | ||
4206 | test -z "$ac_c_werror_flag" || | ||
4207 | test ! -s conftest.err | ||
4208 | } && test -s conftest.$ac_objext; then | ||
4209 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
4210 | cat >conftest.$ac_ext <<_ACEOF | ||
4211 | /* confdefs.h. */ | ||
4212 | _ACEOF | ||
4213 | cat confdefs.h >>conftest.$ac_ext | ||
4214 | cat >>conftest.$ac_ext <<_ACEOF | ||
4215 | /* end confdefs.h. */ | ||
4216 | #include <sys/types.h> | ||
4217 | #include <sys/param.h> | ||
4218 | |||
4219 | int | ||
4220 | main () | ||
4221 | { | ||
4222 | #if BYTE_ORDER != BIG_ENDIAN | ||
4223 | not big endian | ||
4224 | #endif | ||
4225 | |||
4226 | ; | ||
4227 | return 0; | ||
4228 | } | ||
4229 | _ACEOF | ||
4230 | rm -f conftest.$ac_objext | ||
4231 | if { (ac_try="$ac_compile" | ||
4232 | case "(($ac_try" in | ||
4233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4234 | *) ac_try_echo=$ac_try;; | ||
4235 | esac | ||
4236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4237 | (eval "$ac_compile") 2>conftest.er1 | ||
4238 | ac_status=$? | ||
4239 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4240 | rm -f conftest.er1 | ||
4241 | cat conftest.err >&5 | ||
4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4243 | (exit $ac_status); } && { | ||
4244 | test -z "$ac_c_werror_flag" || | ||
4245 | test ! -s conftest.err | ||
4246 | } && test -s conftest.$ac_objext; then | ||
4247 | ac_cv_c_bigendian=yes | ||
4248 | else | ||
4249 | echo "$as_me: failed program was:" >&5 | ||
4250 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4251 | |||
4252 | ac_cv_c_bigendian=no | ||
4253 | fi | ||
4254 | |||
4255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4256 | else | ||
4257 | echo "$as_me: failed program was:" >&5 | ||
4258 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4259 | |||
4260 | # It does not; compile a test program. | ||
4261 | if test "$cross_compiling" = yes; then | ||
4262 | # try to guess the endianness by grepping values into an object file | ||
4263 | ac_cv_c_bigendian=unknown | ||
4264 | cat >conftest.$ac_ext <<_ACEOF | ||
4265 | /* confdefs.h. */ | ||
4266 | _ACEOF | ||
4267 | cat confdefs.h >>conftest.$ac_ext | ||
4268 | cat >>conftest.$ac_ext <<_ACEOF | ||
4269 | /* end confdefs.h. */ | ||
4270 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
4271 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
4272 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | ||
4273 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
4274 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
4275 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | ||
4276 | int | ||
4277 | main () | ||
4278 | { | ||
4279 | _ascii (); _ebcdic (); | ||
4280 | ; | ||
4281 | return 0; | ||
4282 | } | ||
4283 | _ACEOF | ||
4284 | rm -f conftest.$ac_objext | ||
4285 | if { (ac_try="$ac_compile" | ||
4286 | case "(($ac_try" in | ||
4287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4288 | *) ac_try_echo=$ac_try;; | ||
4289 | esac | ||
4290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4291 | (eval "$ac_compile") 2>conftest.er1 | ||
4292 | ac_status=$? | ||
4293 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4294 | rm -f conftest.er1 | ||
4295 | cat conftest.err >&5 | ||
4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4297 | (exit $ac_status); } && { | ||
4298 | test -z "$ac_c_werror_flag" || | ||
4299 | test ! -s conftest.err | ||
4300 | } && test -s conftest.$ac_objext; then | ||
4301 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | ||
4302 | ac_cv_c_bigendian=yes | ||
4303 | fi | ||
4304 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
4305 | if test "$ac_cv_c_bigendian" = unknown; then | ||
4306 | ac_cv_c_bigendian=no | ||
4307 | else | ||
4308 | # finding both strings is unlikely to happen, but who knows? | ||
4309 | ac_cv_c_bigendian=unknown | ||
4310 | fi | ||
4311 | fi | ||
4312 | else | ||
4313 | echo "$as_me: failed program was:" >&5 | ||
4314 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4315 | |||
4316 | |||
4317 | fi | ||
4318 | |||
4319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4320 | else | ||
4321 | cat >conftest.$ac_ext <<_ACEOF | ||
4322 | /* confdefs.h. */ | ||
4323 | _ACEOF | ||
4324 | cat confdefs.h >>conftest.$ac_ext | ||
4325 | cat >>conftest.$ac_ext <<_ACEOF | ||
4326 | /* end confdefs.h. */ | ||
4327 | $ac_includes_default | ||
4328 | int | ||
4329 | main () | ||
4330 | { | ||
4331 | |||
4332 | /* Are we little or big endian? From Harbison&Steele. */ | ||
4333 | union | ||
4334 | { | ||
4335 | long int l; | ||
4336 | char c[sizeof (long int)]; | ||
4337 | } u; | ||
4338 | u.l = 1; | ||
4339 | return u.c[sizeof (long int) - 1] == 1; | ||
4340 | |||
4341 | ; | ||
4342 | return 0; | ||
4343 | } | ||
4344 | _ACEOF | ||
4345 | rm -f conftest$ac_exeext | ||
4346 | if { (ac_try="$ac_link" | ||
4347 | case "(($ac_try" in | ||
4348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4349 | *) ac_try_echo=$ac_try;; | ||
4350 | esac | ||
4351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4352 | (eval "$ac_link") 2>&5 | ||
4353 | ac_status=$? | ||
4354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4355 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4356 | { (case "(($ac_try" in | ||
4357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4358 | *) ac_try_echo=$ac_try;; | ||
4359 | esac | ||
4360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4361 | (eval "$ac_try") 2>&5 | ||
4362 | ac_status=$? | ||
4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4364 | (exit $ac_status); }; }; then | ||
4365 | ac_cv_c_bigendian=no | ||
4366 | else | ||
4367 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4368 | echo "$as_me: failed program was:" >&5 | ||
4369 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4370 | |||
4371 | ( exit $ac_status ) | ||
4372 | ac_cv_c_bigendian=yes | ||
4373 | fi | ||
4374 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4375 | fi | ||
4376 | |||
4377 | |||
4378 | fi | ||
4379 | |||
4380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4381 | fi | ||
4382 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
4383 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | ||
4384 | case $ac_cv_c_bigendian in | ||
4385 | yes) | ||
4386 | |||
4387 | cat >>confdefs.h <<\_ACEOF | ||
4388 | #define WORDS_BIGENDIAN 1 | ||
4389 | _ACEOF | ||
4390 | ;; | ||
4391 | no) | ||
4392 | ;; | ||
4393 | *) | ||
4394 | { { echo "$as_me:$LINENO: error: unknown endianness | ||
4395 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
4396 | echo "$as_me: error: unknown endianness | ||
4397 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
4398 | { (exit 1); exit 1; }; } ;; | ||
4399 | esac | ||
4400 | |||
4401 | { echo "$as_me:$LINENO: checking for X" >&5 | ||
4402 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | ||
4403 | |||
4404 | |||
4405 | # Check whether --with-x was given. | ||
4406 | if test "${with_x+set}" = set; then | ||
4407 | withval=$with_x; | ||
4408 | fi | ||
4409 | |||
4410 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | ||
4411 | if test "x$with_x" = xno; then | ||
4412 | # The user explicitly disabled X. | ||
4413 | have_x=disabled | ||
4414 | else | ||
4415 | case $x_includes,$x_libraries in #( | ||
4416 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | ||
4417 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | ||
4418 | { (exit 1); exit 1; }; };; #( | ||
4419 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | ||
4420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4421 | else | ||
4422 | # One or both of the vars are not set, and there is no cached value. | ||
4423 | ac_x_includes=no ac_x_libraries=no | ||
4424 | rm -f -r conftest.dir | ||
4425 | if mkdir conftest.dir; then | ||
4426 | cd conftest.dir | ||
4427 | cat >Imakefile <<'_ACEOF' | ||
4428 | incroot: | ||
4429 | @echo incroot='${INCROOT}' | ||
4430 | usrlibdir: | ||
4431 | @echo usrlibdir='${USRLIBDIR}' | ||
4432 | libdir: | ||
4433 | @echo libdir='${LIBDIR}' | ||
4434 | _ACEOF | ||
4435 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | ||
4436 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
4437 | for ac_var in incroot usrlibdir libdir; do | ||
4438 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | ||
4439 | done | ||
4440 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | ||
4441 | for ac_extension in a so sl; do | ||
4442 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | ||
4443 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | ||
4444 | ac_im_usrlibdir=$ac_im_libdir; break | ||
4445 | fi | ||
4446 | done | ||
4447 | # Screen out bogus values from the imake configuration. They are | ||
4448 | # bogus both because they are the default anyway, and because | ||
4449 | # using them would break gcc on systems where it needs fixed includes. | ||
4450 | case $ac_im_incroot in | ||
4451 | /usr/include) ac_x_includes= ;; | ||
4452 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | ||
4453 | esac | ||
4454 | case $ac_im_usrlibdir in | ||
4455 | /usr/lib | /lib) ;; | ||
4456 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | ||
4457 | esac | ||
4458 | fi | ||
4459 | cd .. | ||
4460 | rm -f -r conftest.dir | ||
4461 | fi | ||
4462 | |||
4463 | # Standard set of common directories for X headers. | ||
4464 | # Check X11 before X11Rn because it is often a symlink to the current release. | ||
4465 | ac_x_header_dirs=' | ||
4466 | /usr/X11/include | ||
4467 | /usr/X11R6/include | ||
4468 | /usr/X11R5/include | ||
4469 | /usr/X11R4/include | ||
4470 | |||
4471 | /usr/include/X11 | ||
4472 | /usr/include/X11R6 | ||
4473 | /usr/include/X11R5 | ||
4474 | /usr/include/X11R4 | ||
4475 | |||
4476 | /usr/local/X11/include | ||
4477 | /usr/local/X11R6/include | ||
4478 | /usr/local/X11R5/include | ||
4479 | /usr/local/X11R4/include | ||
4480 | |||
4481 | /usr/local/include/X11 | ||
4482 | /usr/local/include/X11R6 | ||
4483 | /usr/local/include/X11R5 | ||
4484 | /usr/local/include/X11R4 | ||
4485 | |||
4486 | /usr/X386/include | ||
4487 | /usr/x386/include | ||
4488 | /usr/XFree86/include/X11 | ||
4489 | |||
4490 | /usr/include | ||
4491 | /usr/local/include | ||
4492 | /usr/unsupported/include | ||
4493 | /usr/athena/include | ||
4494 | /usr/local/x11r5/include | ||
4495 | /usr/lpp/Xamples/include | ||
4496 | |||
4497 | /usr/openwin/include | ||
4498 | /usr/openwin/share/include' | ||
4499 | |||
4500 | if test "$ac_x_includes" = no; then | ||
4501 | # Guess where to find include files, by looking for Xlib.h. | ||
4502 | # First, try using that file with no special directory specified. | ||
4503 | cat >conftest.$ac_ext <<_ACEOF | ||
4504 | /* confdefs.h. */ | ||
4505 | _ACEOF | ||
4506 | cat confdefs.h >>conftest.$ac_ext | ||
4507 | cat >>conftest.$ac_ext <<_ACEOF | ||
4508 | /* end confdefs.h. */ | ||
4509 | #include <X11/Xlib.h> | ||
4510 | _ACEOF | ||
4511 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
4512 | case "(($ac_try" in | ||
4513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4514 | *) ac_try_echo=$ac_try;; | ||
4515 | esac | ||
4516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4517 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
4518 | ac_status=$? | ||
4519 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4520 | rm -f conftest.er1 | ||
4521 | cat conftest.err >&5 | ||
4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4523 | (exit $ac_status); } >/dev/null && { | ||
4524 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
4525 | test ! -s conftest.err | ||
4526 | }; then | ||
4527 | # We can compile using X headers with no special include directory. | ||
4528 | ac_x_includes= | ||
4529 | else | ||
4530 | echo "$as_me: failed program was:" >&5 | ||
4531 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4532 | |||
4533 | for ac_dir in $ac_x_header_dirs; do | ||
4534 | if test -r "$ac_dir/X11/Xlib.h"; then | ||
4535 | ac_x_includes=$ac_dir | ||
4536 | break | ||
4537 | fi | ||
4538 | done | ||
4539 | fi | ||
4540 | |||
4541 | rm -f conftest.err conftest.$ac_ext | ||
4542 | fi # $ac_x_includes = no | ||
4543 | |||
4544 | if test "$ac_x_libraries" = no; then | ||
4545 | # Check for the libraries. | ||
4546 | # See if we find them without any special options. | ||
4547 | # Don't add to $LIBS permanently. | ||
4548 | ac_save_LIBS=$LIBS | ||
4549 | LIBS="-lX11 $LIBS" | ||
4550 | cat >conftest.$ac_ext <<_ACEOF | ||
4551 | /* confdefs.h. */ | ||
4552 | _ACEOF | ||
4553 | cat confdefs.h >>conftest.$ac_ext | ||
4554 | cat >>conftest.$ac_ext <<_ACEOF | ||
4555 | /* end confdefs.h. */ | ||
4556 | #include <X11/Xlib.h> | ||
4557 | int | ||
4558 | main () | ||
4559 | { | ||
4560 | XrmInitialize () | ||
4561 | ; | ||
4562 | return 0; | ||
4563 | } | ||
4564 | _ACEOF | ||
4565 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4566 | if { (ac_try="$ac_link" | ||
4567 | case "(($ac_try" in | ||
4568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4569 | *) ac_try_echo=$ac_try;; | ||
4570 | esac | ||
4571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4572 | (eval "$ac_link") 2>conftest.er1 | ||
4573 | ac_status=$? | ||
4574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4575 | rm -f conftest.er1 | ||
4576 | cat conftest.err >&5 | ||
4577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4578 | (exit $ac_status); } && { | ||
4579 | test -z "$ac_c_werror_flag" || | ||
4580 | test ! -s conftest.err | ||
4581 | } && test -s conftest$ac_exeext && | ||
4582 | $as_test_x conftest$ac_exeext; then | ||
4583 | LIBS=$ac_save_LIBS | ||
4584 | # We can link X programs with no special library path. | ||
4585 | ac_x_libraries= | ||
4586 | else | ||
4587 | echo "$as_me: failed program was:" >&5 | ||
4588 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4589 | |||
4590 | LIBS=$ac_save_LIBS | ||
4591 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | ||
4592 | do | ||
4593 | # Don't even attempt the hair of trying to link an X program! | ||
4594 | for ac_extension in a so sl; do | ||
4595 | if test -r "$ac_dir/libX11.$ac_extension"; then | ||
4596 | ac_x_libraries=$ac_dir | ||
4597 | break 2 | ||
4598 | fi | ||
4599 | done | ||
4600 | done | ||
4601 | fi | ||
4602 | |||
4603 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4604 | conftest$ac_exeext conftest.$ac_ext | ||
4605 | fi # $ac_x_libraries = no | ||
4606 | |||
4607 | case $ac_x_includes,$ac_x_libraries in #( | ||
4608 | no,* | *,no | *\'*) | ||
4609 | # Didn't find X, or a directory has "'" in its name. | ||
4610 | ac_cv_have_x="have_x=no";; #( | ||
4611 | *) | ||
4612 | # Record where we found X for the cache. | ||
4613 | ac_cv_have_x="have_x=yes\ | ||
4614 | ac_x_includes='$ac_x_includes'\ | ||
4615 | ac_x_libraries='$ac_x_libraries'" | ||
4616 | esac | ||
4617 | fi | ||
4618 | ;; #( | ||
4619 | *) have_x=yes;; | ||
4620 | esac | ||
4621 | eval "$ac_cv_have_x" | ||
4622 | fi # $with_x != no | ||
4623 | |||
4624 | if test "$have_x" != yes; then | ||
4625 | { echo "$as_me:$LINENO: result: $have_x" >&5 | ||
4626 | echo "${ECHO_T}$have_x" >&6; } | ||
4627 | no_x=yes | ||
4628 | else | ||
4629 | # If each of the values was on the command line, it overrides each guess. | ||
4630 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | ||
4631 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | ||
4632 | # Update the cache value to reflect the command line values. | ||
4633 | ac_cv_have_x="have_x=yes\ | ||
4634 | ac_x_includes='$x_includes'\ | ||
4635 | ac_x_libraries='$x_libraries'" | ||
4636 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | ||
4637 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | ||
4638 | fi | ||
4639 | |||
4640 | if test "$no_x" = yes; then | ||
4641 | # Not all programs may use this symbol, but it does not hurt to define it. | ||
4642 | |||
4643 | cat >>confdefs.h <<\_ACEOF | ||
4644 | #define X_DISPLAY_MISSING 1 | ||
4645 | _ACEOF | ||
4646 | |||
4647 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | ||
4648 | else | ||
4649 | if test -n "$x_includes"; then | ||
4650 | X_CFLAGS="$X_CFLAGS -I$x_includes" | ||
4651 | fi | ||
4652 | |||
4653 | # It would also be nice to do this for all -L options, not just this one. | ||
4654 | if test -n "$x_libraries"; then | ||
4655 | X_LIBS="$X_LIBS -L$x_libraries" | ||
4656 | # For Solaris; some versions of Sun CC require a space after -R and | ||
4657 | # others require no space. Words are not sufficient . . . . | ||
4658 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | ||
4659 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } | ||
4660 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | ||
4661 | ac_xsave_c_werror_flag=$ac_c_werror_flag | ||
4662 | ac_c_werror_flag=yes | ||
4663 | cat >conftest.$ac_ext <<_ACEOF | ||
4664 | /* confdefs.h. */ | ||
4665 | _ACEOF | ||
4666 | cat confdefs.h >>conftest.$ac_ext | ||
4667 | cat >>conftest.$ac_ext <<_ACEOF | ||
4668 | /* end confdefs.h. */ | ||
4669 | |||
4670 | int | ||
4671 | main () | ||
4672 | { | ||
4673 | |||
4674 | ; | ||
4675 | return 0; | ||
4676 | } | ||
4677 | _ACEOF | ||
4678 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4679 | if { (ac_try="$ac_link" | ||
4680 | case "(($ac_try" in | ||
4681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4682 | *) ac_try_echo=$ac_try;; | ||
4683 | esac | ||
4684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4685 | (eval "$ac_link") 2>conftest.er1 | ||
4686 | ac_status=$? | ||
4687 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4688 | rm -f conftest.er1 | ||
4689 | cat conftest.err >&5 | ||
4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4691 | (exit $ac_status); } && { | ||
4692 | test -z "$ac_c_werror_flag" || | ||
4693 | test ! -s conftest.err | ||
4694 | } && test -s conftest$ac_exeext && | ||
4695 | $as_test_x conftest$ac_exeext; then | ||
4696 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4697 | echo "${ECHO_T}no" >&6; } | ||
4698 | X_LIBS="$X_LIBS -R$x_libraries" | ||
4699 | else | ||
4700 | echo "$as_me: failed program was:" >&5 | ||
4701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4702 | |||
4703 | LIBS="$ac_xsave_LIBS -R $x_libraries" | ||
4704 | cat >conftest.$ac_ext <<_ACEOF | ||
4705 | /* confdefs.h. */ | ||
4706 | _ACEOF | ||
4707 | cat confdefs.h >>conftest.$ac_ext | ||
4708 | cat >>conftest.$ac_ext <<_ACEOF | ||
4709 | /* end confdefs.h. */ | ||
4710 | |||
4711 | int | ||
4712 | main () | ||
4713 | { | ||
4714 | |||
4715 | ; | ||
4716 | return 0; | ||
4717 | } | ||
4718 | _ACEOF | ||
4719 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4720 | if { (ac_try="$ac_link" | ||
4721 | case "(($ac_try" in | ||
4722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4723 | *) ac_try_echo=$ac_try;; | ||
4724 | esac | ||
4725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4726 | (eval "$ac_link") 2>conftest.er1 | ||
4727 | ac_status=$? | ||
4728 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4729 | rm -f conftest.er1 | ||
4730 | cat conftest.err >&5 | ||
4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4732 | (exit $ac_status); } && { | ||
4733 | test -z "$ac_c_werror_flag" || | ||
4734 | test ! -s conftest.err | ||
4735 | } && test -s conftest$ac_exeext && | ||
4736 | $as_test_x conftest$ac_exeext; then | ||
4737 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
4738 | echo "${ECHO_T}yes" >&6; } | ||
4739 | X_LIBS="$X_LIBS -R $x_libraries" | ||
4740 | else | ||
4741 | echo "$as_me: failed program was:" >&5 | ||
4742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4743 | |||
4744 | { echo "$as_me:$LINENO: result: neither works" >&5 | ||
4745 | echo "${ECHO_T}neither works" >&6; } | ||
4746 | fi | ||
4747 | |||
4748 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4749 | conftest$ac_exeext conftest.$ac_ext | ||
4750 | fi | ||
4751 | |||
4752 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4753 | conftest$ac_exeext conftest.$ac_ext | ||
4754 | ac_c_werror_flag=$ac_xsave_c_werror_flag | ||
4755 | LIBS=$ac_xsave_LIBS | ||
4756 | fi | ||
4757 | |||
4758 | # Check for system-dependent libraries X programs must link with. | ||
4759 | # Do this before checking for the system-independent R6 libraries | ||
4760 | # (-lICE), since we may need -lsocket or whatever for X linking. | ||
4761 | |||
4762 | if test "$ISC" = yes; then | ||
4763 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | ||
4764 | else | ||
4765 | # Martyn Johnson says this is needed for Ultrix, if the X | ||
4766 | # libraries were built with DECnet support. And Karl Berry says | ||
4767 | # the Alpha needs dnet_stub (dnet does not exist). | ||
4768 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | ||
4769 | cat >conftest.$ac_ext <<_ACEOF | ||
4770 | /* confdefs.h. */ | ||
4771 | _ACEOF | ||
4772 | cat confdefs.h >>conftest.$ac_ext | ||
4773 | cat >>conftest.$ac_ext <<_ACEOF | ||
4774 | /* end confdefs.h. */ | ||
4775 | |||
4776 | /* Override any GCC internal prototype to avoid an error. | ||
4777 | Use char because int might match the return type of a GCC | ||
4778 | builtin and then its argument prototype would still apply. */ | ||
4779 | #ifdef __cplusplus | ||
4780 | extern "C" | ||
4781 | #endif | ||
4782 | char XOpenDisplay (); | ||
4783 | int | ||
4784 | main () | ||
4785 | { | ||
4786 | return XOpenDisplay (); | ||
4787 | ; | ||
4788 | return 0; | ||
4789 | } | ||
4790 | _ACEOF | ||
4791 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4792 | if { (ac_try="$ac_link" | ||
4793 | case "(($ac_try" in | ||
4794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4795 | *) ac_try_echo=$ac_try;; | ||
4796 | esac | ||
4797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4798 | (eval "$ac_link") 2>conftest.er1 | ||
4799 | ac_status=$? | ||
4800 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4801 | rm -f conftest.er1 | ||
4802 | cat conftest.err >&5 | ||
4803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4804 | (exit $ac_status); } && { | ||
4805 | test -z "$ac_c_werror_flag" || | ||
4806 | test ! -s conftest.err | ||
4807 | } && test -s conftest$ac_exeext && | ||
4808 | $as_test_x conftest$ac_exeext; then | ||
4809 | : | ||
4810 | else | ||
4811 | echo "$as_me: failed program was:" >&5 | ||
4812 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4813 | |||
4814 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | ||
4815 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | ||
4816 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | ||
4817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4818 | else | ||
4819 | ac_check_lib_save_LIBS=$LIBS | ||
4820 | LIBS="-ldnet $LIBS" | ||
4821 | cat >conftest.$ac_ext <<_ACEOF | ||
4822 | /* confdefs.h. */ | ||
4823 | _ACEOF | ||
4824 | cat confdefs.h >>conftest.$ac_ext | ||
4825 | cat >>conftest.$ac_ext <<_ACEOF | ||
4826 | /* end confdefs.h. */ | ||
4827 | |||
4828 | /* Override any GCC internal prototype to avoid an error. | ||
4829 | Use char because int might match the return type of a GCC | ||
4830 | builtin and then its argument prototype would still apply. */ | ||
4831 | #ifdef __cplusplus | ||
4832 | extern "C" | ||
4833 | #endif | ||
4834 | char dnet_ntoa (); | ||
4835 | int | ||
4836 | main () | ||
4837 | { | ||
4838 | return dnet_ntoa (); | ||
4839 | ; | ||
4840 | return 0; | ||
4841 | } | ||
4842 | _ACEOF | ||
4843 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4844 | if { (ac_try="$ac_link" | ||
4845 | case "(($ac_try" in | ||
4846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4847 | *) ac_try_echo=$ac_try;; | ||
4848 | esac | ||
4849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4850 | (eval "$ac_link") 2>conftest.er1 | ||
4851 | ac_status=$? | ||
4852 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4853 | rm -f conftest.er1 | ||
4854 | cat conftest.err >&5 | ||
4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4856 | (exit $ac_status); } && { | ||
4857 | test -z "$ac_c_werror_flag" || | ||
4858 | test ! -s conftest.err | ||
4859 | } && test -s conftest$ac_exeext && | ||
4860 | $as_test_x conftest$ac_exeext; then | ||
4861 | ac_cv_lib_dnet_dnet_ntoa=yes | ||
4862 | else | ||
4863 | echo "$as_me: failed program was:" >&5 | ||
4864 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4865 | |||
4866 | ac_cv_lib_dnet_dnet_ntoa=no | ||
4867 | fi | ||
4868 | |||
4869 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4870 | conftest$ac_exeext conftest.$ac_ext | ||
4871 | LIBS=$ac_check_lib_save_LIBS | ||
4872 | fi | ||
4873 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | ||
4874 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | ||
4875 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | ||
4876 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | ||
4877 | fi | ||
4878 | |||
4879 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | ||
4880 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | ||
4881 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } | ||
4882 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | ||
4883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4884 | else | ||
4885 | ac_check_lib_save_LIBS=$LIBS | ||
4886 | LIBS="-ldnet_stub $LIBS" | ||
4887 | cat >conftest.$ac_ext <<_ACEOF | ||
4888 | /* confdefs.h. */ | ||
4889 | _ACEOF | ||
4890 | cat confdefs.h >>conftest.$ac_ext | ||
4891 | cat >>conftest.$ac_ext <<_ACEOF | ||
4892 | /* end confdefs.h. */ | ||
4893 | |||
4894 | /* Override any GCC internal prototype to avoid an error. | ||
4895 | Use char because int might match the return type of a GCC | ||
4896 | builtin and then its argument prototype would still apply. */ | ||
4897 | #ifdef __cplusplus | ||
4898 | extern "C" | ||
4899 | #endif | ||
4900 | char dnet_ntoa (); | ||
4901 | int | ||
4902 | main () | ||
4903 | { | ||
4904 | return dnet_ntoa (); | ||
4905 | ; | ||
4906 | return 0; | ||
4907 | } | ||
4908 | _ACEOF | ||
4909 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4910 | if { (ac_try="$ac_link" | ||
4911 | case "(($ac_try" in | ||
4912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4913 | *) ac_try_echo=$ac_try;; | ||
4914 | esac | ||
4915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4916 | (eval "$ac_link") 2>conftest.er1 | ||
4917 | ac_status=$? | ||
4918 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4919 | rm -f conftest.er1 | ||
4920 | cat conftest.err >&5 | ||
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4922 | (exit $ac_status); } && { | ||
4923 | test -z "$ac_c_werror_flag" || | ||
4924 | test ! -s conftest.err | ||
4925 | } && test -s conftest$ac_exeext && | ||
4926 | $as_test_x conftest$ac_exeext; then | ||
4927 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | ||
4928 | else | ||
4929 | echo "$as_me: failed program was:" >&5 | ||
4930 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4931 | |||
4932 | ac_cv_lib_dnet_stub_dnet_ntoa=no | ||
4933 | fi | ||
4934 | |||
4935 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4936 | conftest$ac_exeext conftest.$ac_ext | ||
4937 | LIBS=$ac_check_lib_save_LIBS | ||
4938 | fi | ||
4939 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | ||
4940 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | ||
4941 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | ||
4942 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | ||
4943 | fi | ||
4944 | |||
4945 | fi | ||
4946 | fi | ||
4947 | |||
4948 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
4949 | conftest$ac_exeext conftest.$ac_ext | ||
4950 | LIBS="$ac_xsave_LIBS" | ||
4951 | |||
4952 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | ||
4953 | # to get the SysV transport functions. | ||
4954 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | ||
4955 | # needs -lnsl. | ||
4956 | # The nsl library prevents programs from opening the X display | ||
4957 | # on Irix 5.2, according to T.E. Dickey. | ||
4958 | # The functions gethostbyname, getservbyname, and inet_addr are | ||
4959 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | ||
4960 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 | ||
4961 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } | ||
4962 | if test "${ac_cv_func_gethostbyname+set}" = set; then | ||
4963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4964 | else | ||
4965 | cat >conftest.$ac_ext <<_ACEOF | ||
4966 | /* confdefs.h. */ | ||
4967 | _ACEOF | ||
4968 | cat confdefs.h >>conftest.$ac_ext | ||
4969 | cat >>conftest.$ac_ext <<_ACEOF | ||
4970 | /* end confdefs.h. */ | ||
4971 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | ||
4972 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
4973 | #define gethostbyname innocuous_gethostbyname | ||
4974 | |||
4975 | /* System header to define __stub macros and hopefully few prototypes, | ||
4976 | which can conflict with char gethostbyname (); below. | ||
4977 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4978 | <limits.h> exists even on freestanding compilers. */ | ||
4979 | |||
4980 | #ifdef __STDC__ | ||
4981 | # include <limits.h> | ||
4982 | #else | ||
4983 | # include <assert.h> | ||
4984 | #endif | ||
4985 | |||
4986 | #undef gethostbyname | ||
4987 | |||
4988 | /* Override any GCC internal prototype to avoid an error. | ||
4989 | Use char because int might match the return type of a GCC | ||
4990 | builtin and then its argument prototype would still apply. */ | ||
4991 | #ifdef __cplusplus | ||
4992 | extern "C" | ||
4993 | #endif | ||
4994 | char gethostbyname (); | ||
4995 | /* The GNU C library defines this for functions which it implements | ||
4996 | to always fail with ENOSYS. Some functions are actually named | ||
4997 | something starting with __ and the normal name is an alias. */ | ||
4998 | #if defined __stub_gethostbyname || defined __stub___gethostbyname | ||
4999 | choke me | ||
5000 | #endif | ||
5001 | |||
5002 | int | ||
5003 | main () | ||
5004 | { | ||
5005 | return gethostbyname (); | ||
5006 | ; | ||
5007 | return 0; | ||
5008 | } | ||
5009 | _ACEOF | ||
5010 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5011 | if { (ac_try="$ac_link" | ||
5012 | case "(($ac_try" in | ||
5013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5014 | *) ac_try_echo=$ac_try;; | ||
5015 | esac | ||
5016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5017 | (eval "$ac_link") 2>conftest.er1 | ||
5018 | ac_status=$? | ||
5019 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5020 | rm -f conftest.er1 | ||
5021 | cat conftest.err >&5 | ||
5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5023 | (exit $ac_status); } && { | ||
5024 | test -z "$ac_c_werror_flag" || | ||
5025 | test ! -s conftest.err | ||
5026 | } && test -s conftest$ac_exeext && | ||
5027 | $as_test_x conftest$ac_exeext; then | ||
5028 | ac_cv_func_gethostbyname=yes | ||
5029 | else | ||
5030 | echo "$as_me: failed program was:" >&5 | ||
5031 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5032 | |||
5033 | ac_cv_func_gethostbyname=no | ||
5034 | fi | ||
5035 | |||
5036 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5037 | conftest$ac_exeext conftest.$ac_ext | ||
5038 | fi | ||
5039 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | ||
5040 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } | ||
5041 | |||
5042 | if test $ac_cv_func_gethostbyname = no; then | ||
5043 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | ||
5044 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | ||
5045 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | ||
5046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5047 | else | ||
5048 | ac_check_lib_save_LIBS=$LIBS | ||
5049 | LIBS="-lnsl $LIBS" | ||
5050 | cat >conftest.$ac_ext <<_ACEOF | ||
5051 | /* confdefs.h. */ | ||
5052 | _ACEOF | ||
5053 | cat confdefs.h >>conftest.$ac_ext | ||
5054 | cat >>conftest.$ac_ext <<_ACEOF | ||
5055 | /* end confdefs.h. */ | ||
5056 | |||
5057 | /* Override any GCC internal prototype to avoid an error. | ||
5058 | Use char because int might match the return type of a GCC | ||
5059 | builtin and then its argument prototype would still apply. */ | ||
5060 | #ifdef __cplusplus | ||
5061 | extern "C" | ||
5062 | #endif | ||
5063 | char gethostbyname (); | ||
5064 | int | ||
5065 | main () | ||
5066 | { | ||
5067 | return gethostbyname (); | ||
5068 | ; | ||
5069 | return 0; | ||
5070 | } | ||
5071 | _ACEOF | ||
5072 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5073 | if { (ac_try="$ac_link" | ||
5074 | case "(($ac_try" in | ||
5075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5076 | *) ac_try_echo=$ac_try;; | ||
5077 | esac | ||
5078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5079 | (eval "$ac_link") 2>conftest.er1 | ||
5080 | ac_status=$? | ||
5081 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5082 | rm -f conftest.er1 | ||
5083 | cat conftest.err >&5 | ||
5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5085 | (exit $ac_status); } && { | ||
5086 | test -z "$ac_c_werror_flag" || | ||
5087 | test ! -s conftest.err | ||
5088 | } && test -s conftest$ac_exeext && | ||
5089 | $as_test_x conftest$ac_exeext; then | ||
5090 | ac_cv_lib_nsl_gethostbyname=yes | ||
5091 | else | ||
5092 | echo "$as_me: failed program was:" >&5 | ||
5093 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5094 | |||
5095 | ac_cv_lib_nsl_gethostbyname=no | ||
5096 | fi | ||
5097 | |||
5098 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5099 | conftest$ac_exeext conftest.$ac_ext | ||
5100 | LIBS=$ac_check_lib_save_LIBS | ||
5101 | fi | ||
5102 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | ||
5103 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | ||
5104 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | ||
5105 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | ||
5106 | fi | ||
5107 | |||
5108 | if test $ac_cv_lib_nsl_gethostbyname = no; then | ||
5109 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | ||
5110 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } | ||
5111 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | ||
5112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5113 | else | ||
5114 | ac_check_lib_save_LIBS=$LIBS | ||
5115 | LIBS="-lbsd $LIBS" | ||
5116 | cat >conftest.$ac_ext <<_ACEOF | ||
5117 | /* confdefs.h. */ | ||
5118 | _ACEOF | ||
5119 | cat confdefs.h >>conftest.$ac_ext | ||
5120 | cat >>conftest.$ac_ext <<_ACEOF | ||
5121 | /* end confdefs.h. */ | ||
5122 | |||
5123 | /* Override any GCC internal prototype to avoid an error. | ||
5124 | Use char because int might match the return type of a GCC | ||
5125 | builtin and then its argument prototype would still apply. */ | ||
5126 | #ifdef __cplusplus | ||
5127 | extern "C" | ||
5128 | #endif | ||
5129 | char gethostbyname (); | ||
5130 | int | ||
5131 | main () | ||
5132 | { | ||
5133 | return gethostbyname (); | ||
5134 | ; | ||
5135 | return 0; | ||
5136 | } | ||
5137 | _ACEOF | ||
5138 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5139 | if { (ac_try="$ac_link" | ||
5140 | case "(($ac_try" in | ||
5141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5142 | *) ac_try_echo=$ac_try;; | ||
5143 | esac | ||
5144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5145 | (eval "$ac_link") 2>conftest.er1 | ||
5146 | ac_status=$? | ||
5147 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5148 | rm -f conftest.er1 | ||
5149 | cat conftest.err >&5 | ||
5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5151 | (exit $ac_status); } && { | ||
5152 | test -z "$ac_c_werror_flag" || | ||
5153 | test ! -s conftest.err | ||
5154 | } && test -s conftest$ac_exeext && | ||
5155 | $as_test_x conftest$ac_exeext; then | ||
5156 | ac_cv_lib_bsd_gethostbyname=yes | ||
5157 | else | ||
5158 | echo "$as_me: failed program was:" >&5 | ||
5159 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5160 | |||
5161 | ac_cv_lib_bsd_gethostbyname=no | ||
5162 | fi | ||
5163 | |||
5164 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5165 | conftest$ac_exeext conftest.$ac_ext | ||
5166 | LIBS=$ac_check_lib_save_LIBS | ||
5167 | fi | ||
5168 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | ||
5169 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } | ||
5170 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | ||
5171 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | ||
5172 | fi | ||
5173 | |||
5174 | fi | ||
5175 | fi | ||
5176 | |||
5177 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | ||
5178 | # socket/setsockopt and other routines are undefined under SCO ODT | ||
5179 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | ||
5180 | # on later versions), says Simon Leinen: it contains gethostby* | ||
5181 | # variants that don't use the name server (or something). -lsocket | ||
5182 | # must be given before -lnsl if both are needed. We assume that | ||
5183 | # if connect needs -lnsl, so does gethostbyname. | ||
5184 | { echo "$as_me:$LINENO: checking for connect" >&5 | ||
5185 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } | ||
5186 | if test "${ac_cv_func_connect+set}" = set; then | ||
5187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5188 | else | ||
5189 | cat >conftest.$ac_ext <<_ACEOF | ||
5190 | /* confdefs.h. */ | ||
5191 | _ACEOF | ||
5192 | cat confdefs.h >>conftest.$ac_ext | ||
5193 | cat >>conftest.$ac_ext <<_ACEOF | ||
5194 | /* end confdefs.h. */ | ||
5195 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. | ||
5196 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5197 | #define connect innocuous_connect | ||
5198 | |||
5199 | /* System header to define __stub macros and hopefully few prototypes, | ||
5200 | which can conflict with char connect (); below. | ||
5201 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5202 | <limits.h> exists even on freestanding compilers. */ | ||
5203 | |||
5204 | #ifdef __STDC__ | ||
5205 | # include <limits.h> | ||
5206 | #else | ||
5207 | # include <assert.h> | ||
5208 | #endif | ||
5209 | |||
5210 | #undef connect | ||
5211 | |||
5212 | /* Override any GCC internal prototype to avoid an error. | ||
5213 | Use char because int might match the return type of a GCC | ||
5214 | builtin and then its argument prototype would still apply. */ | ||
5215 | #ifdef __cplusplus | ||
5216 | extern "C" | ||
5217 | #endif | ||
5218 | char connect (); | ||
5219 | /* The GNU C library defines this for functions which it implements | ||
5220 | to always fail with ENOSYS. Some functions are actually named | ||
5221 | something starting with __ and the normal name is an alias. */ | ||
5222 | #if defined __stub_connect || defined __stub___connect | ||
5223 | choke me | ||
5224 | #endif | ||
5225 | |||
5226 | int | ||
5227 | main () | ||
5228 | { | ||
5229 | return connect (); | ||
5230 | ; | ||
5231 | return 0; | ||
5232 | } | ||
5233 | _ACEOF | ||
5234 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5235 | if { (ac_try="$ac_link" | ||
5236 | case "(($ac_try" in | ||
5237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5238 | *) ac_try_echo=$ac_try;; | ||
5239 | esac | ||
5240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5241 | (eval "$ac_link") 2>conftest.er1 | ||
5242 | ac_status=$? | ||
5243 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5244 | rm -f conftest.er1 | ||
5245 | cat conftest.err >&5 | ||
5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5247 | (exit $ac_status); } && { | ||
5248 | test -z "$ac_c_werror_flag" || | ||
5249 | test ! -s conftest.err | ||
5250 | } && test -s conftest$ac_exeext && | ||
5251 | $as_test_x conftest$ac_exeext; then | ||
5252 | ac_cv_func_connect=yes | ||
5253 | else | ||
5254 | echo "$as_me: failed program was:" >&5 | ||
5255 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5256 | |||
5257 | ac_cv_func_connect=no | ||
5258 | fi | ||
5259 | |||
5260 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5261 | conftest$ac_exeext conftest.$ac_ext | ||
5262 | fi | ||
5263 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | ||
5264 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } | ||
5265 | |||
5266 | if test $ac_cv_func_connect = no; then | ||
5267 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | ||
5268 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } | ||
5269 | if test "${ac_cv_lib_socket_connect+set}" = set; then | ||
5270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5271 | else | ||
5272 | ac_check_lib_save_LIBS=$LIBS | ||
5273 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | ||
5274 | cat >conftest.$ac_ext <<_ACEOF | ||
5275 | /* confdefs.h. */ | ||
5276 | _ACEOF | ||
5277 | cat confdefs.h >>conftest.$ac_ext | ||
5278 | cat >>conftest.$ac_ext <<_ACEOF | ||
5279 | /* end confdefs.h. */ | ||
5280 | |||
5281 | /* Override any GCC internal prototype to avoid an error. | ||
5282 | Use char because int might match the return type of a GCC | ||
5283 | builtin and then its argument prototype would still apply. */ | ||
5284 | #ifdef __cplusplus | ||
5285 | extern "C" | ||
5286 | #endif | ||
5287 | char connect (); | ||
5288 | int | ||
5289 | main () | ||
5290 | { | ||
5291 | return connect (); | ||
5292 | ; | ||
5293 | return 0; | ||
5294 | } | ||
5295 | _ACEOF | ||
5296 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5297 | if { (ac_try="$ac_link" | ||
5298 | case "(($ac_try" in | ||
5299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5300 | *) ac_try_echo=$ac_try;; | ||
5301 | esac | ||
5302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5303 | (eval "$ac_link") 2>conftest.er1 | ||
5304 | ac_status=$? | ||
5305 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5306 | rm -f conftest.er1 | ||
5307 | cat conftest.err >&5 | ||
5308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5309 | (exit $ac_status); } && { | ||
5310 | test -z "$ac_c_werror_flag" || | ||
5311 | test ! -s conftest.err | ||
5312 | } && test -s conftest$ac_exeext && | ||
5313 | $as_test_x conftest$ac_exeext; then | ||
5314 | ac_cv_lib_socket_connect=yes | ||
5315 | else | ||
5316 | echo "$as_me: failed program was:" >&5 | ||
5317 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5318 | |||
5319 | ac_cv_lib_socket_connect=no | ||
5320 | fi | ||
5321 | |||
5322 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5323 | conftest$ac_exeext conftest.$ac_ext | ||
5324 | LIBS=$ac_check_lib_save_LIBS | ||
5325 | fi | ||
5326 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | ||
5327 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } | ||
5328 | if test $ac_cv_lib_socket_connect = yes; then | ||
5329 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | ||
5330 | fi | ||
5331 | |||
5332 | fi | ||
5333 | |||
5334 | # Guillermo Gomez says -lposix is necessary on A/UX. | ||
5335 | { echo "$as_me:$LINENO: checking for remove" >&5 | ||
5336 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } | ||
5337 | if test "${ac_cv_func_remove+set}" = set; then | ||
5338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5339 | else | ||
5340 | cat >conftest.$ac_ext <<_ACEOF | ||
5341 | /* confdefs.h. */ | ||
5342 | _ACEOF | ||
5343 | cat confdefs.h >>conftest.$ac_ext | ||
5344 | cat >>conftest.$ac_ext <<_ACEOF | ||
5345 | /* end confdefs.h. */ | ||
5346 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. | ||
5347 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5348 | #define remove innocuous_remove | ||
5349 | |||
5350 | /* System header to define __stub macros and hopefully few prototypes, | ||
5351 | which can conflict with char remove (); below. | ||
5352 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5353 | <limits.h> exists even on freestanding compilers. */ | ||
5354 | |||
5355 | #ifdef __STDC__ | ||
5356 | # include <limits.h> | ||
5357 | #else | ||
5358 | # include <assert.h> | ||
5359 | #endif | ||
5360 | |||
5361 | #undef remove | ||
5362 | |||
5363 | /* Override any GCC internal prototype to avoid an error. | ||
5364 | Use char because int might match the return type of a GCC | ||
5365 | builtin and then its argument prototype would still apply. */ | ||
5366 | #ifdef __cplusplus | ||
5367 | extern "C" | ||
5368 | #endif | ||
5369 | char remove (); | ||
5370 | /* The GNU C library defines this for functions which it implements | ||
5371 | to always fail with ENOSYS. Some functions are actually named | ||
5372 | something starting with __ and the normal name is an alias. */ | ||
5373 | #if defined __stub_remove || defined __stub___remove | ||
5374 | choke me | ||
5375 | #endif | ||
5376 | |||
5377 | int | ||
5378 | main () | ||
5379 | { | ||
5380 | return remove (); | ||
5381 | ; | ||
5382 | return 0; | ||
5383 | } | ||
5384 | _ACEOF | ||
5385 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5386 | if { (ac_try="$ac_link" | ||
5387 | case "(($ac_try" in | ||
5388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5389 | *) ac_try_echo=$ac_try;; | ||
5390 | esac | ||
5391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5392 | (eval "$ac_link") 2>conftest.er1 | ||
5393 | ac_status=$? | ||
5394 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5395 | rm -f conftest.er1 | ||
5396 | cat conftest.err >&5 | ||
5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5398 | (exit $ac_status); } && { | ||
5399 | test -z "$ac_c_werror_flag" || | ||
5400 | test ! -s conftest.err | ||
5401 | } && test -s conftest$ac_exeext && | ||
5402 | $as_test_x conftest$ac_exeext; then | ||
5403 | ac_cv_func_remove=yes | ||
5404 | else | ||
5405 | echo "$as_me: failed program was:" >&5 | ||
5406 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5407 | |||
5408 | ac_cv_func_remove=no | ||
5409 | fi | ||
5410 | |||
5411 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5412 | conftest$ac_exeext conftest.$ac_ext | ||
5413 | fi | ||
5414 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | ||
5415 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } | ||
5416 | |||
5417 | if test $ac_cv_func_remove = no; then | ||
5418 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | ||
5419 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } | ||
5420 | if test "${ac_cv_lib_posix_remove+set}" = set; then | ||
5421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5422 | else | ||
5423 | ac_check_lib_save_LIBS=$LIBS | ||
5424 | LIBS="-lposix $LIBS" | ||
5425 | cat >conftest.$ac_ext <<_ACEOF | ||
5426 | /* confdefs.h. */ | ||
5427 | _ACEOF | ||
5428 | cat confdefs.h >>conftest.$ac_ext | ||
5429 | cat >>conftest.$ac_ext <<_ACEOF | ||
5430 | /* end confdefs.h. */ | ||
5431 | |||
5432 | /* Override any GCC internal prototype to avoid an error. | ||
5433 | Use char because int might match the return type of a GCC | ||
5434 | builtin and then its argument prototype would still apply. */ | ||
5435 | #ifdef __cplusplus | ||
5436 | extern "C" | ||
5437 | #endif | ||
5438 | char remove (); | ||
5439 | int | ||
5440 | main () | ||
5441 | { | ||
5442 | return remove (); | ||
5443 | ; | ||
5444 | return 0; | ||
5445 | } | ||
5446 | _ACEOF | ||
5447 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5448 | if { (ac_try="$ac_link" | ||
5449 | case "(($ac_try" in | ||
5450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5451 | *) ac_try_echo=$ac_try;; | ||
5452 | esac | ||
5453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5454 | (eval "$ac_link") 2>conftest.er1 | ||
5455 | ac_status=$? | ||
5456 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5457 | rm -f conftest.er1 | ||
5458 | cat conftest.err >&5 | ||
5459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5460 | (exit $ac_status); } && { | ||
5461 | test -z "$ac_c_werror_flag" || | ||
5462 | test ! -s conftest.err | ||
5463 | } && test -s conftest$ac_exeext && | ||
5464 | $as_test_x conftest$ac_exeext; then | ||
5465 | ac_cv_lib_posix_remove=yes | ||
5466 | else | ||
5467 | echo "$as_me: failed program was:" >&5 | ||
5468 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5469 | |||
5470 | ac_cv_lib_posix_remove=no | ||
5471 | fi | ||
5472 | |||
5473 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5474 | conftest$ac_exeext conftest.$ac_ext | ||
5475 | LIBS=$ac_check_lib_save_LIBS | ||
5476 | fi | ||
5477 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | ||
5478 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } | ||
5479 | if test $ac_cv_lib_posix_remove = yes; then | ||
5480 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | ||
5481 | fi | ||
5482 | |||
5483 | fi | ||
5484 | |||
5485 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | ||
5486 | { echo "$as_me:$LINENO: checking for shmat" >&5 | ||
5487 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } | ||
5488 | if test "${ac_cv_func_shmat+set}" = set; then | ||
5489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5490 | else | ||
5491 | cat >conftest.$ac_ext <<_ACEOF | ||
5492 | /* confdefs.h. */ | ||
5493 | _ACEOF | ||
5494 | cat confdefs.h >>conftest.$ac_ext | ||
5495 | cat >>conftest.$ac_ext <<_ACEOF | ||
5496 | /* end confdefs.h. */ | ||
5497 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. | ||
5498 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
5499 | #define shmat innocuous_shmat | ||
5500 | |||
5501 | /* System header to define __stub macros and hopefully few prototypes, | ||
5502 | which can conflict with char shmat (); below. | ||
5503 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5504 | <limits.h> exists even on freestanding compilers. */ | ||
5505 | |||
5506 | #ifdef __STDC__ | ||
5507 | # include <limits.h> | ||
5508 | #else | ||
5509 | # include <assert.h> | ||
5510 | #endif | ||
5511 | |||
5512 | #undef shmat | ||
5513 | |||
5514 | /* Override any GCC internal prototype to avoid an error. | ||
5515 | Use char because int might match the return type of a GCC | ||
5516 | builtin and then its argument prototype would still apply. */ | ||
5517 | #ifdef __cplusplus | ||
5518 | extern "C" | ||
5519 | #endif | ||
5520 | char shmat (); | ||
5521 | /* The GNU C library defines this for functions which it implements | ||
5522 | to always fail with ENOSYS. Some functions are actually named | ||
5523 | something starting with __ and the normal name is an alias. */ | ||
5524 | #if defined __stub_shmat || defined __stub___shmat | ||
5525 | choke me | ||
5526 | #endif | ||
5527 | |||
5528 | int | ||
5529 | main () | ||
5530 | { | ||
5531 | return shmat (); | ||
5532 | ; | ||
5533 | return 0; | ||
5534 | } | ||
5535 | _ACEOF | ||
5536 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5537 | if { (ac_try="$ac_link" | ||
5538 | case "(($ac_try" in | ||
5539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5540 | *) ac_try_echo=$ac_try;; | ||
5541 | esac | ||
5542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5543 | (eval "$ac_link") 2>conftest.er1 | ||
5544 | ac_status=$? | ||
5545 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5546 | rm -f conftest.er1 | ||
5547 | cat conftest.err >&5 | ||
5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5549 | (exit $ac_status); } && { | ||
5550 | test -z "$ac_c_werror_flag" || | ||
5551 | test ! -s conftest.err | ||
5552 | } && test -s conftest$ac_exeext && | ||
5553 | $as_test_x conftest$ac_exeext; then | ||
5554 | ac_cv_func_shmat=yes | ||
5555 | else | ||
5556 | echo "$as_me: failed program was:" >&5 | ||
5557 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5558 | |||
5559 | ac_cv_func_shmat=no | ||
5560 | fi | ||
5561 | |||
5562 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5563 | conftest$ac_exeext conftest.$ac_ext | ||
5564 | fi | ||
5565 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | ||
5566 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } | ||
5567 | |||
5568 | if test $ac_cv_func_shmat = no; then | ||
5569 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | ||
5570 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } | ||
5571 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | ||
5572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5573 | else | ||
5574 | ac_check_lib_save_LIBS=$LIBS | ||
5575 | LIBS="-lipc $LIBS" | ||
5576 | cat >conftest.$ac_ext <<_ACEOF | ||
5577 | /* confdefs.h. */ | ||
5578 | _ACEOF | ||
5579 | cat confdefs.h >>conftest.$ac_ext | ||
5580 | cat >>conftest.$ac_ext <<_ACEOF | ||
5581 | /* end confdefs.h. */ | ||
5582 | |||
5583 | /* Override any GCC internal prototype to avoid an error. | ||
5584 | Use char because int might match the return type of a GCC | ||
5585 | builtin and then its argument prototype would still apply. */ | ||
5586 | #ifdef __cplusplus | ||
5587 | extern "C" | ||
5588 | #endif | ||
5589 | char shmat (); | ||
5590 | int | ||
5591 | main () | ||
5592 | { | ||
5593 | return shmat (); | ||
5594 | ; | ||
5595 | return 0; | ||
5596 | } | ||
5597 | _ACEOF | ||
5598 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5599 | if { (ac_try="$ac_link" | ||
5600 | case "(($ac_try" in | ||
5601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5602 | *) ac_try_echo=$ac_try;; | ||
5603 | esac | ||
5604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5605 | (eval "$ac_link") 2>conftest.er1 | ||
5606 | ac_status=$? | ||
5607 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5608 | rm -f conftest.er1 | ||
5609 | cat conftest.err >&5 | ||
5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5611 | (exit $ac_status); } && { | ||
5612 | test -z "$ac_c_werror_flag" || | ||
5613 | test ! -s conftest.err | ||
5614 | } && test -s conftest$ac_exeext && | ||
5615 | $as_test_x conftest$ac_exeext; then | ||
5616 | ac_cv_lib_ipc_shmat=yes | ||
5617 | else | ||
5618 | echo "$as_me: failed program was:" >&5 | ||
5619 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5620 | |||
5621 | ac_cv_lib_ipc_shmat=no | ||
5622 | fi | ||
5623 | |||
5624 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5625 | conftest$ac_exeext conftest.$ac_ext | ||
5626 | LIBS=$ac_check_lib_save_LIBS | ||
5627 | fi | ||
5628 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | ||
5629 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } | ||
5630 | if test $ac_cv_lib_ipc_shmat = yes; then | ||
5631 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | ||
5632 | fi | ||
5633 | |||
5634 | fi | ||
5635 | fi | ||
5636 | |||
5637 | # Check for libraries that X11R6 Xt/Xaw programs need. | ||
5638 | ac_save_LDFLAGS=$LDFLAGS | ||
5639 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | ||
5640 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | ||
5641 | # check for ICE first), but we must link in the order -lSM -lICE or | ||
5642 | # we get undefined symbols. So assume we have SM if we have ICE. | ||
5643 | # These have to be linked with before -lX11, unlike the other | ||
5644 | # libraries we check for below, so use a different variable. | ||
5645 | # John Interrante, Karl Berry | ||
5646 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | ||
5647 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } | ||
5648 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | ||
5649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5650 | else | ||
5651 | ac_check_lib_save_LIBS=$LIBS | ||
5652 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | ||
5653 | cat >conftest.$ac_ext <<_ACEOF | ||
5654 | /* confdefs.h. */ | ||
5655 | _ACEOF | ||
5656 | cat confdefs.h >>conftest.$ac_ext | ||
5657 | cat >>conftest.$ac_ext <<_ACEOF | ||
5658 | /* end confdefs.h. */ | ||
5659 | |||
5660 | /* Override any GCC internal prototype to avoid an error. | ||
5661 | Use char because int might match the return type of a GCC | ||
5662 | builtin and then its argument prototype would still apply. */ | ||
5663 | #ifdef __cplusplus | ||
5664 | extern "C" | ||
5665 | #endif | ||
5666 | char IceConnectionNumber (); | ||
5667 | int | ||
5668 | main () | ||
5669 | { | ||
5670 | return IceConnectionNumber (); | ||
5671 | ; | ||
5672 | return 0; | ||
5673 | } | ||
5674 | _ACEOF | ||
5675 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5676 | if { (ac_try="$ac_link" | ||
5677 | case "(($ac_try" in | ||
5678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5679 | *) ac_try_echo=$ac_try;; | ||
5680 | esac | ||
5681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5682 | (eval "$ac_link") 2>conftest.er1 | ||
5683 | ac_status=$? | ||
5684 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5685 | rm -f conftest.er1 | ||
5686 | cat conftest.err >&5 | ||
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5688 | (exit $ac_status); } && { | ||
5689 | test -z "$ac_c_werror_flag" || | ||
5690 | test ! -s conftest.err | ||
5691 | } && test -s conftest$ac_exeext && | ||
5692 | $as_test_x conftest$ac_exeext; then | ||
5693 | ac_cv_lib_ICE_IceConnectionNumber=yes | ||
5694 | else | ||
5695 | echo "$as_me: failed program was:" >&5 | ||
5696 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5697 | |||
5698 | ac_cv_lib_ICE_IceConnectionNumber=no | ||
5699 | fi | ||
5700 | |||
5701 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5702 | conftest$ac_exeext conftest.$ac_ext | ||
5703 | LIBS=$ac_check_lib_save_LIBS | ||
5704 | fi | ||
5705 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | ||
5706 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | ||
5707 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | ||
5708 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | ||
5709 | fi | ||
5710 | |||
5711 | LDFLAGS=$ac_save_LDFLAGS | ||
5712 | |||
5713 | fi | ||
5714 | |||
5715 | |||
5716 | ODE_SONAME=libode.so.$ODE_CURRENT | ||
5717 | |||
5718 | |||
5719 | |||
5720 | |||
5721 | |||
5722 | |||
5723 | |||
5724 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
5725 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | ||
5726 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
5727 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5729 | else | ||
5730 | cat >conftest.make <<\_ACEOF | ||
5731 | SHELL = /bin/sh | ||
5732 | all: | ||
5733 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
5734 | _ACEOF | ||
5735 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
5736 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
5737 | *@@@%%%=?*=@@@%%%*) | ||
5738 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
5739 | *) | ||
5740 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
5741 | esac | ||
5742 | rm -f conftest.make | ||
5743 | fi | ||
5744 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
5745 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
5746 | echo "${ECHO_T}yes" >&6; } | ||
5747 | SET_MAKE= | ||
5748 | else | ||
5749 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5750 | echo "${ECHO_T}no" >&6; } | ||
5751 | SET_MAKE="MAKE=${MAKE-make}" | ||
5752 | fi | ||
5753 | |||
5754 | |||
5755 | ac_ext=cpp | ||
5756 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
5757 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5758 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5759 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
5760 | if test -z "$CXX"; then | ||
5761 | if test -n "$CCC"; then | ||
5762 | CXX=$CCC | ||
5763 | else | ||
5764 | if test -n "$ac_tool_prefix"; then | ||
5765 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
5766 | do | ||
5767 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
5768 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
5769 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5771 | if test "${ac_cv_prog_CXX+set}" = set; then | ||
5772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5773 | else | ||
5774 | if test -n "$CXX"; then | ||
5775 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
5776 | else | ||
5777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5778 | for as_dir in $PATH | ||
5779 | do | ||
5780 | IFS=$as_save_IFS | ||
5781 | test -z "$as_dir" && as_dir=. | ||
5782 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5784 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
5785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5786 | break 2 | ||
5787 | fi | ||
5788 | done | ||
5789 | done | ||
5790 | IFS=$as_save_IFS | ||
5791 | |||
5792 | fi | ||
5793 | fi | ||
5794 | CXX=$ac_cv_prog_CXX | ||
5795 | if test -n "$CXX"; then | ||
5796 | { echo "$as_me:$LINENO: result: $CXX" >&5 | ||
5797 | echo "${ECHO_T}$CXX" >&6; } | ||
5798 | else | ||
5799 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5800 | echo "${ECHO_T}no" >&6; } | ||
5801 | fi | ||
5802 | |||
5803 | |||
5804 | test -n "$CXX" && break | ||
5805 | done | ||
5806 | fi | ||
5807 | if test -z "$CXX"; then | ||
5808 | ac_ct_CXX=$CXX | ||
5809 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
5810 | do | ||
5811 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
5812 | set dummy $ac_prog; ac_word=$2 | ||
5813 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5815 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | ||
5816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5817 | else | ||
5818 | if test -n "$ac_ct_CXX"; then | ||
5819 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
5820 | else | ||
5821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5822 | for as_dir in $PATH | ||
5823 | do | ||
5824 | IFS=$as_save_IFS | ||
5825 | test -z "$as_dir" && as_dir=. | ||
5826 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5828 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
5829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5830 | break 2 | ||
5831 | fi | ||
5832 | done | ||
5833 | done | ||
5834 | IFS=$as_save_IFS | ||
5835 | |||
5836 | fi | ||
5837 | fi | ||
5838 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
5839 | if test -n "$ac_ct_CXX"; then | ||
5840 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | ||
5841 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | ||
5842 | else | ||
5843 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5844 | echo "${ECHO_T}no" >&6; } | ||
5845 | fi | ||
5846 | |||
5847 | |||
5848 | test -n "$ac_ct_CXX" && break | ||
5849 | done | ||
5850 | |||
5851 | if test "x$ac_ct_CXX" = x; then | ||
5852 | CXX="g++" | ||
5853 | else | ||
5854 | case $cross_compiling:$ac_tool_warned in | ||
5855 | yes:) | ||
5856 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
5857 | whose name does not start with the host triplet. If you think this | ||
5858 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
5859 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
5860 | whose name does not start with the host triplet. If you think this | ||
5861 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
5862 | ac_tool_warned=yes ;; | ||
5863 | esac | ||
5864 | CXX=$ac_ct_CXX | ||
5865 | fi | ||
5866 | fi | ||
5867 | |||
5868 | fi | ||
5869 | fi | ||
5870 | # Provide some information about the compiler. | ||
5871 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | ||
5872 | ac_compiler=`set X $ac_compile; echo $2` | ||
5873 | { (ac_try="$ac_compiler --version >&5" | ||
5874 | case "(($ac_try" in | ||
5875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5876 | *) ac_try_echo=$ac_try;; | ||
5877 | esac | ||
5878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5879 | (eval "$ac_compiler --version >&5") 2>&5 | ||
5880 | ac_status=$? | ||
5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5882 | (exit $ac_status); } | ||
5883 | { (ac_try="$ac_compiler -v >&5" | ||
5884 | case "(($ac_try" in | ||
5885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5886 | *) ac_try_echo=$ac_try;; | ||
5887 | esac | ||
5888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5889 | (eval "$ac_compiler -v >&5") 2>&5 | ||
5890 | ac_status=$? | ||
5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5892 | (exit $ac_status); } | ||
5893 | { (ac_try="$ac_compiler -V >&5" | ||
5894 | case "(($ac_try" in | ||
5895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5896 | *) ac_try_echo=$ac_try;; | ||
5897 | esac | ||
5898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5899 | (eval "$ac_compiler -V >&5") 2>&5 | ||
5900 | ac_status=$? | ||
5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5902 | (exit $ac_status); } | ||
5903 | |||
5904 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | ||
5905 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | ||
5906 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | ||
5907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5908 | else | ||
5909 | cat >conftest.$ac_ext <<_ACEOF | ||
5910 | /* confdefs.h. */ | ||
5911 | _ACEOF | ||
5912 | cat confdefs.h >>conftest.$ac_ext | ||
5913 | cat >>conftest.$ac_ext <<_ACEOF | ||
5914 | /* end confdefs.h. */ | ||
5915 | |||
5916 | int | ||
5917 | main () | ||
5918 | { | ||
5919 | #ifndef __GNUC__ | ||
5920 | choke me | ||
5921 | #endif | ||
5922 | |||
5923 | ; | ||
5924 | return 0; | ||
5925 | } | ||
5926 | _ACEOF | ||
5927 | rm -f conftest.$ac_objext | ||
5928 | if { (ac_try="$ac_compile" | ||
5929 | case "(($ac_try" in | ||
5930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5931 | *) ac_try_echo=$ac_try;; | ||
5932 | esac | ||
5933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5934 | (eval "$ac_compile") 2>conftest.er1 | ||
5935 | ac_status=$? | ||
5936 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5937 | rm -f conftest.er1 | ||
5938 | cat conftest.err >&5 | ||
5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5940 | (exit $ac_status); } && { | ||
5941 | test -z "$ac_cxx_werror_flag" || | ||
5942 | test ! -s conftest.err | ||
5943 | } && test -s conftest.$ac_objext; then | ||
5944 | ac_compiler_gnu=yes | ||
5945 | else | ||
5946 | echo "$as_me: failed program was:" >&5 | ||
5947 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5948 | |||
5949 | ac_compiler_gnu=no | ||
5950 | fi | ||
5951 | |||
5952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5953 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
5954 | |||
5955 | fi | ||
5956 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
5957 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | ||
5958 | GXX=`test $ac_compiler_gnu = yes && echo yes` | ||
5959 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
5960 | ac_save_CXXFLAGS=$CXXFLAGS | ||
5961 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | ||
5962 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | ||
5963 | if test "${ac_cv_prog_cxx_g+set}" = set; then | ||
5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5965 | else | ||
5966 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
5967 | ac_cxx_werror_flag=yes | ||
5968 | ac_cv_prog_cxx_g=no | ||
5969 | CXXFLAGS="-g" | ||
5970 | cat >conftest.$ac_ext <<_ACEOF | ||
5971 | /* confdefs.h. */ | ||
5972 | _ACEOF | ||
5973 | cat confdefs.h >>conftest.$ac_ext | ||
5974 | cat >>conftest.$ac_ext <<_ACEOF | ||
5975 | /* end confdefs.h. */ | ||
5976 | |||
5977 | int | ||
5978 | main () | ||
5979 | { | ||
5980 | |||
5981 | ; | ||
5982 | return 0; | ||
5983 | } | ||
5984 | _ACEOF | ||
5985 | rm -f conftest.$ac_objext | ||
5986 | if { (ac_try="$ac_compile" | ||
5987 | case "(($ac_try" in | ||
5988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5989 | *) ac_try_echo=$ac_try;; | ||
5990 | esac | ||
5991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5992 | (eval "$ac_compile") 2>conftest.er1 | ||
5993 | ac_status=$? | ||
5994 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5995 | rm -f conftest.er1 | ||
5996 | cat conftest.err >&5 | ||
5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5998 | (exit $ac_status); } && { | ||
5999 | test -z "$ac_cxx_werror_flag" || | ||
6000 | test ! -s conftest.err | ||
6001 | } && test -s conftest.$ac_objext; then | ||
6002 | ac_cv_prog_cxx_g=yes | ||
6003 | else | ||
6004 | echo "$as_me: failed program was:" >&5 | ||
6005 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6006 | |||
6007 | CXXFLAGS="" | ||
6008 | cat >conftest.$ac_ext <<_ACEOF | ||
6009 | /* confdefs.h. */ | ||
6010 | _ACEOF | ||
6011 | cat confdefs.h >>conftest.$ac_ext | ||
6012 | cat >>conftest.$ac_ext <<_ACEOF | ||
6013 | /* end confdefs.h. */ | ||
6014 | |||
6015 | int | ||
6016 | main () | ||
6017 | { | ||
6018 | |||
6019 | ; | ||
6020 | return 0; | ||
6021 | } | ||
6022 | _ACEOF | ||
6023 | rm -f conftest.$ac_objext | ||
6024 | if { (ac_try="$ac_compile" | ||
6025 | case "(($ac_try" in | ||
6026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6027 | *) ac_try_echo=$ac_try;; | ||
6028 | esac | ||
6029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6030 | (eval "$ac_compile") 2>conftest.er1 | ||
6031 | ac_status=$? | ||
6032 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6033 | rm -f conftest.er1 | ||
6034 | cat conftest.err >&5 | ||
6035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6036 | (exit $ac_status); } && { | ||
6037 | test -z "$ac_cxx_werror_flag" || | ||
6038 | test ! -s conftest.err | ||
6039 | } && test -s conftest.$ac_objext; then | ||
6040 | : | ||
6041 | else | ||
6042 | echo "$as_me: failed program was:" >&5 | ||
6043 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6044 | |||
6045 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
6046 | CXXFLAGS="-g" | ||
6047 | cat >conftest.$ac_ext <<_ACEOF | ||
6048 | /* confdefs.h. */ | ||
6049 | _ACEOF | ||
6050 | cat confdefs.h >>conftest.$ac_ext | ||
6051 | cat >>conftest.$ac_ext <<_ACEOF | ||
6052 | /* end confdefs.h. */ | ||
6053 | |||
6054 | int | ||
6055 | main () | ||
6056 | { | ||
6057 | |||
6058 | ; | ||
6059 | return 0; | ||
6060 | } | ||
6061 | _ACEOF | ||
6062 | rm -f conftest.$ac_objext | ||
6063 | if { (ac_try="$ac_compile" | ||
6064 | case "(($ac_try" in | ||
6065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6066 | *) ac_try_echo=$ac_try;; | ||
6067 | esac | ||
6068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6069 | (eval "$ac_compile") 2>conftest.er1 | ||
6070 | ac_status=$? | ||
6071 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6072 | rm -f conftest.er1 | ||
6073 | cat conftest.err >&5 | ||
6074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6075 | (exit $ac_status); } && { | ||
6076 | test -z "$ac_cxx_werror_flag" || | ||
6077 | test ! -s conftest.err | ||
6078 | } && test -s conftest.$ac_objext; then | ||
6079 | ac_cv_prog_cxx_g=yes | ||
6080 | else | ||
6081 | echo "$as_me: failed program was:" >&5 | ||
6082 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6083 | |||
6084 | |||
6085 | fi | ||
6086 | |||
6087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6088 | fi | ||
6089 | |||
6090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6091 | fi | ||
6092 | |||
6093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6094 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
6095 | fi | ||
6096 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | ||
6097 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | ||
6098 | if test "$ac_test_CXXFLAGS" = set; then | ||
6099 | CXXFLAGS=$ac_save_CXXFLAGS | ||
6100 | elif test $ac_cv_prog_cxx_g = yes; then | ||
6101 | if test "$GXX" = yes; then | ||
6102 | CXXFLAGS="-g -O2" | ||
6103 | else | ||
6104 | CXXFLAGS="-g" | ||
6105 | fi | ||
6106 | else | ||
6107 | if test "$GXX" = yes; then | ||
6108 | CXXFLAGS="-O2" | ||
6109 | else | ||
6110 | CXXFLAGS= | ||
6111 | fi | ||
6112 | fi | ||
6113 | ac_ext=c | ||
6114 | ac_cpp='$CPP $CPPFLAGS' | ||
6115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6118 | |||
6119 | depcc="$CXX" am_compiler_list= | ||
6120 | |||
6121 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
6122 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | ||
6123 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | ||
6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6125 | else | ||
6126 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
6127 | # We make a subdir and do the tests there. Otherwise we can end up | ||
6128 | # making bogus files that we don't know about and never remove. For | ||
6129 | # instance it was reported that on HP-UX the gcc test will end up | ||
6130 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
6131 | # in D'. | ||
6132 | mkdir conftest.dir | ||
6133 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
6134 | # using a relative directory. | ||
6135 | cp "$am_depcomp" conftest.dir | ||
6136 | cd conftest.dir | ||
6137 | # We will build objects and dependencies in a subdirectory because | ||
6138 | # it helps to detect inapplicable dependency modes. For instance | ||
6139 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
6140 | # side effect of compilation, but ICC will put the dependencies in | ||
6141 | # the current directory while Tru64 will put them in the object | ||
6142 | # directory. | ||
6143 | mkdir sub | ||
6144 | |||
6145 | am_cv_CXX_dependencies_compiler_type=none | ||
6146 | if test "$am_compiler_list" = ""; then | ||
6147 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
6148 | fi | ||
6149 | for depmode in $am_compiler_list; do | ||
6150 | # Setup a source with many dependencies, because some compilers | ||
6151 | # like to wrap large dependency lists on column 80 (with \), and | ||
6152 | # we should not choose a depcomp mode which is confused by this. | ||
6153 | # | ||
6154 | # We need to recreate these files for each test, as the compiler may | ||
6155 | # overwrite some of them when testing with obscure command lines. | ||
6156 | # This happens at least with the AIX C compiler. | ||
6157 | : > sub/conftest.c | ||
6158 | for i in 1 2 3 4 5 6; do | ||
6159 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
6160 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
6161 | # Solaris 8's {/usr,}/bin/sh. | ||
6162 | touch sub/conftst$i.h | ||
6163 | done | ||
6164 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
6165 | |||
6166 | case $depmode in | ||
6167 | nosideeffect) | ||
6168 | # after this tag, mechanisms are not by side-effect, so they'll | ||
6169 | # only be used when explicitly requested | ||
6170 | if test "x$enable_dependency_tracking" = xyes; then | ||
6171 | continue | ||
6172 | else | ||
6173 | break | ||
6174 | fi | ||
6175 | ;; | ||
6176 | none) break ;; | ||
6177 | esac | ||
6178 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
6179 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
6180 | # handle `-M -o', and we need to detect this. | ||
6181 | if depmode=$depmode \ | ||
6182 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
6183 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
6184 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
6185 | >/dev/null 2>conftest.err && | ||
6186 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
6187 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
6188 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
6189 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
6190 | # icc doesn't choke on unknown options, it will just issue warnings | ||
6191 | # or remarks (even with -Werror). So we grep stderr for any message | ||
6192 | # that says an option was ignored or not supported. | ||
6193 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
6194 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
6195 | # The diagnosis changed in icc 8.0: | ||
6196 | # icc: Command line remark: option '-MP' not supported | ||
6197 | if (grep 'ignoring option' conftest.err || | ||
6198 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
6199 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
6200 | break | ||
6201 | fi | ||
6202 | fi | ||
6203 | done | ||
6204 | |||
6205 | cd .. | ||
6206 | rm -rf conftest.dir | ||
6207 | else | ||
6208 | am_cv_CXX_dependencies_compiler_type=none | ||
6209 | fi | ||
6210 | |||
6211 | fi | ||
6212 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
6213 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
6214 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
6215 | |||
6216 | if | ||
6217 | test "x$enable_dependency_tracking" != xno \ | ||
6218 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
6219 | am__fastdepCXX_TRUE= | ||
6220 | am__fastdepCXX_FALSE='#' | ||
6221 | else | ||
6222 | am__fastdepCXX_TRUE='#' | ||
6223 | am__fastdepCXX_FALSE= | ||
6224 | fi | ||
6225 | |||
6226 | |||
6227 | # Find a good install program. We prefer a C program (faster), | ||
6228 | # so one script is as good as another. But avoid the broken or | ||
6229 | # incompatible versions: | ||
6230 | # SysV /etc/install, /usr/sbin/install | ||
6231 | # SunOS /usr/etc/install | ||
6232 | # IRIX /sbin/install | ||
6233 | # AIX /bin/install | ||
6234 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
6235 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
6236 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
6237 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
6238 | # OS/2's system install, which has a completely different semantic | ||
6239 | # ./install, which can be erroneously created by make from ./install.sh. | ||
6240 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
6241 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
6242 | if test -z "$INSTALL"; then | ||
6243 | if test "${ac_cv_path_install+set}" = set; then | ||
6244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6245 | else | ||
6246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6247 | for as_dir in $PATH | ||
6248 | do | ||
6249 | IFS=$as_save_IFS | ||
6250 | test -z "$as_dir" && as_dir=. | ||
6251 | # Account for people who put trailing slashes in PATH elements. | ||
6252 | case $as_dir/ in | ||
6253 | ./ | .// | /cC/* | \ | ||
6254 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
6255 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
6256 | /usr/ucb/* ) ;; | ||
6257 | *) | ||
6258 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
6259 | # Don't use installbsd from OSF since it installs stuff as root | ||
6260 | # by default. | ||
6261 | for ac_prog in ginstall scoinst install; do | ||
6262 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6263 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
6264 | if test $ac_prog = install && | ||
6265 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
6266 | # AIX install. It has an incompatible calling convention. | ||
6267 | : | ||
6268 | elif test $ac_prog = install && | ||
6269 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
6270 | # program-specific install script used by HP pwplus--don't use. | ||
6271 | : | ||
6272 | else | ||
6273 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
6274 | break 3 | ||
6275 | fi | ||
6276 | fi | ||
6277 | done | ||
6278 | done | ||
6279 | ;; | ||
6280 | esac | ||
6281 | done | ||
6282 | IFS=$as_save_IFS | ||
6283 | |||
6284 | |||
6285 | fi | ||
6286 | if test "${ac_cv_path_install+set}" = set; then | ||
6287 | INSTALL=$ac_cv_path_install | ||
6288 | else | ||
6289 | # As a last resort, use the slow shell script. Don't cache a | ||
6290 | # value for INSTALL within a source directory, because that will | ||
6291 | # break other packages using the cache if that directory is | ||
6292 | # removed, or if the value is a relative name. | ||
6293 | INSTALL=$ac_install_sh | ||
6294 | fi | ||
6295 | fi | ||
6296 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
6297 | echo "${ECHO_T}$INSTALL" >&6; } | ||
6298 | |||
6299 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
6300 | # It thinks the first close brace ends the variable substitution. | ||
6301 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
6302 | |||
6303 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
6304 | |||
6305 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
6306 | |||
6307 | if test -n "$ac_tool_prefix"; then | ||
6308 | for ac_prog in windres | ||
6309 | do | ||
6310 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
6311 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
6312 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6314 | if test "${ac_cv_prog_WINDRES+set}" = set; then | ||
6315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6316 | else | ||
6317 | if test -n "$WINDRES"; then | ||
6318 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | ||
6319 | else | ||
6320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6321 | for as_dir in $PATH | ||
6322 | do | ||
6323 | IFS=$as_save_IFS | ||
6324 | test -z "$as_dir" && as_dir=. | ||
6325 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6327 | ac_cv_prog_WINDRES="$ac_tool_prefix$ac_prog" | ||
6328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6329 | break 2 | ||
6330 | fi | ||
6331 | done | ||
6332 | done | ||
6333 | IFS=$as_save_IFS | ||
6334 | |||
6335 | fi | ||
6336 | fi | ||
6337 | WINDRES=$ac_cv_prog_WINDRES | ||
6338 | if test -n "$WINDRES"; then | ||
6339 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 | ||
6340 | echo "${ECHO_T}$WINDRES" >&6; } | ||
6341 | else | ||
6342 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6343 | echo "${ECHO_T}no" >&6; } | ||
6344 | fi | ||
6345 | |||
6346 | |||
6347 | test -n "$WINDRES" && break | ||
6348 | done | ||
6349 | fi | ||
6350 | if test -z "$WINDRES"; then | ||
6351 | ac_ct_WINDRES=$WINDRES | ||
6352 | for ac_prog in windres | ||
6353 | do | ||
6354 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
6355 | set dummy $ac_prog; ac_word=$2 | ||
6356 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6358 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | ||
6359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6360 | else | ||
6361 | if test -n "$ac_ct_WINDRES"; then | ||
6362 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | ||
6363 | else | ||
6364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6365 | for as_dir in $PATH | ||
6366 | do | ||
6367 | IFS=$as_save_IFS | ||
6368 | test -z "$as_dir" && as_dir=. | ||
6369 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6371 | ac_cv_prog_ac_ct_WINDRES="$ac_prog" | ||
6372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6373 | break 2 | ||
6374 | fi | ||
6375 | done | ||
6376 | done | ||
6377 | IFS=$as_save_IFS | ||
6378 | |||
6379 | fi | ||
6380 | fi | ||
6381 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | ||
6382 | if test -n "$ac_ct_WINDRES"; then | ||
6383 | { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | ||
6384 | echo "${ECHO_T}$ac_ct_WINDRES" >&6; } | ||
6385 | else | ||
6386 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6387 | echo "${ECHO_T}no" >&6; } | ||
6388 | fi | ||
6389 | |||
6390 | |||
6391 | test -n "$ac_ct_WINDRES" && break | ||
6392 | done | ||
6393 | |||
6394 | if test "x$ac_ct_WINDRES" = x; then | ||
6395 | WINDRES="" | ||
6396 | else | ||
6397 | case $cross_compiling:$ac_tool_warned in | ||
6398 | yes:) | ||
6399 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
6400 | whose name does not start with the host triplet. If you think this | ||
6401 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
6402 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
6403 | whose name does not start with the host triplet. If you think this | ||
6404 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
6405 | ac_tool_warned=yes ;; | ||
6406 | esac | ||
6407 | WINDRES=$ac_ct_WINDRES | ||
6408 | fi | ||
6409 | fi | ||
6410 | |||
6411 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | ||
6412 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | ||
6413 | if test "${ac_cv_c_const+set}" = set; then | ||
6414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6415 | else | ||
6416 | cat >conftest.$ac_ext <<_ACEOF | ||
6417 | /* confdefs.h. */ | ||
6418 | _ACEOF | ||
6419 | cat confdefs.h >>conftest.$ac_ext | ||
6420 | cat >>conftest.$ac_ext <<_ACEOF | ||
6421 | /* end confdefs.h. */ | ||
6422 | |||
6423 | int | ||
6424 | main () | ||
6425 | { | ||
6426 | /* FIXME: Include the comments suggested by Paul. */ | ||
6427 | #ifndef __cplusplus | ||
6428 | /* Ultrix mips cc rejects this. */ | ||
6429 | typedef int charset[2]; | ||
6430 | const charset cs; | ||
6431 | /* SunOS 4.1.1 cc rejects this. */ | ||
6432 | char const *const *pcpcc; | ||
6433 | char **ppc; | ||
6434 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
6435 | struct point {int x, y;}; | ||
6436 | static struct point const zero = {0,0}; | ||
6437 | /* AIX XL C 1.02.0.0 rejects this. | ||
6438 | It does not let you subtract one const X* pointer from another in | ||
6439 | an arm of an if-expression whose if-part is not a constant | ||
6440 | expression */ | ||
6441 | const char *g = "string"; | ||
6442 | pcpcc = &g + (g ? g-g : 0); | ||
6443 | /* HPUX 7.0 cc rejects these. */ | ||
6444 | ++pcpcc; | ||
6445 | ppc = (char**) pcpcc; | ||
6446 | pcpcc = (char const *const *) ppc; | ||
6447 | { /* SCO 3.2v4 cc rejects this. */ | ||
6448 | char *t; | ||
6449 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
6450 | |||
6451 | *t++ = 0; | ||
6452 | if (s) return 0; | ||
6453 | } | ||
6454 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
6455 | int x[] = {25, 17}; | ||
6456 | const int *foo = &x[0]; | ||
6457 | ++foo; | ||
6458 | } | ||
6459 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
6460 | typedef const int *iptr; | ||
6461 | iptr p = 0; | ||
6462 | ++p; | ||
6463 | } | ||
6464 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
6465 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
6466 | struct s { int j; const int *ap[3]; }; | ||
6467 | struct s *b; b->j = 5; | ||
6468 | } | ||
6469 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
6470 | const int foo = 10; | ||
6471 | if (!foo) return 0; | ||
6472 | } | ||
6473 | return !cs[0] && !zero.x; | ||
6474 | #endif | ||
6475 | |||
6476 | ; | ||
6477 | return 0; | ||
6478 | } | ||
6479 | _ACEOF | ||
6480 | rm -f conftest.$ac_objext | ||
6481 | if { (ac_try="$ac_compile" | ||
6482 | case "(($ac_try" in | ||
6483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6484 | *) ac_try_echo=$ac_try;; | ||
6485 | esac | ||
6486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6487 | (eval "$ac_compile") 2>conftest.er1 | ||
6488 | ac_status=$? | ||
6489 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6490 | rm -f conftest.er1 | ||
6491 | cat conftest.err >&5 | ||
6492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6493 | (exit $ac_status); } && { | ||
6494 | test -z "$ac_c_werror_flag" || | ||
6495 | test ! -s conftest.err | ||
6496 | } && test -s conftest.$ac_objext; then | ||
6497 | ac_cv_c_const=yes | ||
6498 | else | ||
6499 | echo "$as_me: failed program was:" >&5 | ||
6500 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6501 | |||
6502 | ac_cv_c_const=no | ||
6503 | fi | ||
6504 | |||
6505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6506 | fi | ||
6507 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | ||
6508 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | ||
6509 | if test $ac_cv_c_const = no; then | ||
6510 | |||
6511 | cat >>confdefs.h <<\_ACEOF | ||
6512 | #define const | ||
6513 | _ACEOF | ||
6514 | |||
6515 | fi | ||
6516 | |||
6517 | { echo "$as_me:$LINENO: checking for inline" >&5 | ||
6518 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | ||
6519 | if test "${ac_cv_c_inline+set}" = set; then | ||
6520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6521 | else | ||
6522 | ac_cv_c_inline=no | ||
6523 | for ac_kw in inline __inline__ __inline; do | ||
6524 | cat >conftest.$ac_ext <<_ACEOF | ||
6525 | /* confdefs.h. */ | ||
6526 | _ACEOF | ||
6527 | cat confdefs.h >>conftest.$ac_ext | ||
6528 | cat >>conftest.$ac_ext <<_ACEOF | ||
6529 | /* end confdefs.h. */ | ||
6530 | #ifndef __cplusplus | ||
6531 | typedef int foo_t; | ||
6532 | static $ac_kw foo_t static_foo () {return 0; } | ||
6533 | $ac_kw foo_t foo () {return 0; } | ||
6534 | #endif | ||
6535 | |||
6536 | _ACEOF | ||
6537 | rm -f conftest.$ac_objext | ||
6538 | if { (ac_try="$ac_compile" | ||
6539 | case "(($ac_try" in | ||
6540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6541 | *) ac_try_echo=$ac_try;; | ||
6542 | esac | ||
6543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6544 | (eval "$ac_compile") 2>conftest.er1 | ||
6545 | ac_status=$? | ||
6546 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6547 | rm -f conftest.er1 | ||
6548 | cat conftest.err >&5 | ||
6549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6550 | (exit $ac_status); } && { | ||
6551 | test -z "$ac_c_werror_flag" || | ||
6552 | test ! -s conftest.err | ||
6553 | } && test -s conftest.$ac_objext; then | ||
6554 | ac_cv_c_inline=$ac_kw | ||
6555 | else | ||
6556 | echo "$as_me: failed program was:" >&5 | ||
6557 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6558 | |||
6559 | |||
6560 | fi | ||
6561 | |||
6562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6563 | test "$ac_cv_c_inline" != no && break | ||
6564 | done | ||
6565 | |||
6566 | fi | ||
6567 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
6568 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | ||
6569 | |||
6570 | |||
6571 | case $ac_cv_c_inline in | ||
6572 | inline | yes) ;; | ||
6573 | *) | ||
6574 | case $ac_cv_c_inline in | ||
6575 | no) ac_val=;; | ||
6576 | *) ac_val=$ac_cv_c_inline;; | ||
6577 | esac | ||
6578 | cat >>confdefs.h <<_ACEOF | ||
6579 | #ifndef __cplusplus | ||
6580 | #define inline $ac_val | ||
6581 | #endif | ||
6582 | _ACEOF | ||
6583 | ;; | ||
6584 | esac | ||
6585 | |||
6586 | { echo "$as_me:$LINENO: checking for working volatile" >&5 | ||
6587 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } | ||
6588 | if test "${ac_cv_c_volatile+set}" = set; then | ||
6589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6590 | else | ||
6591 | cat >conftest.$ac_ext <<_ACEOF | ||
6592 | /* confdefs.h. */ | ||
6593 | _ACEOF | ||
6594 | cat confdefs.h >>conftest.$ac_ext | ||
6595 | cat >>conftest.$ac_ext <<_ACEOF | ||
6596 | /* end confdefs.h. */ | ||
6597 | |||
6598 | int | ||
6599 | main () | ||
6600 | { | ||
6601 | |||
6602 | volatile int x; | ||
6603 | int * volatile y = (int *) 0; | ||
6604 | return !x && !y; | ||
6605 | ; | ||
6606 | return 0; | ||
6607 | } | ||
6608 | _ACEOF | ||
6609 | rm -f conftest.$ac_objext | ||
6610 | if { (ac_try="$ac_compile" | ||
6611 | case "(($ac_try" in | ||
6612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6613 | *) ac_try_echo=$ac_try;; | ||
6614 | esac | ||
6615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6616 | (eval "$ac_compile") 2>conftest.er1 | ||
6617 | ac_status=$? | ||
6618 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6619 | rm -f conftest.er1 | ||
6620 | cat conftest.err >&5 | ||
6621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6622 | (exit $ac_status); } && { | ||
6623 | test -z "$ac_c_werror_flag" || | ||
6624 | test ! -s conftest.err | ||
6625 | } && test -s conftest.$ac_objext; then | ||
6626 | ac_cv_c_volatile=yes | ||
6627 | else | ||
6628 | echo "$as_me: failed program was:" >&5 | ||
6629 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6630 | |||
6631 | ac_cv_c_volatile=no | ||
6632 | fi | ||
6633 | |||
6634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6635 | fi | ||
6636 | { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 | ||
6637 | echo "${ECHO_T}$ac_cv_c_volatile" >&6; } | ||
6638 | if test $ac_cv_c_volatile = no; then | ||
6639 | |||
6640 | cat >>confdefs.h <<\_ACEOF | ||
6641 | #define volatile | ||
6642 | _ACEOF | ||
6643 | |||
6644 | fi | ||
6645 | |||
6646 | { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 | ||
6647 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } | ||
6648 | if test "${ac_cv_header_stdbool_h+set}" = set; then | ||
6649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6650 | else | ||
6651 | cat >conftest.$ac_ext <<_ACEOF | ||
6652 | /* confdefs.h. */ | ||
6653 | _ACEOF | ||
6654 | cat confdefs.h >>conftest.$ac_ext | ||
6655 | cat >>conftest.$ac_ext <<_ACEOF | ||
6656 | /* end confdefs.h. */ | ||
6657 | |||
6658 | #include <stdbool.h> | ||
6659 | #ifndef bool | ||
6660 | "error: bool is not defined" | ||
6661 | #endif | ||
6662 | #ifndef false | ||
6663 | "error: false is not defined" | ||
6664 | #endif | ||
6665 | #if false | ||
6666 | "error: false is not 0" | ||
6667 | #endif | ||
6668 | #ifndef true | ||
6669 | "error: true is not defined" | ||
6670 | #endif | ||
6671 | #if true != 1 | ||
6672 | "error: true is not 1" | ||
6673 | #endif | ||
6674 | #ifndef __bool_true_false_are_defined | ||
6675 | "error: __bool_true_false_are_defined is not defined" | ||
6676 | #endif | ||
6677 | |||
6678 | struct s { _Bool s: 1; _Bool t; } s; | ||
6679 | |||
6680 | char a[true == 1 ? 1 : -1]; | ||
6681 | char b[false == 0 ? 1 : -1]; | ||
6682 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | ||
6683 | char d[(bool) 0.5 == true ? 1 : -1]; | ||
6684 | bool e = &s; | ||
6685 | char f[(_Bool) 0.0 == false ? 1 : -1]; | ||
6686 | char g[true]; | ||
6687 | char h[sizeof (_Bool)]; | ||
6688 | char i[sizeof s.t]; | ||
6689 | enum { j = false, k = true, l = false * true, m = true * 256 }; | ||
6690 | _Bool n[m]; | ||
6691 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | ||
6692 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | ||
6693 | # if defined __xlc__ || defined __GNUC__ | ||
6694 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 | ||
6695 | reported by James Lemley on 2005-10-05; see | ||
6696 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html | ||
6697 | This test is not quite right, since xlc is allowed to | ||
6698 | reject this program, as the initializer for xlcbug is | ||
6699 | not one of the forms that C requires support for. | ||
6700 | However, doing the test right would require a runtime | ||
6701 | test, and that would make cross-compilation harder. | ||
6702 | Let us hope that IBM fixes the xlc bug, and also adds | ||
6703 | support for this kind of constant expression. In the | ||
6704 | meantime, this test will reject xlc, which is OK, since | ||
6705 | our stdbool.h substitute should suffice. We also test | ||
6706 | this with GCC, where it should work, to detect more | ||
6707 | quickly whether someone messes up the test in the | ||
6708 | future. */ | ||
6709 | char digs[] = "0123456789"; | ||
6710 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); | ||
6711 | # endif | ||
6712 | /* Catch a bug in an HP-UX C compiler. See | ||
6713 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | ||
6714 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | ||
6715 | */ | ||
6716 | _Bool q = true; | ||
6717 | _Bool *pq = &q; | ||
6718 | |||
6719 | int | ||
6720 | main () | ||
6721 | { | ||
6722 | |||
6723 | *pq |= q; | ||
6724 | *pq |= ! q; | ||
6725 | /* Refer to every declared value, to avoid compiler optimizations. */ | ||
6726 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | ||
6727 | + !m + !n + !o + !p + !q + !pq); | ||
6728 | |||
6729 | ; | ||
6730 | return 0; | ||
6731 | } | ||
6732 | _ACEOF | ||
6733 | rm -f conftest.$ac_objext | ||
6734 | if { (ac_try="$ac_compile" | ||
6735 | case "(($ac_try" in | ||
6736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6737 | *) ac_try_echo=$ac_try;; | ||
6738 | esac | ||
6739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6740 | (eval "$ac_compile") 2>conftest.er1 | ||
6741 | ac_status=$? | ||
6742 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6743 | rm -f conftest.er1 | ||
6744 | cat conftest.err >&5 | ||
6745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6746 | (exit $ac_status); } && { | ||
6747 | test -z "$ac_c_werror_flag" || | ||
6748 | test ! -s conftest.err | ||
6749 | } && test -s conftest.$ac_objext; then | ||
6750 | ac_cv_header_stdbool_h=yes | ||
6751 | else | ||
6752 | echo "$as_me: failed program was:" >&5 | ||
6753 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6754 | |||
6755 | ac_cv_header_stdbool_h=no | ||
6756 | fi | ||
6757 | |||
6758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6759 | fi | ||
6760 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 | ||
6761 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } | ||
6762 | { echo "$as_me:$LINENO: checking for _Bool" >&5 | ||
6763 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } | ||
6764 | if test "${ac_cv_type__Bool+set}" = set; then | ||
6765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6766 | else | ||
6767 | cat >conftest.$ac_ext <<_ACEOF | ||
6768 | /* confdefs.h. */ | ||
6769 | _ACEOF | ||
6770 | cat confdefs.h >>conftest.$ac_ext | ||
6771 | cat >>conftest.$ac_ext <<_ACEOF | ||
6772 | /* end confdefs.h. */ | ||
6773 | $ac_includes_default | ||
6774 | typedef _Bool ac__type_new_; | ||
6775 | int | ||
6776 | main () | ||
6777 | { | ||
6778 | if ((ac__type_new_ *) 0) | ||
6779 | return 0; | ||
6780 | if (sizeof (ac__type_new_)) | ||
6781 | return 0; | ||
6782 | ; | ||
6783 | return 0; | ||
6784 | } | ||
6785 | _ACEOF | ||
6786 | rm -f conftest.$ac_objext | ||
6787 | if { (ac_try="$ac_compile" | ||
6788 | case "(($ac_try" in | ||
6789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6790 | *) ac_try_echo=$ac_try;; | ||
6791 | esac | ||
6792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6793 | (eval "$ac_compile") 2>conftest.er1 | ||
6794 | ac_status=$? | ||
6795 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6796 | rm -f conftest.er1 | ||
6797 | cat conftest.err >&5 | ||
6798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6799 | (exit $ac_status); } && { | ||
6800 | test -z "$ac_c_werror_flag" || | ||
6801 | test ! -s conftest.err | ||
6802 | } && test -s conftest.$ac_objext; then | ||
6803 | ac_cv_type__Bool=yes | ||
6804 | else | ||
6805 | echo "$as_me: failed program was:" >&5 | ||
6806 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6807 | |||
6808 | ac_cv_type__Bool=no | ||
6809 | fi | ||
6810 | |||
6811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6812 | fi | ||
6813 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 | ||
6814 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } | ||
6815 | if test $ac_cv_type__Bool = yes; then | ||
6816 | |||
6817 | cat >>confdefs.h <<_ACEOF | ||
6818 | #define HAVE__BOOL 1 | ||
6819 | _ACEOF | ||
6820 | |||
6821 | |||
6822 | fi | ||
6823 | |||
6824 | if test $ac_cv_header_stdbool_h = yes; then | ||
6825 | |||
6826 | cat >>confdefs.h <<\_ACEOF | ||
6827 | #define HAVE_STDBOOL_H 1 | ||
6828 | _ACEOF | ||
6829 | |||
6830 | fi | ||
6831 | |||
6832 | if test -n "$ac_tool_prefix"; then | ||
6833 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
6834 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
6835 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6837 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
6838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6839 | else | ||
6840 | if test -n "$RANLIB"; then | ||
6841 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
6842 | else | ||
6843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6844 | for as_dir in $PATH | ||
6845 | do | ||
6846 | IFS=$as_save_IFS | ||
6847 | test -z "$as_dir" && as_dir=. | ||
6848 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6849 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6850 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
6851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6852 | break 2 | ||
6853 | fi | ||
6854 | done | ||
6855 | done | ||
6856 | IFS=$as_save_IFS | ||
6857 | |||
6858 | fi | ||
6859 | fi | ||
6860 | RANLIB=$ac_cv_prog_RANLIB | ||
6861 | if test -n "$RANLIB"; then | ||
6862 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
6863 | echo "${ECHO_T}$RANLIB" >&6; } | ||
6864 | else | ||
6865 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6866 | echo "${ECHO_T}no" >&6; } | ||
6867 | fi | ||
6868 | |||
6869 | |||
6870 | fi | ||
6871 | if test -z "$ac_cv_prog_RANLIB"; then | ||
6872 | ac_ct_RANLIB=$RANLIB | ||
6873 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
6874 | set dummy ranlib; ac_word=$2 | ||
6875 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6877 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
6878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6879 | else | ||
6880 | if test -n "$ac_ct_RANLIB"; then | ||
6881 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
6882 | else | ||
6883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6884 | for as_dir in $PATH | ||
6885 | do | ||
6886 | IFS=$as_save_IFS | ||
6887 | test -z "$as_dir" && as_dir=. | ||
6888 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6889 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6890 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
6891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6892 | break 2 | ||
6893 | fi | ||
6894 | done | ||
6895 | done | ||
6896 | IFS=$as_save_IFS | ||
6897 | |||
6898 | fi | ||
6899 | fi | ||
6900 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
6901 | if test -n "$ac_ct_RANLIB"; then | ||
6902 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
6903 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
6904 | else | ||
6905 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6906 | echo "${ECHO_T}no" >&6; } | ||
6907 | fi | ||
6908 | |||
6909 | if test "x$ac_ct_RANLIB" = x; then | ||
6910 | RANLIB=":" | ||
6911 | else | ||
6912 | case $cross_compiling:$ac_tool_warned in | ||
6913 | yes:) | ||
6914 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
6915 | whose name does not start with the host triplet. If you think this | ||
6916 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
6917 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
6918 | whose name does not start with the host triplet. If you think this | ||
6919 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
6920 | ac_tool_warned=yes ;; | ||
6921 | esac | ||
6922 | RANLIB=$ac_ct_RANLIB | ||
6923 | fi | ||
6924 | else | ||
6925 | RANLIB="$ac_cv_prog_RANLIB" | ||
6926 | fi | ||
6927 | |||
6928 | { echo "$as_me:$LINENO: checking for size_t" >&5 | ||
6929 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | ||
6930 | if test "${ac_cv_type_size_t+set}" = set; then | ||
6931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6932 | else | ||
6933 | cat >conftest.$ac_ext <<_ACEOF | ||
6934 | /* confdefs.h. */ | ||
6935 | _ACEOF | ||
6936 | cat confdefs.h >>conftest.$ac_ext | ||
6937 | cat >>conftest.$ac_ext <<_ACEOF | ||
6938 | /* end confdefs.h. */ | ||
6939 | $ac_includes_default | ||
6940 | typedef size_t ac__type_new_; | ||
6941 | int | ||
6942 | main () | ||
6943 | { | ||
6944 | if ((ac__type_new_ *) 0) | ||
6945 | return 0; | ||
6946 | if (sizeof (ac__type_new_)) | ||
6947 | return 0; | ||
6948 | ; | ||
6949 | return 0; | ||
6950 | } | ||
6951 | _ACEOF | ||
6952 | rm -f conftest.$ac_objext | ||
6953 | if { (ac_try="$ac_compile" | ||
6954 | case "(($ac_try" in | ||
6955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6956 | *) ac_try_echo=$ac_try;; | ||
6957 | esac | ||
6958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6959 | (eval "$ac_compile") 2>conftest.er1 | ||
6960 | ac_status=$? | ||
6961 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6962 | rm -f conftest.er1 | ||
6963 | cat conftest.err >&5 | ||
6964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6965 | (exit $ac_status); } && { | ||
6966 | test -z "$ac_c_werror_flag" || | ||
6967 | test ! -s conftest.err | ||
6968 | } && test -s conftest.$ac_objext; then | ||
6969 | ac_cv_type_size_t=yes | ||
6970 | else | ||
6971 | echo "$as_me: failed program was:" >&5 | ||
6972 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6973 | |||
6974 | ac_cv_type_size_t=no | ||
6975 | fi | ||
6976 | |||
6977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6978 | fi | ||
6979 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | ||
6980 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | ||
6981 | if test $ac_cv_type_size_t = yes; then | ||
6982 | : | ||
6983 | else | ||
6984 | |||
6985 | cat >>confdefs.h <<_ACEOF | ||
6986 | #define size_t unsigned int | ||
6987 | _ACEOF | ||
6988 | |||
6989 | fi | ||
6990 | |||
6991 | |||
6992 | { echo "$as_me:$LINENO: checking if a soname should be set" >&5 | ||
6993 | echo $ECHO_N "checking if a soname should be set... $ECHO_C" >&6; } | ||
6994 | # Check whether --enable-soname was given. | ||
6995 | if test "${enable_soname+set}" = set; then | ||
6996 | enableval=$enable_soname; use_soname=$enableval | ||
6997 | else | ||
6998 | use_soname=no | ||
6999 | fi | ||
7000 | |||
7001 | { echo "$as_me:$LINENO: result: $use_soname" >&5 | ||
7002 | echo "${ECHO_T}$use_soname" >&6; } | ||
7003 | if test x$use_soname = xyes; then | ||
7004 | USE_SONAME_TRUE= | ||
7005 | USE_SONAME_FALSE='#' | ||
7006 | else | ||
7007 | USE_SONAME_TRUE='#' | ||
7008 | USE_SONAME_FALSE= | ||
7009 | fi | ||
7010 | |||
7011 | |||
7012 | |||
7013 | { echo "$as_me:$LINENO: checking if tests should be built" >&5 | ||
7014 | echo $ECHO_N "checking if tests should be built... $ECHO_C" >&6; } | ||
7015 | # Check whether --enable-demos was given. | ||
7016 | if test "${enable_demos+set}" = set; then | ||
7017 | enableval=$enable_demos; enable_demos=$enableval | ||
7018 | else | ||
7019 | enable_demos=yes | ||
7020 | fi | ||
7021 | |||
7022 | { echo "$as_me:$LINENO: result: $enable_demos" >&5 | ||
7023 | echo "${ECHO_T}$enable_demos" >&6; } | ||
7024 | if test x$enable_demos = xyes; then | ||
7025 | ENABLE_DEMOS_TRUE= | ||
7026 | ENABLE_DEMOS_FALSE='#' | ||
7027 | else | ||
7028 | ENABLE_DEMOS_TRUE='#' | ||
7029 | ENABLE_DEMOS_FALSE= | ||
7030 | fi | ||
7031 | |||
7032 | |||
7033 | |||
7034 | |||
7035 | # Check whether --with-arch was given. | ||
7036 | if test "${with_arch+set}" = set; then | ||
7037 | withval=$with_arch; arch=$withval | ||
7038 | else | ||
7039 | arch=no | ||
7040 | fi | ||
7041 | |||
7042 | ARCHFLAGS="" | ||
7043 | if test "x$arch" != xno | ||
7044 | then | ||
7045 | ARCHFLAGS="-march=$arch" | ||
7046 | fi | ||
7047 | |||
7048 | |||
7049 | case "$arch" in | ||
7050 | pentium3 | pentium4 | athlon* ) | ||
7051 | |||
7052 | cat >>confdefs.h <<\_ACEOF | ||
7053 | #define HAVE_SSE | ||
7054 | _ACEOF | ||
7055 | |||
7056 | ;; | ||
7057 | esac | ||
7058 | |||
7059 | |||
7060 | |||
7061 | |||
7062 | |||
7063 | |||
7064 | |||
7065 | |||
7066 | |||
7067 | |||
7068 | |||
7069 | |||
7070 | |||
7071 | for ac_header in alloca.h ieeefp.h stdio.h stdlib.h math.h string.h stdarg.h malloc.h values.h float.h time.h sys/time.h | ||
7072 | do | ||
7073 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7075 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7079 | fi | ||
7080 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7082 | echo "${ECHO_T}$ac_res" >&6; } | ||
7083 | else | ||
7084 | # Is the header compilable? | ||
7085 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
7086 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
7087 | cat >conftest.$ac_ext <<_ACEOF | ||
7088 | /* confdefs.h. */ | ||
7089 | _ACEOF | ||
7090 | cat confdefs.h >>conftest.$ac_ext | ||
7091 | cat >>conftest.$ac_ext <<_ACEOF | ||
7092 | /* end confdefs.h. */ | ||
7093 | $ac_includes_default | ||
7094 | #include <$ac_header> | ||
7095 | _ACEOF | ||
7096 | rm -f conftest.$ac_objext | ||
7097 | if { (ac_try="$ac_compile" | ||
7098 | case "(($ac_try" in | ||
7099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7100 | *) ac_try_echo=$ac_try;; | ||
7101 | esac | ||
7102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7103 | (eval "$ac_compile") 2>conftest.er1 | ||
7104 | ac_status=$? | ||
7105 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7106 | rm -f conftest.er1 | ||
7107 | cat conftest.err >&5 | ||
7108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7109 | (exit $ac_status); } && { | ||
7110 | test -z "$ac_c_werror_flag" || | ||
7111 | test ! -s conftest.err | ||
7112 | } && test -s conftest.$ac_objext; then | ||
7113 | ac_header_compiler=yes | ||
7114 | else | ||
7115 | echo "$as_me: failed program was:" >&5 | ||
7116 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7117 | |||
7118 | ac_header_compiler=no | ||
7119 | fi | ||
7120 | |||
7121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7122 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7123 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7124 | |||
7125 | # Is the header present? | ||
7126 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
7127 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
7128 | cat >conftest.$ac_ext <<_ACEOF | ||
7129 | /* confdefs.h. */ | ||
7130 | _ACEOF | ||
7131 | cat confdefs.h >>conftest.$ac_ext | ||
7132 | cat >>conftest.$ac_ext <<_ACEOF | ||
7133 | /* end confdefs.h. */ | ||
7134 | #include <$ac_header> | ||
7135 | _ACEOF | ||
7136 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7137 | case "(($ac_try" in | ||
7138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7139 | *) ac_try_echo=$ac_try;; | ||
7140 | esac | ||
7141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7142 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7143 | ac_status=$? | ||
7144 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7145 | rm -f conftest.er1 | ||
7146 | cat conftest.err >&5 | ||
7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7148 | (exit $ac_status); } >/dev/null && { | ||
7149 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7150 | test ! -s conftest.err | ||
7151 | }; then | ||
7152 | ac_header_preproc=yes | ||
7153 | else | ||
7154 | echo "$as_me: failed program was:" >&5 | ||
7155 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7156 | |||
7157 | ac_header_preproc=no | ||
7158 | fi | ||
7159 | |||
7160 | rm -f conftest.err conftest.$ac_ext | ||
7161 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7162 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7163 | |||
7164 | # So? What about this header? | ||
7165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7166 | yes:no: ) | ||
7167 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7168 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
7170 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
7171 | ac_header_preproc=yes | ||
7172 | ;; | ||
7173 | no:yes:* ) | ||
7174 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
7175 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
7176 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
7177 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
7178 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
7179 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
7180 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
7181 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
7183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
7184 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
7185 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
7186 | ( cat <<\_ASBOX | ||
7187 | ## -------------------------- ## | ||
7188 | ## Report this to ode@ode.org ## | ||
7189 | ## -------------------------- ## | ||
7190 | _ASBOX | ||
7191 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7192 | ;; | ||
7193 | esac | ||
7194 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
7195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
7196 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7198 | else | ||
7199 | eval "$as_ac_Header=\$ac_header_preproc" | ||
7200 | fi | ||
7201 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
7202 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7203 | echo "${ECHO_T}$ac_res" >&6; } | ||
7204 | |||
7205 | fi | ||
7206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
7207 | cat >>confdefs.h <<_ACEOF | ||
7208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7209 | _ACEOF | ||
7210 | |||
7211 | fi | ||
7212 | |||
7213 | done | ||
7214 | |||
7215 | |||
7216 | |||
7217 | opcode=no | ||
7218 | gimpact=no | ||
7219 | |||
7220 | # Check whether --with-trimesh was given. | ||
7221 | if test "${with_trimesh+set}" = set; then | ||
7222 | withval=$with_trimesh; trimesh=$withval | ||
7223 | else | ||
7224 | trimesh=opcode | ||
7225 | |||
7226 | fi | ||
7227 | |||
7228 | if test "$trimesh" = opcode | ||
7229 | then | ||
7230 | opcode=yes | ||
7231 | fi | ||
7232 | if test "$trimesh" = gimpact | ||
7233 | then | ||
7234 | gimpact=yes | ||
7235 | fi | ||
7236 | |||
7237 | if test $opcode = yes; then | ||
7238 | OPCODE_TRUE= | ||
7239 | OPCODE_FALSE='#' | ||
7240 | else | ||
7241 | OPCODE_TRUE='#' | ||
7242 | OPCODE_FALSE= | ||
7243 | fi | ||
7244 | |||
7245 | if test $gimpact = yes; then | ||
7246 | GIMPACT_TRUE= | ||
7247 | GIMPACT_FALSE='#' | ||
7248 | else | ||
7249 | GIMPACT_TRUE='#' | ||
7250 | GIMPACT_FALSE= | ||
7251 | fi | ||
7252 | |||
7253 | if test $opcode = yes -o $gimpact = yes; then | ||
7254 | TRIMESH_TRUE= | ||
7255 | TRIMESH_FALSE='#' | ||
7256 | else | ||
7257 | TRIMESH_TRUE='#' | ||
7258 | TRIMESH_FALSE= | ||
7259 | fi | ||
7260 | |||
7261 | |||
7262 | |||
7263 | { echo "$as_me:$LINENO: checking if gyroscopic term should be used" >&5 | ||
7264 | echo $ECHO_N "checking if gyroscopic term should be used... $ECHO_C" >&6; } | ||
7265 | # Check whether --enable-gyroscopic was given. | ||
7266 | if test "${enable_gyroscopic+set}" = set; then | ||
7267 | enableval=$enable_gyroscopic; gyroscopic=$enableval | ||
7268 | else | ||
7269 | gyroscopic=yes | ||
7270 | fi | ||
7271 | |||
7272 | { echo "$as_me:$LINENO: result: $gyroscopic" >&5 | ||
7273 | echo "${ECHO_T}$gyroscopic" >&6; } | ||
7274 | if test x"$gyroscopic" = xyes | ||
7275 | then | ||
7276 | |||
7277 | cat >>confdefs.h <<\_ACEOF | ||
7278 | #define dGYROSCOPIC | ||
7279 | _ACEOF | ||
7280 | |||
7281 | fi | ||
7282 | |||
7283 | { echo "$as_me:$LINENO: checking if double precision is requested" >&5 | ||
7284 | echo $ECHO_N "checking if double precision is requested... $ECHO_C" >&6; } | ||
7285 | # Check whether --enable-double-precision was given. | ||
7286 | if test "${enable_double_precision+set}" = set; then | ||
7287 | enableval=$enable_double_precision; precision=$enableval | ||
7288 | else | ||
7289 | precision=no | ||
7290 | fi | ||
7291 | |||
7292 | if test "$precision" != no | ||
7293 | then | ||
7294 | |||
7295 | cat >>confdefs.h <<\_ACEOF | ||
7296 | #define dDOUBLE | ||
7297 | _ACEOF | ||
7298 | |||
7299 | if test "$build_os" == "$target_os" | ||
7300 | then | ||
7301 | if test "$cross_compiling" = yes; then | ||
7302 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7303 | See \`config.log' for more details." >&5 | ||
7304 | echo "$as_me: error: cannot run test program while cross compiling | ||
7305 | See \`config.log' for more details." >&2;} | ||
7306 | { (exit 1); exit 1; }; } | ||
7307 | else | ||
7308 | cat >conftest.$ac_ext <<_ACEOF | ||
7309 | /* confdefs.h. */ | ||
7310 | _ACEOF | ||
7311 | cat confdefs.h >>conftest.$ac_ext | ||
7312 | cat >>conftest.$ac_ext <<_ACEOF | ||
7313 | /* end confdefs.h. */ | ||
7314 | |||
7315 | #define dInfinity 1e20 | ||
7316 | int main() | ||
7317 | { | ||
7318 | if (dInfinity > 1e10 && -dInfinity < -1e10 && -dInfinity < dInfinity) | ||
7319 | return 0; | ||
7320 | else return -1; | ||
7321 | } | ||
7322 | |||
7323 | _ACEOF | ||
7324 | rm -f conftest$ac_exeext | ||
7325 | if { (ac_try="$ac_link" | ||
7326 | case "(($ac_try" in | ||
7327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7328 | *) ac_try_echo=$ac_try;; | ||
7329 | esac | ||
7330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7331 | (eval "$ac_link") 2>&5 | ||
7332 | ac_status=$? | ||
7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7335 | { (case "(($ac_try" in | ||
7336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7337 | *) ac_try_echo=$ac_try;; | ||
7338 | esac | ||
7339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7340 | (eval "$ac_try") 2>&5 | ||
7341 | ac_status=$? | ||
7342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7343 | (exit $ac_status); }; }; then | ||
7344 | dinfinity=1e20 | ||
7345 | else | ||
7346 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7347 | echo "$as_me: failed program was:" >&5 | ||
7348 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7349 | |||
7350 | fi | ||
7351 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7352 | fi | ||
7353 | |||
7354 | |||
7355 | if test "$cross_compiling" = yes; then | ||
7356 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7357 | See \`config.log' for more details." >&5 | ||
7358 | echo "$as_me: error: cannot run test program while cross compiling | ||
7359 | See \`config.log' for more details." >&2;} | ||
7360 | { (exit 1); exit 1; }; } | ||
7361 | else | ||
7362 | cat >conftest.$ac_ext <<_ACEOF | ||
7363 | /* confdefs.h. */ | ||
7364 | _ACEOF | ||
7365 | cat confdefs.h >>conftest.$ac_ext | ||
7366 | cat >>conftest.$ac_ext <<_ACEOF | ||
7367 | /* end confdefs.h. */ | ||
7368 | |||
7369 | #define dInfinity 1.7976931348623157e+308 | ||
7370 | int main() | ||
7371 | { | ||
7372 | if (dInfinity > 1e10 && -dInfinity < -1e10 && -dInfinity < dInfinity) | ||
7373 | return 0; | ||
7374 | else return -1; | ||
7375 | } | ||
7376 | |||
7377 | _ACEOF | ||
7378 | rm -f conftest$ac_exeext | ||
7379 | if { (ac_try="$ac_link" | ||
7380 | case "(($ac_try" in | ||
7381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7382 | *) ac_try_echo=$ac_try;; | ||
7383 | esac | ||
7384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7385 | (eval "$ac_link") 2>&5 | ||
7386 | ac_status=$? | ||
7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7389 | { (case "(($ac_try" in | ||
7390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7391 | *) ac_try_echo=$ac_try;; | ||
7392 | esac | ||
7393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7394 | (eval "$ac_try") 2>&5 | ||
7395 | ac_status=$? | ||
7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7397 | (exit $ac_status); }; }; then | ||
7398 | dinfinity=1.7976931348623157e+308 | ||
7399 | else | ||
7400 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7401 | echo "$as_me: failed program was:" >&5 | ||
7402 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7403 | |||
7404 | fi | ||
7405 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7406 | fi | ||
7407 | |||
7408 | |||
7409 | if test "$cross_compiling" = yes; then | ||
7410 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7411 | See \`config.log' for more details." >&5 | ||
7412 | echo "$as_me: error: cannot run test program while cross compiling | ||
7413 | See \`config.log' for more details." >&2;} | ||
7414 | { (exit 1); exit 1; }; } | ||
7415 | else | ||
7416 | cat >conftest.$ac_ext <<_ACEOF | ||
7417 | /* confdefs.h. */ | ||
7418 | _ACEOF | ||
7419 | cat confdefs.h >>conftest.$ac_ext | ||
7420 | cat >>conftest.$ac_ext <<_ACEOF | ||
7421 | /* end confdefs.h. */ | ||
7422 | |||
7423 | #include <float.h> | ||
7424 | #define dInfinity HUGE_VAL | ||
7425 | int main() | ||
7426 | { | ||
7427 | if (dInfinity > 1e10 && -dInfinity < -1e10 && -dInfinity < dInfinity) | ||
7428 | return 0; | ||
7429 | else return -1; | ||
7430 | } | ||
7431 | |||
7432 | _ACEOF | ||
7433 | rm -f conftest$ac_exeext | ||
7434 | if { (ac_try="$ac_link" | ||
7435 | case "(($ac_try" in | ||
7436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7437 | *) ac_try_echo=$ac_try;; | ||
7438 | esac | ||
7439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7440 | (eval "$ac_link") 2>&5 | ||
7441 | ac_status=$? | ||
7442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7443 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7444 | { (case "(($ac_try" in | ||
7445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7446 | *) ac_try_echo=$ac_try;; | ||
7447 | esac | ||
7448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7449 | (eval "$ac_try") 2>&5 | ||
7450 | ac_status=$? | ||
7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7452 | (exit $ac_status); }; }; then | ||
7453 | dinfinity=HUGE_VAL | ||
7454 | else | ||
7455 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7456 | echo "$as_me: failed program was:" >&5 | ||
7457 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7458 | |||
7459 | fi | ||
7460 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7461 | fi | ||
7462 | |||
7463 | |||
7464 | if test "$cross_compiling" = yes; then | ||
7465 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7466 | See \`config.log' for more details." >&5 | ||
7467 | echo "$as_me: error: cannot run test program while cross compiling | ||
7468 | See \`config.log' for more details." >&2;} | ||
7469 | { (exit 1); exit 1; }; } | ||
7470 | else | ||
7471 | cat >conftest.$ac_ext <<_ACEOF | ||
7472 | /* confdefs.h. */ | ||
7473 | _ACEOF | ||
7474 | cat confdefs.h >>conftest.$ac_ext | ||
7475 | cat >>conftest.$ac_ext <<_ACEOF | ||
7476 | /* end confdefs.h. */ | ||
7477 | |||
7478 | #include <float.h> | ||
7479 | #define dInfinity DBL_MAX | ||
7480 | int main() | ||
7481 | { | ||
7482 | if (dInfinity > 1e10 && -dInfinity < -1e10 && -dInfinity < dInfinity) | ||
7483 | return 0; | ||
7484 | else return -1; | ||
7485 | } | ||
7486 | |||
7487 | _ACEOF | ||
7488 | rm -f conftest$ac_exeext | ||
7489 | if { (ac_try="$ac_link" | ||
7490 | case "(($ac_try" in | ||
7491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7492 | *) ac_try_echo=$ac_try;; | ||
7493 | esac | ||
7494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7495 | (eval "$ac_link") 2>&5 | ||
7496 | ac_status=$? | ||
7497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7498 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7499 | { (case "(($ac_try" in | ||
7500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7501 | *) ac_try_echo=$ac_try;; | ||
7502 | esac | ||
7503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7504 | (eval "$ac_try") 2>&5 | ||
7505 | ac_status=$? | ||
7506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7507 | (exit $ac_status); }; }; then | ||
7508 | dinfinity=DBL_MAX | ||
7509 | else | ||
7510 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7511 | echo "$as_me: failed program was:" >&5 | ||
7512 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7513 | |||
7514 | fi | ||
7515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7516 | fi | ||
7517 | |||
7518 | |||
7519 | else | ||
7520 | #cross-compiling, use a reasonable value. We should add an option for setting this. | ||
7521 | dinfinity=DBL_MAX | ||
7522 | fi | ||
7523 | else | ||
7524 | |||
7525 | cat >>confdefs.h <<\_ACEOF | ||
7526 | #define dSINGLE | ||
7527 | _ACEOF | ||
7528 | |||
7529 | if test "$build_os" == "$target_os" | ||
7530 | then | ||
7531 | if test "$cross_compiling" = yes; then | ||
7532 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7533 | See \`config.log' for more details." >&5 | ||
7534 | echo "$as_me: error: cannot run test program while cross compiling | ||
7535 | See \`config.log' for more details." >&2;} | ||
7536 | { (exit 1); exit 1; }; } | ||
7537 | else | ||
7538 | cat >conftest.$ac_ext <<_ACEOF | ||
7539 | /* confdefs.h. */ | ||
7540 | _ACEOF | ||
7541 | cat confdefs.h >>conftest.$ac_ext | ||
7542 | cat >>conftest.$ac_ext <<_ACEOF | ||
7543 | /* end confdefs.h. */ | ||
7544 | |||
7545 | #define dInfinity 1e20f | ||
7546 | int main() | ||
7547 | { | ||
7548 | if (dInfinity > 1e10f && -dInfinity < -1e10f && -dInfinity < dInfinity) | ||
7549 | return 0; | ||
7550 | else return -1; | ||
7551 | } | ||
7552 | |||
7553 | _ACEOF | ||
7554 | rm -f conftest$ac_exeext | ||
7555 | if { (ac_try="$ac_link" | ||
7556 | case "(($ac_try" in | ||
7557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7558 | *) ac_try_echo=$ac_try;; | ||
7559 | esac | ||
7560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7561 | (eval "$ac_link") 2>&5 | ||
7562 | ac_status=$? | ||
7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7564 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7565 | { (case "(($ac_try" in | ||
7566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7567 | *) ac_try_echo=$ac_try;; | ||
7568 | esac | ||
7569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7570 | (eval "$ac_try") 2>&5 | ||
7571 | ac_status=$? | ||
7572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7573 | (exit $ac_status); }; }; then | ||
7574 | dinfinity=1e20f | ||
7575 | else | ||
7576 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7577 | echo "$as_me: failed program was:" >&5 | ||
7578 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7579 | |||
7580 | fi | ||
7581 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7582 | fi | ||
7583 | |||
7584 | |||
7585 | if test "$cross_compiling" = yes; then | ||
7586 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7587 | See \`config.log' for more details." >&5 | ||
7588 | echo "$as_me: error: cannot run test program while cross compiling | ||
7589 | See \`config.log' for more details." >&2;} | ||
7590 | { (exit 1); exit 1; }; } | ||
7591 | else | ||
7592 | cat >conftest.$ac_ext <<_ACEOF | ||
7593 | /* confdefs.h. */ | ||
7594 | _ACEOF | ||
7595 | cat confdefs.h >>conftest.$ac_ext | ||
7596 | cat >>conftest.$ac_ext <<_ACEOF | ||
7597 | /* end confdefs.h. */ | ||
7598 | |||
7599 | #define dInfinity 3.402823466e+38F | ||
7600 | int main() | ||
7601 | { | ||
7602 | if (dInfinity > 1e10f && -dInfinity < -1e10f && -dInfinity < dInfinity) | ||
7603 | return 0; | ||
7604 | else return -1; | ||
7605 | } | ||
7606 | |||
7607 | _ACEOF | ||
7608 | rm -f conftest$ac_exeext | ||
7609 | if { (ac_try="$ac_link" | ||
7610 | case "(($ac_try" in | ||
7611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7612 | *) ac_try_echo=$ac_try;; | ||
7613 | esac | ||
7614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7615 | (eval "$ac_link") 2>&5 | ||
7616 | ac_status=$? | ||
7617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7618 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7619 | { (case "(($ac_try" in | ||
7620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7621 | *) ac_try_echo=$ac_try;; | ||
7622 | esac | ||
7623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7624 | (eval "$ac_try") 2>&5 | ||
7625 | ac_status=$? | ||
7626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7627 | (exit $ac_status); }; }; then | ||
7628 | dinfinity=3.402823466e+38F | ||
7629 | else | ||
7630 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7631 | echo "$as_me: failed program was:" >&5 | ||
7632 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7633 | |||
7634 | fi | ||
7635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7636 | fi | ||
7637 | |||
7638 | |||
7639 | if test "$cross_compiling" = yes; then | ||
7640 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7641 | See \`config.log' for more details." >&5 | ||
7642 | echo "$as_me: error: cannot run test program while cross compiling | ||
7643 | See \`config.log' for more details." >&2;} | ||
7644 | { (exit 1); exit 1; }; } | ||
7645 | else | ||
7646 | cat >conftest.$ac_ext <<_ACEOF | ||
7647 | /* confdefs.h. */ | ||
7648 | _ACEOF | ||
7649 | cat confdefs.h >>conftest.$ac_ext | ||
7650 | cat >>conftest.$ac_ext <<_ACEOF | ||
7651 | /* end confdefs.h. */ | ||
7652 | |||
7653 | #include <float.h> | ||
7654 | #define dInfinity HUGE_VALF | ||
7655 | int main() | ||
7656 | { | ||
7657 | if (dInfinity > 1e10f && -dInfinity < -1e10f && -dInfinity < dInfinity) | ||
7658 | return 0; | ||
7659 | else return -1; | ||
7660 | } | ||
7661 | |||
7662 | _ACEOF | ||
7663 | rm -f conftest$ac_exeext | ||
7664 | if { (ac_try="$ac_link" | ||
7665 | case "(($ac_try" in | ||
7666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7667 | *) ac_try_echo=$ac_try;; | ||
7668 | esac | ||
7669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7670 | (eval "$ac_link") 2>&5 | ||
7671 | ac_status=$? | ||
7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7674 | { (case "(($ac_try" in | ||
7675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7676 | *) ac_try_echo=$ac_try;; | ||
7677 | esac | ||
7678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7679 | (eval "$ac_try") 2>&5 | ||
7680 | ac_status=$? | ||
7681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7682 | (exit $ac_status); }; }; then | ||
7683 | dinfinity=HUGE_VALF | ||
7684 | else | ||
7685 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7686 | echo "$as_me: failed program was:" >&5 | ||
7687 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7688 | |||
7689 | fi | ||
7690 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7691 | fi | ||
7692 | |||
7693 | |||
7694 | if test "$cross_compiling" = yes; then | ||
7695 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7696 | See \`config.log' for more details." >&5 | ||
7697 | echo "$as_me: error: cannot run test program while cross compiling | ||
7698 | See \`config.log' for more details." >&2;} | ||
7699 | { (exit 1); exit 1; }; } | ||
7700 | else | ||
7701 | cat >conftest.$ac_ext <<_ACEOF | ||
7702 | /* confdefs.h. */ | ||
7703 | _ACEOF | ||
7704 | cat confdefs.h >>conftest.$ac_ext | ||
7705 | cat >>conftest.$ac_ext <<_ACEOF | ||
7706 | /* end confdefs.h. */ | ||
7707 | |||
7708 | #include <float.h> | ||
7709 | #define dInfinity FLT_MAX | ||
7710 | int main() | ||
7711 | { | ||
7712 | if (dInfinity > 1e10f && -dInfinity < -1e10f && -dInfinity < dInfinity) | ||
7713 | return 0; | ||
7714 | else return -1; | ||
7715 | } | ||
7716 | |||
7717 | _ACEOF | ||
7718 | rm -f conftest$ac_exeext | ||
7719 | if { (ac_try="$ac_link" | ||
7720 | case "(($ac_try" in | ||
7721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7722 | *) ac_try_echo=$ac_try;; | ||
7723 | esac | ||
7724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7725 | (eval "$ac_link") 2>&5 | ||
7726 | ac_status=$? | ||
7727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7729 | { (case "(($ac_try" in | ||
7730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7731 | *) ac_try_echo=$ac_try;; | ||
7732 | esac | ||
7733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7734 | (eval "$ac_try") 2>&5 | ||
7735 | ac_status=$? | ||
7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7737 | (exit $ac_status); }; }; then | ||
7738 | dinfinity=FLT_MAX | ||
7739 | else | ||
7740 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7741 | echo "$as_me: failed program was:" >&5 | ||
7742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7743 | |||
7744 | fi | ||
7745 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7746 | fi | ||
7747 | |||
7748 | |||
7749 | #cross-compiling, use a reasonable value. We should add an option for setting this. | ||
7750 | dinfinity=FLT_MAX | ||
7751 | fi | ||
7752 | fi | ||
7753 | { echo "$as_me:$LINENO: result: $precision" >&5 | ||
7754 | echo "${ECHO_T}$precision" >&6; } | ||
7755 | |||
7756 | cat >>confdefs.h <<_ACEOF | ||
7757 | #define dInfinity ${dinfinity} | ||
7758 | _ACEOF | ||
7759 | |||
7760 | { echo "$as_me:$LINENO: checking for appropriate dInfinity constant" >&5 | ||
7761 | echo $ECHO_N "checking for appropriate dInfinity constant... $ECHO_C" >&6; } | ||
7762 | { echo "$as_me:$LINENO: result: $dinfinity" >&5 | ||
7763 | echo "${ECHO_T}$dinfinity" >&6; } | ||
7764 | |||
7765 | if test "${ac_cv_header_float_h+set}" = set; then | ||
7766 | { echo "$as_me:$LINENO: checking for float.h" >&5 | ||
7767 | echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } | ||
7768 | if test "${ac_cv_header_float_h+set}" = set; then | ||
7769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7770 | fi | ||
7771 | { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 | ||
7772 | echo "${ECHO_T}$ac_cv_header_float_h" >&6; } | ||
7773 | else | ||
7774 | # Is the header compilable? | ||
7775 | { echo "$as_me:$LINENO: checking float.h usability" >&5 | ||
7776 | echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } | ||
7777 | cat >conftest.$ac_ext <<_ACEOF | ||
7778 | /* confdefs.h. */ | ||
7779 | _ACEOF | ||
7780 | cat confdefs.h >>conftest.$ac_ext | ||
7781 | cat >>conftest.$ac_ext <<_ACEOF | ||
7782 | /* end confdefs.h. */ | ||
7783 | $ac_includes_default | ||
7784 | #include <float.h> | ||
7785 | _ACEOF | ||
7786 | rm -f conftest.$ac_objext | ||
7787 | if { (ac_try="$ac_compile" | ||
7788 | case "(($ac_try" in | ||
7789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7790 | *) ac_try_echo=$ac_try;; | ||
7791 | esac | ||
7792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7793 | (eval "$ac_compile") 2>conftest.er1 | ||
7794 | ac_status=$? | ||
7795 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7796 | rm -f conftest.er1 | ||
7797 | cat conftest.err >&5 | ||
7798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7799 | (exit $ac_status); } && { | ||
7800 | test -z "$ac_c_werror_flag" || | ||
7801 | test ! -s conftest.err | ||
7802 | } && test -s conftest.$ac_objext; then | ||
7803 | ac_header_compiler=yes | ||
7804 | else | ||
7805 | echo "$as_me: failed program was:" >&5 | ||
7806 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7807 | |||
7808 | ac_header_compiler=no | ||
7809 | fi | ||
7810 | |||
7811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7812 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
7813 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
7814 | |||
7815 | # Is the header present? | ||
7816 | { echo "$as_me:$LINENO: checking float.h presence" >&5 | ||
7817 | echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } | ||
7818 | cat >conftest.$ac_ext <<_ACEOF | ||
7819 | /* confdefs.h. */ | ||
7820 | _ACEOF | ||
7821 | cat confdefs.h >>conftest.$ac_ext | ||
7822 | cat >>conftest.$ac_ext <<_ACEOF | ||
7823 | /* end confdefs.h. */ | ||
7824 | #include <float.h> | ||
7825 | _ACEOF | ||
7826 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
7827 | case "(($ac_try" in | ||
7828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7829 | *) ac_try_echo=$ac_try;; | ||
7830 | esac | ||
7831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7832 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
7833 | ac_status=$? | ||
7834 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7835 | rm -f conftest.er1 | ||
7836 | cat conftest.err >&5 | ||
7837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7838 | (exit $ac_status); } >/dev/null && { | ||
7839 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
7840 | test ! -s conftest.err | ||
7841 | }; then | ||
7842 | ac_header_preproc=yes | ||
7843 | else | ||
7844 | echo "$as_me: failed program was:" >&5 | ||
7845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7846 | |||
7847 | ac_header_preproc=no | ||
7848 | fi | ||
7849 | |||
7850 | rm -f conftest.err conftest.$ac_ext | ||
7851 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
7852 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
7853 | |||
7854 | # So? What about this header? | ||
7855 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
7856 | yes:no: ) | ||
7857 | { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
7858 | echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
7859 | { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 | ||
7860 | echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} | ||
7861 | ac_header_preproc=yes | ||
7862 | ;; | ||
7863 | no:yes:* ) | ||
7864 | { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 | ||
7865 | echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} | ||
7866 | { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 | ||
7867 | echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} | ||
7868 | { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 | ||
7869 | echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} | ||
7870 | { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
7871 | echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
7872 | { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 | ||
7873 | echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} | ||
7874 | { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 | ||
7875 | echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} | ||
7876 | ( cat <<\_ASBOX | ||
7877 | ## -------------------------- ## | ||
7878 | ## Report this to ode@ode.org ## | ||
7879 | ## -------------------------- ## | ||
7880 | _ASBOX | ||
7881 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
7882 | ;; | ||
7883 | esac | ||
7884 | { echo "$as_me:$LINENO: checking for float.h" >&5 | ||
7885 | echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } | ||
7886 | if test "${ac_cv_header_float_h+set}" = set; then | ||
7887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7888 | else | ||
7889 | ac_cv_header_float_h=$ac_header_preproc | ||
7890 | fi | ||
7891 | { echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 | ||
7892 | echo "${ECHO_T}$ac_cv_header_float_h" >&6; } | ||
7893 | |||
7894 | fi | ||
7895 | if test $ac_cv_header_float_h = yes; then | ||
7896 | have_float_h=yes | ||
7897 | else | ||
7898 | have_float_h=no | ||
7899 | fi | ||
7900 | |||
7901 | |||
7902 | { echo "$as_me:$LINENO: checking for appropriate dEpsilon constant" >&5 | ||
7903 | echo $ECHO_N "checking for appropriate dEpsilon constant... $ECHO_C" >&6; } | ||
7904 | if test "x$have_float_h" == xyes | ||
7905 | then | ||
7906 | if test $precision == yes | ||
7907 | then | ||
7908 | dEpsilon=DBL_EPSILON | ||
7909 | else | ||
7910 | dEpsilon=FLT_EPSILON | ||
7911 | fi | ||
7912 | else | ||
7913 | if test $precision == yes | ||
7914 | then | ||
7915 | dEpsilon=2.2204460492503131e-16 | ||
7916 | else | ||
7917 | dEpsilon=1.19209290e-07f | ||
7918 | fi | ||
7919 | fi | ||
7920 | |||
7921 | cat >>confdefs.h <<_ACEOF | ||
7922 | #define dEpsilon ${dEpsilon} | ||
7923 | _ACEOF | ||
7924 | |||
7925 | { echo "$as_me:$LINENO: result: $dEpsilon" >&5 | ||
7926 | echo "${ECHO_T}$dEpsilon" >&6; } | ||
7927 | |||
7928 | |||
7929 | if test "$build_os" == "$target_os" | ||
7930 | then | ||
7931 | { echo "$as_me:$LINENO: checking for a Pentium CPU" >&5 | ||
7932 | echo $ECHO_N "checking for a Pentium CPU... $ECHO_C" >&6; } | ||
7933 | if test "$cross_compiling" = yes; then | ||
7934 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
7935 | See \`config.log' for more details." >&5 | ||
7936 | echo "$as_me: error: cannot run test program while cross compiling | ||
7937 | See \`config.log' for more details." >&2;} | ||
7938 | { (exit 1); exit 1; }; } | ||
7939 | else | ||
7940 | cat >conftest.$ac_ext <<_ACEOF | ||
7941 | /* confdefs.h. */ | ||
7942 | _ACEOF | ||
7943 | cat confdefs.h >>conftest.$ac_ext | ||
7944 | cat >>conftest.$ac_ext <<_ACEOF | ||
7945 | /* end confdefs.h. */ | ||
7946 | |||
7947 | int main() | ||
7948 | { | ||
7949 | asm ("mov \$0,%%eax;\n" | ||
7950 | "cpuid\n" : : : "%eax"); | ||
7951 | return 0; | ||
7952 | }; | ||
7953 | |||
7954 | _ACEOF | ||
7955 | rm -f conftest$ac_exeext | ||
7956 | if { (ac_try="$ac_link" | ||
7957 | case "(($ac_try" in | ||
7958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7959 | *) ac_try_echo=$ac_try;; | ||
7960 | esac | ||
7961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7962 | (eval "$ac_link") 2>&5 | ||
7963 | ac_status=$? | ||
7964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7966 | { (case "(($ac_try" in | ||
7967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7968 | *) ac_try_echo=$ac_try;; | ||
7969 | esac | ||
7970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
7971 | (eval "$ac_try") 2>&5 | ||
7972 | ac_status=$? | ||
7973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7974 | (exit $ac_status); }; }; then | ||
7975 | pentium=yes | ||
7976 | else | ||
7977 | echo "$as_me: program exited with status $ac_status" >&5 | ||
7978 | echo "$as_me: failed program was:" >&5 | ||
7979 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7980 | |||
7981 | ( exit $ac_status ) | ||
7982 | pentium=no | ||
7983 | fi | ||
7984 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7985 | fi | ||
7986 | |||
7987 | |||
7988 | else | ||
7989 | pentium=no | ||
7990 | fi | ||
7991 | if test "x$pentium" == xyes | ||
7992 | then | ||
7993 | |||
7994 | cat >>confdefs.h <<\_ACEOF | ||
7995 | #define PENTIUM 1 | ||
7996 | _ACEOF | ||
7997 | |||
7998 | fi | ||
7999 | { echo "$as_me:$LINENO: result: $pentium" >&5 | ||
8000 | echo "${ECHO_T}$pentium" >&6; } | ||
8001 | |||
8002 | { echo "$as_me:$LINENO: checking for a x86-64 CPU" >&5 | ||
8003 | echo $ECHO_N "checking for a x86-64 CPU... $ECHO_C" >&6; } | ||
8004 | if test "$build_os" == "$target_os" | ||
8005 | then | ||
8006 | if test "$cross_compiling" = yes; then | ||
8007 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
8008 | See \`config.log' for more details." >&5 | ||
8009 | echo "$as_me: error: cannot run test program while cross compiling | ||
8010 | See \`config.log' for more details." >&2;} | ||
8011 | { (exit 1); exit 1; }; } | ||
8012 | else | ||
8013 | cat >conftest.$ac_ext <<_ACEOF | ||
8014 | /* confdefs.h. */ | ||
8015 | _ACEOF | ||
8016 | cat confdefs.h >>conftest.$ac_ext | ||
8017 | cat >>conftest.$ac_ext <<_ACEOF | ||
8018 | /* end confdefs.h. */ | ||
8019 | |||
8020 | int main() | ||
8021 | { | ||
8022 | int a = 0; | ||
8023 | int * pa = &a; | ||
8024 | asm ("mov %0,%%rax\n" | ||
8025 | "movl (%%rax),%%eax\n" | ||
8026 | : : "r"(pa) : "%rax"); | ||
8027 | return 0; | ||
8028 | }; | ||
8029 | |||
8030 | _ACEOF | ||
8031 | rm -f conftest$ac_exeext | ||
8032 | if { (ac_try="$ac_link" | ||
8033 | case "(($ac_try" in | ||
8034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8035 | *) ac_try_echo=$ac_try;; | ||
8036 | esac | ||
8037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8038 | (eval "$ac_link") 2>&5 | ||
8039 | ac_status=$? | ||
8040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8041 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8042 | { (case "(($ac_try" in | ||
8043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8044 | *) ac_try_echo=$ac_try;; | ||
8045 | esac | ||
8046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8047 | (eval "$ac_try") 2>&5 | ||
8048 | ac_status=$? | ||
8049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8050 | (exit $ac_status); }; }; then | ||
8051 | cpu64=yes | ||
8052 | else | ||
8053 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8054 | echo "$as_me: failed program was:" >&5 | ||
8055 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8056 | |||
8057 | ( exit $ac_status ) | ||
8058 | cpu64=no | ||
8059 | fi | ||
8060 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8061 | fi | ||
8062 | |||
8063 | |||
8064 | else | ||
8065 | cpu64=no | ||
8066 | fi | ||
8067 | if test "x$cpu64" == xyes | ||
8068 | then | ||
8069 | |||
8070 | cat >>confdefs.h <<\_ACEOF | ||
8071 | #define X86_64_SYSTEM 1 | ||
8072 | _ACEOF | ||
8073 | |||
8074 | fi | ||
8075 | { echo "$as_me:$LINENO: result: $cpu64" >&5 | ||
8076 | echo "${ECHO_T}$cpu64" >&6; } | ||
8077 | if test x$cpu64 = xyes; then | ||
8078 | X86_64_SYSTEM_TRUE= | ||
8079 | X86_64_SYSTEM_FALSE='#' | ||
8080 | else | ||
8081 | X86_64_SYSTEM_TRUE='#' | ||
8082 | X86_64_SYSTEM_FALSE= | ||
8083 | fi | ||
8084 | |||
8085 | |||
8086 | { echo "$as_me:$LINENO: checking if building a release library" >&5 | ||
8087 | echo $ECHO_N "checking if building a release library... $ECHO_C" >&6; } | ||
8088 | # Check whether --enable-release was given. | ||
8089 | if test "${enable_release+set}" = set; then | ||
8090 | enableval=$enable_release; release=$enableval | ||
8091 | else | ||
8092 | release=no | ||
8093 | fi | ||
8094 | |||
8095 | if test "x$release" == xyes | ||
8096 | then | ||
8097 | CFLAGS="$CFLAGS -fomit-frame-pointer -ffast-math" | ||
8098 | CPPFLAGS="$CPPFLAGS -fomit-frame-pointer -ffast-math" | ||
8099 | CXXFLAGS="$CXXFLAGS -fomit-frame-pointer -ffast-math" | ||
8100 | |||
8101 | cat >>confdefs.h <<\_ACEOF | ||
8102 | #define dNODEBUG | ||
8103 | _ACEOF | ||
8104 | |||
8105 | fi | ||
8106 | { echo "$as_me:$LINENO: result: $release" >&5 | ||
8107 | echo "${ECHO_T}$release" >&6; } | ||
8108 | |||
8109 | { echo "$as_me:$LINENO: checking if building a debug library" >&5 | ||
8110 | echo $ECHO_N "checking if building a debug library... $ECHO_C" >&6; } | ||
8111 | # Check whether --enable-debug was given. | ||
8112 | if test "${enable_debug+set}" = set; then | ||
8113 | enableval=$enable_debug; debug=$enableval | ||
8114 | else | ||
8115 | debug=yes | ||
8116 | fi | ||
8117 | |||
8118 | if test "x$debug" == xyes | ||
8119 | then | ||
8120 | CFLAGS="$CFLAGS -g" | ||
8121 | CPPFLAGS="$CPPFLAGS -g" | ||
8122 | CXXFLAGS="$CXXFLAGS -g" | ||
8123 | fi | ||
8124 | { echo "$as_me:$LINENO: result: $debug" >&5 | ||
8125 | echo "${ECHO_T}$debug" >&6; } | ||
8126 | |||
8127 | |||
8128 | { echo "$as_me:$LINENO: checking for char" >&5 | ||
8129 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } | ||
8130 | if test "${ac_cv_type_char+set}" = set; then | ||
8131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8132 | else | ||
8133 | cat >conftest.$ac_ext <<_ACEOF | ||
8134 | /* confdefs.h. */ | ||
8135 | _ACEOF | ||
8136 | cat confdefs.h >>conftest.$ac_ext | ||
8137 | cat >>conftest.$ac_ext <<_ACEOF | ||
8138 | /* end confdefs.h. */ | ||
8139 | $ac_includes_default | ||
8140 | typedef char ac__type_new_; | ||
8141 | int | ||
8142 | main () | ||
8143 | { | ||
8144 | if ((ac__type_new_ *) 0) | ||
8145 | return 0; | ||
8146 | if (sizeof (ac__type_new_)) | ||
8147 | return 0; | ||
8148 | ; | ||
8149 | return 0; | ||
8150 | } | ||
8151 | _ACEOF | ||
8152 | rm -f conftest.$ac_objext | ||
8153 | if { (ac_try="$ac_compile" | ||
8154 | case "(($ac_try" in | ||
8155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8156 | *) ac_try_echo=$ac_try;; | ||
8157 | esac | ||
8158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8159 | (eval "$ac_compile") 2>conftest.er1 | ||
8160 | ac_status=$? | ||
8161 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8162 | rm -f conftest.er1 | ||
8163 | cat conftest.err >&5 | ||
8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8165 | (exit $ac_status); } && { | ||
8166 | test -z "$ac_c_werror_flag" || | ||
8167 | test ! -s conftest.err | ||
8168 | } && test -s conftest.$ac_objext; then | ||
8169 | ac_cv_type_char=yes | ||
8170 | else | ||
8171 | echo "$as_me: failed program was:" >&5 | ||
8172 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8173 | |||
8174 | ac_cv_type_char=no | ||
8175 | fi | ||
8176 | |||
8177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8178 | fi | ||
8179 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | ||
8180 | echo "${ECHO_T}$ac_cv_type_char" >&6; } | ||
8181 | |||
8182 | # The cast to long int works around a bug in the HP C Compiler | ||
8183 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
8184 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
8185 | # This bug is HP SR number 8606223364. | ||
8186 | { echo "$as_me:$LINENO: checking size of char" >&5 | ||
8187 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } | ||
8188 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
8189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8190 | else | ||
8191 | if test "$cross_compiling" = yes; then | ||
8192 | # Depending upon the size, compute the lo and hi bounds. | ||
8193 | cat >conftest.$ac_ext <<_ACEOF | ||
8194 | /* confdefs.h. */ | ||
8195 | _ACEOF | ||
8196 | cat confdefs.h >>conftest.$ac_ext | ||
8197 | cat >>conftest.$ac_ext <<_ACEOF | ||
8198 | /* end confdefs.h. */ | ||
8199 | $ac_includes_default | ||
8200 | typedef char ac__type_sizeof_; | ||
8201 | int | ||
8202 | main () | ||
8203 | { | ||
8204 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
8205 | test_array [0] = 0 | ||
8206 | |||
8207 | ; | ||
8208 | return 0; | ||
8209 | } | ||
8210 | _ACEOF | ||
8211 | rm -f conftest.$ac_objext | ||
8212 | if { (ac_try="$ac_compile" | ||
8213 | case "(($ac_try" in | ||
8214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8215 | *) ac_try_echo=$ac_try;; | ||
8216 | esac | ||
8217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8218 | (eval "$ac_compile") 2>conftest.er1 | ||
8219 | ac_status=$? | ||
8220 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8221 | rm -f conftest.er1 | ||
8222 | cat conftest.err >&5 | ||
8223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8224 | (exit $ac_status); } && { | ||
8225 | test -z "$ac_c_werror_flag" || | ||
8226 | test ! -s conftest.err | ||
8227 | } && test -s conftest.$ac_objext; then | ||
8228 | ac_lo=0 ac_mid=0 | ||
8229 | while :; do | ||
8230 | cat >conftest.$ac_ext <<_ACEOF | ||
8231 | /* confdefs.h. */ | ||
8232 | _ACEOF | ||
8233 | cat confdefs.h >>conftest.$ac_ext | ||
8234 | cat >>conftest.$ac_ext <<_ACEOF | ||
8235 | /* end confdefs.h. */ | ||
8236 | $ac_includes_default | ||
8237 | typedef char ac__type_sizeof_; | ||
8238 | int | ||
8239 | main () | ||
8240 | { | ||
8241 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
8242 | test_array [0] = 0 | ||
8243 | |||
8244 | ; | ||
8245 | return 0; | ||
8246 | } | ||
8247 | _ACEOF | ||
8248 | rm -f conftest.$ac_objext | ||
8249 | if { (ac_try="$ac_compile" | ||
8250 | case "(($ac_try" in | ||
8251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8252 | *) ac_try_echo=$ac_try;; | ||
8253 | esac | ||
8254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8255 | (eval "$ac_compile") 2>conftest.er1 | ||
8256 | ac_status=$? | ||
8257 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8258 | rm -f conftest.er1 | ||
8259 | cat conftest.err >&5 | ||
8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8261 | (exit $ac_status); } && { | ||
8262 | test -z "$ac_c_werror_flag" || | ||
8263 | test ! -s conftest.err | ||
8264 | } && test -s conftest.$ac_objext; then | ||
8265 | ac_hi=$ac_mid; break | ||
8266 | else | ||
8267 | echo "$as_me: failed program was:" >&5 | ||
8268 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8269 | |||
8270 | ac_lo=`expr $ac_mid + 1` | ||
8271 | if test $ac_lo -le $ac_mid; then | ||
8272 | ac_lo= ac_hi= | ||
8273 | break | ||
8274 | fi | ||
8275 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
8276 | fi | ||
8277 | |||
8278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8279 | done | ||
8280 | else | ||
8281 | echo "$as_me: failed program was:" >&5 | ||
8282 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8283 | |||
8284 | cat >conftest.$ac_ext <<_ACEOF | ||
8285 | /* confdefs.h. */ | ||
8286 | _ACEOF | ||
8287 | cat confdefs.h >>conftest.$ac_ext | ||
8288 | cat >>conftest.$ac_ext <<_ACEOF | ||
8289 | /* end confdefs.h. */ | ||
8290 | $ac_includes_default | ||
8291 | typedef char ac__type_sizeof_; | ||
8292 | int | ||
8293 | main () | ||
8294 | { | ||
8295 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
8296 | test_array [0] = 0 | ||
8297 | |||
8298 | ; | ||
8299 | return 0; | ||
8300 | } | ||
8301 | _ACEOF | ||
8302 | rm -f conftest.$ac_objext | ||
8303 | if { (ac_try="$ac_compile" | ||
8304 | case "(($ac_try" in | ||
8305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8306 | *) ac_try_echo=$ac_try;; | ||
8307 | esac | ||
8308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8309 | (eval "$ac_compile") 2>conftest.er1 | ||
8310 | ac_status=$? | ||
8311 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8312 | rm -f conftest.er1 | ||
8313 | cat conftest.err >&5 | ||
8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8315 | (exit $ac_status); } && { | ||
8316 | test -z "$ac_c_werror_flag" || | ||
8317 | test ! -s conftest.err | ||
8318 | } && test -s conftest.$ac_objext; then | ||
8319 | ac_hi=-1 ac_mid=-1 | ||
8320 | while :; do | ||
8321 | cat >conftest.$ac_ext <<_ACEOF | ||
8322 | /* confdefs.h. */ | ||
8323 | _ACEOF | ||
8324 | cat confdefs.h >>conftest.$ac_ext | ||
8325 | cat >>conftest.$ac_ext <<_ACEOF | ||
8326 | /* end confdefs.h. */ | ||
8327 | $ac_includes_default | ||
8328 | typedef char ac__type_sizeof_; | ||
8329 | int | ||
8330 | main () | ||
8331 | { | ||
8332 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
8333 | test_array [0] = 0 | ||
8334 | |||
8335 | ; | ||
8336 | return 0; | ||
8337 | } | ||
8338 | _ACEOF | ||
8339 | rm -f conftest.$ac_objext | ||
8340 | if { (ac_try="$ac_compile" | ||
8341 | case "(($ac_try" in | ||
8342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8343 | *) ac_try_echo=$ac_try;; | ||
8344 | esac | ||
8345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8346 | (eval "$ac_compile") 2>conftest.er1 | ||
8347 | ac_status=$? | ||
8348 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8349 | rm -f conftest.er1 | ||
8350 | cat conftest.err >&5 | ||
8351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8352 | (exit $ac_status); } && { | ||
8353 | test -z "$ac_c_werror_flag" || | ||
8354 | test ! -s conftest.err | ||
8355 | } && test -s conftest.$ac_objext; then | ||
8356 | ac_lo=$ac_mid; break | ||
8357 | else | ||
8358 | echo "$as_me: failed program was:" >&5 | ||
8359 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8360 | |||
8361 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
8362 | if test $ac_mid -le $ac_hi; then | ||
8363 | ac_lo= ac_hi= | ||
8364 | break | ||
8365 | fi | ||
8366 | ac_mid=`expr 2 '*' $ac_mid` | ||
8367 | fi | ||
8368 | |||
8369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8370 | done | ||
8371 | else | ||
8372 | echo "$as_me: failed program was:" >&5 | ||
8373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8374 | |||
8375 | ac_lo= ac_hi= | ||
8376 | fi | ||
8377 | |||
8378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8379 | fi | ||
8380 | |||
8381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8382 | # Binary search between lo and hi bounds. | ||
8383 | while test "x$ac_lo" != "x$ac_hi"; do | ||
8384 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
8385 | cat >conftest.$ac_ext <<_ACEOF | ||
8386 | /* confdefs.h. */ | ||
8387 | _ACEOF | ||
8388 | cat confdefs.h >>conftest.$ac_ext | ||
8389 | cat >>conftest.$ac_ext <<_ACEOF | ||
8390 | /* end confdefs.h. */ | ||
8391 | $ac_includes_default | ||
8392 | typedef char ac__type_sizeof_; | ||
8393 | int | ||
8394 | main () | ||
8395 | { | ||
8396 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
8397 | test_array [0] = 0 | ||
8398 | |||
8399 | ; | ||
8400 | return 0; | ||
8401 | } | ||
8402 | _ACEOF | ||
8403 | rm -f conftest.$ac_objext | ||
8404 | if { (ac_try="$ac_compile" | ||
8405 | case "(($ac_try" in | ||
8406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8407 | *) ac_try_echo=$ac_try;; | ||
8408 | esac | ||
8409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8410 | (eval "$ac_compile") 2>conftest.er1 | ||
8411 | ac_status=$? | ||
8412 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8413 | rm -f conftest.er1 | ||
8414 | cat conftest.err >&5 | ||
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8416 | (exit $ac_status); } && { | ||
8417 | test -z "$ac_c_werror_flag" || | ||
8418 | test ! -s conftest.err | ||
8419 | } && test -s conftest.$ac_objext; then | ||
8420 | ac_hi=$ac_mid | ||
8421 | else | ||
8422 | echo "$as_me: failed program was:" >&5 | ||
8423 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8424 | |||
8425 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
8426 | fi | ||
8427 | |||
8428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8429 | done | ||
8430 | case $ac_lo in | ||
8431 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
8432 | '') if test "$ac_cv_type_char" = yes; then | ||
8433 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
8434 | See \`config.log' for more details." >&5 | ||
8435 | echo "$as_me: error: cannot compute sizeof (char) | ||
8436 | See \`config.log' for more details." >&2;} | ||
8437 | { (exit 77); exit 77; }; } | ||
8438 | else | ||
8439 | ac_cv_sizeof_char=0 | ||
8440 | fi ;; | ||
8441 | esac | ||
8442 | else | ||
8443 | cat >conftest.$ac_ext <<_ACEOF | ||
8444 | /* confdefs.h. */ | ||
8445 | _ACEOF | ||
8446 | cat confdefs.h >>conftest.$ac_ext | ||
8447 | cat >>conftest.$ac_ext <<_ACEOF | ||
8448 | /* end confdefs.h. */ | ||
8449 | $ac_includes_default | ||
8450 | typedef char ac__type_sizeof_; | ||
8451 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
8452 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
8453 | #include <stdio.h> | ||
8454 | #include <stdlib.h> | ||
8455 | int | ||
8456 | main () | ||
8457 | { | ||
8458 | |||
8459 | FILE *f = fopen ("conftest.val", "w"); | ||
8460 | if (! f) | ||
8461 | return 1; | ||
8462 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
8463 | { | ||
8464 | long int i = longval (); | ||
8465 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
8466 | return 1; | ||
8467 | fprintf (f, "%ld\n", i); | ||
8468 | } | ||
8469 | else | ||
8470 | { | ||
8471 | unsigned long int i = ulongval (); | ||
8472 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
8473 | return 1; | ||
8474 | fprintf (f, "%lu\n", i); | ||
8475 | } | ||
8476 | return ferror (f) || fclose (f) != 0; | ||
8477 | |||
8478 | ; | ||
8479 | return 0; | ||
8480 | } | ||
8481 | _ACEOF | ||
8482 | rm -f conftest$ac_exeext | ||
8483 | if { (ac_try="$ac_link" | ||
8484 | case "(($ac_try" in | ||
8485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8486 | *) ac_try_echo=$ac_try;; | ||
8487 | esac | ||
8488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8489 | (eval "$ac_link") 2>&5 | ||
8490 | ac_status=$? | ||
8491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8492 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8493 | { (case "(($ac_try" in | ||
8494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8495 | *) ac_try_echo=$ac_try;; | ||
8496 | esac | ||
8497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8498 | (eval "$ac_try") 2>&5 | ||
8499 | ac_status=$? | ||
8500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8501 | (exit $ac_status); }; }; then | ||
8502 | ac_cv_sizeof_char=`cat conftest.val` | ||
8503 | else | ||
8504 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8505 | echo "$as_me: failed program was:" >&5 | ||
8506 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8507 | |||
8508 | ( exit $ac_status ) | ||
8509 | if test "$ac_cv_type_char" = yes; then | ||
8510 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
8511 | See \`config.log' for more details." >&5 | ||
8512 | echo "$as_me: error: cannot compute sizeof (char) | ||
8513 | See \`config.log' for more details." >&2;} | ||
8514 | { (exit 77); exit 77; }; } | ||
8515 | else | ||
8516 | ac_cv_sizeof_char=0 | ||
8517 | fi | ||
8518 | fi | ||
8519 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8520 | fi | ||
8521 | rm -f conftest.val | ||
8522 | fi | ||
8523 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
8524 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } | ||
8525 | |||
8526 | |||
8527 | |||
8528 | cat >>confdefs.h <<_ACEOF | ||
8529 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
8530 | _ACEOF | ||
8531 | |||
8532 | |||
8533 | { echo "$as_me:$LINENO: checking for int" >&5 | ||
8534 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | ||
8535 | if test "${ac_cv_type_int+set}" = set; then | ||
8536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8537 | else | ||
8538 | cat >conftest.$ac_ext <<_ACEOF | ||
8539 | /* confdefs.h. */ | ||
8540 | _ACEOF | ||
8541 | cat confdefs.h >>conftest.$ac_ext | ||
8542 | cat >>conftest.$ac_ext <<_ACEOF | ||
8543 | /* end confdefs.h. */ | ||
8544 | $ac_includes_default | ||
8545 | typedef int ac__type_new_; | ||
8546 | int | ||
8547 | main () | ||
8548 | { | ||
8549 | if ((ac__type_new_ *) 0) | ||
8550 | return 0; | ||
8551 | if (sizeof (ac__type_new_)) | ||
8552 | return 0; | ||
8553 | ; | ||
8554 | return 0; | ||
8555 | } | ||
8556 | _ACEOF | ||
8557 | rm -f conftest.$ac_objext | ||
8558 | if { (ac_try="$ac_compile" | ||
8559 | case "(($ac_try" in | ||
8560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8561 | *) ac_try_echo=$ac_try;; | ||
8562 | esac | ||
8563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8564 | (eval "$ac_compile") 2>conftest.er1 | ||
8565 | ac_status=$? | ||
8566 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8567 | rm -f conftest.er1 | ||
8568 | cat conftest.err >&5 | ||
8569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8570 | (exit $ac_status); } && { | ||
8571 | test -z "$ac_c_werror_flag" || | ||
8572 | test ! -s conftest.err | ||
8573 | } && test -s conftest.$ac_objext; then | ||
8574 | ac_cv_type_int=yes | ||
8575 | else | ||
8576 | echo "$as_me: failed program was:" >&5 | ||
8577 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8578 | |||
8579 | ac_cv_type_int=no | ||
8580 | fi | ||
8581 | |||
8582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8583 | fi | ||
8584 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | ||
8585 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | ||
8586 | |||
8587 | # The cast to long int works around a bug in the HP C Compiler | ||
8588 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
8589 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
8590 | # This bug is HP SR number 8606223364. | ||
8591 | { echo "$as_me:$LINENO: checking size of int" >&5 | ||
8592 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | ||
8593 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
8594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8595 | else | ||
8596 | if test "$cross_compiling" = yes; then | ||
8597 | # Depending upon the size, compute the lo and hi bounds. | ||
8598 | cat >conftest.$ac_ext <<_ACEOF | ||
8599 | /* confdefs.h. */ | ||
8600 | _ACEOF | ||
8601 | cat confdefs.h >>conftest.$ac_ext | ||
8602 | cat >>conftest.$ac_ext <<_ACEOF | ||
8603 | /* end confdefs.h. */ | ||
8604 | $ac_includes_default | ||
8605 | typedef int ac__type_sizeof_; | ||
8606 | int | ||
8607 | main () | ||
8608 | { | ||
8609 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
8610 | test_array [0] = 0 | ||
8611 | |||
8612 | ; | ||
8613 | return 0; | ||
8614 | } | ||
8615 | _ACEOF | ||
8616 | rm -f conftest.$ac_objext | ||
8617 | if { (ac_try="$ac_compile" | ||
8618 | case "(($ac_try" in | ||
8619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8620 | *) ac_try_echo=$ac_try;; | ||
8621 | esac | ||
8622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8623 | (eval "$ac_compile") 2>conftest.er1 | ||
8624 | ac_status=$? | ||
8625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8626 | rm -f conftest.er1 | ||
8627 | cat conftest.err >&5 | ||
8628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8629 | (exit $ac_status); } && { | ||
8630 | test -z "$ac_c_werror_flag" || | ||
8631 | test ! -s conftest.err | ||
8632 | } && test -s conftest.$ac_objext; then | ||
8633 | ac_lo=0 ac_mid=0 | ||
8634 | while :; do | ||
8635 | cat >conftest.$ac_ext <<_ACEOF | ||
8636 | /* confdefs.h. */ | ||
8637 | _ACEOF | ||
8638 | cat confdefs.h >>conftest.$ac_ext | ||
8639 | cat >>conftest.$ac_ext <<_ACEOF | ||
8640 | /* end confdefs.h. */ | ||
8641 | $ac_includes_default | ||
8642 | typedef int ac__type_sizeof_; | ||
8643 | int | ||
8644 | main () | ||
8645 | { | ||
8646 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
8647 | test_array [0] = 0 | ||
8648 | |||
8649 | ; | ||
8650 | return 0; | ||
8651 | } | ||
8652 | _ACEOF | ||
8653 | rm -f conftest.$ac_objext | ||
8654 | if { (ac_try="$ac_compile" | ||
8655 | case "(($ac_try" in | ||
8656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8657 | *) ac_try_echo=$ac_try;; | ||
8658 | esac | ||
8659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8660 | (eval "$ac_compile") 2>conftest.er1 | ||
8661 | ac_status=$? | ||
8662 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8663 | rm -f conftest.er1 | ||
8664 | cat conftest.err >&5 | ||
8665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8666 | (exit $ac_status); } && { | ||
8667 | test -z "$ac_c_werror_flag" || | ||
8668 | test ! -s conftest.err | ||
8669 | } && test -s conftest.$ac_objext; then | ||
8670 | ac_hi=$ac_mid; break | ||
8671 | else | ||
8672 | echo "$as_me: failed program was:" >&5 | ||
8673 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8674 | |||
8675 | ac_lo=`expr $ac_mid + 1` | ||
8676 | if test $ac_lo -le $ac_mid; then | ||
8677 | ac_lo= ac_hi= | ||
8678 | break | ||
8679 | fi | ||
8680 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
8681 | fi | ||
8682 | |||
8683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8684 | done | ||
8685 | else | ||
8686 | echo "$as_me: failed program was:" >&5 | ||
8687 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8688 | |||
8689 | cat >conftest.$ac_ext <<_ACEOF | ||
8690 | /* confdefs.h. */ | ||
8691 | _ACEOF | ||
8692 | cat confdefs.h >>conftest.$ac_ext | ||
8693 | cat >>conftest.$ac_ext <<_ACEOF | ||
8694 | /* end confdefs.h. */ | ||
8695 | $ac_includes_default | ||
8696 | typedef int ac__type_sizeof_; | ||
8697 | int | ||
8698 | main () | ||
8699 | { | ||
8700 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
8701 | test_array [0] = 0 | ||
8702 | |||
8703 | ; | ||
8704 | return 0; | ||
8705 | } | ||
8706 | _ACEOF | ||
8707 | rm -f conftest.$ac_objext | ||
8708 | if { (ac_try="$ac_compile" | ||
8709 | case "(($ac_try" in | ||
8710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8711 | *) ac_try_echo=$ac_try;; | ||
8712 | esac | ||
8713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8714 | (eval "$ac_compile") 2>conftest.er1 | ||
8715 | ac_status=$? | ||
8716 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8717 | rm -f conftest.er1 | ||
8718 | cat conftest.err >&5 | ||
8719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8720 | (exit $ac_status); } && { | ||
8721 | test -z "$ac_c_werror_flag" || | ||
8722 | test ! -s conftest.err | ||
8723 | } && test -s conftest.$ac_objext; then | ||
8724 | ac_hi=-1 ac_mid=-1 | ||
8725 | while :; do | ||
8726 | cat >conftest.$ac_ext <<_ACEOF | ||
8727 | /* confdefs.h. */ | ||
8728 | _ACEOF | ||
8729 | cat confdefs.h >>conftest.$ac_ext | ||
8730 | cat >>conftest.$ac_ext <<_ACEOF | ||
8731 | /* end confdefs.h. */ | ||
8732 | $ac_includes_default | ||
8733 | typedef int ac__type_sizeof_; | ||
8734 | int | ||
8735 | main () | ||
8736 | { | ||
8737 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
8738 | test_array [0] = 0 | ||
8739 | |||
8740 | ; | ||
8741 | return 0; | ||
8742 | } | ||
8743 | _ACEOF | ||
8744 | rm -f conftest.$ac_objext | ||
8745 | if { (ac_try="$ac_compile" | ||
8746 | case "(($ac_try" in | ||
8747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8748 | *) ac_try_echo=$ac_try;; | ||
8749 | esac | ||
8750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8751 | (eval "$ac_compile") 2>conftest.er1 | ||
8752 | ac_status=$? | ||
8753 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8754 | rm -f conftest.er1 | ||
8755 | cat conftest.err >&5 | ||
8756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8757 | (exit $ac_status); } && { | ||
8758 | test -z "$ac_c_werror_flag" || | ||
8759 | test ! -s conftest.err | ||
8760 | } && test -s conftest.$ac_objext; then | ||
8761 | ac_lo=$ac_mid; break | ||
8762 | else | ||
8763 | echo "$as_me: failed program was:" >&5 | ||
8764 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8765 | |||
8766 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
8767 | if test $ac_mid -le $ac_hi; then | ||
8768 | ac_lo= ac_hi= | ||
8769 | break | ||
8770 | fi | ||
8771 | ac_mid=`expr 2 '*' $ac_mid` | ||
8772 | fi | ||
8773 | |||
8774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8775 | done | ||
8776 | else | ||
8777 | echo "$as_me: failed program was:" >&5 | ||
8778 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8779 | |||
8780 | ac_lo= ac_hi= | ||
8781 | fi | ||
8782 | |||
8783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8784 | fi | ||
8785 | |||
8786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8787 | # Binary search between lo and hi bounds. | ||
8788 | while test "x$ac_lo" != "x$ac_hi"; do | ||
8789 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
8790 | cat >conftest.$ac_ext <<_ACEOF | ||
8791 | /* confdefs.h. */ | ||
8792 | _ACEOF | ||
8793 | cat confdefs.h >>conftest.$ac_ext | ||
8794 | cat >>conftest.$ac_ext <<_ACEOF | ||
8795 | /* end confdefs.h. */ | ||
8796 | $ac_includes_default | ||
8797 | typedef int ac__type_sizeof_; | ||
8798 | int | ||
8799 | main () | ||
8800 | { | ||
8801 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
8802 | test_array [0] = 0 | ||
8803 | |||
8804 | ; | ||
8805 | return 0; | ||
8806 | } | ||
8807 | _ACEOF | ||
8808 | rm -f conftest.$ac_objext | ||
8809 | if { (ac_try="$ac_compile" | ||
8810 | case "(($ac_try" in | ||
8811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8812 | *) ac_try_echo=$ac_try;; | ||
8813 | esac | ||
8814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8815 | (eval "$ac_compile") 2>conftest.er1 | ||
8816 | ac_status=$? | ||
8817 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8818 | rm -f conftest.er1 | ||
8819 | cat conftest.err >&5 | ||
8820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8821 | (exit $ac_status); } && { | ||
8822 | test -z "$ac_c_werror_flag" || | ||
8823 | test ! -s conftest.err | ||
8824 | } && test -s conftest.$ac_objext; then | ||
8825 | ac_hi=$ac_mid | ||
8826 | else | ||
8827 | echo "$as_me: failed program was:" >&5 | ||
8828 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8829 | |||
8830 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
8831 | fi | ||
8832 | |||
8833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8834 | done | ||
8835 | case $ac_lo in | ||
8836 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
8837 | '') if test "$ac_cv_type_int" = yes; then | ||
8838 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
8839 | See \`config.log' for more details." >&5 | ||
8840 | echo "$as_me: error: cannot compute sizeof (int) | ||
8841 | See \`config.log' for more details." >&2;} | ||
8842 | { (exit 77); exit 77; }; } | ||
8843 | else | ||
8844 | ac_cv_sizeof_int=0 | ||
8845 | fi ;; | ||
8846 | esac | ||
8847 | else | ||
8848 | cat >conftest.$ac_ext <<_ACEOF | ||
8849 | /* confdefs.h. */ | ||
8850 | _ACEOF | ||
8851 | cat confdefs.h >>conftest.$ac_ext | ||
8852 | cat >>conftest.$ac_ext <<_ACEOF | ||
8853 | /* end confdefs.h. */ | ||
8854 | $ac_includes_default | ||
8855 | typedef int ac__type_sizeof_; | ||
8856 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
8857 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
8858 | #include <stdio.h> | ||
8859 | #include <stdlib.h> | ||
8860 | int | ||
8861 | main () | ||
8862 | { | ||
8863 | |||
8864 | FILE *f = fopen ("conftest.val", "w"); | ||
8865 | if (! f) | ||
8866 | return 1; | ||
8867 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
8868 | { | ||
8869 | long int i = longval (); | ||
8870 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
8871 | return 1; | ||
8872 | fprintf (f, "%ld\n", i); | ||
8873 | } | ||
8874 | else | ||
8875 | { | ||
8876 | unsigned long int i = ulongval (); | ||
8877 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
8878 | return 1; | ||
8879 | fprintf (f, "%lu\n", i); | ||
8880 | } | ||
8881 | return ferror (f) || fclose (f) != 0; | ||
8882 | |||
8883 | ; | ||
8884 | return 0; | ||
8885 | } | ||
8886 | _ACEOF | ||
8887 | rm -f conftest$ac_exeext | ||
8888 | if { (ac_try="$ac_link" | ||
8889 | case "(($ac_try" in | ||
8890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8891 | *) ac_try_echo=$ac_try;; | ||
8892 | esac | ||
8893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8894 | (eval "$ac_link") 2>&5 | ||
8895 | ac_status=$? | ||
8896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
8898 | { (case "(($ac_try" in | ||
8899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8900 | *) ac_try_echo=$ac_try;; | ||
8901 | esac | ||
8902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8903 | (eval "$ac_try") 2>&5 | ||
8904 | ac_status=$? | ||
8905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8906 | (exit $ac_status); }; }; then | ||
8907 | ac_cv_sizeof_int=`cat conftest.val` | ||
8908 | else | ||
8909 | echo "$as_me: program exited with status $ac_status" >&5 | ||
8910 | echo "$as_me: failed program was:" >&5 | ||
8911 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8912 | |||
8913 | ( exit $ac_status ) | ||
8914 | if test "$ac_cv_type_int" = yes; then | ||
8915 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
8916 | See \`config.log' for more details." >&5 | ||
8917 | echo "$as_me: error: cannot compute sizeof (int) | ||
8918 | See \`config.log' for more details." >&2;} | ||
8919 | { (exit 77); exit 77; }; } | ||
8920 | else | ||
8921 | ac_cv_sizeof_int=0 | ||
8922 | fi | ||
8923 | fi | ||
8924 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
8925 | fi | ||
8926 | rm -f conftest.val | ||
8927 | fi | ||
8928 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
8929 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | ||
8930 | |||
8931 | |||
8932 | |||
8933 | cat >>confdefs.h <<_ACEOF | ||
8934 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
8935 | _ACEOF | ||
8936 | |||
8937 | |||
8938 | { echo "$as_me:$LINENO: checking for short" >&5 | ||
8939 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | ||
8940 | if test "${ac_cv_type_short+set}" = set; then | ||
8941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8942 | else | ||
8943 | cat >conftest.$ac_ext <<_ACEOF | ||
8944 | /* confdefs.h. */ | ||
8945 | _ACEOF | ||
8946 | cat confdefs.h >>conftest.$ac_ext | ||
8947 | cat >>conftest.$ac_ext <<_ACEOF | ||
8948 | /* end confdefs.h. */ | ||
8949 | $ac_includes_default | ||
8950 | typedef short ac__type_new_; | ||
8951 | int | ||
8952 | main () | ||
8953 | { | ||
8954 | if ((ac__type_new_ *) 0) | ||
8955 | return 0; | ||
8956 | if (sizeof (ac__type_new_)) | ||
8957 | return 0; | ||
8958 | ; | ||
8959 | return 0; | ||
8960 | } | ||
8961 | _ACEOF | ||
8962 | rm -f conftest.$ac_objext | ||
8963 | if { (ac_try="$ac_compile" | ||
8964 | case "(($ac_try" in | ||
8965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8966 | *) ac_try_echo=$ac_try;; | ||
8967 | esac | ||
8968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8969 | (eval "$ac_compile") 2>conftest.er1 | ||
8970 | ac_status=$? | ||
8971 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8972 | rm -f conftest.er1 | ||
8973 | cat conftest.err >&5 | ||
8974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8975 | (exit $ac_status); } && { | ||
8976 | test -z "$ac_c_werror_flag" || | ||
8977 | test ! -s conftest.err | ||
8978 | } && test -s conftest.$ac_objext; then | ||
8979 | ac_cv_type_short=yes | ||
8980 | else | ||
8981 | echo "$as_me: failed program was:" >&5 | ||
8982 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8983 | |||
8984 | ac_cv_type_short=no | ||
8985 | fi | ||
8986 | |||
8987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8988 | fi | ||
8989 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | ||
8990 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | ||
8991 | |||
8992 | # The cast to long int works around a bug in the HP C Compiler | ||
8993 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
8994 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
8995 | # This bug is HP SR number 8606223364. | ||
8996 | { echo "$as_me:$LINENO: checking size of short" >&5 | ||
8997 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | ||
8998 | if test "${ac_cv_sizeof_short+set}" = set; then | ||
8999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9000 | else | ||
9001 | if test "$cross_compiling" = yes; then | ||
9002 | # Depending upon the size, compute the lo and hi bounds. | ||
9003 | cat >conftest.$ac_ext <<_ACEOF | ||
9004 | /* confdefs.h. */ | ||
9005 | _ACEOF | ||
9006 | cat confdefs.h >>conftest.$ac_ext | ||
9007 | cat >>conftest.$ac_ext <<_ACEOF | ||
9008 | /* end confdefs.h. */ | ||
9009 | $ac_includes_default | ||
9010 | typedef short ac__type_sizeof_; | ||
9011 | int | ||
9012 | main () | ||
9013 | { | ||
9014 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
9015 | test_array [0] = 0 | ||
9016 | |||
9017 | ; | ||
9018 | return 0; | ||
9019 | } | ||
9020 | _ACEOF | ||
9021 | rm -f conftest.$ac_objext | ||
9022 | if { (ac_try="$ac_compile" | ||
9023 | case "(($ac_try" in | ||
9024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9025 | *) ac_try_echo=$ac_try;; | ||
9026 | esac | ||
9027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9028 | (eval "$ac_compile") 2>conftest.er1 | ||
9029 | ac_status=$? | ||
9030 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9031 | rm -f conftest.er1 | ||
9032 | cat conftest.err >&5 | ||
9033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9034 | (exit $ac_status); } && { | ||
9035 | test -z "$ac_c_werror_flag" || | ||
9036 | test ! -s conftest.err | ||
9037 | } && test -s conftest.$ac_objext; then | ||
9038 | ac_lo=0 ac_mid=0 | ||
9039 | while :; do | ||
9040 | cat >conftest.$ac_ext <<_ACEOF | ||
9041 | /* confdefs.h. */ | ||
9042 | _ACEOF | ||
9043 | cat confdefs.h >>conftest.$ac_ext | ||
9044 | cat >>conftest.$ac_ext <<_ACEOF | ||
9045 | /* end confdefs.h. */ | ||
9046 | $ac_includes_default | ||
9047 | typedef short ac__type_sizeof_; | ||
9048 | int | ||
9049 | main () | ||
9050 | { | ||
9051 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
9052 | test_array [0] = 0 | ||
9053 | |||
9054 | ; | ||
9055 | return 0; | ||
9056 | } | ||
9057 | _ACEOF | ||
9058 | rm -f conftest.$ac_objext | ||
9059 | if { (ac_try="$ac_compile" | ||
9060 | case "(($ac_try" in | ||
9061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9062 | *) ac_try_echo=$ac_try;; | ||
9063 | esac | ||
9064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9065 | (eval "$ac_compile") 2>conftest.er1 | ||
9066 | ac_status=$? | ||
9067 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9068 | rm -f conftest.er1 | ||
9069 | cat conftest.err >&5 | ||
9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9071 | (exit $ac_status); } && { | ||
9072 | test -z "$ac_c_werror_flag" || | ||
9073 | test ! -s conftest.err | ||
9074 | } && test -s conftest.$ac_objext; then | ||
9075 | ac_hi=$ac_mid; break | ||
9076 | else | ||
9077 | echo "$as_me: failed program was:" >&5 | ||
9078 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9079 | |||
9080 | ac_lo=`expr $ac_mid + 1` | ||
9081 | if test $ac_lo -le $ac_mid; then | ||
9082 | ac_lo= ac_hi= | ||
9083 | break | ||
9084 | fi | ||
9085 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
9086 | fi | ||
9087 | |||
9088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9089 | done | ||
9090 | else | ||
9091 | echo "$as_me: failed program was:" >&5 | ||
9092 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9093 | |||
9094 | cat >conftest.$ac_ext <<_ACEOF | ||
9095 | /* confdefs.h. */ | ||
9096 | _ACEOF | ||
9097 | cat confdefs.h >>conftest.$ac_ext | ||
9098 | cat >>conftest.$ac_ext <<_ACEOF | ||
9099 | /* end confdefs.h. */ | ||
9100 | $ac_includes_default | ||
9101 | typedef short ac__type_sizeof_; | ||
9102 | int | ||
9103 | main () | ||
9104 | { | ||
9105 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
9106 | test_array [0] = 0 | ||
9107 | |||
9108 | ; | ||
9109 | return 0; | ||
9110 | } | ||
9111 | _ACEOF | ||
9112 | rm -f conftest.$ac_objext | ||
9113 | if { (ac_try="$ac_compile" | ||
9114 | case "(($ac_try" in | ||
9115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9116 | *) ac_try_echo=$ac_try;; | ||
9117 | esac | ||
9118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9119 | (eval "$ac_compile") 2>conftest.er1 | ||
9120 | ac_status=$? | ||
9121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9122 | rm -f conftest.er1 | ||
9123 | cat conftest.err >&5 | ||
9124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9125 | (exit $ac_status); } && { | ||
9126 | test -z "$ac_c_werror_flag" || | ||
9127 | test ! -s conftest.err | ||
9128 | } && test -s conftest.$ac_objext; then | ||
9129 | ac_hi=-1 ac_mid=-1 | ||
9130 | while :; do | ||
9131 | cat >conftest.$ac_ext <<_ACEOF | ||
9132 | /* confdefs.h. */ | ||
9133 | _ACEOF | ||
9134 | cat confdefs.h >>conftest.$ac_ext | ||
9135 | cat >>conftest.$ac_ext <<_ACEOF | ||
9136 | /* end confdefs.h. */ | ||
9137 | $ac_includes_default | ||
9138 | typedef short ac__type_sizeof_; | ||
9139 | int | ||
9140 | main () | ||
9141 | { | ||
9142 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
9143 | test_array [0] = 0 | ||
9144 | |||
9145 | ; | ||
9146 | return 0; | ||
9147 | } | ||
9148 | _ACEOF | ||
9149 | rm -f conftest.$ac_objext | ||
9150 | if { (ac_try="$ac_compile" | ||
9151 | case "(($ac_try" in | ||
9152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9153 | *) ac_try_echo=$ac_try;; | ||
9154 | esac | ||
9155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9156 | (eval "$ac_compile") 2>conftest.er1 | ||
9157 | ac_status=$? | ||
9158 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9159 | rm -f conftest.er1 | ||
9160 | cat conftest.err >&5 | ||
9161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9162 | (exit $ac_status); } && { | ||
9163 | test -z "$ac_c_werror_flag" || | ||
9164 | test ! -s conftest.err | ||
9165 | } && test -s conftest.$ac_objext; then | ||
9166 | ac_lo=$ac_mid; break | ||
9167 | else | ||
9168 | echo "$as_me: failed program was:" >&5 | ||
9169 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9170 | |||
9171 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
9172 | if test $ac_mid -le $ac_hi; then | ||
9173 | ac_lo= ac_hi= | ||
9174 | break | ||
9175 | fi | ||
9176 | ac_mid=`expr 2 '*' $ac_mid` | ||
9177 | fi | ||
9178 | |||
9179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9180 | done | ||
9181 | else | ||
9182 | echo "$as_me: failed program was:" >&5 | ||
9183 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9184 | |||
9185 | ac_lo= ac_hi= | ||
9186 | fi | ||
9187 | |||
9188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9189 | fi | ||
9190 | |||
9191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9192 | # Binary search between lo and hi bounds. | ||
9193 | while test "x$ac_lo" != "x$ac_hi"; do | ||
9194 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
9195 | cat >conftest.$ac_ext <<_ACEOF | ||
9196 | /* confdefs.h. */ | ||
9197 | _ACEOF | ||
9198 | cat confdefs.h >>conftest.$ac_ext | ||
9199 | cat >>conftest.$ac_ext <<_ACEOF | ||
9200 | /* end confdefs.h. */ | ||
9201 | $ac_includes_default | ||
9202 | typedef short ac__type_sizeof_; | ||
9203 | int | ||
9204 | main () | ||
9205 | { | ||
9206 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
9207 | test_array [0] = 0 | ||
9208 | |||
9209 | ; | ||
9210 | return 0; | ||
9211 | } | ||
9212 | _ACEOF | ||
9213 | rm -f conftest.$ac_objext | ||
9214 | if { (ac_try="$ac_compile" | ||
9215 | case "(($ac_try" in | ||
9216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9217 | *) ac_try_echo=$ac_try;; | ||
9218 | esac | ||
9219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9220 | (eval "$ac_compile") 2>conftest.er1 | ||
9221 | ac_status=$? | ||
9222 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9223 | rm -f conftest.er1 | ||
9224 | cat conftest.err >&5 | ||
9225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9226 | (exit $ac_status); } && { | ||
9227 | test -z "$ac_c_werror_flag" || | ||
9228 | test ! -s conftest.err | ||
9229 | } && test -s conftest.$ac_objext; then | ||
9230 | ac_hi=$ac_mid | ||
9231 | else | ||
9232 | echo "$as_me: failed program was:" >&5 | ||
9233 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9234 | |||
9235 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
9236 | fi | ||
9237 | |||
9238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9239 | done | ||
9240 | case $ac_lo in | ||
9241 | ?*) ac_cv_sizeof_short=$ac_lo;; | ||
9242 | '') if test "$ac_cv_type_short" = yes; then | ||
9243 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | ||
9244 | See \`config.log' for more details." >&5 | ||
9245 | echo "$as_me: error: cannot compute sizeof (short) | ||
9246 | See \`config.log' for more details." >&2;} | ||
9247 | { (exit 77); exit 77; }; } | ||
9248 | else | ||
9249 | ac_cv_sizeof_short=0 | ||
9250 | fi ;; | ||
9251 | esac | ||
9252 | else | ||
9253 | cat >conftest.$ac_ext <<_ACEOF | ||
9254 | /* confdefs.h. */ | ||
9255 | _ACEOF | ||
9256 | cat confdefs.h >>conftest.$ac_ext | ||
9257 | cat >>conftest.$ac_ext <<_ACEOF | ||
9258 | /* end confdefs.h. */ | ||
9259 | $ac_includes_default | ||
9260 | typedef short ac__type_sizeof_; | ||
9261 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
9262 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
9263 | #include <stdio.h> | ||
9264 | #include <stdlib.h> | ||
9265 | int | ||
9266 | main () | ||
9267 | { | ||
9268 | |||
9269 | FILE *f = fopen ("conftest.val", "w"); | ||
9270 | if (! f) | ||
9271 | return 1; | ||
9272 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
9273 | { | ||
9274 | long int i = longval (); | ||
9275 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
9276 | return 1; | ||
9277 | fprintf (f, "%ld\n", i); | ||
9278 | } | ||
9279 | else | ||
9280 | { | ||
9281 | unsigned long int i = ulongval (); | ||
9282 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
9283 | return 1; | ||
9284 | fprintf (f, "%lu\n", i); | ||
9285 | } | ||
9286 | return ferror (f) || fclose (f) != 0; | ||
9287 | |||
9288 | ; | ||
9289 | return 0; | ||
9290 | } | ||
9291 | _ACEOF | ||
9292 | rm -f conftest$ac_exeext | ||
9293 | if { (ac_try="$ac_link" | ||
9294 | case "(($ac_try" in | ||
9295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9296 | *) ac_try_echo=$ac_try;; | ||
9297 | esac | ||
9298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9299 | (eval "$ac_link") 2>&5 | ||
9300 | ac_status=$? | ||
9301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9302 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9303 | { (case "(($ac_try" in | ||
9304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9305 | *) ac_try_echo=$ac_try;; | ||
9306 | esac | ||
9307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9308 | (eval "$ac_try") 2>&5 | ||
9309 | ac_status=$? | ||
9310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9311 | (exit $ac_status); }; }; then | ||
9312 | ac_cv_sizeof_short=`cat conftest.val` | ||
9313 | else | ||
9314 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9315 | echo "$as_me: failed program was:" >&5 | ||
9316 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9317 | |||
9318 | ( exit $ac_status ) | ||
9319 | if test "$ac_cv_type_short" = yes; then | ||
9320 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | ||
9321 | See \`config.log' for more details." >&5 | ||
9322 | echo "$as_me: error: cannot compute sizeof (short) | ||
9323 | See \`config.log' for more details." >&2;} | ||
9324 | { (exit 77); exit 77; }; } | ||
9325 | else | ||
9326 | ac_cv_sizeof_short=0 | ||
9327 | fi | ||
9328 | fi | ||
9329 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9330 | fi | ||
9331 | rm -f conftest.val | ||
9332 | fi | ||
9333 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | ||
9334 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | ||
9335 | |||
9336 | |||
9337 | |||
9338 | cat >>confdefs.h <<_ACEOF | ||
9339 | #define SIZEOF_SHORT $ac_cv_sizeof_short | ||
9340 | _ACEOF | ||
9341 | |||
9342 | |||
9343 | { echo "$as_me:$LINENO: checking for long int" >&5 | ||
9344 | echo $ECHO_N "checking for long int... $ECHO_C" >&6; } | ||
9345 | if test "${ac_cv_type_long_int+set}" = set; then | ||
9346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9347 | else | ||
9348 | cat >conftest.$ac_ext <<_ACEOF | ||
9349 | /* confdefs.h. */ | ||
9350 | _ACEOF | ||
9351 | cat confdefs.h >>conftest.$ac_ext | ||
9352 | cat >>conftest.$ac_ext <<_ACEOF | ||
9353 | /* end confdefs.h. */ | ||
9354 | $ac_includes_default | ||
9355 | typedef long int ac__type_new_; | ||
9356 | int | ||
9357 | main () | ||
9358 | { | ||
9359 | if ((ac__type_new_ *) 0) | ||
9360 | return 0; | ||
9361 | if (sizeof (ac__type_new_)) | ||
9362 | return 0; | ||
9363 | ; | ||
9364 | return 0; | ||
9365 | } | ||
9366 | _ACEOF | ||
9367 | rm -f conftest.$ac_objext | ||
9368 | if { (ac_try="$ac_compile" | ||
9369 | case "(($ac_try" in | ||
9370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9371 | *) ac_try_echo=$ac_try;; | ||
9372 | esac | ||
9373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9374 | (eval "$ac_compile") 2>conftest.er1 | ||
9375 | ac_status=$? | ||
9376 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9377 | rm -f conftest.er1 | ||
9378 | cat conftest.err >&5 | ||
9379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9380 | (exit $ac_status); } && { | ||
9381 | test -z "$ac_c_werror_flag" || | ||
9382 | test ! -s conftest.err | ||
9383 | } && test -s conftest.$ac_objext; then | ||
9384 | ac_cv_type_long_int=yes | ||
9385 | else | ||
9386 | echo "$as_me: failed program was:" >&5 | ||
9387 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9388 | |||
9389 | ac_cv_type_long_int=no | ||
9390 | fi | ||
9391 | |||
9392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9393 | fi | ||
9394 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 | ||
9395 | echo "${ECHO_T}$ac_cv_type_long_int" >&6; } | ||
9396 | |||
9397 | # The cast to long int works around a bug in the HP C Compiler | ||
9398 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
9399 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
9400 | # This bug is HP SR number 8606223364. | ||
9401 | { echo "$as_me:$LINENO: checking size of long int" >&5 | ||
9402 | echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } | ||
9403 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
9404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9405 | else | ||
9406 | if test "$cross_compiling" = yes; then | ||
9407 | # Depending upon the size, compute the lo and hi bounds. | ||
9408 | cat >conftest.$ac_ext <<_ACEOF | ||
9409 | /* confdefs.h. */ | ||
9410 | _ACEOF | ||
9411 | cat confdefs.h >>conftest.$ac_ext | ||
9412 | cat >>conftest.$ac_ext <<_ACEOF | ||
9413 | /* end confdefs.h. */ | ||
9414 | $ac_includes_default | ||
9415 | typedef long int ac__type_sizeof_; | ||
9416 | int | ||
9417 | main () | ||
9418 | { | ||
9419 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
9420 | test_array [0] = 0 | ||
9421 | |||
9422 | ; | ||
9423 | return 0; | ||
9424 | } | ||
9425 | _ACEOF | ||
9426 | rm -f conftest.$ac_objext | ||
9427 | if { (ac_try="$ac_compile" | ||
9428 | case "(($ac_try" in | ||
9429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9430 | *) ac_try_echo=$ac_try;; | ||
9431 | esac | ||
9432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9433 | (eval "$ac_compile") 2>conftest.er1 | ||
9434 | ac_status=$? | ||
9435 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9436 | rm -f conftest.er1 | ||
9437 | cat conftest.err >&5 | ||
9438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9439 | (exit $ac_status); } && { | ||
9440 | test -z "$ac_c_werror_flag" || | ||
9441 | test ! -s conftest.err | ||
9442 | } && test -s conftest.$ac_objext; then | ||
9443 | ac_lo=0 ac_mid=0 | ||
9444 | while :; do | ||
9445 | cat >conftest.$ac_ext <<_ACEOF | ||
9446 | /* confdefs.h. */ | ||
9447 | _ACEOF | ||
9448 | cat confdefs.h >>conftest.$ac_ext | ||
9449 | cat >>conftest.$ac_ext <<_ACEOF | ||
9450 | /* end confdefs.h. */ | ||
9451 | $ac_includes_default | ||
9452 | typedef long int ac__type_sizeof_; | ||
9453 | int | ||
9454 | main () | ||
9455 | { | ||
9456 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
9457 | test_array [0] = 0 | ||
9458 | |||
9459 | ; | ||
9460 | return 0; | ||
9461 | } | ||
9462 | _ACEOF | ||
9463 | rm -f conftest.$ac_objext | ||
9464 | if { (ac_try="$ac_compile" | ||
9465 | case "(($ac_try" in | ||
9466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9467 | *) ac_try_echo=$ac_try;; | ||
9468 | esac | ||
9469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9470 | (eval "$ac_compile") 2>conftest.er1 | ||
9471 | ac_status=$? | ||
9472 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9473 | rm -f conftest.er1 | ||
9474 | cat conftest.err >&5 | ||
9475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9476 | (exit $ac_status); } && { | ||
9477 | test -z "$ac_c_werror_flag" || | ||
9478 | test ! -s conftest.err | ||
9479 | } && test -s conftest.$ac_objext; then | ||
9480 | ac_hi=$ac_mid; break | ||
9481 | else | ||
9482 | echo "$as_me: failed program was:" >&5 | ||
9483 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9484 | |||
9485 | ac_lo=`expr $ac_mid + 1` | ||
9486 | if test $ac_lo -le $ac_mid; then | ||
9487 | ac_lo= ac_hi= | ||
9488 | break | ||
9489 | fi | ||
9490 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
9491 | fi | ||
9492 | |||
9493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9494 | done | ||
9495 | else | ||
9496 | echo "$as_me: failed program was:" >&5 | ||
9497 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9498 | |||
9499 | cat >conftest.$ac_ext <<_ACEOF | ||
9500 | /* confdefs.h. */ | ||
9501 | _ACEOF | ||
9502 | cat confdefs.h >>conftest.$ac_ext | ||
9503 | cat >>conftest.$ac_ext <<_ACEOF | ||
9504 | /* end confdefs.h. */ | ||
9505 | $ac_includes_default | ||
9506 | typedef long int ac__type_sizeof_; | ||
9507 | int | ||
9508 | main () | ||
9509 | { | ||
9510 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
9511 | test_array [0] = 0 | ||
9512 | |||
9513 | ; | ||
9514 | return 0; | ||
9515 | } | ||
9516 | _ACEOF | ||
9517 | rm -f conftest.$ac_objext | ||
9518 | if { (ac_try="$ac_compile" | ||
9519 | case "(($ac_try" in | ||
9520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9521 | *) ac_try_echo=$ac_try;; | ||
9522 | esac | ||
9523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9524 | (eval "$ac_compile") 2>conftest.er1 | ||
9525 | ac_status=$? | ||
9526 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9527 | rm -f conftest.er1 | ||
9528 | cat conftest.err >&5 | ||
9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9530 | (exit $ac_status); } && { | ||
9531 | test -z "$ac_c_werror_flag" || | ||
9532 | test ! -s conftest.err | ||
9533 | } && test -s conftest.$ac_objext; then | ||
9534 | ac_hi=-1 ac_mid=-1 | ||
9535 | while :; do | ||
9536 | cat >conftest.$ac_ext <<_ACEOF | ||
9537 | /* confdefs.h. */ | ||
9538 | _ACEOF | ||
9539 | cat confdefs.h >>conftest.$ac_ext | ||
9540 | cat >>conftest.$ac_ext <<_ACEOF | ||
9541 | /* end confdefs.h. */ | ||
9542 | $ac_includes_default | ||
9543 | typedef long int ac__type_sizeof_; | ||
9544 | int | ||
9545 | main () | ||
9546 | { | ||
9547 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
9548 | test_array [0] = 0 | ||
9549 | |||
9550 | ; | ||
9551 | return 0; | ||
9552 | } | ||
9553 | _ACEOF | ||
9554 | rm -f conftest.$ac_objext | ||
9555 | if { (ac_try="$ac_compile" | ||
9556 | case "(($ac_try" in | ||
9557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9558 | *) ac_try_echo=$ac_try;; | ||
9559 | esac | ||
9560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9561 | (eval "$ac_compile") 2>conftest.er1 | ||
9562 | ac_status=$? | ||
9563 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9564 | rm -f conftest.er1 | ||
9565 | cat conftest.err >&5 | ||
9566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9567 | (exit $ac_status); } && { | ||
9568 | test -z "$ac_c_werror_flag" || | ||
9569 | test ! -s conftest.err | ||
9570 | } && test -s conftest.$ac_objext; then | ||
9571 | ac_lo=$ac_mid; break | ||
9572 | else | ||
9573 | echo "$as_me: failed program was:" >&5 | ||
9574 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9575 | |||
9576 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
9577 | if test $ac_mid -le $ac_hi; then | ||
9578 | ac_lo= ac_hi= | ||
9579 | break | ||
9580 | fi | ||
9581 | ac_mid=`expr 2 '*' $ac_mid` | ||
9582 | fi | ||
9583 | |||
9584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9585 | done | ||
9586 | else | ||
9587 | echo "$as_me: failed program was:" >&5 | ||
9588 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9589 | |||
9590 | ac_lo= ac_hi= | ||
9591 | fi | ||
9592 | |||
9593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9594 | fi | ||
9595 | |||
9596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9597 | # Binary search between lo and hi bounds. | ||
9598 | while test "x$ac_lo" != "x$ac_hi"; do | ||
9599 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
9600 | cat >conftest.$ac_ext <<_ACEOF | ||
9601 | /* confdefs.h. */ | ||
9602 | _ACEOF | ||
9603 | cat confdefs.h >>conftest.$ac_ext | ||
9604 | cat >>conftest.$ac_ext <<_ACEOF | ||
9605 | /* end confdefs.h. */ | ||
9606 | $ac_includes_default | ||
9607 | typedef long int ac__type_sizeof_; | ||
9608 | int | ||
9609 | main () | ||
9610 | { | ||
9611 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
9612 | test_array [0] = 0 | ||
9613 | |||
9614 | ; | ||
9615 | return 0; | ||
9616 | } | ||
9617 | _ACEOF | ||
9618 | rm -f conftest.$ac_objext | ||
9619 | if { (ac_try="$ac_compile" | ||
9620 | case "(($ac_try" in | ||
9621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9622 | *) ac_try_echo=$ac_try;; | ||
9623 | esac | ||
9624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9625 | (eval "$ac_compile") 2>conftest.er1 | ||
9626 | ac_status=$? | ||
9627 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9628 | rm -f conftest.er1 | ||
9629 | cat conftest.err >&5 | ||
9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9631 | (exit $ac_status); } && { | ||
9632 | test -z "$ac_c_werror_flag" || | ||
9633 | test ! -s conftest.err | ||
9634 | } && test -s conftest.$ac_objext; then | ||
9635 | ac_hi=$ac_mid | ||
9636 | else | ||
9637 | echo "$as_me: failed program was:" >&5 | ||
9638 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9639 | |||
9640 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
9641 | fi | ||
9642 | |||
9643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9644 | done | ||
9645 | case $ac_lo in | ||
9646 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
9647 | '') if test "$ac_cv_type_long_int" = yes; then | ||
9648 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
9649 | See \`config.log' for more details." >&5 | ||
9650 | echo "$as_me: error: cannot compute sizeof (long int) | ||
9651 | See \`config.log' for more details." >&2;} | ||
9652 | { (exit 77); exit 77; }; } | ||
9653 | else | ||
9654 | ac_cv_sizeof_long_int=0 | ||
9655 | fi ;; | ||
9656 | esac | ||
9657 | else | ||
9658 | cat >conftest.$ac_ext <<_ACEOF | ||
9659 | /* confdefs.h. */ | ||
9660 | _ACEOF | ||
9661 | cat confdefs.h >>conftest.$ac_ext | ||
9662 | cat >>conftest.$ac_ext <<_ACEOF | ||
9663 | /* end confdefs.h. */ | ||
9664 | $ac_includes_default | ||
9665 | typedef long int ac__type_sizeof_; | ||
9666 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
9667 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
9668 | #include <stdio.h> | ||
9669 | #include <stdlib.h> | ||
9670 | int | ||
9671 | main () | ||
9672 | { | ||
9673 | |||
9674 | FILE *f = fopen ("conftest.val", "w"); | ||
9675 | if (! f) | ||
9676 | return 1; | ||
9677 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
9678 | { | ||
9679 | long int i = longval (); | ||
9680 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
9681 | return 1; | ||
9682 | fprintf (f, "%ld\n", i); | ||
9683 | } | ||
9684 | else | ||
9685 | { | ||
9686 | unsigned long int i = ulongval (); | ||
9687 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
9688 | return 1; | ||
9689 | fprintf (f, "%lu\n", i); | ||
9690 | } | ||
9691 | return ferror (f) || fclose (f) != 0; | ||
9692 | |||
9693 | ; | ||
9694 | return 0; | ||
9695 | } | ||
9696 | _ACEOF | ||
9697 | rm -f conftest$ac_exeext | ||
9698 | if { (ac_try="$ac_link" | ||
9699 | case "(($ac_try" in | ||
9700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9701 | *) ac_try_echo=$ac_try;; | ||
9702 | esac | ||
9703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9704 | (eval "$ac_link") 2>&5 | ||
9705 | ac_status=$? | ||
9706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9707 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9708 | { (case "(($ac_try" in | ||
9709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9710 | *) ac_try_echo=$ac_try;; | ||
9711 | esac | ||
9712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9713 | (eval "$ac_try") 2>&5 | ||
9714 | ac_status=$? | ||
9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9716 | (exit $ac_status); }; }; then | ||
9717 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
9718 | else | ||
9719 | echo "$as_me: program exited with status $ac_status" >&5 | ||
9720 | echo "$as_me: failed program was:" >&5 | ||
9721 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9722 | |||
9723 | ( exit $ac_status ) | ||
9724 | if test "$ac_cv_type_long_int" = yes; then | ||
9725 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
9726 | See \`config.log' for more details." >&5 | ||
9727 | echo "$as_me: error: cannot compute sizeof (long int) | ||
9728 | See \`config.log' for more details." >&2;} | ||
9729 | { (exit 77); exit 77; }; } | ||
9730 | else | ||
9731 | ac_cv_sizeof_long_int=0 | ||
9732 | fi | ||
9733 | fi | ||
9734 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9735 | fi | ||
9736 | rm -f conftest.val | ||
9737 | fi | ||
9738 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
9739 | echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } | ||
9740 | |||
9741 | |||
9742 | |||
9743 | cat >>confdefs.h <<_ACEOF | ||
9744 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
9745 | _ACEOF | ||
9746 | |||
9747 | |||
9748 | { echo "$as_me:$LINENO: checking for void*" >&5 | ||
9749 | echo $ECHO_N "checking for void*... $ECHO_C" >&6; } | ||
9750 | if test "${ac_cv_type_voidp+set}" = set; then | ||
9751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9752 | else | ||
9753 | cat >conftest.$ac_ext <<_ACEOF | ||
9754 | /* confdefs.h. */ | ||
9755 | _ACEOF | ||
9756 | cat confdefs.h >>conftest.$ac_ext | ||
9757 | cat >>conftest.$ac_ext <<_ACEOF | ||
9758 | /* end confdefs.h. */ | ||
9759 | $ac_includes_default | ||
9760 | typedef void* ac__type_new_; | ||
9761 | int | ||
9762 | main () | ||
9763 | { | ||
9764 | if ((ac__type_new_ *) 0) | ||
9765 | return 0; | ||
9766 | if (sizeof (ac__type_new_)) | ||
9767 | return 0; | ||
9768 | ; | ||
9769 | return 0; | ||
9770 | } | ||
9771 | _ACEOF | ||
9772 | rm -f conftest.$ac_objext | ||
9773 | if { (ac_try="$ac_compile" | ||
9774 | case "(($ac_try" in | ||
9775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9776 | *) ac_try_echo=$ac_try;; | ||
9777 | esac | ||
9778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9779 | (eval "$ac_compile") 2>conftest.er1 | ||
9780 | ac_status=$? | ||
9781 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9782 | rm -f conftest.er1 | ||
9783 | cat conftest.err >&5 | ||
9784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9785 | (exit $ac_status); } && { | ||
9786 | test -z "$ac_c_werror_flag" || | ||
9787 | test ! -s conftest.err | ||
9788 | } && test -s conftest.$ac_objext; then | ||
9789 | ac_cv_type_voidp=yes | ||
9790 | else | ||
9791 | echo "$as_me: failed program was:" >&5 | ||
9792 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9793 | |||
9794 | ac_cv_type_voidp=no | ||
9795 | fi | ||
9796 | |||
9797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9798 | fi | ||
9799 | { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5 | ||
9800 | echo "${ECHO_T}$ac_cv_type_voidp" >&6; } | ||
9801 | |||
9802 | # The cast to long int works around a bug in the HP C Compiler | ||
9803 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
9804 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
9805 | # This bug is HP SR number 8606223364. | ||
9806 | { echo "$as_me:$LINENO: checking size of void*" >&5 | ||
9807 | echo $ECHO_N "checking size of void*... $ECHO_C" >&6; } | ||
9808 | if test "${ac_cv_sizeof_voidp+set}" = set; then | ||
9809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9810 | else | ||
9811 | if test "$cross_compiling" = yes; then | ||
9812 | # Depending upon the size, compute the lo and hi bounds. | ||
9813 | cat >conftest.$ac_ext <<_ACEOF | ||
9814 | /* confdefs.h. */ | ||
9815 | _ACEOF | ||
9816 | cat confdefs.h >>conftest.$ac_ext | ||
9817 | cat >>conftest.$ac_ext <<_ACEOF | ||
9818 | /* end confdefs.h. */ | ||
9819 | $ac_includes_default | ||
9820 | typedef void* ac__type_sizeof_; | ||
9821 | int | ||
9822 | main () | ||
9823 | { | ||
9824 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | ||
9825 | test_array [0] = 0 | ||
9826 | |||
9827 | ; | ||
9828 | return 0; | ||
9829 | } | ||
9830 | _ACEOF | ||
9831 | rm -f conftest.$ac_objext | ||
9832 | if { (ac_try="$ac_compile" | ||
9833 | case "(($ac_try" in | ||
9834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9835 | *) ac_try_echo=$ac_try;; | ||
9836 | esac | ||
9837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9838 | (eval "$ac_compile") 2>conftest.er1 | ||
9839 | ac_status=$? | ||
9840 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9841 | rm -f conftest.er1 | ||
9842 | cat conftest.err >&5 | ||
9843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9844 | (exit $ac_status); } && { | ||
9845 | test -z "$ac_c_werror_flag" || | ||
9846 | test ! -s conftest.err | ||
9847 | } && test -s conftest.$ac_objext; then | ||
9848 | ac_lo=0 ac_mid=0 | ||
9849 | while :; do | ||
9850 | cat >conftest.$ac_ext <<_ACEOF | ||
9851 | /* confdefs.h. */ | ||
9852 | _ACEOF | ||
9853 | cat confdefs.h >>conftest.$ac_ext | ||
9854 | cat >>conftest.$ac_ext <<_ACEOF | ||
9855 | /* end confdefs.h. */ | ||
9856 | $ac_includes_default | ||
9857 | typedef void* ac__type_sizeof_; | ||
9858 | int | ||
9859 | main () | ||
9860 | { | ||
9861 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
9862 | test_array [0] = 0 | ||
9863 | |||
9864 | ; | ||
9865 | return 0; | ||
9866 | } | ||
9867 | _ACEOF | ||
9868 | rm -f conftest.$ac_objext | ||
9869 | if { (ac_try="$ac_compile" | ||
9870 | case "(($ac_try" in | ||
9871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9872 | *) ac_try_echo=$ac_try;; | ||
9873 | esac | ||
9874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9875 | (eval "$ac_compile") 2>conftest.er1 | ||
9876 | ac_status=$? | ||
9877 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9878 | rm -f conftest.er1 | ||
9879 | cat conftest.err >&5 | ||
9880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9881 | (exit $ac_status); } && { | ||
9882 | test -z "$ac_c_werror_flag" || | ||
9883 | test ! -s conftest.err | ||
9884 | } && test -s conftest.$ac_objext; then | ||
9885 | ac_hi=$ac_mid; break | ||
9886 | else | ||
9887 | echo "$as_me: failed program was:" >&5 | ||
9888 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9889 | |||
9890 | ac_lo=`expr $ac_mid + 1` | ||
9891 | if test $ac_lo -le $ac_mid; then | ||
9892 | ac_lo= ac_hi= | ||
9893 | break | ||
9894 | fi | ||
9895 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
9896 | fi | ||
9897 | |||
9898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9899 | done | ||
9900 | else | ||
9901 | echo "$as_me: failed program was:" >&5 | ||
9902 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9903 | |||
9904 | cat >conftest.$ac_ext <<_ACEOF | ||
9905 | /* confdefs.h. */ | ||
9906 | _ACEOF | ||
9907 | cat confdefs.h >>conftest.$ac_ext | ||
9908 | cat >>conftest.$ac_ext <<_ACEOF | ||
9909 | /* end confdefs.h. */ | ||
9910 | $ac_includes_default | ||
9911 | typedef void* ac__type_sizeof_; | ||
9912 | int | ||
9913 | main () | ||
9914 | { | ||
9915 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | ||
9916 | test_array [0] = 0 | ||
9917 | |||
9918 | ; | ||
9919 | return 0; | ||
9920 | } | ||
9921 | _ACEOF | ||
9922 | rm -f conftest.$ac_objext | ||
9923 | if { (ac_try="$ac_compile" | ||
9924 | case "(($ac_try" in | ||
9925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9926 | *) ac_try_echo=$ac_try;; | ||
9927 | esac | ||
9928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9929 | (eval "$ac_compile") 2>conftest.er1 | ||
9930 | ac_status=$? | ||
9931 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9932 | rm -f conftest.er1 | ||
9933 | cat conftest.err >&5 | ||
9934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9935 | (exit $ac_status); } && { | ||
9936 | test -z "$ac_c_werror_flag" || | ||
9937 | test ! -s conftest.err | ||
9938 | } && test -s conftest.$ac_objext; then | ||
9939 | ac_hi=-1 ac_mid=-1 | ||
9940 | while :; do | ||
9941 | cat >conftest.$ac_ext <<_ACEOF | ||
9942 | /* confdefs.h. */ | ||
9943 | _ACEOF | ||
9944 | cat confdefs.h >>conftest.$ac_ext | ||
9945 | cat >>conftest.$ac_ext <<_ACEOF | ||
9946 | /* end confdefs.h. */ | ||
9947 | $ac_includes_default | ||
9948 | typedef void* ac__type_sizeof_; | ||
9949 | int | ||
9950 | main () | ||
9951 | { | ||
9952 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | ||
9953 | test_array [0] = 0 | ||
9954 | |||
9955 | ; | ||
9956 | return 0; | ||
9957 | } | ||
9958 | _ACEOF | ||
9959 | rm -f conftest.$ac_objext | ||
9960 | if { (ac_try="$ac_compile" | ||
9961 | case "(($ac_try" in | ||
9962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9963 | *) ac_try_echo=$ac_try;; | ||
9964 | esac | ||
9965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9966 | (eval "$ac_compile") 2>conftest.er1 | ||
9967 | ac_status=$? | ||
9968 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9969 | rm -f conftest.er1 | ||
9970 | cat conftest.err >&5 | ||
9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9972 | (exit $ac_status); } && { | ||
9973 | test -z "$ac_c_werror_flag" || | ||
9974 | test ! -s conftest.err | ||
9975 | } && test -s conftest.$ac_objext; then | ||
9976 | ac_lo=$ac_mid; break | ||
9977 | else | ||
9978 | echo "$as_me: failed program was:" >&5 | ||
9979 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9980 | |||
9981 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
9982 | if test $ac_mid -le $ac_hi; then | ||
9983 | ac_lo= ac_hi= | ||
9984 | break | ||
9985 | fi | ||
9986 | ac_mid=`expr 2 '*' $ac_mid` | ||
9987 | fi | ||
9988 | |||
9989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9990 | done | ||
9991 | else | ||
9992 | echo "$as_me: failed program was:" >&5 | ||
9993 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9994 | |||
9995 | ac_lo= ac_hi= | ||
9996 | fi | ||
9997 | |||
9998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9999 | fi | ||
10000 | |||
10001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10002 | # Binary search between lo and hi bounds. | ||
10003 | while test "x$ac_lo" != "x$ac_hi"; do | ||
10004 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
10005 | cat >conftest.$ac_ext <<_ACEOF | ||
10006 | /* confdefs.h. */ | ||
10007 | _ACEOF | ||
10008 | cat confdefs.h >>conftest.$ac_ext | ||
10009 | cat >>conftest.$ac_ext <<_ACEOF | ||
10010 | /* end confdefs.h. */ | ||
10011 | $ac_includes_default | ||
10012 | typedef void* ac__type_sizeof_; | ||
10013 | int | ||
10014 | main () | ||
10015 | { | ||
10016 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | ||
10017 | test_array [0] = 0 | ||
10018 | |||
10019 | ; | ||
10020 | return 0; | ||
10021 | } | ||
10022 | _ACEOF | ||
10023 | rm -f conftest.$ac_objext | ||
10024 | if { (ac_try="$ac_compile" | ||
10025 | case "(($ac_try" in | ||
10026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10027 | *) ac_try_echo=$ac_try;; | ||
10028 | esac | ||
10029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10030 | (eval "$ac_compile") 2>conftest.er1 | ||
10031 | ac_status=$? | ||
10032 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10033 | rm -f conftest.er1 | ||
10034 | cat conftest.err >&5 | ||
10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10036 | (exit $ac_status); } && { | ||
10037 | test -z "$ac_c_werror_flag" || | ||
10038 | test ! -s conftest.err | ||
10039 | } && test -s conftest.$ac_objext; then | ||
10040 | ac_hi=$ac_mid | ||
10041 | else | ||
10042 | echo "$as_me: failed program was:" >&5 | ||
10043 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10044 | |||
10045 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
10046 | fi | ||
10047 | |||
10048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10049 | done | ||
10050 | case $ac_lo in | ||
10051 | ?*) ac_cv_sizeof_voidp=$ac_lo;; | ||
10052 | '') if test "$ac_cv_type_voidp" = yes; then | ||
10053 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*) | ||
10054 | See \`config.log' for more details." >&5 | ||
10055 | echo "$as_me: error: cannot compute sizeof (void*) | ||
10056 | See \`config.log' for more details." >&2;} | ||
10057 | { (exit 77); exit 77; }; } | ||
10058 | else | ||
10059 | ac_cv_sizeof_voidp=0 | ||
10060 | fi ;; | ||
10061 | esac | ||
10062 | else | ||
10063 | cat >conftest.$ac_ext <<_ACEOF | ||
10064 | /* confdefs.h. */ | ||
10065 | _ACEOF | ||
10066 | cat confdefs.h >>conftest.$ac_ext | ||
10067 | cat >>conftest.$ac_ext <<_ACEOF | ||
10068 | /* end confdefs.h. */ | ||
10069 | $ac_includes_default | ||
10070 | typedef void* ac__type_sizeof_; | ||
10071 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
10072 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | ||
10073 | #include <stdio.h> | ||
10074 | #include <stdlib.h> | ||
10075 | int | ||
10076 | main () | ||
10077 | { | ||
10078 | |||
10079 | FILE *f = fopen ("conftest.val", "w"); | ||
10080 | if (! f) | ||
10081 | return 1; | ||
10082 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | ||
10083 | { | ||
10084 | long int i = longval (); | ||
10085 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
10086 | return 1; | ||
10087 | fprintf (f, "%ld\n", i); | ||
10088 | } | ||
10089 | else | ||
10090 | { | ||
10091 | unsigned long int i = ulongval (); | ||
10092 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | ||
10093 | return 1; | ||
10094 | fprintf (f, "%lu\n", i); | ||
10095 | } | ||
10096 | return ferror (f) || fclose (f) != 0; | ||
10097 | |||
10098 | ; | ||
10099 | return 0; | ||
10100 | } | ||
10101 | _ACEOF | ||
10102 | rm -f conftest$ac_exeext | ||
10103 | if { (ac_try="$ac_link" | ||
10104 | case "(($ac_try" in | ||
10105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10106 | *) ac_try_echo=$ac_try;; | ||
10107 | esac | ||
10108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10109 | (eval "$ac_link") 2>&5 | ||
10110 | ac_status=$? | ||
10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10113 | { (case "(($ac_try" in | ||
10114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10115 | *) ac_try_echo=$ac_try;; | ||
10116 | esac | ||
10117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10118 | (eval "$ac_try") 2>&5 | ||
10119 | ac_status=$? | ||
10120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10121 | (exit $ac_status); }; }; then | ||
10122 | ac_cv_sizeof_voidp=`cat conftest.val` | ||
10123 | else | ||
10124 | echo "$as_me: program exited with status $ac_status" >&5 | ||
10125 | echo "$as_me: failed program was:" >&5 | ||
10126 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10127 | |||
10128 | ( exit $ac_status ) | ||
10129 | if test "$ac_cv_type_voidp" = yes; then | ||
10130 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*) | ||
10131 | See \`config.log' for more details." >&5 | ||
10132 | echo "$as_me: error: cannot compute sizeof (void*) | ||
10133 | See \`config.log' for more details." >&2;} | ||
10134 | { (exit 77); exit 77; }; } | ||
10135 | else | ||
10136 | ac_cv_sizeof_voidp=0 | ||
10137 | fi | ||
10138 | fi | ||
10139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10140 | fi | ||
10141 | rm -f conftest.val | ||
10142 | fi | ||
10143 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 | ||
10144 | echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; } | ||
10145 | |||
10146 | |||
10147 | |||
10148 | cat >>confdefs.h <<_ACEOF | ||
10149 | #define SIZEOF_VOIDP $ac_cv_sizeof_voidp | ||
10150 | _ACEOF | ||
10151 | |||
10152 | |||
10153 | |||
10154 | case "$host_os" in | ||
10155 | cygwin* | mingw*) | ||
10156 | so_ext=".dll" | ||
10157 | DLLDEFINE="-DODE_DLL" | ||
10158 | SHARED_LDFLAGS="-shared" | ||
10159 | drawstuff="Win32" # if in a Windows enviroment | ||
10160 | ;; | ||
10161 | *apple* | *darwin*) # For Mac OS X | ||
10162 | so_ext=".dylib" | ||
10163 | DLLDEFINE="" | ||
10164 | SHARED_LDFLAGS="-dynamiclib" | ||
10165 | drawstuff="OSX" | ||
10166 | CC="$CXX" | ||
10167 | LINK="$CXXLINK" | ||
10168 | ;; | ||
10169 | *) | ||
10170 | drawstuff="X11" # if anything else default to X11 | ||
10171 | if test x$use_soname = xyes; then | ||
10172 | so_ext=".so.$ODE_RELEASE" | ||
10173 | else | ||
10174 | so_ext=".so" | ||
10175 | fi | ||
10176 | DLLDEFINE="" | ||
10177 | SHARED_LDFLAGS="-shared" | ||
10178 | ;; | ||
10179 | esac | ||
10180 | if test x$drawstuff = xWin32; then | ||
10181 | WIN32_TRUE= | ||
10182 | WIN32_FALSE='#' | ||
10183 | else | ||
10184 | WIN32_TRUE='#' | ||
10185 | WIN32_FALSE= | ||
10186 | fi | ||
10187 | |||
10188 | if test x$drawstuff = xX11; then | ||
10189 | X11_TRUE= | ||
10190 | X11_FALSE='#' | ||
10191 | else | ||
10192 | X11_TRUE='#' | ||
10193 | X11_FALSE= | ||
10194 | fi | ||
10195 | |||
10196 | if test x$drawstuff = xOSX; then | ||
10197 | OSX_TRUE= | ||
10198 | OSX_FALSE='#' | ||
10199 | else | ||
10200 | OSX_TRUE='#' | ||
10201 | OSX_FALSE= | ||
10202 | fi | ||
10203 | |||
10204 | { echo "$as_me:$LINENO: checking which drawstuff lib to build" >&5 | ||
10205 | echo $ECHO_N "checking which drawstuff lib to build... $ECHO_C" >&6; } | ||
10206 | { echo "$as_me:$LINENO: result: $drawstuff" >&5 | ||
10207 | echo "${ECHO_T}$drawstuff" >&6; } | ||
10208 | |||
10209 | { echo "$as_me:$LINENO: checking for the suffix of shared libraries" >&5 | ||
10210 | echo $ECHO_N "checking for the suffix of shared libraries... $ECHO_C" >&6; } | ||
10211 | { echo "$as_me:$LINENO: result: $so_ext" >&5 | ||
10212 | echo "${ECHO_T}$so_ext" >&6; } | ||
10213 | |||
10214 | cat >>confdefs.h <<_ACEOF | ||
10215 | #define SO_EXT "$so_ext" | ||
10216 | _ACEOF | ||
10217 | |||
10218 | |||
10219 | |||
10220 | |||
10221 | if test "X$x_includes" != "XNONE"; then | ||
10222 | CFLAGS="$CFLAGS -I$x_includes" | ||
10223 | CXXFLAGS="$CXXFLAGS -I$x_includes" | ||
10224 | fi | ||
10225 | if test "X$x_libraries" != "XNONE"; then | ||
10226 | CFLAGS="$CFLAGS -L$x_libraries" | ||
10227 | CXXFLAGS="$CXXFLAGS -L$x_libraries" | ||
10228 | fi | ||
10229 | |||
10230 | if test "x$drawstuff" = "xOSX"; then | ||
10231 | |||
10232 | cat >>confdefs.h <<\_ACEOF | ||
10233 | #define HAVE_APPLE_OPENGL_FRAMEWORK 1 | ||
10234 | _ACEOF | ||
10235 | |||
10236 | GL_LIBS="-framework OpenGL -framework Carbon -framework AGL" | ||
10237 | else | ||
10238 | |||
10239 | |||
10240 | |||
10241 | for ac_header in GL/gl.h GL/glu.h GL/glext.h | ||
10242 | do | ||
10243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10244 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
10246 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10248 | else | ||
10249 | cat >conftest.$ac_ext <<_ACEOF | ||
10250 | /* confdefs.h. */ | ||
10251 | _ACEOF | ||
10252 | cat confdefs.h >>conftest.$ac_ext | ||
10253 | cat >>conftest.$ac_ext <<_ACEOF | ||
10254 | /* end confdefs.h. */ | ||
10255 | #if HAVE_GL_GL_H | ||
10256 | #include <GL/gl.h> | ||
10257 | #endif | ||
10258 | #if HAVE_GL_GLU_H | ||
10259 | #include <GL/glu.h> | ||
10260 | #endif | ||
10261 | |||
10262 | |||
10263 | #include <$ac_header> | ||
10264 | _ACEOF | ||
10265 | rm -f conftest.$ac_objext | ||
10266 | if { (ac_try="$ac_compile" | ||
10267 | case "(($ac_try" in | ||
10268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10269 | *) ac_try_echo=$ac_try;; | ||
10270 | esac | ||
10271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10272 | (eval "$ac_compile") 2>conftest.er1 | ||
10273 | ac_status=$? | ||
10274 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10275 | rm -f conftest.er1 | ||
10276 | cat conftest.err >&5 | ||
10277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10278 | (exit $ac_status); } && { | ||
10279 | test -z "$ac_c_werror_flag" || | ||
10280 | test ! -s conftest.err | ||
10281 | } && test -s conftest.$ac_objext; then | ||
10282 | eval "$as_ac_Header=yes" | ||
10283 | else | ||
10284 | echo "$as_me: failed program was:" >&5 | ||
10285 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10286 | |||
10287 | eval "$as_ac_Header=no" | ||
10288 | fi | ||
10289 | |||
10290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10291 | fi | ||
10292 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
10293 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10294 | echo "${ECHO_T}$ac_res" >&6; } | ||
10295 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
10296 | cat >>confdefs.h <<_ACEOF | ||
10297 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10298 | _ACEOF | ||
10299 | |||
10300 | fi | ||
10301 | |||
10302 | done | ||
10303 | |||
10304 | { echo "$as_me:$LINENO: checking for main in -lGL" >&5 | ||
10305 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6; } | ||
10306 | if test "${ac_cv_lib_GL_main+set}" = set; then | ||
10307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10308 | else | ||
10309 | ac_check_lib_save_LIBS=$LIBS | ||
10310 | LIBS="-lGL $LIBS" | ||
10311 | cat >conftest.$ac_ext <<_ACEOF | ||
10312 | /* confdefs.h. */ | ||
10313 | _ACEOF | ||
10314 | cat confdefs.h >>conftest.$ac_ext | ||
10315 | cat >>conftest.$ac_ext <<_ACEOF | ||
10316 | /* end confdefs.h. */ | ||
10317 | |||
10318 | |||
10319 | int | ||
10320 | main () | ||
10321 | { | ||
10322 | return main (); | ||
10323 | ; | ||
10324 | return 0; | ||
10325 | } | ||
10326 | _ACEOF | ||
10327 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10328 | if { (ac_try="$ac_link" | ||
10329 | case "(($ac_try" in | ||
10330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10331 | *) ac_try_echo=$ac_try;; | ||
10332 | esac | ||
10333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10334 | (eval "$ac_link") 2>conftest.er1 | ||
10335 | ac_status=$? | ||
10336 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10337 | rm -f conftest.er1 | ||
10338 | cat conftest.err >&5 | ||
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10340 | (exit $ac_status); } && { | ||
10341 | test -z "$ac_c_werror_flag" || | ||
10342 | test ! -s conftest.err | ||
10343 | } && test -s conftest$ac_exeext && | ||
10344 | $as_test_x conftest$ac_exeext; then | ||
10345 | ac_cv_lib_GL_main=yes | ||
10346 | else | ||
10347 | echo "$as_me: failed program was:" >&5 | ||
10348 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10349 | |||
10350 | ac_cv_lib_GL_main=no | ||
10351 | fi | ||
10352 | |||
10353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10354 | conftest$ac_exeext conftest.$ac_ext | ||
10355 | LIBS=$ac_check_lib_save_LIBS | ||
10356 | fi | ||
10357 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 | ||
10358 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6; } | ||
10359 | if test $ac_cv_lib_GL_main = yes; then | ||
10360 | GL_LIBS="$GL_LIBS -lGL" | ||
10361 | fi | ||
10362 | |||
10363 | TEMP_LDFLAGS="$LDFLAGS" | ||
10364 | LDFLAGS="$LDFLAGS $GL_LIBS" | ||
10365 | { echo "$as_me:$LINENO: checking for main in -lGLU" >&5 | ||
10366 | echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6; } | ||
10367 | if test "${ac_cv_lib_GLU_main+set}" = set; then | ||
10368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10369 | else | ||
10370 | ac_check_lib_save_LIBS=$LIBS | ||
10371 | LIBS="-lGLU $LIBS" | ||
10372 | cat >conftest.$ac_ext <<_ACEOF | ||
10373 | /* confdefs.h. */ | ||
10374 | _ACEOF | ||
10375 | cat confdefs.h >>conftest.$ac_ext | ||
10376 | cat >>conftest.$ac_ext <<_ACEOF | ||
10377 | /* end confdefs.h. */ | ||
10378 | |||
10379 | |||
10380 | int | ||
10381 | main () | ||
10382 | { | ||
10383 | return main (); | ||
10384 | ; | ||
10385 | return 0; | ||
10386 | } | ||
10387 | _ACEOF | ||
10388 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10389 | if { (ac_try="$ac_link" | ||
10390 | case "(($ac_try" in | ||
10391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10392 | *) ac_try_echo=$ac_try;; | ||
10393 | esac | ||
10394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10395 | (eval "$ac_link") 2>conftest.er1 | ||
10396 | ac_status=$? | ||
10397 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10398 | rm -f conftest.er1 | ||
10399 | cat conftest.err >&5 | ||
10400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10401 | (exit $ac_status); } && { | ||
10402 | test -z "$ac_c_werror_flag" || | ||
10403 | test ! -s conftest.err | ||
10404 | } && test -s conftest$ac_exeext && | ||
10405 | $as_test_x conftest$ac_exeext; then | ||
10406 | ac_cv_lib_GLU_main=yes | ||
10407 | else | ||
10408 | echo "$as_me: failed program was:" >&5 | ||
10409 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10410 | |||
10411 | ac_cv_lib_GLU_main=no | ||
10412 | fi | ||
10413 | |||
10414 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10415 | conftest$ac_exeext conftest.$ac_ext | ||
10416 | LIBS=$ac_check_lib_save_LIBS | ||
10417 | fi | ||
10418 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 | ||
10419 | echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6; } | ||
10420 | if test $ac_cv_lib_GLU_main = yes; then | ||
10421 | GL_LIBS="$GL_LIBS -lGLU" | ||
10422 | fi | ||
10423 | |||
10424 | LDFLAGS="$TEMP_LDFLAGS" | ||
10425 | { echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 | ||
10426 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6; } | ||
10427 | if test "${ac_cv_lib_opengl32_main+set}" = set; then | ||
10428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10429 | else | ||
10430 | ac_check_lib_save_LIBS=$LIBS | ||
10431 | LIBS="-lopengl32 $LIBS" | ||
10432 | cat >conftest.$ac_ext <<_ACEOF | ||
10433 | /* confdefs.h. */ | ||
10434 | _ACEOF | ||
10435 | cat confdefs.h >>conftest.$ac_ext | ||
10436 | cat >>conftest.$ac_ext <<_ACEOF | ||
10437 | /* end confdefs.h. */ | ||
10438 | |||
10439 | |||
10440 | int | ||
10441 | main () | ||
10442 | { | ||
10443 | return main (); | ||
10444 | ; | ||
10445 | return 0; | ||
10446 | } | ||
10447 | _ACEOF | ||
10448 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10449 | if { (ac_try="$ac_link" | ||
10450 | case "(($ac_try" in | ||
10451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10452 | *) ac_try_echo=$ac_try;; | ||
10453 | esac | ||
10454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10455 | (eval "$ac_link") 2>conftest.er1 | ||
10456 | ac_status=$? | ||
10457 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10458 | rm -f conftest.er1 | ||
10459 | cat conftest.err >&5 | ||
10460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10461 | (exit $ac_status); } && { | ||
10462 | test -z "$ac_c_werror_flag" || | ||
10463 | test ! -s conftest.err | ||
10464 | } && test -s conftest$ac_exeext && | ||
10465 | $as_test_x conftest$ac_exeext; then | ||
10466 | ac_cv_lib_opengl32_main=yes | ||
10467 | else | ||
10468 | echo "$as_me: failed program was:" >&5 | ||
10469 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10470 | |||
10471 | ac_cv_lib_opengl32_main=no | ||
10472 | fi | ||
10473 | |||
10474 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10475 | conftest$ac_exeext conftest.$ac_ext | ||
10476 | LIBS=$ac_check_lib_save_LIBS | ||
10477 | fi | ||
10478 | { echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 | ||
10479 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6; } | ||
10480 | if test $ac_cv_lib_opengl32_main = yes; then | ||
10481 | GL_LIBS="$GL_LIBS -lopengl32" | ||
10482 | fi | ||
10483 | |||
10484 | { echo "$as_me:$LINENO: checking for main in -lglu32" >&5 | ||
10485 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6; } | ||
10486 | if test "${ac_cv_lib_glu32_main+set}" = set; then | ||
10487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10488 | else | ||
10489 | ac_check_lib_save_LIBS=$LIBS | ||
10490 | LIBS="-lglu32 $LIBS" | ||
10491 | cat >conftest.$ac_ext <<_ACEOF | ||
10492 | /* confdefs.h. */ | ||
10493 | _ACEOF | ||
10494 | cat confdefs.h >>conftest.$ac_ext | ||
10495 | cat >>conftest.$ac_ext <<_ACEOF | ||
10496 | /* end confdefs.h. */ | ||
10497 | |||
10498 | |||
10499 | int | ||
10500 | main () | ||
10501 | { | ||
10502 | return main (); | ||
10503 | ; | ||
10504 | return 0; | ||
10505 | } | ||
10506 | _ACEOF | ||
10507 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10508 | if { (ac_try="$ac_link" | ||
10509 | case "(($ac_try" in | ||
10510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10511 | *) ac_try_echo=$ac_try;; | ||
10512 | esac | ||
10513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10514 | (eval "$ac_link") 2>conftest.er1 | ||
10515 | ac_status=$? | ||
10516 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10517 | rm -f conftest.er1 | ||
10518 | cat conftest.err >&5 | ||
10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10520 | (exit $ac_status); } && { | ||
10521 | test -z "$ac_c_werror_flag" || | ||
10522 | test ! -s conftest.err | ||
10523 | } && test -s conftest$ac_exeext && | ||
10524 | $as_test_x conftest$ac_exeext; then | ||
10525 | ac_cv_lib_glu32_main=yes | ||
10526 | else | ||
10527 | echo "$as_me: failed program was:" >&5 | ||
10528 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10529 | |||
10530 | ac_cv_lib_glu32_main=no | ||
10531 | fi | ||
10532 | |||
10533 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10534 | conftest$ac_exeext conftest.$ac_ext | ||
10535 | LIBS=$ac_check_lib_save_LIBS | ||
10536 | fi | ||
10537 | { echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 | ||
10538 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6; } | ||
10539 | if test $ac_cv_lib_glu32_main = yes; then | ||
10540 | GL_LIBS="$GL_LIBS -lglu32" | ||
10541 | fi | ||
10542 | |||
10543 | { echo "$as_me:$LINENO: checking for main in -lXmu" >&5 | ||
10544 | echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6; } | ||
10545 | if test "${ac_cv_lib_Xmu_main+set}" = set; then | ||
10546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10547 | else | ||
10548 | ac_check_lib_save_LIBS=$LIBS | ||
10549 | LIBS="-lXmu $LIBS" | ||
10550 | cat >conftest.$ac_ext <<_ACEOF | ||
10551 | /* confdefs.h. */ | ||
10552 | _ACEOF | ||
10553 | cat confdefs.h >>conftest.$ac_ext | ||
10554 | cat >>conftest.$ac_ext <<_ACEOF | ||
10555 | /* end confdefs.h. */ | ||
10556 | |||
10557 | |||
10558 | int | ||
10559 | main () | ||
10560 | { | ||
10561 | return main (); | ||
10562 | ; | ||
10563 | return 0; | ||
10564 | } | ||
10565 | _ACEOF | ||
10566 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10567 | if { (ac_try="$ac_link" | ||
10568 | case "(($ac_try" in | ||
10569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10570 | *) ac_try_echo=$ac_try;; | ||
10571 | esac | ||
10572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10573 | (eval "$ac_link") 2>conftest.er1 | ||
10574 | ac_status=$? | ||
10575 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10576 | rm -f conftest.er1 | ||
10577 | cat conftest.err >&5 | ||
10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10579 | (exit $ac_status); } && { | ||
10580 | test -z "$ac_c_werror_flag" || | ||
10581 | test ! -s conftest.err | ||
10582 | } && test -s conftest$ac_exeext && | ||
10583 | $as_test_x conftest$ac_exeext; then | ||
10584 | ac_cv_lib_Xmu_main=yes | ||
10585 | else | ||
10586 | echo "$as_me: failed program was:" >&5 | ||
10587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10588 | |||
10589 | ac_cv_lib_Xmu_main=no | ||
10590 | fi | ||
10591 | |||
10592 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10593 | conftest$ac_exeext conftest.$ac_ext | ||
10594 | LIBS=$ac_check_lib_save_LIBS | ||
10595 | fi | ||
10596 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5 | ||
10597 | echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6; } | ||
10598 | if test $ac_cv_lib_Xmu_main = yes; then | ||
10599 | GL_LIBS="$GL_LIBS -lXmu" | ||
10600 | fi | ||
10601 | |||
10602 | { echo "$as_me:$LINENO: checking for main in -lXi" >&5 | ||
10603 | echo $ECHO_N "checking for main in -lXi... $ECHO_C" >&6; } | ||
10604 | if test "${ac_cv_lib_Xi_main+set}" = set; then | ||
10605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10606 | else | ||
10607 | ac_check_lib_save_LIBS=$LIBS | ||
10608 | LIBS="-lXi $LIBS" | ||
10609 | cat >conftest.$ac_ext <<_ACEOF | ||
10610 | /* confdefs.h. */ | ||
10611 | _ACEOF | ||
10612 | cat confdefs.h >>conftest.$ac_ext | ||
10613 | cat >>conftest.$ac_ext <<_ACEOF | ||
10614 | /* end confdefs.h. */ | ||
10615 | |||
10616 | |||
10617 | int | ||
10618 | main () | ||
10619 | { | ||
10620 | return main (); | ||
10621 | ; | ||
10622 | return 0; | ||
10623 | } | ||
10624 | _ACEOF | ||
10625 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10626 | if { (ac_try="$ac_link" | ||
10627 | case "(($ac_try" in | ||
10628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10629 | *) ac_try_echo=$ac_try;; | ||
10630 | esac | ||
10631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10632 | (eval "$ac_link") 2>conftest.er1 | ||
10633 | ac_status=$? | ||
10634 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10635 | rm -f conftest.er1 | ||
10636 | cat conftest.err >&5 | ||
10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10638 | (exit $ac_status); } && { | ||
10639 | test -z "$ac_c_werror_flag" || | ||
10640 | test ! -s conftest.err | ||
10641 | } && test -s conftest$ac_exeext && | ||
10642 | $as_test_x conftest$ac_exeext; then | ||
10643 | ac_cv_lib_Xi_main=yes | ||
10644 | else | ||
10645 | echo "$as_me: failed program was:" >&5 | ||
10646 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10647 | |||
10648 | ac_cv_lib_Xi_main=no | ||
10649 | fi | ||
10650 | |||
10651 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10652 | conftest$ac_exeext conftest.$ac_ext | ||
10653 | LIBS=$ac_check_lib_save_LIBS | ||
10654 | fi | ||
10655 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xi_main" >&5 | ||
10656 | echo "${ECHO_T}$ac_cv_lib_Xi_main" >&6; } | ||
10657 | if test $ac_cv_lib_Xi_main = yes; then | ||
10658 | GL_LIBS="$GL_LIBS -lXi" | ||
10659 | fi | ||
10660 | |||
10661 | { echo "$as_me:$LINENO: checking for main in -lX" >&5 | ||
10662 | echo $ECHO_N "checking for main in -lX... $ECHO_C" >&6; } | ||
10663 | if test "${ac_cv_lib_X_main+set}" = set; then | ||
10664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10665 | else | ||
10666 | ac_check_lib_save_LIBS=$LIBS | ||
10667 | LIBS="-lX $LIBS" | ||
10668 | cat >conftest.$ac_ext <<_ACEOF | ||
10669 | /* confdefs.h. */ | ||
10670 | _ACEOF | ||
10671 | cat confdefs.h >>conftest.$ac_ext | ||
10672 | cat >>conftest.$ac_ext <<_ACEOF | ||
10673 | /* end confdefs.h. */ | ||
10674 | |||
10675 | |||
10676 | int | ||
10677 | main () | ||
10678 | { | ||
10679 | return main (); | ||
10680 | ; | ||
10681 | return 0; | ||
10682 | } | ||
10683 | _ACEOF | ||
10684 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10685 | if { (ac_try="$ac_link" | ||
10686 | case "(($ac_try" in | ||
10687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10688 | *) ac_try_echo=$ac_try;; | ||
10689 | esac | ||
10690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10691 | (eval "$ac_link") 2>conftest.er1 | ||
10692 | ac_status=$? | ||
10693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10694 | rm -f conftest.er1 | ||
10695 | cat conftest.err >&5 | ||
10696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10697 | (exit $ac_status); } && { | ||
10698 | test -z "$ac_c_werror_flag" || | ||
10699 | test ! -s conftest.err | ||
10700 | } && test -s conftest$ac_exeext && | ||
10701 | $as_test_x conftest$ac_exeext; then | ||
10702 | ac_cv_lib_X_main=yes | ||
10703 | else | ||
10704 | echo "$as_me: failed program was:" >&5 | ||
10705 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10706 | |||
10707 | ac_cv_lib_X_main=no | ||
10708 | fi | ||
10709 | |||
10710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10711 | conftest$ac_exeext conftest.$ac_ext | ||
10712 | LIBS=$ac_check_lib_save_LIBS | ||
10713 | fi | ||
10714 | { echo "$as_me:$LINENO: result: $ac_cv_lib_X_main" >&5 | ||
10715 | echo "${ECHO_T}$ac_cv_lib_X_main" >&6; } | ||
10716 | if test $ac_cv_lib_X_main = yes; then | ||
10717 | GL_LIBS="$GL_LIBS -lX" | ||
10718 | fi | ||
10719 | |||
10720 | { echo "$as_me:$LINENO: checking for main in -lX11" >&5 | ||
10721 | echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6; } | ||
10722 | if test "${ac_cv_lib_X11_main+set}" = set; then | ||
10723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10724 | else | ||
10725 | ac_check_lib_save_LIBS=$LIBS | ||
10726 | LIBS="-lX11 $LIBS" | ||
10727 | cat >conftest.$ac_ext <<_ACEOF | ||
10728 | /* confdefs.h. */ | ||
10729 | _ACEOF | ||
10730 | cat confdefs.h >>conftest.$ac_ext | ||
10731 | cat >>conftest.$ac_ext <<_ACEOF | ||
10732 | /* end confdefs.h. */ | ||
10733 | |||
10734 | |||
10735 | int | ||
10736 | main () | ||
10737 | { | ||
10738 | return main (); | ||
10739 | ; | ||
10740 | return 0; | ||
10741 | } | ||
10742 | _ACEOF | ||
10743 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10744 | if { (ac_try="$ac_link" | ||
10745 | case "(($ac_try" in | ||
10746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10747 | *) ac_try_echo=$ac_try;; | ||
10748 | esac | ||
10749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10750 | (eval "$ac_link") 2>conftest.er1 | ||
10751 | ac_status=$? | ||
10752 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10753 | rm -f conftest.er1 | ||
10754 | cat conftest.err >&5 | ||
10755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10756 | (exit $ac_status); } && { | ||
10757 | test -z "$ac_c_werror_flag" || | ||
10758 | test ! -s conftest.err | ||
10759 | } && test -s conftest$ac_exeext && | ||
10760 | $as_test_x conftest$ac_exeext; then | ||
10761 | ac_cv_lib_X11_main=yes | ||
10762 | else | ||
10763 | echo "$as_me: failed program was:" >&5 | ||
10764 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10765 | |||
10766 | ac_cv_lib_X11_main=no | ||
10767 | fi | ||
10768 | |||
10769 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10770 | conftest$ac_exeext conftest.$ac_ext | ||
10771 | LIBS=$ac_check_lib_save_LIBS | ||
10772 | fi | ||
10773 | { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 | ||
10774 | echo "${ECHO_T}$ac_cv_lib_X11_main" >&6; } | ||
10775 | if test $ac_cv_lib_X11_main = yes; then | ||
10776 | GL_LIBS="$GL_LIBS -lX11" | ||
10777 | fi | ||
10778 | |||
10779 | fi | ||
10780 | |||
10781 | |||
10782 | { echo "$as_me:$LINENO: checking for main in -lcomctl32" >&5 | ||
10783 | echo $ECHO_N "checking for main in -lcomctl32... $ECHO_C" >&6; } | ||
10784 | if test "${ac_cv_lib_comctl32_main+set}" = set; then | ||
10785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10786 | else | ||
10787 | ac_check_lib_save_LIBS=$LIBS | ||
10788 | LIBS="-lcomctl32 $LIBS" | ||
10789 | cat >conftest.$ac_ext <<_ACEOF | ||
10790 | /* confdefs.h. */ | ||
10791 | _ACEOF | ||
10792 | cat confdefs.h >>conftest.$ac_ext | ||
10793 | cat >>conftest.$ac_ext <<_ACEOF | ||
10794 | /* end confdefs.h. */ | ||
10795 | |||
10796 | |||
10797 | int | ||
10798 | main () | ||
10799 | { | ||
10800 | return main (); | ||
10801 | ; | ||
10802 | return 0; | ||
10803 | } | ||
10804 | _ACEOF | ||
10805 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10806 | if { (ac_try="$ac_link" | ||
10807 | case "(($ac_try" in | ||
10808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10809 | *) ac_try_echo=$ac_try;; | ||
10810 | esac | ||
10811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10812 | (eval "$ac_link") 2>conftest.er1 | ||
10813 | ac_status=$? | ||
10814 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10815 | rm -f conftest.er1 | ||
10816 | cat conftest.err >&5 | ||
10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10818 | (exit $ac_status); } && { | ||
10819 | test -z "$ac_c_werror_flag" || | ||
10820 | test ! -s conftest.err | ||
10821 | } && test -s conftest$ac_exeext && | ||
10822 | $as_test_x conftest$ac_exeext; then | ||
10823 | ac_cv_lib_comctl32_main=yes | ||
10824 | else | ||
10825 | echo "$as_me: failed program was:" >&5 | ||
10826 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10827 | |||
10828 | ac_cv_lib_comctl32_main=no | ||
10829 | fi | ||
10830 | |||
10831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10832 | conftest$ac_exeext conftest.$ac_ext | ||
10833 | LIBS=$ac_check_lib_save_LIBS | ||
10834 | fi | ||
10835 | { echo "$as_me:$LINENO: result: $ac_cv_lib_comctl32_main" >&5 | ||
10836 | echo "${ECHO_T}$ac_cv_lib_comctl32_main" >&6; } | ||
10837 | if test $ac_cv_lib_comctl32_main = yes; then | ||
10838 | LIBS="$LIBS -lcomctl32" | ||
10839 | fi | ||
10840 | |||
10841 | { echo "$as_me:$LINENO: checking for main in -lkernel32" >&5 | ||
10842 | echo $ECHO_N "checking for main in -lkernel32... $ECHO_C" >&6; } | ||
10843 | if test "${ac_cv_lib_kernel32_main+set}" = set; then | ||
10844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10845 | else | ||
10846 | ac_check_lib_save_LIBS=$LIBS | ||
10847 | LIBS="-lkernel32 $LIBS" | ||
10848 | cat >conftest.$ac_ext <<_ACEOF | ||
10849 | /* confdefs.h. */ | ||
10850 | _ACEOF | ||
10851 | cat confdefs.h >>conftest.$ac_ext | ||
10852 | cat >>conftest.$ac_ext <<_ACEOF | ||
10853 | /* end confdefs.h. */ | ||
10854 | |||
10855 | |||
10856 | int | ||
10857 | main () | ||
10858 | { | ||
10859 | return main (); | ||
10860 | ; | ||
10861 | return 0; | ||
10862 | } | ||
10863 | _ACEOF | ||
10864 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10865 | if { (ac_try="$ac_link" | ||
10866 | case "(($ac_try" in | ||
10867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10868 | *) ac_try_echo=$ac_try;; | ||
10869 | esac | ||
10870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10871 | (eval "$ac_link") 2>conftest.er1 | ||
10872 | ac_status=$? | ||
10873 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10874 | rm -f conftest.er1 | ||
10875 | cat conftest.err >&5 | ||
10876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10877 | (exit $ac_status); } && { | ||
10878 | test -z "$ac_c_werror_flag" || | ||
10879 | test ! -s conftest.err | ||
10880 | } && test -s conftest$ac_exeext && | ||
10881 | $as_test_x conftest$ac_exeext; then | ||
10882 | ac_cv_lib_kernel32_main=yes | ||
10883 | else | ||
10884 | echo "$as_me: failed program was:" >&5 | ||
10885 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10886 | |||
10887 | ac_cv_lib_kernel32_main=no | ||
10888 | fi | ||
10889 | |||
10890 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10891 | conftest$ac_exeext conftest.$ac_ext | ||
10892 | LIBS=$ac_check_lib_save_LIBS | ||
10893 | fi | ||
10894 | { echo "$as_me:$LINENO: result: $ac_cv_lib_kernel32_main" >&5 | ||
10895 | echo "${ECHO_T}$ac_cv_lib_kernel32_main" >&6; } | ||
10896 | if test $ac_cv_lib_kernel32_main = yes; then | ||
10897 | LIBS="$LIBS -lkernel32" | ||
10898 | fi | ||
10899 | |||
10900 | { echo "$as_me:$LINENO: checking for main in -luser32" >&5 | ||
10901 | echo $ECHO_N "checking for main in -luser32... $ECHO_C" >&6; } | ||
10902 | if test "${ac_cv_lib_user32_main+set}" = set; then | ||
10903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10904 | else | ||
10905 | ac_check_lib_save_LIBS=$LIBS | ||
10906 | LIBS="-luser32 $LIBS" | ||
10907 | cat >conftest.$ac_ext <<_ACEOF | ||
10908 | /* confdefs.h. */ | ||
10909 | _ACEOF | ||
10910 | cat confdefs.h >>conftest.$ac_ext | ||
10911 | cat >>conftest.$ac_ext <<_ACEOF | ||
10912 | /* end confdefs.h. */ | ||
10913 | |||
10914 | |||
10915 | int | ||
10916 | main () | ||
10917 | { | ||
10918 | return main (); | ||
10919 | ; | ||
10920 | return 0; | ||
10921 | } | ||
10922 | _ACEOF | ||
10923 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10924 | if { (ac_try="$ac_link" | ||
10925 | case "(($ac_try" in | ||
10926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10927 | *) ac_try_echo=$ac_try;; | ||
10928 | esac | ||
10929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10930 | (eval "$ac_link") 2>conftest.er1 | ||
10931 | ac_status=$? | ||
10932 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10933 | rm -f conftest.er1 | ||
10934 | cat conftest.err >&5 | ||
10935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10936 | (exit $ac_status); } && { | ||
10937 | test -z "$ac_c_werror_flag" || | ||
10938 | test ! -s conftest.err | ||
10939 | } && test -s conftest$ac_exeext && | ||
10940 | $as_test_x conftest$ac_exeext; then | ||
10941 | ac_cv_lib_user32_main=yes | ||
10942 | else | ||
10943 | echo "$as_me: failed program was:" >&5 | ||
10944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10945 | |||
10946 | ac_cv_lib_user32_main=no | ||
10947 | fi | ||
10948 | |||
10949 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10950 | conftest$ac_exeext conftest.$ac_ext | ||
10951 | LIBS=$ac_check_lib_save_LIBS | ||
10952 | fi | ||
10953 | { echo "$as_me:$LINENO: result: $ac_cv_lib_user32_main" >&5 | ||
10954 | echo "${ECHO_T}$ac_cv_lib_user32_main" >&6; } | ||
10955 | if test $ac_cv_lib_user32_main = yes; then | ||
10956 | LIBS="$LIBS -luser32" | ||
10957 | fi | ||
10958 | |||
10959 | { echo "$as_me:$LINENO: checking for main in -lgdi32" >&5 | ||
10960 | echo $ECHO_N "checking for main in -lgdi32... $ECHO_C" >&6; } | ||
10961 | if test "${ac_cv_lib_gdi32_main+set}" = set; then | ||
10962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10963 | else | ||
10964 | ac_check_lib_save_LIBS=$LIBS | ||
10965 | LIBS="-lgdi32 $LIBS" | ||
10966 | cat >conftest.$ac_ext <<_ACEOF | ||
10967 | /* confdefs.h. */ | ||
10968 | _ACEOF | ||
10969 | cat confdefs.h >>conftest.$ac_ext | ||
10970 | cat >>conftest.$ac_ext <<_ACEOF | ||
10971 | /* end confdefs.h. */ | ||
10972 | |||
10973 | |||
10974 | int | ||
10975 | main () | ||
10976 | { | ||
10977 | return main (); | ||
10978 | ; | ||
10979 | return 0; | ||
10980 | } | ||
10981 | _ACEOF | ||
10982 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10983 | if { (ac_try="$ac_link" | ||
10984 | case "(($ac_try" in | ||
10985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10986 | *) ac_try_echo=$ac_try;; | ||
10987 | esac | ||
10988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
10989 | (eval "$ac_link") 2>conftest.er1 | ||
10990 | ac_status=$? | ||
10991 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10992 | rm -f conftest.er1 | ||
10993 | cat conftest.err >&5 | ||
10994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10995 | (exit $ac_status); } && { | ||
10996 | test -z "$ac_c_werror_flag" || | ||
10997 | test ! -s conftest.err | ||
10998 | } && test -s conftest$ac_exeext && | ||
10999 | $as_test_x conftest$ac_exeext; then | ||
11000 | ac_cv_lib_gdi32_main=yes | ||
11001 | else | ||
11002 | echo "$as_me: failed program was:" >&5 | ||
11003 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11004 | |||
11005 | ac_cv_lib_gdi32_main=no | ||
11006 | fi | ||
11007 | |||
11008 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11009 | conftest$ac_exeext conftest.$ac_ext | ||
11010 | LIBS=$ac_check_lib_save_LIBS | ||
11011 | fi | ||
11012 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gdi32_main" >&5 | ||
11013 | echo "${ECHO_T}$ac_cv_lib_gdi32_main" >&6; } | ||
11014 | if test $ac_cv_lib_gdi32_main = yes; then | ||
11015 | LIBS="$LIBS -lgdi32" | ||
11016 | fi | ||
11017 | |||
11018 | { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5 | ||
11019 | echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; } | ||
11020 | if test "${ac_cv_lib_winmm_main+set}" = set; then | ||
11021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11022 | else | ||
11023 | ac_check_lib_save_LIBS=$LIBS | ||
11024 | LIBS="-lwinmm $LIBS" | ||
11025 | cat >conftest.$ac_ext <<_ACEOF | ||
11026 | /* confdefs.h. */ | ||
11027 | _ACEOF | ||
11028 | cat confdefs.h >>conftest.$ac_ext | ||
11029 | cat >>conftest.$ac_ext <<_ACEOF | ||
11030 | /* end confdefs.h. */ | ||
11031 | |||
11032 | |||
11033 | int | ||
11034 | main () | ||
11035 | { | ||
11036 | return main (); | ||
11037 | ; | ||
11038 | return 0; | ||
11039 | } | ||
11040 | _ACEOF | ||
11041 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11042 | if { (ac_try="$ac_link" | ||
11043 | case "(($ac_try" in | ||
11044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11045 | *) ac_try_echo=$ac_try;; | ||
11046 | esac | ||
11047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11048 | (eval "$ac_link") 2>conftest.er1 | ||
11049 | ac_status=$? | ||
11050 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11051 | rm -f conftest.er1 | ||
11052 | cat conftest.err >&5 | ||
11053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11054 | (exit $ac_status); } && { | ||
11055 | test -z "$ac_c_werror_flag" || | ||
11056 | test ! -s conftest.err | ||
11057 | } && test -s conftest$ac_exeext && | ||
11058 | $as_test_x conftest$ac_exeext; then | ||
11059 | ac_cv_lib_winmm_main=yes | ||
11060 | else | ||
11061 | echo "$as_me: failed program was:" >&5 | ||
11062 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11063 | |||
11064 | ac_cv_lib_winmm_main=no | ||
11065 | fi | ||
11066 | |||
11067 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11068 | conftest$ac_exeext conftest.$ac_ext | ||
11069 | LIBS=$ac_check_lib_save_LIBS | ||
11070 | fi | ||
11071 | { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5 | ||
11072 | echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; } | ||
11073 | if test $ac_cv_lib_winmm_main = yes; then | ||
11074 | LIBS="$LIBS -lwinmm" | ||
11075 | fi | ||
11076 | |||
11077 | |||
11078 | { echo "$as_me:$LINENO: checking for main in -lstdc++" >&5 | ||
11079 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6; } | ||
11080 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then | ||
11081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11082 | else | ||
11083 | ac_check_lib_save_LIBS=$LIBS | ||
11084 | LIBS="-lstdc++ $LIBS" | ||
11085 | cat >conftest.$ac_ext <<_ACEOF | ||
11086 | /* confdefs.h. */ | ||
11087 | _ACEOF | ||
11088 | cat confdefs.h >>conftest.$ac_ext | ||
11089 | cat >>conftest.$ac_ext <<_ACEOF | ||
11090 | /* end confdefs.h. */ | ||
11091 | |||
11092 | |||
11093 | int | ||
11094 | main () | ||
11095 | { | ||
11096 | return main (); | ||
11097 | ; | ||
11098 | return 0; | ||
11099 | } | ||
11100 | _ACEOF | ||
11101 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11102 | if { (ac_try="$ac_link" | ||
11103 | case "(($ac_try" in | ||
11104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11105 | *) ac_try_echo=$ac_try;; | ||
11106 | esac | ||
11107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11108 | (eval "$ac_link") 2>conftest.er1 | ||
11109 | ac_status=$? | ||
11110 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11111 | rm -f conftest.er1 | ||
11112 | cat conftest.err >&5 | ||
11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11114 | (exit $ac_status); } && { | ||
11115 | test -z "$ac_c_werror_flag" || | ||
11116 | test ! -s conftest.err | ||
11117 | } && test -s conftest$ac_exeext && | ||
11118 | $as_test_x conftest$ac_exeext; then | ||
11119 | ac_cv_lib_stdcpp_main=yes | ||
11120 | else | ||
11121 | echo "$as_me: failed program was:" >&5 | ||
11122 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11123 | |||
11124 | ac_cv_lib_stdcpp_main=no | ||
11125 | fi | ||
11126 | |||
11127 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11128 | conftest$ac_exeext conftest.$ac_ext | ||
11129 | LIBS=$ac_check_lib_save_LIBS | ||
11130 | fi | ||
11131 | { echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5 | ||
11132 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6; } | ||
11133 | if test $ac_cv_lib_stdcpp_main = yes; then | ||
11134 | LIBS="$LIBS -lstdc++" | ||
11135 | fi | ||
11136 | |||
11137 | { echo "$as_me:$LINENO: checking for main in -lm" >&5 | ||
11138 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; } | ||
11139 | if test "${ac_cv_lib_m_main+set}" = set; then | ||
11140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11141 | else | ||
11142 | ac_check_lib_save_LIBS=$LIBS | ||
11143 | LIBS="-lm $LIBS" | ||
11144 | cat >conftest.$ac_ext <<_ACEOF | ||
11145 | /* confdefs.h. */ | ||
11146 | _ACEOF | ||
11147 | cat confdefs.h >>conftest.$ac_ext | ||
11148 | cat >>conftest.$ac_ext <<_ACEOF | ||
11149 | /* end confdefs.h. */ | ||
11150 | |||
11151 | |||
11152 | int | ||
11153 | main () | ||
11154 | { | ||
11155 | return main (); | ||
11156 | ; | ||
11157 | return 0; | ||
11158 | } | ||
11159 | _ACEOF | ||
11160 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11161 | if { (ac_try="$ac_link" | ||
11162 | case "(($ac_try" in | ||
11163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11164 | *) ac_try_echo=$ac_try;; | ||
11165 | esac | ||
11166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11167 | (eval "$ac_link") 2>conftest.er1 | ||
11168 | ac_status=$? | ||
11169 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11170 | rm -f conftest.er1 | ||
11171 | cat conftest.err >&5 | ||
11172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11173 | (exit $ac_status); } && { | ||
11174 | test -z "$ac_c_werror_flag" || | ||
11175 | test ! -s conftest.err | ||
11176 | } && test -s conftest$ac_exeext && | ||
11177 | $as_test_x conftest$ac_exeext; then | ||
11178 | ac_cv_lib_m_main=yes | ||
11179 | else | ||
11180 | echo "$as_me: failed program was:" >&5 | ||
11181 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11182 | |||
11183 | ac_cv_lib_m_main=no | ||
11184 | fi | ||
11185 | |||
11186 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11187 | conftest$ac_exeext conftest.$ac_ext | ||
11188 | LIBS=$ac_check_lib_save_LIBS | ||
11189 | fi | ||
11190 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | ||
11191 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; } | ||
11192 | if test $ac_cv_lib_m_main = yes; then | ||
11193 | LIBS="$LIBS -lm" | ||
11194 | fi | ||
11195 | |||
11196 | { echo "$as_me:$LINENO: checking for main in -lpthread" >&5 | ||
11197 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; } | ||
11198 | if test "${ac_cv_lib_pthread_main+set}" = set; then | ||
11199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11200 | else | ||
11201 | ac_check_lib_save_LIBS=$LIBS | ||
11202 | LIBS="-lpthread $LIBS" | ||
11203 | cat >conftest.$ac_ext <<_ACEOF | ||
11204 | /* confdefs.h. */ | ||
11205 | _ACEOF | ||
11206 | cat confdefs.h >>conftest.$ac_ext | ||
11207 | cat >>conftest.$ac_ext <<_ACEOF | ||
11208 | /* end confdefs.h. */ | ||
11209 | |||
11210 | |||
11211 | int | ||
11212 | main () | ||
11213 | { | ||
11214 | return main (); | ||
11215 | ; | ||
11216 | return 0; | ||
11217 | } | ||
11218 | _ACEOF | ||
11219 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11220 | if { (ac_try="$ac_link" | ||
11221 | case "(($ac_try" in | ||
11222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11223 | *) ac_try_echo=$ac_try;; | ||
11224 | esac | ||
11225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11226 | (eval "$ac_link") 2>conftest.er1 | ||
11227 | ac_status=$? | ||
11228 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11229 | rm -f conftest.er1 | ||
11230 | cat conftest.err >&5 | ||
11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11232 | (exit $ac_status); } && { | ||
11233 | test -z "$ac_c_werror_flag" || | ||
11234 | test ! -s conftest.err | ||
11235 | } && test -s conftest$ac_exeext && | ||
11236 | $as_test_x conftest$ac_exeext; then | ||
11237 | ac_cv_lib_pthread_main=yes | ||
11238 | else | ||
11239 | echo "$as_me: failed program was:" >&5 | ||
11240 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11241 | |||
11242 | ac_cv_lib_pthread_main=no | ||
11243 | fi | ||
11244 | |||
11245 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11246 | conftest$ac_exeext conftest.$ac_ext | ||
11247 | LIBS=$ac_check_lib_save_LIBS | ||
11248 | fi | ||
11249 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 | ||
11250 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; } | ||
11251 | if test $ac_cv_lib_pthread_main = yes; then | ||
11252 | LIBS="$LIBS -lpthread" | ||
11253 | fi | ||
11254 | |||
11255 | |||
11256 | |||
11257 | TOPDIR=`cd $srcdir;pwd` | ||
11258 | |||
11259 | |||
11260 | { echo "$as_me:$LINENO: checking for gprof" >&5 | ||
11261 | echo $ECHO_N "checking for gprof... $ECHO_C" >&6; } | ||
11262 | # Check whether --enable-gprof was given. | ||
11263 | if test "${enable_gprof+set}" = set; then | ||
11264 | enableval=$enable_gprof; gprof=$enableval | ||
11265 | else | ||
11266 | gprof=no | ||
11267 | fi | ||
11268 | |||
11269 | if test "$gprof" != no | ||
11270 | then | ||
11271 | CFLAGS="-pg $CFLAGS" | ||
11272 | CPPFLAGS="-pg $CPPFLAGS" | ||
11273 | CXXFLAGS="-pg $CXXFLAGS" | ||
11274 | { echo "$as_me:$LINENO: checking for main in -lgmon" >&5 | ||
11275 | echo $ECHO_N "checking for main in -lgmon... $ECHO_C" >&6; } | ||
11276 | if test "${ac_cv_lib_gmon_main+set}" = set; then | ||
11277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11278 | else | ||
11279 | ac_check_lib_save_LIBS=$LIBS | ||
11280 | LIBS="-lgmon $LIBS" | ||
11281 | cat >conftest.$ac_ext <<_ACEOF | ||
11282 | /* confdefs.h. */ | ||
11283 | _ACEOF | ||
11284 | cat confdefs.h >>conftest.$ac_ext | ||
11285 | cat >>conftest.$ac_ext <<_ACEOF | ||
11286 | /* end confdefs.h. */ | ||
11287 | |||
11288 | |||
11289 | int | ||
11290 | main () | ||
11291 | { | ||
11292 | return main (); | ||
11293 | ; | ||
11294 | return 0; | ||
11295 | } | ||
11296 | _ACEOF | ||
11297 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11298 | if { (ac_try="$ac_link" | ||
11299 | case "(($ac_try" in | ||
11300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11301 | *) ac_try_echo=$ac_try;; | ||
11302 | esac | ||
11303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11304 | (eval "$ac_link") 2>conftest.er1 | ||
11305 | ac_status=$? | ||
11306 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11307 | rm -f conftest.er1 | ||
11308 | cat conftest.err >&5 | ||
11309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11310 | (exit $ac_status); } && { | ||
11311 | test -z "$ac_c_werror_flag" || | ||
11312 | test ! -s conftest.err | ||
11313 | } && test -s conftest$ac_exeext && | ||
11314 | $as_test_x conftest$ac_exeext; then | ||
11315 | ac_cv_lib_gmon_main=yes | ||
11316 | else | ||
11317 | echo "$as_me: failed program was:" >&5 | ||
11318 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11319 | |||
11320 | ac_cv_lib_gmon_main=no | ||
11321 | fi | ||
11322 | |||
11323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11324 | conftest$ac_exeext conftest.$ac_ext | ||
11325 | LIBS=$ac_check_lib_save_LIBS | ||
11326 | fi | ||
11327 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gmon_main" >&5 | ||
11328 | echo "${ECHO_T}$ac_cv_lib_gmon_main" >&6; } | ||
11329 | if test $ac_cv_lib_gmon_main = yes; then | ||
11330 | LIBS="$LIBS -lgmon" | ||
11331 | fi | ||
11332 | |||
11333 | { echo "$as_me:$LINENO: result: enabled" >&5 | ||
11334 | echo "${ECHO_T}enabled" >&6; } | ||
11335 | else | ||
11336 | { echo "$as_me:$LINENO: result: no" >&5 | ||
11337 | echo "${ECHO_T}no" >&6; } | ||
11338 | fi | ||
11339 | |||
11340 | |||
11341 | |||
11342 | |||
11343 | |||
11344 | |||
11345 | |||
11346 | |||
11347 | |||
11348 | |||
11349 | |||
11350 | |||
11351 | |||
11352 | |||
11353 | |||
11354 | |||
11355 | |||
11356 | |||
11357 | |||
11358 | |||
11359 | |||
11360 | |||
11361 | |||
11362 | for ac_func in floor memmove memset select sqrt sqrtf sinf cosf fabsf atan2f fmodf copysignf copysign snprintf vsnprintf gettimeofday isnan isnanf _isnan _isnanf __isnan __isnanf | ||
11363 | do | ||
11364 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11365 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11366 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11367 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11369 | else | ||
11370 | cat >conftest.$ac_ext <<_ACEOF | ||
11371 | /* confdefs.h. */ | ||
11372 | _ACEOF | ||
11373 | cat confdefs.h >>conftest.$ac_ext | ||
11374 | cat >>conftest.$ac_ext <<_ACEOF | ||
11375 | /* end confdefs.h. */ | ||
11376 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11378 | #define $ac_func innocuous_$ac_func | ||
11379 | |||
11380 | /* System header to define __stub macros and hopefully few prototypes, | ||
11381 | which can conflict with char $ac_func (); below. | ||
11382 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11383 | <limits.h> exists even on freestanding compilers. */ | ||
11384 | |||
11385 | #ifdef __STDC__ | ||
11386 | # include <limits.h> | ||
11387 | #else | ||
11388 | # include <assert.h> | ||
11389 | #endif | ||
11390 | |||
11391 | #undef $ac_func | ||
11392 | |||
11393 | /* Override any GCC internal prototype to avoid an error. | ||
11394 | Use char because int might match the return type of a GCC | ||
11395 | builtin and then its argument prototype would still apply. */ | ||
11396 | #ifdef __cplusplus | ||
11397 | extern "C" | ||
11398 | #endif | ||
11399 | char $ac_func (); | ||
11400 | /* The GNU C library defines this for functions which it implements | ||
11401 | to always fail with ENOSYS. Some functions are actually named | ||
11402 | something starting with __ and the normal name is an alias. */ | ||
11403 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11404 | choke me | ||
11405 | #endif | ||
11406 | |||
11407 | int | ||
11408 | main () | ||
11409 | { | ||
11410 | return $ac_func (); | ||
11411 | ; | ||
11412 | return 0; | ||
11413 | } | ||
11414 | _ACEOF | ||
11415 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11416 | if { (ac_try="$ac_link" | ||
11417 | case "(($ac_try" in | ||
11418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11419 | *) ac_try_echo=$ac_try;; | ||
11420 | esac | ||
11421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11422 | (eval "$ac_link") 2>conftest.er1 | ||
11423 | ac_status=$? | ||
11424 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11425 | rm -f conftest.er1 | ||
11426 | cat conftest.err >&5 | ||
11427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11428 | (exit $ac_status); } && { | ||
11429 | test -z "$ac_c_werror_flag" || | ||
11430 | test ! -s conftest.err | ||
11431 | } && test -s conftest$ac_exeext && | ||
11432 | $as_test_x conftest$ac_exeext; then | ||
11433 | eval "$as_ac_var=yes" | ||
11434 | else | ||
11435 | echo "$as_me: failed program was:" >&5 | ||
11436 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11437 | |||
11438 | eval "$as_ac_var=no" | ||
11439 | fi | ||
11440 | |||
11441 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11442 | conftest$ac_exeext conftest.$ac_ext | ||
11443 | fi | ||
11444 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11445 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11446 | echo "${ECHO_T}$ac_res" >&6; } | ||
11447 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11448 | cat >>confdefs.h <<_ACEOF | ||
11449 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11450 | _ACEOF | ||
11451 | |||
11452 | fi | ||
11453 | done | ||
11454 | |||
11455 | if test "$build_os" == "$target_os" | ||
11456 | then | ||
11457 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | ||
11458 | # for constant arguments. Useless! | ||
11459 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 | ||
11460 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | ||
11461 | if test "${ac_cv_working_alloca_h+set}" = set; then | ||
11462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11463 | else | ||
11464 | cat >conftest.$ac_ext <<_ACEOF | ||
11465 | /* confdefs.h. */ | ||
11466 | _ACEOF | ||
11467 | cat confdefs.h >>conftest.$ac_ext | ||
11468 | cat >>conftest.$ac_ext <<_ACEOF | ||
11469 | /* end confdefs.h. */ | ||
11470 | #include <alloca.h> | ||
11471 | int | ||
11472 | main () | ||
11473 | { | ||
11474 | char *p = (char *) alloca (2 * sizeof (int)); | ||
11475 | if (p) return 0; | ||
11476 | ; | ||
11477 | return 0; | ||
11478 | } | ||
11479 | _ACEOF | ||
11480 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11481 | if { (ac_try="$ac_link" | ||
11482 | case "(($ac_try" in | ||
11483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11484 | *) ac_try_echo=$ac_try;; | ||
11485 | esac | ||
11486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11487 | (eval "$ac_link") 2>conftest.er1 | ||
11488 | ac_status=$? | ||
11489 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11490 | rm -f conftest.er1 | ||
11491 | cat conftest.err >&5 | ||
11492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11493 | (exit $ac_status); } && { | ||
11494 | test -z "$ac_c_werror_flag" || | ||
11495 | test ! -s conftest.err | ||
11496 | } && test -s conftest$ac_exeext && | ||
11497 | $as_test_x conftest$ac_exeext; then | ||
11498 | ac_cv_working_alloca_h=yes | ||
11499 | else | ||
11500 | echo "$as_me: failed program was:" >&5 | ||
11501 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11502 | |||
11503 | ac_cv_working_alloca_h=no | ||
11504 | fi | ||
11505 | |||
11506 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11507 | conftest$ac_exeext conftest.$ac_ext | ||
11508 | fi | ||
11509 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | ||
11510 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | ||
11511 | if test $ac_cv_working_alloca_h = yes; then | ||
11512 | |||
11513 | cat >>confdefs.h <<\_ACEOF | ||
11514 | #define HAVE_ALLOCA_H 1 | ||
11515 | _ACEOF | ||
11516 | |||
11517 | fi | ||
11518 | |||
11519 | { echo "$as_me:$LINENO: checking for alloca" >&5 | ||
11520 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | ||
11521 | if test "${ac_cv_func_alloca_works+set}" = set; then | ||
11522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11523 | else | ||
11524 | cat >conftest.$ac_ext <<_ACEOF | ||
11525 | /* confdefs.h. */ | ||
11526 | _ACEOF | ||
11527 | cat confdefs.h >>conftest.$ac_ext | ||
11528 | cat >>conftest.$ac_ext <<_ACEOF | ||
11529 | /* end confdefs.h. */ | ||
11530 | #ifdef __GNUC__ | ||
11531 | # define alloca __builtin_alloca | ||
11532 | #else | ||
11533 | # ifdef _MSC_VER | ||
11534 | # include <malloc.h> | ||
11535 | # define alloca _alloca | ||
11536 | # else | ||
11537 | # ifdef HAVE_ALLOCA_H | ||
11538 | # include <alloca.h> | ||
11539 | # else | ||
11540 | # ifdef _AIX | ||
11541 | #pragma alloca | ||
11542 | # else | ||
11543 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
11544 | char *alloca (); | ||
11545 | # endif | ||
11546 | # endif | ||
11547 | # endif | ||
11548 | # endif | ||
11549 | #endif | ||
11550 | |||
11551 | int | ||
11552 | main () | ||
11553 | { | ||
11554 | char *p = (char *) alloca (1); | ||
11555 | if (p) return 0; | ||
11556 | ; | ||
11557 | return 0; | ||
11558 | } | ||
11559 | _ACEOF | ||
11560 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11561 | if { (ac_try="$ac_link" | ||
11562 | case "(($ac_try" in | ||
11563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11564 | *) ac_try_echo=$ac_try;; | ||
11565 | esac | ||
11566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11567 | (eval "$ac_link") 2>conftest.er1 | ||
11568 | ac_status=$? | ||
11569 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11570 | rm -f conftest.er1 | ||
11571 | cat conftest.err >&5 | ||
11572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11573 | (exit $ac_status); } && { | ||
11574 | test -z "$ac_c_werror_flag" || | ||
11575 | test ! -s conftest.err | ||
11576 | } && test -s conftest$ac_exeext && | ||
11577 | $as_test_x conftest$ac_exeext; then | ||
11578 | ac_cv_func_alloca_works=yes | ||
11579 | else | ||
11580 | echo "$as_me: failed program was:" >&5 | ||
11581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11582 | |||
11583 | ac_cv_func_alloca_works=no | ||
11584 | fi | ||
11585 | |||
11586 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11587 | conftest$ac_exeext conftest.$ac_ext | ||
11588 | fi | ||
11589 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | ||
11590 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | ||
11591 | |||
11592 | if test $ac_cv_func_alloca_works = yes; then | ||
11593 | |||
11594 | cat >>confdefs.h <<\_ACEOF | ||
11595 | #define HAVE_ALLOCA 1 | ||
11596 | _ACEOF | ||
11597 | |||
11598 | else | ||
11599 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | ||
11600 | # that cause trouble. Some versions do not even contain alloca or | ||
11601 | # contain a buggy version. If you still want to use their alloca, | ||
11602 | # use ar to extract alloca.o from them instead of compiling alloca.c. | ||
11603 | |||
11604 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | ||
11605 | |||
11606 | cat >>confdefs.h <<\_ACEOF | ||
11607 | #define C_ALLOCA 1 | ||
11608 | _ACEOF | ||
11609 | |||
11610 | |||
11611 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | ||
11612 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | ||
11613 | if test "${ac_cv_os_cray+set}" = set; then | ||
11614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11615 | else | ||
11616 | cat >conftest.$ac_ext <<_ACEOF | ||
11617 | /* confdefs.h. */ | ||
11618 | _ACEOF | ||
11619 | cat confdefs.h >>conftest.$ac_ext | ||
11620 | cat >>conftest.$ac_ext <<_ACEOF | ||
11621 | /* end confdefs.h. */ | ||
11622 | #if defined CRAY && ! defined CRAY2 | ||
11623 | webecray | ||
11624 | #else | ||
11625 | wenotbecray | ||
11626 | #endif | ||
11627 | |||
11628 | _ACEOF | ||
11629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
11630 | $EGREP "webecray" >/dev/null 2>&1; then | ||
11631 | ac_cv_os_cray=yes | ||
11632 | else | ||
11633 | ac_cv_os_cray=no | ||
11634 | fi | ||
11635 | rm -f conftest* | ||
11636 | |||
11637 | fi | ||
11638 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | ||
11639 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | ||
11640 | if test $ac_cv_os_cray = yes; then | ||
11641 | for ac_func in _getb67 GETB67 getb67; do | ||
11642 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11643 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11644 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
11645 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11647 | else | ||
11648 | cat >conftest.$ac_ext <<_ACEOF | ||
11649 | /* confdefs.h. */ | ||
11650 | _ACEOF | ||
11651 | cat confdefs.h >>conftest.$ac_ext | ||
11652 | cat >>conftest.$ac_ext <<_ACEOF | ||
11653 | /* end confdefs.h. */ | ||
11654 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11655 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11656 | #define $ac_func innocuous_$ac_func | ||
11657 | |||
11658 | /* System header to define __stub macros and hopefully few prototypes, | ||
11659 | which can conflict with char $ac_func (); below. | ||
11660 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11661 | <limits.h> exists even on freestanding compilers. */ | ||
11662 | |||
11663 | #ifdef __STDC__ | ||
11664 | # include <limits.h> | ||
11665 | #else | ||
11666 | # include <assert.h> | ||
11667 | #endif | ||
11668 | |||
11669 | #undef $ac_func | ||
11670 | |||
11671 | /* Override any GCC internal prototype to avoid an error. | ||
11672 | Use char because int might match the return type of a GCC | ||
11673 | builtin and then its argument prototype would still apply. */ | ||
11674 | #ifdef __cplusplus | ||
11675 | extern "C" | ||
11676 | #endif | ||
11677 | char $ac_func (); | ||
11678 | /* The GNU C library defines this for functions which it implements | ||
11679 | to always fail with ENOSYS. Some functions are actually named | ||
11680 | something starting with __ and the normal name is an alias. */ | ||
11681 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11682 | choke me | ||
11683 | #endif | ||
11684 | |||
11685 | int | ||
11686 | main () | ||
11687 | { | ||
11688 | return $ac_func (); | ||
11689 | ; | ||
11690 | return 0; | ||
11691 | } | ||
11692 | _ACEOF | ||
11693 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11694 | if { (ac_try="$ac_link" | ||
11695 | case "(($ac_try" in | ||
11696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11697 | *) ac_try_echo=$ac_try;; | ||
11698 | esac | ||
11699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11700 | (eval "$ac_link") 2>conftest.er1 | ||
11701 | ac_status=$? | ||
11702 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11703 | rm -f conftest.er1 | ||
11704 | cat conftest.err >&5 | ||
11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11706 | (exit $ac_status); } && { | ||
11707 | test -z "$ac_c_werror_flag" || | ||
11708 | test ! -s conftest.err | ||
11709 | } && test -s conftest$ac_exeext && | ||
11710 | $as_test_x conftest$ac_exeext; then | ||
11711 | eval "$as_ac_var=yes" | ||
11712 | else | ||
11713 | echo "$as_me: failed program was:" >&5 | ||
11714 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11715 | |||
11716 | eval "$as_ac_var=no" | ||
11717 | fi | ||
11718 | |||
11719 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11720 | conftest$ac_exeext conftest.$ac_ext | ||
11721 | fi | ||
11722 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
11723 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11724 | echo "${ECHO_T}$ac_res" >&6; } | ||
11725 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
11726 | |||
11727 | cat >>confdefs.h <<_ACEOF | ||
11728 | #define CRAY_STACKSEG_END $ac_func | ||
11729 | _ACEOF | ||
11730 | |||
11731 | break | ||
11732 | fi | ||
11733 | |||
11734 | done | ||
11735 | fi | ||
11736 | |||
11737 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | ||
11738 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | ||
11739 | if test "${ac_cv_c_stack_direction+set}" = set; then | ||
11740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11741 | else | ||
11742 | if test "$cross_compiling" = yes; then | ||
11743 | ac_cv_c_stack_direction=0 | ||
11744 | else | ||
11745 | cat >conftest.$ac_ext <<_ACEOF | ||
11746 | /* confdefs.h. */ | ||
11747 | _ACEOF | ||
11748 | cat confdefs.h >>conftest.$ac_ext | ||
11749 | cat >>conftest.$ac_ext <<_ACEOF | ||
11750 | /* end confdefs.h. */ | ||
11751 | $ac_includes_default | ||
11752 | int | ||
11753 | find_stack_direction () | ||
11754 | { | ||
11755 | static char *addr = 0; | ||
11756 | auto char dummy; | ||
11757 | if (addr == 0) | ||
11758 | { | ||
11759 | addr = &dummy; | ||
11760 | return find_stack_direction (); | ||
11761 | } | ||
11762 | else | ||
11763 | return (&dummy > addr) ? 1 : -1; | ||
11764 | } | ||
11765 | |||
11766 | int | ||
11767 | main () | ||
11768 | { | ||
11769 | return find_stack_direction () < 0; | ||
11770 | } | ||
11771 | _ACEOF | ||
11772 | rm -f conftest$ac_exeext | ||
11773 | if { (ac_try="$ac_link" | ||
11774 | case "(($ac_try" in | ||
11775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11776 | *) ac_try_echo=$ac_try;; | ||
11777 | esac | ||
11778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11779 | (eval "$ac_link") 2>&5 | ||
11780 | ac_status=$? | ||
11781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11782 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11783 | { (case "(($ac_try" in | ||
11784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11785 | *) ac_try_echo=$ac_try;; | ||
11786 | esac | ||
11787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11788 | (eval "$ac_try") 2>&5 | ||
11789 | ac_status=$? | ||
11790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11791 | (exit $ac_status); }; }; then | ||
11792 | ac_cv_c_stack_direction=1 | ||
11793 | else | ||
11794 | echo "$as_me: program exited with status $ac_status" >&5 | ||
11795 | echo "$as_me: failed program was:" >&5 | ||
11796 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11797 | |||
11798 | ( exit $ac_status ) | ||
11799 | ac_cv_c_stack_direction=-1 | ||
11800 | fi | ||
11801 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11802 | fi | ||
11803 | |||
11804 | |||
11805 | fi | ||
11806 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | ||
11807 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | ||
11808 | |||
11809 | cat >>confdefs.h <<_ACEOF | ||
11810 | #define STACK_DIRECTION $ac_cv_c_stack_direction | ||
11811 | _ACEOF | ||
11812 | |||
11813 | |||
11814 | fi | ||
11815 | |||
11816 | |||
11817 | for ac_header in stdlib.h | ||
11818 | do | ||
11819 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
11820 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11821 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11823 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11825 | fi | ||
11826 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11827 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11828 | echo "${ECHO_T}$ac_res" >&6; } | ||
11829 | else | ||
11830 | # Is the header compilable? | ||
11831 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
11832 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
11833 | cat >conftest.$ac_ext <<_ACEOF | ||
11834 | /* confdefs.h. */ | ||
11835 | _ACEOF | ||
11836 | cat confdefs.h >>conftest.$ac_ext | ||
11837 | cat >>conftest.$ac_ext <<_ACEOF | ||
11838 | /* end confdefs.h. */ | ||
11839 | $ac_includes_default | ||
11840 | #include <$ac_header> | ||
11841 | _ACEOF | ||
11842 | rm -f conftest.$ac_objext | ||
11843 | if { (ac_try="$ac_compile" | ||
11844 | case "(($ac_try" in | ||
11845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11846 | *) ac_try_echo=$ac_try;; | ||
11847 | esac | ||
11848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11849 | (eval "$ac_compile") 2>conftest.er1 | ||
11850 | ac_status=$? | ||
11851 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11852 | rm -f conftest.er1 | ||
11853 | cat conftest.err >&5 | ||
11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11855 | (exit $ac_status); } && { | ||
11856 | test -z "$ac_c_werror_flag" || | ||
11857 | test ! -s conftest.err | ||
11858 | } && test -s conftest.$ac_objext; then | ||
11859 | ac_header_compiler=yes | ||
11860 | else | ||
11861 | echo "$as_me: failed program was:" >&5 | ||
11862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11863 | |||
11864 | ac_header_compiler=no | ||
11865 | fi | ||
11866 | |||
11867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11868 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11869 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
11870 | |||
11871 | # Is the header present? | ||
11872 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
11873 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
11874 | cat >conftest.$ac_ext <<_ACEOF | ||
11875 | /* confdefs.h. */ | ||
11876 | _ACEOF | ||
11877 | cat confdefs.h >>conftest.$ac_ext | ||
11878 | cat >>conftest.$ac_ext <<_ACEOF | ||
11879 | /* end confdefs.h. */ | ||
11880 | #include <$ac_header> | ||
11881 | _ACEOF | ||
11882 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11883 | case "(($ac_try" in | ||
11884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11885 | *) ac_try_echo=$ac_try;; | ||
11886 | esac | ||
11887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11888 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11889 | ac_status=$? | ||
11890 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11891 | rm -f conftest.er1 | ||
11892 | cat conftest.err >&5 | ||
11893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11894 | (exit $ac_status); } >/dev/null && { | ||
11895 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11896 | test ! -s conftest.err | ||
11897 | }; then | ||
11898 | ac_header_preproc=yes | ||
11899 | else | ||
11900 | echo "$as_me: failed program was:" >&5 | ||
11901 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11902 | |||
11903 | ac_header_preproc=no | ||
11904 | fi | ||
11905 | |||
11906 | rm -f conftest.err conftest.$ac_ext | ||
11907 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11908 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
11909 | |||
11910 | # So? What about this header? | ||
11911 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11912 | yes:no: ) | ||
11913 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11914 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11915 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
11916 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
11917 | ac_header_preproc=yes | ||
11918 | ;; | ||
11919 | no:yes:* ) | ||
11920 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
11921 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
11922 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
11923 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
11924 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
11925 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
11926 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
11927 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11928 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
11929 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
11930 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
11931 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
11932 | ( cat <<\_ASBOX | ||
11933 | ## -------------------------- ## | ||
11934 | ## Report this to ode@ode.org ## | ||
11935 | ## -------------------------- ## | ||
11936 | _ASBOX | ||
11937 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11938 | ;; | ||
11939 | esac | ||
11940 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
11942 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11944 | else | ||
11945 | eval "$as_ac_Header=\$ac_header_preproc" | ||
11946 | fi | ||
11947 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
11948 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11949 | echo "${ECHO_T}$ac_res" >&6; } | ||
11950 | |||
11951 | fi | ||
11952 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
11953 | cat >>confdefs.h <<_ACEOF | ||
11954 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
11955 | _ACEOF | ||
11956 | |||
11957 | fi | ||
11958 | |||
11959 | done | ||
11960 | |||
11961 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 | ||
11962 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | ||
11963 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then | ||
11964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11965 | else | ||
11966 | if test "$cross_compiling" = yes; then | ||
11967 | ac_cv_func_malloc_0_nonnull=no | ||
11968 | else | ||
11969 | cat >conftest.$ac_ext <<_ACEOF | ||
11970 | /* confdefs.h. */ | ||
11971 | _ACEOF | ||
11972 | cat confdefs.h >>conftest.$ac_ext | ||
11973 | cat >>conftest.$ac_ext <<_ACEOF | ||
11974 | /* end confdefs.h. */ | ||
11975 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | ||
11976 | # include <stdlib.h> | ||
11977 | #else | ||
11978 | char *malloc (); | ||
11979 | #endif | ||
11980 | |||
11981 | int | ||
11982 | main () | ||
11983 | { | ||
11984 | return ! malloc (0); | ||
11985 | ; | ||
11986 | return 0; | ||
11987 | } | ||
11988 | _ACEOF | ||
11989 | rm -f conftest$ac_exeext | ||
11990 | if { (ac_try="$ac_link" | ||
11991 | case "(($ac_try" in | ||
11992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11993 | *) ac_try_echo=$ac_try;; | ||
11994 | esac | ||
11995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11996 | (eval "$ac_link") 2>&5 | ||
11997 | ac_status=$? | ||
11998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11999 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12000 | { (case "(($ac_try" in | ||
12001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12002 | *) ac_try_echo=$ac_try;; | ||
12003 | esac | ||
12004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12005 | (eval "$ac_try") 2>&5 | ||
12006 | ac_status=$? | ||
12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12008 | (exit $ac_status); }; }; then | ||
12009 | ac_cv_func_malloc_0_nonnull=yes | ||
12010 | else | ||
12011 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12012 | echo "$as_me: failed program was:" >&5 | ||
12013 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12014 | |||
12015 | ( exit $ac_status ) | ||
12016 | ac_cv_func_malloc_0_nonnull=no | ||
12017 | fi | ||
12018 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12019 | fi | ||
12020 | |||
12021 | |||
12022 | fi | ||
12023 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 | ||
12024 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | ||
12025 | if test $ac_cv_func_malloc_0_nonnull = yes; then | ||
12026 | |||
12027 | cat >>confdefs.h <<\_ACEOF | ||
12028 | #define HAVE_MALLOC 1 | ||
12029 | _ACEOF | ||
12030 | |||
12031 | else | ||
12032 | cat >>confdefs.h <<\_ACEOF | ||
12033 | #define HAVE_MALLOC 0 | ||
12034 | _ACEOF | ||
12035 | |||
12036 | case " $LIBOBJS " in | ||
12037 | *" malloc.$ac_objext "* ) ;; | ||
12038 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | ||
12039 | ;; | ||
12040 | esac | ||
12041 | |||
12042 | |||
12043 | cat >>confdefs.h <<\_ACEOF | ||
12044 | #define malloc rpl_malloc | ||
12045 | _ACEOF | ||
12046 | |||
12047 | fi | ||
12048 | |||
12049 | |||
12050 | |||
12051 | { echo "$as_me:$LINENO: checking for obstacks" >&5 | ||
12052 | echo $ECHO_N "checking for obstacks... $ECHO_C" >&6; } | ||
12053 | if test "${ac_cv_func_obstack+set}" = set; then | ||
12054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12055 | else | ||
12056 | cat >conftest.$ac_ext <<_ACEOF | ||
12057 | /* confdefs.h. */ | ||
12058 | _ACEOF | ||
12059 | cat confdefs.h >>conftest.$ac_ext | ||
12060 | cat >>conftest.$ac_ext <<_ACEOF | ||
12061 | /* end confdefs.h. */ | ||
12062 | $ac_includes_default | ||
12063 | #include "obstack.h" | ||
12064 | int | ||
12065 | main () | ||
12066 | { | ||
12067 | struct obstack mem; | ||
12068 | #define obstack_chunk_alloc malloc | ||
12069 | #define obstack_chunk_free free | ||
12070 | obstack_init (&mem); | ||
12071 | obstack_free (&mem, 0); | ||
12072 | ; | ||
12073 | return 0; | ||
12074 | } | ||
12075 | _ACEOF | ||
12076 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12077 | if { (ac_try="$ac_link" | ||
12078 | case "(($ac_try" in | ||
12079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12080 | *) ac_try_echo=$ac_try;; | ||
12081 | esac | ||
12082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12083 | (eval "$ac_link") 2>conftest.er1 | ||
12084 | ac_status=$? | ||
12085 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12086 | rm -f conftest.er1 | ||
12087 | cat conftest.err >&5 | ||
12088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12089 | (exit $ac_status); } && { | ||
12090 | test -z "$ac_c_werror_flag" || | ||
12091 | test ! -s conftest.err | ||
12092 | } && test -s conftest$ac_exeext && | ||
12093 | $as_test_x conftest$ac_exeext; then | ||
12094 | ac_cv_func_obstack=yes | ||
12095 | else | ||
12096 | echo "$as_me: failed program was:" >&5 | ||
12097 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12098 | |||
12099 | ac_cv_func_obstack=no | ||
12100 | fi | ||
12101 | |||
12102 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12103 | conftest$ac_exeext conftest.$ac_ext | ||
12104 | fi | ||
12105 | { echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5 | ||
12106 | echo "${ECHO_T}$ac_cv_func_obstack" >&6; } | ||
12107 | if test $ac_cv_func_obstack = yes; then | ||
12108 | |||
12109 | cat >>confdefs.h <<\_ACEOF | ||
12110 | #define HAVE_OBSTACK 1 | ||
12111 | _ACEOF | ||
12112 | |||
12113 | else | ||
12114 | case " $LIBOBJS " in | ||
12115 | *" obstack.$ac_objext "* ) ;; | ||
12116 | *) LIBOBJS="$LIBOBJS obstack.$ac_objext" | ||
12117 | ;; | ||
12118 | esac | ||
12119 | |||
12120 | fi | ||
12121 | |||
12122 | |||
12123 | for ac_header in stdlib.h | ||
12124 | do | ||
12125 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12126 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12127 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12128 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12131 | fi | ||
12132 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12133 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12134 | echo "${ECHO_T}$ac_res" >&6; } | ||
12135 | else | ||
12136 | # Is the header compilable? | ||
12137 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
12138 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
12139 | cat >conftest.$ac_ext <<_ACEOF | ||
12140 | /* confdefs.h. */ | ||
12141 | _ACEOF | ||
12142 | cat confdefs.h >>conftest.$ac_ext | ||
12143 | cat >>conftest.$ac_ext <<_ACEOF | ||
12144 | /* end confdefs.h. */ | ||
12145 | $ac_includes_default | ||
12146 | #include <$ac_header> | ||
12147 | _ACEOF | ||
12148 | rm -f conftest.$ac_objext | ||
12149 | if { (ac_try="$ac_compile" | ||
12150 | case "(($ac_try" in | ||
12151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12152 | *) ac_try_echo=$ac_try;; | ||
12153 | esac | ||
12154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12155 | (eval "$ac_compile") 2>conftest.er1 | ||
12156 | ac_status=$? | ||
12157 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12158 | rm -f conftest.er1 | ||
12159 | cat conftest.err >&5 | ||
12160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12161 | (exit $ac_status); } && { | ||
12162 | test -z "$ac_c_werror_flag" || | ||
12163 | test ! -s conftest.err | ||
12164 | } && test -s conftest.$ac_objext; then | ||
12165 | ac_header_compiler=yes | ||
12166 | else | ||
12167 | echo "$as_me: failed program was:" >&5 | ||
12168 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12169 | |||
12170 | ac_header_compiler=no | ||
12171 | fi | ||
12172 | |||
12173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12174 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
12175 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
12176 | |||
12177 | # Is the header present? | ||
12178 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
12179 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
12180 | cat >conftest.$ac_ext <<_ACEOF | ||
12181 | /* confdefs.h. */ | ||
12182 | _ACEOF | ||
12183 | cat confdefs.h >>conftest.$ac_ext | ||
12184 | cat >>conftest.$ac_ext <<_ACEOF | ||
12185 | /* end confdefs.h. */ | ||
12186 | #include <$ac_header> | ||
12187 | _ACEOF | ||
12188 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
12189 | case "(($ac_try" in | ||
12190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12191 | *) ac_try_echo=$ac_try;; | ||
12192 | esac | ||
12193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12194 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
12195 | ac_status=$? | ||
12196 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12197 | rm -f conftest.er1 | ||
12198 | cat conftest.err >&5 | ||
12199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12200 | (exit $ac_status); } >/dev/null && { | ||
12201 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
12202 | test ! -s conftest.err | ||
12203 | }; then | ||
12204 | ac_header_preproc=yes | ||
12205 | else | ||
12206 | echo "$as_me: failed program was:" >&5 | ||
12207 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12208 | |||
12209 | ac_header_preproc=no | ||
12210 | fi | ||
12211 | |||
12212 | rm -f conftest.err conftest.$ac_ext | ||
12213 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
12214 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
12215 | |||
12216 | # So? What about this header? | ||
12217 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
12218 | yes:no: ) | ||
12219 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
12220 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
12221 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
12222 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
12223 | ac_header_preproc=yes | ||
12224 | ;; | ||
12225 | no:yes:* ) | ||
12226 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
12227 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
12228 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
12229 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
12230 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
12231 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
12232 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
12233 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
12234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
12235 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
12236 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
12237 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
12238 | ( cat <<\_ASBOX | ||
12239 | ## -------------------------- ## | ||
12240 | ## Report this to ode@ode.org ## | ||
12241 | ## -------------------------- ## | ||
12242 | _ASBOX | ||
12243 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
12244 | ;; | ||
12245 | esac | ||
12246 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12247 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12248 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12250 | else | ||
12251 | eval "$as_ac_Header=\$ac_header_preproc" | ||
12252 | fi | ||
12253 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12254 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12255 | echo "${ECHO_T}$ac_res" >&6; } | ||
12256 | |||
12257 | fi | ||
12258 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12259 | cat >>confdefs.h <<_ACEOF | ||
12260 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12261 | _ACEOF | ||
12262 | |||
12263 | fi | ||
12264 | |||
12265 | done | ||
12266 | |||
12267 | { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 | ||
12268 | echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } | ||
12269 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then | ||
12270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12271 | else | ||
12272 | if test "$cross_compiling" = yes; then | ||
12273 | ac_cv_func_realloc_0_nonnull=no | ||
12274 | else | ||
12275 | cat >conftest.$ac_ext <<_ACEOF | ||
12276 | /* confdefs.h. */ | ||
12277 | _ACEOF | ||
12278 | cat confdefs.h >>conftest.$ac_ext | ||
12279 | cat >>conftest.$ac_ext <<_ACEOF | ||
12280 | /* end confdefs.h. */ | ||
12281 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | ||
12282 | # include <stdlib.h> | ||
12283 | #else | ||
12284 | char *realloc (); | ||
12285 | #endif | ||
12286 | |||
12287 | int | ||
12288 | main () | ||
12289 | { | ||
12290 | return ! realloc (0, 0); | ||
12291 | ; | ||
12292 | return 0; | ||
12293 | } | ||
12294 | _ACEOF | ||
12295 | rm -f conftest$ac_exeext | ||
12296 | if { (ac_try="$ac_link" | ||
12297 | case "(($ac_try" in | ||
12298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12299 | *) ac_try_echo=$ac_try;; | ||
12300 | esac | ||
12301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12302 | (eval "$ac_link") 2>&5 | ||
12303 | ac_status=$? | ||
12304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12305 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12306 | { (case "(($ac_try" in | ||
12307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12308 | *) ac_try_echo=$ac_try;; | ||
12309 | esac | ||
12310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12311 | (eval "$ac_try") 2>&5 | ||
12312 | ac_status=$? | ||
12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12314 | (exit $ac_status); }; }; then | ||
12315 | ac_cv_func_realloc_0_nonnull=yes | ||
12316 | else | ||
12317 | echo "$as_me: program exited with status $ac_status" >&5 | ||
12318 | echo "$as_me: failed program was:" >&5 | ||
12319 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12320 | |||
12321 | ( exit $ac_status ) | ||
12322 | ac_cv_func_realloc_0_nonnull=no | ||
12323 | fi | ||
12324 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12325 | fi | ||
12326 | |||
12327 | |||
12328 | fi | ||
12329 | { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 | ||
12330 | echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } | ||
12331 | if test $ac_cv_func_realloc_0_nonnull = yes; then | ||
12332 | |||
12333 | cat >>confdefs.h <<\_ACEOF | ||
12334 | #define HAVE_REALLOC 1 | ||
12335 | _ACEOF | ||
12336 | |||
12337 | else | ||
12338 | cat >>confdefs.h <<\_ACEOF | ||
12339 | #define HAVE_REALLOC 0 | ||
12340 | _ACEOF | ||
12341 | |||
12342 | case " $LIBOBJS " in | ||
12343 | *" realloc.$ac_objext "* ) ;; | ||
12344 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | ||
12345 | ;; | ||
12346 | esac | ||
12347 | |||
12348 | |||
12349 | cat >>confdefs.h <<\_ACEOF | ||
12350 | #define realloc rpl_realloc | ||
12351 | _ACEOF | ||
12352 | |||
12353 | fi | ||
12354 | |||
12355 | |||
12356 | |||
12357 | |||
12358 | |||
12359 | for ac_header in sys/select.h sys/socket.h | ||
12360 | do | ||
12361 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
12362 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12363 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12365 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12367 | fi | ||
12368 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12369 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12370 | echo "${ECHO_T}$ac_res" >&6; } | ||
12371 | else | ||
12372 | # Is the header compilable? | ||
12373 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
12374 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
12375 | cat >conftest.$ac_ext <<_ACEOF | ||
12376 | /* confdefs.h. */ | ||
12377 | _ACEOF | ||
12378 | cat confdefs.h >>conftest.$ac_ext | ||
12379 | cat >>conftest.$ac_ext <<_ACEOF | ||
12380 | /* end confdefs.h. */ | ||
12381 | $ac_includes_default | ||
12382 | #include <$ac_header> | ||
12383 | _ACEOF | ||
12384 | rm -f conftest.$ac_objext | ||
12385 | if { (ac_try="$ac_compile" | ||
12386 | case "(($ac_try" in | ||
12387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12388 | *) ac_try_echo=$ac_try;; | ||
12389 | esac | ||
12390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12391 | (eval "$ac_compile") 2>conftest.er1 | ||
12392 | ac_status=$? | ||
12393 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12394 | rm -f conftest.er1 | ||
12395 | cat conftest.err >&5 | ||
12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12397 | (exit $ac_status); } && { | ||
12398 | test -z "$ac_c_werror_flag" || | ||
12399 | test ! -s conftest.err | ||
12400 | } && test -s conftest.$ac_objext; then | ||
12401 | ac_header_compiler=yes | ||
12402 | else | ||
12403 | echo "$as_me: failed program was:" >&5 | ||
12404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12405 | |||
12406 | ac_header_compiler=no | ||
12407 | fi | ||
12408 | |||
12409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12410 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
12411 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
12412 | |||
12413 | # Is the header present? | ||
12414 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
12415 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
12416 | cat >conftest.$ac_ext <<_ACEOF | ||
12417 | /* confdefs.h. */ | ||
12418 | _ACEOF | ||
12419 | cat confdefs.h >>conftest.$ac_ext | ||
12420 | cat >>conftest.$ac_ext <<_ACEOF | ||
12421 | /* end confdefs.h. */ | ||
12422 | #include <$ac_header> | ||
12423 | _ACEOF | ||
12424 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
12425 | case "(($ac_try" in | ||
12426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12427 | *) ac_try_echo=$ac_try;; | ||
12428 | esac | ||
12429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12430 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
12431 | ac_status=$? | ||
12432 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12433 | rm -f conftest.er1 | ||
12434 | cat conftest.err >&5 | ||
12435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12436 | (exit $ac_status); } >/dev/null && { | ||
12437 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
12438 | test ! -s conftest.err | ||
12439 | }; then | ||
12440 | ac_header_preproc=yes | ||
12441 | else | ||
12442 | echo "$as_me: failed program was:" >&5 | ||
12443 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12444 | |||
12445 | ac_header_preproc=no | ||
12446 | fi | ||
12447 | |||
12448 | rm -f conftest.err conftest.$ac_ext | ||
12449 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
12450 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
12451 | |||
12452 | # So? What about this header? | ||
12453 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
12454 | yes:no: ) | ||
12455 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
12456 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
12457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
12458 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
12459 | ac_header_preproc=yes | ||
12460 | ;; | ||
12461 | no:yes:* ) | ||
12462 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
12463 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
12464 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
12465 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
12466 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
12467 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
12468 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
12469 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
12470 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
12471 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
12472 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
12473 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
12474 | ( cat <<\_ASBOX | ||
12475 | ## -------------------------- ## | ||
12476 | ## Report this to ode@ode.org ## | ||
12477 | ## -------------------------- ## | ||
12478 | _ASBOX | ||
12479 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
12480 | ;; | ||
12481 | esac | ||
12482 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
12483 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
12484 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12486 | else | ||
12487 | eval "$as_ac_Header=\$ac_header_preproc" | ||
12488 | fi | ||
12489 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
12490 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12491 | echo "${ECHO_T}$ac_res" >&6; } | ||
12492 | |||
12493 | fi | ||
12494 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
12495 | cat >>confdefs.h <<_ACEOF | ||
12496 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
12497 | _ACEOF | ||
12498 | |||
12499 | fi | ||
12500 | |||
12501 | done | ||
12502 | |||
12503 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 | ||
12504 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | ||
12505 | if test "${ac_cv_func_select_args+set}" = set; then | ||
12506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12507 | else | ||
12508 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do | ||
12509 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | ||
12510 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | ||
12511 | cat >conftest.$ac_ext <<_ACEOF | ||
12512 | /* confdefs.h. */ | ||
12513 | _ACEOF | ||
12514 | cat confdefs.h >>conftest.$ac_ext | ||
12515 | cat >>conftest.$ac_ext <<_ACEOF | ||
12516 | /* end confdefs.h. */ | ||
12517 | $ac_includes_default | ||
12518 | #ifdef HAVE_SYS_SELECT_H | ||
12519 | # include <sys/select.h> | ||
12520 | #endif | ||
12521 | #ifdef HAVE_SYS_SOCKET_H | ||
12522 | # include <sys/socket.h> | ||
12523 | #endif | ||
12524 | |||
12525 | int | ||
12526 | main () | ||
12527 | { | ||
12528 | extern int select ($ac_arg1, | ||
12529 | $ac_arg234, $ac_arg234, $ac_arg234, | ||
12530 | $ac_arg5); | ||
12531 | ; | ||
12532 | return 0; | ||
12533 | } | ||
12534 | _ACEOF | ||
12535 | rm -f conftest.$ac_objext | ||
12536 | if { (ac_try="$ac_compile" | ||
12537 | case "(($ac_try" in | ||
12538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12539 | *) ac_try_echo=$ac_try;; | ||
12540 | esac | ||
12541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12542 | (eval "$ac_compile") 2>conftest.er1 | ||
12543 | ac_status=$? | ||
12544 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12545 | rm -f conftest.er1 | ||
12546 | cat conftest.err >&5 | ||
12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12548 | (exit $ac_status); } && { | ||
12549 | test -z "$ac_c_werror_flag" || | ||
12550 | test ! -s conftest.err | ||
12551 | } && test -s conftest.$ac_objext; then | ||
12552 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | ||
12553 | else | ||
12554 | echo "$as_me: failed program was:" >&5 | ||
12555 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12556 | |||
12557 | |||
12558 | fi | ||
12559 | |||
12560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12561 | done | ||
12562 | done | ||
12563 | done | ||
12564 | # Provide a safe default value. | ||
12565 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | ||
12566 | |||
12567 | fi | ||
12568 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 | ||
12569 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | ||
12570 | ac_save_IFS=$IFS; IFS=',' | ||
12571 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | ||
12572 | IFS=$ac_save_IFS | ||
12573 | shift | ||
12574 | |||
12575 | cat >>confdefs.h <<_ACEOF | ||
12576 | #define SELECT_TYPE_ARG1 $1 | ||
12577 | _ACEOF | ||
12578 | |||
12579 | |||
12580 | cat >>confdefs.h <<_ACEOF | ||
12581 | #define SELECT_TYPE_ARG234 ($2) | ||
12582 | _ACEOF | ||
12583 | |||
12584 | |||
12585 | cat >>confdefs.h <<_ACEOF | ||
12586 | #define SELECT_TYPE_ARG5 ($3) | ||
12587 | _ACEOF | ||
12588 | |||
12589 | rm -f conftest* | ||
12590 | |||
12591 | |||
12592 | for ac_func in vprintf | ||
12593 | do | ||
12594 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12595 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12596 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | ||
12597 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12599 | else | ||
12600 | cat >conftest.$ac_ext <<_ACEOF | ||
12601 | /* confdefs.h. */ | ||
12602 | _ACEOF | ||
12603 | cat confdefs.h >>conftest.$ac_ext | ||
12604 | cat >>conftest.$ac_ext <<_ACEOF | ||
12605 | /* end confdefs.h. */ | ||
12606 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12607 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12608 | #define $ac_func innocuous_$ac_func | ||
12609 | |||
12610 | /* System header to define __stub macros and hopefully few prototypes, | ||
12611 | which can conflict with char $ac_func (); below. | ||
12612 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12613 | <limits.h> exists even on freestanding compilers. */ | ||
12614 | |||
12615 | #ifdef __STDC__ | ||
12616 | # include <limits.h> | ||
12617 | #else | ||
12618 | # include <assert.h> | ||
12619 | #endif | ||
12620 | |||
12621 | #undef $ac_func | ||
12622 | |||
12623 | /* Override any GCC internal prototype to avoid an error. | ||
12624 | Use char because int might match the return type of a GCC | ||
12625 | builtin and then its argument prototype would still apply. */ | ||
12626 | #ifdef __cplusplus | ||
12627 | extern "C" | ||
12628 | #endif | ||
12629 | char $ac_func (); | ||
12630 | /* The GNU C library defines this for functions which it implements | ||
12631 | to always fail with ENOSYS. Some functions are actually named | ||
12632 | something starting with __ and the normal name is an alias. */ | ||
12633 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12634 | choke me | ||
12635 | #endif | ||
12636 | |||
12637 | int | ||
12638 | main () | ||
12639 | { | ||
12640 | return $ac_func (); | ||
12641 | ; | ||
12642 | return 0; | ||
12643 | } | ||
12644 | _ACEOF | ||
12645 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12646 | if { (ac_try="$ac_link" | ||
12647 | case "(($ac_try" in | ||
12648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12649 | *) ac_try_echo=$ac_try;; | ||
12650 | esac | ||
12651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12652 | (eval "$ac_link") 2>conftest.er1 | ||
12653 | ac_status=$? | ||
12654 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12655 | rm -f conftest.er1 | ||
12656 | cat conftest.err >&5 | ||
12657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12658 | (exit $ac_status); } && { | ||
12659 | test -z "$ac_c_werror_flag" || | ||
12660 | test ! -s conftest.err | ||
12661 | } && test -s conftest$ac_exeext && | ||
12662 | $as_test_x conftest$ac_exeext; then | ||
12663 | eval "$as_ac_var=yes" | ||
12664 | else | ||
12665 | echo "$as_me: failed program was:" >&5 | ||
12666 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12667 | |||
12668 | eval "$as_ac_var=no" | ||
12669 | fi | ||
12670 | |||
12671 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12672 | conftest$ac_exeext conftest.$ac_ext | ||
12673 | fi | ||
12674 | ac_res=`eval echo '${'$as_ac_var'}'` | ||
12675 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12676 | echo "${ECHO_T}$ac_res" >&6; } | ||
12677 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
12678 | cat >>confdefs.h <<_ACEOF | ||
12679 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12680 | _ACEOF | ||
12681 | |||
12682 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 | ||
12683 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | ||
12684 | if test "${ac_cv_func__doprnt+set}" = set; then | ||
12685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12686 | else | ||
12687 | cat >conftest.$ac_ext <<_ACEOF | ||
12688 | /* confdefs.h. */ | ||
12689 | _ACEOF | ||
12690 | cat confdefs.h >>conftest.$ac_ext | ||
12691 | cat >>conftest.$ac_ext <<_ACEOF | ||
12692 | /* end confdefs.h. */ | ||
12693 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | ||
12694 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12695 | #define _doprnt innocuous__doprnt | ||
12696 | |||
12697 | /* System header to define __stub macros and hopefully few prototypes, | ||
12698 | which can conflict with char _doprnt (); below. | ||
12699 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12700 | <limits.h> exists even on freestanding compilers. */ | ||
12701 | |||
12702 | #ifdef __STDC__ | ||
12703 | # include <limits.h> | ||
12704 | #else | ||
12705 | # include <assert.h> | ||
12706 | #endif | ||
12707 | |||
12708 | #undef _doprnt | ||
12709 | |||
12710 | /* Override any GCC internal prototype to avoid an error. | ||
12711 | Use char because int might match the return type of a GCC | ||
12712 | builtin and then its argument prototype would still apply. */ | ||
12713 | #ifdef __cplusplus | ||
12714 | extern "C" | ||
12715 | #endif | ||
12716 | char _doprnt (); | ||
12717 | /* The GNU C library defines this for functions which it implements | ||
12718 | to always fail with ENOSYS. Some functions are actually named | ||
12719 | something starting with __ and the normal name is an alias. */ | ||
12720 | #if defined __stub__doprnt || defined __stub____doprnt | ||
12721 | choke me | ||
12722 | #endif | ||
12723 | |||
12724 | int | ||
12725 | main () | ||
12726 | { | ||
12727 | return _doprnt (); | ||
12728 | ; | ||
12729 | return 0; | ||
12730 | } | ||
12731 | _ACEOF | ||
12732 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12733 | if { (ac_try="$ac_link" | ||
12734 | case "(($ac_try" in | ||
12735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12736 | *) ac_try_echo=$ac_try;; | ||
12737 | esac | ||
12738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
12739 | (eval "$ac_link") 2>conftest.er1 | ||
12740 | ac_status=$? | ||
12741 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12742 | rm -f conftest.er1 | ||
12743 | cat conftest.err >&5 | ||
12744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12745 | (exit $ac_status); } && { | ||
12746 | test -z "$ac_c_werror_flag" || | ||
12747 | test ! -s conftest.err | ||
12748 | } && test -s conftest$ac_exeext && | ||
12749 | $as_test_x conftest$ac_exeext; then | ||
12750 | ac_cv_func__doprnt=yes | ||
12751 | else | ||
12752 | echo "$as_me: failed program was:" >&5 | ||
12753 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12754 | |||
12755 | ac_cv_func__doprnt=no | ||
12756 | fi | ||
12757 | |||
12758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12759 | conftest$ac_exeext conftest.$ac_ext | ||
12760 | fi | ||
12761 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | ||
12762 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | ||
12763 | if test $ac_cv_func__doprnt = yes; then | ||
12764 | |||
12765 | cat >>confdefs.h <<\_ACEOF | ||
12766 | #define HAVE_DOPRNT 1 | ||
12767 | _ACEOF | ||
12768 | |||
12769 | fi | ||
12770 | |||
12771 | fi | ||
12772 | done | ||
12773 | |||
12774 | |||
12775 | fi | ||
12776 | |||
12777 | |||
12778 | |||
12779 | |||
12780 | |||
12781 | |||
12782 | |||
12783 | ac_config_files="$ac_config_files Makefile include/Makefile include/ode/Makefile ode/Makefile ode/src/Makefile drawstuff/Makefile drawstuff/src/Makefile drawstuff/dstest/Makefile ode/demo/Makefile tests/Makefile tests/CppTestHarness/Makefile ode-config" | ||
12784 | |||
12785 | cat >confcache <<\_ACEOF | ||
12786 | # This file is a shell script that caches the results of configure | ||
12787 | # tests run on this system so they can be shared between configure | ||
12788 | # scripts and configure runs, see configure's option --config-cache. | ||
12789 | # It is not useful on other systems. If it contains results you don't | ||
12790 | # want to keep, you may remove or edit it. | ||
12791 | # | ||
12792 | # config.status only pays attention to the cache file if you give it | ||
12793 | # the --recheck option to rerun configure. | ||
12794 | # | ||
12795 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
12796 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
12797 | # following values. | ||
12798 | |||
12799 | _ACEOF | ||
12800 | |||
12801 | # The following way of writing the cache mishandles newlines in values, | ||
12802 | # but we know of no workaround that is simple, portable, and efficient. | ||
12803 | # So, we kill variables containing newlines. | ||
12804 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
12805 | # and sets the high bit in the cache file unless we assign to the vars. | ||
12806 | ( | ||
12807 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
12808 | eval ac_val=\$$ac_var | ||
12809 | case $ac_val in #( | ||
12810 | *${as_nl}*) | ||
12811 | case $ac_var in #( | ||
12812 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
12813 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
12814 | esac | ||
12815 | case $ac_var in #( | ||
12816 | _ | IFS | as_nl) ;; #( | ||
12817 | *) $as_unset $ac_var ;; | ||
12818 | esac ;; | ||
12819 | esac | ||
12820 | done | ||
12821 | |||
12822 | (set) 2>&1 | | ||
12823 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
12824 | *${as_nl}ac_space=\ *) | ||
12825 | # `set' does not quote correctly, so add quotes (double-quote | ||
12826 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
12827 | sed -n \ | ||
12828 | "s/'/'\\\\''/g; | ||
12829 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
12830 | ;; #( | ||
12831 | *) | ||
12832 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
12833 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
12834 | ;; | ||
12835 | esac | | ||
12836 | sort | ||
12837 | ) | | ||
12838 | sed ' | ||
12839 | /^ac_cv_env_/b end | ||
12840 | t clear | ||
12841 | :clear | ||
12842 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
12843 | t end | ||
12844 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
12845 | :end' >>confcache | ||
12846 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
12847 | if test -w "$cache_file"; then | ||
12848 | test "x$cache_file" != "x/dev/null" && | ||
12849 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
12850 | echo "$as_me: updating cache $cache_file" >&6;} | ||
12851 | cat confcache >$cache_file | ||
12852 | else | ||
12853 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
12854 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
12855 | fi | ||
12856 | fi | ||
12857 | rm -f confcache | ||
12858 | |||
12859 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
12860 | # Let make expand exec_prefix. | ||
12861 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
12862 | |||
12863 | DEFS=-DHAVE_CONFIG_H | ||
12864 | |||
12865 | ac_libobjs= | ||
12866 | ac_ltlibobjs= | ||
12867 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
12868 | # 1. Remove the extension, and $U if already installed. | ||
12869 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
12870 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
12871 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
12872 | # will be set to the directory where LIBOBJS objects are built. | ||
12873 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
12874 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
12875 | done | ||
12876 | LIBOBJS=$ac_libobjs | ||
12877 | |||
12878 | LTLIBOBJS=$ac_ltlibobjs | ||
12879 | |||
12880 | |||
12881 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
12882 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | ||
12883 | Usually this means the macro was only invoked conditionally." >&5 | ||
12884 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | ||
12885 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12886 | { (exit 1); exit 1; }; } | ||
12887 | fi | ||
12888 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
12889 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | ||
12890 | Usually this means the macro was only invoked conditionally." >&5 | ||
12891 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | ||
12892 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12893 | { (exit 1); exit 1; }; } | ||
12894 | fi | ||
12895 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
12896 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | ||
12897 | Usually this means the macro was only invoked conditionally." >&5 | ||
12898 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | ||
12899 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12900 | { (exit 1); exit 1; }; } | ||
12901 | fi | ||
12902 | if test -z "${USE_SONAME_TRUE}" && test -z "${USE_SONAME_FALSE}"; then | ||
12903 | { { echo "$as_me:$LINENO: error: conditional \"USE_SONAME\" was never defined. | ||
12904 | Usually this means the macro was only invoked conditionally." >&5 | ||
12905 | echo "$as_me: error: conditional \"USE_SONAME\" was never defined. | ||
12906 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12907 | { (exit 1); exit 1; }; } | ||
12908 | fi | ||
12909 | if test -z "${ENABLE_DEMOS_TRUE}" && test -z "${ENABLE_DEMOS_FALSE}"; then | ||
12910 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEMOS\" was never defined. | ||
12911 | Usually this means the macro was only invoked conditionally." >&5 | ||
12912 | echo "$as_me: error: conditional \"ENABLE_DEMOS\" was never defined. | ||
12913 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12914 | { (exit 1); exit 1; }; } | ||
12915 | fi | ||
12916 | if test -z "${OPCODE_TRUE}" && test -z "${OPCODE_FALSE}"; then | ||
12917 | { { echo "$as_me:$LINENO: error: conditional \"OPCODE\" was never defined. | ||
12918 | Usually this means the macro was only invoked conditionally." >&5 | ||
12919 | echo "$as_me: error: conditional \"OPCODE\" was never defined. | ||
12920 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12921 | { (exit 1); exit 1; }; } | ||
12922 | fi | ||
12923 | if test -z "${GIMPACT_TRUE}" && test -z "${GIMPACT_FALSE}"; then | ||
12924 | { { echo "$as_me:$LINENO: error: conditional \"GIMPACT\" was never defined. | ||
12925 | Usually this means the macro was only invoked conditionally." >&5 | ||
12926 | echo "$as_me: error: conditional \"GIMPACT\" was never defined. | ||
12927 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12928 | { (exit 1); exit 1; }; } | ||
12929 | fi | ||
12930 | if test -z "${TRIMESH_TRUE}" && test -z "${TRIMESH_FALSE}"; then | ||
12931 | { { echo "$as_me:$LINENO: error: conditional \"TRIMESH\" was never defined. | ||
12932 | Usually this means the macro was only invoked conditionally." >&5 | ||
12933 | echo "$as_me: error: conditional \"TRIMESH\" was never defined. | ||
12934 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12935 | { (exit 1); exit 1; }; } | ||
12936 | fi | ||
12937 | if test -z "${X86_64_SYSTEM_TRUE}" && test -z "${X86_64_SYSTEM_FALSE}"; then | ||
12938 | { { echo "$as_me:$LINENO: error: conditional \"X86_64_SYSTEM\" was never defined. | ||
12939 | Usually this means the macro was only invoked conditionally." >&5 | ||
12940 | echo "$as_me: error: conditional \"X86_64_SYSTEM\" was never defined. | ||
12941 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12942 | { (exit 1); exit 1; }; } | ||
12943 | fi | ||
12944 | if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then | ||
12945 | { { echo "$as_me:$LINENO: error: conditional \"WIN32\" was never defined. | ||
12946 | Usually this means the macro was only invoked conditionally." >&5 | ||
12947 | echo "$as_me: error: conditional \"WIN32\" was never defined. | ||
12948 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12949 | { (exit 1); exit 1; }; } | ||
12950 | fi | ||
12951 | if test -z "${X11_TRUE}" && test -z "${X11_FALSE}"; then | ||
12952 | { { echo "$as_me:$LINENO: error: conditional \"X11\" was never defined. | ||
12953 | Usually this means the macro was only invoked conditionally." >&5 | ||
12954 | echo "$as_me: error: conditional \"X11\" was never defined. | ||
12955 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12956 | { (exit 1); exit 1; }; } | ||
12957 | fi | ||
12958 | if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then | ||
12959 | { { echo "$as_me:$LINENO: error: conditional \"OSX\" was never defined. | ||
12960 | Usually this means the macro was only invoked conditionally." >&5 | ||
12961 | echo "$as_me: error: conditional \"OSX\" was never defined. | ||
12962 | Usually this means the macro was only invoked conditionally." >&2;} | ||
12963 | { (exit 1); exit 1; }; } | ||
12964 | fi | ||
12965 | |||
12966 | : ${CONFIG_STATUS=./config.status} | ||
12967 | ac_clean_files_save=$ac_clean_files | ||
12968 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
12969 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
12970 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
12971 | cat >$CONFIG_STATUS <<_ACEOF | ||
12972 | #! $SHELL | ||
12973 | # Generated by $as_me. | ||
12974 | # Run this file to recreate the current configuration. | ||
12975 | # Compiler output produced by configure, useful for debugging | ||
12976 | # configure, is in config.log if it exists. | ||
12977 | |||
12978 | debug=false | ||
12979 | ac_cs_recheck=false | ||
12980 | ac_cs_silent=false | ||
12981 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
12982 | _ACEOF | ||
12983 | |||
12984 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
12985 | ## --------------------- ## | ||
12986 | ## M4sh Initialization. ## | ||
12987 | ## --------------------- ## | ||
12988 | |||
12989 | # Be more Bourne compatible | ||
12990 | DUALCASE=1; export DUALCASE # for MKS sh | ||
12991 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
12992 | emulate sh | ||
12993 | NULLCMD=: | ||
12994 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
12995 | # is contrary to our usage. Disable this feature. | ||
12996 | alias -g '${1+"$@"}'='"$@"' | ||
12997 | setopt NO_GLOB_SUBST | ||
12998 | else | ||
12999 | case `(set -o) 2>/dev/null` in | ||
13000 | *posix*) set -o posix ;; | ||
13001 | esac | ||
13002 | |||
13003 | fi | ||
13004 | |||
13005 | |||
13006 | |||
13007 | |||
13008 | # PATH needs CR | ||
13009 | # Avoid depending upon Character Ranges. | ||
13010 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
13011 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
13012 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
13013 | as_cr_digits='0123456789' | ||
13014 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
13015 | |||
13016 | # The user is always right. | ||
13017 | if test "${PATH_SEPARATOR+set}" != set; then | ||
13018 | echo "#! /bin/sh" >conf$$.sh | ||
13019 | echo "exit 0" >>conf$$.sh | ||
13020 | chmod +x conf$$.sh | ||
13021 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
13022 | PATH_SEPARATOR=';' | ||
13023 | else | ||
13024 | PATH_SEPARATOR=: | ||
13025 | fi | ||
13026 | rm -f conf$$.sh | ||
13027 | fi | ||
13028 | |||
13029 | # Support unset when possible. | ||
13030 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
13031 | as_unset=unset | ||
13032 | else | ||
13033 | as_unset=false | ||
13034 | fi | ||
13035 | |||
13036 | |||
13037 | # IFS | ||
13038 | # We need space, tab and new line, in precisely that order. Quoting is | ||
13039 | # there to prevent editors from complaining about space-tab. | ||
13040 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
13041 | # splitting by setting IFS to empty value.) | ||
13042 | as_nl=' | ||
13043 | ' | ||
13044 | IFS=" "" $as_nl" | ||
13045 | |||
13046 | # Find who we are. Look in the path if we contain no directory separator. | ||
13047 | case $0 in | ||
13048 | *[\\/]* ) as_myself=$0 ;; | ||
13049 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
13050 | for as_dir in $PATH | ||
13051 | do | ||
13052 | IFS=$as_save_IFS | ||
13053 | test -z "$as_dir" && as_dir=. | ||
13054 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
13055 | done | ||
13056 | IFS=$as_save_IFS | ||
13057 | |||
13058 | ;; | ||
13059 | esac | ||
13060 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
13061 | # in which case we are not to be found in the path. | ||
13062 | if test "x$as_myself" = x; then | ||
13063 | as_myself=$0 | ||
13064 | fi | ||
13065 | if test ! -f "$as_myself"; then | ||
13066 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
13067 | { (exit 1); exit 1; } | ||
13068 | fi | ||
13069 | |||
13070 | # Work around bugs in pre-3.0 UWIN ksh. | ||
13071 | for as_var in ENV MAIL MAILPATH | ||
13072 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
13073 | done | ||
13074 | PS1='$ ' | ||
13075 | PS2='> ' | ||
13076 | PS4='+ ' | ||
13077 | |||
13078 | # NLS nuisances. | ||
13079 | for as_var in \ | ||
13080 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
13081 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
13082 | LC_TELEPHONE LC_TIME | ||
13083 | do | ||
13084 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
13085 | eval $as_var=C; export $as_var | ||
13086 | else | ||
13087 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
13088 | fi | ||
13089 | done | ||
13090 | |||
13091 | # Required to use basename. | ||
13092 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
13093 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
13094 | as_expr=expr | ||
13095 | else | ||
13096 | as_expr=false | ||
13097 | fi | ||
13098 | |||
13099 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
13100 | as_basename=basename | ||
13101 | else | ||
13102 | as_basename=false | ||
13103 | fi | ||
13104 | |||
13105 | |||
13106 | # Name of the executable. | ||
13107 | as_me=`$as_basename -- "$0" || | ||
13108 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
13109 | X"$0" : 'X\(//\)$' \| \ | ||
13110 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
13111 | echo X/"$0" | | ||
13112 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
13113 | s//\1/ | ||
13114 | q | ||
13115 | } | ||
13116 | /^X\/\(\/\/\)$/{ | ||
13117 | s//\1/ | ||
13118 | q | ||
13119 | } | ||
13120 | /^X\/\(\/\).*/{ | ||
13121 | s//\1/ | ||
13122 | q | ||
13123 | } | ||
13124 | s/.*/./; q'` | ||
13125 | |||
13126 | # CDPATH. | ||
13127 | $as_unset CDPATH | ||
13128 | |||
13129 | |||
13130 | |||
13131 | as_lineno_1=$LINENO | ||
13132 | as_lineno_2=$LINENO | ||
13133 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
13134 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
13135 | |||
13136 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
13137 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
13138 | # line-number line after each line using $LINENO; the second 'sed' | ||
13139 | # does the real work. The second script uses 'N' to pair each | ||
13140 | # line-number line with the line containing $LINENO, and appends | ||
13141 | # trailing '-' during substitution so that $LINENO is not a special | ||
13142 | # case at line end. | ||
13143 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
13144 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
13145 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
13146 | sed -n ' | ||
13147 | p | ||
13148 | /[$]LINENO/= | ||
13149 | ' <$as_myself | | ||
13150 | sed ' | ||
13151 | s/[$]LINENO.*/&-/ | ||
13152 | t lineno | ||
13153 | b | ||
13154 | :lineno | ||
13155 | N | ||
13156 | :loop | ||
13157 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
13158 | t loop | ||
13159 | s/-\n.*// | ||
13160 | ' >$as_me.lineno && | ||
13161 | chmod +x "$as_me.lineno" || | ||
13162 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
13163 | { (exit 1); exit 1; }; } | ||
13164 | |||
13165 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
13166 | # (the dirname of $[0] is not the place where we might find the | ||
13167 | # original and so on. Autoconf is especially sensitive to this). | ||
13168 | . "./$as_me.lineno" | ||
13169 | # Exit status is that of the last command. | ||
13170 | exit | ||
13171 | } | ||
13172 | |||
13173 | |||
13174 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
13175 | as_dirname=dirname | ||
13176 | else | ||
13177 | as_dirname=false | ||
13178 | fi | ||
13179 | |||
13180 | ECHO_C= ECHO_N= ECHO_T= | ||
13181 | case `echo -n x` in | ||
13182 | -n*) | ||
13183 | case `echo 'x\c'` in | ||
13184 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
13185 | *) ECHO_C='\c';; | ||
13186 | esac;; | ||
13187 | *) | ||
13188 | ECHO_N='-n';; | ||
13189 | esac | ||
13190 | |||
13191 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
13192 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
13193 | as_expr=expr | ||
13194 | else | ||
13195 | as_expr=false | ||
13196 | fi | ||
13197 | |||
13198 | rm -f conf$$ conf$$.exe conf$$.file | ||
13199 | if test -d conf$$.dir; then | ||
13200 | rm -f conf$$.dir/conf$$.file | ||
13201 | else | ||
13202 | rm -f conf$$.dir | ||
13203 | mkdir conf$$.dir | ||
13204 | fi | ||
13205 | echo >conf$$.file | ||
13206 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
13207 | as_ln_s='ln -s' | ||
13208 | # ... but there are two gotchas: | ||
13209 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
13210 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
13211 | # In both cases, we have to default to `cp -p'. | ||
13212 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
13213 | as_ln_s='cp -p' | ||
13214 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
13215 | as_ln_s=ln | ||
13216 | else | ||
13217 | as_ln_s='cp -p' | ||
13218 | fi | ||
13219 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
13220 | rmdir conf$$.dir 2>/dev/null | ||
13221 | |||
13222 | if mkdir -p . 2>/dev/null; then | ||
13223 | as_mkdir_p=: | ||
13224 | else | ||
13225 | test -d ./-p && rmdir ./-p | ||
13226 | as_mkdir_p=false | ||
13227 | fi | ||
13228 | |||
13229 | if test -x / >/dev/null 2>&1; then | ||
13230 | as_test_x='test -x' | ||
13231 | else | ||
13232 | if ls -dL / >/dev/null 2>&1; then | ||
13233 | as_ls_L_option=L | ||
13234 | else | ||
13235 | as_ls_L_option= | ||
13236 | fi | ||
13237 | as_test_x=' | ||
13238 | eval sh -c '\'' | ||
13239 | if test -d "$1"; then | ||
13240 | test -d "$1/."; | ||
13241 | else | ||
13242 | case $1 in | ||
13243 | -*)set "./$1";; | ||
13244 | esac; | ||
13245 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
13246 | ???[sx]*):;;*)false;;esac;fi | ||
13247 | '\'' sh | ||
13248 | ' | ||
13249 | fi | ||
13250 | as_executable_p=$as_test_x | ||
13251 | |||
13252 | # Sed expression to map a string onto a valid CPP name. | ||
13253 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
13254 | |||
13255 | # Sed expression to map a string onto a valid variable name. | ||
13256 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
13257 | |||
13258 | |||
13259 | exec 6>&1 | ||
13260 | |||
13261 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
13262 | # report actual input values of CONFIG_FILES etc. instead of their | ||
13263 | # values after options handling. | ||
13264 | ac_log=" | ||
13265 | This file was extended by ODE $as_me 0.9.0, which was | ||
13266 | generated by GNU Autoconf 2.61. Invocation command line was | ||
13267 | |||
13268 | CONFIG_FILES = $CONFIG_FILES | ||
13269 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
13270 | CONFIG_LINKS = $CONFIG_LINKS | ||
13271 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
13272 | $ $0 $@ | ||
13273 | |||
13274 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
13275 | " | ||
13276 | |||
13277 | _ACEOF | ||
13278 | |||
13279 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13280 | # Files that config.status was made for. | ||
13281 | config_files="$ac_config_files" | ||
13282 | config_headers="$ac_config_headers" | ||
13283 | config_commands="$ac_config_commands" | ||
13284 | |||
13285 | _ACEOF | ||
13286 | |||
13287 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
13288 | ac_cs_usage="\ | ||
13289 | \`$as_me' instantiates files from templates according to the | ||
13290 | current configuration. | ||
13291 | |||
13292 | Usage: $0 [OPTIONS] [FILE]... | ||
13293 | |||
13294 | -h, --help print this help, then exit | ||
13295 | -V, --version print version number and configuration settings, then exit | ||
13296 | -q, --quiet do not print progress messages | ||
13297 | -d, --debug don't remove temporary files | ||
13298 | --recheck update $as_me by reconfiguring in the same conditions | ||
13299 | --file=FILE[:TEMPLATE] | ||
13300 | instantiate the configuration file FILE | ||
13301 | --header=FILE[:TEMPLATE] | ||
13302 | instantiate the configuration header FILE | ||
13303 | |||
13304 | Configuration files: | ||
13305 | $config_files | ||
13306 | |||
13307 | Configuration headers: | ||
13308 | $config_headers | ||
13309 | |||
13310 | Configuration commands: | ||
13311 | $config_commands | ||
13312 | |||
13313 | Report bugs to <bug-autoconf@gnu.org>." | ||
13314 | |||
13315 | _ACEOF | ||
13316 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13317 | ac_cs_version="\\ | ||
13318 | ODE config.status 0.9.0 | ||
13319 | configured by $0, generated by GNU Autoconf 2.61, | ||
13320 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
13321 | |||
13322 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
13323 | This config.status script is free software; the Free Software Foundation | ||
13324 | gives unlimited permission to copy, distribute and modify it." | ||
13325 | |||
13326 | ac_pwd='$ac_pwd' | ||
13327 | srcdir='$srcdir' | ||
13328 | INSTALL='$INSTALL' | ||
13329 | MKDIR_P='$MKDIR_P' | ||
13330 | _ACEOF | ||
13331 | |||
13332 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
13333 | # If no file are specified by the user, then we need to provide default | ||
13334 | # value. By we need to know if files were specified by the user. | ||
13335 | ac_need_defaults=: | ||
13336 | while test $# != 0 | ||
13337 | do | ||
13338 | case $1 in | ||
13339 | --*=*) | ||
13340 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
13341 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
13342 | ac_shift=: | ||
13343 | ;; | ||
13344 | *) | ||
13345 | ac_option=$1 | ||
13346 | ac_optarg=$2 | ||
13347 | ac_shift=shift | ||
13348 | ;; | ||
13349 | esac | ||
13350 | |||
13351 | case $ac_option in | ||
13352 | # Handling of the options. | ||
13353 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
13354 | ac_cs_recheck=: ;; | ||
13355 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
13356 | echo "$ac_cs_version"; exit ;; | ||
13357 | --debug | --debu | --deb | --de | --d | -d ) | ||
13358 | debug=: ;; | ||
13359 | --file | --fil | --fi | --f ) | ||
13360 | $ac_shift | ||
13361 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
13362 | ac_need_defaults=false;; | ||
13363 | --header | --heade | --head | --hea ) | ||
13364 | $ac_shift | ||
13365 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
13366 | ac_need_defaults=false;; | ||
13367 | --he | --h) | ||
13368 | # Conflict between --help and --header | ||
13369 | { echo "$as_me: error: ambiguous option: $1 | ||
13370 | Try \`$0 --help' for more information." >&2 | ||
13371 | { (exit 1); exit 1; }; };; | ||
13372 | --help | --hel | -h ) | ||
13373 | echo "$ac_cs_usage"; exit ;; | ||
13374 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
13375 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
13376 | ac_cs_silent=: ;; | ||
13377 | |||
13378 | # This is an error. | ||
13379 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
13380 | Try \`$0 --help' for more information." >&2 | ||
13381 | { (exit 1); exit 1; }; } ;; | ||
13382 | |||
13383 | *) ac_config_targets="$ac_config_targets $1" | ||
13384 | ac_need_defaults=false ;; | ||
13385 | |||
13386 | esac | ||
13387 | shift | ||
13388 | done | ||
13389 | |||
13390 | ac_configure_extra_args= | ||
13391 | |||
13392 | if $ac_cs_silent; then | ||
13393 | exec 6>/dev/null | ||
13394 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
13395 | fi | ||
13396 | |||
13397 | _ACEOF | ||
13398 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13399 | if \$ac_cs_recheck; then | ||
13400 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
13401 | CONFIG_SHELL=$SHELL | ||
13402 | export CONFIG_SHELL | ||
13403 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
13404 | fi | ||
13405 | |||
13406 | _ACEOF | ||
13407 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
13408 | exec 5>>config.log | ||
13409 | { | ||
13410 | echo | ||
13411 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
13412 | ## Running $as_me. ## | ||
13413 | _ASBOX | ||
13414 | echo "$ac_log" | ||
13415 | } >&5 | ||
13416 | |||
13417 | _ACEOF | ||
13418 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13419 | # | ||
13420 | # INIT-COMMANDS | ||
13421 | # | ||
13422 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
13423 | |||
13424 | _ACEOF | ||
13425 | |||
13426 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
13427 | |||
13428 | # Handling of arguments. | ||
13429 | for ac_config_target in $ac_config_targets | ||
13430 | do | ||
13431 | case $ac_config_target in | ||
13432 | "include/ode/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ode/config.h" ;; | ||
13433 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
13434 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
13435 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | ||
13436 | "include/ode/Makefile") CONFIG_FILES="$CONFIG_FILES include/ode/Makefile" ;; | ||
13437 | "ode/Makefile") CONFIG_FILES="$CONFIG_FILES ode/Makefile" ;; | ||
13438 | "ode/src/Makefile") CONFIG_FILES="$CONFIG_FILES ode/src/Makefile" ;; | ||
13439 | "drawstuff/Makefile") CONFIG_FILES="$CONFIG_FILES drawstuff/Makefile" ;; | ||
13440 | "drawstuff/src/Makefile") CONFIG_FILES="$CONFIG_FILES drawstuff/src/Makefile" ;; | ||
13441 | "drawstuff/dstest/Makefile") CONFIG_FILES="$CONFIG_FILES drawstuff/dstest/Makefile" ;; | ||
13442 | "ode/demo/Makefile") CONFIG_FILES="$CONFIG_FILES ode/demo/Makefile" ;; | ||
13443 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | ||
13444 | "tests/CppTestHarness/Makefile") CONFIG_FILES="$CONFIG_FILES tests/CppTestHarness/Makefile" ;; | ||
13445 | "ode-config") CONFIG_FILES="$CONFIG_FILES ode-config" ;; | ||
13446 | |||
13447 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
13448 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
13449 | { (exit 1); exit 1; }; };; | ||
13450 | esac | ||
13451 | done | ||
13452 | |||
13453 | |||
13454 | # If the user did not use the arguments to specify the items to instantiate, | ||
13455 | # then the envvar interface is used. Set only those that are not. | ||
13456 | # We use the long form for the default assignment because of an extremely | ||
13457 | # bizarre bug on SunOS 4.1.3. | ||
13458 | if $ac_need_defaults; then | ||
13459 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
13460 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
13461 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
13462 | fi | ||
13463 | |||
13464 | # Have a temporary directory for convenience. Make it in the build tree | ||
13465 | # simply because there is no reason against having it here, and in addition, | ||
13466 | # creating and moving files from /tmp can sometimes cause problems. | ||
13467 | # Hook for its removal unless debugging. | ||
13468 | # Note that there is a small window in which the directory will not be cleaned: | ||
13469 | # after its creation but before its name has been assigned to `$tmp'. | ||
13470 | $debug || | ||
13471 | { | ||
13472 | tmp= | ||
13473 | trap 'exit_status=$? | ||
13474 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
13475 | ' 0 | ||
13476 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
13477 | } | ||
13478 | # Create a (secure) tmp directory for tmp files. | ||
13479 | |||
13480 | { | ||
13481 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
13482 | test -n "$tmp" && test -d "$tmp" | ||
13483 | } || | ||
13484 | { | ||
13485 | tmp=./conf$$-$RANDOM | ||
13486 | (umask 077 && mkdir "$tmp") | ||
13487 | } || | ||
13488 | { | ||
13489 | echo "$me: cannot create a temporary directory in ." >&2 | ||
13490 | { (exit 1); exit 1; } | ||
13491 | } | ||
13492 | |||
13493 | # | ||
13494 | # Set up the sed scripts for CONFIG_FILES section. | ||
13495 | # | ||
13496 | |||
13497 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
13498 | # This happens for instance when ./config.status config.h | ||
13499 | if test -n "$CONFIG_FILES"; then | ||
13500 | |||
13501 | _ACEOF | ||
13502 | |||
13503 | |||
13504 | |||
13505 | ac_delim='%!_!# ' | ||
13506 | for ac_last_try in false false false false false :; do | ||
13507 | cat >conf$$subs.sed <<_ACEOF | ||
13508 | SHELL!$SHELL$ac_delim | ||
13509 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
13510 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
13511 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
13512 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
13513 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
13514 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
13515 | exec_prefix!$exec_prefix$ac_delim | ||
13516 | prefix!$prefix$ac_delim | ||
13517 | program_transform_name!$program_transform_name$ac_delim | ||
13518 | bindir!$bindir$ac_delim | ||
13519 | sbindir!$sbindir$ac_delim | ||
13520 | libexecdir!$libexecdir$ac_delim | ||
13521 | datarootdir!$datarootdir$ac_delim | ||
13522 | datadir!$datadir$ac_delim | ||
13523 | sysconfdir!$sysconfdir$ac_delim | ||
13524 | sharedstatedir!$sharedstatedir$ac_delim | ||
13525 | localstatedir!$localstatedir$ac_delim | ||
13526 | includedir!$includedir$ac_delim | ||
13527 | oldincludedir!$oldincludedir$ac_delim | ||
13528 | docdir!$docdir$ac_delim | ||
13529 | infodir!$infodir$ac_delim | ||
13530 | htmldir!$htmldir$ac_delim | ||
13531 | dvidir!$dvidir$ac_delim | ||
13532 | pdfdir!$pdfdir$ac_delim | ||
13533 | psdir!$psdir$ac_delim | ||
13534 | libdir!$libdir$ac_delim | ||
13535 | localedir!$localedir$ac_delim | ||
13536 | mandir!$mandir$ac_delim | ||
13537 | DEFS!$DEFS$ac_delim | ||
13538 | ECHO_C!$ECHO_C$ac_delim | ||
13539 | ECHO_N!$ECHO_N$ac_delim | ||
13540 | ECHO_T!$ECHO_T$ac_delim | ||
13541 | LIBS!$LIBS$ac_delim | ||
13542 | build_alias!$build_alias$ac_delim | ||
13543 | host_alias!$host_alias$ac_delim | ||
13544 | target_alias!$target_alias$ac_delim | ||
13545 | build!$build$ac_delim | ||
13546 | build_cpu!$build_cpu$ac_delim | ||
13547 | build_vendor!$build_vendor$ac_delim | ||
13548 | build_os!$build_os$ac_delim | ||
13549 | host!$host$ac_delim | ||
13550 | host_cpu!$host_cpu$ac_delim | ||
13551 | host_vendor!$host_vendor$ac_delim | ||
13552 | host_os!$host_os$ac_delim | ||
13553 | target!$target$ac_delim | ||
13554 | target_cpu!$target_cpu$ac_delim | ||
13555 | target_vendor!$target_vendor$ac_delim | ||
13556 | target_os!$target_os$ac_delim | ||
13557 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
13558 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
13559 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
13560 | am__isrc!$am__isrc$ac_delim | ||
13561 | CYGPATH_W!$CYGPATH_W$ac_delim | ||
13562 | PACKAGE!$PACKAGE$ac_delim | ||
13563 | VERSION!$VERSION$ac_delim | ||
13564 | ACLOCAL!$ACLOCAL$ac_delim | ||
13565 | AUTOCONF!$AUTOCONF$ac_delim | ||
13566 | AUTOMAKE!$AUTOMAKE$ac_delim | ||
13567 | AUTOHEADER!$AUTOHEADER$ac_delim | ||
13568 | MAKEINFO!$MAKEINFO$ac_delim | ||
13569 | install_sh!$install_sh$ac_delim | ||
13570 | STRIP!$STRIP$ac_delim | ||
13571 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | ||
13572 | mkdir_p!$mkdir_p$ac_delim | ||
13573 | AWK!$AWK$ac_delim | ||
13574 | SET_MAKE!$SET_MAKE$ac_delim | ||
13575 | am__leading_dot!$am__leading_dot$ac_delim | ||
13576 | AMTAR!$AMTAR$ac_delim | ||
13577 | am__tar!$am__tar$ac_delim | ||
13578 | am__untar!$am__untar$ac_delim | ||
13579 | CC!$CC$ac_delim | ||
13580 | CFLAGS!$CFLAGS$ac_delim | ||
13581 | LDFLAGS!$LDFLAGS$ac_delim | ||
13582 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
13583 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
13584 | EXEEXT!$EXEEXT$ac_delim | ||
13585 | OBJEXT!$OBJEXT$ac_delim | ||
13586 | DEPDIR!$DEPDIR$ac_delim | ||
13587 | am__include!$am__include$ac_delim | ||
13588 | am__quote!$am__quote$ac_delim | ||
13589 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | ||
13590 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | ||
13591 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | ||
13592 | CCDEPMODE!$CCDEPMODE$ac_delim | ||
13593 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | ||
13594 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | ||
13595 | CPP!$CPP$ac_delim | ||
13596 | GREP!$GREP$ac_delim | ||
13597 | EGREP!$EGREP$ac_delim | ||
13598 | XMKMF!$XMKMF$ac_delim | ||
13599 | X_CFLAGS!$X_CFLAGS$ac_delim | ||
13600 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim | ||
13601 | X_LIBS!$X_LIBS$ac_delim | ||
13602 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim | ||
13603 | ODE_CURRENT!$ODE_CURRENT$ac_delim | ||
13604 | ODE_REVISION!$ODE_REVISION$ac_delim | ||
13605 | _ACEOF | ||
13606 | |||
13607 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
13608 | break | ||
13609 | elif $ac_last_try; then | ||
13610 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
13611 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
13612 | { (exit 1); exit 1; }; } | ||
13613 | else | ||
13614 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
13615 | fi | ||
13616 | done | ||
13617 | |||
13618 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
13619 | if test -n "$ac_eof"; then | ||
13620 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
13621 | ac_eof=`expr $ac_eof + 1` | ||
13622 | fi | ||
13623 | |||
13624 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13625 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
13626 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
13627 | _ACEOF | ||
13628 | sed ' | ||
13629 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
13630 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
13631 | :n | ||
13632 | t n | ||
13633 | s/'"$ac_delim"'$/,g/; t | ||
13634 | s/$/\\/; p | ||
13635 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
13636 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
13637 | rm -f conf$$subs.sed | ||
13638 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13639 | CEOF$ac_eof | ||
13640 | _ACEOF | ||
13641 | |||
13642 | |||
13643 | ac_delim='%!_!# ' | ||
13644 | for ac_last_try in false false false false false :; do | ||
13645 | cat >conf$$subs.sed <<_ACEOF | ||
13646 | ODE_AGE!$ODE_AGE$ac_delim | ||
13647 | ODE_RELEASE!$ODE_RELEASE$ac_delim | ||
13648 | ODE_SONAME!$ODE_SONAME$ac_delim | ||
13649 | CXX!$CXX$ac_delim | ||
13650 | CXXFLAGS!$CXXFLAGS$ac_delim | ||
13651 | ac_ct_CXX!$ac_ct_CXX$ac_delim | ||
13652 | CXXDEPMODE!$CXXDEPMODE$ac_delim | ||
13653 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | ||
13654 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | ||
13655 | WINDRES!$WINDRES$ac_delim | ||
13656 | ac_ct_WINDRES!$ac_ct_WINDRES$ac_delim | ||
13657 | RANLIB!$RANLIB$ac_delim | ||
13658 | USE_SONAME_TRUE!$USE_SONAME_TRUE$ac_delim | ||
13659 | USE_SONAME_FALSE!$USE_SONAME_FALSE$ac_delim | ||
13660 | ENABLE_DEMOS_TRUE!$ENABLE_DEMOS_TRUE$ac_delim | ||
13661 | ENABLE_DEMOS_FALSE!$ENABLE_DEMOS_FALSE$ac_delim | ||
13662 | ARCHFLAGS!$ARCHFLAGS$ac_delim | ||
13663 | OPCODE_TRUE!$OPCODE_TRUE$ac_delim | ||
13664 | OPCODE_FALSE!$OPCODE_FALSE$ac_delim | ||
13665 | GIMPACT_TRUE!$GIMPACT_TRUE$ac_delim | ||
13666 | GIMPACT_FALSE!$GIMPACT_FALSE$ac_delim | ||
13667 | TRIMESH_TRUE!$TRIMESH_TRUE$ac_delim | ||
13668 | TRIMESH_FALSE!$TRIMESH_FALSE$ac_delim | ||
13669 | X86_64_SYSTEM_TRUE!$X86_64_SYSTEM_TRUE$ac_delim | ||
13670 | X86_64_SYSTEM_FALSE!$X86_64_SYSTEM_FALSE$ac_delim | ||
13671 | WIN32_TRUE!$WIN32_TRUE$ac_delim | ||
13672 | WIN32_FALSE!$WIN32_FALSE$ac_delim | ||
13673 | X11_TRUE!$X11_TRUE$ac_delim | ||
13674 | X11_FALSE!$X11_FALSE$ac_delim | ||
13675 | OSX_TRUE!$OSX_TRUE$ac_delim | ||
13676 | OSX_FALSE!$OSX_FALSE$ac_delim | ||
13677 | DRAWSTUFF!$DRAWSTUFF$ac_delim | ||
13678 | so_ext!$so_ext$ac_delim | ||
13679 | SHARED_LDFLAGS!$SHARED_LDFLAGS$ac_delim | ||
13680 | GL_LIBS!$GL_LIBS$ac_delim | ||
13681 | TOPDIR!$TOPDIR$ac_delim | ||
13682 | ALLOCA!$ALLOCA$ac_delim | ||
13683 | LIBOBJS!$LIBOBJS$ac_delim | ||
13684 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
13685 | _ACEOF | ||
13686 | |||
13687 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then | ||
13688 | break | ||
13689 | elif $ac_last_try; then | ||
13690 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
13691 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
13692 | { (exit 1); exit 1; }; } | ||
13693 | else | ||
13694 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
13695 | fi | ||
13696 | done | ||
13697 | |||
13698 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
13699 | if test -n "$ac_eof"; then | ||
13700 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
13701 | ac_eof=`expr $ac_eof + 1` | ||
13702 | fi | ||
13703 | |||
13704 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13705 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
13706 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
13707 | _ACEOF | ||
13708 | sed ' | ||
13709 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
13710 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
13711 | :n | ||
13712 | t n | ||
13713 | s/'"$ac_delim"'$/,g/; t | ||
13714 | s/$/\\/; p | ||
13715 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
13716 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
13717 | rm -f conf$$subs.sed | ||
13718 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13719 | :end | ||
13720 | s/|#_!!_#|//g | ||
13721 | CEOF$ac_eof | ||
13722 | _ACEOF | ||
13723 | |||
13724 | |||
13725 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
13726 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
13727 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
13728 | # (actually we leave an empty line to preserve line numbers). | ||
13729 | if test "x$srcdir" = x.; then | ||
13730 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
13731 | s/:*\$(srcdir):*/:/ | ||
13732 | s/:*\${srcdir}:*/:/ | ||
13733 | s/:*@srcdir@:*/:/ | ||
13734 | s/^\([^=]*=[ ]*\):*/\1/ | ||
13735 | s/:*$// | ||
13736 | s/^[^=]*=[ ]*$// | ||
13737 | }' | ||
13738 | fi | ||
13739 | |||
13740 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
13741 | fi # test -n "$CONFIG_FILES" | ||
13742 | |||
13743 | |||
13744 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | ||
13745 | do | ||
13746 | case $ac_tag in | ||
13747 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
13748 | esac | ||
13749 | case $ac_mode$ac_tag in | ||
13750 | :[FHL]*:*);; | ||
13751 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
13752 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
13753 | { (exit 1); exit 1; }; };; | ||
13754 | :[FH]-) ac_tag=-:-;; | ||
13755 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
13756 | esac | ||
13757 | ac_save_IFS=$IFS | ||
13758 | IFS=: | ||
13759 | set x $ac_tag | ||
13760 | IFS=$ac_save_IFS | ||
13761 | shift | ||
13762 | ac_file=$1 | ||
13763 | shift | ||
13764 | |||
13765 | case $ac_mode in | ||
13766 | :L) ac_source=$1;; | ||
13767 | :[FH]) | ||
13768 | ac_file_inputs= | ||
13769 | for ac_f | ||
13770 | do | ||
13771 | case $ac_f in | ||
13772 | -) ac_f="$tmp/stdin";; | ||
13773 | *) # Look for the file first in the build tree, then in the source tree | ||
13774 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
13775 | # because $ac_f cannot contain `:'. | ||
13776 | test -f "$ac_f" || | ||
13777 | case $ac_f in | ||
13778 | [\\/$]*) false;; | ||
13779 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
13780 | esac || | ||
13781 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
13782 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
13783 | { (exit 1); exit 1; }; };; | ||
13784 | esac | ||
13785 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
13786 | done | ||
13787 | |||
13788 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
13789 | # use $as_me), people would be surprised to read: | ||
13790 | # /* config.h. Generated by config.status. */ | ||
13791 | configure_input="Generated from "`IFS=: | ||
13792 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
13793 | if test x"$ac_file" != x-; then | ||
13794 | configure_input="$ac_file. $configure_input" | ||
13795 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
13796 | echo "$as_me: creating $ac_file" >&6;} | ||
13797 | fi | ||
13798 | |||
13799 | case $ac_tag in | ||
13800 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
13801 | esac | ||
13802 | ;; | ||
13803 | esac | ||
13804 | |||
13805 | ac_dir=`$as_dirname -- "$ac_file" || | ||
13806 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
13807 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
13808 | X"$ac_file" : 'X\(//\)$' \| \ | ||
13809 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
13810 | echo X"$ac_file" | | ||
13811 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
13812 | s//\1/ | ||
13813 | q | ||
13814 | } | ||
13815 | /^X\(\/\/\)[^/].*/{ | ||
13816 | s//\1/ | ||
13817 | q | ||
13818 | } | ||
13819 | /^X\(\/\/\)$/{ | ||
13820 | s//\1/ | ||
13821 | q | ||
13822 | } | ||
13823 | /^X\(\/\).*/{ | ||
13824 | s//\1/ | ||
13825 | q | ||
13826 | } | ||
13827 | s/.*/./; q'` | ||
13828 | { as_dir="$ac_dir" | ||
13829 | case $as_dir in #( | ||
13830 | -*) as_dir=./$as_dir;; | ||
13831 | esac | ||
13832 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
13833 | as_dirs= | ||
13834 | while :; do | ||
13835 | case $as_dir in #( | ||
13836 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
13837 | *) as_qdir=$as_dir;; | ||
13838 | esac | ||
13839 | as_dirs="'$as_qdir' $as_dirs" | ||
13840 | as_dir=`$as_dirname -- "$as_dir" || | ||
13841 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
13842 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
13843 | X"$as_dir" : 'X\(//\)$' \| \ | ||
13844 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
13845 | echo X"$as_dir" | | ||
13846 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
13847 | s//\1/ | ||
13848 | q | ||
13849 | } | ||
13850 | /^X\(\/\/\)[^/].*/{ | ||
13851 | s//\1/ | ||
13852 | q | ||
13853 | } | ||
13854 | /^X\(\/\/\)$/{ | ||
13855 | s//\1/ | ||
13856 | q | ||
13857 | } | ||
13858 | /^X\(\/\).*/{ | ||
13859 | s//\1/ | ||
13860 | q | ||
13861 | } | ||
13862 | s/.*/./; q'` | ||
13863 | test -d "$as_dir" && break | ||
13864 | done | ||
13865 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
13866 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
13867 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
13868 | { (exit 1); exit 1; }; }; } | ||
13869 | ac_builddir=. | ||
13870 | |||
13871 | case "$ac_dir" in | ||
13872 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
13873 | *) | ||
13874 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
13875 | # A ".." for each directory in $ac_dir_suffix. | ||
13876 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
13877 | case $ac_top_builddir_sub in | ||
13878 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
13879 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
13880 | esac ;; | ||
13881 | esac | ||
13882 | ac_abs_top_builddir=$ac_pwd | ||
13883 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
13884 | # for backward compatibility: | ||
13885 | ac_top_builddir=$ac_top_build_prefix | ||
13886 | |||
13887 | case $srcdir in | ||
13888 | .) # We are building in place. | ||
13889 | ac_srcdir=. | ||
13890 | ac_top_srcdir=$ac_top_builddir_sub | ||
13891 | ac_abs_top_srcdir=$ac_pwd ;; | ||
13892 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
13893 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
13894 | ac_top_srcdir=$srcdir | ||
13895 | ac_abs_top_srcdir=$srcdir ;; | ||
13896 | *) # Relative name. | ||
13897 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
13898 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
13899 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
13900 | esac | ||
13901 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
13902 | |||
13903 | |||
13904 | case $ac_mode in | ||
13905 | :F) | ||
13906 | # | ||
13907 | # CONFIG_FILE | ||
13908 | # | ||
13909 | |||
13910 | case $INSTALL in | ||
13911 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
13912 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
13913 | esac | ||
13914 | ac_MKDIR_P=$MKDIR_P | ||
13915 | case $MKDIR_P in | ||
13916 | [\\/$]* | ?:[\\/]* ) ;; | ||
13917 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
13918 | esac | ||
13919 | _ACEOF | ||
13920 | |||
13921 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
13922 | # If the template does not know about datarootdir, expand it. | ||
13923 | # FIXME: This hack should be removed a few years after 2.60. | ||
13924 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
13925 | |||
13926 | case `sed -n '/datarootdir/ { | ||
13927 | p | ||
13928 | q | ||
13929 | } | ||
13930 | /@datadir@/p | ||
13931 | /@docdir@/p | ||
13932 | /@infodir@/p | ||
13933 | /@localedir@/p | ||
13934 | /@mandir@/p | ||
13935 | ' $ac_file_inputs` in | ||
13936 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
13937 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
13938 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
13939 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
13940 | _ACEOF | ||
13941 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13942 | ac_datarootdir_hack=' | ||
13943 | s&@datadir@&$datadir&g | ||
13944 | s&@docdir@&$docdir&g | ||
13945 | s&@infodir@&$infodir&g | ||
13946 | s&@localedir@&$localedir&g | ||
13947 | s&@mandir@&$mandir&g | ||
13948 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
13949 | esac | ||
13950 | _ACEOF | ||
13951 | |||
13952 | # Neutralize VPATH when `$srcdir' = `.'. | ||
13953 | # Shell code in configure.ac might set extrasub. | ||
13954 | # FIXME: do we really want to maintain this feature? | ||
13955 | cat >>$CONFIG_STATUS <<_ACEOF | ||
13956 | sed "$ac_vpsub | ||
13957 | $extrasub | ||
13958 | _ACEOF | ||
13959 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
13960 | :t | ||
13961 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
13962 | s&@configure_input@&$configure_input&;t t | ||
13963 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
13964 | s&@srcdir@&$ac_srcdir&;t t | ||
13965 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
13966 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
13967 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
13968 | s&@builddir@&$ac_builddir&;t t | ||
13969 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
13970 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
13971 | s&@INSTALL@&$ac_INSTALL&;t t | ||
13972 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
13973 | $ac_datarootdir_hack | ||
13974 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
13975 | |||
13976 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
13977 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
13978 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
13979 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
13980 | which seems to be undefined. Please make sure it is defined." >&5 | ||
13981 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
13982 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
13983 | |||
13984 | rm -f "$tmp/stdin" | ||
13985 | case $ac_file in | ||
13986 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
13987 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
13988 | esac | ||
13989 | ;; | ||
13990 | :H) | ||
13991 | # | ||
13992 | # CONFIG_HEADER | ||
13993 | # | ||
13994 | _ACEOF | ||
13995 | |||
13996 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
13997 | # substitutes the proper values into config.h.in to produce config.h. | ||
13998 | rm -f conftest.defines conftest.tail | ||
13999 | # First, append a space to every undef/define line, to ease matching. | ||
14000 | echo 's/$/ /' >conftest.defines | ||
14001 | # Then, protect against being on the right side of a sed subst, or in | ||
14002 | # an unquoted here document, in config.status. If some macros were | ||
14003 | # called several times there might be several #defines for the same | ||
14004 | # symbol, which is useless. But do not sort them, since the last | ||
14005 | # AC_DEFINE must be honored. | ||
14006 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
14007 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
14008 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
14009 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
14010 | # just an empty string. | ||
14011 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
14012 | ac_dB='\\)[ (].*,\\1define\\2' | ||
14013 | ac_dC=' ' | ||
14014 | ac_dD=' ,' | ||
14015 | |||
14016 | uniq confdefs.h | | ||
14017 | sed -n ' | ||
14018 | t rset | ||
14019 | :rset | ||
14020 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
14021 | t ok | ||
14022 | d | ||
14023 | :ok | ||
14024 | s/[\\&,]/\\&/g | ||
14025 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
14026 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
14027 | ' >>conftest.defines | ||
14028 | |||
14029 | # Remove the space that was appended to ease matching. | ||
14030 | # Then replace #undef with comments. This is necessary, for | ||
14031 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
14032 | # on some systems where configure will not decide to define it. | ||
14033 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
14034 | echo 's/ $// | ||
14035 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
14036 | |||
14037 | # Break up conftest.defines: | ||
14038 | ac_max_sed_lines=50 | ||
14039 | |||
14040 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
14041 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
14042 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
14043 | # et cetera. | ||
14044 | ac_in='$ac_file_inputs' | ||
14045 | ac_out='"$tmp/out1"' | ||
14046 | ac_nxt='"$tmp/out2"' | ||
14047 | |||
14048 | while : | ||
14049 | do | ||
14050 | # Write a here document: | ||
14051 | cat >>$CONFIG_STATUS <<_ACEOF | ||
14052 | # First, check the format of the line: | ||
14053 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
14054 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
14055 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
14056 | b | ||
14057 | :def | ||
14058 | _ACEOF | ||
14059 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
14060 | echo 'CEOF | ||
14061 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
14062 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
14063 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
14064 | grep . conftest.tail >/dev/null || break | ||
14065 | rm -f conftest.defines | ||
14066 | mv conftest.tail conftest.defines | ||
14067 | done | ||
14068 | rm -f conftest.defines conftest.tail | ||
14069 | |||
14070 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
14071 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
14072 | if test x"$ac_file" != x-; then | ||
14073 | echo "/* $configure_input */" >"$tmp/config.h" | ||
14074 | cat "$ac_result" >>"$tmp/config.h" | ||
14075 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
14076 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
14077 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
14078 | else | ||
14079 | rm -f $ac_file | ||
14080 | mv "$tmp/config.h" $ac_file | ||
14081 | fi | ||
14082 | else | ||
14083 | echo "/* $configure_input */" | ||
14084 | cat "$ac_result" | ||
14085 | fi | ||
14086 | rm -f "$tmp/out12" | ||
14087 | # Compute $ac_file's index in $config_headers. | ||
14088 | _am_stamp_count=1 | ||
14089 | for _am_header in $config_headers :; do | ||
14090 | case $_am_header in | ||
14091 | $ac_file | $ac_file:* ) | ||
14092 | break ;; | ||
14093 | * ) | ||
14094 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
14095 | esac | ||
14096 | done | ||
14097 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || | ||
14098 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
14099 | X$ac_file : 'X\(//\)[^/]' \| \ | ||
14100 | X$ac_file : 'X\(//\)$' \| \ | ||
14101 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || | ||
14102 | echo X$ac_file | | ||
14103 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
14104 | s//\1/ | ||
14105 | q | ||
14106 | } | ||
14107 | /^X\(\/\/\)[^/].*/{ | ||
14108 | s//\1/ | ||
14109 | q | ||
14110 | } | ||
14111 | /^X\(\/\/\)$/{ | ||
14112 | s//\1/ | ||
14113 | q | ||
14114 | } | ||
14115 | /^X\(\/\).*/{ | ||
14116 | s//\1/ | ||
14117 | q | ||
14118 | } | ||
14119 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
14120 | ;; | ||
14121 | |||
14122 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | ||
14123 | echo "$as_me: executing $ac_file commands" >&6;} | ||
14124 | ;; | ||
14125 | esac | ||
14126 | |||
14127 | |||
14128 | case $ac_file$ac_mode in | ||
14129 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | ||
14130 | # Strip MF so we end up with the name of the file. | ||
14131 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
14132 | # Check whether this is an Automake generated Makefile or not. | ||
14133 | # We used to match only the files named `Makefile.in', but | ||
14134 | # some people rename them; so instead we look at the file content. | ||
14135 | # Grep'ing the first line is not enough: some people post-process | ||
14136 | # each Makefile.in and add a new line on top of each file to say so. | ||
14137 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
14138 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
14139 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then | ||
14140 | dirpart=`$as_dirname -- "$mf" || | ||
14141 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
14142 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
14143 | X"$mf" : 'X\(//\)$' \| \ | ||
14144 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
14145 | echo X"$mf" | | ||
14146 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
14147 | s//\1/ | ||
14148 | q | ||
14149 | } | ||
14150 | /^X\(\/\/\)[^/].*/{ | ||
14151 | s//\1/ | ||
14152 | q | ||
14153 | } | ||
14154 | /^X\(\/\/\)$/{ | ||
14155 | s//\1/ | ||
14156 | q | ||
14157 | } | ||
14158 | /^X\(\/\).*/{ | ||
14159 | s//\1/ | ||
14160 | q | ||
14161 | } | ||
14162 | s/.*/./; q'` | ||
14163 | else | ||
14164 | continue | ||
14165 | fi | ||
14166 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
14167 | # from the Makefile without running `make'. | ||
14168 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
14169 | test -z "$DEPDIR" && continue | ||
14170 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
14171 | test -z "am__include" && continue | ||
14172 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
14173 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
14174 | U=`sed -n 's/^U = //p' < "$mf"` | ||
14175 | # Find all dependency output files, they are included files with | ||
14176 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
14177 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
14178 | # expansion. | ||
14179 | for file in `sed -n " | ||
14180 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
14181 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
14182 | # Make sure the directory exists. | ||
14183 | test -f "$dirpart/$file" && continue | ||
14184 | fdir=`$as_dirname -- "$file" || | ||
14185 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
14186 | X"$file" : 'X\(//\)[^/]' \| \ | ||
14187 | X"$file" : 'X\(//\)$' \| \ | ||
14188 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
14189 | echo X"$file" | | ||
14190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
14191 | s//\1/ | ||
14192 | q | ||
14193 | } | ||
14194 | /^X\(\/\/\)[^/].*/{ | ||
14195 | s//\1/ | ||
14196 | q | ||
14197 | } | ||
14198 | /^X\(\/\/\)$/{ | ||
14199 | s//\1/ | ||
14200 | q | ||
14201 | } | ||
14202 | /^X\(\/\).*/{ | ||
14203 | s//\1/ | ||
14204 | q | ||
14205 | } | ||
14206 | s/.*/./; q'` | ||
14207 | { as_dir=$dirpart/$fdir | ||
14208 | case $as_dir in #( | ||
14209 | -*) as_dir=./$as_dir;; | ||
14210 | esac | ||
14211 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
14212 | as_dirs= | ||
14213 | while :; do | ||
14214 | case $as_dir in #( | ||
14215 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
14216 | *) as_qdir=$as_dir;; | ||
14217 | esac | ||
14218 | as_dirs="'$as_qdir' $as_dirs" | ||
14219 | as_dir=`$as_dirname -- "$as_dir" || | ||
14220 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
14221 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
14222 | X"$as_dir" : 'X\(//\)$' \| \ | ||
14223 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
14224 | echo X"$as_dir" | | ||
14225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
14226 | s//\1/ | ||
14227 | q | ||
14228 | } | ||
14229 | /^X\(\/\/\)[^/].*/{ | ||
14230 | s//\1/ | ||
14231 | q | ||
14232 | } | ||
14233 | /^X\(\/\/\)$/{ | ||
14234 | s//\1/ | ||
14235 | q | ||
14236 | } | ||
14237 | /^X\(\/\).*/{ | ||
14238 | s//\1/ | ||
14239 | q | ||
14240 | } | ||
14241 | s/.*/./; q'` | ||
14242 | test -d "$as_dir" && break | ||
14243 | done | ||
14244 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
14245 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
14246 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
14247 | { (exit 1); exit 1; }; }; } | ||
14248 | # echo "creating $dirpart/$file" | ||
14249 | echo '# dummy' > "$dirpart/$file" | ||
14250 | done | ||
14251 | done | ||
14252 | ;; | ||
14253 | |||
14254 | esac | ||
14255 | done # for ac_tag | ||
14256 | |||
14257 | |||
14258 | { (exit 0); exit 0; } | ||
14259 | _ACEOF | ||
14260 | chmod +x $CONFIG_STATUS | ||
14261 | ac_clean_files=$ac_clean_files_save | ||
14262 | |||
14263 | |||
14264 | # configure is writing to config.log, and then calls config.status. | ||
14265 | # config.status does its own redirection, appending to config.log. | ||
14266 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
14267 | # by configure, so config.status won't be able to write to it; its | ||
14268 | # output is simply discarded. So we exec the FD to /dev/null, | ||
14269 | # effectively closing config.log, so it can be properly (re)opened and | ||
14270 | # appended to by config.status. When coming back to configure, we | ||
14271 | # need to make the FD available again. | ||
14272 | if test "$no_create" != yes; then | ||
14273 | ac_cs_success=: | ||
14274 | ac_config_status_args= | ||
14275 | test "$silent" = yes && | ||
14276 | ac_config_status_args="$ac_config_status_args --quiet" | ||
14277 | exec 5>/dev/null | ||
14278 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
14279 | exec 5>>config.log | ||
14280 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
14281 | # would make configure fail if this is the last instruction. | ||
14282 | $ac_cs_success || { (exit 1); exit 1; } | ||
14283 | fi | ||
14284 | |||
14285 | |||
14286 | chmod +x ode-config | ||
14287 | |||
14288 | echo "Configuration:" | ||
14289 | echo " Target system type: $target" | ||
14290 | echo " Build system type: $build" | ||
14291 | echo " Host system type: $host" | ||
14292 | echo " Use double precision: $precision" | ||
14293 | echo " Use OPCODE: $opcode" | ||
14294 | echo " Use GIMPACT: $gimpact" | ||
14295 | echo " Use gyroscopic term: $gyroscopic" | ||
14296 | echo " Is this a Pentium: $pentium" | ||
14297 | echo " Is the CPU x86-64: $cpu64" | ||
14298 | echo " Is this a release build: $release" | ||
14299 | echo " Adding debug symbols: $debug" | ||
14300 | echo " Using SONAME: $use_soname" | ||
14301 | echo " Headers will be installed in $prefix/include/ode" | ||
14302 | echo " Libraries will be installed in $prefix/lib" | ||
14303 | |||
14304 | if test $gimpact = yes -a $precision = yes | ||
14305 | then | ||
14306 | echo "WARNING! Double precision not yet supported for GIMPACT" | ||
14307 | fi | ||
14308 | |||