Debian Codegraph @

configure

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