fixed some files for the BSD make
@@ -1,3996 +0,0 @@ | ||
1 | -#! /bin/sh | |
2 | -# Guess values for system-dependent variables and create Makefiles. | |
3 | -# Generated by GNU Autoconf 2.61 for FULL-PACKAGE-NAME VERSION. | |
4 | -# | |
5 | -# Report bugs to <BUG-REPORT-ADDRESS>. | |
6 | -# | |
7 | -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 | -# 2002, 2003, 2004, 2005, 2006 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='FULL-PACKAGE-NAME' | |
576 | -PACKAGE_TARNAME='full-package-name' | |
577 | -PACKAGE_VERSION='VERSION' | |
578 | -PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' | |
579 | -PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' | |
580 | - | |
581 | -ac_subst_vars='SHELL | |
582 | -PATH_SEPARATOR | |
583 | -PACKAGE_NAME | |
584 | -PACKAGE_TARNAME | |
585 | -PACKAGE_VERSION | |
586 | -PACKAGE_STRING | |
587 | -PACKAGE_BUGREPORT | |
588 | -exec_prefix | |
589 | -prefix | |
590 | -program_transform_name | |
591 | -bindir | |
592 | -sbindir | |
593 | -libexecdir | |
594 | -datarootdir | |
595 | -datadir | |
596 | -sysconfdir | |
597 | -sharedstatedir | |
598 | -localstatedir | |
599 | -includedir | |
600 | -oldincludedir | |
601 | -docdir | |
602 | -infodir | |
603 | -htmldir | |
604 | -dvidir | |
605 | -pdfdir | |
606 | -psdir | |
607 | -libdir | |
608 | -localedir | |
609 | -mandir | |
610 | -DEFS | |
611 | -ECHO_C | |
612 | -ECHO_N | |
613 | -ECHO_T | |
614 | -LIBS | |
615 | -build_alias | |
616 | -host_alias | |
617 | -target_alias | |
618 | -CC | |
619 | -CFLAGS | |
620 | -LDFLAGS | |
621 | -CPPFLAGS | |
622 | -ac_ct_CC | |
623 | -EXEEXT | |
624 | -OBJEXT | |
625 | -CXX | |
626 | -CXXFLAGS | |
627 | -ac_ct_CXX | |
628 | -AR | |
629 | -LIBOBJS | |
630 | -LTLIBOBJS' | |
631 | -ac_subst_files='' | |
632 | - ac_precious_vars='build_alias | |
633 | -host_alias | |
634 | -target_alias | |
635 | -CC | |
636 | -CFLAGS | |
637 | -LDFLAGS | |
638 | -LIBS | |
639 | -CPPFLAGS | |
640 | -CXX | |
641 | -CXXFLAGS | |
642 | -CCC' | |
643 | - | |
644 | - | |
645 | -# Initialize some variables set by options. | |
646 | -ac_init_help= | |
647 | -ac_init_version=false | |
648 | -# The variables have the same names as the options, with | |
649 | -# dashes changed to underlines. | |
650 | -cache_file=/dev/null | |
651 | -exec_prefix=NONE | |
652 | -no_create= | |
653 | -no_recursion= | |
654 | -prefix=NONE | |
655 | -program_prefix=NONE | |
656 | -program_suffix=NONE | |
657 | -program_transform_name=s,x,x, | |
658 | -silent= | |
659 | -site= | |
660 | -srcdir= | |
661 | -verbose= | |
662 | -x_includes=NONE | |
663 | -x_libraries=NONE | |
664 | - | |
665 | -# Installation directory options. | |
666 | -# These are left unexpanded so users can "make install exec_prefix=/foo" | |
667 | -# and all the variables that are supposed to be based on exec_prefix | |
668 | -# by default will actually change. | |
669 | -# Use braces instead of parens because sh, perl, etc. also accept them. | |
670 | -# (The list follows the same order as the GNU Coding Standards.) | |
671 | -bindir='${exec_prefix}/bin' | |
672 | -sbindir='${exec_prefix}/sbin' | |
673 | -libexecdir='${exec_prefix}/libexec' | |
674 | -datarootdir='${prefix}/share' | |
675 | -datadir='${datarootdir}' | |
676 | -sysconfdir='${prefix}/etc' | |
677 | -sharedstatedir='${prefix}/com' | |
678 | -localstatedir='${prefix}/var' | |
679 | -includedir='${prefix}/include' | |
680 | -oldincludedir='/usr/include' | |
681 | -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
682 | -infodir='${datarootdir}/info' | |
683 | -htmldir='${docdir}' | |
684 | -dvidir='${docdir}' | |
685 | -pdfdir='${docdir}' | |
686 | -psdir='${docdir}' | |
687 | -libdir='${exec_prefix}/lib' | |
688 | -localedir='${datarootdir}/locale' | |
689 | -mandir='${datarootdir}/man' | |
690 | - | |
691 | -ac_prev= | |
692 | -ac_dashdash= | |
693 | -for ac_option | |
694 | -do | |
695 | - # If the previous option needs an argument, assign it. | |
696 | - if test -n "$ac_prev"; then | |
697 | - eval $ac_prev=\$ac_option | |
698 | - ac_prev= | |
699 | - continue | |
700 | - fi | |
701 | - | |
702 | - case $ac_option in | |
703 | - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
704 | - *) ac_optarg=yes ;; | |
705 | - esac | |
706 | - | |
707 | - # Accept the important Cygnus configure options, so we can diagnose typos. | |
708 | - | |
709 | - case $ac_dashdash$ac_option in | |
710 | - --) | |
711 | - ac_dashdash=yes ;; | |
712 | - | |
713 | - -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
714 | - ac_prev=bindir ;; | |
715 | - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
716 | - bindir=$ac_optarg ;; | |
717 | - | |
718 | - -build | --build | --buil | --bui | --bu) | |
719 | - ac_prev=build_alias ;; | |
720 | - -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
721 | - build_alias=$ac_optarg ;; | |
722 | - | |
723 | - -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
724 | - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
725 | - ac_prev=cache_file ;; | |
726 | - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
727 | - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
728 | - cache_file=$ac_optarg ;; | |
729 | - | |
730 | - --config-cache | -C) | |
731 | - cache_file=config.cache ;; | |
732 | - | |
733 | - -datadir | --datadir | --datadi | --datad) | |
734 | - ac_prev=datadir ;; | |
735 | - -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
736 | - datadir=$ac_optarg ;; | |
737 | - | |
738 | - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
739 | - | --dataroo | --dataro | --datar) | |
740 | - ac_prev=datarootdir ;; | |
741 | - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
742 | - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
743 | - datarootdir=$ac_optarg ;; | |
744 | - | |
745 | - -disable-* | --disable-*) | |
746 | - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
747 | - # Reject names that are not valid shell variable names. | |
748 | - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
749 | - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
750 | - { (exit 1); exit 1; }; } | |
751 | - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
752 | - eval enable_$ac_feature=no ;; | |
753 | - | |
754 | - -docdir | --docdir | --docdi | --doc | --do) | |
755 | - ac_prev=docdir ;; | |
756 | - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
757 | - docdir=$ac_optarg ;; | |
758 | - | |
759 | - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
760 | - ac_prev=dvidir ;; | |
761 | - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
762 | - dvidir=$ac_optarg ;; | |
763 | - | |
764 | - -enable-* | --enable-*) | |
765 | - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
766 | - # Reject names that are not valid shell variable names. | |
767 | - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
768 | - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
769 | - { (exit 1); exit 1; }; } | |
770 | - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
771 | - eval enable_$ac_feature=\$ac_optarg ;; | |
772 | - | |
773 | - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
774 | - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
775 | - | --exec | --exe | --ex) | |
776 | - ac_prev=exec_prefix ;; | |
777 | - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
778 | - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
779 | - | --exec=* | --exe=* | --ex=*) | |
780 | - exec_prefix=$ac_optarg ;; | |
781 | - | |
782 | - -gas | --gas | --ga | --g) | |
783 | - # Obsolete; use --with-gas. | |
784 | - with_gas=yes ;; | |
785 | - | |
786 | - -help | --help | --hel | --he | -h) | |
787 | - ac_init_help=long ;; | |
788 | - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
789 | - ac_init_help=recursive ;; | |
790 | - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
791 | - ac_init_help=short ;; | |
792 | - | |
793 | - -host | --host | --hos | --ho) | |
794 | - ac_prev=host_alias ;; | |
795 | - -host=* | --host=* | --hos=* | --ho=*) | |
796 | - host_alias=$ac_optarg ;; | |
797 | - | |
798 | - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
799 | - ac_prev=htmldir ;; | |
800 | - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
801 | - | --ht=*) | |
802 | - htmldir=$ac_optarg ;; | |
803 | - | |
804 | - -includedir | --includedir | --includedi | --included | --include \ | |
805 | - | --includ | --inclu | --incl | --inc) | |
806 | - ac_prev=includedir ;; | |
807 | - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
808 | - | --includ=* | --inclu=* | --incl=* | --inc=*) | |
809 | - includedir=$ac_optarg ;; | |
810 | - | |
811 | - -infodir | --infodir | --infodi | --infod | --info | --inf) | |
812 | - ac_prev=infodir ;; | |
813 | - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
814 | - infodir=$ac_optarg ;; | |
815 | - | |
816 | - -libdir | --libdir | --libdi | --libd) | |
817 | - ac_prev=libdir ;; | |
818 | - -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
819 | - libdir=$ac_optarg ;; | |
820 | - | |
821 | - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
822 | - | --libexe | --libex | --libe) | |
823 | - ac_prev=libexecdir ;; | |
824 | - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
825 | - | --libexe=* | --libex=* | --libe=*) | |
826 | - libexecdir=$ac_optarg ;; | |
827 | - | |
828 | - -localedir | --localedir | --localedi | --localed | --locale) | |
829 | - ac_prev=localedir ;; | |
830 | - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
831 | - localedir=$ac_optarg ;; | |
832 | - | |
833 | - -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
834 | - | --localstate | --localstat | --localsta | --localst | --locals) | |
835 | - ac_prev=localstatedir ;; | |
836 | - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
837 | - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
838 | - localstatedir=$ac_optarg ;; | |
839 | - | |
840 | - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
841 | - ac_prev=mandir ;; | |
842 | - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
843 | - mandir=$ac_optarg ;; | |
844 | - | |
845 | - -nfp | --nfp | --nf) | |
846 | - # Obsolete; use --without-fp. | |
847 | - with_fp=no ;; | |
848 | - | |
849 | - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
850 | - | --no-cr | --no-c | -n) | |
851 | - no_create=yes ;; | |
852 | - | |
853 | - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
854 | - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
855 | - no_recursion=yes ;; | |
856 | - | |
857 | - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
858 | - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
859 | - | --oldin | --oldi | --old | --ol | --o) | |
860 | - ac_prev=oldincludedir ;; | |
861 | - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
862 | - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
863 | - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
864 | - oldincludedir=$ac_optarg ;; | |
865 | - | |
866 | - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
867 | - ac_prev=prefix ;; | |
868 | - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
869 | - prefix=$ac_optarg ;; | |
870 | - | |
871 | - -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
872 | - | --program-pre | --program-pr | --program-p) | |
873 | - ac_prev=program_prefix ;; | |
874 | - -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
875 | - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
876 | - program_prefix=$ac_optarg ;; | |
877 | - | |
878 | - -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
879 | - | --program-suf | --program-su | --program-s) | |
880 | - ac_prev=program_suffix ;; | |
881 | - -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
882 | - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
883 | - program_suffix=$ac_optarg ;; | |
884 | - | |
885 | - -program-transform-name | --program-transform-name \ | |
886 | - | --program-transform-nam | --program-transform-na \ | |
887 | - | --program-transform-n | --program-transform- \ | |
888 | - | --program-transform | --program-transfor \ | |
889 | - | --program-transfo | --program-transf \ | |
890 | - | --program-trans | --program-tran \ | |
891 | - | --progr-tra | --program-tr | --program-t) | |
892 | - ac_prev=program_transform_name ;; | |
893 | - -program-transform-name=* | --program-transform-name=* \ | |
894 | - | --program-transform-nam=* | --program-transform-na=* \ | |
895 | - | --program-transform-n=* | --program-transform-=* \ | |
896 | - | --program-transform=* | --program-transfor=* \ | |
897 | - | --program-transfo=* | --program-transf=* \ | |
898 | - | --program-trans=* | --program-tran=* \ | |
899 | - | --progr-tra=* | --program-tr=* | --program-t=*) | |
900 | - program_transform_name=$ac_optarg ;; | |
901 | - | |
902 | - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
903 | - ac_prev=pdfdir ;; | |
904 | - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
905 | - pdfdir=$ac_optarg ;; | |
906 | - | |
907 | - -psdir | --psdir | --psdi | --psd | --ps) | |
908 | - ac_prev=psdir ;; | |
909 | - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
910 | - psdir=$ac_optarg ;; | |
911 | - | |
912 | - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
913 | - | -silent | --silent | --silen | --sile | --sil) | |
914 | - silent=yes ;; | |
915 | - | |
916 | - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
917 | - ac_prev=sbindir ;; | |
918 | - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
919 | - | --sbi=* | --sb=*) | |
920 | - sbindir=$ac_optarg ;; | |
921 | - | |
922 | - -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
923 | - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
924 | - | --sharedst | --shareds | --shared | --share | --shar \ | |
925 | - | --sha | --sh) | |
926 | - ac_prev=sharedstatedir ;; | |
927 | - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
928 | - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
929 | - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
930 | - | --sha=* | --sh=*) | |
931 | - sharedstatedir=$ac_optarg ;; | |
932 | - | |
933 | - -site | --site | --sit) | |
934 | - ac_prev=site ;; | |
935 | - -site=* | --site=* | --sit=*) | |
936 | - site=$ac_optarg ;; | |
937 | - | |
938 | - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
939 | - ac_prev=srcdir ;; | |
940 | - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
941 | - srcdir=$ac_optarg ;; | |
942 | - | |
943 | - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
944 | - | --syscon | --sysco | --sysc | --sys | --sy) | |
945 | - ac_prev=sysconfdir ;; | |
946 | - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
947 | - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
948 | - sysconfdir=$ac_optarg ;; | |
949 | - | |
950 | - -target | --target | --targe | --targ | --tar | --ta | --t) | |
951 | - ac_prev=target_alias ;; | |
952 | - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
953 | - target_alias=$ac_optarg ;; | |
954 | - | |
955 | - -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
956 | - verbose=yes ;; | |
957 | - | |
958 | - -version | --version | --versio | --versi | --vers | -V) | |
959 | - ac_init_version=: ;; | |
960 | - | |
961 | - -with-* | --with-*) | |
962 | - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
963 | - # Reject names that are not valid shell variable names. | |
964 | - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
965 | - { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
966 | - { (exit 1); exit 1; }; } | |
967 | - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
968 | - eval with_$ac_package=\$ac_optarg ;; | |
969 | - | |
970 | - -without-* | --without-*) | |
971 | - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
972 | - # Reject names that are not valid shell variable names. | |
973 | - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
974 | - { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
975 | - { (exit 1); exit 1; }; } | |
976 | - ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
977 | - eval with_$ac_package=no ;; | |
978 | - | |
979 | - --x) | |
980 | - # Obsolete; use --with-x. | |
981 | - with_x=yes ;; | |
982 | - | |
983 | - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
984 | - | --x-incl | --x-inc | --x-in | --x-i) | |
985 | - ac_prev=x_includes ;; | |
986 | - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
987 | - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
988 | - x_includes=$ac_optarg ;; | |
989 | - | |
990 | - -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
991 | - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
992 | - ac_prev=x_libraries ;; | |
993 | - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
994 | - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
995 | - x_libraries=$ac_optarg ;; | |
996 | - | |
997 | - -*) { echo "$as_me: error: unrecognized option: $ac_option | |
998 | -Try \`$0 --help' for more information." >&2 | |
999 | - { (exit 1); exit 1; }; } | |
1000 | - ;; | |
1001 | - | |
1002 | - *=*) | |
1003 | - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1004 | - # Reject names that are not valid shell variable names. | |
1005 | - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1006 | - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1007 | - { (exit 1); exit 1; }; } | |
1008 | - eval $ac_envvar=\$ac_optarg | |
1009 | - export $ac_envvar ;; | |
1010 | - | |
1011 | - *) | |
1012 | - # FIXME: should be removed in autoconf 3.0. | |
1013 | - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1014 | - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1015 | - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1016 | - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1017 | - ;; | |
1018 | - | |
1019 | - esac | |
1020 | -done | |
1021 | - | |
1022 | -if test -n "$ac_prev"; then | |
1023 | - ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1024 | - { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1025 | - { (exit 1); exit 1; }; } | |
1026 | -fi | |
1027 | - | |
1028 | -# Be sure to have absolute directory names. | |
1029 | -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1030 | - datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1031 | - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1032 | - libdir localedir mandir | |
1033 | -do | |
1034 | - eval ac_val=\$$ac_var | |
1035 | - case $ac_val in | |
1036 | - [\\/$]* | ?:[\\/]* ) continue;; | |
1037 | - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1038 | - esac | |
1039 | - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1040 | - { (exit 1); exit 1; }; } | |
1041 | -done | |
1042 | - | |
1043 | -# There might be people who depend on the old broken behavior: `$host' | |
1044 | -# used to hold the argument of --host etc. | |
1045 | -# FIXME: To remove some day. | |
1046 | -build=$build_alias | |
1047 | -host=$host_alias | |
1048 | -target=$target_alias | |
1049 | - | |
1050 | -# FIXME: To remove some day. | |
1051 | -if test "x$host_alias" != x; then | |
1052 | - if test "x$build_alias" = x; then | |
1053 | - cross_compiling=maybe | |
1054 | - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1055 | - If a cross compiler is detected then cross compile mode will be used." >&2 | |
1056 | - elif test "x$build_alias" != "x$host_alias"; then | |
1057 | - cross_compiling=yes | |
1058 | - fi | |
1059 | -fi | |
1060 | - | |
1061 | -ac_tool_prefix= | |
1062 | -test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1063 | - | |
1064 | -test "$silent" = yes && exec 6>/dev/null | |
1065 | - | |
1066 | - | |
1067 | -ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1068 | -ac_ls_di=`ls -di .` && | |
1069 | -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1070 | - { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1071 | - { (exit 1); exit 1; }; } | |
1072 | -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1073 | - { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1074 | - { (exit 1); exit 1; }; } | |
1075 | - | |
1076 | - | |
1077 | -# Find the source files, if location was not specified. | |
1078 | -if test -z "$srcdir"; then | |
1079 | - ac_srcdir_defaulted=yes | |
1080 | - # Try the directory containing this script, then the parent directory. | |
1081 | - ac_confdir=`$as_dirname -- "$0" || | |
1082 | -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1083 | - X"$0" : 'X\(//\)[^/]' \| \ | |
1084 | - X"$0" : 'X\(//\)$' \| \ | |
1085 | - X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1086 | -echo X"$0" | | |
1087 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1088 | - s//\1/ | |
1089 | - q | |
1090 | - } | |
1091 | - /^X\(\/\/\)[^/].*/{ | |
1092 | - s//\1/ | |
1093 | - q | |
1094 | - } | |
1095 | - /^X\(\/\/\)$/{ | |
1096 | - s//\1/ | |
1097 | - q | |
1098 | - } | |
1099 | - /^X\(\/\).*/{ | |
1100 | - s//\1/ | |
1101 | - q | |
1102 | - } | |
1103 | - s/.*/./; q'` | |
1104 | - srcdir=$ac_confdir | |
1105 | - if test ! -r "$srcdir/$ac_unique_file"; then | |
1106 | - srcdir=.. | |
1107 | - fi | |
1108 | -else | |
1109 | - ac_srcdir_defaulted=no | |
1110 | -fi | |
1111 | -if test ! -r "$srcdir/$ac_unique_file"; then | |
1112 | - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1113 | - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1114 | - { (exit 1); exit 1; }; } | |
1115 | -fi | |
1116 | -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1117 | -ac_abs_confdir=`( | |
1118 | - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1119 | - { (exit 1); exit 1; }; } | |
1120 | - pwd)` | |
1121 | -# When building in place, set srcdir=. | |
1122 | -if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1123 | - srcdir=. | |
1124 | -fi | |
1125 | -# Remove unnecessary trailing slashes from srcdir. | |
1126 | -# Double slashes in file names in object file debugging info | |
1127 | -# mess up M-x gdb in Emacs. | |
1128 | -case $srcdir in | |
1129 | -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1130 | -esac | |
1131 | -for ac_var in $ac_precious_vars; do | |
1132 | - eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1133 | - eval ac_env_${ac_var}_value=\$${ac_var} | |
1134 | - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1135 | - eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1136 | -done | |
1137 | - | |
1138 | -# | |
1139 | -# Report the --help message. | |
1140 | -# | |
1141 | -if test "$ac_init_help" = "long"; then | |
1142 | - # Omit some internal or obsolete options to make the list less imposing. | |
1143 | - # This message is too long to be a string in the A/UX 3.1 sh. | |
1144 | - cat <<_ACEOF | |
1145 | -\`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems. | |
1146 | - | |
1147 | -Usage: $0 [OPTION]... [VAR=VALUE]... | |
1148 | - | |
1149 | -To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1150 | -VAR=VALUE. See below for descriptions of some of the useful variables. | |
1151 | - | |
1152 | -Defaults for the options are specified in brackets. | |
1153 | - | |
1154 | -Configuration: | |
1155 | - -h, --help display this help and exit | |
1156 | - --help=short display options specific to this package | |
1157 | - --help=recursive display the short help of all the included packages | |
1158 | - -V, --version display version information and exit | |
1159 | - -q, --quiet, --silent do not print \`checking...' messages | |
1160 | - --cache-file=FILE cache test results in FILE [disabled] | |
1161 | - -C, --config-cache alias for \`--cache-file=config.cache' | |
1162 | - -n, --no-create do not create output files | |
1163 | - --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1164 | - | |
1165 | -Installation directories: | |
1166 | - --prefix=PREFIX install architecture-independent files in PREFIX | |
1167 | - [$ac_default_prefix] | |
1168 | - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1169 | - [PREFIX] | |
1170 | - | |
1171 | -By default, \`make install' will install all the files in | |
1172 | -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1173 | -an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1174 | -for instance \`--prefix=\$HOME'. | |
1175 | - | |
1176 | -For better control, use the options below. | |
1177 | - | |
1178 | -Fine tuning of the installation directories: | |
1179 | - --bindir=DIR user executables [EPREFIX/bin] | |
1180 | - --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1181 | - --libexecdir=DIR program executables [EPREFIX/libexec] | |
1182 | - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1183 | - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1184 | - --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1185 | - --libdir=DIR object code libraries [EPREFIX/lib] | |
1186 | - --includedir=DIR C header files [PREFIX/include] | |
1187 | - --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1188 | - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1189 | - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1190 | - --infodir=DIR info documentation [DATAROOTDIR/info] | |
1191 | - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1192 | - --mandir=DIR man documentation [DATAROOTDIR/man] | |
1193 | - --docdir=DIR documentation root [DATAROOTDIR/doc/full-package-name] | |
1194 | - --htmldir=DIR html documentation [DOCDIR] | |
1195 | - --dvidir=DIR dvi documentation [DOCDIR] | |
1196 | - --pdfdir=DIR pdf documentation [DOCDIR] | |
1197 | - --psdir=DIR ps documentation [DOCDIR] | |
1198 | -_ACEOF | |
1199 | - | |
1200 | - cat <<\_ACEOF | |
1201 | -_ACEOF | |
1202 | -fi | |
1203 | - | |
1204 | -if test -n "$ac_init_help"; then | |
1205 | - case $ac_init_help in | |
1206 | - short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";; | |
1207 | - esac | |
1208 | - cat <<\_ACEOF | |
1209 | - | |
1210 | -Some influential environment variables: | |
1211 | - CC C compiler command | |
1212 | - CFLAGS C compiler flags | |
1213 | - LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1214 | - nonstandard directory <lib dir> | |
1215 | - LIBS libraries to pass to the linker, e.g. -l<library> | |
1216 | - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1217 | - you have headers in a nonstandard directory <include dir> | |
1218 | - CXX C++ compiler command | |
1219 | - CXXFLAGS C++ compiler flags | |
1220 | - | |
1221 | -Use these variables to override the choices made by `configure' or to help | |
1222 | -it to find libraries and programs with nonstandard names/locations. | |
1223 | - | |
1224 | -Report bugs to <BUG-REPORT-ADDRESS>. | |
1225 | -_ACEOF | |
1226 | -ac_status=$? | |
1227 | -fi | |
1228 | - | |
1229 | -if test "$ac_init_help" = "recursive"; then | |
1230 | - # If there are subdirs, report their specific --help. | |
1231 | - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1232 | - test -d "$ac_dir" || continue | |
1233 | - ac_builddir=. | |
1234 | - | |
1235 | -case "$ac_dir" in | |
1236 | -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1237 | -*) | |
1238 | - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1239 | - # A ".." for each directory in $ac_dir_suffix. | |
1240 | - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1241 | - case $ac_top_builddir_sub in | |
1242 | - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1243 | - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1244 | - esac ;; | |
1245 | -esac | |
1246 | -ac_abs_top_builddir=$ac_pwd | |
1247 | -ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1248 | -# for backward compatibility: | |
1249 | -ac_top_builddir=$ac_top_build_prefix | |
1250 | - | |
1251 | -case $srcdir in | |
1252 | - .) # We are building in place. | |
1253 | - ac_srcdir=. | |
1254 | - ac_top_srcdir=$ac_top_builddir_sub | |
1255 | - ac_abs_top_srcdir=$ac_pwd ;; | |
1256 | - [\\/]* | ?:[\\/]* ) # Absolute name. | |
1257 | - ac_srcdir=$srcdir$ac_dir_suffix; | |
1258 | - ac_top_srcdir=$srcdir | |
1259 | - ac_abs_top_srcdir=$srcdir ;; | |
1260 | - *) # Relative name. | |
1261 | - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1262 | - ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1263 | - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1264 | -esac | |
1265 | -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1266 | - | |
1267 | - cd "$ac_dir" || { ac_status=$?; continue; } | |
1268 | - # Check for guested configure. | |
1269 | - if test -f "$ac_srcdir/configure.gnu"; then | |
1270 | - echo && | |
1271 | - $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1272 | - elif test -f "$ac_srcdir/configure"; then | |
1273 | - echo && | |
1274 | - $SHELL "$ac_srcdir/configure" --help=recursive | |
1275 | - else | |
1276 | - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1277 | - fi || ac_status=$? | |
1278 | - cd "$ac_pwd" || { ac_status=$?; break; } | |
1279 | - done | |
1280 | -fi | |
1281 | - | |
1282 | -test -n "$ac_init_help" && exit $ac_status | |
1283 | -if $ac_init_version; then | |
1284 | - cat <<\_ACEOF | |
1285 | -FULL-PACKAGE-NAME configure VERSION | |
1286 | -generated by GNU Autoconf 2.61 | |
1287 | - | |
1288 | -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1289 | -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1290 | -This configure script is free software; the Free Software Foundation | |
1291 | -gives unlimited permission to copy, distribute and modify it. | |
1292 | -_ACEOF | |
1293 | - exit | |
1294 | -fi | |
1295 | -cat >config.log <<_ACEOF | |
1296 | -This file contains any messages produced by compilers while | |
1297 | -running configure, to aid debugging if configure makes a mistake. | |
1298 | - | |
1299 | -It was created by FULL-PACKAGE-NAME $as_me VERSION, which was | |
1300 | -generated by GNU Autoconf 2.61. Invocation command line was | |
1301 | - | |
1302 | - $ $0 $@ | |
1303 | - | |
1304 | -_ACEOF | |
1305 | -exec 5>>config.log | |
1306 | -{ | |
1307 | -cat <<_ASUNAME | |
1308 | -## --------- ## | |
1309 | -## Platform. ## | |
1310 | -## --------- ## | |
1311 | - | |
1312 | -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1313 | -uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1314 | -uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1315 | -uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1316 | -uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1317 | - | |
1318 | -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1319 | -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1320 | - | |
1321 | -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1322 | -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1323 | -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1324 | -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1325 | -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1326 | -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1327 | -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1328 | - | |
1329 | -_ASUNAME | |
1330 | - | |
1331 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1332 | -for as_dir in $PATH | |
1333 | -do | |
1334 | - IFS=$as_save_IFS | |
1335 | - test -z "$as_dir" && as_dir=. | |
1336 | - echo "PATH: $as_dir" | |
1337 | -done | |
1338 | -IFS=$as_save_IFS | |
1339 | - | |
1340 | -} >&5 | |
1341 | - | |
1342 | -cat >&5 <<_ACEOF | |
1343 | - | |
1344 | - | |
1345 | -## ----------- ## | |
1346 | -## Core tests. ## | |
1347 | -## ----------- ## | |
1348 | - | |
1349 | -_ACEOF | |
1350 | - | |
1351 | - | |
1352 | -# Keep a trace of the command line. | |
1353 | -# Strip out --no-create and --no-recursion so they do not pile up. | |
1354 | -# Strip out --silent because we don't want to record it for future runs. | |
1355 | -# Also quote any args containing shell meta-characters. | |
1356 | -# Make two passes to allow for proper duplicate-argument suppression. | |
1357 | -ac_configure_args= | |
1358 | -ac_configure_args0= | |
1359 | -ac_configure_args1= | |
1360 | -ac_must_keep_next=false | |
1361 | -for ac_pass in 1 2 | |
1362 | -do | |
1363 | - for ac_arg | |
1364 | - do | |
1365 | - case $ac_arg in | |
1366 | - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1367 | - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1368 | - | -silent | --silent | --silen | --sile | --sil) | |
1369 | - continue ;; | |
1370 | - *\'*) | |
1371 | - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1372 | - esac | |
1373 | - case $ac_pass in | |
1374 | - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1375 | - 2) | |
1376 | - ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1377 | - if test $ac_must_keep_next = true; then | |
1378 | - ac_must_keep_next=false # Got value, back to normal. | |
1379 | - else | |
1380 | - case $ac_arg in | |
1381 | - *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1382 | - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1383 | - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1384 | - | -with-* | --with-* | -without-* | --without-* | --x) | |
1385 | - case "$ac_configure_args0 " in | |
1386 | - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1387 | - esac | |
1388 | - ;; | |
1389 | - -* ) ac_must_keep_next=true ;; | |
1390 | - esac | |
1391 | - fi | |
1392 | - ac_configure_args="$ac_configure_args '$ac_arg'" | |
1393 | - ;; | |
1394 | - esac | |
1395 | - done | |
1396 | -done | |
1397 | -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1398 | -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1399 | - | |
1400 | -# When interrupted or exit'd, cleanup temporary files, and complete | |
1401 | -# config.log. We remove comments because anyway the quotes in there | |
1402 | -# would cause problems or look ugly. | |
1403 | -# WARNING: Use '\'' to represent an apostrophe within the trap. | |
1404 | -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1405 | -trap 'exit_status=$? | |
1406 | - # Save into config.log some information that might help in debugging. | |
1407 | - { | |
1408 | - echo | |
1409 | - | |
1410 | - cat <<\_ASBOX | |
1411 | -## ---------------- ## | |
1412 | -## Cache variables. ## | |
1413 | -## ---------------- ## | |
1414 | -_ASBOX | |
1415 | - echo | |
1416 | - # The following way of writing the cache mishandles newlines in values, | |
1417 | -( | |
1418 | - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1419 | - eval ac_val=\$$ac_var | |
1420 | - case $ac_val in #( | |
1421 | - *${as_nl}*) | |
1422 | - case $ac_var in #( | |
1423 | - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1424 | -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1425 | - esac | |
1426 | - case $ac_var in #( | |
1427 | - _ | IFS | as_nl) ;; #( | |
1428 | - *) $as_unset $ac_var ;; | |
1429 | - esac ;; | |
1430 | - esac | |
1431 | - done | |
1432 | - (set) 2>&1 | | |
1433 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1434 | - *${as_nl}ac_space=\ *) | |
1435 | - sed -n \ | |
1436 | - "s/'\''/'\''\\\\'\'''\''/g; | |
1437 | - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1438 | - ;; #( | |
1439 | - *) | |
1440 | - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1441 | - ;; | |
1442 | - esac | | |
1443 | - sort | |
1444 | -) | |
1445 | - echo | |
1446 | - | |
1447 | - cat <<\_ASBOX | |
1448 | -## ----------------- ## | |
1449 | -## Output variables. ## | |
1450 | -## ----------------- ## | |
1451 | -_ASBOX | |
1452 | - echo | |
1453 | - for ac_var in $ac_subst_vars | |
1454 | - do | |
1455 | - eval ac_val=\$$ac_var | |
1456 | - case $ac_val in | |
1457 | - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1458 | - esac | |
1459 | - echo "$ac_var='\''$ac_val'\''" | |
1460 | - done | sort | |
1461 | - echo | |
1462 | - | |
1463 | - if test -n "$ac_subst_files"; then | |
1464 | - cat <<\_ASBOX | |
1465 | -## ------------------- ## | |
1466 | -## File substitutions. ## | |
1467 | -## ------------------- ## | |
1468 | -_ASBOX | |
1469 | - echo | |
1470 | - for ac_var in $ac_subst_files | |
1471 | - do | |
1472 | - eval ac_val=\$$ac_var | |
1473 | - case $ac_val in | |
1474 | - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1475 | - esac | |
1476 | - echo "$ac_var='\''$ac_val'\''" | |
1477 | - done | sort | |
1478 | - echo | |
1479 | - fi | |
1480 | - | |
1481 | - if test -s confdefs.h; then | |
1482 | - cat <<\_ASBOX | |
1483 | -## ----------- ## | |
1484 | -## confdefs.h. ## | |
1485 | -## ----------- ## | |
1486 | -_ASBOX | |
1487 | - echo | |
1488 | - cat confdefs.h | |
1489 | - echo | |
1490 | - fi | |
1491 | - test "$ac_signal" != 0 && | |
1492 | - echo "$as_me: caught signal $ac_signal" | |
1493 | - echo "$as_me: exit $exit_status" | |
1494 | - } >&5 | |
1495 | - rm -f core *.core core.conftest.* && | |
1496 | - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1497 | - exit $exit_status | |
1498 | -' 0 | |
1499 | -for ac_signal in 1 2 13 15; do | |
1500 | - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1501 | -done | |
1502 | -ac_signal=0 | |
1503 | - | |
1504 | -# confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1505 | -rm -f -r conftest* confdefs.h | |
1506 | - | |
1507 | -# Predefined preprocessor variables. | |
1508 | - | |
1509 | -cat >>confdefs.h <<_ACEOF | |
1510 | -#define PACKAGE_NAME "$PACKAGE_NAME" | |
1511 | -_ACEOF | |
1512 | - | |
1513 | - | |
1514 | -cat >>confdefs.h <<_ACEOF | |
1515 | -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1516 | -_ACEOF | |
1517 | - | |
1518 | - | |
1519 | -cat >>confdefs.h <<_ACEOF | |
1520 | -#define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1521 | -_ACEOF | |
1522 | - | |
1523 | - | |
1524 | -cat >>confdefs.h <<_ACEOF | |
1525 | -#define PACKAGE_STRING "$PACKAGE_STRING" | |
1526 | -_ACEOF | |
1527 | - | |
1528 | - | |
1529 | -cat >>confdefs.h <<_ACEOF | |
1530 | -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1531 | -_ACEOF | |
1532 | - | |
1533 | - | |
1534 | -# Let the site file select an alternate cache file if it wants to. | |
1535 | -# Prefer explicitly selected file to automatically selected ones. | |
1536 | -if test -n "$CONFIG_SITE"; then | |
1537 | - set x "$CONFIG_SITE" | |
1538 | -elif test "x$prefix" != xNONE; then | |
1539 | - set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1540 | -else | |
1541 | - set x "$ac_default_prefix/share/config.site" \ | |
1542 | - "$ac_default_prefix/etc/config.site" | |
1543 | -fi | |
1544 | -shift | |
1545 | -for ac_site_file | |
1546 | -do | |
1547 | - if test -r "$ac_site_file"; then | |
1548 | - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1549 | -echo "$as_me: loading site script $ac_site_file" >&6;} | |
1550 | - sed 's/^/| /' "$ac_site_file" >&5 | |
1551 | - . "$ac_site_file" | |
1552 | - fi | |
1553 | -done | |
1554 | - | |
1555 | -if test -r "$cache_file"; then | |
1556 | - # Some versions of bash will fail to source /dev/null (special | |
1557 | - # files actually), so we avoid doing that. | |
1558 | - if test -f "$cache_file"; then | |
1559 | - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1560 | -echo "$as_me: loading cache $cache_file" >&6;} | |
1561 | - case $cache_file in | |
1562 | - [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1563 | - *) . "./$cache_file";; | |
1564 | - esac | |
1565 | - fi | |
1566 | -else | |
1567 | - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1568 | -echo "$as_me: creating cache $cache_file" >&6;} | |
1569 | - >$cache_file | |
1570 | -fi | |
1571 | - | |
1572 | -# Check that the precious variables saved in the cache have kept the same | |
1573 | -# value. | |
1574 | -ac_cache_corrupted=false | |
1575 | -for ac_var in $ac_precious_vars; do | |
1576 | - eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1577 | - eval ac_new_set=\$ac_env_${ac_var}_set | |
1578 | - eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1579 | - eval ac_new_val=\$ac_env_${ac_var}_value | |
1580 | - case $ac_old_set,$ac_new_set in | |
1581 | - set,) | |
1582 | - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1583 | -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1584 | - ac_cache_corrupted=: ;; | |
1585 | - ,set) | |
1586 | - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1587 | -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1588 | - ac_cache_corrupted=: ;; | |
1589 | - ,);; | |
1590 | - *) | |
1591 | - if test "x$ac_old_val" != "x$ac_new_val"; then | |
1592 | - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1593 | -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1594 | - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1595 | -echo "$as_me: former value: $ac_old_val" >&2;} | |
1596 | - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1597 | -echo "$as_me: current value: $ac_new_val" >&2;} | |
1598 | - ac_cache_corrupted=: | |
1599 | - fi;; | |
1600 | - esac | |
1601 | - # Pass precious variables to config.status. | |
1602 | - if test "$ac_new_set" = set; then | |
1603 | - case $ac_new_val in | |
1604 | - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1605 | - *) ac_arg=$ac_var=$ac_new_val ;; | |
1606 | - esac | |
1607 | - case " $ac_configure_args " in | |
1608 | - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1609 | - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1610 | - esac | |
1611 | - fi | |
1612 | -done | |
1613 | -if $ac_cache_corrupted; then | |
1614 | - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1615 | -echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1616 | - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1617 | -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1618 | - { (exit 1); exit 1; }; } | |
1619 | -fi | |
1620 | - | |
1621 | - | |
1622 | - | |
1623 | - | |
1624 | - | |
1625 | - | |
1626 | - | |
1627 | - | |
1628 | - | |
1629 | - | |
1630 | - | |
1631 | - | |
1632 | - | |
1633 | - | |
1634 | - | |
1635 | - | |
1636 | - | |
1637 | - | |
1638 | - | |
1639 | - | |
1640 | - | |
1641 | - | |
1642 | - | |
1643 | - | |
1644 | - | |
1645 | -ac_ext=c | |
1646 | -ac_cpp='$CPP $CPPFLAGS' | |
1647 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1648 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1649 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1650 | - | |
1651 | - | |
1652 | - | |
1653 | -# Checks for programs. | |
1654 | -ac_ext=c | |
1655 | -ac_cpp='$CPP $CPPFLAGS' | |
1656 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1657 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1658 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1659 | -if test -n "$ac_tool_prefix"; then | |
1660 | - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1661 | -set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1662 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1663 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1664 | -if test "${ac_cv_prog_CC+set}" = set; then | |
1665 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1666 | -else | |
1667 | - if test -n "$CC"; then | |
1668 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
1669 | -else | |
1670 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1671 | -for as_dir in $PATH | |
1672 | -do | |
1673 | - IFS=$as_save_IFS | |
1674 | - test -z "$as_dir" && as_dir=. | |
1675 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1676 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1677 | - ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1678 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1679 | - break 2 | |
1680 | - fi | |
1681 | -done | |
1682 | -done | |
1683 | -IFS=$as_save_IFS | |
1684 | - | |
1685 | -fi | |
1686 | -fi | |
1687 | -CC=$ac_cv_prog_CC | |
1688 | -if test -n "$CC"; then | |
1689 | - { echo "$as_me:$LINENO: result: $CC" >&5 | |
1690 | -echo "${ECHO_T}$CC" >&6; } | |
1691 | -else | |
1692 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1693 | -echo "${ECHO_T}no" >&6; } | |
1694 | -fi | |
1695 | - | |
1696 | - | |
1697 | -fi | |
1698 | -if test -z "$ac_cv_prog_CC"; then | |
1699 | - ac_ct_CC=$CC | |
1700 | - # Extract the first word of "gcc", so it can be a program name with args. | |
1701 | -set dummy gcc; ac_word=$2 | |
1702 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1703 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1704 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1705 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1706 | -else | |
1707 | - if test -n "$ac_ct_CC"; then | |
1708 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1709 | -else | |
1710 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1711 | -for as_dir in $PATH | |
1712 | -do | |
1713 | - IFS=$as_save_IFS | |
1714 | - test -z "$as_dir" && as_dir=. | |
1715 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1716 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1717 | - ac_cv_prog_ac_ct_CC="gcc" | |
1718 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1719 | - break 2 | |
1720 | - fi | |
1721 | -done | |
1722 | -done | |
1723 | -IFS=$as_save_IFS | |
1724 | - | |
1725 | -fi | |
1726 | -fi | |
1727 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1728 | -if test -n "$ac_ct_CC"; then | |
1729 | - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1730 | -echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1731 | -else | |
1732 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1733 | -echo "${ECHO_T}no" >&6; } | |
1734 | -fi | |
1735 | - | |
1736 | - if test "x$ac_ct_CC" = x; then | |
1737 | - CC="" | |
1738 | - else | |
1739 | - case $cross_compiling:$ac_tool_warned in | |
1740 | -yes:) | |
1741 | -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1742 | -whose name does not start with the host triplet. If you think this | |
1743 | -configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1744 | -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1745 | -whose name does not start with the host triplet. If you think this | |
1746 | -configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1747 | -ac_tool_warned=yes ;; | |
1748 | -esac | |
1749 | - CC=$ac_ct_CC | |
1750 | - fi | |
1751 | -else | |
1752 | - CC="$ac_cv_prog_CC" | |
1753 | -fi | |
1754 | - | |
1755 | -if test -z "$CC"; then | |
1756 | - if test -n "$ac_tool_prefix"; then | |
1757 | - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1758 | -set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1759 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1760 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1761 | -if test "${ac_cv_prog_CC+set}" = set; then | |
1762 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1763 | -else | |
1764 | - if test -n "$CC"; then | |
1765 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
1766 | -else | |
1767 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1768 | -for as_dir in $PATH | |
1769 | -do | |
1770 | - IFS=$as_save_IFS | |
1771 | - test -z "$as_dir" && as_dir=. | |
1772 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1773 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1774 | - ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1775 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1776 | - break 2 | |
1777 | - fi | |
1778 | -done | |
1779 | -done | |
1780 | -IFS=$as_save_IFS | |
1781 | - | |
1782 | -fi | |
1783 | -fi | |
1784 | -CC=$ac_cv_prog_CC | |
1785 | -if test -n "$CC"; then | |
1786 | - { echo "$as_me:$LINENO: result: $CC" >&5 | |
1787 | -echo "${ECHO_T}$CC" >&6; } | |
1788 | -else | |
1789 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1790 | -echo "${ECHO_T}no" >&6; } | |
1791 | -fi | |
1792 | - | |
1793 | - | |
1794 | - fi | |
1795 | -fi | |
1796 | -if test -z "$CC"; then | |
1797 | - # Extract the first word of "cc", so it can be a program name with args. | |
1798 | -set dummy cc; ac_word=$2 | |
1799 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1800 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1801 | -if test "${ac_cv_prog_CC+set}" = set; then | |
1802 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1803 | -else | |
1804 | - if test -n "$CC"; then | |
1805 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
1806 | -else | |
1807 | - ac_prog_rejected=no | |
1808 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1809 | -for as_dir in $PATH | |
1810 | -do | |
1811 | - IFS=$as_save_IFS | |
1812 | - test -z "$as_dir" && as_dir=. | |
1813 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1814 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1815 | - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1816 | - ac_prog_rejected=yes | |
1817 | - continue | |
1818 | - fi | |
1819 | - ac_cv_prog_CC="cc" | |
1820 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1821 | - break 2 | |
1822 | - fi | |
1823 | -done | |
1824 | -done | |
1825 | -IFS=$as_save_IFS | |
1826 | - | |
1827 | -if test $ac_prog_rejected = yes; then | |
1828 | - # We found a bogon in the path, so make sure we never use it. | |
1829 | - set dummy $ac_cv_prog_CC | |
1830 | - shift | |
1831 | - if test $# != 0; then | |
1832 | - # We chose a different compiler from the bogus one. | |
1833 | - # However, it has the same basename, so the bogon will be chosen | |
1834 | - # first if we set CC to just the basename; use the full file name. | |
1835 | - shift | |
1836 | - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1837 | - fi | |
1838 | -fi | |
1839 | -fi | |
1840 | -fi | |
1841 | -CC=$ac_cv_prog_CC | |
1842 | -if test -n "$CC"; then | |
1843 | - { echo "$as_me:$LINENO: result: $CC" >&5 | |
1844 | -echo "${ECHO_T}$CC" >&6; } | |
1845 | -else | |
1846 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1847 | -echo "${ECHO_T}no" >&6; } | |
1848 | -fi | |
1849 | - | |
1850 | - | |
1851 | -fi | |
1852 | -if test -z "$CC"; then | |
1853 | - if test -n "$ac_tool_prefix"; then | |
1854 | - for ac_prog in cl.exe | |
1855 | - do | |
1856 | - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1857 | -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1858 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1859 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1860 | -if test "${ac_cv_prog_CC+set}" = set; then | |
1861 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1862 | -else | |
1863 | - if test -n "$CC"; then | |
1864 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
1865 | -else | |
1866 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1867 | -for as_dir in $PATH | |
1868 | -do | |
1869 | - IFS=$as_save_IFS | |
1870 | - test -z "$as_dir" && as_dir=. | |
1871 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1872 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1873 | - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1874 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1875 | - break 2 | |
1876 | - fi | |
1877 | -done | |
1878 | -done | |
1879 | -IFS=$as_save_IFS | |
1880 | - | |
1881 | -fi | |
1882 | -fi | |
1883 | -CC=$ac_cv_prog_CC | |
1884 | -if test -n "$CC"; then | |
1885 | - { echo "$as_me:$LINENO: result: $CC" >&5 | |
1886 | -echo "${ECHO_T}$CC" >&6; } | |
1887 | -else | |
1888 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1889 | -echo "${ECHO_T}no" >&6; } | |
1890 | -fi | |
1891 | - | |
1892 | - | |
1893 | - test -n "$CC" && break | |
1894 | - done | |
1895 | -fi | |
1896 | -if test -z "$CC"; then | |
1897 | - ac_ct_CC=$CC | |
1898 | - for ac_prog in cl.exe | |
1899 | -do | |
1900 | - # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1901 | -set dummy $ac_prog; ac_word=$2 | |
1902 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1903 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1904 | -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1905 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1906 | -else | |
1907 | - if test -n "$ac_ct_CC"; then | |
1908 | - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1909 | -else | |
1910 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1911 | -for as_dir in $PATH | |
1912 | -do | |
1913 | - IFS=$as_save_IFS | |
1914 | - test -z "$as_dir" && as_dir=. | |
1915 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
1916 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1917 | - ac_cv_prog_ac_ct_CC="$ac_prog" | |
1918 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1919 | - break 2 | |
1920 | - fi | |
1921 | -done | |
1922 | -done | |
1923 | -IFS=$as_save_IFS | |
1924 | - | |
1925 | -fi | |
1926 | -fi | |
1927 | -ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1928 | -if test -n "$ac_ct_CC"; then | |
1929 | - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1930 | -echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1931 | -else | |
1932 | - { echo "$as_me:$LINENO: result: no" >&5 | |
1933 | -echo "${ECHO_T}no" >&6; } | |
1934 | -fi | |
1935 | - | |
1936 | - | |
1937 | - test -n "$ac_ct_CC" && break | |
1938 | -done | |
1939 | - | |
1940 | - if test "x$ac_ct_CC" = x; then | |
1941 | - CC="" | |
1942 | - else | |
1943 | - case $cross_compiling:$ac_tool_warned in | |
1944 | -yes:) | |
1945 | -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1946 | -whose name does not start with the host triplet. If you think this | |
1947 | -configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1948 | -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1949 | -whose name does not start with the host triplet. If you think this | |
1950 | -configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1951 | -ac_tool_warned=yes ;; | |
1952 | -esac | |
1953 | - CC=$ac_ct_CC | |
1954 | - fi | |
1955 | -fi | |
1956 | - | |
1957 | -fi | |
1958 | - | |
1959 | - | |
1960 | -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1961 | -See \`config.log' for more details." >&5 | |
1962 | -echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1963 | -See \`config.log' for more details." >&2;} | |
1964 | - { (exit 1); exit 1; }; } | |
1965 | - | |
1966 | -# Provide some information about the compiler. | |
1967 | -echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
1968 | -ac_compiler=`set X $ac_compile; echo $2` | |
1969 | -{ (ac_try="$ac_compiler --version >&5" | |
1970 | -case "(($ac_try" in | |
1971 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1972 | - *) ac_try_echo=$ac_try;; | |
1973 | -esac | |
1974 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
1975 | - (eval "$ac_compiler --version >&5") 2>&5 | |
1976 | - ac_status=$? | |
1977 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1978 | - (exit $ac_status); } | |
1979 | -{ (ac_try="$ac_compiler -v >&5" | |
1980 | -case "(($ac_try" in | |
1981 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1982 | - *) ac_try_echo=$ac_try;; | |
1983 | -esac | |
1984 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
1985 | - (eval "$ac_compiler -v >&5") 2>&5 | |
1986 | - ac_status=$? | |
1987 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1988 | - (exit $ac_status); } | |
1989 | -{ (ac_try="$ac_compiler -V >&5" | |
1990 | -case "(($ac_try" in | |
1991 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1992 | - *) ac_try_echo=$ac_try;; | |
1993 | -esac | |
1994 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
1995 | - (eval "$ac_compiler -V >&5") 2>&5 | |
1996 | - ac_status=$? | |
1997 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1998 | - (exit $ac_status); } | |
1999 | - | |
2000 | -cat >conftest.$ac_ext <<_ACEOF | |
2001 | -/* confdefs.h. */ | |
2002 | -_ACEOF | |
2003 | -cat confdefs.h >>conftest.$ac_ext | |
2004 | -cat >>conftest.$ac_ext <<_ACEOF | |
2005 | -/* end confdefs.h. */ | |
2006 | - | |
2007 | -int | |
2008 | -main () | |
2009 | -{ | |
2010 | - | |
2011 | - ; | |
2012 | - return 0; | |
2013 | -} | |
2014 | -_ACEOF | |
2015 | -ac_clean_files_save=$ac_clean_files | |
2016 | -ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2017 | -# Try to create an executable without -o first, disregard a.out. | |
2018 | -# It will help us diagnose broken compilers, and finding out an intuition | |
2019 | -# of exeext. | |
2020 | -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2021 | -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2022 | -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2023 | -# | |
2024 | -# List of possible output files, starting from the most likely. | |
2025 | -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2026 | -# only as a last resort. b.out is created by i960 compilers. | |
2027 | -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2028 | -# | |
2029 | -# The IRIX 6 linker writes into existing files which may not be | |
2030 | -# executable, retaining their permissions. Remove them first so a | |
2031 | -# subsequent execution test works. | |
2032 | -ac_rmfiles= | |
2033 | -for ac_file in $ac_files | |
2034 | -do | |
2035 | - case $ac_file in | |
2036 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2037 | - * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2038 | - esac | |
2039 | -done | |
2040 | -rm -f $ac_rmfiles | |
2041 | - | |
2042 | -if { (ac_try="$ac_link_default" | |
2043 | -case "(($ac_try" in | |
2044 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2045 | - *) ac_try_echo=$ac_try;; | |
2046 | -esac | |
2047 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2048 | - (eval "$ac_link_default") 2>&5 | |
2049 | - ac_status=$? | |
2050 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2051 | - (exit $ac_status); }; then | |
2052 | - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2053 | -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2054 | -# in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2055 | -# so that the user can short-circuit this test for compilers unknown to | |
2056 | -# Autoconf. | |
2057 | -for ac_file in $ac_files '' | |
2058 | -do | |
2059 | - test -f "$ac_file" || continue | |
2060 | - case $ac_file in | |
2061 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2062 | - ;; | |
2063 | - [ab].out ) | |
2064 | - # We found the default executable, but exeext='' is most | |
2065 | - # certainly right. | |
2066 | - break;; | |
2067 | - *.* ) | |
2068 | - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2069 | - then :; else | |
2070 | - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2071 | - fi | |
2072 | - # We set ac_cv_exeext here because the later test for it is not | |
2073 | - # safe: cross compilers may not add the suffix if given an `-o' | |
2074 | - # argument, so we may need to know it at that point already. | |
2075 | - # Even if this section looks crufty: it has the advantage of | |
2076 | - # actually working. | |
2077 | - break;; | |
2078 | - * ) | |
2079 | - break;; | |
2080 | - esac | |
2081 | -done | |
2082 | -test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2083 | - | |
2084 | -else | |
2085 | - ac_file='' | |
2086 | -fi | |
2087 | - | |
2088 | -{ echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2089 | -echo "${ECHO_T}$ac_file" >&6; } | |
2090 | -if test -z "$ac_file"; then | |
2091 | - echo "$as_me: failed program was:" >&5 | |
2092 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2093 | - | |
2094 | -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2095 | -See \`config.log' for more details." >&5 | |
2096 | -echo "$as_me: error: C compiler cannot create executables | |
2097 | -See \`config.log' for more details." >&2;} | |
2098 | - { (exit 77); exit 77; }; } | |
2099 | -fi | |
2100 | - | |
2101 | -ac_exeext=$ac_cv_exeext | |
2102 | - | |
2103 | -# Check that the compiler produces executables we can run. If not, either | |
2104 | -# the compiler is broken, or we cross compile. | |
2105 | -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2106 | -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2107 | -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2108 | -# If not cross compiling, check that we can run a simple program. | |
2109 | -if test "$cross_compiling" != yes; then | |
2110 | - if { ac_try='./$ac_file' | |
2111 | - { (case "(($ac_try" in | |
2112 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2113 | - *) ac_try_echo=$ac_try;; | |
2114 | -esac | |
2115 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2116 | - (eval "$ac_try") 2>&5 | |
2117 | - ac_status=$? | |
2118 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2119 | - (exit $ac_status); }; }; then | |
2120 | - cross_compiling=no | |
2121 | - else | |
2122 | - if test "$cross_compiling" = maybe; then | |
2123 | - cross_compiling=yes | |
2124 | - else | |
2125 | - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2126 | -If you meant to cross compile, use \`--host'. | |
2127 | -See \`config.log' for more details." >&5 | |
2128 | -echo "$as_me: error: cannot run C compiled programs. | |
2129 | -If you meant to cross compile, use \`--host'. | |
2130 | -See \`config.log' for more details." >&2;} | |
2131 | - { (exit 1); exit 1; }; } | |
2132 | - fi | |
2133 | - fi | |
2134 | -fi | |
2135 | -{ echo "$as_me:$LINENO: result: yes" >&5 | |
2136 | -echo "${ECHO_T}yes" >&6; } | |
2137 | - | |
2138 | -rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2139 | -ac_clean_files=$ac_clean_files_save | |
2140 | -# Check that the compiler produces executables we can run. If not, either | |
2141 | -# the compiler is broken, or we cross compile. | |
2142 | -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2143 | -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2144 | -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2145 | -echo "${ECHO_T}$cross_compiling" >&6; } | |
2146 | - | |
2147 | -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2148 | -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2149 | -if { (ac_try="$ac_link" | |
2150 | -case "(($ac_try" in | |
2151 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2152 | - *) ac_try_echo=$ac_try;; | |
2153 | -esac | |
2154 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2155 | - (eval "$ac_link") 2>&5 | |
2156 | - ac_status=$? | |
2157 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2158 | - (exit $ac_status); }; then | |
2159 | - # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2160 | -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2161 | -# work properly (i.e., refer to `conftest.exe'), while it won't with | |
2162 | -# `rm'. | |
2163 | -for ac_file in conftest.exe conftest conftest.*; do | |
2164 | - test -f "$ac_file" || continue | |
2165 | - case $ac_file in | |
2166 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2167 | - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2168 | - break;; | |
2169 | - * ) break;; | |
2170 | - esac | |
2171 | -done | |
2172 | -else | |
2173 | - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2174 | -See \`config.log' for more details." >&5 | |
2175 | -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2176 | -See \`config.log' for more details." >&2;} | |
2177 | - { (exit 1); exit 1; }; } | |
2178 | -fi | |
2179 | - | |
2180 | -rm -f conftest$ac_cv_exeext | |
2181 | -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2182 | -echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
2183 | - | |
2184 | -rm -f conftest.$ac_ext | |
2185 | -EXEEXT=$ac_cv_exeext | |
2186 | -ac_exeext=$EXEEXT | |
2187 | -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2188 | -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
2189 | -if test "${ac_cv_objext+set}" = set; then | |
2190 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2191 | -else | |
2192 | - cat >conftest.$ac_ext <<_ACEOF | |
2193 | -/* confdefs.h. */ | |
2194 | -_ACEOF | |
2195 | -cat confdefs.h >>conftest.$ac_ext | |
2196 | -cat >>conftest.$ac_ext <<_ACEOF | |
2197 | -/* end confdefs.h. */ | |
2198 | - | |
2199 | -int | |
2200 | -main () | |
2201 | -{ | |
2202 | - | |
2203 | - ; | |
2204 | - return 0; | |
2205 | -} | |
2206 | -_ACEOF | |
2207 | -rm -f conftest.o conftest.obj | |
2208 | -if { (ac_try="$ac_compile" | |
2209 | -case "(($ac_try" in | |
2210 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2211 | - *) ac_try_echo=$ac_try;; | |
2212 | -esac | |
2213 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2214 | - (eval "$ac_compile") 2>&5 | |
2215 | - ac_status=$? | |
2216 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2217 | - (exit $ac_status); }; then | |
2218 | - for ac_file in conftest.o conftest.obj conftest.*; do | |
2219 | - test -f "$ac_file" || continue; | |
2220 | - case $ac_file in | |
2221 | - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
2222 | - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2223 | - break;; | |
2224 | - esac | |
2225 | -done | |
2226 | -else | |
2227 | - echo "$as_me: failed program was:" >&5 | |
2228 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2229 | - | |
2230 | -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2231 | -See \`config.log' for more details." >&5 | |
2232 | -echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2233 | -See \`config.log' for more details." >&2;} | |
2234 | - { (exit 1); exit 1; }; } | |
2235 | -fi | |
2236 | - | |
2237 | -rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2238 | -fi | |
2239 | -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2240 | -echo "${ECHO_T}$ac_cv_objext" >&6; } | |
2241 | -OBJEXT=$ac_cv_objext | |
2242 | -ac_objext=$OBJEXT | |
2243 | -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2244 | -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
2245 | -if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2246 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2247 | -else | |
2248 | - cat >conftest.$ac_ext <<_ACEOF | |
2249 | -/* confdefs.h. */ | |
2250 | -_ACEOF | |
2251 | -cat confdefs.h >>conftest.$ac_ext | |
2252 | -cat >>conftest.$ac_ext <<_ACEOF | |
2253 | -/* end confdefs.h. */ | |
2254 | - | |
2255 | -int | |
2256 | -main () | |
2257 | -{ | |
2258 | -#ifndef __GNUC__ | |
2259 | - choke me | |
2260 | -#endif | |
2261 | - | |
2262 | - ; | |
2263 | - return 0; | |
2264 | -} | |
2265 | -_ACEOF | |
2266 | -rm -f conftest.$ac_objext | |
2267 | -if { (ac_try="$ac_compile" | |
2268 | -case "(($ac_try" in | |
2269 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2270 | - *) ac_try_echo=$ac_try;; | |
2271 | -esac | |
2272 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2273 | - (eval "$ac_compile") 2>conftest.er1 | |
2274 | - ac_status=$? | |
2275 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2276 | - rm -f conftest.er1 | |
2277 | - cat conftest.err >&5 | |
2278 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2279 | - (exit $ac_status); } && { | |
2280 | - test -z "$ac_c_werror_flag" || | |
2281 | - test ! -s conftest.err | |
2282 | - } && test -s conftest.$ac_objext; then | |
2283 | - ac_compiler_gnu=yes | |
2284 | -else | |
2285 | - echo "$as_me: failed program was:" >&5 | |
2286 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2287 | - | |
2288 | - ac_compiler_gnu=no | |
2289 | -fi | |
2290 | - | |
2291 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2292 | -ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2293 | - | |
2294 | -fi | |
2295 | -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2296 | -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2297 | -GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2298 | -ac_test_CFLAGS=${CFLAGS+set} | |
2299 | -ac_save_CFLAGS=$CFLAGS | |
2300 | -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2301 | -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
2302 | -if test "${ac_cv_prog_cc_g+set}" = set; then | |
2303 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2304 | -else | |
2305 | - ac_save_c_werror_flag=$ac_c_werror_flag | |
2306 | - ac_c_werror_flag=yes | |
2307 | - ac_cv_prog_cc_g=no | |
2308 | - CFLAGS="-g" | |
2309 | - cat >conftest.$ac_ext <<_ACEOF | |
2310 | -/* confdefs.h. */ | |
2311 | -_ACEOF | |
2312 | -cat confdefs.h >>conftest.$ac_ext | |
2313 | -cat >>conftest.$ac_ext <<_ACEOF | |
2314 | -/* end confdefs.h. */ | |
2315 | - | |
2316 | -int | |
2317 | -main () | |
2318 | -{ | |
2319 | - | |
2320 | - ; | |
2321 | - return 0; | |
2322 | -} | |
2323 | -_ACEOF | |
2324 | -rm -f conftest.$ac_objext | |
2325 | -if { (ac_try="$ac_compile" | |
2326 | -case "(($ac_try" in | |
2327 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2328 | - *) ac_try_echo=$ac_try;; | |
2329 | -esac | |
2330 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2331 | - (eval "$ac_compile") 2>conftest.er1 | |
2332 | - ac_status=$? | |
2333 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2334 | - rm -f conftest.er1 | |
2335 | - cat conftest.err >&5 | |
2336 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2337 | - (exit $ac_status); } && { | |
2338 | - test -z "$ac_c_werror_flag" || | |
2339 | - test ! -s conftest.err | |
2340 | - } && test -s conftest.$ac_objext; then | |
2341 | - ac_cv_prog_cc_g=yes | |
2342 | -else | |
2343 | - echo "$as_me: failed program was:" >&5 | |
2344 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2345 | - | |
2346 | - CFLAGS="" | |
2347 | - cat >conftest.$ac_ext <<_ACEOF | |
2348 | -/* confdefs.h. */ | |
2349 | -_ACEOF | |
2350 | -cat confdefs.h >>conftest.$ac_ext | |
2351 | -cat >>conftest.$ac_ext <<_ACEOF | |
2352 | -/* end confdefs.h. */ | |
2353 | - | |
2354 | -int | |
2355 | -main () | |
2356 | -{ | |
2357 | - | |
2358 | - ; | |
2359 | - return 0; | |
2360 | -} | |
2361 | -_ACEOF | |
2362 | -rm -f conftest.$ac_objext | |
2363 | -if { (ac_try="$ac_compile" | |
2364 | -case "(($ac_try" in | |
2365 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2366 | - *) ac_try_echo=$ac_try;; | |
2367 | -esac | |
2368 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2369 | - (eval "$ac_compile") 2>conftest.er1 | |
2370 | - ac_status=$? | |
2371 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2372 | - rm -f conftest.er1 | |
2373 | - cat conftest.err >&5 | |
2374 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2375 | - (exit $ac_status); } && { | |
2376 | - test -z "$ac_c_werror_flag" || | |
2377 | - test ! -s conftest.err | |
2378 | - } && test -s conftest.$ac_objext; then | |
2379 | - : | |
2380 | -else | |
2381 | - echo "$as_me: failed program was:" >&5 | |
2382 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2383 | - | |
2384 | - ac_c_werror_flag=$ac_save_c_werror_flag | |
2385 | - CFLAGS="-g" | |
2386 | - cat >conftest.$ac_ext <<_ACEOF | |
2387 | -/* confdefs.h. */ | |
2388 | -_ACEOF | |
2389 | -cat confdefs.h >>conftest.$ac_ext | |
2390 | -cat >>conftest.$ac_ext <<_ACEOF | |
2391 | -/* end confdefs.h. */ | |
2392 | - | |
2393 | -int | |
2394 | -main () | |
2395 | -{ | |
2396 | - | |
2397 | - ; | |
2398 | - return 0; | |
2399 | -} | |
2400 | -_ACEOF | |
2401 | -rm -f conftest.$ac_objext | |
2402 | -if { (ac_try="$ac_compile" | |
2403 | -case "(($ac_try" in | |
2404 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2405 | - *) ac_try_echo=$ac_try;; | |
2406 | -esac | |
2407 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2408 | - (eval "$ac_compile") 2>conftest.er1 | |
2409 | - ac_status=$? | |
2410 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2411 | - rm -f conftest.er1 | |
2412 | - cat conftest.err >&5 | |
2413 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2414 | - (exit $ac_status); } && { | |
2415 | - test -z "$ac_c_werror_flag" || | |
2416 | - test ! -s conftest.err | |
2417 | - } && test -s conftest.$ac_objext; then | |
2418 | - ac_cv_prog_cc_g=yes | |
2419 | -else | |
2420 | - echo "$as_me: failed program was:" >&5 | |
2421 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2422 | - | |
2423 | - | |
2424 | -fi | |
2425 | - | |
2426 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2427 | -fi | |
2428 | - | |
2429 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2430 | -fi | |
2431 | - | |
2432 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2433 | - ac_c_werror_flag=$ac_save_c_werror_flag | |
2434 | -fi | |
2435 | -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2436 | -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
2437 | -if test "$ac_test_CFLAGS" = set; then | |
2438 | - CFLAGS=$ac_save_CFLAGS | |
2439 | -elif test $ac_cv_prog_cc_g = yes; then | |
2440 | - if test "$GCC" = yes; then | |
2441 | - CFLAGS="-g -O2" | |
2442 | - else | |
2443 | - CFLAGS="-g" | |
2444 | - fi | |
2445 | -else | |
2446 | - if test "$GCC" = yes; then | |
2447 | - CFLAGS="-O2" | |
2448 | - else | |
2449 | - CFLAGS= | |
2450 | - fi | |
2451 | -fi | |
2452 | -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
2453 | -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2454 | -if test "${ac_cv_prog_cc_c89+set}" = set; then | |
2455 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2456 | -else | |
2457 | - ac_cv_prog_cc_c89=no | |
2458 | -ac_save_CC=$CC | |
2459 | -cat >conftest.$ac_ext <<_ACEOF | |
2460 | -/* confdefs.h. */ | |
2461 | -_ACEOF | |
2462 | -cat confdefs.h >>conftest.$ac_ext | |
2463 | -cat >>conftest.$ac_ext <<_ACEOF | |
2464 | -/* end confdefs.h. */ | |
2465 | -#include <stdarg.h> | |
2466 | -#include <stdio.h> | |
2467 | -#include <sys/types.h> | |
2468 | -#include <sys/stat.h> | |
2469 | -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2470 | -struct buf { int x; }; | |
2471 | -FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2472 | -static char *e (p, i) | |
2473 | - char **p; | |
2474 | - int i; | |
2475 | -{ | |
2476 | - return p[i]; | |
2477 | -} | |
2478 | -static char *f (char * (*g) (char **, int), char **p, ...) | |
2479 | -{ | |
2480 | - char *s; | |
2481 | - va_list v; | |
2482 | - va_start (v,p); | |
2483 | - s = g (p, va_arg (v,int)); | |
2484 | - va_end (v); | |
2485 | - return s; | |
2486 | -} | |
2487 | - | |
2488 | -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2489 | - function prototypes and stuff, but not '\xHH' hex character constants. | |
2490 | - These don't provoke an error unfortunately, instead are silently treated | |
2491 | - as 'x'. The following induces an error, until -std is added to get | |
2492 | - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2493 | - array size at least. It's necessary to write '\x00'==0 to get something | |
2494 | - that's true only with -std. */ | |
2495 | -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2496 | - | |
2497 | -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2498 | - inside strings and character constants. */ | |
2499 | -#define FOO(x) 'x' | |
2500 | -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2501 | - | |
2502 | -int test (int i, double x); | |
2503 | -struct s1 {int (*f) (int a);}; | |
2504 | -struct s2 {int (*f) (double a);}; | |
2505 | -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2506 | -int argc; | |
2507 | -char **argv; | |
2508 | -int | |
2509 | -main () | |
2510 | -{ | |
2511 | -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2512 | - ; | |
2513 | - return 0; | |
2514 | -} | |
2515 | -_ACEOF | |
2516 | -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2517 | - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2518 | -do | |
2519 | - CC="$ac_save_CC $ac_arg" | |
2520 | - rm -f conftest.$ac_objext | |
2521 | -if { (ac_try="$ac_compile" | |
2522 | -case "(($ac_try" in | |
2523 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2524 | - *) ac_try_echo=$ac_try;; | |
2525 | -esac | |
2526 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2527 | - (eval "$ac_compile") 2>conftest.er1 | |
2528 | - ac_status=$? | |
2529 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2530 | - rm -f conftest.er1 | |
2531 | - cat conftest.err >&5 | |
2532 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2533 | - (exit $ac_status); } && { | |
2534 | - test -z "$ac_c_werror_flag" || | |
2535 | - test ! -s conftest.err | |
2536 | - } && test -s conftest.$ac_objext; then | |
2537 | - ac_cv_prog_cc_c89=$ac_arg | |
2538 | -else | |
2539 | - echo "$as_me: failed program was:" >&5 | |
2540 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2541 | - | |
2542 | - | |
2543 | -fi | |
2544 | - | |
2545 | -rm -f core conftest.err conftest.$ac_objext | |
2546 | - test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2547 | -done | |
2548 | -rm -f conftest.$ac_ext | |
2549 | -CC=$ac_save_CC | |
2550 | - | |
2551 | -fi | |
2552 | -# AC_CACHE_VAL | |
2553 | -case "x$ac_cv_prog_cc_c89" in | |
2554 | - x) | |
2555 | - { echo "$as_me:$LINENO: result: none needed" >&5 | |
2556 | -echo "${ECHO_T}none needed" >&6; } ;; | |
2557 | - xno) | |
2558 | - { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2559 | -echo "${ECHO_T}unsupported" >&6; } ;; | |
2560 | - *) | |
2561 | - CC="$CC $ac_cv_prog_cc_c89" | |
2562 | - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2563 | -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
2564 | -esac | |
2565 | - | |
2566 | - | |
2567 | -ac_ext=c | |
2568 | -ac_cpp='$CPP $CPPFLAGS' | |
2569 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2570 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2571 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2572 | - | |
2573 | -ac_ext=cpp | |
2574 | -ac_cpp='$CXXCPP $CPPFLAGS' | |
2575 | -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2576 | -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2577 | -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2578 | -if test -z "$CXX"; then | |
2579 | - if test -n "$CCC"; then | |
2580 | - CXX=$CCC | |
2581 | - else | |
2582 | - if test -n "$ac_tool_prefix"; then | |
2583 | - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2584 | - do | |
2585 | - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2586 | -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2587 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2588 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2589 | -if test "${ac_cv_prog_CXX+set}" = set; then | |
2590 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2591 | -else | |
2592 | - if test -n "$CXX"; then | |
2593 | - ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2594 | -else | |
2595 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2596 | -for as_dir in $PATH | |
2597 | -do | |
2598 | - IFS=$as_save_IFS | |
2599 | - test -z "$as_dir" && as_dir=. | |
2600 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
2601 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2602 | - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
2603 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2604 | - break 2 | |
2605 | - fi | |
2606 | -done | |
2607 | -done | |
2608 | -IFS=$as_save_IFS | |
2609 | - | |
2610 | -fi | |
2611 | -fi | |
2612 | -CXX=$ac_cv_prog_CXX | |
2613 | -if test -n "$CXX"; then | |
2614 | - { echo "$as_me:$LINENO: result: $CXX" >&5 | |
2615 | -echo "${ECHO_T}$CXX" >&6; } | |
2616 | -else | |
2617 | - { echo "$as_me:$LINENO: result: no" >&5 | |
2618 | -echo "${ECHO_T}no" >&6; } | |
2619 | -fi | |
2620 | - | |
2621 | - | |
2622 | - test -n "$CXX" && break | |
2623 | - done | |
2624 | -fi | |
2625 | -if test -z "$CXX"; then | |
2626 | - ac_ct_CXX=$CXX | |
2627 | - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2628 | -do | |
2629 | - # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2630 | -set dummy $ac_prog; ac_word=$2 | |
2631 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2632 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2633 | -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2634 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2635 | -else | |
2636 | - if test -n "$ac_ct_CXX"; then | |
2637 | - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2638 | -else | |
2639 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2640 | -for as_dir in $PATH | |
2641 | -do | |
2642 | - IFS=$as_save_IFS | |
2643 | - test -z "$as_dir" && as_dir=. | |
2644 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
2645 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2646 | - ac_cv_prog_ac_ct_CXX="$ac_prog" | |
2647 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2648 | - break 2 | |
2649 | - fi | |
2650 | -done | |
2651 | -done | |
2652 | -IFS=$as_save_IFS | |
2653 | - | |
2654 | -fi | |
2655 | -fi | |
2656 | -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2657 | -if test -n "$ac_ct_CXX"; then | |
2658 | - { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2659 | -echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
2660 | -else | |
2661 | - { echo "$as_me:$LINENO: result: no" >&5 | |
2662 | -echo "${ECHO_T}no" >&6; } | |
2663 | -fi | |
2664 | - | |
2665 | - | |
2666 | - test -n "$ac_ct_CXX" && break | |
2667 | -done | |
2668 | - | |
2669 | - if test "x$ac_ct_CXX" = x; then | |
2670 | - CXX="g++" | |
2671 | - else | |
2672 | - case $cross_compiling:$ac_tool_warned in | |
2673 | -yes:) | |
2674 | -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2675 | -whose name does not start with the host triplet. If you think this | |
2676 | -configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2677 | -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2678 | -whose name does not start with the host triplet. If you think this | |
2679 | -configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2680 | -ac_tool_warned=yes ;; | |
2681 | -esac | |
2682 | - CXX=$ac_ct_CXX | |
2683 | - fi | |
2684 | -fi | |
2685 | - | |
2686 | - fi | |
2687 | -fi | |
2688 | -# Provide some information about the compiler. | |
2689 | -echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
2690 | -ac_compiler=`set X $ac_compile; echo $2` | |
2691 | -{ (ac_try="$ac_compiler --version >&5" | |
2692 | -case "(($ac_try" in | |
2693 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2694 | - *) ac_try_echo=$ac_try;; | |
2695 | -esac | |
2696 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2697 | - (eval "$ac_compiler --version >&5") 2>&5 | |
2698 | - ac_status=$? | |
2699 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2700 | - (exit $ac_status); } | |
2701 | -{ (ac_try="$ac_compiler -v >&5" | |
2702 | -case "(($ac_try" in | |
2703 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2704 | - *) ac_try_echo=$ac_try;; | |
2705 | -esac | |
2706 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2707 | - (eval "$ac_compiler -v >&5") 2>&5 | |
2708 | - ac_status=$? | |
2709 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2710 | - (exit $ac_status); } | |
2711 | -{ (ac_try="$ac_compiler -V >&5" | |
2712 | -case "(($ac_try" in | |
2713 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2714 | - *) ac_try_echo=$ac_try;; | |
2715 | -esac | |
2716 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2717 | - (eval "$ac_compiler -V >&5") 2>&5 | |
2718 | - ac_status=$? | |
2719 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2720 | - (exit $ac_status); } | |
2721 | - | |
2722 | -{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
2723 | -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
2724 | -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
2725 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2726 | -else | |
2727 | - cat >conftest.$ac_ext <<_ACEOF | |
2728 | -/* confdefs.h. */ | |
2729 | -_ACEOF | |
2730 | -cat confdefs.h >>conftest.$ac_ext | |
2731 | -cat >>conftest.$ac_ext <<_ACEOF | |
2732 | -/* end confdefs.h. */ | |
2733 | - | |
2734 | -int | |
2735 | -main () | |
2736 | -{ | |
2737 | -#ifndef __GNUC__ | |
2738 | - choke me | |
2739 | -#endif | |
2740 | - | |
2741 | - ; | |
2742 | - return 0; | |
2743 | -} | |
2744 | -_ACEOF | |
2745 | -rm -f conftest.$ac_objext | |
2746 | -if { (ac_try="$ac_compile" | |
2747 | -case "(($ac_try" in | |
2748 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2749 | - *) ac_try_echo=$ac_try;; | |
2750 | -esac | |
2751 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2752 | - (eval "$ac_compile") 2>conftest.er1 | |
2753 | - ac_status=$? | |
2754 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2755 | - rm -f conftest.er1 | |
2756 | - cat conftest.err >&5 | |
2757 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2758 | - (exit $ac_status); } && { | |
2759 | - test -z "$ac_cxx_werror_flag" || | |
2760 | - test ! -s conftest.err | |
2761 | - } && test -s conftest.$ac_objext; then | |
2762 | - ac_compiler_gnu=yes | |
2763 | -else | |
2764 | - echo "$as_me: failed program was:" >&5 | |
2765 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2766 | - | |
2767 | - ac_compiler_gnu=no | |
2768 | -fi | |
2769 | - | |
2770 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2771 | -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2772 | - | |
2773 | -fi | |
2774 | -{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2775 | -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
2776 | -GXX=`test $ac_compiler_gnu = yes && echo yes` | |
2777 | -ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2778 | -ac_save_CXXFLAGS=$CXXFLAGS | |
2779 | -{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
2780 | -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
2781 | -if test "${ac_cv_prog_cxx_g+set}" = set; then | |
2782 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2783 | -else | |
2784 | - ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
2785 | - ac_cxx_werror_flag=yes | |
2786 | - ac_cv_prog_cxx_g=no | |
2787 | - CXXFLAGS="-g" | |
2788 | - cat >conftest.$ac_ext <<_ACEOF | |
2789 | -/* confdefs.h. */ | |
2790 | -_ACEOF | |
2791 | -cat confdefs.h >>conftest.$ac_ext | |
2792 | -cat >>conftest.$ac_ext <<_ACEOF | |
2793 | -/* end confdefs.h. */ | |
2794 | - | |
2795 | -int | |
2796 | -main () | |
2797 | -{ | |
2798 | - | |
2799 | - ; | |
2800 | - return 0; | |
2801 | -} | |
2802 | -_ACEOF | |
2803 | -rm -f conftest.$ac_objext | |
2804 | -if { (ac_try="$ac_compile" | |
2805 | -case "(($ac_try" in | |
2806 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2807 | - *) ac_try_echo=$ac_try;; | |
2808 | -esac | |
2809 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2810 | - (eval "$ac_compile") 2>conftest.er1 | |
2811 | - ac_status=$? | |
2812 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2813 | - rm -f conftest.er1 | |
2814 | - cat conftest.err >&5 | |
2815 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2816 | - (exit $ac_status); } && { | |
2817 | - test -z "$ac_cxx_werror_flag" || | |
2818 | - test ! -s conftest.err | |
2819 | - } && test -s conftest.$ac_objext; then | |
2820 | - ac_cv_prog_cxx_g=yes | |
2821 | -else | |
2822 | - echo "$as_me: failed program was:" >&5 | |
2823 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2824 | - | |
2825 | - CXXFLAGS="" | |
2826 | - cat >conftest.$ac_ext <<_ACEOF | |
2827 | -/* confdefs.h. */ | |
2828 | -_ACEOF | |
2829 | -cat confdefs.h >>conftest.$ac_ext | |
2830 | -cat >>conftest.$ac_ext <<_ACEOF | |
2831 | -/* end confdefs.h. */ | |
2832 | - | |
2833 | -int | |
2834 | -main () | |
2835 | -{ | |
2836 | - | |
2837 | - ; | |
2838 | - return 0; | |
2839 | -} | |
2840 | -_ACEOF | |
2841 | -rm -f conftest.$ac_objext | |
2842 | -if { (ac_try="$ac_compile" | |
2843 | -case "(($ac_try" in | |
2844 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2845 | - *) ac_try_echo=$ac_try;; | |
2846 | -esac | |
2847 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2848 | - (eval "$ac_compile") 2>conftest.er1 | |
2849 | - ac_status=$? | |
2850 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2851 | - rm -f conftest.er1 | |
2852 | - cat conftest.err >&5 | |
2853 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2854 | - (exit $ac_status); } && { | |
2855 | - test -z "$ac_cxx_werror_flag" || | |
2856 | - test ! -s conftest.err | |
2857 | - } && test -s conftest.$ac_objext; then | |
2858 | - : | |
2859 | -else | |
2860 | - echo "$as_me: failed program was:" >&5 | |
2861 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2862 | - | |
2863 | - ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
2864 | - CXXFLAGS="-g" | |
2865 | - cat >conftest.$ac_ext <<_ACEOF | |
2866 | -/* confdefs.h. */ | |
2867 | -_ACEOF | |
2868 | -cat confdefs.h >>conftest.$ac_ext | |
2869 | -cat >>conftest.$ac_ext <<_ACEOF | |
2870 | -/* end confdefs.h. */ | |
2871 | - | |
2872 | -int | |
2873 | -main () | |
2874 | -{ | |
2875 | - | |
2876 | - ; | |
2877 | - return 0; | |
2878 | -} | |
2879 | -_ACEOF | |
2880 | -rm -f conftest.$ac_objext | |
2881 | -if { (ac_try="$ac_compile" | |
2882 | -case "(($ac_try" in | |
2883 | - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2884 | - *) ac_try_echo=$ac_try;; | |
2885 | -esac | |
2886 | -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2887 | - (eval "$ac_compile") 2>conftest.er1 | |
2888 | - ac_status=$? | |
2889 | - grep -v '^ *+' conftest.er1 >conftest.err | |
2890 | - rm -f conftest.er1 | |
2891 | - cat conftest.err >&5 | |
2892 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2893 | - (exit $ac_status); } && { | |
2894 | - test -z "$ac_cxx_werror_flag" || | |
2895 | - test ! -s conftest.err | |
2896 | - } && test -s conftest.$ac_objext; then | |
2897 | - ac_cv_prog_cxx_g=yes | |
2898 | -else | |
2899 | - echo "$as_me: failed program was:" >&5 | |
2900 | -sed 's/^/| /' conftest.$ac_ext >&5 | |
2901 | - | |
2902 | - | |
2903 | -fi | |
2904 | - | |
2905 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2906 | -fi | |
2907 | - | |
2908 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2909 | -fi | |
2910 | - | |
2911 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2912 | - ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
2913 | -fi | |
2914 | -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
2915 | -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
2916 | -if test "$ac_test_CXXFLAGS" = set; then | |
2917 | - CXXFLAGS=$ac_save_CXXFLAGS | |
2918 | -elif test $ac_cv_prog_cxx_g = yes; then | |
2919 | - if test "$GXX" = yes; then | |
2920 | - CXXFLAGS="-g -O2" | |
2921 | - else | |
2922 | - CXXFLAGS="-g" | |
2923 | - fi | |
2924 | -else | |
2925 | - if test "$GXX" = yes; then | |
2926 | - CXXFLAGS="-O2" | |
2927 | - else | |
2928 | - CXXFLAGS= | |
2929 | - fi | |
2930 | -fi | |
2931 | -ac_ext=c | |
2932 | -ac_cpp='$CPP $CPPFLAGS' | |
2933 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2934 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2935 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2936 | - | |
2937 | -# Extract the first word of "ar", so it can be a program name with args. | |
2938 | -set dummy ar; ac_word=$2 | |
2939 | -{ echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2940 | -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2941 | -if test "${ac_cv_prog_AR+set}" = set; then | |
2942 | - echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2943 | -else | |
2944 | - if test -n "$AR"; then | |
2945 | - ac_cv_prog_AR="$AR" # Let the user override the test. | |
2946 | -else | |
2947 | -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2948 | -for as_dir in $PATH | |
2949 | -do | |
2950 | - IFS=$as_save_IFS | |
2951 | - test -z "$as_dir" && as_dir=. | |
2952 | - for ac_exec_ext in '' $ac_executable_extensions; do | |
2953 | - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2954 | - ac_cv_prog_AR="ar" | |
2955 | - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2956 | - break 2 | |
2957 | - fi | |
2958 | -done | |
2959 | -done | |
2960 | -IFS=$as_save_IFS | |
2961 | - | |
2962 | - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="not found" | |
2963 | -fi | |
2964 | -fi | |
2965 | -AR=$ac_cv_prog_AR | |
2966 | -if test -n "$AR"; then | |
2967 | - { echo "$as_me:$LINENO: result: $AR" >&5 | |
2968 | -echo "${ECHO_T}$AR" >&6; } | |
2969 | -else | |
2970 | - { echo "$as_me:$LINENO: result: no" >&5 | |
2971 | -echo "${ECHO_T}no" >&6; } | |
2972 | -fi | |
2973 | - | |
2974 | - | |
2975 | -# Checks for libraries. | |
2976 | - | |
2977 | -# Checks for header files. | |
2978 | - | |
2979 | -# Checks for typedefs, structures, and compiler characteristics. | |
2980 | - | |
2981 | -# Checks for library functions. | |
2982 | - | |
2983 | - | |
2984 | - | |
2985 | -ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile" | |
2986 | - | |
2987 | -cat >confcache <<\_ACEOF | |
2988 | -# This file is a shell script that caches the results of configure | |
2989 | -# tests run on this system so they can be shared between configure | |
2990 | -# scripts and configure runs, see configure's option --config-cache. | |
2991 | -# It is not useful on other systems. If it contains results you don't | |
2992 | -# want to keep, you may remove or edit it. | |
2993 | -# | |
2994 | -# config.status only pays attention to the cache file if you give it | |
2995 | -# the --recheck option to rerun configure. | |
2996 | -# | |
2997 | -# `ac_cv_env_foo' variables (set or unset) will be overridden when | |
2998 | -# loading this file, other *unset* `ac_cv_foo' will be assigned the | |
2999 | -# following values. | |
3000 | - | |
3001 | -_ACEOF | |
3002 | - | |
3003 | -# The following way of writing the cache mishandles newlines in values, | |
3004 | -# but we know of no workaround that is simple, portable, and efficient. | |
3005 | -# So, we kill variables containing newlines. | |
3006 | -# Ultrix sh set writes to stderr and can't be redirected directly, | |
3007 | -# and sets the high bit in the cache file unless we assign to the vars. | |
3008 | -( | |
3009 | - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
3010 | - eval ac_val=\$$ac_var | |
3011 | - case $ac_val in #( | |
3012 | - *${as_nl}*) | |
3013 | - case $ac_var in #( | |
3014 | - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
3015 | -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
3016 | - esac | |
3017 | - case $ac_var in #( | |
3018 | - _ | IFS | as_nl) ;; #( | |
3019 | - *) $as_unset $ac_var ;; | |
3020 | - esac ;; | |
3021 | - esac | |
3022 | - done | |
3023 | - | |
3024 | - (set) 2>&1 | | |
3025 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
3026 | - *${as_nl}ac_space=\ *) | |
3027 | - # `set' does not quote correctly, so add quotes (double-quote | |
3028 | - # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3029 | - sed -n \ | |
3030 | - "s/'/'\\\\''/g; | |
3031 | - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3032 | - ;; #( | |
3033 | - *) | |
3034 | - # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3035 | - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
3036 | - ;; | |
3037 | - esac | | |
3038 | - sort | |
3039 | -) | | |
3040 | - sed ' | |
3041 | - /^ac_cv_env_/b end | |
3042 | - t clear | |
3043 | - :clear | |
3044 | - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3045 | - t end | |
3046 | - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3047 | - :end' >>confcache | |
3048 | -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
3049 | - if test -w "$cache_file"; then | |
3050 | - test "x$cache_file" != "x/dev/null" && | |
3051 | - { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
3052 | -echo "$as_me: updating cache $cache_file" >&6;} | |
3053 | - cat confcache >$cache_file | |
3054 | - else | |
3055 | - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
3056 | -echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
3057 | - fi | |
3058 | -fi | |
3059 | -rm -f confcache | |
3060 | - | |
3061 | -test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3062 | -# Let make expand exec_prefix. | |
3063 | -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3064 | - | |
3065 | -# Transform confdefs.h into DEFS. | |
3066 | -# Protect against shell expansion while executing Makefile rules. | |
3067 | -# Protect against Makefile macro expansion. | |
3068 | -# | |
3069 | -# If the first sed substitution is executed (which looks for macros that | |
3070 | -# take arguments), then branch to the quote section. Otherwise, | |
3071 | -# look for a macro that doesn't take arguments. | |
3072 | -ac_script=' | |
3073 | -t clear | |
3074 | -:clear | |
3075 | -s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
3076 | -t quote | |
3077 | -s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
3078 | -t quote | |
3079 | -b any | |
3080 | -:quote | |
3081 | -s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
3082 | -s/\[/\\&/g | |
3083 | -s/\]/\\&/g | |
3084 | -s/\$/$$/g | |
3085 | -H | |
3086 | -:any | |
3087 | -${ | |
3088 | - g | |
3089 | - s/^\n// | |
3090 | - s/\n/ /g | |
3091 | - p | |
3092 | -} | |
3093 | -' | |
3094 | -DEFS=`sed -n "$ac_script" confdefs.h` | |
3095 | - | |
3096 | - | |
3097 | -ac_libobjs= | |
3098 | -ac_ltlibobjs= | |
3099 | -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3100 | - # 1. Remove the extension, and $U if already installed. | |
3101 | - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
3102 | - ac_i=`echo "$ac_i" | sed "$ac_script"` | |
3103 | - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3104 | - # will be set to the directory where LIBOBJS objects are built. | |
3105 | - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3106 | - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
3107 | -done | |
3108 | -LIBOBJS=$ac_libobjs | |
3109 | - | |
3110 | -LTLIBOBJS=$ac_ltlibobjs | |
3111 | - | |
3112 | - | |
3113 | - | |
3114 | -: ${CONFIG_STATUS=./config.status} | |
3115 | -ac_clean_files_save=$ac_clean_files | |
3116 | -ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3117 | -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3118 | -echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3119 | -cat >$CONFIG_STATUS <<_ACEOF | |
3120 | -#! $SHELL | |
3121 | -# Generated by $as_me. | |
3122 | -# Run this file to recreate the current configuration. | |
3123 | -# Compiler output produced by configure, useful for debugging | |
3124 | -# configure, is in config.log if it exists. | |
3125 | - | |
3126 | -debug=false | |
3127 | -ac_cs_recheck=false | |
3128 | -ac_cs_silent=false | |
3129 | -SHELL=\${CONFIG_SHELL-$SHELL} | |
3130 | -_ACEOF | |
3131 | - | |
3132 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3133 | -## --------------------- ## | |
3134 | -## M4sh Initialization. ## | |
3135 | -## --------------------- ## | |
3136 | - | |
3137 | -# Be more Bourne compatible | |
3138 | -DUALCASE=1; export DUALCASE # for MKS sh | |
3139 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3140 | - emulate sh | |
3141 | - NULLCMD=: | |
3142 | - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
3143 | - # is contrary to our usage. Disable this feature. | |
3144 | - alias -g '${1+"$@"}'='"$@"' | |
3145 | - setopt NO_GLOB_SUBST | |
3146 | -else | |
3147 | - case `(set -o) 2>/dev/null` in | |
3148 | - *posix*) set -o posix ;; | |
3149 | -esac | |
3150 | - | |
3151 | -fi | |
3152 | - | |
3153 | - | |
3154 | - | |
3155 | - | |
3156 | -# PATH needs CR | |
3157 | -# Avoid depending upon Character Ranges. | |
3158 | -as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3159 | -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3160 | -as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3161 | -as_cr_digits='0123456789' | |
3162 | -as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3163 | - | |
3164 | -# The user is always right. | |
3165 | -if test "${PATH_SEPARATOR+set}" != set; then | |
3166 | - echo "#! /bin/sh" >conf$$.sh | |
3167 | - echo "exit 0" >>conf$$.sh | |
3168 | - chmod +x conf$$.sh | |
3169 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3170 | - PATH_SEPARATOR=';' | |
3171 | - else | |
3172 | - PATH_SEPARATOR=: | |
3173 | - fi | |
3174 | - rm -f conf$$.sh | |
3175 | -fi | |
3176 | - | |
3177 | -# Support unset when possible. | |
3178 | -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
3179 | - as_unset=unset | |
3180 | -else | |
3181 | - as_unset=false | |
3182 | -fi | |
3183 | - | |
3184 | - | |
3185 | -# IFS | |
3186 | -# We need space, tab and new line, in precisely that order. Quoting is | |
3187 | -# there to prevent editors from complaining about space-tab. | |
3188 | -# (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
3189 | -# splitting by setting IFS to empty value.) | |
3190 | -as_nl=' | |
3191 | -' | |
3192 | -IFS=" "" $as_nl" | |
3193 | - | |
3194 | -# Find who we are. Look in the path if we contain no directory separator. | |
3195 | -case $0 in | |
3196 | - *[\\/]* ) as_myself=$0 ;; | |
3197 | - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3198 | -for as_dir in $PATH | |
3199 | -do | |
3200 | - IFS=$as_save_IFS | |
3201 | - test -z "$as_dir" && as_dir=. | |
3202 | - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3203 | -done | |
3204 | -IFS=$as_save_IFS | |
3205 | - | |
3206 | - ;; | |
3207 | -esac | |
3208 | -# We did not find ourselves, most probably we were run as `sh COMMAND' | |
3209 | -# in which case we are not to be found in the path. | |
3210 | -if test "x$as_myself" = x; then | |
3211 | - as_myself=$0 | |
3212 | -fi | |
3213 | -if test ! -f "$as_myself"; then | |
3214 | - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
3215 | - { (exit 1); exit 1; } | |
3216 | -fi | |
3217 | - | |
3218 | -# Work around bugs in pre-3.0 UWIN ksh. | |
3219 | -for as_var in ENV MAIL MAILPATH | |
3220 | -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
3221 | -done | |
3222 | -PS1='$ ' | |
3223 | -PS2='> ' | |
3224 | -PS4='+ ' | |
3225 | - | |
3226 | -# NLS nuisances. | |
3227 | -for as_var in \ | |
3228 | - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
3229 | - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
3230 | - LC_TELEPHONE LC_TIME | |
3231 | -do | |
3232 | - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
3233 | - eval $as_var=C; export $as_var | |
3234 | - else | |
3235 | - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
3236 | - fi | |
3237 | -done | |
3238 | - | |
3239 | -# Required to use basename. | |
3240 | -if expr a : '\(a\)' >/dev/null 2>&1 && | |
3241 | - test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3242 | - as_expr=expr | |
3243 | -else | |
3244 | - as_expr=false | |
3245 | -fi | |
3246 | - | |
3247 | -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
3248 | - as_basename=basename | |
3249 | -else | |
3250 | - as_basename=false | |
3251 | -fi | |
3252 | - | |
3253 | - | |
3254 | -# Name of the executable. | |
3255 | -as_me=`$as_basename -- "$0" || | |
3256 | -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3257 | - X"$0" : 'X\(//\)$' \| \ | |
3258 | - X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
3259 | -echo X/"$0" | | |
3260 | - sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
3261 | - s//\1/ | |
3262 | - q | |
3263 | - } | |
3264 | - /^X\/\(\/\/\)$/{ | |
3265 | - s//\1/ | |
3266 | - q | |
3267 | - } | |
3268 | - /^X\/\(\/\).*/{ | |
3269 | - s//\1/ | |
3270 | - q | |
3271 | - } | |
3272 | - s/.*/./; q'` | |
3273 | - | |
3274 | -# CDPATH. | |
3275 | -$as_unset CDPATH | |
3276 | - | |
3277 | - | |
3278 | - | |
3279 | - as_lineno_1=$LINENO | |
3280 | - as_lineno_2=$LINENO | |
3281 | - test "x$as_lineno_1" != "x$as_lineno_2" && | |
3282 | - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
3283 | - | |
3284 | - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
3285 | - # uniformly replaced by the line number. The first 'sed' inserts a | |
3286 | - # line-number line after each line using $LINENO; the second 'sed' | |
3287 | - # does the real work. The second script uses 'N' to pair each | |
3288 | - # line-number line with the line containing $LINENO, and appends | |
3289 | - # trailing '-' during substitution so that $LINENO is not a special | |
3290 | - # case at line end. | |
3291 | - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
3292 | - # scripts with optimization help from Paolo Bonzini. Blame Lee | |
3293 | - # E. McMahon (1931-1989) for sed's syntax. :-) | |
3294 | - sed -n ' | |
3295 | - p | |
3296 | - /[$]LINENO/= | |
3297 | - ' <$as_myself | | |
3298 | - sed ' | |
3299 | - s/[$]LINENO.*/&-/ | |
3300 | - t lineno | |
3301 | - b | |
3302 | - :lineno | |
3303 | - N | |
3304 | - :loop | |
3305 | - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
3306 | - t loop | |
3307 | - s/-\n.*// | |
3308 | - ' >$as_me.lineno && | |
3309 | - chmod +x "$as_me.lineno" || | |
3310 | - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
3311 | - { (exit 1); exit 1; }; } | |
3312 | - | |
3313 | - # Don't try to exec as it changes $[0], causing all sort of problems | |
3314 | - # (the dirname of $[0] is not the place where we might find the | |
3315 | - # original and so on. Autoconf is especially sensitive to this). | |
3316 | - . "./$as_me.lineno" | |
3317 | - # Exit status is that of the last command. | |
3318 | - exit | |
3319 | -} | |
3320 | - | |
3321 | - | |
3322 | -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
3323 | - as_dirname=dirname | |
3324 | -else | |
3325 | - as_dirname=false | |
3326 | -fi | |
3327 | - | |
3328 | -ECHO_C= ECHO_N= ECHO_T= | |
3329 | -case `echo -n x` in | |
3330 | --n*) | |
3331 | - case `echo 'x\c'` in | |
3332 | - *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
3333 | - *) ECHO_C='\c';; | |
3334 | - esac;; | |
3335 | -*) | |
3336 | - ECHO_N='-n';; | |
3337 | -esac | |
3338 | - | |
3339 | -if expr a : '\(a\)' >/dev/null 2>&1 && | |
3340 | - test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3341 | - as_expr=expr | |
3342 | -else | |
3343 | - as_expr=false | |
3344 | -fi | |
3345 | - | |
3346 | -rm -f conf$$ conf$$.exe conf$$.file | |
3347 | -if test -d conf$$.dir; then | |
3348 | - rm -f conf$$.dir/conf$$.file | |
3349 | -else | |
3350 | - rm -f conf$$.dir | |
3351 | - mkdir conf$$.dir | |
3352 | -fi | |
3353 | -echo >conf$$.file | |
3354 | -if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3355 | - as_ln_s='ln -s' | |
3356 | - # ... but there are two gotchas: | |
3357 | - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
3358 | - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
3359 | - # In both cases, we have to default to `cp -p'. | |
3360 | - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
3361 | - as_ln_s='cp -p' | |
3362 | -elif ln conf$$.file conf$$ 2>/dev/null; then | |
3363 | - as_ln_s=ln | |
3364 | -else | |
3365 | - as_ln_s='cp -p' | |
3366 | -fi | |
3367 | -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
3368 | -rmdir conf$$.dir 2>/dev/null | |
3369 | - | |
3370 | -if mkdir -p . 2>/dev/null; then | |
3371 | - as_mkdir_p=: | |
3372 | -else | |
3373 | - test -d ./-p && rmdir ./-p | |
3374 | - as_mkdir_p=false | |
3375 | -fi | |
3376 | - | |
3377 | -if test -x / >/dev/null 2>&1; then | |
3378 | - as_test_x='test -x' | |
3379 | -else | |
3380 | - if ls -dL / >/dev/null 2>&1; then | |
3381 | - as_ls_L_option=L | |
3382 | - else | |
3383 | - as_ls_L_option= | |
3384 | - fi | |
3385 | - as_test_x=' | |
3386 | - eval sh -c '\'' | |
3387 | - if test -d "$1"; then | |
3388 | - test -d "$1/."; | |
3389 | - else | |
3390 | - case $1 in | |
3391 | - -*)set "./$1";; | |
3392 | - esac; | |
3393 | - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
3394 | - ???[sx]*):;;*)false;;esac;fi | |
3395 | - '\'' sh | |
3396 | - ' | |
3397 | -fi | |
3398 | -as_executable_p=$as_test_x | |
3399 | - | |
3400 | -# Sed expression to map a string onto a valid CPP name. | |
3401 | -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
3402 | - | |
3403 | -# Sed expression to map a string onto a valid variable name. | |
3404 | -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
3405 | - | |
3406 | - | |
3407 | -exec 6>&1 | |
3408 | - | |
3409 | -# Save the log message, to keep $[0] and so on meaningful, and to | |
3410 | -# report actual input values of CONFIG_FILES etc. instead of their | |
3411 | -# values after options handling. | |
3412 | -ac_log=" | |
3413 | -This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was | |
3414 | -generated by GNU Autoconf 2.61. Invocation command line was | |
3415 | - | |
3416 | - CONFIG_FILES = $CONFIG_FILES | |
3417 | - CONFIG_HEADERS = $CONFIG_HEADERS | |
3418 | - CONFIG_LINKS = $CONFIG_LINKS | |
3419 | - CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3420 | - $ $0 $@ | |
3421 | - | |
3422 | -on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
3423 | -" | |
3424 | - | |
3425 | -_ACEOF | |
3426 | - | |
3427 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3428 | -# Files that config.status was made for. | |
3429 | -config_files="$ac_config_files" | |
3430 | - | |
3431 | -_ACEOF | |
3432 | - | |
3433 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3434 | -ac_cs_usage="\ | |
3435 | -\`$as_me' instantiates files from templates according to the | |
3436 | -current configuration. | |
3437 | - | |
3438 | -Usage: $0 [OPTIONS] [FILE]... | |
3439 | - | |
3440 | - -h, --help print this help, then exit | |
3441 | - -V, --version print version number and configuration settings, then exit | |
3442 | - -q, --quiet do not print progress messages | |
3443 | - -d, --debug don't remove temporary files | |
3444 | - --recheck update $as_me by reconfiguring in the same conditions | |
3445 | - --file=FILE[:TEMPLATE] | |
3446 | - instantiate the configuration file FILE | |
3447 | - | |
3448 | -Configuration files: | |
3449 | -$config_files | |
3450 | - | |
3451 | -Report bugs to <bug-autoconf@gnu.org>." | |
3452 | - | |
3453 | -_ACEOF | |
3454 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3455 | -ac_cs_version="\\ | |
3456 | -FULL-PACKAGE-NAME config.status VERSION | |
3457 | -configured by $0, generated by GNU Autoconf 2.61, | |
3458 | - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
3459 | - | |
3460 | -Copyright (C) 2006 Free Software Foundation, Inc. | |
3461 | -This config.status script is free software; the Free Software Foundation | |
3462 | -gives unlimited permission to copy, distribute and modify it." | |
3463 | - | |
3464 | -ac_pwd='$ac_pwd' | |
3465 | -srcdir='$srcdir' | |
3466 | -_ACEOF | |
3467 | - | |
3468 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3469 | -# If no file are specified by the user, then we need to provide default | |
3470 | -# value. By we need to know if files were specified by the user. | |
3471 | -ac_need_defaults=: | |
3472 | -while test $# != 0 | |
3473 | -do | |
3474 | - case $1 in | |
3475 | - --*=*) | |
3476 | - ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
3477 | - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
3478 | - ac_shift=: | |
3479 | - ;; | |
3480 | - *) | |
3481 | - ac_option=$1 | |
3482 | - ac_optarg=$2 | |
3483 | - ac_shift=shift | |
3484 | - ;; | |
3485 | - esac | |
3486 | - | |
3487 | - case $ac_option in | |
3488 | - # Handling of the options. | |
3489 | - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3490 | - ac_cs_recheck=: ;; | |
3491 | - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
3492 | - echo "$ac_cs_version"; exit ;; | |
3493 | - --debug | --debu | --deb | --de | --d | -d ) | |
3494 | - debug=: ;; | |
3495 | - --file | --fil | --fi | --f ) | |
3496 | - $ac_shift | |
3497 | - CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
3498 | - ac_need_defaults=false;; | |
3499 | - --he | --h | --help | --hel | -h ) | |
3500 | - echo "$ac_cs_usage"; exit ;; | |
3501 | - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
3502 | - | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
3503 | - ac_cs_silent=: ;; | |
3504 | - | |
3505 | - # This is an error. | |
3506 | - -*) { echo "$as_me: error: unrecognized option: $1 | |
3507 | -Try \`$0 --help' for more information." >&2 | |
3508 | - { (exit 1); exit 1; }; } ;; | |
3509 | - | |
3510 | - *) ac_config_targets="$ac_config_targets $1" | |
3511 | - ac_need_defaults=false ;; | |
3512 | - | |
3513 | - esac | |
3514 | - shift | |
3515 | -done | |
3516 | - | |
3517 | -ac_configure_extra_args= | |
3518 | - | |
3519 | -if $ac_cs_silent; then | |
3520 | - exec 6>/dev/null | |
3521 | - ac_configure_extra_args="$ac_configure_extra_args --silent" | |
3522 | -fi | |
3523 | - | |
3524 | -_ACEOF | |
3525 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3526 | -if \$ac_cs_recheck; then | |
3527 | - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
3528 | - CONFIG_SHELL=$SHELL | |
3529 | - export CONFIG_SHELL | |
3530 | - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
3531 | -fi | |
3532 | - | |
3533 | -_ACEOF | |
3534 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3535 | -exec 5>>config.log | |
3536 | -{ | |
3537 | - echo | |
3538 | - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3539 | -## Running $as_me. ## | |
3540 | -_ASBOX | |
3541 | - echo "$ac_log" | |
3542 | -} >&5 | |
3543 | - | |
3544 | -_ACEOF | |
3545 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3546 | -_ACEOF | |
3547 | - | |
3548 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3549 | - | |
3550 | -# Handling of arguments. | |
3551 | -for ac_config_target in $ac_config_targets | |
3552 | -do | |
3553 | - case $ac_config_target in | |
3554 | - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3555 | - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
3556 | - "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
3557 | - | |
3558 | - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
3559 | -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
3560 | - { (exit 1); exit 1; }; };; | |
3561 | - esac | |
3562 | -done | |
3563 | - | |
3564 | - | |
3565 | -# If the user did not use the arguments to specify the items to instantiate, | |
3566 | -# then the envvar interface is used. Set only those that are not. | |
3567 | -# We use the long form for the default assignment because of an extremely | |
3568 | -# bizarre bug on SunOS 4.1.3. | |
3569 | -if $ac_need_defaults; then | |
3570 | - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3571 | -fi | |
3572 | - | |
3573 | -# Have a temporary directory for convenience. Make it in the build tree | |
3574 | -# simply because there is no reason against having it here, and in addition, | |
3575 | -# creating and moving files from /tmp can sometimes cause problems. | |
3576 | -# Hook for its removal unless debugging. | |
3577 | -# Note that there is a small window in which the directory will not be cleaned: | |
3578 | -# after its creation but before its name has been assigned to `$tmp'. | |
3579 | -$debug || | |
3580 | -{ | |
3581 | - tmp= | |
3582 | - trap 'exit_status=$? | |
3583 | - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
3584 | -' 0 | |
3585 | - trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3586 | -} | |
3587 | -# Create a (secure) tmp directory for tmp files. | |
3588 | - | |
3589 | -{ | |
3590 | - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
3591 | - test -n "$tmp" && test -d "$tmp" | |
3592 | -} || | |
3593 | -{ | |
3594 | - tmp=./conf$$-$RANDOM | |
3595 | - (umask 077 && mkdir "$tmp") | |
3596 | -} || | |
3597 | -{ | |
3598 | - echo "$me: cannot create a temporary directory in ." >&2 | |
3599 | - { (exit 1); exit 1; } | |
3600 | -} | |
3601 | - | |
3602 | -# | |
3603 | -# Set up the sed scripts for CONFIG_FILES section. | |
3604 | -# | |
3605 | - | |
3606 | -# No need to generate the scripts if there are no CONFIG_FILES. | |
3607 | -# This happens for instance when ./config.status config.h | |
3608 | -if test -n "$CONFIG_FILES"; then | |
3609 | - | |
3610 | -_ACEOF | |
3611 | - | |
3612 | - | |
3613 | - | |
3614 | -ac_delim='%!_!# ' | |
3615 | -for ac_last_try in false false false false false :; do | |
3616 | - cat >conf$$subs.sed <<_ACEOF | |
3617 | -SHELL!$SHELL$ac_delim | |
3618 | -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
3619 | -PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
3620 | -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
3621 | -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
3622 | -PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
3623 | -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
3624 | -exec_prefix!$exec_prefix$ac_delim | |
3625 | -prefix!$prefix$ac_delim | |
3626 | -program_transform_name!$program_transform_name$ac_delim | |
3627 | -bindir!$bindir$ac_delim | |
3628 | -sbindir!$sbindir$ac_delim | |
3629 | -libexecdir!$libexecdir$ac_delim | |
3630 | -datarootdir!$datarootdir$ac_delim | |
3631 | -datadir!$datadir$ac_delim | |
3632 | -sysconfdir!$sysconfdir$ac_delim | |
3633 | -sharedstatedir!$sharedstatedir$ac_delim | |
3634 | -localstatedir!$localstatedir$ac_delim | |
3635 | -includedir!$includedir$ac_delim | |
3636 | -oldincludedir!$oldincludedir$ac_delim | |
3637 | -docdir!$docdir$ac_delim | |
3638 | -infodir!$infodir$ac_delim | |
3639 | -htmldir!$htmldir$ac_delim | |
3640 | -dvidir!$dvidir$ac_delim | |
3641 | -pdfdir!$pdfdir$ac_delim | |
3642 | -psdir!$psdir$ac_delim | |
3643 | -libdir!$libdir$ac_delim | |
3644 | -localedir!$localedir$ac_delim | |
3645 | -mandir!$mandir$ac_delim | |
3646 | -DEFS!$DEFS$ac_delim | |
3647 | -ECHO_C!$ECHO_C$ac_delim | |
3648 | -ECHO_N!$ECHO_N$ac_delim | |
3649 | -ECHO_T!$ECHO_T$ac_delim | |
3650 | -LIBS!$LIBS$ac_delim | |
3651 | -build_alias!$build_alias$ac_delim | |
3652 | -host_alias!$host_alias$ac_delim | |
3653 | -target_alias!$target_alias$ac_delim | |
3654 | -CC!$CC$ac_delim | |
3655 | -CFLAGS!$CFLAGS$ac_delim | |
3656 | -LDFLAGS!$LDFLAGS$ac_delim | |
3657 | -CPPFLAGS!$CPPFLAGS$ac_delim | |
3658 | -ac_ct_CC!$ac_ct_CC$ac_delim | |
3659 | -EXEEXT!$EXEEXT$ac_delim | |
3660 | -OBJEXT!$OBJEXT$ac_delim | |
3661 | -CXX!$CXX$ac_delim | |
3662 | -CXXFLAGS!$CXXFLAGS$ac_delim | |
3663 | -ac_ct_CXX!$ac_ct_CXX$ac_delim | |
3664 | -AR!$AR$ac_delim | |
3665 | -LIBOBJS!$LIBOBJS$ac_delim | |
3666 | -LTLIBOBJS!$LTLIBOBJS$ac_delim | |
3667 | -_ACEOF | |
3668 | - | |
3669 | - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then | |
3670 | - break | |
3671 | - elif $ac_last_try; then | |
3672 | - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
3673 | -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
3674 | - { (exit 1); exit 1; }; } | |
3675 | - else | |
3676 | - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
3677 | - fi | |
3678 | -done | |
3679 | - | |
3680 | -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
3681 | -if test -n "$ac_eof"; then | |
3682 | - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
3683 | - ac_eof=`expr $ac_eof + 1` | |
3684 | -fi | |
3685 | - | |
3686 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3687 | -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
3688 | -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
3689 | -_ACEOF | |
3690 | -sed ' | |
3691 | -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
3692 | -s/^/s,@/; s/!/@,|#_!!_#|/ | |
3693 | -:n | |
3694 | -t n | |
3695 | -s/'"$ac_delim"'$/,g/; t | |
3696 | -s/$/\\/; p | |
3697 | -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
3698 | -' >>$CONFIG_STATUS <conf$$subs.sed | |
3699 | -rm -f conf$$subs.sed | |
3700 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3701 | -:end | |
3702 | -s/|#_!!_#|//g | |
3703 | -CEOF$ac_eof | |
3704 | -_ACEOF | |
3705 | - | |
3706 | - | |
3707 | -# VPATH may cause trouble with some makes, so we remove $(srcdir), | |
3708 | -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3709 | -# trailing colons and then remove the whole line if VPATH becomes empty | |
3710 | -# (actually we leave an empty line to preserve line numbers). | |
3711 | -if test "x$srcdir" = x.; then | |
3712 | - ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3713 | -s/:*\$(srcdir):*/:/ | |
3714 | -s/:*\${srcdir}:*/:/ | |
3715 | -s/:*@srcdir@:*/:/ | |
3716 | -s/^\([^=]*=[ ]*\):*/\1/ | |
3717 | -s/:*$// | |
3718 | -s/^[^=]*=[ ]*$// | |
3719 | -}' | |
3720 | -fi | |
3721 | - | |
3722 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3723 | -fi # test -n "$CONFIG_FILES" | |
3724 | - | |
3725 | - | |
3726 | -for ac_tag in :F $CONFIG_FILES | |
3727 | -do | |
3728 | - case $ac_tag in | |
3729 | - :[FHLC]) ac_mode=$ac_tag; continue;; | |
3730 | - esac | |
3731 | - case $ac_mode$ac_tag in | |
3732 | - :[FHL]*:*);; | |
3733 | - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
3734 | -echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
3735 | - { (exit 1); exit 1; }; };; | |
3736 | - :[FH]-) ac_tag=-:-;; | |
3737 | - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
3738 | - esac | |
3739 | - ac_save_IFS=$IFS | |
3740 | - IFS=: | |
3741 | - set x $ac_tag | |
3742 | - IFS=$ac_save_IFS | |
3743 | - shift | |
3744 | - ac_file=$1 | |
3745 | - shift | |
3746 | - | |
3747 | - case $ac_mode in | |
3748 | - :L) ac_source=$1;; | |
3749 | - :[FH]) | |
3750 | - ac_file_inputs= | |
3751 | - for ac_f | |
3752 | - do | |
3753 | - case $ac_f in | |
3754 | - -) ac_f="$tmp/stdin";; | |
3755 | - *) # Look for the file first in the build tree, then in the source tree | |
3756 | - # (if the path is not absolute). The absolute path cannot be DOS-style, | |
3757 | - # because $ac_f cannot contain `:'. | |
3758 | - test -f "$ac_f" || | |
3759 | - case $ac_f in | |
3760 | - [\\/$]*) false;; | |
3761 | - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
3762 | - esac || | |
3763 | - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
3764 | -echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
3765 | - { (exit 1); exit 1; }; };; | |
3766 | - esac | |
3767 | - ac_file_inputs="$ac_file_inputs $ac_f" | |
3768 | - done | |
3769 | - | |
3770 | - # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3771 | - # use $as_me), people would be surprised to read: | |
3772 | - # /* config.h. Generated by config.status. */ | |
3773 | - configure_input="Generated from "`IFS=: | |
3774 | - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
3775 | - if test x"$ac_file" != x-; then | |
3776 | - configure_input="$ac_file. $configure_input" | |
3777 | - { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
3778 | -echo "$as_me: creating $ac_file" >&6;} | |
3779 | - fi | |
3780 | - | |
3781 | - case $ac_tag in | |
3782 | - *:-:* | *:-) cat >"$tmp/stdin";; | |
3783 | - esac | |
3784 | - ;; | |
3785 | - esac | |
3786 | - | |
3787 | - ac_dir=`$as_dirname -- "$ac_file" || | |
3788 | -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3789 | - X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3790 | - X"$ac_file" : 'X\(//\)$' \| \ | |
3791 | - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
3792 | -echo X"$ac_file" | | |
3793 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3794 | - s//\1/ | |
3795 | - q | |
3796 | - } | |
3797 | - /^X\(\/\/\)[^/].*/{ | |
3798 | - s//\1/ | |
3799 | - q | |
3800 | - } | |
3801 | - /^X\(\/\/\)$/{ | |
3802 | - s//\1/ | |
3803 | - q | |
3804 | - } | |
3805 | - /^X\(\/\).*/{ | |
3806 | - s//\1/ | |
3807 | - q | |
3808 | - } | |
3809 | - s/.*/./; q'` | |
3810 | - { as_dir="$ac_dir" | |
3811 | - case $as_dir in #( | |
3812 | - -*) as_dir=./$as_dir;; | |
3813 | - esac | |
3814 | - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
3815 | - as_dirs= | |
3816 | - while :; do | |
3817 | - case $as_dir in #( | |
3818 | - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
3819 | - *) as_qdir=$as_dir;; | |
3820 | - esac | |
3821 | - as_dirs="'$as_qdir' $as_dirs" | |
3822 | - as_dir=`$as_dirname -- "$as_dir" || | |
3823 | -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3824 | - X"$as_dir" : 'X\(//\)[^/]' \| \ | |
3825 | - X"$as_dir" : 'X\(//\)$' \| \ | |
3826 | - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
3827 | -echo X"$as_dir" | | |
3828 | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3829 | - s//\1/ | |
3830 | - q | |
3831 | - } | |
3832 | - /^X\(\/\/\)[^/].*/{ | |
3833 | - s//\1/ | |
3834 | - q | |
3835 | - } | |
3836 | - /^X\(\/\/\)$/{ | |
3837 | - s//\1/ | |
3838 | - q | |
3839 | - } | |
3840 | - /^X\(\/\).*/{ | |
3841 | - s//\1/ | |
3842 | - q | |
3843 | - } | |
3844 | - s/.*/./; q'` | |
3845 | - test -d "$as_dir" && break | |
3846 | - done | |
3847 | - test -z "$as_dirs" || eval "mkdir $as_dirs" | |
3848 | - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
3849 | -echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
3850 | - { (exit 1); exit 1; }; }; } | |
3851 | - ac_builddir=. | |
3852 | - | |
3853 | -case "$ac_dir" in | |
3854 | -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3855 | -*) | |
3856 | - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
3857 | - # A ".." for each directory in $ac_dir_suffix. | |
3858 | - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
3859 | - case $ac_top_builddir_sub in | |
3860 | - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
3861 | - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
3862 | - esac ;; | |
3863 | -esac | |
3864 | -ac_abs_top_builddir=$ac_pwd | |
3865 | -ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
3866 | -# for backward compatibility: | |
3867 | -ac_top_builddir=$ac_top_build_prefix | |
3868 | - | |
3869 | -case $srcdir in | |
3870 | - .) # We are building in place. | |
3871 | - ac_srcdir=. | |
3872 | - ac_top_srcdir=$ac_top_builddir_sub | |
3873 | - ac_abs_top_srcdir=$ac_pwd ;; | |
3874 | - [\\/]* | ?:[\\/]* ) # Absolute name. | |
3875 | - ac_srcdir=$srcdir$ac_dir_suffix; | |
3876 | - ac_top_srcdir=$srcdir | |
3877 | - ac_abs_top_srcdir=$srcdir ;; | |
3878 | - *) # Relative name. | |
3879 | - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
3880 | - ac_top_srcdir=$ac_top_build_prefix$srcdir | |
3881 | - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3882 | -esac | |
3883 | -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
3884 | - | |
3885 | - | |
3886 | - case $ac_mode in | |
3887 | - :F) | |
3888 | - # | |
3889 | - # CONFIG_FILE | |
3890 | - # | |
3891 | - | |
3892 | -_ACEOF | |
3893 | - | |
3894 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3895 | -# If the template does not know about datarootdir, expand it. | |
3896 | -# FIXME: This hack should be removed a few years after 2.60. | |
3897 | -ac_datarootdir_hack=; ac_datarootdir_seen= | |
3898 | - | |
3899 | -case `sed -n '/datarootdir/ { | |
3900 | - p | |
3901 | - q | |
3902 | -} | |
3903 | -/@datadir@/p | |
3904 | -/@docdir@/p | |
3905 | -/@infodir@/p | |
3906 | -/@localedir@/p | |
3907 | -/@mandir@/p | |
3908 | -' $ac_file_inputs` in | |
3909 | -*datarootdir*) ac_datarootdir_seen=yes;; | |
3910 | -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
3911 | - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
3912 | -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
3913 | -_ACEOF | |
3914 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3915 | - ac_datarootdir_hack=' | |
3916 | - s&@datadir@&$datadir&g | |
3917 | - s&@docdir@&$docdir&g | |
3918 | - s&@infodir@&$infodir&g | |
3919 | - s&@localedir@&$localedir&g | |
3920 | - s&@mandir@&$mandir&g | |
3921 | - s&\\\${datarootdir}&$datarootdir&g' ;; | |
3922 | -esac | |
3923 | -_ACEOF | |
3924 | - | |
3925 | -# Neutralize VPATH when `$srcdir' = `.'. | |
3926 | -# Shell code in configure.ac might set extrasub. | |
3927 | -# FIXME: do we really want to maintain this feature? | |
3928 | -cat >>$CONFIG_STATUS <<_ACEOF | |
3929 | - sed "$ac_vpsub | |
3930 | -$extrasub | |
3931 | -_ACEOF | |
3932 | -cat >>$CONFIG_STATUS <<\_ACEOF | |
3933 | -:t | |
3934 | -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3935 | -s&@configure_input@&$configure_input&;t t | |
3936 | -s&@top_builddir@&$ac_top_builddir_sub&;t t | |
3937 | -s&@srcdir@&$ac_srcdir&;t t | |
3938 | -s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
3939 | -s&@top_srcdir@&$ac_top_srcdir&;t t | |
3940 | -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
3941 | -s&@builddir@&$ac_builddir&;t t | |
3942 | -s&@abs_builddir@&$ac_abs_builddir&;t t | |
3943 | -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
3944 | -$ac_datarootdir_hack | |
3945 | -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
3946 | - | |
3947 | -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
3948 | - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
3949 | - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
3950 | - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3951 | -which seems to be undefined. Please make sure it is defined." >&5 | |
3952 | -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
3953 | -which seems to be undefined. Please make sure it is defined." >&2;} | |
3954 | - | |
3955 | - rm -f "$tmp/stdin" | |
3956 | - case $ac_file in | |
3957 | - -) cat "$tmp/out"; rm -f "$tmp/out";; | |
3958 | - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
3959 | - esac | |
3960 | - ;; | |
3961 | - | |
3962 | - | |
3963 | - | |
3964 | - esac | |
3965 | - | |
3966 | -done # for ac_tag | |
3967 | - | |
3968 | - | |
3969 | -{ (exit 0); exit 0; } | |
3970 | -_ACEOF | |
3971 | -chmod +x $CONFIG_STATUS | |
3972 | -ac_clean_files=$ac_clean_files_save | |
3973 | - | |
3974 | - | |
3975 | -# configure is writing to config.log, and then calls config.status. | |
3976 | -# config.status does its own redirection, appending to config.log. | |
3977 | -# Unfortunately, on DOS this fails, as config.log is still kept open | |
3978 | -# by configure, so config.status won't be able to write to it; its | |
3979 | -# output is simply discarded. So we exec the FD to /dev/null, | |
3980 | -# effectively closing config.log, so it can be properly (re)opened and | |
3981 | -# appended to by config.status. When coming back to configure, we | |
3982 | -# need to make the FD available again. | |
3983 | -if test "$no_create" != yes; then | |
3984 | - ac_cs_success=: | |
3985 | - ac_config_status_args= | |
3986 | - test "$silent" = yes && | |
3987 | - ac_config_status_args="$ac_config_status_args --quiet" | |
3988 | - exec 5>/dev/null | |
3989 | - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
3990 | - exec 5>>config.log | |
3991 | - # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
3992 | - # would make configure fail if this is the last instruction. | |
3993 | - $ac_cs_success || { (exit 1); exit 1; } | |
3994 | -fi | |
3995 | - | |
3996 | - |
@@ -1,12 +0,0 @@ | ||
1 | -CC=gcc | |
2 | -CXX=g++ | |
3 | -all: | |
4 | - cd src && $(MAKE) | |
5 | - | |
6 | -.PHONY: test | |
7 | -test: | |
8 | - cd test && $(MAKE) | |
9 | - | |
10 | -clean: | |
11 | - cd src && $(MAKE) clean | |
12 | - cd test && $(MAKE) clean | |
\ No newline at end of file |
@@ -1,25 +0,0 @@ | ||
1 | -CC=gcc | |
2 | -CXX=g++ | |
3 | -SRCS=test_particle.cc test_particles.cc test_filter.cc | |
4 | -OBJS=$(SRCS:.cc=.o) | |
5 | -TARGETS=$(SRCS:.cc=) | |
6 | -CFLAGS=-I/usr/local/include/cutter -I. -I../src | |
7 | -LDFLAGS=-L. -L../src -lparticle -lcppcutter | |
8 | -all: $(TARGETS) | |
9 | - | |
10 | -test_particle: test_particle.o | |
11 | - $(CXX) -o $@.so $< $(LDFLAGS) -shared | |
12 | - | |
13 | -test_particles: test_particles.o | |
14 | - $(CXX) -o $@.so $< $(LDFLAGS) -shared | |
15 | - | |
16 | -test_filter: test_filter.o | |
17 | - $(CXX) -o $@.so $< $(LDFLAGS) -shared | |
18 | - | |
19 | - | |
20 | -.cc.o: $(SRCS) | |
21 | - $(CXX) $(CFLAGS) -c $< | |
22 | - | |
23 | - | |
24 | -clean: | |
25 | - rm -f *.o *.a *~ *.lo *.la *.so | |
\ No newline at end of file |
@@ -4,21 +4,21 @@ | ||
4 | 4 | OBJS=$(SRCS:.cc=.o) |
5 | 5 | TARGETS=$(SRCS:.cc=) |
6 | 6 | CFLAGS=-I/usr/local/include/cutter -I. -I../src |
7 | -LDFLAGS=-L. -L../src -lparticle -lcppcutter | |
7 | +LDFLAGS=@LDFLAGS@ -L. -L../src -lparticle -lcppcutter | |
8 | 8 | all: $(TARGETS) |
9 | 9 | |
10 | 10 | test_particle: test_particle.o |
11 | - $(CXX) -o $@.so $< $(LDFLAGS) -shared | |
11 | + $(CXX) -o $@.so $@.o $(LDFLAGS) -shared | |
12 | 12 | |
13 | 13 | test_particles: test_particles.o |
14 | - $(CXX) -o $@.so $< $(LDFLAGS) -shared | |
14 | + $(CXX) -o $@.so $@.o $(LDFLAGS) -shared | |
15 | 15 | |
16 | 16 | test_filter: test_filter.o |
17 | - $(CXX) -o $@.so $< $(LDFLAGS) -shared | |
17 | + $(CXX) -o $@.so $@.o $(LDFLAGS) -shared | |
18 | 18 | |
19 | 19 | |
20 | 20 | .cc.o: $(SRCS) |
21 | - $(CXX) $(CFLAGS) -c $< | |
21 | + $(CXX) $(CFLAGS) -c $< | |
22 | 22 | |
23 | 23 | |
24 | 24 | clean: |
@@ -10,6 +10,12 @@ | ||
10 | 10 | AC_CHECK_PROG(AR, ar, ar, not found) |
11 | 11 | # Checks for libraries. |
12 | 12 | |
13 | +for i in /usr/lib /usr/local/lib; do | |
14 | + if test -e $i/libcppcutter.so; then | |
15 | + LDFLAGS=-L$i | |
16 | + fi | |
17 | +done | |
18 | + | |
13 | 19 | # Checks for header files. |
14 | 20 | |
15 | 21 | # Checks for typedefs, structures, and compiler characteristics. |
@@ -18,5 +24,6 @@ | ||
18 | 24 | |
19 | 25 | AC_SUBST(CC) |
20 | 26 | AC_SUBST(CXX) |
27 | +AC_SUBST(LDFLAGS) | |
21 | 28 | AC_OUTPUT(Makefile src/Makefile test/Makefile) |
22 | 29 |
@@ -0,0 +1,461 @@ | ||
1 | +// MersenneTwister.h | |
2 | +// Mersenne Twister random number generator -- a C++ class MTRand | |
3 | +// Based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus | |
4 | +// Richard J. Wagner v1.1 28 September 2009 wagnerr@umich.edu | |
5 | + | |
6 | +// The Mersenne Twister is an algorithm for generating random numbers. It | |
7 | +// was designed with consideration of the flaws in various other generators. | |
8 | +// The period, 2^19937-1, and the order of equidistribution, 623 dimensions, | |
9 | +// are far greater. The generator is also fast; it avoids multiplication and | |
10 | +// division, and it benefits from caches and pipelines. For more information | |
11 | +// see the inventors' web page at | |
12 | +// http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html | |
13 | + | |
14 | +// Reference | |
15 | +// M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-Dimensionally | |
16 | +// Equidistributed Uniform Pseudo-Random Number Generator", ACM Transactions on | |
17 | +// Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3-30. | |
18 | + | |
19 | +// Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, | |
20 | +// Copyright (C) 2000 - 2009, Richard J. Wagner | |
21 | +// All rights reserved. | |
22 | +// | |
23 | +// Redistribution and use in source and binary forms, with or without | |
24 | +// modification, are permitted provided that the following conditions | |
25 | +// are met: | |
26 | +// | |
27 | +// 1. Redistributions of source code must retain the above copyright | |
28 | +// notice, this list of conditions and the following disclaimer. | |
29 | +// | |
30 | +// 2. Redistributions in binary form must reproduce the above copyright | |
31 | +// notice, this list of conditions and the following disclaimer in the | |
32 | +// documentation and/or other materials provided with the distribution. | |
33 | +// | |
34 | +// 3. The names of its contributors may not be used to endorse or promote | |
35 | +// products derived from this software without specific prior written | |
36 | +// permission. | |
37 | +// | |
38 | +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
39 | +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
40 | +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
41 | +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | |
42 | +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
43 | +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
44 | +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
45 | +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
46 | +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
47 | +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
48 | +// POSSIBILITY OF SUCH DAMAGE. | |
49 | + | |
50 | +// The original code included the following notice: | |
51 | +// | |
52 | +// When you use this, send an email to: m-mat@math.sci.hiroshima-u.ac.jp | |
53 | +// with an appropriate reference to your work. | |
54 | +// | |
55 | +// It would be nice to CC: wagnerr@umich.edu and Cokus@math.washington.edu | |
56 | +// when you write. | |
57 | + | |
58 | +#ifndef MERSENNETWISTER_H | |
59 | +#define MERSENNETWISTER_H | |
60 | + | |
61 | +// Not thread safe (unless auto-initialization is avoided and each thread has | |
62 | +// its own MTRand object) | |
63 | + | |
64 | +#include <iostream> | |
65 | +#include <climits> | |
66 | +#include <cstdio> | |
67 | +#include <ctime> | |
68 | +#include <cmath> | |
69 | + | |
70 | +class MTRand { | |
71 | +// Data | |
72 | +public: | |
73 | + typedef unsigned long uint32; // unsigned integer type, at least 32 bits | |
74 | + | |
75 | + enum { N = 624 }; // length of state vector | |
76 | + enum { SAVE = N + 1 }; // length of array for save() | |
77 | + | |
78 | +protected: | |
79 | + enum { M = 397 }; // period parameter | |
80 | + | |
81 | + uint32 state[N]; // internal state | |
82 | + uint32 *pNext; // next value to get from state | |
83 | + int left; // number of values left before reload needed | |
84 | + | |
85 | +// Methods | |
86 | +public: | |
87 | + MTRand( const uint32 oneSeed ); // initialize with a simple uint32 | |
88 | + MTRand( uint32 *const bigSeed, uint32 const seedLength = N ); // or array | |
89 | + MTRand(); // auto-initialize with /dev/urandom or time() and clock() | |
90 | + MTRand( const MTRand& o ); // copy | |
91 | + | |
92 | + // Do NOT use for CRYPTOGRAPHY without securely hashing several returned | |
93 | + // values together, otherwise the generator state can be learned after | |
94 | + // reading 624 consecutive values. | |
95 | + | |
96 | + // Access to 32-bit random numbers | |
97 | + uint32 randInt(); // integer in [0,2^32-1] | |
98 | + uint32 randInt( const uint32 n ); // integer in [0,n] for n < 2^32 | |
99 | + double rand(); // real number in [0,1] | |
100 | + double rand( const double n ); // real number in [0,n] | |
101 | + double randExc(); // real number in [0,1) | |
102 | + double randExc( const double n ); // real number in [0,n) | |
103 | + double randDblExc(); // real number in (0,1) | |
104 | + double randDblExc( const double n ); // real number in (0,n) | |
105 | + double operator()(); // same as rand() | |
106 | + | |
107 | + // Access to 53-bit random numbers (capacity of IEEE double precision) | |
108 | + double rand53(); // real number in [0,1) | |
109 | + | |
110 | + // Access to nonuniform random number distributions | |
111 | + double randNorm( const double mean = 0.0, const double stddev = 1.0 ); | |
112 | + | |
113 | + // Re-seeding functions with same behavior as initializers | |
114 | + void seed( const uint32 oneSeed ); | |
115 | + void seed( uint32 *const bigSeed, const uint32 seedLength = N ); | |
116 | + void seed(); | |
117 | + | |
118 | + // Saving and loading generator state | |
119 | + void save( uint32* saveArray ) const; // to array of size SAVE | |
120 | + void load( uint32 *const loadArray ); // from such array | |
121 | + friend std::ostream& operator<<( std::ostream& os, const MTRand& mtrand ); | |
122 | + friend std::istream& operator>>( std::istream& is, MTRand& mtrand ); | |
123 | + MTRand& operator=( const MTRand& o ); | |
124 | + | |
125 | +protected: | |
126 | + void initialize( const uint32 oneSeed ); | |
127 | + void reload(); | |
128 | + uint32 hiBit( const uint32 u ) const { return u & 0x80000000UL; } | |
129 | + uint32 loBit( const uint32 u ) const { return u & 0x00000001UL; } | |
130 | + uint32 loBits( const uint32 u ) const { return u & 0x7fffffffUL; } | |
131 | + uint32 mixBits( const uint32 u, const uint32 v ) const | |
132 | + { return hiBit(u) | loBits(v); } | |
133 | + uint32 magic( const uint32 u ) const | |
134 | + { return loBit(u) ? 0x9908b0dfUL : 0x0UL; } | |
135 | + uint32 twist( const uint32 m, const uint32 s0, const uint32 s1 ) const | |
136 | + { return m ^ (mixBits(s0,s1)>>1) ^ magic(s1); } | |
137 | + static uint32 hash( time_t t, clock_t c ); | |
138 | +}; | |
139 | + | |
140 | +// Functions are defined in order of usage to assist inlining | |
141 | + | |
142 | +inline MTRand::uint32 MTRand::hash( time_t t, clock_t c ) | |
143 | +{ | |
144 | + // Get a uint32 from t and c | |
145 | + // Better than uint32(x) in case x is floating point in [0,1] | |
146 | + // Based on code by Lawrence Kirby (fred@genesis.demon.co.uk) | |
147 | + | |
148 | + static uint32 differ = 0; // guarantee time-based seeds will change | |
149 | + | |
150 | + uint32 h1 = 0; | |
151 | + unsigned char *p = (unsigned char *) &t; | |
152 | + for( size_t i = 0; i < sizeof(t); ++i ) | |
153 | + { | |
154 | + h1 *= UCHAR_MAX + 2U; | |
155 | + h1 += p[i]; | |
156 | + } | |
157 | + uint32 h2 = 0; | |
158 | + p = (unsigned char *) &c; | |
159 | + for( size_t j = 0; j < sizeof(c); ++j ) | |
160 | + { | |
161 | + h2 *= UCHAR_MAX + 2U; | |
162 | + h2 += p[j]; | |
163 | + } | |
164 | + return ( h1 + differ++ ) ^ h2; | |
165 | +} | |
166 | + | |
167 | +inline void MTRand::initialize( const uint32 seed ) | |
168 | +{ | |
169 | + // Initialize generator state with seed | |
170 | + // See Knuth TAOCP Vol 2, 3rd Ed, p.106 for multiplier. | |
171 | + // In previous versions, most significant bits (MSBs) of the seed affect | |
172 | + // only MSBs of the state array. Modified 9 Jan 2002 by Makoto Matsumoto. | |
173 | + register uint32 *s = state; | |
174 | + register uint32 *r = state; | |
175 | + register int i = 1; | |
176 | + *s++ = seed & 0xffffffffUL; | |
177 | + for( ; i < N; ++i ) | |
178 | + { | |
179 | + *s++ = ( 1812433253UL * ( *r ^ (*r >> 30) ) + i ) & 0xffffffffUL; | |
180 | + r++; | |
181 | + } | |
182 | +} | |
183 | + | |
184 | +inline void MTRand::reload() | |
185 | +{ | |
186 | + // Generate N new values in state | |
187 | + // Made clearer and faster by Matthew Bellew (matthew.bellew@home.com) | |
188 | + static const int MmN = int(M) - int(N); // in case enums are unsigned | |
189 | + register uint32 *p = state; | |
190 | + register int i; | |
191 | + for( i = N - M; i--; ++p ) | |
192 | + *p = twist( p[M], p[0], p[1] ); | |
193 | + for( i = M; --i; ++p ) | |
194 | + *p = twist( p[MmN], p[0], p[1] ); | |
195 | + *p = twist( p[MmN], p[0], state[0] ); | |
196 | + | |
197 | + left = N, pNext = state; | |
198 | +} | |
199 | + | |
200 | +inline void MTRand::seed( const uint32 oneSeed ) | |
201 | +{ | |
202 | + // Seed the generator with a simple uint32 | |
203 | + initialize(oneSeed); | |
204 | + reload(); | |
205 | +} | |
206 | + | |
207 | +inline void MTRand::seed( uint32 *const bigSeed, const uint32 seedLength ) | |
208 | +{ | |
209 | + // Seed the generator with an array of uint32's | |
210 | + // There are 2^19937-1 possible initial states. This function allows | |
211 | + // all of those to be accessed by providing at least 19937 bits (with a | |
212 | + // default seed length of N = 624 uint32's). Any bits above the lower 32 | |
213 | + // in each element are discarded. | |
214 | + // Just call seed() if you want to get array from /dev/urandom | |
215 | + initialize(19650218UL); | |
216 | + register int i = 1; | |
217 | + register uint32 j = 0; | |
218 | + register int k = ( N > seedLength ? N : seedLength ); | |
219 | + for( ; k; --k ) | |
220 | + { | |
221 | + state[i] = | |
222 | + state[i] ^ ( (state[i-1] ^ (state[i-1] >> 30)) * 1664525UL ); | |
223 | + state[i] += ( bigSeed[j] & 0xffffffffUL ) + j; | |
224 | + state[i] &= 0xffffffffUL; | |
225 | + ++i; ++j; | |
226 | + if( i >= N ) { state[0] = state[N-1]; i = 1; } | |
227 | + if( j >= seedLength ) j = 0; | |
228 | + } | |
229 | + for( k = N - 1; k; --k ) | |
230 | + { | |
231 | + state[i] = | |
232 | + state[i] ^ ( (state[i-1] ^ (state[i-1] >> 30)) * 1566083941UL ); | |
233 | + state[i] -= i; | |
234 | + state[i] &= 0xffffffffUL; | |
235 | + ++i; | |
236 | + if( i >= N ) { state[0] = state[N-1]; i = 1; } | |
237 | + } | |
238 | + state[0] = 0x80000000UL; // MSB is 1, assuring non-zero initial array | |
239 | + reload(); | |
240 | +} | |
241 | + | |
242 | +inline void MTRand::seed() | |
243 | +{ | |
244 | + // Seed the generator with an array from /dev/urandom if available | |
245 | + // Otherwise use a hash of time() and clock() values | |
246 | + | |
247 | + // First try getting an array from /dev/urandom | |
248 | + FILE* urandom = fopen( "/dev/urandom", "rb" ); | |
249 | + if( urandom ) | |
250 | + { | |
251 | + uint32 bigSeed[N]; | |
252 | + register uint32 *s = bigSeed; | |
253 | + register int i = N; | |
254 | + register bool success = true; | |
255 | + while( success && i-- ) | |
256 | + success = fread( s++, sizeof(uint32), 1, urandom ); | |
257 | + fclose(urandom); | |
258 | + if( success ) { seed( bigSeed, N ); return; } | |
259 | + } | |
260 | + | |
261 | + // Was not successful, so use time() and clock() instead | |
262 | + seed( hash( time(NULL), clock() ) ); | |
263 | +} | |
264 | + | |
265 | +inline MTRand::MTRand( const uint32 oneSeed ) | |
266 | + { seed(oneSeed); } | |
267 | + | |
268 | +inline MTRand::MTRand( uint32 *const bigSeed, const uint32 seedLength ) | |
269 | + { seed(bigSeed,seedLength); } | |
270 | + | |
271 | +inline MTRand::MTRand() | |
272 | + { seed(); } | |
273 | + | |
274 | +inline MTRand::MTRand( const MTRand& o ) | |
275 | +{ | |
276 | + register const uint32 *t = o.state; | |
277 | + register uint32 *s = state; | |
278 | + register int i = N; | |
279 | + for( ; i--; *s++ = *t++ ) {} | |
280 | + left = o.left; | |
281 | + pNext = &state[N-left]; | |
282 | +} | |
283 | + | |
284 | +inline MTRand::uint32 MTRand::randInt() | |
285 | +{ | |
286 | + // Pull a 32-bit integer from the generator state | |
287 | + // Every other access function simply transforms the numbers extracted here | |
288 | + | |
289 | + if( left == 0 ) reload(); | |
290 | + --left; | |
291 | + | |
292 | + register uint32 s1; | |
293 | + s1 = *pNext++; | |
294 | + s1 ^= (s1 >> 11); | |
295 | + s1 ^= (s1 << 7) & 0x9d2c5680UL; | |
296 | + s1 ^= (s1 << 15) & 0xefc60000UL; | |
297 | + return ( s1 ^ (s1 >> 18) ); | |
298 | +} | |
299 | + | |
300 | +inline MTRand::uint32 MTRand::randInt( const uint32 n ) | |
301 | +{ | |
302 | + // Find which bits are used in n | |
303 | + // Optimized by Magnus Jonsson (magnus@smartelectronix.com) | |
304 | + uint32 used = n; | |
305 | + used |= used >> 1; | |
306 | + used |= used >> 2; | |
307 | + used |= used >> 4; | |
308 | + used |= used >> 8; | |
309 | + used |= used >> 16; | |
310 | + | |
311 | + // Draw numbers until one is found in [0,n] | |
312 | + uint32 i; | |
313 | + do | |
314 | + i = randInt() & used; // toss unused bits to shorten search | |
315 | + while( i > n ); | |
316 | + return i; | |
317 | +} | |
318 | + | |
319 | +inline double MTRand::rand() | |
320 | + { return double(randInt()) * (1.0/4294967295.0); } | |
321 | + | |
322 | +inline double MTRand::rand( const double n ) | |
323 | + { return rand() * n; } | |
324 | + | |
325 | +inline double MTRand::randExc() | |
326 | + { return double(randInt()) * (1.0/4294967296.0); } | |
327 | + | |
328 | +inline double MTRand::randExc( const double n ) | |
329 | + { return randExc() * n; } | |
330 | + | |
331 | +inline double MTRand::randDblExc() | |
332 | + { return ( double(randInt()) + 0.5 ) * (1.0/4294967296.0); } | |
333 | + | |
334 | +inline double MTRand::randDblExc( const double n ) | |
335 | + { return randDblExc() * n; } | |
336 | + | |
337 | +inline double MTRand::rand53() | |
338 | +{ | |
339 | + uint32 a = randInt() >> 5, b = randInt() >> 6; | |
340 | + return ( a * 67108864.0 + b ) * (1.0/9007199254740992.0); // by Isaku Wada | |
341 | +} | |
342 | + | |
343 | +inline double MTRand::randNorm( const double mean, const double stddev ) | |
344 | +{ | |
345 | + // Return a real number from a normal (Gaussian) distribution with given | |
346 | + // mean and standard deviation by polar form of Box-Muller transformation | |
347 | + double x, y, r; | |
348 | + do | |
349 | + { | |
350 | + x = 2.0 * rand() - 1.0; | |
351 | + y = 2.0 * rand() - 1.0; | |
352 | + r = x * x + y * y; | |
353 | + } | |
354 | + while ( r >= 1.0 || r == 0.0 ); | |
355 | + double s = sqrt( -2.0 * log(r) / r ); | |
356 | + return mean + x * s * stddev; | |
357 | +} | |
358 | + | |
359 | +inline double MTRand::operator()() | |
360 | +{ | |
361 | + return rand(); | |
362 | +} | |
363 | + | |
364 | +inline void MTRand::save( uint32* saveArray ) const | |
365 | +{ | |
366 | + register const uint32 *s = state; | |
367 | + register uint32 *sa = saveArray; | |
368 | + register int i = N; | |
369 | + for( ; i--; *sa++ = *s++ ) {} | |
370 | + *sa = left; | |
371 | +} | |
372 | + | |
373 | +inline void MTRand::load( uint32 *const loadArray ) | |
374 | +{ | |
375 | + register uint32 *s = state; | |
376 | + register uint32 *la = loadArray; | |
377 | + register int i = N; | |
378 | + for( ; i--; *s++ = *la++ ) {} | |
379 | + left = *la; | |
380 | + pNext = &state[N-left]; | |
381 | +} | |
382 | + | |
383 | +inline std::ostream& operator<<( std::ostream& os, const MTRand& mtrand ) | |
384 | +{ | |
385 | + register const MTRand::uint32 *s = mtrand.state; | |
386 | + register int i = mtrand.N; | |
387 | + for( ; i--; os << *s++ << "\t" ) {} | |
388 | + return os << mtrand.left; | |
389 | +} | |
390 | + | |
391 | +inline std::istream& operator>>( std::istream& is, MTRand& mtrand ) | |
392 | +{ | |
393 | + register MTRand::uint32 *s = mtrand.state; | |
394 | + register int i = mtrand.N; | |
395 | + for( ; i--; is >> *s++ ) {} | |
396 | + is >> mtrand.left; | |
397 | + mtrand.pNext = &mtrand.state[mtrand.N-mtrand.left]; | |
398 | + return is; | |
399 | +} | |
400 | + | |
401 | +inline MTRand& MTRand::operator=( const MTRand& o ) | |
402 | +{ | |
403 | + if( this == &o ) return (*this); | |
404 | + register const uint32 *t = o.state; | |
405 | + register uint32 *s = state; | |
406 | + register int i = N; | |
407 | + for( ; i--; *s++ = *t++ ) {} | |
408 | + left = o.left; | |
409 | + pNext = &state[N-left]; | |
410 | + return (*this); | |
411 | +} | |
412 | + | |
413 | +#endif // MERSENNETWISTER_H | |
414 | + | |
415 | +// Change log: | |
416 | +// | |
417 | +// v0.1 - First release on 15 May 2000 | |
418 | +// - Based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus | |
419 | +// - Translated from C to C++ | |
420 | +// - Made completely ANSI compliant | |
421 | +// - Designed convenient interface for initialization, seeding, and | |
422 | +// obtaining numbers in default or user-defined ranges | |
423 | +// - Added automatic seeding from /dev/urandom or time() and clock() | |
424 | +// - Provided functions for saving and loading generator state | |
425 | +// | |
426 | +// v0.2 - Fixed bug which reloaded generator one step too late | |
427 | +// | |
428 | +// v0.3 - Switched to clearer, faster reload() code from Matthew Bellew | |
429 | +// | |
430 | +// v0.4 - Removed trailing newline in saved generator format to be consistent | |
431 | +// with output format of built-in types | |
432 | +// | |
433 | +// v0.5 - Improved portability by replacing static const int's with enum's and | |
434 | +// clarifying return values in seed(); suggested by Eric Heimburg | |
435 | +// - Removed MAXINT constant; use 0xffffffffUL instead | |
436 | +// | |
437 | +// v0.6 - Eliminated seed overflow when uint32 is larger than 32 bits | |
438 | +// - Changed integer [0,n] generator to give better uniformity | |
439 | +// | |
440 | +// v0.7 - Fixed operator precedence ambiguity in reload() | |
441 | +// - Added access for real numbers in (0,1) and (0,n) | |
442 | +// | |
443 | +// v0.8 - Included time.h header to properly support time_t and clock_t | |
444 | +// | |
445 | +// v1.0 - Revised seeding to match 26 Jan 2002 update of Nishimura and Matsumoto | |
446 | +// - Allowed for seeding with arrays of any length | |
447 | +// - Added access for real numbers in [0,1) with 53-bit resolution | |
448 | +// - Added access for real numbers from normal (Gaussian) distributions | |
449 | +// - Increased overall speed by optimizing twist() | |
450 | +// - Doubled speed of integer [0,n] generation | |
451 | +// - Fixed out-of-range number generation on 64-bit machines | |
452 | +// - Improved portability by substituting literal constants for long enum's | |
453 | +// - Changed license from GNU LGPL to BSD | |
454 | +// | |
455 | +// v1.1 - Corrected parameter label in randNorm from "variance" to "stddev" | |
456 | +// - Changed randNorm algorithm from basic to polar form for efficiency | |
457 | +// - Updated includes from deprecated <xxxx.h> to standard <cxxxx> forms | |
458 | +// - Cleaned declarations and definitions to please Intel compiler | |
459 | +// - Revised twist() operator to work on ones'-complement machines | |
460 | +// - Fixed reload() function to work when N and M are unsigned | |
461 | +// - Added copy constructor and copy operator from Salvador Espana |
@@ -5,9 +5,11 @@ | ||
5 | 5 | number = -1; |
6 | 6 | dimension = -1; |
7 | 7 | state_func = NULL; |
8 | + x = NULL; | |
8 | 9 | } |
9 | 10 | Filter::~Filter() |
10 | 11 | { |
12 | + if(x) delete x; | |
11 | 13 | } |
12 | 14 | |
13 | 15 | bool Filter::setNumber(int n) |
@@ -36,5 +38,7 @@ | ||
36 | 38 | } |
37 | 39 | Particles Filter::get_next_state() |
38 | 40 | { |
41 | +cout<<"go..."<<endl; | |
39 | 42 | (*state_func)(); |
43 | +cout<<"ok..."<<endl; | |
40 | 44 | } |