Mercurial > hg-old > index.cgi
comparison configure @ 177:d340e9c8191f 2.2
Added autotool files for releae
author | lost |
---|---|
date | Wed, 04 Mar 2009 03:44:49 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
176:4b45b66e0767 | 177:d340e9c8191f |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.61 for LWTOOLS 2.2. | |
4 # | |
5 # Report bugs to <lost@l-w.ca>. | |
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='LWTOOLS' | |
576 PACKAGE_TARNAME='lwtools' | |
577 PACKAGE_VERSION='2.2' | |
578 PACKAGE_STRING='LWTOOLS 2.2' | |
579 PACKAGE_BUGREPORT='lost@l-w.ca' | |
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 INSTALL_PROGRAM | |
619 INSTALL_SCRIPT | |
620 INSTALL_DATA | |
621 CYGPATH_W | |
622 PACKAGE | |
623 VERSION | |
624 ACLOCAL | |
625 AUTOCONF | |
626 AUTOMAKE | |
627 AUTOHEADER | |
628 MAKEINFO | |
629 install_sh | |
630 STRIP | |
631 INSTALL_STRIP_PROGRAM | |
632 mkdir_p | |
633 AWK | |
634 SET_MAKE | |
635 am__leading_dot | |
636 AMTAR | |
637 am__tar | |
638 am__untar | |
639 CC | |
640 CFLAGS | |
641 LDFLAGS | |
642 CPPFLAGS | |
643 ac_ct_CC | |
644 EXEEXT | |
645 OBJEXT | |
646 DEPDIR | |
647 am__include | |
648 am__quote | |
649 AMDEP_TRUE | |
650 AMDEP_FALSE | |
651 AMDEPBACKSLASH | |
652 CCDEPMODE | |
653 am__fastdepCC_TRUE | |
654 am__fastdepCC_FALSE | |
655 LIBOBJS | |
656 LTLIBOBJS' | |
657 ac_subst_files='' | |
658 ac_precious_vars='build_alias | |
659 host_alias | |
660 target_alias | |
661 CC | |
662 CFLAGS | |
663 LDFLAGS | |
664 LIBS | |
665 CPPFLAGS' | |
666 | |
667 | |
668 # Initialize some variables set by options. | |
669 ac_init_help= | |
670 ac_init_version=false | |
671 # The variables have the same names as the options, with | |
672 # dashes changed to underlines. | |
673 cache_file=/dev/null | |
674 exec_prefix=NONE | |
675 no_create= | |
676 no_recursion= | |
677 prefix=NONE | |
678 program_prefix=NONE | |
679 program_suffix=NONE | |
680 program_transform_name=s,x,x, | |
681 silent= | |
682 site= | |
683 srcdir= | |
684 verbose= | |
685 x_includes=NONE | |
686 x_libraries=NONE | |
687 | |
688 # Installation directory options. | |
689 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
690 # and all the variables that are supposed to be based on exec_prefix | |
691 # by default will actually change. | |
692 # Use braces instead of parens because sh, perl, etc. also accept them. | |
693 # (The list follows the same order as the GNU Coding Standards.) | |
694 bindir='${exec_prefix}/bin' | |
695 sbindir='${exec_prefix}/sbin' | |
696 libexecdir='${exec_prefix}/libexec' | |
697 datarootdir='${prefix}/share' | |
698 datadir='${datarootdir}' | |
699 sysconfdir='${prefix}/etc' | |
700 sharedstatedir='${prefix}/com' | |
701 localstatedir='${prefix}/var' | |
702 includedir='${prefix}/include' | |
703 oldincludedir='/usr/include' | |
704 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
705 infodir='${datarootdir}/info' | |
706 htmldir='${docdir}' | |
707 dvidir='${docdir}' | |
708 pdfdir='${docdir}' | |
709 psdir='${docdir}' | |
710 libdir='${exec_prefix}/lib' | |
711 localedir='${datarootdir}/locale' | |
712 mandir='${datarootdir}/man' | |
713 | |
714 ac_prev= | |
715 ac_dashdash= | |
716 for ac_option | |
717 do | |
718 # If the previous option needs an argument, assign it. | |
719 if test -n "$ac_prev"; then | |
720 eval $ac_prev=\$ac_option | |
721 ac_prev= | |
722 continue | |
723 fi | |
724 | |
725 case $ac_option in | |
726 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
727 *) ac_optarg=yes ;; | |
728 esac | |
729 | |
730 # Accept the important Cygnus configure options, so we can diagnose typos. | |
731 | |
732 case $ac_dashdash$ac_option in | |
733 --) | |
734 ac_dashdash=yes ;; | |
735 | |
736 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
737 ac_prev=bindir ;; | |
738 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
739 bindir=$ac_optarg ;; | |
740 | |
741 -build | --build | --buil | --bui | --bu) | |
742 ac_prev=build_alias ;; | |
743 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
744 build_alias=$ac_optarg ;; | |
745 | |
746 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
747 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
748 ac_prev=cache_file ;; | |
749 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
750 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
751 cache_file=$ac_optarg ;; | |
752 | |
753 --config-cache | -C) | |
754 cache_file=config.cache ;; | |
755 | |
756 -datadir | --datadir | --datadi | --datad) | |
757 ac_prev=datadir ;; | |
758 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
759 datadir=$ac_optarg ;; | |
760 | |
761 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
762 | --dataroo | --dataro | --datar) | |
763 ac_prev=datarootdir ;; | |
764 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
765 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
766 datarootdir=$ac_optarg ;; | |
767 | |
768 -disable-* | --disable-*) | |
769 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
770 # Reject names that are not valid shell variable names. | |
771 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
772 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
773 { (exit 1); exit 1; }; } | |
774 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
775 eval enable_$ac_feature=no ;; | |
776 | |
777 -docdir | --docdir | --docdi | --doc | --do) | |
778 ac_prev=docdir ;; | |
779 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
780 docdir=$ac_optarg ;; | |
781 | |
782 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
783 ac_prev=dvidir ;; | |
784 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
785 dvidir=$ac_optarg ;; | |
786 | |
787 -enable-* | --enable-*) | |
788 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
789 # Reject names that are not valid shell variable names. | |
790 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
791 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
792 { (exit 1); exit 1; }; } | |
793 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
794 eval enable_$ac_feature=\$ac_optarg ;; | |
795 | |
796 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
797 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
798 | --exec | --exe | --ex) | |
799 ac_prev=exec_prefix ;; | |
800 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
801 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
802 | --exec=* | --exe=* | --ex=*) | |
803 exec_prefix=$ac_optarg ;; | |
804 | |
805 -gas | --gas | --ga | --g) | |
806 # Obsolete; use --with-gas. | |
807 with_gas=yes ;; | |
808 | |
809 -help | --help | --hel | --he | -h) | |
810 ac_init_help=long ;; | |
811 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
812 ac_init_help=recursive ;; | |
813 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
814 ac_init_help=short ;; | |
815 | |
816 -host | --host | --hos | --ho) | |
817 ac_prev=host_alias ;; | |
818 -host=* | --host=* | --hos=* | --ho=*) | |
819 host_alias=$ac_optarg ;; | |
820 | |
821 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
822 ac_prev=htmldir ;; | |
823 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
824 | --ht=*) | |
825 htmldir=$ac_optarg ;; | |
826 | |
827 -includedir | --includedir | --includedi | --included | --include \ | |
828 | --includ | --inclu | --incl | --inc) | |
829 ac_prev=includedir ;; | |
830 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
831 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
832 includedir=$ac_optarg ;; | |
833 | |
834 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
835 ac_prev=infodir ;; | |
836 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
837 infodir=$ac_optarg ;; | |
838 | |
839 -libdir | --libdir | --libdi | --libd) | |
840 ac_prev=libdir ;; | |
841 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
842 libdir=$ac_optarg ;; | |
843 | |
844 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
845 | --libexe | --libex | --libe) | |
846 ac_prev=libexecdir ;; | |
847 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
848 | --libexe=* | --libex=* | --libe=*) | |
849 libexecdir=$ac_optarg ;; | |
850 | |
851 -localedir | --localedir | --localedi | --localed | --locale) | |
852 ac_prev=localedir ;; | |
853 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
854 localedir=$ac_optarg ;; | |
855 | |
856 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
857 | --localstate | --localstat | --localsta | --localst | --locals) | |
858 ac_prev=localstatedir ;; | |
859 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
860 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
861 localstatedir=$ac_optarg ;; | |
862 | |
863 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
864 ac_prev=mandir ;; | |
865 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
866 mandir=$ac_optarg ;; | |
867 | |
868 -nfp | --nfp | --nf) | |
869 # Obsolete; use --without-fp. | |
870 with_fp=no ;; | |
871 | |
872 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
873 | --no-cr | --no-c | -n) | |
874 no_create=yes ;; | |
875 | |
876 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
877 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
878 no_recursion=yes ;; | |
879 | |
880 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
881 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
882 | --oldin | --oldi | --old | --ol | --o) | |
883 ac_prev=oldincludedir ;; | |
884 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
885 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
886 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
887 oldincludedir=$ac_optarg ;; | |
888 | |
889 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
890 ac_prev=prefix ;; | |
891 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
892 prefix=$ac_optarg ;; | |
893 | |
894 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
895 | --program-pre | --program-pr | --program-p) | |
896 ac_prev=program_prefix ;; | |
897 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
898 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
899 program_prefix=$ac_optarg ;; | |
900 | |
901 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
902 | --program-suf | --program-su | --program-s) | |
903 ac_prev=program_suffix ;; | |
904 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
905 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
906 program_suffix=$ac_optarg ;; | |
907 | |
908 -program-transform-name | --program-transform-name \ | |
909 | --program-transform-nam | --program-transform-na \ | |
910 | --program-transform-n | --program-transform- \ | |
911 | --program-transform | --program-transfor \ | |
912 | --program-transfo | --program-transf \ | |
913 | --program-trans | --program-tran \ | |
914 | --progr-tra | --program-tr | --program-t) | |
915 ac_prev=program_transform_name ;; | |
916 -program-transform-name=* | --program-transform-name=* \ | |
917 | --program-transform-nam=* | --program-transform-na=* \ | |
918 | --program-transform-n=* | --program-transform-=* \ | |
919 | --program-transform=* | --program-transfor=* \ | |
920 | --program-transfo=* | --program-transf=* \ | |
921 | --program-trans=* | --program-tran=* \ | |
922 | --progr-tra=* | --program-tr=* | --program-t=*) | |
923 program_transform_name=$ac_optarg ;; | |
924 | |
925 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
926 ac_prev=pdfdir ;; | |
927 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
928 pdfdir=$ac_optarg ;; | |
929 | |
930 -psdir | --psdir | --psdi | --psd | --ps) | |
931 ac_prev=psdir ;; | |
932 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
933 psdir=$ac_optarg ;; | |
934 | |
935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
936 | -silent | --silent | --silen | --sile | --sil) | |
937 silent=yes ;; | |
938 | |
939 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
940 ac_prev=sbindir ;; | |
941 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
942 | --sbi=* | --sb=*) | |
943 sbindir=$ac_optarg ;; | |
944 | |
945 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
946 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
947 | --sharedst | --shareds | --shared | --share | --shar \ | |
948 | --sha | --sh) | |
949 ac_prev=sharedstatedir ;; | |
950 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
951 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
952 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
953 | --sha=* | --sh=*) | |
954 sharedstatedir=$ac_optarg ;; | |
955 | |
956 -site | --site | --sit) | |
957 ac_prev=site ;; | |
958 -site=* | --site=* | --sit=*) | |
959 site=$ac_optarg ;; | |
960 | |
961 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
962 ac_prev=srcdir ;; | |
963 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
964 srcdir=$ac_optarg ;; | |
965 | |
966 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
967 | --syscon | --sysco | --sysc | --sys | --sy) | |
968 ac_prev=sysconfdir ;; | |
969 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
970 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
971 sysconfdir=$ac_optarg ;; | |
972 | |
973 -target | --target | --targe | --targ | --tar | --ta | --t) | |
974 ac_prev=target_alias ;; | |
975 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
976 target_alias=$ac_optarg ;; | |
977 | |
978 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
979 verbose=yes ;; | |
980 | |
981 -version | --version | --versio | --versi | --vers | -V) | |
982 ac_init_version=: ;; | |
983 | |
984 -with-* | --with-*) | |
985 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
986 # Reject names that are not valid shell variable names. | |
987 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
988 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
989 { (exit 1); exit 1; }; } | |
990 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
991 eval with_$ac_package=\$ac_optarg ;; | |
992 | |
993 -without-* | --without-*) | |
994 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
995 # Reject names that are not valid shell variable names. | |
996 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
997 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
998 { (exit 1); exit 1; }; } | |
999 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1000 eval with_$ac_package=no ;; | |
1001 | |
1002 --x) | |
1003 # Obsolete; use --with-x. | |
1004 with_x=yes ;; | |
1005 | |
1006 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1007 | --x-incl | --x-inc | --x-in | --x-i) | |
1008 ac_prev=x_includes ;; | |
1009 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1010 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1011 x_includes=$ac_optarg ;; | |
1012 | |
1013 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1014 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1015 ac_prev=x_libraries ;; | |
1016 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1017 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1018 x_libraries=$ac_optarg ;; | |
1019 | |
1020 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1021 Try \`$0 --help' for more information." >&2 | |
1022 { (exit 1); exit 1; }; } | |
1023 ;; | |
1024 | |
1025 *=*) | |
1026 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1027 # Reject names that are not valid shell variable names. | |
1028 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1029 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1030 { (exit 1); exit 1; }; } | |
1031 eval $ac_envvar=\$ac_optarg | |
1032 export $ac_envvar ;; | |
1033 | |
1034 *) | |
1035 # FIXME: should be removed in autoconf 3.0. | |
1036 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1037 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1038 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1039 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1040 ;; | |
1041 | |
1042 esac | |
1043 done | |
1044 | |
1045 if test -n "$ac_prev"; then | |
1046 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1047 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1048 { (exit 1); exit 1; }; } | |
1049 fi | |
1050 | |
1051 # Be sure to have absolute directory names. | |
1052 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1053 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1054 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1055 libdir localedir mandir | |
1056 do | |
1057 eval ac_val=\$$ac_var | |
1058 case $ac_val in | |
1059 [\\/$]* | ?:[\\/]* ) continue;; | |
1060 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1061 esac | |
1062 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1063 { (exit 1); exit 1; }; } | |
1064 done | |
1065 | |
1066 # There might be people who depend on the old broken behavior: `$host' | |
1067 # used to hold the argument of --host etc. | |
1068 # FIXME: To remove some day. | |
1069 build=$build_alias | |
1070 host=$host_alias | |
1071 target=$target_alias | |
1072 | |
1073 # FIXME: To remove some day. | |
1074 if test "x$host_alias" != x; then | |
1075 if test "x$build_alias" = x; then | |
1076 cross_compiling=maybe | |
1077 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1078 If a cross compiler is detected then cross compile mode will be used." >&2 | |
1079 elif test "x$build_alias" != "x$host_alias"; then | |
1080 cross_compiling=yes | |
1081 fi | |
1082 fi | |
1083 | |
1084 ac_tool_prefix= | |
1085 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1086 | |
1087 test "$silent" = yes && exec 6>/dev/null | |
1088 | |
1089 | |
1090 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1091 ac_ls_di=`ls -di .` && | |
1092 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1093 { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1094 { (exit 1); exit 1; }; } | |
1095 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1096 { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1097 { (exit 1); exit 1; }; } | |
1098 | |
1099 | |
1100 # Find the source files, if location was not specified. | |
1101 if test -z "$srcdir"; then | |
1102 ac_srcdir_defaulted=yes | |
1103 # Try the directory containing this script, then the parent directory. | |
1104 ac_confdir=`$as_dirname -- "$0" || | |
1105 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1106 X"$0" : 'X\(//\)[^/]' \| \ | |
1107 X"$0" : 'X\(//\)$' \| \ | |
1108 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1109 echo X"$0" | | |
1110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1111 s//\1/ | |
1112 q | |
1113 } | |
1114 /^X\(\/\/\)[^/].*/{ | |
1115 s//\1/ | |
1116 q | |
1117 } | |
1118 /^X\(\/\/\)$/{ | |
1119 s//\1/ | |
1120 q | |
1121 } | |
1122 /^X\(\/\).*/{ | |
1123 s//\1/ | |
1124 q | |
1125 } | |
1126 s/.*/./; q'` | |
1127 srcdir=$ac_confdir | |
1128 if test ! -r "$srcdir/$ac_unique_file"; then | |
1129 srcdir=.. | |
1130 fi | |
1131 else | |
1132 ac_srcdir_defaulted=no | |
1133 fi | |
1134 if test ! -r "$srcdir/$ac_unique_file"; then | |
1135 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1136 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1137 { (exit 1); exit 1; }; } | |
1138 fi | |
1139 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1140 ac_abs_confdir=`( | |
1141 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1142 { (exit 1); exit 1; }; } | |
1143 pwd)` | |
1144 # When building in place, set srcdir=. | |
1145 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1146 srcdir=. | |
1147 fi | |
1148 # Remove unnecessary trailing slashes from srcdir. | |
1149 # Double slashes in file names in object file debugging info | |
1150 # mess up M-x gdb in Emacs. | |
1151 case $srcdir in | |
1152 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1153 esac | |
1154 for ac_var in $ac_precious_vars; do | |
1155 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1156 eval ac_env_${ac_var}_value=\$${ac_var} | |
1157 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1158 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1159 done | |
1160 | |
1161 # | |
1162 # Report the --help message. | |
1163 # | |
1164 if test "$ac_init_help" = "long"; then | |
1165 # Omit some internal or obsolete options to make the list less imposing. | |
1166 # This message is too long to be a string in the A/UX 3.1 sh. | |
1167 cat <<_ACEOF | |
1168 \`configure' configures LWTOOLS 2.2 to adapt to many kinds of systems. | |
1169 | |
1170 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1171 | |
1172 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1173 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1174 | |
1175 Defaults for the options are specified in brackets. | |
1176 | |
1177 Configuration: | |
1178 -h, --help display this help and exit | |
1179 --help=short display options specific to this package | |
1180 --help=recursive display the short help of all the included packages | |
1181 -V, --version display version information and exit | |
1182 -q, --quiet, --silent do not print \`checking...' messages | |
1183 --cache-file=FILE cache test results in FILE [disabled] | |
1184 -C, --config-cache alias for \`--cache-file=config.cache' | |
1185 -n, --no-create do not create output files | |
1186 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1187 | |
1188 Installation directories: | |
1189 --prefix=PREFIX install architecture-independent files in PREFIX | |
1190 [$ac_default_prefix] | |
1191 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1192 [PREFIX] | |
1193 | |
1194 By default, \`make install' will install all the files in | |
1195 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1196 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1197 for instance \`--prefix=\$HOME'. | |
1198 | |
1199 For better control, use the options below. | |
1200 | |
1201 Fine tuning of the installation directories: | |
1202 --bindir=DIR user executables [EPREFIX/bin] | |
1203 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1204 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1205 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1206 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1207 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1208 --libdir=DIR object code libraries [EPREFIX/lib] | |
1209 --includedir=DIR C header files [PREFIX/include] | |
1210 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1211 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1212 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1213 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1214 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1215 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1216 --docdir=DIR documentation root [DATAROOTDIR/doc/lwtools] | |
1217 --htmldir=DIR html documentation [DOCDIR] | |
1218 --dvidir=DIR dvi documentation [DOCDIR] | |
1219 --pdfdir=DIR pdf documentation [DOCDIR] | |
1220 --psdir=DIR ps documentation [DOCDIR] | |
1221 _ACEOF | |
1222 | |
1223 cat <<\_ACEOF | |
1224 | |
1225 Program names: | |
1226 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1227 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1228 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1229 _ACEOF | |
1230 fi | |
1231 | |
1232 if test -n "$ac_init_help"; then | |
1233 case $ac_init_help in | |
1234 short | recursive ) echo "Configuration of LWTOOLS 2.2:";; | |
1235 esac | |
1236 cat <<\_ACEOF | |
1237 | |
1238 Optional Features: | |
1239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1241 --disable-dependency-tracking speeds up one-time build | |
1242 --enable-dependency-tracking do not reject slow dependency extractors | |
1243 | |
1244 Some influential environment variables: | |
1245 CC C compiler command | |
1246 CFLAGS C compiler flags | |
1247 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1248 nonstandard directory <lib dir> | |
1249 LIBS libraries to pass to the linker, e.g. -l<library> | |
1250 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1251 you have headers in a nonstandard directory <include dir> | |
1252 | |
1253 Use these variables to override the choices made by `configure' or to help | |
1254 it to find libraries and programs with nonstandard names/locations. | |
1255 | |
1256 Report bugs to <lost@l-w.ca>. | |
1257 _ACEOF | |
1258 ac_status=$? | |
1259 fi | |
1260 | |
1261 if test "$ac_init_help" = "recursive"; then | |
1262 # If there are subdirs, report their specific --help. | |
1263 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1264 test -d "$ac_dir" || continue | |
1265 ac_builddir=. | |
1266 | |
1267 case "$ac_dir" in | |
1268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1269 *) | |
1270 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1271 # A ".." for each directory in $ac_dir_suffix. | |
1272 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1273 case $ac_top_builddir_sub in | |
1274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1276 esac ;; | |
1277 esac | |
1278 ac_abs_top_builddir=$ac_pwd | |
1279 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1280 # for backward compatibility: | |
1281 ac_top_builddir=$ac_top_build_prefix | |
1282 | |
1283 case $srcdir in | |
1284 .) # We are building in place. | |
1285 ac_srcdir=. | |
1286 ac_top_srcdir=$ac_top_builddir_sub | |
1287 ac_abs_top_srcdir=$ac_pwd ;; | |
1288 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1289 ac_srcdir=$srcdir$ac_dir_suffix; | |
1290 ac_top_srcdir=$srcdir | |
1291 ac_abs_top_srcdir=$srcdir ;; | |
1292 *) # Relative name. | |
1293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1294 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1296 esac | |
1297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1298 | |
1299 cd "$ac_dir" || { ac_status=$?; continue; } | |
1300 # Check for guested configure. | |
1301 if test -f "$ac_srcdir/configure.gnu"; then | |
1302 echo && | |
1303 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1304 elif test -f "$ac_srcdir/configure"; then | |
1305 echo && | |
1306 $SHELL "$ac_srcdir/configure" --help=recursive | |
1307 else | |
1308 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1309 fi || ac_status=$? | |
1310 cd "$ac_pwd" || { ac_status=$?; break; } | |
1311 done | |
1312 fi | |
1313 | |
1314 test -n "$ac_init_help" && exit $ac_status | |
1315 if $ac_init_version; then | |
1316 cat <<\_ACEOF | |
1317 LWTOOLS configure 2.2 | |
1318 generated by GNU Autoconf 2.61 | |
1319 | |
1320 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1321 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1322 This configure script is free software; the Free Software Foundation | |
1323 gives unlimited permission to copy, distribute and modify it. | |
1324 _ACEOF | |
1325 exit | |
1326 fi | |
1327 cat >config.log <<_ACEOF | |
1328 This file contains any messages produced by compilers while | |
1329 running configure, to aid debugging if configure makes a mistake. | |
1330 | |
1331 It was created by LWTOOLS $as_me 2.2, which was | |
1332 generated by GNU Autoconf 2.61. Invocation command line was | |
1333 | |
1334 $ $0 $@ | |
1335 | |
1336 _ACEOF | |
1337 exec 5>>config.log | |
1338 { | |
1339 cat <<_ASUNAME | |
1340 ## --------- ## | |
1341 ## Platform. ## | |
1342 ## --------- ## | |
1343 | |
1344 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1345 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1346 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1347 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1348 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1349 | |
1350 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1351 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1352 | |
1353 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1354 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1355 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1356 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1357 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1358 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1359 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1360 | |
1361 _ASUNAME | |
1362 | |
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1364 for as_dir in $PATH | |
1365 do | |
1366 IFS=$as_save_IFS | |
1367 test -z "$as_dir" && as_dir=. | |
1368 echo "PATH: $as_dir" | |
1369 done | |
1370 IFS=$as_save_IFS | |
1371 | |
1372 } >&5 | |
1373 | |
1374 cat >&5 <<_ACEOF | |
1375 | |
1376 | |
1377 ## ----------- ## | |
1378 ## Core tests. ## | |
1379 ## ----------- ## | |
1380 | |
1381 _ACEOF | |
1382 | |
1383 | |
1384 # Keep a trace of the command line. | |
1385 # Strip out --no-create and --no-recursion so they do not pile up. | |
1386 # Strip out --silent because we don't want to record it for future runs. | |
1387 # Also quote any args containing shell meta-characters. | |
1388 # Make two passes to allow for proper duplicate-argument suppression. | |
1389 ac_configure_args= | |
1390 ac_configure_args0= | |
1391 ac_configure_args1= | |
1392 ac_must_keep_next=false | |
1393 for ac_pass in 1 2 | |
1394 do | |
1395 for ac_arg | |
1396 do | |
1397 case $ac_arg in | |
1398 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1400 | -silent | --silent | --silen | --sile | --sil) | |
1401 continue ;; | |
1402 *\'*) | |
1403 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1404 esac | |
1405 case $ac_pass in | |
1406 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1407 2) | |
1408 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1409 if test $ac_must_keep_next = true; then | |
1410 ac_must_keep_next=false # Got value, back to normal. | |
1411 else | |
1412 case $ac_arg in | |
1413 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1414 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1415 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1416 | -with-* | --with-* | -without-* | --without-* | --x) | |
1417 case "$ac_configure_args0 " in | |
1418 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1419 esac | |
1420 ;; | |
1421 -* ) ac_must_keep_next=true ;; | |
1422 esac | |
1423 fi | |
1424 ac_configure_args="$ac_configure_args '$ac_arg'" | |
1425 ;; | |
1426 esac | |
1427 done | |
1428 done | |
1429 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1430 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1431 | |
1432 # When interrupted or exit'd, cleanup temporary files, and complete | |
1433 # config.log. We remove comments because anyway the quotes in there | |
1434 # would cause problems or look ugly. | |
1435 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1436 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1437 trap 'exit_status=$? | |
1438 # Save into config.log some information that might help in debugging. | |
1439 { | |
1440 echo | |
1441 | |
1442 cat <<\_ASBOX | |
1443 ## ---------------- ## | |
1444 ## Cache variables. ## | |
1445 ## ---------------- ## | |
1446 _ASBOX | |
1447 echo | |
1448 # The following way of writing the cache mishandles newlines in values, | |
1449 ( | |
1450 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1451 eval ac_val=\$$ac_var | |
1452 case $ac_val in #( | |
1453 *${as_nl}*) | |
1454 case $ac_var in #( | |
1455 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1456 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1457 esac | |
1458 case $ac_var in #( | |
1459 _ | IFS | as_nl) ;; #( | |
1460 *) $as_unset $ac_var ;; | |
1461 esac ;; | |
1462 esac | |
1463 done | |
1464 (set) 2>&1 | | |
1465 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1466 *${as_nl}ac_space=\ *) | |
1467 sed -n \ | |
1468 "s/'\''/'\''\\\\'\'''\''/g; | |
1469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1470 ;; #( | |
1471 *) | |
1472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1473 ;; | |
1474 esac | | |
1475 sort | |
1476 ) | |
1477 echo | |
1478 | |
1479 cat <<\_ASBOX | |
1480 ## ----------------- ## | |
1481 ## Output variables. ## | |
1482 ## ----------------- ## | |
1483 _ASBOX | |
1484 echo | |
1485 for ac_var in $ac_subst_vars | |
1486 do | |
1487 eval ac_val=\$$ac_var | |
1488 case $ac_val in | |
1489 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1490 esac | |
1491 echo "$ac_var='\''$ac_val'\''" | |
1492 done | sort | |
1493 echo | |
1494 | |
1495 if test -n "$ac_subst_files"; then | |
1496 cat <<\_ASBOX | |
1497 ## ------------------- ## | |
1498 ## File substitutions. ## | |
1499 ## ------------------- ## | |
1500 _ASBOX | |
1501 echo | |
1502 for ac_var in $ac_subst_files | |
1503 do | |
1504 eval ac_val=\$$ac_var | |
1505 case $ac_val in | |
1506 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1507 esac | |
1508 echo "$ac_var='\''$ac_val'\''" | |
1509 done | sort | |
1510 echo | |
1511 fi | |
1512 | |
1513 if test -s confdefs.h; then | |
1514 cat <<\_ASBOX | |
1515 ## ----------- ## | |
1516 ## confdefs.h. ## | |
1517 ## ----------- ## | |
1518 _ASBOX | |
1519 echo | |
1520 cat confdefs.h | |
1521 echo | |
1522 fi | |
1523 test "$ac_signal" != 0 && | |
1524 echo "$as_me: caught signal $ac_signal" | |
1525 echo "$as_me: exit $exit_status" | |
1526 } >&5 | |
1527 rm -f core *.core core.conftest.* && | |
1528 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1529 exit $exit_status | |
1530 ' 0 | |
1531 for ac_signal in 1 2 13 15; do | |
1532 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1533 done | |
1534 ac_signal=0 | |
1535 | |
1536 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1537 rm -f -r conftest* confdefs.h | |
1538 | |
1539 # Predefined preprocessor variables. | |
1540 | |
1541 cat >>confdefs.h <<_ACEOF | |
1542 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1543 _ACEOF | |
1544 | |
1545 | |
1546 cat >>confdefs.h <<_ACEOF | |
1547 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1548 _ACEOF | |
1549 | |
1550 | |
1551 cat >>confdefs.h <<_ACEOF | |
1552 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1553 _ACEOF | |
1554 | |
1555 | |
1556 cat >>confdefs.h <<_ACEOF | |
1557 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1558 _ACEOF | |
1559 | |
1560 | |
1561 cat >>confdefs.h <<_ACEOF | |
1562 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1563 _ACEOF | |
1564 | |
1565 | |
1566 # Let the site file select an alternate cache file if it wants to. | |
1567 # Prefer explicitly selected file to automatically selected ones. | |
1568 if test -n "$CONFIG_SITE"; then | |
1569 set x "$CONFIG_SITE" | |
1570 elif test "x$prefix" != xNONE; then | |
1571 set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1572 else | |
1573 set x "$ac_default_prefix/share/config.site" \ | |
1574 "$ac_default_prefix/etc/config.site" | |
1575 fi | |
1576 shift | |
1577 for ac_site_file | |
1578 do | |
1579 if test -r "$ac_site_file"; then | |
1580 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1581 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1582 sed 's/^/| /' "$ac_site_file" >&5 | |
1583 . "$ac_site_file" | |
1584 fi | |
1585 done | |
1586 | |
1587 if test -r "$cache_file"; then | |
1588 # Some versions of bash will fail to source /dev/null (special | |
1589 # files actually), so we avoid doing that. | |
1590 if test -f "$cache_file"; then | |
1591 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1592 echo "$as_me: loading cache $cache_file" >&6;} | |
1593 case $cache_file in | |
1594 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1595 *) . "./$cache_file";; | |
1596 esac | |
1597 fi | |
1598 else | |
1599 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1600 echo "$as_me: creating cache $cache_file" >&6;} | |
1601 >$cache_file | |
1602 fi | |
1603 | |
1604 # Check that the precious variables saved in the cache have kept the same | |
1605 # value. | |
1606 ac_cache_corrupted=false | |
1607 for ac_var in $ac_precious_vars; do | |
1608 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1609 eval ac_new_set=\$ac_env_${ac_var}_set | |
1610 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1611 eval ac_new_val=\$ac_env_${ac_var}_value | |
1612 case $ac_old_set,$ac_new_set in | |
1613 set,) | |
1614 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1615 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1616 ac_cache_corrupted=: ;; | |
1617 ,set) | |
1618 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1619 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1620 ac_cache_corrupted=: ;; | |
1621 ,);; | |
1622 *) | |
1623 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1624 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1625 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1626 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1627 echo "$as_me: former value: $ac_old_val" >&2;} | |
1628 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1629 echo "$as_me: current value: $ac_new_val" >&2;} | |
1630 ac_cache_corrupted=: | |
1631 fi;; | |
1632 esac | |
1633 # Pass precious variables to config.status. | |
1634 if test "$ac_new_set" = set; then | |
1635 case $ac_new_val in | |
1636 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1637 *) ac_arg=$ac_var=$ac_new_val ;; | |
1638 esac | |
1639 case " $ac_configure_args " in | |
1640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1641 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1642 esac | |
1643 fi | |
1644 done | |
1645 if $ac_cache_corrupted; then | |
1646 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1647 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1648 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1649 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1650 { (exit 1); exit 1; }; } | |
1651 fi | |
1652 | |
1653 | |
1654 | |
1655 | |
1656 | |
1657 | |
1658 | |
1659 | |
1660 | |
1661 | |
1662 | |
1663 | |
1664 | |
1665 | |
1666 | |
1667 | |
1668 | |
1669 | |
1670 | |
1671 | |
1672 | |
1673 | |
1674 | |
1675 | |
1676 | |
1677 ac_ext=c | |
1678 ac_cpp='$CPP $CPPFLAGS' | |
1679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1681 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1682 | |
1683 | |
1684 am__api_version="1.9" | |
1685 ac_aux_dir= | |
1686 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
1687 if test -f "$ac_dir/install-sh"; then | |
1688 ac_aux_dir=$ac_dir | |
1689 ac_install_sh="$ac_aux_dir/install-sh -c" | |
1690 break | |
1691 elif test -f "$ac_dir/install.sh"; then | |
1692 ac_aux_dir=$ac_dir | |
1693 ac_install_sh="$ac_aux_dir/install.sh -c" | |
1694 break | |
1695 elif test -f "$ac_dir/shtool"; then | |
1696 ac_aux_dir=$ac_dir | |
1697 ac_install_sh="$ac_aux_dir/shtool install -c" | |
1698 break | |
1699 fi | |
1700 done | |
1701 if test -z "$ac_aux_dir"; then | |
1702 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
1703 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1704 { (exit 1); exit 1; }; } | |
1705 fi | |
1706 | |
1707 # These three variables are undocumented and unsupported, | |
1708 # and are intended to be withdrawn in a future Autoconf release. | |
1709 # They can cause serious problems if a builder's source tree is in a directory | |
1710 # whose full name contains unusual characters. | |
1711 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1712 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1713 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1714 | |
1715 | |
1716 # Find a good install program. We prefer a C program (faster), | |
1717 # so one script is as good as another. But avoid the broken or | |
1718 # incompatible versions: | |
1719 # SysV /etc/install, /usr/sbin/install | |
1720 # SunOS /usr/etc/install | |
1721 # IRIX /sbin/install | |
1722 # AIX /bin/install | |
1723 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1727 # OS/2's system install, which has a completely different semantic | |
1728 # ./install, which can be erroneously created by make from ./install.sh. | |
1729 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1730 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
1731 if test -z "$INSTALL"; then | |
1732 if test "${ac_cv_path_install+set}" = set; then | |
1733 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1734 else | |
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1736 for as_dir in $PATH | |
1737 do | |
1738 IFS=$as_save_IFS | |
1739 test -z "$as_dir" && as_dir=. | |
1740 # Account for people who put trailing slashes in PATH elements. | |
1741 case $as_dir/ in | |
1742 ./ | .// | /cC/* | \ | |
1743 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1744 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1745 /usr/ucb/* ) ;; | |
1746 *) | |
1747 # OSF1 and SCO ODT 3.0 have their own names for install. | |
1748 # Don't use installbsd from OSF since it installs stuff as root | |
1749 # by default. | |
1750 for ac_prog in ginstall scoinst install; do | |
1751 for ac_exec_ext in '' $ac_executable_extensions; do | |
1752 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
1753 if test $ac_prog = install && | |
1754 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1755 # AIX install. It has an incompatible calling convention. | |
1756 : | |
1757 elif test $ac_prog = install && | |
1758 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1759 # program-specific install script used by HP pwplus--don't use. | |
1760 : | |
1761 else | |
1762 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1763 break 3 | |
1764 fi | |
1765 fi | |
1766 done | |
1767 done | |
1768 ;; | |
1769 esac | |
1770 done | |
1771 IFS=$as_save_IFS | |
1772 | |
1773 | |
1774 fi | |
1775 if test "${ac_cv_path_install+set}" = set; then | |
1776 INSTALL=$ac_cv_path_install | |
1777 else | |
1778 # As a last resort, use the slow shell script. Don't cache a | |
1779 # value for INSTALL within a source directory, because that will | |
1780 # break other packages using the cache if that directory is | |
1781 # removed, or if the value is a relative name. | |
1782 INSTALL=$ac_install_sh | |
1783 fi | |
1784 fi | |
1785 { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1786 echo "${ECHO_T}$INSTALL" >&6; } | |
1787 | |
1788 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1789 # It thinks the first close brace ends the variable substitution. | |
1790 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1791 | |
1792 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1793 | |
1794 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1795 | |
1796 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1797 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
1798 # Just in case | |
1799 sleep 1 | |
1800 echo timestamp > conftest.file | |
1801 # Do `set' in a subshell so we don't clobber the current shell's | |
1802 # arguments. Must try -L first in case configure is actually a | |
1803 # symlink; some systems play weird games with the mod time of symlinks | |
1804 # (eg FreeBSD returns the mod time of the symlink's containing | |
1805 # directory). | |
1806 if ( | |
1807 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1808 if test "$*" = "X"; then | |
1809 # -L didn't work. | |
1810 set X `ls -t $srcdir/configure conftest.file` | |
1811 fi | |
1812 rm -f conftest.file | |
1813 if test "$*" != "X $srcdir/configure conftest.file" \ | |
1814 && test "$*" != "X conftest.file $srcdir/configure"; then | |
1815 | |
1816 # If neither matched, then we have a broken ls. This can happen | |
1817 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1818 # broken ls alias from the environment. This has actually | |
1819 # happened. Such a system could not be considered "sane". | |
1820 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1821 alias in your environment" >&5 | |
1822 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1823 alias in your environment" >&2;} | |
1824 { (exit 1); exit 1; }; } | |
1825 fi | |
1826 | |
1827 test "$2" = conftest.file | |
1828 ) | |
1829 then | |
1830 # Ok. | |
1831 : | |
1832 else | |
1833 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1834 Check your system clock" >&5 | |
1835 echo "$as_me: error: newly created file is older than distributed files! | |
1836 Check your system clock" >&2;} | |
1837 { (exit 1); exit 1; }; } | |
1838 fi | |
1839 { echo "$as_me:$LINENO: result: yes" >&5 | |
1840 echo "${ECHO_T}yes" >&6; } | |
1841 test "$program_prefix" != NONE && | |
1842 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
1843 # Use a double $ so make ignores it. | |
1844 test "$program_suffix" != NONE && | |
1845 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
1846 # Double any \ or $. echo might interpret backslashes. | |
1847 # By default was `s,x,x', remove it if useless. | |
1848 cat <<\_ACEOF >conftest.sed | |
1849 s/[\\$]/&&/g;s/;s,x,x,$// | |
1850 _ACEOF | |
1851 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1852 rm -f conftest.sed | |
1853 | |
1854 # expand $ac_aux_dir to an absolute path | |
1855 am_aux_dir=`cd $ac_aux_dir && pwd` | |
1856 | |
1857 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1858 # Use eval to expand $SHELL | |
1859 if eval "$MISSING --run true"; then | |
1860 am_missing_run="$MISSING --run " | |
1861 else | |
1862 am_missing_run= | |
1863 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1864 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1865 fi | |
1866 | |
1867 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1868 # We used to keeping the `.' as first argument, in order to | |
1869 # allow $(mkdir_p) to be used without argument. As in | |
1870 # $(mkdir_p) $(somedir) | |
1871 # where $(somedir) is conditionally defined. However this is wrong | |
1872 # for two reasons: | |
1873 # 1. if the package is installed by a user who cannot write `.' | |
1874 # make install will fail, | |
1875 # 2. the above comment should most certainly read | |
1876 # $(mkdir_p) $(DESTDIR)$(somedir) | |
1877 # so it does not work when $(somedir) is undefined and | |
1878 # $(DESTDIR) is not. | |
1879 # To support the latter case, we have to write | |
1880 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1881 # so the `.' trick is pointless. | |
1882 mkdir_p='mkdir -p --' | |
1883 else | |
1884 # On NextStep and OpenStep, the `mkdir' command does not | |
1885 # recognize any option. It will interpret all options as | |
1886 # directories to create, and then abort because `.' already | |
1887 # exists. | |
1888 for d in ./-p ./--version; | |
1889 do | |
1890 test -d $d && rmdir $d | |
1891 done | |
1892 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1893 if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1894 mkdir_p='$(mkinstalldirs)' | |
1895 else | |
1896 mkdir_p='$(install_sh) -d' | |
1897 fi | |
1898 fi | |
1899 | |
1900 for ac_prog in gawk mawk nawk awk | |
1901 do | |
1902 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1903 set dummy $ac_prog; ac_word=$2 | |
1904 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1906 if test "${ac_cv_prog_AWK+set}" = set; then | |
1907 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1908 else | |
1909 if test -n "$AWK"; then | |
1910 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1911 else | |
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1913 for as_dir in $PATH | |
1914 do | |
1915 IFS=$as_save_IFS | |
1916 test -z "$as_dir" && as_dir=. | |
1917 for ac_exec_ext in '' $ac_executable_extensions; do | |
1918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1919 ac_cv_prog_AWK="$ac_prog" | |
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1921 break 2 | |
1922 fi | |
1923 done | |
1924 done | |
1925 IFS=$as_save_IFS | |
1926 | |
1927 fi | |
1928 fi | |
1929 AWK=$ac_cv_prog_AWK | |
1930 if test -n "$AWK"; then | |
1931 { echo "$as_me:$LINENO: result: $AWK" >&5 | |
1932 echo "${ECHO_T}$AWK" >&6; } | |
1933 else | |
1934 { echo "$as_me:$LINENO: result: no" >&5 | |
1935 echo "${ECHO_T}no" >&6; } | |
1936 fi | |
1937 | |
1938 | |
1939 test -n "$AWK" && break | |
1940 done | |
1941 | |
1942 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1943 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
1944 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
1945 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
1946 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1947 else | |
1948 cat >conftest.make <<\_ACEOF | |
1949 SHELL = /bin/sh | |
1950 all: | |
1951 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
1952 _ACEOF | |
1953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1954 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
1955 *@@@%%%=?*=@@@%%%*) | |
1956 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
1957 *) | |
1958 eval ac_cv_prog_make_${ac_make}_set=no;; | |
1959 esac | |
1960 rm -f conftest.make | |
1961 fi | |
1962 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
1963 { echo "$as_me:$LINENO: result: yes" >&5 | |
1964 echo "${ECHO_T}yes" >&6; } | |
1965 SET_MAKE= | |
1966 else | |
1967 { echo "$as_me:$LINENO: result: no" >&5 | |
1968 echo "${ECHO_T}no" >&6; } | |
1969 SET_MAKE="MAKE=${MAKE-make}" | |
1970 fi | |
1971 | |
1972 rm -rf .tst 2>/dev/null | |
1973 mkdir .tst 2>/dev/null | |
1974 if test -d .tst; then | |
1975 am__leading_dot=. | |
1976 else | |
1977 am__leading_dot=_ | |
1978 fi | |
1979 rmdir .tst 2>/dev/null | |
1980 | |
1981 # test to see if srcdir already configured | |
1982 if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1983 test -f $srcdir/config.status; then | |
1984 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1985 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1986 { (exit 1); exit 1; }; } | |
1987 fi | |
1988 | |
1989 # test whether we have cygpath | |
1990 if test -z "$CYGPATH_W"; then | |
1991 if (cygpath --version) >/dev/null 2>/dev/null; then | |
1992 CYGPATH_W='cygpath -w' | |
1993 else | |
1994 CYGPATH_W=echo | |
1995 fi | |
1996 fi | |
1997 | |
1998 | |
1999 # Define the identity of the package. | |
2000 PACKAGE='lwtools' | |
2001 VERSION='2.2' | |
2002 | |
2003 | |
2004 cat >>confdefs.h <<_ACEOF | |
2005 #define PACKAGE "$PACKAGE" | |
2006 _ACEOF | |
2007 | |
2008 | |
2009 cat >>confdefs.h <<_ACEOF | |
2010 #define VERSION "$VERSION" | |
2011 _ACEOF | |
2012 | |
2013 # Some tools Automake needs. | |
2014 | |
2015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2016 | |
2017 | |
2018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2019 | |
2020 | |
2021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2022 | |
2023 | |
2024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2025 | |
2026 | |
2027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2028 | |
2029 install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2030 | |
2031 # Installed binaries are usually stripped using `strip' when the user | |
2032 # run `make install-strip'. However `strip' might not be the right | |
2033 # tool to use in cross-compilation environments, therefore Automake | |
2034 # will honor the `STRIP' environment variable to overrule this program. | |
2035 if test "$cross_compiling" != no; then | |
2036 if test -n "$ac_tool_prefix"; then | |
2037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2038 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2039 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2041 if test "${ac_cv_prog_STRIP+set}" = set; then | |
2042 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2043 else | |
2044 if test -n "$STRIP"; then | |
2045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2046 else | |
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2048 for as_dir in $PATH | |
2049 do | |
2050 IFS=$as_save_IFS | |
2051 test -z "$as_dir" && as_dir=. | |
2052 for ac_exec_ext in '' $ac_executable_extensions; do | |
2053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2054 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2056 break 2 | |
2057 fi | |
2058 done | |
2059 done | |
2060 IFS=$as_save_IFS | |
2061 | |
2062 fi | |
2063 fi | |
2064 STRIP=$ac_cv_prog_STRIP | |
2065 if test -n "$STRIP"; then | |
2066 { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2067 echo "${ECHO_T}$STRIP" >&6; } | |
2068 else | |
2069 { echo "$as_me:$LINENO: result: no" >&5 | |
2070 echo "${ECHO_T}no" >&6; } | |
2071 fi | |
2072 | |
2073 | |
2074 fi | |
2075 if test -z "$ac_cv_prog_STRIP"; then | |
2076 ac_ct_STRIP=$STRIP | |
2077 # Extract the first word of "strip", so it can be a program name with args. | |
2078 set dummy strip; ac_word=$2 | |
2079 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2081 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2082 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2083 else | |
2084 if test -n "$ac_ct_STRIP"; then | |
2085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2086 else | |
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2088 for as_dir in $PATH | |
2089 do | |
2090 IFS=$as_save_IFS | |
2091 test -z "$as_dir" && as_dir=. | |
2092 for ac_exec_ext in '' $ac_executable_extensions; do | |
2093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2094 ac_cv_prog_ac_ct_STRIP="strip" | |
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2096 break 2 | |
2097 fi | |
2098 done | |
2099 done | |
2100 IFS=$as_save_IFS | |
2101 | |
2102 fi | |
2103 fi | |
2104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2105 if test -n "$ac_ct_STRIP"; then | |
2106 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2107 echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
2108 else | |
2109 { echo "$as_me:$LINENO: result: no" >&5 | |
2110 echo "${ECHO_T}no" >&6; } | |
2111 fi | |
2112 | |
2113 if test "x$ac_ct_STRIP" = x; then | |
2114 STRIP=":" | |
2115 else | |
2116 case $cross_compiling:$ac_tool_warned in | |
2117 yes:) | |
2118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2119 whose name does not start with the host triplet. If you think this | |
2120 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2122 whose name does not start with the host triplet. If you think this | |
2123 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2124 ac_tool_warned=yes ;; | |
2125 esac | |
2126 STRIP=$ac_ct_STRIP | |
2127 fi | |
2128 else | |
2129 STRIP="$ac_cv_prog_STRIP" | |
2130 fi | |
2131 | |
2132 fi | |
2133 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2134 | |
2135 # We need awk for the "check" target. The system "awk" is bad on | |
2136 # some platforms. | |
2137 # Always define AMTAR for backward compatibility. | |
2138 | |
2139 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2140 | |
2141 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2142 | |
2143 | |
2144 | |
2145 | |
2146 | |
2147 ac_ext=c | |
2148 ac_cpp='$CPP $CPPFLAGS' | |
2149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2151 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2152 if test -n "$ac_tool_prefix"; then | |
2153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2154 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2157 if test "${ac_cv_prog_CC+set}" = set; then | |
2158 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2159 else | |
2160 if test -n "$CC"; then | |
2161 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2162 else | |
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2164 for as_dir in $PATH | |
2165 do | |
2166 IFS=$as_save_IFS | |
2167 test -z "$as_dir" && as_dir=. | |
2168 for ac_exec_ext in '' $ac_executable_extensions; do | |
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2170 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2172 break 2 | |
2173 fi | |
2174 done | |
2175 done | |
2176 IFS=$as_save_IFS | |
2177 | |
2178 fi | |
2179 fi | |
2180 CC=$ac_cv_prog_CC | |
2181 if test -n "$CC"; then | |
2182 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2183 echo "${ECHO_T}$CC" >&6; } | |
2184 else | |
2185 { echo "$as_me:$LINENO: result: no" >&5 | |
2186 echo "${ECHO_T}no" >&6; } | |
2187 fi | |
2188 | |
2189 | |
2190 fi | |
2191 if test -z "$ac_cv_prog_CC"; then | |
2192 ac_ct_CC=$CC | |
2193 # Extract the first word of "gcc", so it can be a program name with args. | |
2194 set dummy gcc; ac_word=$2 | |
2195 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2198 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2199 else | |
2200 if test -n "$ac_ct_CC"; then | |
2201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2202 else | |
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2204 for as_dir in $PATH | |
2205 do | |
2206 IFS=$as_save_IFS | |
2207 test -z "$as_dir" && as_dir=. | |
2208 for ac_exec_ext in '' $ac_executable_extensions; do | |
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2210 ac_cv_prog_ac_ct_CC="gcc" | |
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2212 break 2 | |
2213 fi | |
2214 done | |
2215 done | |
2216 IFS=$as_save_IFS | |
2217 | |
2218 fi | |
2219 fi | |
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2221 if test -n "$ac_ct_CC"; then | |
2222 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2223 echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2224 else | |
2225 { echo "$as_me:$LINENO: result: no" >&5 | |
2226 echo "${ECHO_T}no" >&6; } | |
2227 fi | |
2228 | |
2229 if test "x$ac_ct_CC" = x; then | |
2230 CC="" | |
2231 else | |
2232 case $cross_compiling:$ac_tool_warned in | |
2233 yes:) | |
2234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2235 whose name does not start with the host triplet. If you think this | |
2236 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2238 whose name does not start with the host triplet. If you think this | |
2239 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2240 ac_tool_warned=yes ;; | |
2241 esac | |
2242 CC=$ac_ct_CC | |
2243 fi | |
2244 else | |
2245 CC="$ac_cv_prog_CC" | |
2246 fi | |
2247 | |
2248 if test -z "$CC"; then | |
2249 if test -n "$ac_tool_prefix"; then | |
2250 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2251 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2252 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2254 if test "${ac_cv_prog_CC+set}" = set; then | |
2255 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2256 else | |
2257 if test -n "$CC"; then | |
2258 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2259 else | |
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2261 for as_dir in $PATH | |
2262 do | |
2263 IFS=$as_save_IFS | |
2264 test -z "$as_dir" && as_dir=. | |
2265 for ac_exec_ext in '' $ac_executable_extensions; do | |
2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2267 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2269 break 2 | |
2270 fi | |
2271 done | |
2272 done | |
2273 IFS=$as_save_IFS | |
2274 | |
2275 fi | |
2276 fi | |
2277 CC=$ac_cv_prog_CC | |
2278 if test -n "$CC"; then | |
2279 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2280 echo "${ECHO_T}$CC" >&6; } | |
2281 else | |
2282 { echo "$as_me:$LINENO: result: no" >&5 | |
2283 echo "${ECHO_T}no" >&6; } | |
2284 fi | |
2285 | |
2286 | |
2287 fi | |
2288 fi | |
2289 if test -z "$CC"; then | |
2290 # Extract the first word of "cc", so it can be a program name with args. | |
2291 set dummy cc; ac_word=$2 | |
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2294 if test "${ac_cv_prog_CC+set}" = set; then | |
2295 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2296 else | |
2297 if test -n "$CC"; then | |
2298 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2299 else | |
2300 ac_prog_rejected=no | |
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2302 for as_dir in $PATH | |
2303 do | |
2304 IFS=$as_save_IFS | |
2305 test -z "$as_dir" && as_dir=. | |
2306 for ac_exec_ext in '' $ac_executable_extensions; do | |
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2308 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2309 ac_prog_rejected=yes | |
2310 continue | |
2311 fi | |
2312 ac_cv_prog_CC="cc" | |
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2314 break 2 | |
2315 fi | |
2316 done | |
2317 done | |
2318 IFS=$as_save_IFS | |
2319 | |
2320 if test $ac_prog_rejected = yes; then | |
2321 # We found a bogon in the path, so make sure we never use it. | |
2322 set dummy $ac_cv_prog_CC | |
2323 shift | |
2324 if test $# != 0; then | |
2325 # We chose a different compiler from the bogus one. | |
2326 # However, it has the same basename, so the bogon will be chosen | |
2327 # first if we set CC to just the basename; use the full file name. | |
2328 shift | |
2329 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2330 fi | |
2331 fi | |
2332 fi | |
2333 fi | |
2334 CC=$ac_cv_prog_CC | |
2335 if test -n "$CC"; then | |
2336 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2337 echo "${ECHO_T}$CC" >&6; } | |
2338 else | |
2339 { echo "$as_me:$LINENO: result: no" >&5 | |
2340 echo "${ECHO_T}no" >&6; } | |
2341 fi | |
2342 | |
2343 | |
2344 fi | |
2345 if test -z "$CC"; then | |
2346 if test -n "$ac_tool_prefix"; then | |
2347 for ac_prog in cl.exe | |
2348 do | |
2349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2353 if test "${ac_cv_prog_CC+set}" = set; then | |
2354 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2355 else | |
2356 if test -n "$CC"; then | |
2357 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2358 else | |
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2360 for as_dir in $PATH | |
2361 do | |
2362 IFS=$as_save_IFS | |
2363 test -z "$as_dir" && as_dir=. | |
2364 for ac_exec_ext in '' $ac_executable_extensions; do | |
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2368 break 2 | |
2369 fi | |
2370 done | |
2371 done | |
2372 IFS=$as_save_IFS | |
2373 | |
2374 fi | |
2375 fi | |
2376 CC=$ac_cv_prog_CC | |
2377 if test -n "$CC"; then | |
2378 { echo "$as_me:$LINENO: result: $CC" >&5 | |
2379 echo "${ECHO_T}$CC" >&6; } | |
2380 else | |
2381 { echo "$as_me:$LINENO: result: no" >&5 | |
2382 echo "${ECHO_T}no" >&6; } | |
2383 fi | |
2384 | |
2385 | |
2386 test -n "$CC" && break | |
2387 done | |
2388 fi | |
2389 if test -z "$CC"; then | |
2390 ac_ct_CC=$CC | |
2391 for ac_prog in cl.exe | |
2392 do | |
2393 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2394 set dummy $ac_prog; ac_word=$2 | |
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2398 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2399 else | |
2400 if test -n "$ac_ct_CC"; then | |
2401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2402 else | |
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2404 for as_dir in $PATH | |
2405 do | |
2406 IFS=$as_save_IFS | |
2407 test -z "$as_dir" && as_dir=. | |
2408 for ac_exec_ext in '' $ac_executable_extensions; do | |
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2410 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2412 break 2 | |
2413 fi | |
2414 done | |
2415 done | |
2416 IFS=$as_save_IFS | |
2417 | |
2418 fi | |
2419 fi | |
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2421 if test -n "$ac_ct_CC"; then | |
2422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2423 echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2424 else | |
2425 { echo "$as_me:$LINENO: result: no" >&5 | |
2426 echo "${ECHO_T}no" >&6; } | |
2427 fi | |
2428 | |
2429 | |
2430 test -n "$ac_ct_CC" && break | |
2431 done | |
2432 | |
2433 if test "x$ac_ct_CC" = x; then | |
2434 CC="" | |
2435 else | |
2436 case $cross_compiling:$ac_tool_warned in | |
2437 yes:) | |
2438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2439 whose name does not start with the host triplet. If you think this | |
2440 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2442 whose name does not start with the host triplet. If you think this | |
2443 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2444 ac_tool_warned=yes ;; | |
2445 esac | |
2446 CC=$ac_ct_CC | |
2447 fi | |
2448 fi | |
2449 | |
2450 fi | |
2451 | |
2452 | |
2453 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2454 See \`config.log' for more details." >&5 | |
2455 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2456 See \`config.log' for more details." >&2;} | |
2457 { (exit 1); exit 1; }; } | |
2458 | |
2459 # Provide some information about the compiler. | |
2460 echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2461 ac_compiler=`set X $ac_compile; echo $2` | |
2462 { (ac_try="$ac_compiler --version >&5" | |
2463 case "(($ac_try" in | |
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2465 *) ac_try_echo=$ac_try;; | |
2466 esac | |
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2468 (eval "$ac_compiler --version >&5") 2>&5 | |
2469 ac_status=$? | |
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2471 (exit $ac_status); } | |
2472 { (ac_try="$ac_compiler -v >&5" | |
2473 case "(($ac_try" in | |
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2475 *) ac_try_echo=$ac_try;; | |
2476 esac | |
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2478 (eval "$ac_compiler -v >&5") 2>&5 | |
2479 ac_status=$? | |
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2481 (exit $ac_status); } | |
2482 { (ac_try="$ac_compiler -V >&5" | |
2483 case "(($ac_try" in | |
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2485 *) ac_try_echo=$ac_try;; | |
2486 esac | |
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2488 (eval "$ac_compiler -V >&5") 2>&5 | |
2489 ac_status=$? | |
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2491 (exit $ac_status); } | |
2492 | |
2493 cat >conftest.$ac_ext <<_ACEOF | |
2494 /* confdefs.h. */ | |
2495 _ACEOF | |
2496 cat confdefs.h >>conftest.$ac_ext | |
2497 cat >>conftest.$ac_ext <<_ACEOF | |
2498 /* end confdefs.h. */ | |
2499 | |
2500 int | |
2501 main () | |
2502 { | |
2503 | |
2504 ; | |
2505 return 0; | |
2506 } | |
2507 _ACEOF | |
2508 ac_clean_files_save=$ac_clean_files | |
2509 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2510 # Try to create an executable without -o first, disregard a.out. | |
2511 # It will help us diagnose broken compilers, and finding out an intuition | |
2512 # of exeext. | |
2513 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2514 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2516 # | |
2517 # List of possible output files, starting from the most likely. | |
2518 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2519 # only as a last resort. b.out is created by i960 compilers. | |
2520 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2521 # | |
2522 # The IRIX 6 linker writes into existing files which may not be | |
2523 # executable, retaining their permissions. Remove them first so a | |
2524 # subsequent execution test works. | |
2525 ac_rmfiles= | |
2526 for ac_file in $ac_files | |
2527 do | |
2528 case $ac_file in | |
2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2530 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2531 esac | |
2532 done | |
2533 rm -f $ac_rmfiles | |
2534 | |
2535 if { (ac_try="$ac_link_default" | |
2536 case "(($ac_try" in | |
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2538 *) ac_try_echo=$ac_try;; | |
2539 esac | |
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2541 (eval "$ac_link_default") 2>&5 | |
2542 ac_status=$? | |
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2544 (exit $ac_status); }; then | |
2545 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2546 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2547 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2548 # so that the user can short-circuit this test for compilers unknown to | |
2549 # Autoconf. | |
2550 for ac_file in $ac_files '' | |
2551 do | |
2552 test -f "$ac_file" || continue | |
2553 case $ac_file in | |
2554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2555 ;; | |
2556 [ab].out ) | |
2557 # We found the default executable, but exeext='' is most | |
2558 # certainly right. | |
2559 break;; | |
2560 *.* ) | |
2561 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2562 then :; else | |
2563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2564 fi | |
2565 # We set ac_cv_exeext here because the later test for it is not | |
2566 # safe: cross compilers may not add the suffix if given an `-o' | |
2567 # argument, so we may need to know it at that point already. | |
2568 # Even if this section looks crufty: it has the advantage of | |
2569 # actually working. | |
2570 break;; | |
2571 * ) | |
2572 break;; | |
2573 esac | |
2574 done | |
2575 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2576 | |
2577 else | |
2578 ac_file='' | |
2579 fi | |
2580 | |
2581 { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2582 echo "${ECHO_T}$ac_file" >&6; } | |
2583 if test -z "$ac_file"; then | |
2584 echo "$as_me: failed program was:" >&5 | |
2585 sed 's/^/| /' conftest.$ac_ext >&5 | |
2586 | |
2587 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2588 See \`config.log' for more details." >&5 | |
2589 echo "$as_me: error: C compiler cannot create executables | |
2590 See \`config.log' for more details." >&2;} | |
2591 { (exit 77); exit 77; }; } | |
2592 fi | |
2593 | |
2594 ac_exeext=$ac_cv_exeext | |
2595 | |
2596 # Check that the compiler produces executables we can run. If not, either | |
2597 # the compiler is broken, or we cross compile. | |
2598 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2601 # If not cross compiling, check that we can run a simple program. | |
2602 if test "$cross_compiling" != yes; then | |
2603 if { ac_try='./$ac_file' | |
2604 { (case "(($ac_try" in | |
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2606 *) ac_try_echo=$ac_try;; | |
2607 esac | |
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2609 (eval "$ac_try") 2>&5 | |
2610 ac_status=$? | |
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2612 (exit $ac_status); }; }; then | |
2613 cross_compiling=no | |
2614 else | |
2615 if test "$cross_compiling" = maybe; then | |
2616 cross_compiling=yes | |
2617 else | |
2618 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2619 If you meant to cross compile, use \`--host'. | |
2620 See \`config.log' for more details." >&5 | |
2621 echo "$as_me: error: cannot run C compiled programs. | |
2622 If you meant to cross compile, use \`--host'. | |
2623 See \`config.log' for more details." >&2;} | |
2624 { (exit 1); exit 1; }; } | |
2625 fi | |
2626 fi | |
2627 fi | |
2628 { echo "$as_me:$LINENO: result: yes" >&5 | |
2629 echo "${ECHO_T}yes" >&6; } | |
2630 | |
2631 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2632 ac_clean_files=$ac_clean_files_save | |
2633 # Check that the compiler produces executables we can run. If not, either | |
2634 # the compiler is broken, or we cross compile. | |
2635 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2636 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2637 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2638 echo "${ECHO_T}$cross_compiling" >&6; } | |
2639 | |
2640 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2641 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2642 if { (ac_try="$ac_link" | |
2643 case "(($ac_try" in | |
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2645 *) ac_try_echo=$ac_try;; | |
2646 esac | |
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2648 (eval "$ac_link") 2>&5 | |
2649 ac_status=$? | |
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2651 (exit $ac_status); }; then | |
2652 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2654 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2655 # `rm'. | |
2656 for ac_file in conftest.exe conftest conftest.*; do | |
2657 test -f "$ac_file" || continue | |
2658 case $ac_file in | |
2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2661 break;; | |
2662 * ) break;; | |
2663 esac | |
2664 done | |
2665 else | |
2666 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2667 See \`config.log' for more details." >&5 | |
2668 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2669 See \`config.log' for more details." >&2;} | |
2670 { (exit 1); exit 1; }; } | |
2671 fi | |
2672 | |
2673 rm -f conftest$ac_cv_exeext | |
2674 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2675 echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
2676 | |
2677 rm -f conftest.$ac_ext | |
2678 EXEEXT=$ac_cv_exeext | |
2679 ac_exeext=$EXEEXT | |
2680 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2681 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
2682 if test "${ac_cv_objext+set}" = set; then | |
2683 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2684 else | |
2685 cat >conftest.$ac_ext <<_ACEOF | |
2686 /* confdefs.h. */ | |
2687 _ACEOF | |
2688 cat confdefs.h >>conftest.$ac_ext | |
2689 cat >>conftest.$ac_ext <<_ACEOF | |
2690 /* end confdefs.h. */ | |
2691 | |
2692 int | |
2693 main () | |
2694 { | |
2695 | |
2696 ; | |
2697 return 0; | |
2698 } | |
2699 _ACEOF | |
2700 rm -f conftest.o conftest.obj | |
2701 if { (ac_try="$ac_compile" | |
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_compile") 2>&5 | |
2708 ac_status=$? | |
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2710 (exit $ac_status); }; then | |
2711 for ac_file in conftest.o conftest.obj conftest.*; do | |
2712 test -f "$ac_file" || continue; | |
2713 case $ac_file in | |
2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
2715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2716 break;; | |
2717 esac | |
2718 done | |
2719 else | |
2720 echo "$as_me: failed program was:" >&5 | |
2721 sed 's/^/| /' conftest.$ac_ext >&5 | |
2722 | |
2723 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2724 See \`config.log' for more details." >&5 | |
2725 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2726 See \`config.log' for more details." >&2;} | |
2727 { (exit 1); exit 1; }; } | |
2728 fi | |
2729 | |
2730 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2731 fi | |
2732 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2733 echo "${ECHO_T}$ac_cv_objext" >&6; } | |
2734 OBJEXT=$ac_cv_objext | |
2735 ac_objext=$OBJEXT | |
2736 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2737 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
2738 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2739 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2740 else | |
2741 cat >conftest.$ac_ext <<_ACEOF | |
2742 /* confdefs.h. */ | |
2743 _ACEOF | |
2744 cat confdefs.h >>conftest.$ac_ext | |
2745 cat >>conftest.$ac_ext <<_ACEOF | |
2746 /* end confdefs.h. */ | |
2747 | |
2748 int | |
2749 main () | |
2750 { | |
2751 #ifndef __GNUC__ | |
2752 choke me | |
2753 #endif | |
2754 | |
2755 ; | |
2756 return 0; | |
2757 } | |
2758 _ACEOF | |
2759 rm -f conftest.$ac_objext | |
2760 if { (ac_try="$ac_compile" | |
2761 case "(($ac_try" in | |
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2763 *) ac_try_echo=$ac_try;; | |
2764 esac | |
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2766 (eval "$ac_compile") 2>conftest.er1 | |
2767 ac_status=$? | |
2768 grep -v '^ *+' conftest.er1 >conftest.err | |
2769 rm -f conftest.er1 | |
2770 cat conftest.err >&5 | |
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2772 (exit $ac_status); } && { | |
2773 test -z "$ac_c_werror_flag" || | |
2774 test ! -s conftest.err | |
2775 } && test -s conftest.$ac_objext; then | |
2776 ac_compiler_gnu=yes | |
2777 else | |
2778 echo "$as_me: failed program was:" >&5 | |
2779 sed 's/^/| /' conftest.$ac_ext >&5 | |
2780 | |
2781 ac_compiler_gnu=no | |
2782 fi | |
2783 | |
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2785 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2786 | |
2787 fi | |
2788 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2789 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2790 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2791 ac_test_CFLAGS=${CFLAGS+set} | |
2792 ac_save_CFLAGS=$CFLAGS | |
2793 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
2795 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2796 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2797 else | |
2798 ac_save_c_werror_flag=$ac_c_werror_flag | |
2799 ac_c_werror_flag=yes | |
2800 ac_cv_prog_cc_g=no | |
2801 CFLAGS="-g" | |
2802 cat >conftest.$ac_ext <<_ACEOF | |
2803 /* confdefs.h. */ | |
2804 _ACEOF | |
2805 cat confdefs.h >>conftest.$ac_ext | |
2806 cat >>conftest.$ac_ext <<_ACEOF | |
2807 /* end confdefs.h. */ | |
2808 | |
2809 int | |
2810 main () | |
2811 { | |
2812 | |
2813 ; | |
2814 return 0; | |
2815 } | |
2816 _ACEOF | |
2817 rm -f conftest.$ac_objext | |
2818 if { (ac_try="$ac_compile" | |
2819 case "(($ac_try" in | |
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2821 *) ac_try_echo=$ac_try;; | |
2822 esac | |
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2824 (eval "$ac_compile") 2>conftest.er1 | |
2825 ac_status=$? | |
2826 grep -v '^ *+' conftest.er1 >conftest.err | |
2827 rm -f conftest.er1 | |
2828 cat conftest.err >&5 | |
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2830 (exit $ac_status); } && { | |
2831 test -z "$ac_c_werror_flag" || | |
2832 test ! -s conftest.err | |
2833 } && test -s conftest.$ac_objext; then | |
2834 ac_cv_prog_cc_g=yes | |
2835 else | |
2836 echo "$as_me: failed program was:" >&5 | |
2837 sed 's/^/| /' conftest.$ac_ext >&5 | |
2838 | |
2839 CFLAGS="" | |
2840 cat >conftest.$ac_ext <<_ACEOF | |
2841 /* confdefs.h. */ | |
2842 _ACEOF | |
2843 cat confdefs.h >>conftest.$ac_ext | |
2844 cat >>conftest.$ac_ext <<_ACEOF | |
2845 /* end confdefs.h. */ | |
2846 | |
2847 int | |
2848 main () | |
2849 { | |
2850 | |
2851 ; | |
2852 return 0; | |
2853 } | |
2854 _ACEOF | |
2855 rm -f conftest.$ac_objext | |
2856 if { (ac_try="$ac_compile" | |
2857 case "(($ac_try" in | |
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2859 *) ac_try_echo=$ac_try;; | |
2860 esac | |
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2862 (eval "$ac_compile") 2>conftest.er1 | |
2863 ac_status=$? | |
2864 grep -v '^ *+' conftest.er1 >conftest.err | |
2865 rm -f conftest.er1 | |
2866 cat conftest.err >&5 | |
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2868 (exit $ac_status); } && { | |
2869 test -z "$ac_c_werror_flag" || | |
2870 test ! -s conftest.err | |
2871 } && test -s conftest.$ac_objext; then | |
2872 : | |
2873 else | |
2874 echo "$as_me: failed program was:" >&5 | |
2875 sed 's/^/| /' conftest.$ac_ext >&5 | |
2876 | |
2877 ac_c_werror_flag=$ac_save_c_werror_flag | |
2878 CFLAGS="-g" | |
2879 cat >conftest.$ac_ext <<_ACEOF | |
2880 /* confdefs.h. */ | |
2881 _ACEOF | |
2882 cat confdefs.h >>conftest.$ac_ext | |
2883 cat >>conftest.$ac_ext <<_ACEOF | |
2884 /* end confdefs.h. */ | |
2885 | |
2886 int | |
2887 main () | |
2888 { | |
2889 | |
2890 ; | |
2891 return 0; | |
2892 } | |
2893 _ACEOF | |
2894 rm -f conftest.$ac_objext | |
2895 if { (ac_try="$ac_compile" | |
2896 case "(($ac_try" in | |
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2898 *) ac_try_echo=$ac_try;; | |
2899 esac | |
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2901 (eval "$ac_compile") 2>conftest.er1 | |
2902 ac_status=$? | |
2903 grep -v '^ *+' conftest.er1 >conftest.err | |
2904 rm -f conftest.er1 | |
2905 cat conftest.err >&5 | |
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2907 (exit $ac_status); } && { | |
2908 test -z "$ac_c_werror_flag" || | |
2909 test ! -s conftest.err | |
2910 } && test -s conftest.$ac_objext; then | |
2911 ac_cv_prog_cc_g=yes | |
2912 else | |
2913 echo "$as_me: failed program was:" >&5 | |
2914 sed 's/^/| /' conftest.$ac_ext >&5 | |
2915 | |
2916 | |
2917 fi | |
2918 | |
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2920 fi | |
2921 | |
2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2923 fi | |
2924 | |
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2926 ac_c_werror_flag=$ac_save_c_werror_flag | |
2927 fi | |
2928 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2929 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
2930 if test "$ac_test_CFLAGS" = set; then | |
2931 CFLAGS=$ac_save_CFLAGS | |
2932 elif test $ac_cv_prog_cc_g = yes; then | |
2933 if test "$GCC" = yes; then | |
2934 CFLAGS="-g -O2" | |
2935 else | |
2936 CFLAGS="-g" | |
2937 fi | |
2938 else | |
2939 if test "$GCC" = yes; then | |
2940 CFLAGS="-O2" | |
2941 else | |
2942 CFLAGS= | |
2943 fi | |
2944 fi | |
2945 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
2946 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2947 if test "${ac_cv_prog_cc_c89+set}" = set; then | |
2948 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2949 else | |
2950 ac_cv_prog_cc_c89=no | |
2951 ac_save_CC=$CC | |
2952 cat >conftest.$ac_ext <<_ACEOF | |
2953 /* confdefs.h. */ | |
2954 _ACEOF | |
2955 cat confdefs.h >>conftest.$ac_ext | |
2956 cat >>conftest.$ac_ext <<_ACEOF | |
2957 /* end confdefs.h. */ | |
2958 #include <stdarg.h> | |
2959 #include <stdio.h> | |
2960 #include <sys/types.h> | |
2961 #include <sys/stat.h> | |
2962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2963 struct buf { int x; }; | |
2964 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2965 static char *e (p, i) | |
2966 char **p; | |
2967 int i; | |
2968 { | |
2969 return p[i]; | |
2970 } | |
2971 static char *f (char * (*g) (char **, int), char **p, ...) | |
2972 { | |
2973 char *s; | |
2974 va_list v; | |
2975 va_start (v,p); | |
2976 s = g (p, va_arg (v,int)); | |
2977 va_end (v); | |
2978 return s; | |
2979 } | |
2980 | |
2981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2982 function prototypes and stuff, but not '\xHH' hex character constants. | |
2983 These don't provoke an error unfortunately, instead are silently treated | |
2984 as 'x'. The following induces an error, until -std is added to get | |
2985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2986 array size at least. It's necessary to write '\x00'==0 to get something | |
2987 that's true only with -std. */ | |
2988 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2989 | |
2990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2991 inside strings and character constants. */ | |
2992 #define FOO(x) 'x' | |
2993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2994 | |
2995 int test (int i, double x); | |
2996 struct s1 {int (*f) (int a);}; | |
2997 struct s2 {int (*f) (double a);}; | |
2998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2999 int argc; | |
3000 char **argv; | |
3001 int | |
3002 main () | |
3003 { | |
3004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3005 ; | |
3006 return 0; | |
3007 } | |
3008 _ACEOF | |
3009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3011 do | |
3012 CC="$ac_save_CC $ac_arg" | |
3013 rm -f conftest.$ac_objext | |
3014 if { (ac_try="$ac_compile" | |
3015 case "(($ac_try" in | |
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3017 *) ac_try_echo=$ac_try;; | |
3018 esac | |
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3020 (eval "$ac_compile") 2>conftest.er1 | |
3021 ac_status=$? | |
3022 grep -v '^ *+' conftest.er1 >conftest.err | |
3023 rm -f conftest.er1 | |
3024 cat conftest.err >&5 | |
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3026 (exit $ac_status); } && { | |
3027 test -z "$ac_c_werror_flag" || | |
3028 test ! -s conftest.err | |
3029 } && test -s conftest.$ac_objext; then | |
3030 ac_cv_prog_cc_c89=$ac_arg | |
3031 else | |
3032 echo "$as_me: failed program was:" >&5 | |
3033 sed 's/^/| /' conftest.$ac_ext >&5 | |
3034 | |
3035 | |
3036 fi | |
3037 | |
3038 rm -f core conftest.err conftest.$ac_objext | |
3039 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3040 done | |
3041 rm -f conftest.$ac_ext | |
3042 CC=$ac_save_CC | |
3043 | |
3044 fi | |
3045 # AC_CACHE_VAL | |
3046 case "x$ac_cv_prog_cc_c89" in | |
3047 x) | |
3048 { echo "$as_me:$LINENO: result: none needed" >&5 | |
3049 echo "${ECHO_T}none needed" >&6; } ;; | |
3050 xno) | |
3051 { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3052 echo "${ECHO_T}unsupported" >&6; } ;; | |
3053 *) | |
3054 CC="$CC $ac_cv_prog_cc_c89" | |
3055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3056 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
3057 esac | |
3058 | |
3059 | |
3060 ac_ext=c | |
3061 ac_cpp='$CPP $CPPFLAGS' | |
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3065 DEPDIR="${am__leading_dot}deps" | |
3066 | |
3067 ac_config_commands="$ac_config_commands depfiles" | |
3068 | |
3069 | |
3070 am_make=${MAKE-make} | |
3071 cat > confinc << 'END' | |
3072 am__doit: | |
3073 @echo done | |
3074 .PHONY: am__doit | |
3075 END | |
3076 # If we don't find an include directive, just comment out the code. | |
3077 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3078 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
3079 am__include="#" | |
3080 am__quote= | |
3081 _am_result=none | |
3082 # First try GNU make style include. | |
3083 echo "include confinc" > confmf | |
3084 # We grep out `Entering directory' and `Leaving directory' | |
3085 # messages which can occur if `w' ends up in MAKEFLAGS. | |
3086 # In particular we don't look at `^make:' because GNU make might | |
3087 # be invoked under some other name (usually "gmake"), in which | |
3088 # case it prints its new name instead of `make'. | |
3089 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3090 am__include=include | |
3091 am__quote= | |
3092 _am_result=GNU | |
3093 fi | |
3094 # Now try BSD make style include. | |
3095 if test "$am__include" = "#"; then | |
3096 echo '.include "confinc"' > confmf | |
3097 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3098 am__include=.include | |
3099 am__quote="\"" | |
3100 _am_result=BSD | |
3101 fi | |
3102 fi | |
3103 | |
3104 | |
3105 { echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3106 echo "${ECHO_T}$_am_result" >&6; } | |
3107 rm -f confinc confmf | |
3108 | |
3109 # Check whether --enable-dependency-tracking was given. | |
3110 if test "${enable_dependency_tracking+set}" = set; then | |
3111 enableval=$enable_dependency_tracking; | |
3112 fi | |
3113 | |
3114 if test "x$enable_dependency_tracking" != xno; then | |
3115 am_depcomp="$ac_aux_dir/depcomp" | |
3116 AMDEPBACKSLASH='\' | |
3117 fi | |
3118 | |
3119 | |
3120 if test "x$enable_dependency_tracking" != xno; then | |
3121 AMDEP_TRUE= | |
3122 AMDEP_FALSE='#' | |
3123 else | |
3124 AMDEP_TRUE='#' | |
3125 AMDEP_FALSE= | |
3126 fi | |
3127 | |
3128 | |
3129 | |
3130 | |
3131 depcc="$CC" am_compiler_list= | |
3132 | |
3133 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3134 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
3135 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3136 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3137 else | |
3138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3139 # We make a subdir and do the tests there. Otherwise we can end up | |
3140 # making bogus files that we don't know about and never remove. For | |
3141 # instance it was reported that on HP-UX the gcc test will end up | |
3142 # making a dummy file named `D' -- because `-MD' means `put the output | |
3143 # in D'. | |
3144 mkdir conftest.dir | |
3145 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3146 # using a relative directory. | |
3147 cp "$am_depcomp" conftest.dir | |
3148 cd conftest.dir | |
3149 # We will build objects and dependencies in a subdirectory because | |
3150 # it helps to detect inapplicable dependency modes. For instance | |
3151 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3152 # side effect of compilation, but ICC will put the dependencies in | |
3153 # the current directory while Tru64 will put them in the object | |
3154 # directory. | |
3155 mkdir sub | |
3156 | |
3157 am_cv_CC_dependencies_compiler_type=none | |
3158 if test "$am_compiler_list" = ""; then | |
3159 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3160 fi | |
3161 for depmode in $am_compiler_list; do | |
3162 # Setup a source with many dependencies, because some compilers | |
3163 # like to wrap large dependency lists on column 80 (with \), and | |
3164 # we should not choose a depcomp mode which is confused by this. | |
3165 # | |
3166 # We need to recreate these files for each test, as the compiler may | |
3167 # overwrite some of them when testing with obscure command lines. | |
3168 # This happens at least with the AIX C compiler. | |
3169 : > sub/conftest.c | |
3170 for i in 1 2 3 4 5 6; do | |
3171 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3172 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3173 # Solaris 8's {/usr,}/bin/sh. | |
3174 touch sub/conftst$i.h | |
3175 done | |
3176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3177 | |
3178 case $depmode in | |
3179 nosideeffect) | |
3180 # after this tag, mechanisms are not by side-effect, so they'll | |
3181 # only be used when explicitly requested | |
3182 if test "x$enable_dependency_tracking" = xyes; then | |
3183 continue | |
3184 else | |
3185 break | |
3186 fi | |
3187 ;; | |
3188 none) break ;; | |
3189 esac | |
3190 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3191 # mode. It turns out that the SunPro C++ compiler does not properly | |
3192 # handle `-M -o', and we need to detect this. | |
3193 if depmode=$depmode \ | |
3194 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3195 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3196 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3197 >/dev/null 2>conftest.err && | |
3198 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3199 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3200 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3201 # icc doesn't choke on unknown options, it will just issue warnings | |
3202 # or remarks (even with -Werror). So we grep stderr for any message | |
3203 # that says an option was ignored or not supported. | |
3204 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3205 # icc: Command line warning: ignoring option '-M'; no argument required | |
3206 # The diagnosis changed in icc 8.0: | |
3207 # icc: Command line remark: option '-MP' not supported | |
3208 if (grep 'ignoring option' conftest.err || | |
3209 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3210 am_cv_CC_dependencies_compiler_type=$depmode | |
3211 break | |
3212 fi | |
3213 fi | |
3214 done | |
3215 | |
3216 cd .. | |
3217 rm -rf conftest.dir | |
3218 else | |
3219 am_cv_CC_dependencies_compiler_type=none | |
3220 fi | |
3221 | |
3222 fi | |
3223 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3224 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
3225 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3226 | |
3227 | |
3228 | |
3229 if | |
3230 test "x$enable_dependency_tracking" != xno \ | |
3231 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3232 am__fastdepCC_TRUE= | |
3233 am__fastdepCC_FALSE='#' | |
3234 else | |
3235 am__fastdepCC_TRUE='#' | |
3236 am__fastdepCC_FALSE= | |
3237 fi | |
3238 | |
3239 | |
3240 ac_config_headers="$ac_config_headers lwasm/config.h" | |
3241 | |
3242 ac_config_files="$ac_config_files Makefile lwasm/Makefile doc/Makefile lwlink/Makefile lwar/Makefile" | |
3243 | |
3244 cat >confcache <<\_ACEOF | |
3245 # This file is a shell script that caches the results of configure | |
3246 # tests run on this system so they can be shared between configure | |
3247 # scripts and configure runs, see configure's option --config-cache. | |
3248 # It is not useful on other systems. If it contains results you don't | |
3249 # want to keep, you may remove or edit it. | |
3250 # | |
3251 # config.status only pays attention to the cache file if you give it | |
3252 # the --recheck option to rerun configure. | |
3253 # | |
3254 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
3255 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3256 # following values. | |
3257 | |
3258 _ACEOF | |
3259 | |
3260 # The following way of writing the cache mishandles newlines in values, | |
3261 # but we know of no workaround that is simple, portable, and efficient. | |
3262 # So, we kill variables containing newlines. | |
3263 # Ultrix sh set writes to stderr and can't be redirected directly, | |
3264 # and sets the high bit in the cache file unless we assign to the vars. | |
3265 ( | |
3266 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
3267 eval ac_val=\$$ac_var | |
3268 case $ac_val in #( | |
3269 *${as_nl}*) | |
3270 case $ac_var in #( | |
3271 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
3272 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
3273 esac | |
3274 case $ac_var in #( | |
3275 _ | IFS | as_nl) ;; #( | |
3276 *) $as_unset $ac_var ;; | |
3277 esac ;; | |
3278 esac | |
3279 done | |
3280 | |
3281 (set) 2>&1 | | |
3282 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
3283 *${as_nl}ac_space=\ *) | |
3284 # `set' does not quote correctly, so add quotes (double-quote | |
3285 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3286 sed -n \ | |
3287 "s/'/'\\\\''/g; | |
3288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3289 ;; #( | |
3290 *) | |
3291 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
3293 ;; | |
3294 esac | | |
3295 sort | |
3296 ) | | |
3297 sed ' | |
3298 /^ac_cv_env_/b end | |
3299 t clear | |
3300 :clear | |
3301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3302 t end | |
3303 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3304 :end' >>confcache | |
3305 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
3306 if test -w "$cache_file"; then | |
3307 test "x$cache_file" != "x/dev/null" && | |
3308 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
3309 echo "$as_me: updating cache $cache_file" >&6;} | |
3310 cat confcache >$cache_file | |
3311 else | |
3312 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
3313 echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
3314 fi | |
3315 fi | |
3316 rm -f confcache | |
3317 | |
3318 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3319 # Let make expand exec_prefix. | |
3320 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3321 | |
3322 DEFS=-DHAVE_CONFIG_H | |
3323 | |
3324 ac_libobjs= | |
3325 ac_ltlibobjs= | |
3326 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3327 # 1. Remove the extension, and $U if already installed. | |
3328 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
3329 ac_i=`echo "$ac_i" | sed "$ac_script"` | |
3330 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3331 # will be set to the directory where LIBOBJS objects are built. | |
3332 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3333 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
3334 done | |
3335 LIBOBJS=$ac_libobjs | |
3336 | |
3337 LTLIBOBJS=$ac_ltlibobjs | |
3338 | |
3339 | |
3340 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
3341 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
3342 Usually this means the macro was only invoked conditionally." >&5 | |
3343 echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
3344 Usually this means the macro was only invoked conditionally." >&2;} | |
3345 { (exit 1); exit 1; }; } | |
3346 fi | |
3347 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
3348 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
3349 Usually this means the macro was only invoked conditionally." >&5 | |
3350 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
3351 Usually this means the macro was only invoked conditionally." >&2;} | |
3352 { (exit 1); exit 1; }; } | |
3353 fi | |
3354 | |
3355 : ${CONFIG_STATUS=./config.status} | |
3356 ac_clean_files_save=$ac_clean_files | |
3357 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3358 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3359 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3360 cat >$CONFIG_STATUS <<_ACEOF | |
3361 #! $SHELL | |
3362 # Generated by $as_me. | |
3363 # Run this file to recreate the current configuration. | |
3364 # Compiler output produced by configure, useful for debugging | |
3365 # configure, is in config.log if it exists. | |
3366 | |
3367 debug=false | |
3368 ac_cs_recheck=false | |
3369 ac_cs_silent=false | |
3370 SHELL=\${CONFIG_SHELL-$SHELL} | |
3371 _ACEOF | |
3372 | |
3373 cat >>$CONFIG_STATUS <<\_ACEOF | |
3374 ## --------------------- ## | |
3375 ## M4sh Initialization. ## | |
3376 ## --------------------- ## | |
3377 | |
3378 # Be more Bourne compatible | |
3379 DUALCASE=1; export DUALCASE # for MKS sh | |
3380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3381 emulate sh | |
3382 NULLCMD=: | |
3383 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
3384 # is contrary to our usage. Disable this feature. | |
3385 alias -g '${1+"$@"}'='"$@"' | |
3386 setopt NO_GLOB_SUBST | |
3387 else | |
3388 case `(set -o) 2>/dev/null` in | |
3389 *posix*) set -o posix ;; | |
3390 esac | |
3391 | |
3392 fi | |
3393 | |
3394 | |
3395 | |
3396 | |
3397 # PATH needs CR | |
3398 # Avoid depending upon Character Ranges. | |
3399 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3400 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3401 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3402 as_cr_digits='0123456789' | |
3403 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3404 | |
3405 # The user is always right. | |
3406 if test "${PATH_SEPARATOR+set}" != set; then | |
3407 echo "#! /bin/sh" >conf$$.sh | |
3408 echo "exit 0" >>conf$$.sh | |
3409 chmod +x conf$$.sh | |
3410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3411 PATH_SEPARATOR=';' | |
3412 else | |
3413 PATH_SEPARATOR=: | |
3414 fi | |
3415 rm -f conf$$.sh | |
3416 fi | |
3417 | |
3418 # Support unset when possible. | |
3419 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
3420 as_unset=unset | |
3421 else | |
3422 as_unset=false | |
3423 fi | |
3424 | |
3425 | |
3426 # IFS | |
3427 # We need space, tab and new line, in precisely that order. Quoting is | |
3428 # there to prevent editors from complaining about space-tab. | |
3429 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
3430 # splitting by setting IFS to empty value.) | |
3431 as_nl=' | |
3432 ' | |
3433 IFS=" "" $as_nl" | |
3434 | |
3435 # Find who we are. Look in the path if we contain no directory separator. | |
3436 case $0 in | |
3437 *[\\/]* ) as_myself=$0 ;; | |
3438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3439 for as_dir in $PATH | |
3440 do | |
3441 IFS=$as_save_IFS | |
3442 test -z "$as_dir" && as_dir=. | |
3443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3444 done | |
3445 IFS=$as_save_IFS | |
3446 | |
3447 ;; | |
3448 esac | |
3449 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3450 # in which case we are not to be found in the path. | |
3451 if test "x$as_myself" = x; then | |
3452 as_myself=$0 | |
3453 fi | |
3454 if test ! -f "$as_myself"; then | |
3455 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
3456 { (exit 1); exit 1; } | |
3457 fi | |
3458 | |
3459 # Work around bugs in pre-3.0 UWIN ksh. | |
3460 for as_var in ENV MAIL MAILPATH | |
3461 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
3462 done | |
3463 PS1='$ ' | |
3464 PS2='> ' | |
3465 PS4='+ ' | |
3466 | |
3467 # NLS nuisances. | |
3468 for as_var in \ | |
3469 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
3470 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
3471 LC_TELEPHONE LC_TIME | |
3472 do | |
3473 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
3474 eval $as_var=C; export $as_var | |
3475 else | |
3476 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
3477 fi | |
3478 done | |
3479 | |
3480 # Required to use basename. | |
3481 if expr a : '\(a\)' >/dev/null 2>&1 && | |
3482 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3483 as_expr=expr | |
3484 else | |
3485 as_expr=false | |
3486 fi | |
3487 | |
3488 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
3489 as_basename=basename | |
3490 else | |
3491 as_basename=false | |
3492 fi | |
3493 | |
3494 | |
3495 # Name of the executable. | |
3496 as_me=`$as_basename -- "$0" || | |
3497 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3498 X"$0" : 'X\(//\)$' \| \ | |
3499 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
3500 echo X/"$0" | | |
3501 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
3502 s//\1/ | |
3503 q | |
3504 } | |
3505 /^X\/\(\/\/\)$/{ | |
3506 s//\1/ | |
3507 q | |
3508 } | |
3509 /^X\/\(\/\).*/{ | |
3510 s//\1/ | |
3511 q | |
3512 } | |
3513 s/.*/./; q'` | |
3514 | |
3515 # CDPATH. | |
3516 $as_unset CDPATH | |
3517 | |
3518 | |
3519 | |
3520 as_lineno_1=$LINENO | |
3521 as_lineno_2=$LINENO | |
3522 test "x$as_lineno_1" != "x$as_lineno_2" && | |
3523 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
3524 | |
3525 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
3526 # uniformly replaced by the line number. The first 'sed' inserts a | |
3527 # line-number line after each line using $LINENO; the second 'sed' | |
3528 # does the real work. The second script uses 'N' to pair each | |
3529 # line-number line with the line containing $LINENO, and appends | |
3530 # trailing '-' during substitution so that $LINENO is not a special | |
3531 # case at line end. | |
3532 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
3533 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
3534 # E. McMahon (1931-1989) for sed's syntax. :-) | |
3535 sed -n ' | |
3536 p | |
3537 /[$]LINENO/= | |
3538 ' <$as_myself | | |
3539 sed ' | |
3540 s/[$]LINENO.*/&-/ | |
3541 t lineno | |
3542 b | |
3543 :lineno | |
3544 N | |
3545 :loop | |
3546 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
3547 t loop | |
3548 s/-\n.*// | |
3549 ' >$as_me.lineno && | |
3550 chmod +x "$as_me.lineno" || | |
3551 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
3552 { (exit 1); exit 1; }; } | |
3553 | |
3554 # Don't try to exec as it changes $[0], causing all sort of problems | |
3555 # (the dirname of $[0] is not the place where we might find the | |
3556 # original and so on. Autoconf is especially sensitive to this). | |
3557 . "./$as_me.lineno" | |
3558 # Exit status is that of the last command. | |
3559 exit | |
3560 } | |
3561 | |
3562 | |
3563 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
3564 as_dirname=dirname | |
3565 else | |
3566 as_dirname=false | |
3567 fi | |
3568 | |
3569 ECHO_C= ECHO_N= ECHO_T= | |
3570 case `echo -n x` in | |
3571 -n*) | |
3572 case `echo 'x\c'` in | |
3573 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
3574 *) ECHO_C='\c';; | |
3575 esac;; | |
3576 *) | |
3577 ECHO_N='-n';; | |
3578 esac | |
3579 | |
3580 if expr a : '\(a\)' >/dev/null 2>&1 && | |
3581 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3582 as_expr=expr | |
3583 else | |
3584 as_expr=false | |
3585 fi | |
3586 | |
3587 rm -f conf$$ conf$$.exe conf$$.file | |
3588 if test -d conf$$.dir; then | |
3589 rm -f conf$$.dir/conf$$.file | |
3590 else | |
3591 rm -f conf$$.dir | |
3592 mkdir conf$$.dir | |
3593 fi | |
3594 echo >conf$$.file | |
3595 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3596 as_ln_s='ln -s' | |
3597 # ... but there are two gotchas: | |
3598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
3599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
3600 # In both cases, we have to default to `cp -p'. | |
3601 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
3602 as_ln_s='cp -p' | |
3603 elif ln conf$$.file conf$$ 2>/dev/null; then | |
3604 as_ln_s=ln | |
3605 else | |
3606 as_ln_s='cp -p' | |
3607 fi | |
3608 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
3609 rmdir conf$$.dir 2>/dev/null | |
3610 | |
3611 if mkdir -p . 2>/dev/null; then | |
3612 as_mkdir_p=: | |
3613 else | |
3614 test -d ./-p && rmdir ./-p | |
3615 as_mkdir_p=false | |
3616 fi | |
3617 | |
3618 if test -x / >/dev/null 2>&1; then | |
3619 as_test_x='test -x' | |
3620 else | |
3621 if ls -dL / >/dev/null 2>&1; then | |
3622 as_ls_L_option=L | |
3623 else | |
3624 as_ls_L_option= | |
3625 fi | |
3626 as_test_x=' | |
3627 eval sh -c '\'' | |
3628 if test -d "$1"; then | |
3629 test -d "$1/."; | |
3630 else | |
3631 case $1 in | |
3632 -*)set "./$1";; | |
3633 esac; | |
3634 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
3635 ???[sx]*):;;*)false;;esac;fi | |
3636 '\'' sh | |
3637 ' | |
3638 fi | |
3639 as_executable_p=$as_test_x | |
3640 | |
3641 # Sed expression to map a string onto a valid CPP name. | |
3642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
3643 | |
3644 # Sed expression to map a string onto a valid variable name. | |
3645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
3646 | |
3647 | |
3648 exec 6>&1 | |
3649 | |
3650 # Save the log message, to keep $[0] and so on meaningful, and to | |
3651 # report actual input values of CONFIG_FILES etc. instead of their | |
3652 # values after options handling. | |
3653 ac_log=" | |
3654 This file was extended by LWTOOLS $as_me 2.2, which was | |
3655 generated by GNU Autoconf 2.61. Invocation command line was | |
3656 | |
3657 CONFIG_FILES = $CONFIG_FILES | |
3658 CONFIG_HEADERS = $CONFIG_HEADERS | |
3659 CONFIG_LINKS = $CONFIG_LINKS | |
3660 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3661 $ $0 $@ | |
3662 | |
3663 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
3664 " | |
3665 | |
3666 _ACEOF | |
3667 | |
3668 cat >>$CONFIG_STATUS <<_ACEOF | |
3669 # Files that config.status was made for. | |
3670 config_files="$ac_config_files" | |
3671 config_headers="$ac_config_headers" | |
3672 config_commands="$ac_config_commands" | |
3673 | |
3674 _ACEOF | |
3675 | |
3676 cat >>$CONFIG_STATUS <<\_ACEOF | |
3677 ac_cs_usage="\ | |
3678 \`$as_me' instantiates files from templates according to the | |
3679 current configuration. | |
3680 | |
3681 Usage: $0 [OPTIONS] [FILE]... | |
3682 | |
3683 -h, --help print this help, then exit | |
3684 -V, --version print version number and configuration settings, then exit | |
3685 -q, --quiet do not print progress messages | |
3686 -d, --debug don't remove temporary files | |
3687 --recheck update $as_me by reconfiguring in the same conditions | |
3688 --file=FILE[:TEMPLATE] | |
3689 instantiate the configuration file FILE | |
3690 --header=FILE[:TEMPLATE] | |
3691 instantiate the configuration header FILE | |
3692 | |
3693 Configuration files: | |
3694 $config_files | |
3695 | |
3696 Configuration headers: | |
3697 $config_headers | |
3698 | |
3699 Configuration commands: | |
3700 $config_commands | |
3701 | |
3702 Report bugs to <bug-autoconf@gnu.org>." | |
3703 | |
3704 _ACEOF | |
3705 cat >>$CONFIG_STATUS <<_ACEOF | |
3706 ac_cs_version="\\ | |
3707 LWTOOLS config.status 2.2 | |
3708 configured by $0, generated by GNU Autoconf 2.61, | |
3709 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
3710 | |
3711 Copyright (C) 2006 Free Software Foundation, Inc. | |
3712 This config.status script is free software; the Free Software Foundation | |
3713 gives unlimited permission to copy, distribute and modify it." | |
3714 | |
3715 ac_pwd='$ac_pwd' | |
3716 srcdir='$srcdir' | |
3717 INSTALL='$INSTALL' | |
3718 _ACEOF | |
3719 | |
3720 cat >>$CONFIG_STATUS <<\_ACEOF | |
3721 # If no file are specified by the user, then we need to provide default | |
3722 # value. By we need to know if files were specified by the user. | |
3723 ac_need_defaults=: | |
3724 while test $# != 0 | |
3725 do | |
3726 case $1 in | |
3727 --*=*) | |
3728 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
3729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
3730 ac_shift=: | |
3731 ;; | |
3732 *) | |
3733 ac_option=$1 | |
3734 ac_optarg=$2 | |
3735 ac_shift=shift | |
3736 ;; | |
3737 esac | |
3738 | |
3739 case $ac_option in | |
3740 # Handling of the options. | |
3741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3742 ac_cs_recheck=: ;; | |
3743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
3744 echo "$ac_cs_version"; exit ;; | |
3745 --debug | --debu | --deb | --de | --d | -d ) | |
3746 debug=: ;; | |
3747 --file | --fil | --fi | --f ) | |
3748 $ac_shift | |
3749 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
3750 ac_need_defaults=false;; | |
3751 --header | --heade | --head | --hea ) | |
3752 $ac_shift | |
3753 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
3754 ac_need_defaults=false;; | |
3755 --he | --h) | |
3756 # Conflict between --help and --header | |
3757 { echo "$as_me: error: ambiguous option: $1 | |
3758 Try \`$0 --help' for more information." >&2 | |
3759 { (exit 1); exit 1; }; };; | |
3760 --help | --hel | -h ) | |
3761 echo "$ac_cs_usage"; exit ;; | |
3762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
3763 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
3764 ac_cs_silent=: ;; | |
3765 | |
3766 # This is an error. | |
3767 -*) { echo "$as_me: error: unrecognized option: $1 | |
3768 Try \`$0 --help' for more information." >&2 | |
3769 { (exit 1); exit 1; }; } ;; | |
3770 | |
3771 *) ac_config_targets="$ac_config_targets $1" | |
3772 ac_need_defaults=false ;; | |
3773 | |
3774 esac | |
3775 shift | |
3776 done | |
3777 | |
3778 ac_configure_extra_args= | |
3779 | |
3780 if $ac_cs_silent; then | |
3781 exec 6>/dev/null | |
3782 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
3783 fi | |
3784 | |
3785 _ACEOF | |
3786 cat >>$CONFIG_STATUS <<_ACEOF | |
3787 if \$ac_cs_recheck; then | |
3788 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
3789 CONFIG_SHELL=$SHELL | |
3790 export CONFIG_SHELL | |
3791 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
3792 fi | |
3793 | |
3794 _ACEOF | |
3795 cat >>$CONFIG_STATUS <<\_ACEOF | |
3796 exec 5>>config.log | |
3797 { | |
3798 echo | |
3799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3800 ## Running $as_me. ## | |
3801 _ASBOX | |
3802 echo "$ac_log" | |
3803 } >&5 | |
3804 | |
3805 _ACEOF | |
3806 cat >>$CONFIG_STATUS <<_ACEOF | |
3807 # | |
3808 # INIT-COMMANDS | |
3809 # | |
3810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
3811 | |
3812 _ACEOF | |
3813 | |
3814 cat >>$CONFIG_STATUS <<\_ACEOF | |
3815 | |
3816 # Handling of arguments. | |
3817 for ac_config_target in $ac_config_targets | |
3818 do | |
3819 case $ac_config_target in | |
3820 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
3821 "lwasm/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lwasm/config.h" ;; | |
3822 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3823 "lwasm/Makefile") CONFIG_FILES="$CONFIG_FILES lwasm/Makefile" ;; | |
3824 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
3825 "lwlink/Makefile") CONFIG_FILES="$CONFIG_FILES lwlink/Makefile" ;; | |
3826 "lwar/Makefile") CONFIG_FILES="$CONFIG_FILES lwar/Makefile" ;; | |
3827 | |
3828 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
3829 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
3830 { (exit 1); exit 1; }; };; | |
3831 esac | |
3832 done | |
3833 | |
3834 | |
3835 # If the user did not use the arguments to specify the items to instantiate, | |
3836 # then the envvar interface is used. Set only those that are not. | |
3837 # We use the long form for the default assignment because of an extremely | |
3838 # bizarre bug on SunOS 4.1.3. | |
3839 if $ac_need_defaults; then | |
3840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3841 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
3842 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
3843 fi | |
3844 | |
3845 # Have a temporary directory for convenience. Make it in the build tree | |
3846 # simply because there is no reason against having it here, and in addition, | |
3847 # creating and moving files from /tmp can sometimes cause problems. | |
3848 # Hook for its removal unless debugging. | |
3849 # Note that there is a small window in which the directory will not be cleaned: | |
3850 # after its creation but before its name has been assigned to `$tmp'. | |
3851 $debug || | |
3852 { | |
3853 tmp= | |
3854 trap 'exit_status=$? | |
3855 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
3856 ' 0 | |
3857 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3858 } | |
3859 # Create a (secure) tmp directory for tmp files. | |
3860 | |
3861 { | |
3862 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
3863 test -n "$tmp" && test -d "$tmp" | |
3864 } || | |
3865 { | |
3866 tmp=./conf$$-$RANDOM | |
3867 (umask 077 && mkdir "$tmp") | |
3868 } || | |
3869 { | |
3870 echo "$me: cannot create a temporary directory in ." >&2 | |
3871 { (exit 1); exit 1; } | |
3872 } | |
3873 | |
3874 # | |
3875 # Set up the sed scripts for CONFIG_FILES section. | |
3876 # | |
3877 | |
3878 # No need to generate the scripts if there are no CONFIG_FILES. | |
3879 # This happens for instance when ./config.status config.h | |
3880 if test -n "$CONFIG_FILES"; then | |
3881 | |
3882 _ACEOF | |
3883 | |
3884 | |
3885 | |
3886 ac_delim='%!_!# ' | |
3887 for ac_last_try in false false false false false :; do | |
3888 cat >conf$$subs.sed <<_ACEOF | |
3889 SHELL!$SHELL$ac_delim | |
3890 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
3891 PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
3892 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
3893 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
3894 PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
3895 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
3896 exec_prefix!$exec_prefix$ac_delim | |
3897 prefix!$prefix$ac_delim | |
3898 program_transform_name!$program_transform_name$ac_delim | |
3899 bindir!$bindir$ac_delim | |
3900 sbindir!$sbindir$ac_delim | |
3901 libexecdir!$libexecdir$ac_delim | |
3902 datarootdir!$datarootdir$ac_delim | |
3903 datadir!$datadir$ac_delim | |
3904 sysconfdir!$sysconfdir$ac_delim | |
3905 sharedstatedir!$sharedstatedir$ac_delim | |
3906 localstatedir!$localstatedir$ac_delim | |
3907 includedir!$includedir$ac_delim | |
3908 oldincludedir!$oldincludedir$ac_delim | |
3909 docdir!$docdir$ac_delim | |
3910 infodir!$infodir$ac_delim | |
3911 htmldir!$htmldir$ac_delim | |
3912 dvidir!$dvidir$ac_delim | |
3913 pdfdir!$pdfdir$ac_delim | |
3914 psdir!$psdir$ac_delim | |
3915 libdir!$libdir$ac_delim | |
3916 localedir!$localedir$ac_delim | |
3917 mandir!$mandir$ac_delim | |
3918 DEFS!$DEFS$ac_delim | |
3919 ECHO_C!$ECHO_C$ac_delim | |
3920 ECHO_N!$ECHO_N$ac_delim | |
3921 ECHO_T!$ECHO_T$ac_delim | |
3922 LIBS!$LIBS$ac_delim | |
3923 build_alias!$build_alias$ac_delim | |
3924 host_alias!$host_alias$ac_delim | |
3925 target_alias!$target_alias$ac_delim | |
3926 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
3927 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
3928 INSTALL_DATA!$INSTALL_DATA$ac_delim | |
3929 CYGPATH_W!$CYGPATH_W$ac_delim | |
3930 PACKAGE!$PACKAGE$ac_delim | |
3931 VERSION!$VERSION$ac_delim | |
3932 ACLOCAL!$ACLOCAL$ac_delim | |
3933 AUTOCONF!$AUTOCONF$ac_delim | |
3934 AUTOMAKE!$AUTOMAKE$ac_delim | |
3935 AUTOHEADER!$AUTOHEADER$ac_delim | |
3936 MAKEINFO!$MAKEINFO$ac_delim | |
3937 install_sh!$install_sh$ac_delim | |
3938 STRIP!$STRIP$ac_delim | |
3939 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
3940 mkdir_p!$mkdir_p$ac_delim | |
3941 AWK!$AWK$ac_delim | |
3942 SET_MAKE!$SET_MAKE$ac_delim | |
3943 am__leading_dot!$am__leading_dot$ac_delim | |
3944 AMTAR!$AMTAR$ac_delim | |
3945 am__tar!$am__tar$ac_delim | |
3946 am__untar!$am__untar$ac_delim | |
3947 CC!$CC$ac_delim | |
3948 CFLAGS!$CFLAGS$ac_delim | |
3949 LDFLAGS!$LDFLAGS$ac_delim | |
3950 CPPFLAGS!$CPPFLAGS$ac_delim | |
3951 ac_ct_CC!$ac_ct_CC$ac_delim | |
3952 EXEEXT!$EXEEXT$ac_delim | |
3953 OBJEXT!$OBJEXT$ac_delim | |
3954 DEPDIR!$DEPDIR$ac_delim | |
3955 am__include!$am__include$ac_delim | |
3956 am__quote!$am__quote$ac_delim | |
3957 AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
3958 AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
3959 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
3960 CCDEPMODE!$CCDEPMODE$ac_delim | |
3961 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
3962 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
3963 LIBOBJS!$LIBOBJS$ac_delim | |
3964 LTLIBOBJS!$LTLIBOBJS$ac_delim | |
3965 _ACEOF | |
3966 | |
3967 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then | |
3968 break | |
3969 elif $ac_last_try; then | |
3970 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
3971 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
3972 { (exit 1); exit 1; }; } | |
3973 else | |
3974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
3975 fi | |
3976 done | |
3977 | |
3978 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
3979 if test -n "$ac_eof"; then | |
3980 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
3981 ac_eof=`expr $ac_eof + 1` | |
3982 fi | |
3983 | |
3984 cat >>$CONFIG_STATUS <<_ACEOF | |
3985 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
3986 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
3987 _ACEOF | |
3988 sed ' | |
3989 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
3990 s/^/s,@/; s/!/@,|#_!!_#|/ | |
3991 :n | |
3992 t n | |
3993 s/'"$ac_delim"'$/,g/; t | |
3994 s/$/\\/; p | |
3995 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
3996 ' >>$CONFIG_STATUS <conf$$subs.sed | |
3997 rm -f conf$$subs.sed | |
3998 cat >>$CONFIG_STATUS <<_ACEOF | |
3999 :end | |
4000 s/|#_!!_#|//g | |
4001 CEOF$ac_eof | |
4002 _ACEOF | |
4003 | |
4004 | |
4005 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
4006 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
4007 # trailing colons and then remove the whole line if VPATH becomes empty | |
4008 # (actually we leave an empty line to preserve line numbers). | |
4009 if test "x$srcdir" = x.; then | |
4010 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
4011 s/:*\$(srcdir):*/:/ | |
4012 s/:*\${srcdir}:*/:/ | |
4013 s/:*@srcdir@:*/:/ | |
4014 s/^\([^=]*=[ ]*\):*/\1/ | |
4015 s/:*$// | |
4016 s/^[^=]*=[ ]*$// | |
4017 }' | |
4018 fi | |
4019 | |
4020 cat >>$CONFIG_STATUS <<\_ACEOF | |
4021 fi # test -n "$CONFIG_FILES" | |
4022 | |
4023 | |
4024 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
4025 do | |
4026 case $ac_tag in | |
4027 :[FHLC]) ac_mode=$ac_tag; continue;; | |
4028 esac | |
4029 case $ac_mode$ac_tag in | |
4030 :[FHL]*:*);; | |
4031 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
4032 echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
4033 { (exit 1); exit 1; }; };; | |
4034 :[FH]-) ac_tag=-:-;; | |
4035 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
4036 esac | |
4037 ac_save_IFS=$IFS | |
4038 IFS=: | |
4039 set x $ac_tag | |
4040 IFS=$ac_save_IFS | |
4041 shift | |
4042 ac_file=$1 | |
4043 shift | |
4044 | |
4045 case $ac_mode in | |
4046 :L) ac_source=$1;; | |
4047 :[FH]) | |
4048 ac_file_inputs= | |
4049 for ac_f | |
4050 do | |
4051 case $ac_f in | |
4052 -) ac_f="$tmp/stdin";; | |
4053 *) # Look for the file first in the build tree, then in the source tree | |
4054 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
4055 # because $ac_f cannot contain `:'. | |
4056 test -f "$ac_f" || | |
4057 case $ac_f in | |
4058 [\\/$]*) false;; | |
4059 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
4060 esac || | |
4061 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
4062 echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
4063 { (exit 1); exit 1; }; };; | |
4064 esac | |
4065 ac_file_inputs="$ac_file_inputs $ac_f" | |
4066 done | |
4067 | |
4068 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4069 # use $as_me), people would be surprised to read: | |
4070 # /* config.h. Generated by config.status. */ | |
4071 configure_input="Generated from "`IFS=: | |
4072 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
4073 if test x"$ac_file" != x-; then | |
4074 configure_input="$ac_file. $configure_input" | |
4075 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
4076 echo "$as_me: creating $ac_file" >&6;} | |
4077 fi | |
4078 | |
4079 case $ac_tag in | |
4080 *:-:* | *:-) cat >"$tmp/stdin";; | |
4081 esac | |
4082 ;; | |
4083 esac | |
4084 | |
4085 ac_dir=`$as_dirname -- "$ac_file" || | |
4086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4087 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4088 X"$ac_file" : 'X\(//\)$' \| \ | |
4089 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
4090 echo X"$ac_file" | | |
4091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4092 s//\1/ | |
4093 q | |
4094 } | |
4095 /^X\(\/\/\)[^/].*/{ | |
4096 s//\1/ | |
4097 q | |
4098 } | |
4099 /^X\(\/\/\)$/{ | |
4100 s//\1/ | |
4101 q | |
4102 } | |
4103 /^X\(\/\).*/{ | |
4104 s//\1/ | |
4105 q | |
4106 } | |
4107 s/.*/./; q'` | |
4108 { as_dir="$ac_dir" | |
4109 case $as_dir in #( | |
4110 -*) as_dir=./$as_dir;; | |
4111 esac | |
4112 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
4113 as_dirs= | |
4114 while :; do | |
4115 case $as_dir in #( | |
4116 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
4117 *) as_qdir=$as_dir;; | |
4118 esac | |
4119 as_dirs="'$as_qdir' $as_dirs" | |
4120 as_dir=`$as_dirname -- "$as_dir" || | |
4121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4122 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4123 X"$as_dir" : 'X\(//\)$' \| \ | |
4124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4125 echo X"$as_dir" | | |
4126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4127 s//\1/ | |
4128 q | |
4129 } | |
4130 /^X\(\/\/\)[^/].*/{ | |
4131 s//\1/ | |
4132 q | |
4133 } | |
4134 /^X\(\/\/\)$/{ | |
4135 s//\1/ | |
4136 q | |
4137 } | |
4138 /^X\(\/\).*/{ | |
4139 s//\1/ | |
4140 q | |
4141 } | |
4142 s/.*/./; q'` | |
4143 test -d "$as_dir" && break | |
4144 done | |
4145 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4146 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
4147 echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
4148 { (exit 1); exit 1; }; }; } | |
4149 ac_builddir=. | |
4150 | |
4151 case "$ac_dir" in | |
4152 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4153 *) | |
4154 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
4155 # A ".." for each directory in $ac_dir_suffix. | |
4156 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
4157 case $ac_top_builddir_sub in | |
4158 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4159 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
4160 esac ;; | |
4161 esac | |
4162 ac_abs_top_builddir=$ac_pwd | |
4163 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
4164 # for backward compatibility: | |
4165 ac_top_builddir=$ac_top_build_prefix | |
4166 | |
4167 case $srcdir in | |
4168 .) # We are building in place. | |
4169 ac_srcdir=. | |
4170 ac_top_srcdir=$ac_top_builddir_sub | |
4171 ac_abs_top_srcdir=$ac_pwd ;; | |
4172 [\\/]* | ?:[\\/]* ) # Absolute name. | |
4173 ac_srcdir=$srcdir$ac_dir_suffix; | |
4174 ac_top_srcdir=$srcdir | |
4175 ac_abs_top_srcdir=$srcdir ;; | |
4176 *) # Relative name. | |
4177 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
4178 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
4179 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4180 esac | |
4181 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
4182 | |
4183 | |
4184 case $ac_mode in | |
4185 :F) | |
4186 # | |
4187 # CONFIG_FILE | |
4188 # | |
4189 | |
4190 case $INSTALL in | |
4191 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
4192 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
4193 esac | |
4194 _ACEOF | |
4195 | |
4196 cat >>$CONFIG_STATUS <<\_ACEOF | |
4197 # If the template does not know about datarootdir, expand it. | |
4198 # FIXME: This hack should be removed a few years after 2.60. | |
4199 ac_datarootdir_hack=; ac_datarootdir_seen= | |
4200 | |
4201 case `sed -n '/datarootdir/ { | |
4202 p | |
4203 q | |
4204 } | |
4205 /@datadir@/p | |
4206 /@docdir@/p | |
4207 /@infodir@/p | |
4208 /@localedir@/p | |
4209 /@mandir@/p | |
4210 ' $ac_file_inputs` in | |
4211 *datarootdir*) ac_datarootdir_seen=yes;; | |
4212 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
4213 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
4214 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
4215 _ACEOF | |
4216 cat >>$CONFIG_STATUS <<_ACEOF | |
4217 ac_datarootdir_hack=' | |
4218 s&@datadir@&$datadir&g | |
4219 s&@docdir@&$docdir&g | |
4220 s&@infodir@&$infodir&g | |
4221 s&@localedir@&$localedir&g | |
4222 s&@mandir@&$mandir&g | |
4223 s&\\\${datarootdir}&$datarootdir&g' ;; | |
4224 esac | |
4225 _ACEOF | |
4226 | |
4227 # Neutralize VPATH when `$srcdir' = `.'. | |
4228 # Shell code in configure.ac might set extrasub. | |
4229 # FIXME: do we really want to maintain this feature? | |
4230 cat >>$CONFIG_STATUS <<_ACEOF | |
4231 sed "$ac_vpsub | |
4232 $extrasub | |
4233 _ACEOF | |
4234 cat >>$CONFIG_STATUS <<\_ACEOF | |
4235 :t | |
4236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
4237 s&@configure_input@&$configure_input&;t t | |
4238 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
4239 s&@srcdir@&$ac_srcdir&;t t | |
4240 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
4241 s&@top_srcdir@&$ac_top_srcdir&;t t | |
4242 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
4243 s&@builddir@&$ac_builddir&;t t | |
4244 s&@abs_builddir@&$ac_abs_builddir&;t t | |
4245 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
4246 s&@INSTALL@&$ac_INSTALL&;t t | |
4247 $ac_datarootdir_hack | |
4248 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
4249 | |
4250 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
4251 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
4252 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
4253 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4254 which seems to be undefined. Please make sure it is defined." >&5 | |
4255 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4256 which seems to be undefined. Please make sure it is defined." >&2;} | |
4257 | |
4258 rm -f "$tmp/stdin" | |
4259 case $ac_file in | |
4260 -) cat "$tmp/out"; rm -f "$tmp/out";; | |
4261 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
4262 esac | |
4263 ;; | |
4264 :H) | |
4265 # | |
4266 # CONFIG_HEADER | |
4267 # | |
4268 _ACEOF | |
4269 | |
4270 # Transform confdefs.h into a sed script `conftest.defines', that | |
4271 # substitutes the proper values into config.h.in to produce config.h. | |
4272 rm -f conftest.defines conftest.tail | |
4273 # First, append a space to every undef/define line, to ease matching. | |
4274 echo 's/$/ /' >conftest.defines | |
4275 # Then, protect against being on the right side of a sed subst, or in | |
4276 # an unquoted here document, in config.status. If some macros were | |
4277 # called several times there might be several #defines for the same | |
4278 # symbol, which is useless. But do not sort them, since the last | |
4279 # AC_DEFINE must be honored. | |
4280 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
4281 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
4282 # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
4283 # PARAMS is the parameter list in the macro definition--in most cases, it's | |
4284 # just an empty string. | |
4285 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
4286 ac_dB='\\)[ (].*,\\1define\\2' | |
4287 ac_dC=' ' | |
4288 ac_dD=' ,' | |
4289 | |
4290 uniq confdefs.h | | |
4291 sed -n ' | |
4292 t rset | |
4293 :rset | |
4294 s/^[ ]*#[ ]*define[ ][ ]*// | |
4295 t ok | |
4296 d | |
4297 :ok | |
4298 s/[\\&,]/\\&/g | |
4299 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
4300 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
4301 ' >>conftest.defines | |
4302 | |
4303 # Remove the space that was appended to ease matching. | |
4304 # Then replace #undef with comments. This is necessary, for | |
4305 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
4306 # on some systems where configure will not decide to define it. | |
4307 # (The regexp can be short, since the line contains either #define or #undef.) | |
4308 echo 's/ $// | |
4309 s,^[ #]*u.*,/* & */,' >>conftest.defines | |
4310 | |
4311 # Break up conftest.defines: | |
4312 ac_max_sed_lines=50 | |
4313 | |
4314 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
4315 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
4316 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
4317 # et cetera. | |
4318 ac_in='$ac_file_inputs' | |
4319 ac_out='"$tmp/out1"' | |
4320 ac_nxt='"$tmp/out2"' | |
4321 | |
4322 while : | |
4323 do | |
4324 # Write a here document: | |
4325 cat >>$CONFIG_STATUS <<_ACEOF | |
4326 # First, check the format of the line: | |
4327 cat >"\$tmp/defines.sed" <<\\CEOF | |
4328 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
4329 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
4330 b | |
4331 :def | |
4332 _ACEOF | |
4333 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
4334 echo 'CEOF | |
4335 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
4336 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
4337 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
4338 grep . conftest.tail >/dev/null || break | |
4339 rm -f conftest.defines | |
4340 mv conftest.tail conftest.defines | |
4341 done | |
4342 rm -f conftest.defines conftest.tail | |
4343 | |
4344 echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
4345 cat >>$CONFIG_STATUS <<\_ACEOF | |
4346 if test x"$ac_file" != x-; then | |
4347 echo "/* $configure_input */" >"$tmp/config.h" | |
4348 cat "$ac_result" >>"$tmp/config.h" | |
4349 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
4350 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
4351 echo "$as_me: $ac_file is unchanged" >&6;} | |
4352 else | |
4353 rm -f $ac_file | |
4354 mv "$tmp/config.h" $ac_file | |
4355 fi | |
4356 else | |
4357 echo "/* $configure_input */" | |
4358 cat "$ac_result" | |
4359 fi | |
4360 rm -f "$tmp/out12" | |
4361 # Compute $ac_file's index in $config_headers. | |
4362 _am_stamp_count=1 | |
4363 for _am_header in $config_headers :; do | |
4364 case $_am_header in | |
4365 $ac_file | $ac_file:* ) | |
4366 break ;; | |
4367 * ) | |
4368 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
4369 esac | |
4370 done | |
4371 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || | |
4372 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4373 X$ac_file : 'X\(//\)[^/]' \| \ | |
4374 X$ac_file : 'X\(//\)$' \| \ | |
4375 X$ac_file : 'X\(/\)' \| . 2>/dev/null || | |
4376 echo X$ac_file | | |
4377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4378 s//\1/ | |
4379 q | |
4380 } | |
4381 /^X\(\/\/\)[^/].*/{ | |
4382 s//\1/ | |
4383 q | |
4384 } | |
4385 /^X\(\/\/\)$/{ | |
4386 s//\1/ | |
4387 q | |
4388 } | |
4389 /^X\(\/\).*/{ | |
4390 s//\1/ | |
4391 q | |
4392 } | |
4393 s/.*/./; q'`/stamp-h$_am_stamp_count | |
4394 ;; | |
4395 | |
4396 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
4397 echo "$as_me: executing $ac_file commands" >&6;} | |
4398 ;; | |
4399 esac | |
4400 | |
4401 | |
4402 case $ac_file$ac_mode in | |
4403 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
4404 # Strip MF so we end up with the name of the file. | |
4405 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
4406 # Check whether this is an Automake generated Makefile or not. | |
4407 # We used to match only the files named `Makefile.in', but | |
4408 # some people rename them; so instead we look at the file content. | |
4409 # Grep'ing the first line is not enough: some people post-process | |
4410 # each Makefile.in and add a new line on top of each file to say so. | |
4411 # So let's grep whole file. | |
4412 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
4413 dirpart=`$as_dirname -- "$mf" || | |
4414 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4415 X"$mf" : 'X\(//\)[^/]' \| \ | |
4416 X"$mf" : 'X\(//\)$' \| \ | |
4417 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
4418 echo X"$mf" | | |
4419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4420 s//\1/ | |
4421 q | |
4422 } | |
4423 /^X\(\/\/\)[^/].*/{ | |
4424 s//\1/ | |
4425 q | |
4426 } | |
4427 /^X\(\/\/\)$/{ | |
4428 s//\1/ | |
4429 q | |
4430 } | |
4431 /^X\(\/\).*/{ | |
4432 s//\1/ | |
4433 q | |
4434 } | |
4435 s/.*/./; q'` | |
4436 else | |
4437 continue | |
4438 fi | |
4439 # Extract the definition of DEPDIR, am__include, and am__quote | |
4440 # from the Makefile without running `make'. | |
4441 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
4442 test -z "$DEPDIR" && continue | |
4443 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
4444 test -z "am__include" && continue | |
4445 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
4446 # When using ansi2knr, U may be empty or an underscore; expand it | |
4447 U=`sed -n 's/^U = //p' < "$mf"` | |
4448 # Find all dependency output files, they are included files with | |
4449 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
4450 # simplest approach to changing $(DEPDIR) to its actual value in the | |
4451 # expansion. | |
4452 for file in `sed -n " | |
4453 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
4454 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
4455 # Make sure the directory exists. | |
4456 test -f "$dirpart/$file" && continue | |
4457 fdir=`$as_dirname -- "$file" || | |
4458 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4459 X"$file" : 'X\(//\)[^/]' \| \ | |
4460 X"$file" : 'X\(//\)$' \| \ | |
4461 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
4462 echo X"$file" | | |
4463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4464 s//\1/ | |
4465 q | |
4466 } | |
4467 /^X\(\/\/\)[^/].*/{ | |
4468 s//\1/ | |
4469 q | |
4470 } | |
4471 /^X\(\/\/\)$/{ | |
4472 s//\1/ | |
4473 q | |
4474 } | |
4475 /^X\(\/\).*/{ | |
4476 s//\1/ | |
4477 q | |
4478 } | |
4479 s/.*/./; q'` | |
4480 { as_dir=$dirpart/$fdir | |
4481 case $as_dir in #( | |
4482 -*) as_dir=./$as_dir;; | |
4483 esac | |
4484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
4485 as_dirs= | |
4486 while :; do | |
4487 case $as_dir in #( | |
4488 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
4489 *) as_qdir=$as_dir;; | |
4490 esac | |
4491 as_dirs="'$as_qdir' $as_dirs" | |
4492 as_dir=`$as_dirname -- "$as_dir" || | |
4493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4494 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4495 X"$as_dir" : 'X\(//\)$' \| \ | |
4496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4497 echo X"$as_dir" | | |
4498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4499 s//\1/ | |
4500 q | |
4501 } | |
4502 /^X\(\/\/\)[^/].*/{ | |
4503 s//\1/ | |
4504 q | |
4505 } | |
4506 /^X\(\/\/\)$/{ | |
4507 s//\1/ | |
4508 q | |
4509 } | |
4510 /^X\(\/\).*/{ | |
4511 s//\1/ | |
4512 q | |
4513 } | |
4514 s/.*/./; q'` | |
4515 test -d "$as_dir" && break | |
4516 done | |
4517 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4518 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
4519 echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
4520 { (exit 1); exit 1; }; }; } | |
4521 # echo "creating $dirpart/$file" | |
4522 echo '# dummy' > "$dirpart/$file" | |
4523 done | |
4524 done | |
4525 ;; | |
4526 | |
4527 esac | |
4528 done # for ac_tag | |
4529 | |
4530 | |
4531 { (exit 0); exit 0; } | |
4532 _ACEOF | |
4533 chmod +x $CONFIG_STATUS | |
4534 ac_clean_files=$ac_clean_files_save | |
4535 | |
4536 | |
4537 # configure is writing to config.log, and then calls config.status. | |
4538 # config.status does its own redirection, appending to config.log. | |
4539 # Unfortunately, on DOS this fails, as config.log is still kept open | |
4540 # by configure, so config.status won't be able to write to it; its | |
4541 # output is simply discarded. So we exec the FD to /dev/null, | |
4542 # effectively closing config.log, so it can be properly (re)opened and | |
4543 # appended to by config.status. When coming back to configure, we | |
4544 # need to make the FD available again. | |
4545 if test "$no_create" != yes; then | |
4546 ac_cs_success=: | |
4547 ac_config_status_args= | |
4548 test "$silent" = yes && | |
4549 ac_config_status_args="$ac_config_status_args --quiet" | |
4550 exec 5>/dev/null | |
4551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
4552 exec 5>>config.log | |
4553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4554 # would make configure fail if this is the last instruction. | |
4555 $ac_cs_success || { (exit 1); exit 1; } | |
4556 fi | |
4557 |