Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="bosh.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 am__isrc
657 CYGPATH_W
658 PACKAGE
659 VERSION
660 ACLOCAL
661 AUTOCONF
662 AUTOMAKE
663 AUTOHEADER
664 MAKEINFO
665 install_sh
666 STRIP
667 INSTALL_STRIP_PROGRAM
668 mkdir_p
669 AWK
670 SET_MAKE
671 am__leading_dot
672 AMTAR
673 am__tar
674 am__untar
675 CC
676 CFLAGS
677 LDFLAGS
678 CPPFLAGS
679 ac_ct_CC
680 EXEEXT
681 OBJEXT
682 DEPDIR
683 am__include
684 am__quote
685 AMDEP_TRUE
686 AMDEP_FALSE
687 AMDEPBACKSLASH
688 CCDEPMODE
689 am__fastdepCC_TRUE
690 am__fastdepCC_FALSE
691 CPP
692 GREP
693 EGREP
694 LIBOBJS
695 LTLIBOBJS'
696 ac_subst_files=''
697 ac_precious_vars='build_alias
698 host_alias
699 target_alias
700 CC
701 CFLAGS
702 LDFLAGS
703 LIBS
704 CPPFLAGS
705 CPP'
706
707
708 # Initialize some variables set by options.
709 ac_init_help=
710 ac_init_version=false
711 # The variables have the same names as the options, with
712 # dashes changed to underlines.
713 cache_file=/dev/null
714 exec_prefix=NONE
715 no_create=
716 no_recursion=
717 prefix=NONE
718 program_prefix=NONE
719 program_suffix=NONE
720 program_transform_name=s,x,x,
721 silent=
722 site=
723 srcdir=
724 verbose=
725 x_includes=NONE
726 x_libraries=NONE
727
728 # Installation directory options.
729 # These are left unexpanded so users can "make install exec_prefix=/foo"
730 # and all the variables that are supposed to be based on exec_prefix
731 # by default will actually change.
732 # Use braces instead of parens because sh, perl, etc. also accept them.
733 # (The list follows the same order as the GNU Coding Standards.)
734 bindir='${exec_prefix}/bin'
735 sbindir='${exec_prefix}/sbin'
736 libexecdir='${exec_prefix}/libexec'
737 datarootdir='${prefix}/share'
738 datadir='${datarootdir}'
739 sysconfdir='${prefix}/etc'
740 sharedstatedir='${prefix}/com'
741 localstatedir='${prefix}/var'
742 includedir='${prefix}/include'
743 oldincludedir='/usr/include'
744 docdir='${datarootdir}/doc/${PACKAGE}'
745 infodir='${datarootdir}/info'
746 htmldir='${docdir}'
747 dvidir='${docdir}'
748 pdfdir='${docdir}'
749 psdir='${docdir}'
750 libdir='${exec_prefix}/lib'
751 localedir='${datarootdir}/locale'
752 mandir='${datarootdir}/man'
753
754 ac_prev=
755 ac_dashdash=
756 for ac_option
757 do
758 # If the previous option needs an argument, assign it.
759 if test -n "$ac_prev"; then
760 eval $ac_prev=\$ac_option
761 ac_prev=
762 continue
763 fi
764
765 case $ac_option in
766 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
767 *) ac_optarg=yes ;;
768 esac
769
770 # Accept the important Cygnus configure options, so we can diagnose typos.
771
772 case $ac_dashdash$ac_option in
773 --)
774 ac_dashdash=yes ;;
775
776 -bindir | --bindir | --bindi | --bind | --bin | --bi)
777 ac_prev=bindir ;;
778 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
779 bindir=$ac_optarg ;;
780
781 -build | --build | --buil | --bui | --bu)
782 ac_prev=build_alias ;;
783 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784 build_alias=$ac_optarg ;;
785
786 -cache-file | --cache-file | --cache-fil | --cache-fi \
787 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
788 ac_prev=cache_file ;;
789 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
790 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
791 cache_file=$ac_optarg ;;
792
793 --config-cache | -C)
794 cache_file=config.cache ;;
795
796 -datadir | --datadir | --datadi | --datad)
797 ac_prev=datadir ;;
798 -datadir=* | --datadir=* | --datadi=* | --datad=*)
799 datadir=$ac_optarg ;;
800
801 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
802 | --dataroo | --dataro | --datar)
803 ac_prev=datarootdir ;;
804 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
805 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
806 datarootdir=$ac_optarg ;;
807
808 -disable-* | --disable-*)
809 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810 # Reject names that are not valid shell variable names.
811 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
813 { (exit 1); exit 1; }; }
814 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
815 eval enable_$ac_feature=no ;;
816
817 -docdir | --docdir | --docdi | --doc | --do)
818 ac_prev=docdir ;;
819 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 docdir=$ac_optarg ;;
821
822 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823 ac_prev=dvidir ;;
824 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 dvidir=$ac_optarg ;;
826
827 -enable-* | --enable-*)
828 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829 # Reject names that are not valid shell variable names.
830 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
831 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832 { (exit 1); exit 1; }; }
833 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
834 eval enable_$ac_feature=\$ac_optarg ;;
835
836 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
837 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
838 | --exec | --exe | --ex)
839 ac_prev=exec_prefix ;;
840 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
841 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
842 | --exec=* | --exe=* | --ex=*)
843 exec_prefix=$ac_optarg ;;
844
845 -gas | --gas | --ga | --g)
846 # Obsolete; use --with-gas.
847 with_gas=yes ;;
848
849 -help | --help | --hel | --he | -h)
850 ac_init_help=long ;;
851 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
852 ac_init_help=recursive ;;
853 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
854 ac_init_help=short ;;
855
856 -host | --host | --hos | --ho)
857 ac_prev=host_alias ;;
858 -host=* | --host=* | --hos=* | --ho=*)
859 host_alias=$ac_optarg ;;
860
861 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
862 ac_prev=htmldir ;;
863 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
864 | --ht=*)
865 htmldir=$ac_optarg ;;
866
867 -includedir | --includedir | --includedi | --included | --include \
868 | --includ | --inclu | --incl | --inc)
869 ac_prev=includedir ;;
870 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
871 | --includ=* | --inclu=* | --incl=* | --inc=*)
872 includedir=$ac_optarg ;;
873
874 -infodir | --infodir | --infodi | --infod | --info | --inf)
875 ac_prev=infodir ;;
876 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877 infodir=$ac_optarg ;;
878
879 -libdir | --libdir | --libdi | --libd)
880 ac_prev=libdir ;;
881 -libdir=* | --libdir=* | --libdi=* | --libd=*)
882 libdir=$ac_optarg ;;
883
884 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
885 | --libexe | --libex | --libe)
886 ac_prev=libexecdir ;;
887 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
888 | --libexe=* | --libex=* | --libe=*)
889 libexecdir=$ac_optarg ;;
890
891 -localedir | --localedir | --localedi | --localed | --locale)
892 ac_prev=localedir ;;
893 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894 localedir=$ac_optarg ;;
895
896 -localstatedir | --localstatedir | --localstatedi | --localstated \
897 | --localstate | --localstat | --localsta | --localst | --locals)
898 ac_prev=localstatedir ;;
899 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
900 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
901 localstatedir=$ac_optarg ;;
902
903 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
904 ac_prev=mandir ;;
905 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
906 mandir=$ac_optarg ;;
907
908 -nfp | --nfp | --nf)
909 # Obsolete; use --without-fp.
910 with_fp=no ;;
911
912 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913 | --no-cr | --no-c | -n)
914 no_create=yes ;;
915
916 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
918 no_recursion=yes ;;
919
920 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
921 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
922 | --oldin | --oldi | --old | --ol | --o)
923 ac_prev=oldincludedir ;;
924 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
925 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
926 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
927 oldincludedir=$ac_optarg ;;
928
929 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
930 ac_prev=prefix ;;
931 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
932 prefix=$ac_optarg ;;
933
934 -program-prefix | --program-prefix | --program-prefi | --program-pref \
935 | --program-pre | --program-pr | --program-p)
936 ac_prev=program_prefix ;;
937 -program-prefix=* | --program-prefix=* | --program-prefi=* \
938 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
939 program_prefix=$ac_optarg ;;
940
941 -program-suffix | --program-suffix | --program-suffi | --program-suff \
942 | --program-suf | --program-su | --program-s)
943 ac_prev=program_suffix ;;
944 -program-suffix=* | --program-suffix=* | --program-suffi=* \
945 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
946 program_suffix=$ac_optarg ;;
947
948 -program-transform-name | --program-transform-name \
949 | --program-transform-nam | --program-transform-na \
950 | --program-transform-n | --program-transform- \
951 | --program-transform | --program-transfor \
952 | --program-transfo | --program-transf \
953 | --program-trans | --program-tran \
954 | --progr-tra | --program-tr | --program-t)
955 ac_prev=program_transform_name ;;
956 -program-transform-name=* | --program-transform-name=* \
957 | --program-transform-nam=* | --program-transform-na=* \
958 | --program-transform-n=* | --program-transform-=* \
959 | --program-transform=* | --program-transfor=* \
960 | --program-transfo=* | --program-transf=* \
961 | --program-trans=* | --program-tran=* \
962 | --progr-tra=* | --program-tr=* | --program-t=*)
963 program_transform_name=$ac_optarg ;;
964
965 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
966 ac_prev=pdfdir ;;
967 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
968 pdfdir=$ac_optarg ;;
969
970 -psdir | --psdir | --psdi | --psd | --ps)
971 ac_prev=psdir ;;
972 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
973 psdir=$ac_optarg ;;
974
975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
976 | -silent | --silent | --silen | --sile | --sil)
977 silent=yes ;;
978
979 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
980 ac_prev=sbindir ;;
981 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
982 | --sbi=* | --sb=*)
983 sbindir=$ac_optarg ;;
984
985 -sharedstatedir | --sharedstatedir | --sharedstatedi \
986 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
987 | --sharedst | --shareds | --shared | --share | --shar \
988 | --sha | --sh)
989 ac_prev=sharedstatedir ;;
990 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
991 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
993 | --sha=* | --sh=*)
994 sharedstatedir=$ac_optarg ;;
995
996 -site | --site | --sit)
997 ac_prev=site ;;
998 -site=* | --site=* | --sit=*)
999 site=$ac_optarg ;;
1000
1001 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1002 ac_prev=srcdir ;;
1003 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1004 srcdir=$ac_optarg ;;
1005
1006 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1007 | --syscon | --sysco | --sysc | --sys | --sy)
1008 ac_prev=sysconfdir ;;
1009 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1010 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1011 sysconfdir=$ac_optarg ;;
1012
1013 -target | --target | --targe | --targ | --tar | --ta | --t)
1014 ac_prev=target_alias ;;
1015 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1016 target_alias=$ac_optarg ;;
1017
1018 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1019 verbose=yes ;;
1020
1021 -version | --version | --versio | --versi | --vers | -V)
1022 ac_init_version=: ;;
1023
1024 -with-* | --with-*)
1025 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1028 { echo "$as_me: error: invalid package name: $ac_package" >&2
1029 { (exit 1); exit 1; }; }
1030 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1031 eval with_$ac_package=\$ac_optarg ;;
1032
1033 -without-* | --without-*)
1034 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid package name: $ac_package" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1040 eval with_$ac_package=no ;;
1041
1042 --x)
1043 # Obsolete; use --with-x.
1044 with_x=yes ;;
1045
1046 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1047 | --x-incl | --x-inc | --x-in | --x-i)
1048 ac_prev=x_includes ;;
1049 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1050 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1051 x_includes=$ac_optarg ;;
1052
1053 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1054 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1055 ac_prev=x_libraries ;;
1056 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1057 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1058 x_libraries=$ac_optarg ;;
1059
1060 -*) { echo "$as_me: error: unrecognized option: $ac_option
1061 Try \`$0 --help' for more information." >&2
1062 { (exit 1); exit 1; }; }
1063 ;;
1064
1065 *=*)
1066 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1070 { (exit 1); exit 1; }; }
1071 eval $ac_envvar=\$ac_optarg
1072 export $ac_envvar ;;
1073
1074 *)
1075 # FIXME: should be removed in autoconf 3.0.
1076 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1077 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1078 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1079 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1080 ;;
1081
1082 esac
1083 done
1084
1085 if test -n "$ac_prev"; then
1086 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1087 { echo "$as_me: error: missing argument to $ac_option" >&2
1088 { (exit 1); exit 1; }; }
1089 fi
1090
1091 # Be sure to have absolute directory names.
1092 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1093 datadir sysconfdir sharedstatedir localstatedir includedir \
1094 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1095 libdir localedir mandir
1096 do
1097 eval ac_val=\$$ac_var
1098 case $ac_val in
1099 [\\/$]* | ?:[\\/]* ) continue;;
1100 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1101 esac
1102 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1103 { (exit 1); exit 1; }; }
1104 done
1105
1106 # There might be people who depend on the old broken behavior: `$host'
1107 # used to hold the argument of --host etc.
1108 # FIXME: To remove some day.
1109 build=$build_alias
1110 host=$host_alias
1111 target=$target_alias
1112
1113 # FIXME: To remove some day.
1114 if test "x$host_alias" != x; then
1115 if test "x$build_alias" = x; then
1116 cross_compiling=maybe
1117 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1118 If a cross compiler is detected then cross compile mode will be used." >&2
1119 elif test "x$build_alias" != "x$host_alias"; then
1120 cross_compiling=yes
1121 fi
1122 fi
1123
1124 ac_tool_prefix=
1125 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1126
1127 test "$silent" = yes && exec 6>/dev/null
1128
1129
1130 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1131 ac_ls_di=`ls -di .` &&
1132 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1133 { echo "$as_me: error: Working directory cannot be determined" >&2
1134 { (exit 1); exit 1; }; }
1135 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1136 { echo "$as_me: error: pwd does not report name of working directory" >&2
1137 { (exit 1); exit 1; }; }
1138
1139
1140 # Find the source files, if location was not specified.
1141 if test -z "$srcdir"; then
1142 ac_srcdir_defaulted=yes
1143 # Try the directory containing this script, then the parent directory.
1144 ac_confdir=`$as_dirname -- "$0" ||
1145 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1146 X"$0" : 'X\(//\)[^/]' \| \
1147 X"$0" : 'X\(//\)$' \| \
1148 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1149 echo X"$0" |
1150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1151 s//\1/
1152 q
1153 }
1154 /^X\(\/\/\)[^/].*/{
1155 s//\1/
1156 q
1157 }
1158 /^X\(\/\/\)$/{
1159 s//\1/
1160 q
1161 }
1162 /^X\(\/\).*/{
1163 s//\1/
1164 q
1165 }
1166 s/.*/./; q'`
1167 srcdir=$ac_confdir
1168 if test ! -r "$srcdir/$ac_unique_file"; then
1169 srcdir=..
1170 fi
1171 else
1172 ac_srcdir_defaulted=no
1173 fi
1174 if test ! -r "$srcdir/$ac_unique_file"; then
1175 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1176 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1177 { (exit 1); exit 1; }; }
1178 fi
1179 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1180 ac_abs_confdir=`(
1181 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1182 { (exit 1); exit 1; }; }
1183 pwd)`
1184 # When building in place, set srcdir=.
1185 if test "$ac_abs_confdir" = "$ac_pwd"; then
1186 srcdir=.
1187 fi
1188 # Remove unnecessary trailing slashes from srcdir.
1189 # Double slashes in file names in object file debugging info
1190 # mess up M-x gdb in Emacs.
1191 case $srcdir in
1192 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1193 esac
1194 for ac_var in $ac_precious_vars; do
1195 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1196 eval ac_env_${ac_var}_value=\$${ac_var}
1197 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1198 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1199 done
1200
1201 #
1202 # Report the --help message.
1203 #
1204 if test "$ac_init_help" = "long"; then
1205 # Omit some internal or obsolete options to make the list less imposing.
1206 # This message is too long to be a string in the A/UX 3.1 sh.
1207 cat <<_ACEOF
1208 \`configure' configures this package to adapt to many kinds of systems.
1209
1210 Usage: $0 [OPTION]... [VAR=VALUE]...
1211
1212 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1213 VAR=VALUE. See below for descriptions of some of the useful variables.
1214
1215 Defaults for the options are specified in brackets.
1216
1217 Configuration:
1218 -h, --help display this help and exit
1219 --help=short display options specific to this package
1220 --help=recursive display the short help of all the included packages
1221 -V, --version display version information and exit
1222 -q, --quiet, --silent do not print \`checking...' messages
1223 --cache-file=FILE cache test results in FILE [disabled]
1224 -C, --config-cache alias for \`--cache-file=config.cache'
1225 -n, --no-create do not create output files
1226 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1227
1228 Installation directories:
1229 --prefix=PREFIX install architecture-independent files in PREFIX
1230 [$ac_default_prefix]
1231 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1232 [PREFIX]
1233
1234 By default, \`make install' will install all the files in
1235 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1236 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1237 for instance \`--prefix=\$HOME'.
1238
1239 For better control, use the options below.
1240
1241 Fine tuning of the installation directories:
1242 --bindir=DIR user executables [EPREFIX/bin]
1243 --sbindir=DIR system admin executables [EPREFIX/sbin]
1244 --libexecdir=DIR program executables [EPREFIX/libexec]
1245 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1246 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1247 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1248 --libdir=DIR object code libraries [EPREFIX/lib]
1249 --includedir=DIR C header files [PREFIX/include]
1250 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1251 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1252 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1253 --infodir=DIR info documentation [DATAROOTDIR/info]
1254 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1255 --mandir=DIR man documentation [DATAROOTDIR/man]
1256 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1257 --htmldir=DIR html documentation [DOCDIR]
1258 --dvidir=DIR dvi documentation [DOCDIR]
1259 --pdfdir=DIR pdf documentation [DOCDIR]
1260 --psdir=DIR ps documentation [DOCDIR]
1261 _ACEOF
1262
1263 cat <<\_ACEOF
1264
1265 Program names:
1266 --program-prefix=PREFIX prepend PREFIX to installed program names
1267 --program-suffix=SUFFIX append SUFFIX to installed program names
1268 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1269 _ACEOF
1270 fi
1271
1272 if test -n "$ac_init_help"; then
1273
1274 cat <<\_ACEOF
1275
1276 Optional Features:
1277 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1278 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1279 --disable-dependency-tracking speeds up one-time build
1280 --enable-dependency-tracking do not reject slow dependency extractors
1281 --enable-debug -DDEBUG -g
1282 --enable-log -DLOG
1283
1284 Some influential environment variables:
1285 CC C compiler command
1286 CFLAGS C compiler flags
1287 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1288 nonstandard directory <lib dir>
1289 LIBS libraries to pass to the linker, e.g. -l<library>
1290 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1291 you have headers in a nonstandard directory <include dir>
1292 CPP C preprocessor
1293
1294 Use these variables to override the choices made by `configure' or to help
1295 it to find libraries and programs with nonstandard names/locations.
1296
1297 _ACEOF
1298 ac_status=$?
1299 fi
1300
1301 if test "$ac_init_help" = "recursive"; then
1302 # If there are subdirs, report their specific --help.
1303 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1304 test -d "$ac_dir" || continue
1305 ac_builddir=.
1306
1307 case "$ac_dir" in
1308 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1309 *)
1310 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1311 # A ".." for each directory in $ac_dir_suffix.
1312 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1313 case $ac_top_builddir_sub in
1314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1316 esac ;;
1317 esac
1318 ac_abs_top_builddir=$ac_pwd
1319 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1320 # for backward compatibility:
1321 ac_top_builddir=$ac_top_build_prefix
1322
1323 case $srcdir in
1324 .) # We are building in place.
1325 ac_srcdir=.
1326 ac_top_srcdir=$ac_top_builddir_sub
1327 ac_abs_top_srcdir=$ac_pwd ;;
1328 [\\/]* | ?:[\\/]* ) # Absolute name.
1329 ac_srcdir=$srcdir$ac_dir_suffix;
1330 ac_top_srcdir=$srcdir
1331 ac_abs_top_srcdir=$srcdir ;;
1332 *) # Relative name.
1333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1334 ac_top_srcdir=$ac_top_build_prefix$srcdir
1335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1336 esac
1337 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1338
1339 cd "$ac_dir" || { ac_status=$?; continue; }
1340 # Check for guested configure.
1341 if test -f "$ac_srcdir/configure.gnu"; then
1342 echo &&
1343 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1344 elif test -f "$ac_srcdir/configure"; then
1345 echo &&
1346 $SHELL "$ac_srcdir/configure" --help=recursive
1347 else
1348 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1349 fi || ac_status=$?
1350 cd "$ac_pwd" || { ac_status=$?; break; }
1351 done
1352 fi
1353
1354 test -n "$ac_init_help" && exit $ac_status
1355 if $ac_init_version; then
1356 cat <<\_ACEOF
1357 configure
1358 generated by GNU Autoconf 2.61
1359
1360 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1361 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1362 This configure script is free software; the Free Software Foundation
1363 gives unlimited permission to copy, distribute and modify it.
1364 _ACEOF
1365 exit
1366 fi
1367 cat >config.log <<_ACEOF
1368 This file contains any messages produced by compilers while
1369 running configure, to aid debugging if configure makes a mistake.
1370
1371 It was created by $as_me, which was
1372 generated by GNU Autoconf 2.61. Invocation command line was
1373
1374 $ $0 $@
1375
1376 _ACEOF
1377 exec 5>>config.log
1378 {
1379 cat <<_ASUNAME
1380 ## --------- ##
1381 ## Platform. ##
1382 ## --------- ##
1383
1384 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1385 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1386 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1387 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1388 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1389
1390 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1391 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1392
1393 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1394 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1395 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1396 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1397 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1398 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1399 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1400
1401 _ASUNAME
1402
1403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404 for as_dir in $PATH
1405 do
1406 IFS=$as_save_IFS
1407 test -z "$as_dir" && as_dir=.
1408 echo "PATH: $as_dir"
1409 done
1410 IFS=$as_save_IFS
1411
1412 } >&5
1413
1414 cat >&5 <<_ACEOF
1415
1416
1417 ## ----------- ##
1418 ## Core tests. ##
1419 ## ----------- ##
1420
1421 _ACEOF
1422
1423
1424 # Keep a trace of the command line.
1425 # Strip out --no-create and --no-recursion so they do not pile up.
1426 # Strip out --silent because we don't want to record it for future runs.
1427 # Also quote any args containing shell meta-characters.
1428 # Make two passes to allow for proper duplicate-argument suppression.
1429 ac_configure_args=
1430 ac_configure_args0=
1431 ac_configure_args1=
1432 ac_must_keep_next=false
1433 for ac_pass in 1 2
1434 do
1435 for ac_arg
1436 do
1437 case $ac_arg in
1438 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1440 | -silent | --silent | --silen | --sile | --sil)
1441 continue ;;
1442 *\'*)
1443 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1444 esac
1445 case $ac_pass in
1446 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1447 2)
1448 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1449 if test $ac_must_keep_next = true; then
1450 ac_must_keep_next=false # Got value, back to normal.
1451 else
1452 case $ac_arg in
1453 *=* | --config-cache | -C | -disable-* | --disable-* \
1454 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1455 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1456 | -with-* | --with-* | -without-* | --without-* | --x)
1457 case "$ac_configure_args0 " in
1458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1459 esac
1460 ;;
1461 -* ) ac_must_keep_next=true ;;
1462 esac
1463 fi
1464 ac_configure_args="$ac_configure_args '$ac_arg'"
1465 ;;
1466 esac
1467 done
1468 done
1469 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1470 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1471
1472 # When interrupted or exit'd, cleanup temporary files, and complete
1473 # config.log. We remove comments because anyway the quotes in there
1474 # would cause problems or look ugly.
1475 # WARNING: Use '\'' to represent an apostrophe within the trap.
1476 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1477 trap 'exit_status=$?
1478 # Save into config.log some information that might help in debugging.
1479 {
1480 echo
1481
1482 cat <<\_ASBOX
1483 ## ---------------- ##
1484 ## Cache variables. ##
1485 ## ---------------- ##
1486 _ASBOX
1487 echo
1488 # The following way of writing the cache mishandles newlines in values,
1489 (
1490 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1491 eval ac_val=\$$ac_var
1492 case $ac_val in #(
1493 *${as_nl}*)
1494 case $ac_var in #(
1495 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1496 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1497 esac
1498 case $ac_var in #(
1499 _ | IFS | as_nl) ;; #(
1500 *) $as_unset $ac_var ;;
1501 esac ;;
1502 esac
1503 done
1504 (set) 2>&1 |
1505 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1506 *${as_nl}ac_space=\ *)
1507 sed -n \
1508 "s/'\''/'\''\\\\'\'''\''/g;
1509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1510 ;; #(
1511 *)
1512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1513 ;;
1514 esac |
1515 sort
1516 )
1517 echo
1518
1519 cat <<\_ASBOX
1520 ## ----------------- ##
1521 ## Output variables. ##
1522 ## ----------------- ##
1523 _ASBOX
1524 echo
1525 for ac_var in $ac_subst_vars
1526 do
1527 eval ac_val=\$$ac_var
1528 case $ac_val in
1529 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1530 esac
1531 echo "$ac_var='\''$ac_val'\''"
1532 done | sort
1533 echo
1534
1535 if test -n "$ac_subst_files"; then
1536 cat <<\_ASBOX
1537 ## ------------------- ##
1538 ## File substitutions. ##
1539 ## ------------------- ##
1540 _ASBOX
1541 echo
1542 for ac_var in $ac_subst_files
1543 do
1544 eval ac_val=\$$ac_var
1545 case $ac_val in
1546 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1547 esac
1548 echo "$ac_var='\''$ac_val'\''"
1549 done | sort
1550 echo
1551 fi
1552
1553 if test -s confdefs.h; then
1554 cat <<\_ASBOX
1555 ## ----------- ##
1556 ## confdefs.h. ##
1557 ## ----------- ##
1558 _ASBOX
1559 echo
1560 cat confdefs.h
1561 echo
1562 fi
1563 test "$ac_signal" != 0 &&
1564 echo "$as_me: caught signal $ac_signal"
1565 echo "$as_me: exit $exit_status"
1566 } >&5
1567 rm -f core *.core core.conftest.* &&
1568 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1569 exit $exit_status
1570 ' 0
1571 for ac_signal in 1 2 13 15; do
1572 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1573 done
1574 ac_signal=0
1575
1576 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1577 rm -f -r conftest* confdefs.h
1578
1579 # Predefined preprocessor variables.
1580
1581 cat >>confdefs.h <<_ACEOF
1582 #define PACKAGE_NAME "$PACKAGE_NAME"
1583 _ACEOF
1584
1585
1586 cat >>confdefs.h <<_ACEOF
1587 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1588 _ACEOF
1589
1590
1591 cat >>confdefs.h <<_ACEOF
1592 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1593 _ACEOF
1594
1595
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE_STRING "$PACKAGE_STRING"
1598 _ACEOF
1599
1600
1601 cat >>confdefs.h <<_ACEOF
1602 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1603 _ACEOF
1604
1605
1606 # Let the site file select an alternate cache file if it wants to.
1607 # Prefer explicitly selected file to automatically selected ones.
1608 if test -n "$CONFIG_SITE"; then
1609 set x "$CONFIG_SITE"
1610 elif test "x$prefix" != xNONE; then
1611 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1612 else
1613 set x "$ac_default_prefix/share/config.site" \
1614 "$ac_default_prefix/etc/config.site"
1615 fi
1616 shift
1617 for ac_site_file
1618 do
1619 if test -r "$ac_site_file"; then
1620 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1621 echo "$as_me: loading site script $ac_site_file" >&6;}
1622 sed 's/^/| /' "$ac_site_file" >&5
1623 . "$ac_site_file"
1624 fi
1625 done
1626
1627 if test -r "$cache_file"; then
1628 # Some versions of bash will fail to source /dev/null (special
1629 # files actually), so we avoid doing that.
1630 if test -f "$cache_file"; then
1631 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1632 echo "$as_me: loading cache $cache_file" >&6;}
1633 case $cache_file in
1634 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1635 *) . "./$cache_file";;
1636 esac
1637 fi
1638 else
1639 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1640 echo "$as_me: creating cache $cache_file" >&6;}
1641 >$cache_file
1642 fi
1643
1644 # Check that the precious variables saved in the cache have kept the same
1645 # value.
1646 ac_cache_corrupted=false
1647 for ac_var in $ac_precious_vars; do
1648 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1649 eval ac_new_set=\$ac_env_${ac_var}_set
1650 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1651 eval ac_new_val=\$ac_env_${ac_var}_value
1652 case $ac_old_set,$ac_new_set in
1653 set,)
1654 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1655 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1656 ac_cache_corrupted=: ;;
1657 ,set)
1658 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1659 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1660 ac_cache_corrupted=: ;;
1661 ,);;
1662 *)
1663 if test "x$ac_old_val" != "x$ac_new_val"; then
1664 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1665 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1666 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1667 echo "$as_me: former value: $ac_old_val" >&2;}
1668 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1669 echo "$as_me: current value: $ac_new_val" >&2;}
1670 ac_cache_corrupted=:
1671 fi;;
1672 esac
1673 # Pass precious variables to config.status.
1674 if test "$ac_new_set" = set; then
1675 case $ac_new_val in
1676 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 *) ac_arg=$ac_var=$ac_new_val ;;
1678 esac
1679 case " $ac_configure_args " in
1680 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1681 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1682 esac
1683 fi
1684 done
1685 if $ac_cache_corrupted; then
1686 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1687 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1688 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1689 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1690 { (exit 1); exit 1; }; }
1691 fi
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709 ac_ext=c
1710 ac_cpp='$CPP $CPPFLAGS'
1711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1714
1715
1716 am__api_version='1.10'
1717
1718 ac_aux_dir=
1719 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1720 if test -f "$ac_dir/install-sh"; then
1721 ac_aux_dir=$ac_dir
1722 ac_install_sh="$ac_aux_dir/install-sh -c"
1723 break
1724 elif test -f "$ac_dir/install.sh"; then
1725 ac_aux_dir=$ac_dir
1726 ac_install_sh="$ac_aux_dir/install.sh -c"
1727 break
1728 elif test -f "$ac_dir/shtool"; then
1729 ac_aux_dir=$ac_dir
1730 ac_install_sh="$ac_aux_dir/shtool install -c"
1731 break
1732 fi
1733 done
1734 if test -z "$ac_aux_dir"; then
1735 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1736 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1737 { (exit 1); exit 1; }; }
1738 fi
1739
1740 # These three variables are undocumented and unsupported,
1741 # and are intended to be withdrawn in a future Autoconf release.
1742 # They can cause serious problems if a builder's source tree is in a directory
1743 # whose full name contains unusual characters.
1744 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1745 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1746 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1747
1748
1749 # Find a good install program. We prefer a C program (faster),
1750 # so one script is as good as another. But avoid the broken or
1751 # incompatible versions:
1752 # SysV /etc/install, /usr/sbin/install
1753 # SunOS /usr/etc/install
1754 # IRIX /sbin/install
1755 # AIX /bin/install
1756 # AmigaOS /C/install, which installs bootblocks on floppy discs
1757 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1758 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1759 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1760 # OS/2's system install, which has a completely different semantic
1761 # ./install, which can be erroneously created by make from ./install.sh.
1762 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1763 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1764 if test -z "$INSTALL"; then
1765 if test "${ac_cv_path_install+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 # Account for people who put trailing slashes in PATH elements.
1774 case $as_dir/ in
1775 ./ | .// | /cC/* | \
1776 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1777 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1778 /usr/ucb/* ) ;;
1779 *)
1780 # OSF1 and SCO ODT 3.0 have their own names for install.
1781 # Don't use installbsd from OSF since it installs stuff as root
1782 # by default.
1783 for ac_prog in ginstall scoinst install; do
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1786 if test $ac_prog = install &&
1787 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1788 # AIX install. It has an incompatible calling convention.
1789 :
1790 elif test $ac_prog = install &&
1791 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1792 # program-specific install script used by HP pwplus--don't use.
1793 :
1794 else
1795 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1796 break 3
1797 fi
1798 fi
1799 done
1800 done
1801 ;;
1802 esac
1803 done
1804 IFS=$as_save_IFS
1805
1806
1807 fi
1808 if test "${ac_cv_path_install+set}" = set; then
1809 INSTALL=$ac_cv_path_install
1810 else
1811 # As a last resort, use the slow shell script. Don't cache a
1812 # value for INSTALL within a source directory, because that will
1813 # break other packages using the cache if that directory is
1814 # removed, or if the value is a relative name.
1815 INSTALL=$ac_install_sh
1816 fi
1817 fi
1818 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1819 echo "${ECHO_T}$INSTALL" >&6; }
1820
1821 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1822 # It thinks the first close brace ends the variable substitution.
1823 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1824
1825 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1826
1827 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1828
1829 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1830 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1831 # Just in case
1832 sleep 1
1833 echo timestamp > conftest.file
1834 # Do `set' in a subshell so we don't clobber the current shell's
1835 # arguments. Must try -L first in case configure is actually a
1836 # symlink; some systems play weird games with the mod time of symlinks
1837 # (eg FreeBSD returns the mod time of the symlink's containing
1838 # directory).
1839 if (
1840 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1841 if test "$*" = "X"; then
1842 # -L didn't work.
1843 set X `ls -t $srcdir/configure conftest.file`
1844 fi
1845 rm -f conftest.file
1846 if test "$*" != "X $srcdir/configure conftest.file" \
1847 && test "$*" != "X conftest.file $srcdir/configure"; then
1848
1849 # If neither matched, then we have a broken ls. This can happen
1850 # if, for instance, CONFIG_SHELL is bash and it inherits a
1851 # broken ls alias from the environment. This has actually
1852 # happened. Such a system could not be considered "sane".
1853 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1854 alias in your environment" >&5
1855 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1856 alias in your environment" >&2;}
1857 { (exit 1); exit 1; }; }
1858 fi
1859
1860 test "$2" = conftest.file
1861 )
1862 then
1863 # Ok.
1864 :
1865 else
1866 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1867 Check your system clock" >&5
1868 echo "$as_me: error: newly created file is older than distributed files!
1869 Check your system clock" >&2;}
1870 { (exit 1); exit 1; }; }
1871 fi
1872 { echo "$as_me:$LINENO: result: yes" >&5
1873 echo "${ECHO_T}yes" >&6; }
1874 test "$program_prefix" != NONE &&
1875 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1876 # Use a double $ so make ignores it.
1877 test "$program_suffix" != NONE &&
1878 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1879 # Double any \ or $. echo might interpret backslashes.
1880 # By default was `s,x,x', remove it if useless.
1881 cat <<\_ACEOF >conftest.sed
1882 s/[\\$]/&&/g;s/;s,x,x,$//
1883 _ACEOF
1884 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1885 rm -f conftest.sed
1886
1887 # expand $ac_aux_dir to an absolute path
1888 am_aux_dir=`cd $ac_aux_dir && pwd`
1889
1890 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1891 # Use eval to expand $SHELL
1892 if eval "$MISSING --run true"; then
1893 am_missing_run="$MISSING --run "
1894 else
1895 am_missing_run=
1896 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1897 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1898 fi
1899
1900 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1901 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1902 if test -z "$MKDIR_P"; then
1903 if test "${ac_cv_path_mkdir+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1908 do
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 for ac_prog in mkdir gmkdir; do
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1914 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1915 'mkdir (GNU coreutils) '* | \
1916 'mkdir (coreutils) '* | \
1917 'mkdir (fileutils) '4.1*)
1918 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1919 break 3;;
1920 esac
1921 done
1922 done
1923 done
1924 IFS=$as_save_IFS
1925
1926 fi
1927
1928 if test "${ac_cv_path_mkdir+set}" = set; then
1929 MKDIR_P="$ac_cv_path_mkdir -p"
1930 else
1931 # As a last resort, use the slow shell script. Don't cache a
1932 # value for MKDIR_P within a source directory, because that will
1933 # break other packages using the cache if that directory is
1934 # removed, or if the value is a relative name.
1935 test -d ./--version && rmdir ./--version
1936 MKDIR_P="$ac_install_sh -d"
1937 fi
1938 fi
1939 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1940 echo "${ECHO_T}$MKDIR_P" >&6; }
1941
1942 mkdir_p="$MKDIR_P"
1943 case $mkdir_p in
1944 [\\/$]* | ?:[\\/]*) ;;
1945 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1946 esac
1947
1948 for ac_prog in gawk mawk nawk awk
1949 do
1950 # Extract the first word of "$ac_prog", so it can be a program name with args.
1951 set dummy $ac_prog; ac_word=$2
1952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1954 if test "${ac_cv_prog_AWK+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 if test -n "$AWK"; then
1958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1967 ac_cv_prog_AWK="$ac_prog"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1970 fi
1971 done
1972 done
1973 IFS=$as_save_IFS
1974
1975 fi
1976 fi
1977 AWK=$ac_cv_prog_AWK
1978 if test -n "$AWK"; then
1979 { echo "$as_me:$LINENO: result: $AWK" >&5
1980 echo "${ECHO_T}$AWK" >&6; }
1981 else
1982 { echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6; }
1984 fi
1985
1986
1987 test -n "$AWK" && break
1988 done
1989
1990 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1991 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1992 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1993 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 cat >conftest.make <<\_ACEOF
1997 SHELL = /bin/sh
1998 all:
1999 @echo '@@@%%%=$(MAKE)=@@@%%%'
2000 _ACEOF
2001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2002 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2003 *@@@%%%=?*=@@@%%%*)
2004 eval ac_cv_prog_make_${ac_make}_set=yes;;
2005 *)
2006 eval ac_cv_prog_make_${ac_make}_set=no;;
2007 esac
2008 rm -f conftest.make
2009 fi
2010 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2011 { echo "$as_me:$LINENO: result: yes" >&5
2012 echo "${ECHO_T}yes" >&6; }
2013 SET_MAKE=
2014 else
2015 { echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6; }
2017 SET_MAKE="MAKE=${MAKE-make}"
2018 fi
2019
2020 rm -rf .tst 2>/dev/null
2021 mkdir .tst 2>/dev/null
2022 if test -d .tst; then
2023 am__leading_dot=.
2024 else
2025 am__leading_dot=_
2026 fi
2027 rmdir .tst 2>/dev/null
2028
2029 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2030 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2031 # is not polluted with repeated "-I."
2032 am__isrc=' -I$(srcdir)'
2033 # test to see if srcdir already configured
2034 if test -f $srcdir/config.status; then
2035 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2036 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2037 { (exit 1); exit 1; }; }
2038 fi
2039 fi
2040
2041 # test whether we have cygpath
2042 if test -z "$CYGPATH_W"; then
2043 if (cygpath --version) >/dev/null 2>/dev/null; then
2044 CYGPATH_W='cygpath -w'
2045 else
2046 CYGPATH_W=echo
2047 fi
2048 fi
2049
2050
2051 # Define the identity of the package.
2052 PACKAGE=bosh
2053 VERSION=0.6
2054
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE "$PACKAGE"
2058 _ACEOF
2059
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define VERSION "$VERSION"
2063 _ACEOF
2064
2065 # Some tools Automake needs.
2066
2067 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2068
2069
2070 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2071
2072
2073 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2074
2075
2076 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2077
2078
2079 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2080
2081 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2082
2083 # Installed binaries are usually stripped using `strip' when the user
2084 # run `make install-strip'. However `strip' might not be the right
2085 # tool to use in cross-compilation environments, therefore Automake
2086 # will honor the `STRIP' environment variable to overrule this program.
2087 if test "$cross_compiling" != no; then
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}strip; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_prog_STRIP+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$STRIP"; then
2097 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2109 fi
2110 done
2111 done
2112 IFS=$as_save_IFS
2113
2114 fi
2115 fi
2116 STRIP=$ac_cv_prog_STRIP
2117 if test -n "$STRIP"; then
2118 { echo "$as_me:$LINENO: result: $STRIP" >&5
2119 echo "${ECHO_T}$STRIP" >&6; }
2120 else
2121 { echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6; }
2123 fi
2124
2125
2126 fi
2127 if test -z "$ac_cv_prog_STRIP"; then
2128 ac_ct_STRIP=$STRIP
2129 # Extract the first word of "strip", so it can be a program name with args.
2130 set dummy strip; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test -n "$ac_ct_STRIP"; then
2137 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_ac_ct_STRIP="strip"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2149 fi
2150 done
2151 done
2152 IFS=$as_save_IFS
2153
2154 fi
2155 fi
2156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2157 if test -n "$ac_ct_STRIP"; then
2158 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2159 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2160 else
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2163 fi
2164
2165 if test "x$ac_ct_STRIP" = x; then
2166 STRIP=":"
2167 else
2168 case $cross_compiling:$ac_tool_warned in
2169 yes:)
2170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2171 whose name does not start with the host triplet. If you think this
2172 configuration is useful to you, please write to [email protected]." >&5
2173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2174 whose name does not start with the host triplet. If you think this
2175 configuration is useful to you, please write to [email protected]." >&2;}
2176 ac_tool_warned=yes ;;
2177 esac
2178 STRIP=$ac_ct_STRIP
2179 fi
2180 else
2181 STRIP="$ac_cv_prog_STRIP"
2182 fi
2183
2184 fi
2185 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2186
2187 # We need awk for the "check" target. The system "awk" is bad on
2188 # some platforms.
2189 # Always define AMTAR for backward compatibility.
2190
2191 AMTAR=${AMTAR-"${am_missing_run}tar"}
2192
2193 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2194
2195
2196
2197
2198
2199 ac_ext=c
2200 ac_cpp='$CPP $CPPFLAGS'
2201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2204 if test -n "$ac_tool_prefix"; then
2205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2206 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2225 fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 CC=$ac_cv_prog_CC
2233 if test -n "$CC"; then
2234 { echo "$as_me:$LINENO: result: $CC" >&5
2235 echo "${ECHO_T}$CC" >&6; }
2236 else
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241
2242 fi
2243 if test -z "$ac_cv_prog_CC"; then
2244 ac_ct_CC=$CC
2245 # Extract the first word of "gcc", so it can be a program name with args.
2246 set dummy gcc; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 if test -n "$ac_ct_CC"; then
2253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 ac_cv_prog_ac_ct_CC="gcc"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 break 2
2265 fi
2266 done
2267 done
2268 IFS=$as_save_IFS
2269
2270 fi
2271 fi
2272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2273 if test -n "$ac_ct_CC"; then
2274 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2275 echo "${ECHO_T}$ac_ct_CC" >&6; }
2276 else
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2279 fi
2280
2281 if test "x$ac_ct_CC" = x; then
2282 CC=""
2283 else
2284 case $cross_compiling:$ac_tool_warned in
2285 yes:)
2286 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2287 whose name does not start with the host triplet. If you think this
2288 configuration is useful to you, please write to [email protected]." >&5
2289 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2290 whose name does not start with the host triplet. If you think this
2291 configuration is useful to you, please write to [email protected]." >&2;}
2292 ac_tool_warned=yes ;;
2293 esac
2294 CC=$ac_ct_CC
2295 fi
2296 else
2297 CC="$ac_cv_prog_CC"
2298 fi
2299
2300 if test -z "$CC"; then
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2303 set dummy ${ac_tool_prefix}cc; ac_word=$2
2304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306 if test "${ac_cv_prog_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309 if test -n "$CC"; then
2310 ac_cv_prog_CC="$CC" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319 ac_cv_prog_CC="${ac_tool_prefix}cc"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323 done
2324 done
2325 IFS=$as_save_IFS
2326
2327 fi
2328 fi
2329 CC=$ac_cv_prog_CC
2330 if test -n "$CC"; then
2331 { echo "$as_me:$LINENO: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6; }
2333 else
2334 { echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6; }
2336 fi
2337
2338
2339 fi
2340 fi
2341 if test -z "$CC"; then
2342 # Extract the first word of "cc", so it can be a program name with args.
2343 set dummy cc; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2351 else
2352 ac_prog_rejected=no
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2361 ac_prog_rejected=yes
2362 continue
2363 fi
2364 ac_cv_prog_CC="cc"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 if test $ac_prog_rejected = yes; then
2373 # We found a bogon in the path, so make sure we never use it.
2374 set dummy $ac_cv_prog_CC
2375 shift
2376 if test $# != 0; then
2377 # We chose a different compiler from the bogus one.
2378 # However, it has the same basename, so the bogon will be chosen
2379 # first if we set CC to just the basename; use the full file name.
2380 shift
2381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2382 fi
2383 fi
2384 fi
2385 fi
2386 CC=$ac_cv_prog_CC
2387 if test -n "$CC"; then
2388 { echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6; }
2390 else
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2393 fi
2394
2395
2396 fi
2397 if test -z "$CC"; then
2398 if test -n "$ac_tool_prefix"; then
2399 for ac_prog in cl.exe
2400 do
2401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2421 fi
2422 done
2423 done
2424 IFS=$as_save_IFS
2425
2426 fi
2427 fi
2428 CC=$ac_cv_prog_CC
2429 if test -n "$CC"; then
2430 { echo "$as_me:$LINENO: result: $CC" >&5
2431 echo "${ECHO_T}$CC" >&6; }
2432 else
2433 { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2435 fi
2436
2437
2438 test -n "$CC" && break
2439 done
2440 fi
2441 if test -z "$CC"; then
2442 ac_ct_CC=$CC
2443 for ac_prog in cl.exe
2444 do
2445 # Extract the first word of "$ac_prog", so it can be a program name with args.
2446 set dummy $ac_prog; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_ac_ct_CC="$ac_prog"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6; }
2476 else
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2480
2481
2482 test -n "$ac_ct_CC" && break
2483 done
2484
2485 if test "x$ac_ct_CC" = x; then
2486 CC=""
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to [email protected]." >&5
2493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to [email protected]." >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 CC=$ac_ct_CC
2499 fi
2500 fi
2501
2502 fi
2503
2504
2505 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: no acceptable C compiler found in \$PATH
2508 See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }
2510
2511 # Provide some information about the compiler.
2512 echo "$as_me:$LINENO: checking for C compiler version" >&5
2513 ac_compiler=`set X $ac_compile; echo $2`
2514 { (ac_try="$ac_compiler --version >&5"
2515 case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compiler --version >&5") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
2524 { (ac_try="$ac_compiler -v >&5"
2525 case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compiler -v >&5") 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (ac_try="$ac_compiler -V >&5"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_compiler -V >&5") 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2551
2552 int
2553 main ()
2554 {
2555
2556 ;
2557 return 0;
2558 }
2559 _ACEOF
2560 ac_clean_files_save=$ac_clean_files
2561 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2562 # Try to create an executable without -o first, disregard a.out.
2563 # It will help us diagnose broken compilers, and finding out an intuition
2564 # of exeext.
2565 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2566 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2567 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2568 #
2569 # List of possible output files, starting from the most likely.
2570 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2571 # only as a last resort. b.out is created by i960 compilers.
2572 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2573 #
2574 # The IRIX 6 linker writes into existing files which may not be
2575 # executable, retaining their permissions. Remove them first so a
2576 # subsequent execution test works.
2577 ac_rmfiles=
2578 for ac_file in $ac_files
2579 do
2580 case $ac_file in
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2582 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2583 esac
2584 done
2585 rm -f $ac_rmfiles
2586
2587 if { (ac_try="$ac_link_default"
2588 case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_link_default") 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
2597 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2598 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2599 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2600 # so that the user can short-circuit this test for compilers unknown to
2601 # Autoconf.
2602 for ac_file in $ac_files ''
2603 do
2604 test -f "$ac_file" || continue
2605 case $ac_file in
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2607 ;;
2608 [ab].out )
2609 # We found the default executable, but exeext='' is most
2610 # certainly right.
2611 break;;
2612 *.* )
2613 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2614 then :; else
2615 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2616 fi
2617 # We set ac_cv_exeext here because the later test for it is not
2618 # safe: cross compilers may not add the suffix if given an `-o'
2619 # argument, so we may need to know it at that point already.
2620 # Even if this section looks crufty: it has the advantage of
2621 # actually working.
2622 break;;
2623 * )
2624 break;;
2625 esac
2626 done
2627 test "$ac_cv_exeext" = no && ac_cv_exeext=
2628
2629 else
2630 ac_file=''
2631 fi
2632
2633 { echo "$as_me:$LINENO: result: $ac_file" >&5
2634 echo "${ECHO_T}$ac_file" >&6; }
2635 if test -z "$ac_file"; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: C compiler cannot create executables
2642 See \`config.log' for more details." >&2;}
2643 { (exit 77); exit 77; }; }
2644 fi
2645
2646 ac_exeext=$ac_cv_exeext
2647
2648 # Check that the compiler produces executables we can run. If not, either
2649 # the compiler is broken, or we cross compile.
2650 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2651 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2652 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2653 # If not cross compiling, check that we can run a simple program.
2654 if test "$cross_compiling" != yes; then
2655 if { ac_try='./$ac_file'
2656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 cross_compiling=no
2666 else
2667 if test "$cross_compiling" = maybe; then
2668 cross_compiling=yes
2669 else
2670 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2671 If you meant to cross compile, use \`--host'.
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot run C compiled programs.
2674 If you meant to cross compile, use \`--host'.
2675 See \`config.log' for more details." >&2;}
2676 { (exit 1); exit 1; }; }
2677 fi
2678 fi
2679 fi
2680 { echo "$as_me:$LINENO: result: yes" >&5
2681 echo "${ECHO_T}yes" >&6; }
2682
2683 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2684 ac_clean_files=$ac_clean_files_save
2685 # Check that the compiler produces executables we can run. If not, either
2686 # the compiler is broken, or we cross compile.
2687 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2688 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2689 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2690 echo "${ECHO_T}$cross_compiling" >&6; }
2691
2692 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2693 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2694 if { (ac_try="$ac_link"
2695 case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_link") 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2705 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2706 # work properly (i.e., refer to `conftest.exe'), while it won't with
2707 # `rm'.
2708 for ac_file in conftest.exe conftest conftest.*; do
2709 test -f "$ac_file" || continue
2710 case $ac_file in
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2713 break;;
2714 * ) break;;
2715 esac
2716 done
2717 else
2718 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2721 See \`config.log' for more details." >&2;}
2722 { (exit 1); exit 1; }; }
2723 fi
2724
2725 rm -f conftest$ac_cv_exeext
2726 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2727 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2728
2729 rm -f conftest.$ac_ext
2730 EXEEXT=$ac_cv_exeext
2731 ac_exeext=$EXEEXT
2732 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2733 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2734 if test "${ac_cv_objext+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h. */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2743
2744 int
2745 main ()
2746 {
2747
2748 ;
2749 return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.o conftest.obj
2753 if { (ac_try="$ac_compile"
2754 case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; then
2763 for ac_file in conftest.o conftest.obj conftest.*; do
2764 test -f "$ac_file" || continue;
2765 case $ac_file in
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768 break;;
2769 esac
2770 done
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778 See \`config.log' for more details." >&2;}
2779 { (exit 1); exit 1; }; }
2780 fi
2781
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783 fi
2784 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6; }
2786 OBJEXT=$ac_cv_objext
2787 ac_objext=$OBJEXT
2788 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h. */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799
2800 int
2801 main ()
2802 {
2803 #ifndef __GNUC__
2804 choke me
2805 #endif
2806
2807 ;
2808 return 0;
2809 }
2810 _ACEOF
2811 rm -f conftest.$ac_objext
2812 if { (ac_try="$ac_compile"
2813 case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compile") 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2828 ac_compiler_gnu=yes
2829 else
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 ac_compiler_gnu=no
2834 fi
2835
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2838
2839 fi
2840 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2841 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2842 GCC=`test $ac_compiler_gnu = yes && echo yes`
2843 ac_test_CFLAGS=${CFLAGS+set}
2844 ac_save_CFLAGS=$CFLAGS
2845 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_cc_g+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 ac_save_c_werror_flag=$ac_c_werror_flag
2851 ac_c_werror_flag=yes
2852 ac_cv_prog_cc_g=no
2853 CFLAGS="-g"
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860
2861 int
2862 main ()
2863 {
2864
2865 ;
2866 return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>conftest.er1
2877 ac_status=$?
2878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } && {
2883 test -z "$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2885 } && test -s conftest.$ac_objext; then
2886 ac_cv_prog_cc_g=yes
2887 else
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2890
2891 CFLAGS=""
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898
2899 int
2900 main ()
2901 {
2902
2903 ;
2904 return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.$ac_objext
2908 if { (ac_try="$ac_compile"
2909 case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compile") 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } && {
2921 test -z "$ac_c_werror_flag" ||
2922 test ! -s conftest.err
2923 } && test -s conftest.$ac_objext; then
2924 :
2925 else
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 ac_c_werror_flag=$ac_save_c_werror_flag
2930 CFLAGS="-g"
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2937
2938 int
2939 main ()
2940 {
2941
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } && {
2960 test -z "$ac_c_werror_flag" ||
2961 test ! -s conftest.err
2962 } && test -s conftest.$ac_objext; then
2963 ac_cv_prog_cc_g=yes
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968
2969 fi
2970
2971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972 fi
2973
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 fi
2976
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
2979 fi
2980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2982 if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984 elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 else
2988 CFLAGS="-g"
2989 fi
2990 else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
2996 fi
2997 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2998 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cc_c89+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 ac_cv_prog_cc_c89=no
3003 ac_save_CC=$CC
3004 cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h. */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3010 #include <stdarg.h>
3011 #include <stdio.h>
3012 #include <sys/types.h>
3013 #include <sys/stat.h>
3014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3015 struct buf { int x; };
3016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017 static char *e (p, i)
3018 char **p;
3019 int i;
3020 {
3021 return p[i];
3022 }
3023 static char *f (char * (*g) (char **, int), char **p, ...)
3024 {
3025 char *s;
3026 va_list v;
3027 va_start (v,p);
3028 s = g (p, va_arg (v,int));
3029 va_end (v);
3030 return s;
3031 }
3032
3033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3034 function prototypes and stuff, but not '\xHH' hex character constants.
3035 These don't provoke an error unfortunately, instead are silently treated
3036 as 'x'. The following induces an error, until -std is added to get
3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3038 array size at least. It's necessary to write '\x00'==0 to get something
3039 that's true only with -std. */
3040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3041
3042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3043 inside strings and character constants. */
3044 #define FOO(x) 'x'
3045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3046
3047 int test (int i, double x);
3048 struct s1 {int (*f) (int a);};
3049 struct s2 {int (*f) (double a);};
3050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3051 int argc;
3052 char **argv;
3053 int
3054 main ()
3055 {
3056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3063 do
3064 CC="$ac_save_CC $ac_arg"
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3082 ac_cv_prog_cc_c89=$ac_arg
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087
3088 fi
3089
3090 rm -f core conftest.err conftest.$ac_objext
3091 test "x$ac_cv_prog_cc_c89" != "xno" && break
3092 done
3093 rm -f conftest.$ac_ext
3094 CC=$ac_save_CC
3095
3096 fi
3097 # AC_CACHE_VAL
3098 case "x$ac_cv_prog_cc_c89" in
3099 x)
3100 { echo "$as_me:$LINENO: result: none needed" >&5
3101 echo "${ECHO_T}none needed" >&6; } ;;
3102 xno)
3103 { echo "$as_me:$LINENO: result: unsupported" >&5
3104 echo "${ECHO_T}unsupported" >&6; } ;;
3105 *)
3106 CC="$CC $ac_cv_prog_cc_c89"
3107 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3108 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3109 esac
3110
3111
3112 ac_ext=c
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117 DEPDIR="${am__leading_dot}deps"
3118
3119 ac_config_commands="$ac_config_commands depfiles"
3120
3121
3122 am_make=${MAKE-make}
3123 cat > confinc << 'END'
3124 am__doit:
3125 @echo done
3126 .PHONY: am__doit
3127 END
3128 # If we don't find an include directive, just comment out the code.
3129 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3130 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3131 am__include="#"
3132 am__quote=
3133 _am_result=none
3134 # First try GNU make style include.
3135 echo "include confinc" > confmf
3136 # We grep out `Entering directory' and `Leaving directory'
3137 # messages which can occur if `w' ends up in MAKEFLAGS.
3138 # In particular we don't look at `^make:' because GNU make might
3139 # be invoked under some other name (usually "gmake"), in which
3140 # case it prints its new name instead of `make'.
3141 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3142 am__include=include
3143 am__quote=
3144 _am_result=GNU
3145 fi
3146 # Now try BSD make style include.
3147 if test "$am__include" = "#"; then
3148 echo '.include "confinc"' > confmf
3149 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3150 am__include=.include
3151 am__quote="\""
3152 _am_result=BSD
3153 fi
3154 fi
3155
3156
3157 { echo "$as_me:$LINENO: result: $_am_result" >&5
3158 echo "${ECHO_T}$_am_result" >&6; }
3159 rm -f confinc confmf
3160
3161 # Check whether --enable-dependency-tracking was given.
3162 if test "${enable_dependency_tracking+set}" = set; then
3163 enableval=$enable_dependency_tracking;
3164 fi
3165
3166 if test "x$enable_dependency_tracking" != xno; then
3167 am_depcomp="$ac_aux_dir/depcomp"
3168 AMDEPBACKSLASH='\'
3169 fi
3170 if test "x$enable_dependency_tracking" != xno; then
3171 AMDEP_TRUE=
3172 AMDEP_FALSE='#'
3173 else
3174 AMDEP_TRUE='#'
3175 AMDEP_FALSE=
3176 fi
3177
3178
3179
3180 depcc="$CC" am_compiler_list=
3181
3182 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3183 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3188 # We make a subdir and do the tests there. Otherwise we can end up
3189 # making bogus files that we don't know about and never remove. For
3190 # instance it was reported that on HP-UX the gcc test will end up
3191 # making a dummy file named `D' -- because `-MD' means `put the output
3192 # in D'.
3193 mkdir conftest.dir
3194 # Copy depcomp to subdir because otherwise we won't find it if we're
3195 # using a relative directory.
3196 cp "$am_depcomp" conftest.dir
3197 cd conftest.dir
3198 # We will build objects and dependencies in a subdirectory because
3199 # it helps to detect inapplicable dependency modes. For instance
3200 # both Tru64's cc and ICC support -MD to output dependencies as a
3201 # side effect of compilation, but ICC will put the dependencies in
3202 # the current directory while Tru64 will put them in the object
3203 # directory.
3204 mkdir sub
3205
3206 am_cv_CC_dependencies_compiler_type=none
3207 if test "$am_compiler_list" = ""; then
3208 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3209 fi
3210 for depmode in $am_compiler_list; do
3211 # Setup a source with many dependencies, because some compilers
3212 # like to wrap large dependency lists on column 80 (with \), and
3213 # we should not choose a depcomp mode which is confused by this.
3214 #
3215 # We need to recreate these files for each test, as the compiler may
3216 # overwrite some of them when testing with obscure command lines.
3217 # This happens at least with the AIX C compiler.
3218 : > sub/conftest.c
3219 for i in 1 2 3 4 5 6; do
3220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3222 # Solaris 8's {/usr,}/bin/sh.
3223 touch sub/conftst$i.h
3224 done
3225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3226
3227 case $depmode in
3228 nosideeffect)
3229 # after this tag, mechanisms are not by side-effect, so they'll
3230 # only be used when explicitly requested
3231 if test "x$enable_dependency_tracking" = xyes; then
3232 continue
3233 else
3234 break
3235 fi
3236 ;;
3237 none) break ;;
3238 esac
3239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3240 # mode. It turns out that the SunPro C++ compiler does not properly
3241 # handle `-M -o', and we need to detect this.
3242 if depmode=$depmode \
3243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3246 >/dev/null 2>conftest.err &&
3247 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3249 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3251 # icc doesn't choke on unknown options, it will just issue warnings
3252 # or remarks (even with -Werror). So we grep stderr for any message
3253 # that says an option was ignored or not supported.
3254 # When given -MP, icc 7.0 and 7.1 complain thusly:
3255 # icc: Command line warning: ignoring option '-M'; no argument required
3256 # The diagnosis changed in icc 8.0:
3257 # icc: Command line remark: option '-MP' not supported
3258 if (grep 'ignoring option' conftest.err ||
3259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3260 am_cv_CC_dependencies_compiler_type=$depmode
3261 break
3262 fi
3263 fi
3264 done
3265
3266 cd ..
3267 rm -rf conftest.dir
3268 else
3269 am_cv_CC_dependencies_compiler_type=none
3270 fi
3271
3272 fi
3273 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3274 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3275 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3276
3277 if
3278 test "x$enable_dependency_tracking" != xno \
3279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3280 am__fastdepCC_TRUE=
3281 am__fastdepCC_FALSE='#'
3282 else
3283 am__fastdepCC_TRUE='#'
3284 am__fastdepCC_FALSE=
3285 fi
3286
3287
3288 # Find a good install program. We prefer a C program (faster),
3289 # so one script is as good as another. But avoid the broken or
3290 # incompatible versions:
3291 # SysV /etc/install, /usr/sbin/install
3292 # SunOS /usr/etc/install
3293 # IRIX /sbin/install
3294 # AIX /bin/install
3295 # AmigaOS /C/install, which installs bootblocks on floppy discs
3296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3299 # OS/2's system install, which has a completely different semantic
3300 # ./install, which can be erroneously created by make from ./install.sh.
3301 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3302 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3303 if test -z "$INSTALL"; then
3304 if test "${ac_cv_path_install+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 # Account for people who put trailing slashes in PATH elements.
3313 case $as_dir/ in
3314 ./ | .// | /cC/* | \
3315 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3316 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3317 /usr/ucb/* ) ;;
3318 *)
3319 # OSF1 and SCO ODT 3.0 have their own names for install.
3320 # Don't use installbsd from OSF since it installs stuff as root
3321 # by default.
3322 for ac_prog in ginstall scoinst install; do
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3325 if test $ac_prog = install &&
3326 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3327 # AIX install. It has an incompatible calling convention.
3328 :
3329 elif test $ac_prog = install &&
3330 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3331 # program-specific install script used by HP pwplus--don't use.
3332 :
3333 else
3334 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3335 break 3
3336 fi
3337 fi
3338 done
3339 done
3340 ;;
3341 esac
3342 done
3343 IFS=$as_save_IFS
3344
3345
3346 fi
3347 if test "${ac_cv_path_install+set}" = set; then
3348 INSTALL=$ac_cv_path_install
3349 else
3350 # As a last resort, use the slow shell script. Don't cache a
3351 # value for INSTALL within a source directory, because that will
3352 # break other packages using the cache if that directory is
3353 # removed, or if the value is a relative name.
3354 INSTALL=$ac_install_sh
3355 fi
3356 fi
3357 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3358 echo "${ECHO_T}$INSTALL" >&6; }
3359
3360 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3361 # It thinks the first close brace ends the variable substitution.
3362 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3363
3364 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3365
3366 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3367
3368 CFLAGS="-Wall"
3369
3370 # Check whether --enable-debug was given.
3371 if test "${enable_debug+set}" = set; then
3372 enableval=$enable_debug; enable_debug=yes
3373 fi
3374
3375 # Check whether --enable-debug was given.
3376 if test "${enable_debug+set}" = set; then
3377 enableval=$enable_debug; enable_log=yes
3378 fi
3379
3380 test "$enable_debug" = "yes" && CFLAGS="$CFLAGS -DDEBUG -g"
3381 test "$enable_log" = "yes" && CFLAGS="$CFLAGS -DLOG"
3382 ERR="Required package missing!"
3383
3384 ac_ext=c
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3390 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3391 # On Suns, sometimes $CPP names a directory.
3392 if test -n "$CPP" && test -d "$CPP"; then
3393 CPP=
3394 fi
3395 if test -z "$CPP"; then
3396 if test "${ac_cv_prog_CPP+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 # Double quotes because CPP needs to be expanded
3400 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3401 do
3402 ac_preproc_ok=false
3403 for ac_c_preproc_warn_flag in '' yes
3404 do
3405 # Use a header file that comes with gcc, so configuring glibc
3406 # with a fresh cross-compiler works.
3407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3408 # <limits.h> exists even on freestanding compilers.
3409 # On the NeXT, cc -E runs the code through the compiler's parser,
3410 # not just through cpp. "Syntax error" is here to catch this case.
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3417 #ifdef __STDC__
3418 # include <limits.h>
3419 #else
3420 # include <assert.h>
3421 #endif
3422 Syntax error
3423 _ACEOF
3424 if { (ac_try="$ac_cpp conftest.$ac_ext"
3425 case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } >/dev/null && {
3437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3438 test ! -s conftest.err
3439 }; then
3440 :
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445 # Broken: fails on valid input.
3446 continue
3447 fi
3448
3449 rm -f conftest.err conftest.$ac_ext
3450
3451 # OK, works on sane cases. Now check whether nonexistent headers
3452 # can be detected and how.
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459 #include <ac_nonexistent.h>
3460 _ACEOF
3461 if { (ac_try="$ac_cpp conftest.$ac_ext"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null && {
3474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3476 }; then
3477 # Broken: success on invalid input.
3478 continue
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 # Passes both tests.
3484 ac_preproc_ok=:
3485 break
3486 fi
3487
3488 rm -f conftest.err conftest.$ac_ext
3489
3490 done
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3494 break
3495 fi
3496
3497 done
3498 ac_cv_prog_CPP=$CPP
3499
3500 fi
3501 CPP=$ac_cv_prog_CPP
3502 else
3503 ac_cv_prog_CPP=$CPP
3504 fi
3505 { echo "$as_me:$LINENO: result: $CPP" >&5
3506 echo "${ECHO_T}$CPP" >&6; }
3507 ac_preproc_ok=false
3508 for ac_c_preproc_warn_flag in '' yes
3509 do
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522 #ifdef __STDC__
3523 # include <limits.h>
3524 #else
3525 # include <assert.h>
3526 #endif
3527 Syntax error
3528 _ACEOF
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null && {
3542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 }; then
3545 :
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 # Broken: fails on valid input.
3551 continue
3552 fi
3553
3554 rm -f conftest.err conftest.$ac_ext
3555
3556 # OK, works on sane cases. Now check whether nonexistent headers
3557 # can be detected and how.
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 #include <ac_nonexistent.h>
3565 _ACEOF
3566 if { (ac_try="$ac_cpp conftest.$ac_ext"
3567 case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null && {
3579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3581 }; then
3582 # Broken: success on invalid input.
3583 continue
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 # Passes both tests.
3589 ac_preproc_ok=:
3590 break
3591 fi
3592
3593 rm -f conftest.err conftest.$ac_ext
3594
3595 done
3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597 rm -f conftest.err conftest.$ac_ext
3598 if $ac_preproc_ok; then
3599 :
3600 else
3601 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3602 See \`config.log' for more details." >&5
3603 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." >&2;}
3605 { (exit 1); exit 1; }; }
3606 fi
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614
3615 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3616 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3617 if test "${ac_cv_path_GREP+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 # Extract the first word of "grep ggrep" to use in msg output
3621 if test -z "$GREP"; then
3622 set dummy grep ggrep; ac_prog_name=$2
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 ac_path_GREP_found=false
3627 # Loop through the user's path and test for each of PROGNAME-LIST
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3630 do
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_prog in grep ggrep; do
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3636 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3637 # Check for GNU ac_path_GREP and select it if it is found.
3638 # Check for GNU $ac_path_GREP
3639 case `"$ac_path_GREP" --version 2>&1` in
3640 *GNU*)
3641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3642 *)
3643 ac_count=0
3644 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3645 while :
3646 do
3647 cat "conftest.in" "conftest.in" >"conftest.tmp"
3648 mv "conftest.tmp" "conftest.in"
3649 cp "conftest.in" "conftest.nl"
3650 echo 'GREP' >> "conftest.nl"
3651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3653 ac_count=`expr $ac_count + 1`
3654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655 # Best one so far, save it but keep looking for a better one
3656 ac_cv_path_GREP="$ac_path_GREP"
3657 ac_path_GREP_max=$ac_count
3658 fi
3659 # 10*(2^10) chars as input seems more than enough
3660 test $ac_count -gt 10 && break
3661 done
3662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663 esac
3664
3665
3666 $ac_path_GREP_found && break 3
3667 done
3668 done
3669
3670 done
3671 IFS=$as_save_IFS
3672
3673
3674 fi
3675
3676 GREP="$ac_cv_path_GREP"
3677 if test -z "$GREP"; then
3678 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3679 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3680 { (exit 1); exit 1; }; }
3681 fi
3682
3683 else
3684 ac_cv_path_GREP=$GREP
3685 fi
3686
3687
3688 fi
3689 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3690 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3691 GREP="$ac_cv_path_GREP"
3692
3693
3694 { echo "$as_me:$LINENO: checking for egrep" >&5
3695 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_EGREP+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3700 then ac_cv_path_EGREP="$GREP -E"
3701 else
3702 # Extract the first word of "egrep" to use in msg output
3703 if test -z "$EGREP"; then
3704 set dummy egrep; ac_prog_name=$2
3705 if test "${ac_cv_path_EGREP+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 ac_path_EGREP_found=false
3709 # Loop through the user's path and test for each of PROGNAME-LIST
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3712 do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_prog in egrep; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3718 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3719 # Check for GNU ac_path_EGREP and select it if it is found.
3720 # Check for GNU $ac_path_EGREP
3721 case `"$ac_path_EGREP" --version 2>&1` in
3722 *GNU*)
3723 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3724 *)
3725 ac_count=0
3726 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3727 while :
3728 do
3729 cat "conftest.in" "conftest.in" >"conftest.tmp"
3730 mv "conftest.tmp" "conftest.in"
3731 cp "conftest.in" "conftest.nl"
3732 echo 'EGREP' >> "conftest.nl"
3733 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735 ac_count=`expr $ac_count + 1`
3736 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3737 # Best one so far, save it but keep looking for a better one
3738 ac_cv_path_EGREP="$ac_path_EGREP"
3739 ac_path_EGREP_max=$ac_count
3740 fi
3741 # 10*(2^10) chars as input seems more than enough
3742 test $ac_count -gt 10 && break
3743 done
3744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 esac
3746
3747
3748 $ac_path_EGREP_found && break 3
3749 done
3750 done
3751
3752 done
3753 IFS=$as_save_IFS
3754
3755
3756 fi
3757
3758 EGREP="$ac_cv_path_EGREP"
3759 if test -z "$EGREP"; then
3760 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3761 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3762 { (exit 1); exit 1; }; }
3763 fi
3764
3765 else
3766 ac_cv_path_EGREP=$EGREP
3767 fi
3768
3769
3770 fi
3771 fi
3772 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3773 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3774 EGREP="$ac_cv_path_EGREP"
3775
3776
3777 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3779 if test "${ac_cv_header_stdc+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 #include <stdlib.h>
3789 #include <stdarg.h>
3790 #include <string.h>
3791 #include <float.h>
3792
3793 int
3794 main ()
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.$ac_objext
3802 if { (ac_try="$ac_compile"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_compile") 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } && {
3815 test -z "$ac_c_werror_flag" ||
3816 test ! -s conftest.err
3817 } && test -s conftest.$ac_objext; then
3818 ac_cv_header_stdc=yes
3819 else
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823 ac_cv_header_stdc=no
3824 fi
3825
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827
3828 if test $ac_cv_header_stdc = yes; then
3829 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3830 cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 #include <string.h>
3837
3838 _ACEOF
3839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3840 $EGREP "memchr" >/dev/null 2>&1; then
3841 :
3842 else
3843 ac_cv_header_stdc=no
3844 fi
3845 rm -f conftest*
3846
3847 fi
3848
3849 if test $ac_cv_header_stdc = yes; then
3850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3851 cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h. */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <stdlib.h>
3858
3859 _ACEOF
3860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3861 $EGREP "free" >/dev/null 2>&1; then
3862 :
3863 else
3864 ac_cv_header_stdc=no
3865 fi
3866 rm -f conftest*
3867
3868 fi
3869
3870 if test $ac_cv_header_stdc = yes; then
3871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3872 if test "$cross_compiling" = yes; then
3873 :
3874 else
3875 cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h. */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3881 #include <ctype.h>
3882 #include <stdlib.h>
3883 #if ((' ' & 0x0FF) == 0x020)
3884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3886 #else
3887 # define ISLOWER(c) \
3888 (('a' <= (c) && (c) <= 'i') \
3889 || ('j' <= (c) && (c) <= 'r') \
3890 || ('s' <= (c) && (c) <= 'z'))
3891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3892 #endif
3893
3894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3895 int
3896 main ()
3897 {
3898 int i;
3899 for (i = 0; i < 256; i++)
3900 if (XOR (islower (i), ISLOWER (i))
3901 || toupper (i) != TOUPPER (i))
3902 return 2;
3903 return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest$ac_exeext
3907 if { (ac_try="$ac_link"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_link") 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3917 { (case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_try") 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 :
3927 else
3928 echo "$as_me: program exited with status $ac_status" >&5
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 ( exit $ac_status )
3933 ac_cv_header_stdc=no
3934 fi
3935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3936 fi
3937
3938
3939 fi
3940 fi
3941 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3942 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3943 if test $ac_cv_header_stdc = yes; then
3944
3945 cat >>confdefs.h <<\_ACEOF
3946 #define STDC_HEADERS 1
3947 _ACEOF
3948
3949 fi
3950
3951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3962 inttypes.h stdint.h unistd.h
3963 do
3964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h. */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 $ac_includes_default
3977
3978 #include <$ac_header>
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3997 eval "$as_ac_Header=yes"
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 eval "$as_ac_Header=no"
4003 fi
4004
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 fi
4007 ac_res=`eval echo '${'$as_ac_Header'}'`
4008 { echo "$as_me:$LINENO: result: $ac_res" >&5
4009 echo "${ECHO_T}$ac_res" >&6; }
4010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4011 cat >>confdefs.h <<_ACEOF
4012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4013 _ACEOF
4014
4015 fi
4016
4017 done
4018
4019
4020 if test "${ac_cv_header_ncurses_h+set}" = set; then
4021 { echo "$as_me:$LINENO: checking for ncurses.h" >&5
4022 echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6; }
4023 if test "${ac_cv_header_ncurses_h+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 fi
4026 { echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5
4027 echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6; }
4028 else
4029 # Is the header compilable?
4030 { echo "$as_me:$LINENO: checking ncurses.h usability" >&5
4031 echo $ECHO_N "checking ncurses.h usability... $ECHO_C" >&6; }
4032 cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h. */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h. */
4038 $ac_includes_default
4039 #include <ncurses.h>
4040 _ACEOF
4041 rm -f conftest.$ac_objext
4042 if { (ac_try="$ac_compile"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_compile") 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } && {
4055 test -z "$ac_c_werror_flag" ||
4056 test ! -s conftest.err
4057 } && test -s conftest.$ac_objext; then
4058 ac_header_compiler=yes
4059 else
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 ac_header_compiler=no
4064 fi
4065
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4068 echo "${ECHO_T}$ac_header_compiler" >&6; }
4069
4070 # Is the header present?
4071 { echo "$as_me:$LINENO: checking ncurses.h presence" >&5
4072 echo $ECHO_N "checking ncurses.h presence... $ECHO_C" >&6; }
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #include <ncurses.h>
4080 _ACEOF
4081 if { (ac_try="$ac_cpp conftest.$ac_ext"
4082 case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev/null && {
4094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 }; then
4097 ac_header_preproc=yes
4098 else
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102 ac_header_preproc=no
4103 fi
4104
4105 rm -f conftest.err conftest.$ac_ext
4106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4107 echo "${ECHO_T}$ac_header_preproc" >&6; }
4108
4109 # So? What about this header?
4110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4111 yes:no: )
4112 { echo "$as_me:$LINENO: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5
4113 echo "$as_me: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4114 { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the compiler's result" >&5
4115 echo "$as_me: WARNING: ncurses.h: proceeding with the compiler's result" >&2;}
4116 ac_header_preproc=yes
4117 ;;
4118 no:yes:* )
4119 { echo "$as_me:$LINENO: WARNING: ncurses.h: present but cannot be compiled" >&5
4120 echo "$as_me: WARNING: ncurses.h: present but cannot be compiled" >&2;}
4121 { echo "$as_me:$LINENO: WARNING: ncurses.h: check for missing prerequisite headers?" >&5
4122 echo "$as_me: WARNING: ncurses.h: check for missing prerequisite headers?" >&2;}
4123 { echo "$as_me:$LINENO: WARNING: ncurses.h: see the Autoconf documentation" >&5
4124 echo "$as_me: WARNING: ncurses.h: see the Autoconf documentation" >&2;}
4125 { echo "$as_me:$LINENO: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&5
4126 echo "$as_me: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;}
4127 { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5
4128 echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;}
4129 { echo "$as_me:$LINENO: WARNING: ncurses.h: in the future, the compiler will take precedence" >&5
4130 echo "$as_me: WARNING: ncurses.h: in the future, the compiler will take precedence" >&2;}
4131
4132 ;;
4133 esac
4134 { echo "$as_me:$LINENO: checking for ncurses.h" >&5
4135 echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6; }
4136 if test "${ac_cv_header_ncurses_h+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 ac_cv_header_ncurses_h=$ac_header_preproc
4140 fi
4141 { echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5
4142 echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6; }
4143
4144 fi
4145 if test $ac_cv_header_ncurses_h = yes; then
4146 :
4147 else
4148 { { echo "$as_me:$LINENO: error: $ERR" >&5
4149 echo "$as_me: error: $ERR" >&2;}
4150 { (exit 1); exit 1; }; }
4151 fi
4152
4153
4154
4155 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
4156 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
4157 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 ac_check_lib_save_LIBS=$LIBS
4161 LIBS="-lncurses $LIBS"
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168
4169 /* Override any GCC internal prototype to avoid an error.
4170 Use char because int might match the return type of a GCC
4171 builtin and then its argument prototype would still apply. */
4172 #ifdef __cplusplus
4173 extern "C"
4174 #endif
4175 char initscr ();
4176 int
4177 main ()
4178 {
4179 return initscr ();
4180 ;
4181 return 0;
4182 }
4183 _ACEOF
4184 rm -f conftest.$ac_objext conftest$ac_exeext
4185 if { (ac_try="$ac_link"
4186 case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_link") 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && {
4198 test -z "$ac_c_werror_flag" ||
4199 test ! -s conftest.err
4200 } && test -s conftest$ac_exeext &&
4201 $as_test_x conftest$ac_exeext; then
4202 ac_cv_lib_ncurses_initscr=yes
4203 else
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 ac_cv_lib_ncurses_initscr=no
4208 fi
4209
4210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4211 conftest$ac_exeext conftest.$ac_ext
4212 LIBS=$ac_check_lib_save_LIBS
4213 fi
4214 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4215 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
4216 if test $ac_cv_lib_ncurses_initscr = yes; then
4217 cat >>confdefs.h <<_ACEOF
4218 #define HAVE_LIBNCURSES 1
4219 _ACEOF
4220
4221 LIBS="-lncurses $LIBS"
4222
4223 fi
4224
4225 ac_config_files="$ac_config_files Makefile"
4226
4227 cat >confcache <<\_ACEOF
4228 # This file is a shell script that caches the results of configure
4229 # tests run on this system so they can be shared between configure
4230 # scripts and configure runs, see configure's option --config-cache.
4231 # It is not useful on other systems. If it contains results you don't
4232 # want to keep, you may remove or edit it.
4233 #
4234 # config.status only pays attention to the cache file if you give it
4235 # the --recheck option to rerun configure.
4236 #
4237 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4238 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4239 # following values.
4240
4241 _ACEOF
4242
4243 # The following way of writing the cache mishandles newlines in values,
4244 # but we know of no workaround that is simple, portable, and efficient.
4245 # So, we kill variables containing newlines.
4246 # Ultrix sh set writes to stderr and can't be redirected directly,
4247 # and sets the high bit in the cache file unless we assign to the vars.
4248 (
4249 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4250 eval ac_val=\$$ac_var
4251 case $ac_val in #(
4252 *${as_nl}*)
4253 case $ac_var in #(
4254 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4255 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4256 esac
4257 case $ac_var in #(
4258 _ | IFS | as_nl) ;; #(
4259 *) $as_unset $ac_var ;;
4260 esac ;;
4261 esac
4262 done
4263
4264 (set) 2>&1 |
4265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4266 *${as_nl}ac_space=\ *)
4267 # `set' does not quote correctly, so add quotes (double-quote
4268 # substitution turns \\\\ into \\, and sed turns \\ into \).
4269 sed -n \
4270 "s/'/'\\\\''/g;
4271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4272 ;; #(
4273 *)
4274 # `set' quotes correctly as required by POSIX, so do not add quotes.
4275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4276 ;;
4277 esac |
4278 sort
4279 ) |
4280 sed '
4281 /^ac_cv_env_/b end
4282 t clear
4283 :clear
4284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4285 t end
4286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4287 :end' >>confcache
4288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4289 if test -w "$cache_file"; then
4290 test "x$cache_file" != "x/dev/null" &&
4291 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4292 echo "$as_me: updating cache $cache_file" >&6;}
4293 cat confcache >$cache_file
4294 else
4295 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4296 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4297 fi
4298 fi
4299 rm -f confcache
4300
4301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4302 # Let make expand exec_prefix.
4303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4304
4305 # Transform confdefs.h into DEFS.
4306 # Protect against shell expansion while executing Makefile rules.
4307 # Protect against Makefile macro expansion.
4308 #
4309 # If the first sed substitution is executed (which looks for macros that
4310 # take arguments), then branch to the quote section. Otherwise,
4311 # look for a macro that doesn't take arguments.
4312 ac_script='
4313 t clear
4314 :clear
4315 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4316 t quote
4317 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4318 t quote
4319 b any
4320 :quote
4321 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4322 s/\[/\\&/g
4323 s/\]/\\&/g
4324 s/\$/$$/g
4325 H
4326 :any
4327 ${
4328 g
4329 s/^\n//
4330 s/\n/ /g
4331 p
4332 }
4333 '
4334 DEFS=`sed -n "$ac_script" confdefs.h`
4335
4336
4337 ac_libobjs=
4338 ac_ltlibobjs=
4339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4340 # 1. Remove the extension, and $U if already installed.
4341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4342 ac_i=`echo "$ac_i" | sed "$ac_script"`
4343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4344 # will be set to the directory where LIBOBJS objects are built.
4345 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4346 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4347 done
4348 LIBOBJS=$ac_libobjs
4349
4350 LTLIBOBJS=$ac_ltlibobjs
4351
4352
4353 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4354 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4355 Usually this means the macro was only invoked conditionally." >&5
4356 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4357 Usually this means the macro was only invoked conditionally." >&2;}
4358 { (exit 1); exit 1; }; }
4359 fi
4360 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4361 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4362 Usually this means the macro was only invoked conditionally." >&5
4363 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4364 Usually this means the macro was only invoked conditionally." >&2;}
4365 { (exit 1); exit 1; }; }
4366 fi
4367
4368 : ${CONFIG_STATUS=./config.status}
4369 ac_clean_files_save=$ac_clean_files
4370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4373 cat >$CONFIG_STATUS <<_ACEOF
4374 #! $SHELL
4375 # Generated by $as_me.
4376 # Run this file to recreate the current configuration.
4377 # Compiler output produced by configure, useful for debugging
4378 # configure, is in config.log if it exists.
4379
4380 debug=false
4381 ac_cs_recheck=false
4382 ac_cs_silent=false
4383 SHELL=\${CONFIG_SHELL-$SHELL}
4384 _ACEOF
4385
4386 cat >>$CONFIG_STATUS <<\_ACEOF
4387 ## --------------------- ##
4388 ## M4sh Initialization. ##
4389 ## --------------------- ##
4390
4391 # Be more Bourne compatible
4392 DUALCASE=1; export DUALCASE # for MKS sh
4393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4394 emulate sh
4395 NULLCMD=:
4396 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4397 # is contrary to our usage. Disable this feature.
4398 alias -g '${1+"$@"}'='"$@"'
4399 setopt NO_GLOB_SUBST
4400 else
4401 case `(set -o) 2>/dev/null` in
4402 *posix*) set -o posix ;;
4403 esac
4404
4405 fi
4406
4407
4408
4409
4410 # PATH needs CR
4411 # Avoid depending upon Character Ranges.
4412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4415 as_cr_digits='0123456789'
4416 as_cr_alnum=$as_cr_Letters$as_cr_digits
4417
4418 # The user is always right.
4419 if test "${PATH_SEPARATOR+set}" != set; then
4420 echo "#! /bin/sh" >conf$$.sh
4421 echo "exit 0" >>conf$$.sh
4422 chmod +x conf$$.sh
4423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4424 PATH_SEPARATOR=';'
4425 else
4426 PATH_SEPARATOR=:
4427 fi
4428 rm -f conf$$.sh
4429 fi
4430
4431 # Support unset when possible.
4432 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4433 as_unset=unset
4434 else
4435 as_unset=false
4436 fi
4437
4438
4439 # IFS
4440 # We need space, tab and new line, in precisely that order. Quoting is
4441 # there to prevent editors from complaining about space-tab.
4442 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4443 # splitting by setting IFS to empty value.)
4444 as_nl='
4445 '
4446 IFS=" "" $as_nl"
4447
4448 # Find who we are. Look in the path if we contain no directory separator.
4449 case $0 in
4450 *[\\/]* ) as_myself=$0 ;;
4451 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4457 done
4458 IFS=$as_save_IFS
4459
4460 ;;
4461 esac
4462 # We did not find ourselves, most probably we were run as `sh COMMAND'
4463 # in which case we are not to be found in the path.
4464 if test "x$as_myself" = x; then
4465 as_myself=$0
4466 fi
4467 if test ! -f "$as_myself"; then
4468 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4469 { (exit 1); exit 1; }
4470 fi
4471
4472 # Work around bugs in pre-3.0 UWIN ksh.
4473 for as_var in ENV MAIL MAILPATH
4474 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4475 done
4476 PS1='$ '
4477 PS2='> '
4478 PS4='+ '
4479
4480 # NLS nuisances.
4481 for as_var in \
4482 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4483 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4484 LC_TELEPHONE LC_TIME
4485 do
4486 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4487 eval $as_var=C; export $as_var
4488 else
4489 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4490 fi
4491 done
4492
4493 # Required to use basename.
4494 if expr a : '\(a\)' >/dev/null 2>&1 &&
4495 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4496 as_expr=expr
4497 else
4498 as_expr=false
4499 fi
4500
4501 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4502 as_basename=basename
4503 else
4504 as_basename=false
4505 fi
4506
4507
4508 # Name of the executable.
4509 as_me=`$as_basename -- "$0" ||
4510 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4511 X"$0" : 'X\(//\)$' \| \
4512 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4513 echo X/"$0" |
4514 sed '/^.*\/\([^/][^/]*\)\/*$/{
4515 s//\1/
4516 q
4517 }
4518 /^X\/\(\/\/\)$/{
4519 s//\1/
4520 q
4521 }
4522 /^X\/\(\/\).*/{
4523 s//\1/
4524 q
4525 }
4526 s/.*/./; q'`
4527
4528 # CDPATH.
4529 $as_unset CDPATH
4530
4531
4532
4533 as_lineno_1=$LINENO
4534 as_lineno_2=$LINENO
4535 test "x$as_lineno_1" != "x$as_lineno_2" &&
4536 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4537
4538 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4539 # uniformly replaced by the line number. The first 'sed' inserts a
4540 # line-number line after each line using $LINENO; the second 'sed'
4541 # does the real work. The second script uses 'N' to pair each
4542 # line-number line with the line containing $LINENO, and appends
4543 # trailing '-' during substitution so that $LINENO is not a special
4544 # case at line end.
4545 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4546 # scripts with optimization help from Paolo Bonzini. Blame Lee
4547 # E. McMahon (1931-1989) for sed's syntax. :-)
4548 sed -n '
4549 p
4550 /[$]LINENO/=
4551 ' <$as_myself |
4552 sed '
4553 s/[$]LINENO.*/&-/
4554 t lineno
4555 b
4556 :lineno
4557 N
4558 :loop
4559 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4560 t loop
4561 s/-\n.*//
4562 ' >$as_me.lineno &&
4563 chmod +x "$as_me.lineno" ||
4564 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4565 { (exit 1); exit 1; }; }
4566
4567 # Don't try to exec as it changes $[0], causing all sort of problems
4568 # (the dirname of $[0] is not the place where we might find the
4569 # original and so on. Autoconf is especially sensitive to this).
4570 . "./$as_me.lineno"
4571 # Exit status is that of the last command.
4572 exit
4573 }
4574
4575
4576 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4577 as_dirname=dirname
4578 else
4579 as_dirname=false
4580 fi
4581
4582 ECHO_C= ECHO_N= ECHO_T=
4583 case `echo -n x` in
4584 -n*)
4585 case `echo 'x\c'` in
4586 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4587 *) ECHO_C='\c';;
4588 esac;;
4589 *)
4590 ECHO_N='-n';;
4591 esac
4592
4593 if expr a : '\(a\)' >/dev/null 2>&1 &&
4594 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4595 as_expr=expr
4596 else
4597 as_expr=false
4598 fi
4599
4600 rm -f conf$$ conf$$.exe conf$$.file
4601 if test -d conf$$.dir; then
4602 rm -f conf$$.dir/conf$$.file
4603 else
4604 rm -f conf$$.dir
4605 mkdir conf$$.dir
4606 fi
4607 echo >conf$$.file
4608 if ln -s conf$$.file conf$$ 2>/dev/null; then
4609 as_ln_s='ln -s'
4610 # ... but there are two gotchas:
4611 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4612 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4613 # In both cases, we have to default to `cp -p'.
4614 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4615 as_ln_s='cp -p'
4616 elif ln conf$$.file conf$$ 2>/dev/null; then
4617 as_ln_s=ln
4618 else
4619 as_ln_s='cp -p'
4620 fi
4621 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4622 rmdir conf$$.dir 2>/dev/null
4623
4624 if mkdir -p . 2>/dev/null; then
4625 as_mkdir_p=:
4626 else
4627 test -d ./-p && rmdir ./-p
4628 as_mkdir_p=false
4629 fi
4630
4631 if test -x / >/dev/null 2>&1; then
4632 as_test_x='test -x'
4633 else
4634 if ls -dL / >/dev/null 2>&1; then
4635 as_ls_L_option=L
4636 else
4637 as_ls_L_option=
4638 fi
4639 as_test_x='
4640 eval sh -c '\''
4641 if test -d "$1"; then
4642 test -d "$1/.";
4643 else
4644 case $1 in
4645 -*)set "./$1";;
4646 esac;
4647 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4648 ???[sx]*):;;*)false;;esac;fi
4649 '\'' sh
4650 '
4651 fi
4652 as_executable_p=$as_test_x
4653
4654 # Sed expression to map a string onto a valid CPP name.
4655 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4656
4657 # Sed expression to map a string onto a valid variable name.
4658 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4659
4660
4661 exec 6>&1
4662
4663 # Save the log message, to keep $[0] and so on meaningful, and to
4664 # report actual input values of CONFIG_FILES etc. instead of their
4665 # values after options handling.
4666 ac_log="
4667 This file was extended by $as_me, which was
4668 generated by GNU Autoconf 2.61. Invocation command line was
4669
4670 CONFIG_FILES = $CONFIG_FILES
4671 CONFIG_HEADERS = $CONFIG_HEADERS
4672 CONFIG_LINKS = $CONFIG_LINKS
4673 CONFIG_COMMANDS = $CONFIG_COMMANDS
4674 $ $0 $@
4675
4676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4677 "
4678
4679 _ACEOF
4680
4681 cat >>$CONFIG_STATUS <<_ACEOF
4682 # Files that config.status was made for.
4683 config_files="$ac_config_files"
4684 config_commands="$ac_config_commands"
4685
4686 _ACEOF
4687
4688 cat >>$CONFIG_STATUS <<\_ACEOF
4689 ac_cs_usage="\
4690 \`$as_me' instantiates files from templates according to the
4691 current configuration.
4692
4693 Usage: $0 [OPTIONS] [FILE]...
4694
4695 -h, --help print this help, then exit
4696 -V, --version print version number and configuration settings, then exit
4697 -q, --quiet do not print progress messages
4698 -d, --debug don't remove temporary files
4699 --recheck update $as_me by reconfiguring in the same conditions
4700 --file=FILE[:TEMPLATE]
4701 instantiate the configuration file FILE
4702
4703 Configuration files:
4704 $config_files
4705
4706 Configuration commands:
4707 $config_commands
4708
4709 Report bugs to <[email protected]>."
4710
4711 _ACEOF
4712 cat >>$CONFIG_STATUS <<_ACEOF
4713 ac_cs_version="\\
4714 config.status
4715 configured by $0, generated by GNU Autoconf 2.61,
4716 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4717
4718 Copyright (C) 2006 Free Software Foundation, Inc.
4719 This config.status script is free software; the Free Software Foundation
4720 gives unlimited permission to copy, distribute and modify it."
4721
4722 ac_pwd='$ac_pwd'
4723 srcdir='$srcdir'
4724 INSTALL='$INSTALL'
4725 MKDIR_P='$MKDIR_P'
4726 _ACEOF
4727
4728 cat >>$CONFIG_STATUS <<\_ACEOF
4729 # If no file are specified by the user, then we need to provide default
4730 # value. By we need to know if files were specified by the user.
4731 ac_need_defaults=:
4732 while test $# != 0
4733 do
4734 case $1 in
4735 --*=*)
4736 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4737 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4738 ac_shift=:
4739 ;;
4740 *)
4741 ac_option=$1
4742 ac_optarg=$2
4743 ac_shift=shift
4744 ;;
4745 esac
4746
4747 case $ac_option in
4748 # Handling of the options.
4749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4750 ac_cs_recheck=: ;;
4751 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4752 echo "$ac_cs_version"; exit ;;
4753 --debug | --debu | --deb | --de | --d | -d )
4754 debug=: ;;
4755 --file | --fil | --fi | --f )
4756 $ac_shift
4757 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4758 ac_need_defaults=false;;
4759 --he | --h | --help | --hel | -h )
4760 echo "$ac_cs_usage"; exit ;;
4761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4762 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4763 ac_cs_silent=: ;;
4764
4765 # This is an error.
4766 -*) { echo "$as_me: error: unrecognized option: $1
4767 Try \`$0 --help' for more information." >&2
4768 { (exit 1); exit 1; }; } ;;
4769
4770 *) ac_config_targets="$ac_config_targets $1"
4771 ac_need_defaults=false ;;
4772
4773 esac
4774 shift
4775 done
4776
4777 ac_configure_extra_args=
4778
4779 if $ac_cs_silent; then
4780 exec 6>/dev/null
4781 ac_configure_extra_args="$ac_configure_extra_args --silent"
4782 fi
4783
4784 _ACEOF
4785 cat >>$CONFIG_STATUS <<_ACEOF
4786 if \$ac_cs_recheck; then
4787 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4788 CONFIG_SHELL=$SHELL
4789 export CONFIG_SHELL
4790 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4791 fi
4792
4793 _ACEOF
4794 cat >>$CONFIG_STATUS <<\_ACEOF
4795 exec 5>>config.log
4796 {
4797 echo
4798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4799 ## Running $as_me. ##
4800 _ASBOX
4801 echo "$ac_log"
4802 } >&5
4803
4804 _ACEOF
4805 cat >>$CONFIG_STATUS <<_ACEOF
4806 #
4807 # INIT-COMMANDS
4808 #
4809 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4810
4811 _ACEOF
4812
4813 cat >>$CONFIG_STATUS <<\_ACEOF
4814
4815 # Handling of arguments.
4816 for ac_config_target in $ac_config_targets
4817 do
4818 case $ac_config_target in
4819 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4820 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4821
4822 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4823 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4824 { (exit 1); exit 1; }; };;
4825 esac
4826 done
4827
4828
4829 # If the user did not use the arguments to specify the items to instantiate,
4830 # then the envvar interface is used. Set only those that are not.
4831 # We use the long form for the default assignment because of an extremely
4832 # bizarre bug on SunOS 4.1.3.
4833 if $ac_need_defaults; then
4834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4835 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4836 fi
4837
4838 # Have a temporary directory for convenience. Make it in the build tree
4839 # simply because there is no reason against having it here, and in addition,
4840 # creating and moving files from /tmp can sometimes cause problems.
4841 # Hook for its removal unless debugging.
4842 # Note that there is a small window in which the directory will not be cleaned:
4843 # after its creation but before its name has been assigned to `$tmp'.
4844 $debug ||
4845 {
4846 tmp=
4847 trap 'exit_status=$?
4848 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4849 ' 0
4850 trap '{ (exit 1); exit 1; }' 1 2 13 15
4851 }
4852 # Create a (secure) tmp directory for tmp files.
4853
4854 {
4855 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4856 test -n "$tmp" && test -d "$tmp"
4857 } ||
4858 {
4859 tmp=./conf$$-$RANDOM
4860 (umask 077 && mkdir "$tmp")
4861 } ||
4862 {
4863 echo "$me: cannot create a temporary directory in ." >&2
4864 { (exit 1); exit 1; }
4865 }
4866
4867 #
4868 # Set up the sed scripts for CONFIG_FILES section.
4869 #
4870
4871 # No need to generate the scripts if there are no CONFIG_FILES.
4872 # This happens for instance when ./config.status config.h
4873 if test -n "$CONFIG_FILES"; then
4874
4875 _ACEOF
4876
4877
4878
4879 ac_delim='%!_!# '
4880 for ac_last_try in false false false false false :; do
4881 cat >conf$$subs.sed <<_ACEOF
4882 SHELL!$SHELL$ac_delim
4883 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4884 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4885 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4886 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4887 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4888 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4889 exec_prefix!$exec_prefix$ac_delim
4890 prefix!$prefix$ac_delim
4891 program_transform_name!$program_transform_name$ac_delim
4892 bindir!$bindir$ac_delim
4893 sbindir!$sbindir$ac_delim
4894 libexecdir!$libexecdir$ac_delim
4895 datarootdir!$datarootdir$ac_delim
4896 datadir!$datadir$ac_delim
4897 sysconfdir!$sysconfdir$ac_delim
4898 sharedstatedir!$sharedstatedir$ac_delim
4899 localstatedir!$localstatedir$ac_delim
4900 includedir!$includedir$ac_delim
4901 oldincludedir!$oldincludedir$ac_delim
4902 docdir!$docdir$ac_delim
4903 infodir!$infodir$ac_delim
4904 htmldir!$htmldir$ac_delim
4905 dvidir!$dvidir$ac_delim
4906 pdfdir!$pdfdir$ac_delim
4907 psdir!$psdir$ac_delim
4908 libdir!$libdir$ac_delim
4909 localedir!$localedir$ac_delim
4910 mandir!$mandir$ac_delim
4911 DEFS!$DEFS$ac_delim
4912 ECHO_C!$ECHO_C$ac_delim
4913 ECHO_N!$ECHO_N$ac_delim
4914 ECHO_T!$ECHO_T$ac_delim
4915 LIBS!$LIBS$ac_delim
4916 build_alias!$build_alias$ac_delim
4917 host_alias!$host_alias$ac_delim
4918 target_alias!$target_alias$ac_delim
4919 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
4920 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
4921 INSTALL_DATA!$INSTALL_DATA$ac_delim
4922 am__isrc!$am__isrc$ac_delim
4923 CYGPATH_W!$CYGPATH_W$ac_delim
4924 PACKAGE!$PACKAGE$ac_delim
4925 VERSION!$VERSION$ac_delim
4926 ACLOCAL!$ACLOCAL$ac_delim
4927 AUTOCONF!$AUTOCONF$ac_delim
4928 AUTOMAKE!$AUTOMAKE$ac_delim
4929 AUTOHEADER!$AUTOHEADER$ac_delim
4930 MAKEINFO!$MAKEINFO$ac_delim
4931 install_sh!$install_sh$ac_delim
4932 STRIP!$STRIP$ac_delim
4933 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
4934 mkdir_p!$mkdir_p$ac_delim
4935 AWK!$AWK$ac_delim
4936 SET_MAKE!$SET_MAKE$ac_delim
4937 am__leading_dot!$am__leading_dot$ac_delim
4938 AMTAR!$AMTAR$ac_delim
4939 am__tar!$am__tar$ac_delim
4940 am__untar!$am__untar$ac_delim
4941 CC!$CC$ac_delim
4942 CFLAGS!$CFLAGS$ac_delim
4943 LDFLAGS!$LDFLAGS$ac_delim
4944 CPPFLAGS!$CPPFLAGS$ac_delim
4945 ac_ct_CC!$ac_ct_CC$ac_delim
4946 EXEEXT!$EXEEXT$ac_delim
4947 OBJEXT!$OBJEXT$ac_delim
4948 DEPDIR!$DEPDIR$ac_delim
4949 am__include!$am__include$ac_delim
4950 am__quote!$am__quote$ac_delim
4951 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
4952 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
4953 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
4954 CCDEPMODE!$CCDEPMODE$ac_delim
4955 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
4956 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
4957 CPP!$CPP$ac_delim
4958 GREP!$GREP$ac_delim
4959 EGREP!$EGREP$ac_delim
4960 LIBOBJS!$LIBOBJS$ac_delim
4961 LTLIBOBJS!$LTLIBOBJS$ac_delim
4962 _ACEOF
4963
4964 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
4965 break
4966 elif $ac_last_try; then
4967 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4968 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4969 { (exit 1); exit 1; }; }
4970 else
4971 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4972 fi
4973 done
4974
4975 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4976 if test -n "$ac_eof"; then
4977 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4978 ac_eof=`expr $ac_eof + 1`
4979 fi
4980
4981 cat >>$CONFIG_STATUS <<_ACEOF
4982 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4984 _ACEOF
4985 sed '
4986 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4987 s/^/s,@/; s/!/@,|#_!!_#|/
4988 :n
4989 t n
4990 s/'"$ac_delim"'$/,g/; t
4991 s/$/\\/; p
4992 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4993 ' >>$CONFIG_STATUS <conf$$subs.sed
4994 rm -f conf$$subs.sed
4995 cat >>$CONFIG_STATUS <<_ACEOF
4996 :end
4997 s/|#_!!_#|//g
4998 CEOF$ac_eof
4999 _ACEOF
5000
5001
5002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5004 # trailing colons and then remove the whole line if VPATH becomes empty
5005 # (actually we leave an empty line to preserve line numbers).
5006 if test "x$srcdir" = x.; then
5007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5008 s/:*\$(srcdir):*/:/
5009 s/:*\${srcdir}:*/:/
5010 s/:*@srcdir@:*/:/
5011 s/^\([^=]*=[ ]*\):*/\1/
5012 s/:*$//
5013 s/^[^=]*=[ ]*$//
5014 }'
5015 fi
5016
5017 cat >>$CONFIG_STATUS <<\_ACEOF
5018 fi # test -n "$CONFIG_FILES"
5019
5020
5021 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
5022 do
5023 case $ac_tag in
5024 :[FHLC]) ac_mode=$ac_tag; continue;;
5025 esac
5026 case $ac_mode$ac_tag in
5027 :[FHL]*:*);;
5028 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5029 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5030 { (exit 1); exit 1; }; };;
5031 :[FH]-) ac_tag=-:-;;
5032 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5033 esac
5034 ac_save_IFS=$IFS
5035 IFS=:
5036 set x $ac_tag
5037 IFS=$ac_save_IFS
5038 shift
5039 ac_file=$1
5040 shift
5041
5042 case $ac_mode in
5043 :L) ac_source=$1;;
5044 :[FH])
5045 ac_file_inputs=
5046 for ac_f
5047 do
5048 case $ac_f in
5049 -) ac_f="$tmp/stdin";;
5050 *) # Look for the file first in the build tree, then in the source tree
5051 # (if the path is not absolute). The absolute path cannot be DOS-style,
5052 # because $ac_f cannot contain `:'.
5053 test -f "$ac_f" ||
5054 case $ac_f in
5055 [\\/$]*) false;;
5056 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5057 esac ||
5058 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5059 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5060 { (exit 1); exit 1; }; };;
5061 esac
5062 ac_file_inputs="$ac_file_inputs $ac_f"
5063 done
5064
5065 # Let's still pretend it is `configure' which instantiates (i.e., don't
5066 # use $as_me), people would be surprised to read:
5067 # /* config.h. Generated by config.status. */
5068 configure_input="Generated from "`IFS=:
5069 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5070 if test x"$ac_file" != x-; then
5071 configure_input="$ac_file. $configure_input"
5072 { echo "$as_me:$LINENO: creating $ac_file" >&5
5073 echo "$as_me: creating $ac_file" >&6;}
5074 fi
5075
5076 case $ac_tag in
5077 *:-:* | *:-) cat >"$tmp/stdin";;
5078 esac
5079 ;;
5080 esac
5081
5082 ac_dir=`$as_dirname -- "$ac_file" ||
5083 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5084 X"$ac_file" : 'X\(//\)[^/]' \| \
5085 X"$ac_file" : 'X\(//\)$' \| \
5086 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5087 echo X"$ac_file" |
5088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5089 s//\1/
5090 q
5091 }
5092 /^X\(\/\/\)[^/].*/{
5093 s//\1/
5094 q
5095 }
5096 /^X\(\/\/\)$/{
5097 s//\1/
5098 q
5099 }
5100 /^X\(\/\).*/{
5101 s//\1/
5102 q
5103 }
5104 s/.*/./; q'`
5105 { as_dir="$ac_dir"
5106 case $as_dir in #(
5107 -*) as_dir=./$as_dir;;
5108 esac
5109 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5110 as_dirs=
5111 while :; do
5112 case $as_dir in #(
5113 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5114 *) as_qdir=$as_dir;;
5115 esac
5116 as_dirs="'$as_qdir' $as_dirs"
5117 as_dir=`$as_dirname -- "$as_dir" ||
5118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5119 X"$as_dir" : 'X\(//\)[^/]' \| \
5120 X"$as_dir" : 'X\(//\)$' \| \
5121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5122 echo X"$as_dir" |
5123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5124 s//\1/
5125 q
5126 }
5127 /^X\(\/\/\)[^/].*/{
5128 s//\1/
5129 q
5130 }
5131 /^X\(\/\/\)$/{
5132 s//\1/
5133 q
5134 }
5135 /^X\(\/\).*/{
5136 s//\1/
5137 q
5138 }
5139 s/.*/./; q'`
5140 test -d "$as_dir" && break
5141 done
5142 test -z "$as_dirs" || eval "mkdir $as_dirs"
5143 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5144 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5145 { (exit 1); exit 1; }; }; }
5146 ac_builddir=.
5147
5148 case "$ac_dir" in
5149 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5150 *)
5151 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5152 # A ".." for each directory in $ac_dir_suffix.
5153 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5154 case $ac_top_builddir_sub in
5155 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5156 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5157 esac ;;
5158 esac
5159 ac_abs_top_builddir=$ac_pwd
5160 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5161 # for backward compatibility:
5162 ac_top_builddir=$ac_top_build_prefix
5163
5164 case $srcdir in
5165 .) # We are building in place.
5166 ac_srcdir=.
5167 ac_top_srcdir=$ac_top_builddir_sub
5168 ac_abs_top_srcdir=$ac_pwd ;;
5169 [\\/]* | ?:[\\/]* ) # Absolute name.
5170 ac_srcdir=$srcdir$ac_dir_suffix;
5171 ac_top_srcdir=$srcdir
5172 ac_abs_top_srcdir=$srcdir ;;
5173 *) # Relative name.
5174 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5175 ac_top_srcdir=$ac_top_build_prefix$srcdir
5176 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5177 esac
5178 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5179
5180
5181 case $ac_mode in
5182 :F)
5183 #
5184 # CONFIG_FILE
5185 #
5186
5187 case $INSTALL in
5188 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5189 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5190 esac
5191 ac_MKDIR_P=$MKDIR_P
5192 case $MKDIR_P in
5193 [\\/$]* | ?:[\\/]* ) ;;
5194 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5195 esac
5196 _ACEOF
5197
5198 cat >>$CONFIG_STATUS <<\_ACEOF
5199 # If the template does not know about datarootdir, expand it.
5200 # FIXME: This hack should be removed a few years after 2.60.
5201 ac_datarootdir_hack=; ac_datarootdir_seen=
5202
5203 case `sed -n '/datarootdir/ {
5204 p
5205 q
5206 }
5207 /@datadir@/p
5208 /@docdir@/p
5209 /@infodir@/p
5210 /@localedir@/p
5211 /@mandir@/p
5212 ' $ac_file_inputs` in
5213 *datarootdir*) ac_datarootdir_seen=yes;;
5214 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5215 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5216 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5217 _ACEOF
5218 cat >>$CONFIG_STATUS <<_ACEOF
5219 ac_datarootdir_hack='
5220 s&@datadir@&$datadir&g
5221 s&@docdir@&$docdir&g
5222 s&@infodir@&$infodir&g
5223 s&@localedir@&$localedir&g
5224 s&@mandir@&$mandir&g
5225 s&\\\${datarootdir}&$datarootdir&g' ;;
5226 esac
5227 _ACEOF
5228
5229 # Neutralize VPATH when `$srcdir' = `.'.
5230 # Shell code in configure.ac might set extrasub.
5231 # FIXME: do we really want to maintain this feature?
5232 cat >>$CONFIG_STATUS <<_ACEOF
5233 sed "$ac_vpsub
5234 $extrasub
5235 _ACEOF
5236 cat >>$CONFIG_STATUS <<\_ACEOF
5237 :t
5238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5239 s&@configure_input@&$configure_input&;t t
5240 s&@top_builddir@&$ac_top_builddir_sub&;t t
5241 s&@srcdir@&$ac_srcdir&;t t
5242 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5243 s&@top_srcdir@&$ac_top_srcdir&;t t
5244 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5245 s&@builddir@&$ac_builddir&;t t
5246 s&@abs_builddir@&$ac_abs_builddir&;t t
5247 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5248 s&@INSTALL@&$ac_INSTALL&;t t
5249 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5250 $ac_datarootdir_hack
5251 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5252
5253 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5254 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5255 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5256 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5257 which seems to be undefined. Please make sure it is defined." >&5
5258 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5259 which seems to be undefined. Please make sure it is defined." >&2;}
5260
5261 rm -f "$tmp/stdin"
5262 case $ac_file in
5263 -) cat "$tmp/out"; rm -f "$tmp/out";;
5264 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5265 esac
5266 ;;
5267
5268
5269 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
5270 echo "$as_me: executing $ac_file commands" >&6;}
5271 ;;
5272 esac
5273
5274
5275 case $ac_file$ac_mode in
5276 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5277 # Strip MF so we end up with the name of the file.
5278 mf=`echo "$mf" | sed -e 's/:.*$//'`
5279 # Check whether this is an Automake generated Makefile or not.
5280 # We used to match only the files named `Makefile.in', but
5281 # some people rename them; so instead we look at the file content.
5282 # Grep'ing the first line is not enough: some people post-process
5283 # each Makefile.in and add a new line on top of each file to say so.
5284 # Grep'ing the whole file is not good either: AIX grep has a line
5285 # limit of 2048, but all sed's we know have understand at least 4000.
5286 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5287 dirpart=`$as_dirname -- "$mf" ||
5288 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5289 X"$mf" : 'X\(//\)[^/]' \| \
5290 X"$mf" : 'X\(//\)$' \| \
5291 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5292 echo X"$mf" |
5293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5294 s//\1/
5295 q
5296 }
5297 /^X\(\/\/\)[^/].*/{
5298 s//\1/
5299 q
5300 }
5301 /^X\(\/\/\)$/{
5302 s//\1/
5303 q
5304 }
5305 /^X\(\/\).*/{
5306 s//\1/
5307 q
5308 }
5309 s/.*/./; q'`
5310 else
5311 continue
5312 fi
5313 # Extract the definition of DEPDIR, am__include, and am__quote
5314 # from the Makefile without running `make'.
5315 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5316 test -z "$DEPDIR" && continue
5317 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5318 test -z "am__include" && continue
5319 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5320 # When using ansi2knr, U may be empty or an underscore; expand it
5321 U=`sed -n 's/^U = //p' < "$mf"`
5322 # Find all dependency output files, they are included files with
5323 # $(DEPDIR) in their names. We invoke sed twice because it is the
5324 # simplest approach to changing $(DEPDIR) to its actual value in the
5325 # expansion.
5326 for file in `sed -n "
5327 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5328 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5329 # Make sure the directory exists.
5330 test -f "$dirpart/$file" && continue
5331 fdir=`$as_dirname -- "$file" ||
5332 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5333 X"$file" : 'X\(//\)[^/]' \| \
5334 X"$file" : 'X\(//\)$' \| \
5335 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5336 echo X"$file" |
5337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5338 s//\1/
5339 q
5340 }
5341 /^X\(\/\/\)[^/].*/{
5342 s//\1/
5343 q
5344 }
5345 /^X\(\/\/\)$/{
5346 s//\1/
5347 q
5348 }
5349 /^X\(\/\).*/{
5350 s//\1/
5351 q
5352 }
5353 s/.*/./; q'`
5354 { as_dir=$dirpart/$fdir
5355 case $as_dir in #(
5356 -*) as_dir=./$as_dir;;
5357 esac
5358 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5359 as_dirs=
5360 while :; do
5361 case $as_dir in #(
5362 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5363 *) as_qdir=$as_dir;;
5364 esac
5365 as_dirs="'$as_qdir' $as_dirs"
5366 as_dir=`$as_dirname -- "$as_dir" ||
5367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5368 X"$as_dir" : 'X\(//\)[^/]' \| \
5369 X"$as_dir" : 'X\(//\)$' \| \
5370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5371 echo X"$as_dir" |
5372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5373 s//\1/
5374 q
5375 }
5376 /^X\(\/\/\)[^/].*/{
5377 s//\1/
5378 q
5379 }
5380 /^X\(\/\/\)$/{
5381 s//\1/
5382 q
5383 }
5384 /^X\(\/\).*/{
5385 s//\1/
5386 q
5387 }
5388 s/.*/./; q'`
5389 test -d "$as_dir" && break
5390 done
5391 test -z "$as_dirs" || eval "mkdir $as_dirs"
5392 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5393 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5394 { (exit 1); exit 1; }; }; }
5395 # echo "creating $dirpart/$file"
5396 echo '# dummy' > "$dirpart/$file"
5397 done
5398 done
5399 ;;
5400
5401 esac
5402 done # for ac_tag
5403
5404
5405 { (exit 0); exit 0; }
5406 _ACEOF
5407 chmod +x $CONFIG_STATUS
5408 ac_clean_files=$ac_clean_files_save
5409
5410
5411 # configure is writing to config.log, and then calls config.status.
5412 # config.status does its own redirection, appending to config.log.
5413 # Unfortunately, on DOS this fails, as config.log is still kept open
5414 # by configure, so config.status won't be able to write to it; its
5415 # output is simply discarded. So we exec the FD to /dev/null,
5416 # effectively closing config.log, so it can be properly (re)opened and
5417 # appended to by config.status. When coming back to configure, we
5418 # need to make the FD available again.
5419 if test "$no_create" != yes; then
5420 ac_cs_success=:
5421 ac_config_status_args=
5422 test "$silent" = yes &&
5423 ac_config_status_args="$ac_config_status_args --quiet"
5424 exec 5>/dev/null
5425 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5426 exec 5>>config.log
5427 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5428 # would make configure fail if this is the last instruction.
5429 $ac_cs_success || { (exit 1); exit 1; }
5430 fi
5431