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