Debian Codegraph @

configure

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