]> sourceware.org Git - systemtap.git/blob - configure
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
[systemtap.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for systemtap 0.7.
4 #
5 # Report bugs to <systemtap@sources.redhat.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='systemtap'
576 PACKAGE_TARNAME='systemtap'
577 PACKAGE_VERSION='0.7'
578 PACKAGE_STRING='systemtap 0.7'
579 PACKAGE_BUGREPORT='systemtap@sources.redhat.com'
580
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 INSTALL_PROGRAM
655 INSTALL_SCRIPT
656 INSTALL_DATA
657 am__isrc
658 CYGPATH_W
659 PACKAGE
660 VERSION
661 ACLOCAL
662 AUTOCONF
663 AUTOMAKE
664 AUTOHEADER
665 MAKEINFO
666 install_sh
667 STRIP
668 INSTALL_STRIP_PROGRAM
669 mkdir_p
670 AWK
671 SET_MAKE
672 am__leading_dot
673 AMTAR
674 am__tar
675 am__untar
676 MAINTAINER_MODE_TRUE
677 MAINTAINER_MODE_FALSE
678 MAINT
679 LN_S
680 CC
681 CFLAGS
682 LDFLAGS
683 CPPFLAGS
684 ac_ct_CC
685 EXEEXT
686 OBJEXT
687 DEPDIR
688 am__include
689 am__quote
690 AMDEP_TRUE
691 AMDEP_FALSE
692 AMDEPBACKSLASH
693 CCDEPMODE
694 am__fastdepCC_TRUE
695 am__fastdepCC_FALSE
696 CXX
697 CXXFLAGS
698 ac_ct_CXX
699 CXXDEPMODE
700 am__fastdepCXX_TRUE
701 am__fastdepCXX_FALSE
702 CPP
703 GREP
704 EGREP
705 U
706 ANSI2KNR
707 RANLIB
708 PIELDFLAGS
709 sqlite3_LIBS
710 staplog_CPPFLAGS
711 BUILD_CRASHMOD_TRUE
712 BUILD_CRASHMOD_FALSE
713 have_latex
714 have_dvips
715 have_ps2pdf
716 have_latex2html
717 BUILD_DOCS_TRUE
718 BUILD_DOCS_FALSE
719 BUILD_ELFUTILS_TRUE
720 BUILD_ELFUTILS_FALSE
721 elfutils_abs_srcdir
722 stap_LIBS
723 DATE
724 PROCFLAGS
725 cap_LIBS
726 subdirs
727 LIBOBJS
728 LTLIBOBJS'
729 ac_subst_files=''
730 ac_precious_vars='build_alias
731 host_alias
732 target_alias
733 CC
734 CFLAGS
735 LDFLAGS
736 LIBS
737 CPPFLAGS
738 CXX
739 CXXFLAGS
740 CCC
741 CPP'
742 ac_subdirs_all='testsuite'
743
744 # Initialize some variables set by options.
745 ac_init_help=
746 ac_init_version=false
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
749 cache_file=/dev/null
750 exec_prefix=NONE
751 no_create=
752 no_recursion=
753 prefix=NONE
754 program_prefix=NONE
755 program_suffix=NONE
756 program_transform_name=s,x,x,
757 silent=
758 site=
759 srcdir=
760 verbose=
761 x_includes=NONE
762 x_libraries=NONE
763
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
781 infodir='${datarootdir}/info'
782 htmldir='${docdir}'
783 dvidir='${docdir}'
784 pdfdir='${docdir}'
785 psdir='${docdir}'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
789
790 ac_prev=
791 ac_dashdash=
792 for ac_option
793 do
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\$ac_option
797 ac_prev=
798 continue
799 fi
800
801 case $ac_option in
802 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 *) ac_optarg=yes ;;
804 esac
805
806 # Accept the important Cygnus configure options, so we can diagnose typos.
807
808 case $ac_dashdash$ac_option in
809 --)
810 ac_dashdash=yes ;;
811
812 -bindir | --bindir | --bindi | --bind | --bin | --bi)
813 ac_prev=bindir ;;
814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 bindir=$ac_optarg ;;
816
817 -build | --build | --buil | --bui | --bu)
818 ac_prev=build_alias ;;
819 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820 build_alias=$ac_optarg ;;
821
822 -cache-file | --cache-file | --cache-fil | --cache-fi \
823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824 ac_prev=cache_file ;;
825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827 cache_file=$ac_optarg ;;
828
829 --config-cache | -C)
830 cache_file=config.cache ;;
831
832 -datadir | --datadir | --datadi | --datad)
833 ac_prev=datadir ;;
834 -datadir=* | --datadir=* | --datadi=* | --datad=*)
835 datadir=$ac_optarg ;;
836
837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838 | --dataroo | --dataro | --datar)
839 ac_prev=datarootdir ;;
840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842 datarootdir=$ac_optarg ;;
843
844 -disable-* | --disable-*)
845 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_$ac_feature=no ;;
852
853 -docdir | --docdir | --docdi | --doc | --do)
854 ac_prev=docdir ;;
855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
856 docdir=$ac_optarg ;;
857
858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859 ac_prev=dvidir ;;
860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
861 dvidir=$ac_optarg ;;
862
863 -enable-* | --enable-*)
864 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_$ac_feature=\$ac_optarg ;;
871
872 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874 | --exec | --exe | --ex)
875 ac_prev=exec_prefix ;;
876 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878 | --exec=* | --exe=* | --ex=*)
879 exec_prefix=$ac_optarg ;;
880
881 -gas | --gas | --ga | --g)
882 # Obsolete; use --with-gas.
883 with_gas=yes ;;
884
885 -help | --help | --hel | --he | -h)
886 ac_init_help=long ;;
887 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888 ac_init_help=recursive ;;
889 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890 ac_init_help=short ;;
891
892 -host | --host | --hos | --ho)
893 ac_prev=host_alias ;;
894 -host=* | --host=* | --hos=* | --ho=*)
895 host_alias=$ac_optarg ;;
896
897 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898 ac_prev=htmldir ;;
899 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900 | --ht=*)
901 htmldir=$ac_optarg ;;
902
903 -includedir | --includedir | --includedi | --included | --include \
904 | --includ | --inclu | --incl | --inc)
905 ac_prev=includedir ;;
906 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907 | --includ=* | --inclu=* | --incl=* | --inc=*)
908 includedir=$ac_optarg ;;
909
910 -infodir | --infodir | --infodi | --infod | --info | --inf)
911 ac_prev=infodir ;;
912 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913 infodir=$ac_optarg ;;
914
915 -libdir | --libdir | --libdi | --libd)
916 ac_prev=libdir ;;
917 -libdir=* | --libdir=* | --libdi=* | --libd=*)
918 libdir=$ac_optarg ;;
919
920 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921 | --libexe | --libex | --libe)
922 ac_prev=libexecdir ;;
923 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924 | --libexe=* | --libex=* | --libe=*)
925 libexecdir=$ac_optarg ;;
926
927 -localedir | --localedir | --localedi | --localed | --locale)
928 ac_prev=localedir ;;
929 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930 localedir=$ac_optarg ;;
931
932 -localstatedir | --localstatedir | --localstatedi | --localstated \
933 | --localstate | --localstat | --localsta | --localst | --locals)
934 ac_prev=localstatedir ;;
935 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937 localstatedir=$ac_optarg ;;
938
939 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940 ac_prev=mandir ;;
941 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942 mandir=$ac_optarg ;;
943
944 -nfp | --nfp | --nf)
945 # Obsolete; use --without-fp.
946 with_fp=no ;;
947
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c | -n)
950 no_create=yes ;;
951
952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954 no_recursion=yes ;;
955
956 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958 | --oldin | --oldi | --old | --ol | --o)
959 ac_prev=oldincludedir ;;
960 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963 oldincludedir=$ac_optarg ;;
964
965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966 ac_prev=prefix ;;
967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968 prefix=$ac_optarg ;;
969
970 -program-prefix | --program-prefix | --program-prefi | --program-pref \
971 | --program-pre | --program-pr | --program-p)
972 ac_prev=program_prefix ;;
973 -program-prefix=* | --program-prefix=* | --program-prefi=* \
974 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975 program_prefix=$ac_optarg ;;
976
977 -program-suffix | --program-suffix | --program-suffi | --program-suff \
978 | --program-suf | --program-su | --program-s)
979 ac_prev=program_suffix ;;
980 -program-suffix=* | --program-suffix=* | --program-suffi=* \
981 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982 program_suffix=$ac_optarg ;;
983
984 -program-transform-name | --program-transform-name \
985 | --program-transform-nam | --program-transform-na \
986 | --program-transform-n | --program-transform- \
987 | --program-transform | --program-transfor \
988 | --program-transfo | --program-transf \
989 | --program-trans | --program-tran \
990 | --progr-tra | --program-tr | --program-t)
991 ac_prev=program_transform_name ;;
992 -program-transform-name=* | --program-transform-name=* \
993 | --program-transform-nam=* | --program-transform-na=* \
994 | --program-transform-n=* | --program-transform-=* \
995 | --program-transform=* | --program-transfor=* \
996 | --program-transfo=* | --program-transf=* \
997 | --program-trans=* | --program-tran=* \
998 | --progr-tra=* | --program-tr=* | --program-t=*)
999 program_transform_name=$ac_optarg ;;
1000
1001 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002 ac_prev=pdfdir ;;
1003 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004 pdfdir=$ac_optarg ;;
1005
1006 -psdir | --psdir | --psdi | --psd | --ps)
1007 ac_prev=psdir ;;
1008 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009 psdir=$ac_optarg ;;
1010
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1013 silent=yes ;;
1014
1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016 ac_prev=sbindir ;;
1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018 | --sbi=* | --sb=*)
1019 sbindir=$ac_optarg ;;
1020
1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023 | --sharedst | --shareds | --shared | --share | --shar \
1024 | --sha | --sh)
1025 ac_prev=sharedstatedir ;;
1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029 | --sha=* | --sh=*)
1030 sharedstatedir=$ac_optarg ;;
1031
1032 -site | --site | --sit)
1033 ac_prev=site ;;
1034 -site=* | --site=* | --sit=*)
1035 site=$ac_optarg ;;
1036
1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038 ac_prev=srcdir ;;
1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040 srcdir=$ac_optarg ;;
1041
1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043 | --syscon | --sysco | --sysc | --sys | --sy)
1044 ac_prev=sysconfdir ;;
1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047 sysconfdir=$ac_optarg ;;
1048
1049 -target | --target | --targe | --targ | --tar | --ta | --t)
1050 ac_prev=target_alias ;;
1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052 target_alias=$ac_optarg ;;
1053
1054 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055 verbose=yes ;;
1056
1057 -version | --version | --versio | --versi | --vers | -V)
1058 ac_init_version=: ;;
1059
1060 -with-* | --with-*)
1061 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_$ac_package=\$ac_optarg ;;
1068
1069 -without-* | --without-*)
1070 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_$ac_package=no ;;
1077
1078 --x)
1079 # Obsolete; use --with-x.
1080 with_x=yes ;;
1081
1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083 | --x-incl | --x-inc | --x-in | --x-i)
1084 ac_prev=x_includes ;;
1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087 x_includes=$ac_optarg ;;
1088
1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091 ac_prev=x_libraries ;;
1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094 x_libraries=$ac_optarg ;;
1095
1096 -*) { echo "$as_me: error: unrecognized option: $ac_option
1097 Try \`$0 --help' for more information." >&2
1098 { (exit 1); exit 1; }; }
1099 ;;
1100
1101 *=*)
1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106 { (exit 1); exit 1; }; }
1107 eval $ac_envvar=\$ac_optarg
1108 export $ac_envvar ;;
1109
1110 *)
1111 # FIXME: should be removed in autoconf 3.0.
1112 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1116 ;;
1117
1118 esac
1119 done
1120
1121 if test -n "$ac_prev"; then
1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123 { echo "$as_me: error: missing argument to $ac_option" >&2
1124 { (exit 1); exit 1; }; }
1125 fi
1126
1127 # Be sure to have absolute directory names.
1128 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1129 datadir sysconfdir sharedstatedir localstatedir includedir \
1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1131 libdir localedir mandir
1132 do
1133 eval ac_val=\$$ac_var
1134 case $ac_val in
1135 [\\/$]* | ?:[\\/]* ) continue;;
1136 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137 esac
1138 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1139 { (exit 1); exit 1; }; }
1140 done
1141
1142 # There might be people who depend on the old broken behavior: `$host'
1143 # used to hold the argument of --host etc.
1144 # FIXME: To remove some day.
1145 build=$build_alias
1146 host=$host_alias
1147 target=$target_alias
1148
1149 # FIXME: To remove some day.
1150 if test "x$host_alias" != x; then
1151 if test "x$build_alias" = x; then
1152 cross_compiling=maybe
1153 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1154 If a cross compiler is detected then cross compile mode will be used." >&2
1155 elif test "x$build_alias" != "x$host_alias"; then
1156 cross_compiling=yes
1157 fi
1158 fi
1159
1160 ac_tool_prefix=
1161 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162
1163 test "$silent" = yes && exec 6>/dev/null
1164
1165
1166 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167 ac_ls_di=`ls -di .` &&
1168 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1169 { echo "$as_me: error: Working directory cannot be determined" >&2
1170 { (exit 1); exit 1; }; }
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 { echo "$as_me: error: pwd does not report name of working directory" >&2
1173 { (exit 1); exit 1; }; }
1174
1175
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$0" ||
1181 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$0" : 'X\(//\)[^/]' \| \
1183 X"$0" : 'X\(//\)$' \| \
1184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 echo X"$0" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1206 fi
1207 else
1208 ac_srcdir_defaulted=no
1209 fi
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1213 { (exit 1); exit 1; }; }
1214 fi
1215 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 ac_abs_confdir=`(
1217 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1218 { (exit 1); exit 1; }; }
1219 pwd)`
1220 # When building in place, set srcdir=.
1221 if test "$ac_abs_confdir" = "$ac_pwd"; then
1222 srcdir=.
1223 fi
1224 # Remove unnecessary trailing slashes from srcdir.
1225 # Double slashes in file names in object file debugging info
1226 # mess up M-x gdb in Emacs.
1227 case $srcdir in
1228 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 esac
1230 for ac_var in $ac_precious_vars; do
1231 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_env_${ac_var}_value=\$${ac_var}
1233 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1234 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1235 done
1236
1237 #
1238 # Report the --help message.
1239 #
1240 if test "$ac_init_help" = "long"; then
1241 # Omit some internal or obsolete options to make the list less imposing.
1242 # This message is too long to be a string in the A/UX 3.1 sh.
1243 cat <<_ACEOF
1244 \`configure' configures systemtap 0.7 to adapt to many kinds of systems.
1245
1246 Usage: $0 [OPTION]... [VAR=VALUE]...
1247
1248 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249 VAR=VALUE. See below for descriptions of some of the useful variables.
1250
1251 Defaults for the options are specified in brackets.
1252
1253 Configuration:
1254 -h, --help display this help and exit
1255 --help=short display options specific to this package
1256 --help=recursive display the short help of all the included packages
1257 -V, --version display version information and exit
1258 -q, --quiet, --silent do not print \`checking...' messages
1259 --cache-file=FILE cache test results in FILE [disabled]
1260 -C, --config-cache alias for \`--cache-file=config.cache'
1261 -n, --no-create do not create output files
1262 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263
1264 Installation directories:
1265 --prefix=PREFIX install architecture-independent files in PREFIX
1266 [$ac_default_prefix]
1267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1268 [PREFIX]
1269
1270 By default, \`make install' will install all the files in
1271 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1272 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273 for instance \`--prefix=\$HOME'.
1274
1275 For better control, use the options below.
1276
1277 Fine tuning of the installation directories:
1278 --bindir=DIR user executables [EPREFIX/bin]
1279 --sbindir=DIR system admin executables [EPREFIX/sbin]
1280 --libexecdir=DIR program executables [EPREFIX/libexec]
1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1284 --libdir=DIR object code libraries [EPREFIX/lib]
1285 --includedir=DIR C header files [PREFIX/include]
1286 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1289 --infodir=DIR info documentation [DATAROOTDIR/info]
1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1291 --mandir=DIR man documentation [DATAROOTDIR/man]
1292 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1293 --htmldir=DIR html documentation [DOCDIR]
1294 --dvidir=DIR dvi documentation [DOCDIR]
1295 --pdfdir=DIR pdf documentation [DOCDIR]
1296 --psdir=DIR ps documentation [DOCDIR]
1297 _ACEOF
1298
1299 cat <<\_ACEOF
1300
1301 Program names:
1302 --program-prefix=PREFIX prepend PREFIX to installed program names
1303 --program-suffix=SUFFIX append SUFFIX to installed program names
1304 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1305 _ACEOF
1306 fi
1307
1308 if test -n "$ac_init_help"; then
1309 case $ac_init_help in
1310 short | recursive ) echo "Configuration of systemtap 0.7:";;
1311 esac
1312 cat <<\_ACEOF
1313
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-maintainer-mode enable make rules and dependencies not useful
1318 (and sometimes confusing) to the casual installer
1319 --disable-dependency-tracking speeds up one-time build
1320 --enable-dependency-tracking do not reject slow dependency extractors
1321 --enable-perfmon[=DIRECTORY]
1322 enable perfmon support (default is disabled).
1323 Optional DIRECTORY is the path to the perfmon
1324 installation (needed if installed in a non-standard
1325 location).
1326 --enable-prologues make -P prologue-searching default
1327 --disable-ssp disable gcc stack-protector
1328 --disable-pie disable position-independent-executable
1329 --enable-sqlite build with sqlite support
1330 --enable-crash[=DIRECTORY]
1331 enable crash extension (default is disabled).
1332 Optional DIRECTORY is the path to the crash header
1333 file (needed if installed in a non-standard
1334 location).
1335 --enable-docs enable building documentation (default on if latex
1336 etc. found).
1337
1338 Optional Packages:
1339 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1340 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1341 --with-elfutils=DIRECTORY
1342 find elfutils source code in DIRECTORY
1343
1344 Some influential environment variables:
1345 CC C compiler command
1346 CFLAGS C compiler flags
1347 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1348 nonstandard directory <lib dir>
1349 LIBS libraries to pass to the linker, e.g. -l<library>
1350 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1351 you have headers in a nonstandard directory <include dir>
1352 CXX C++ compiler command
1353 CXXFLAGS C++ compiler flags
1354 CPP C preprocessor
1355
1356 Use these variables to override the choices made by `configure' or to help
1357 it to find libraries and programs with nonstandard names/locations.
1358
1359 Report bugs to <systemtap@sources.redhat.com>.
1360 _ACEOF
1361 ac_status=$?
1362 fi
1363
1364 if test "$ac_init_help" = "recursive"; then
1365 # If there are subdirs, report their specific --help.
1366 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1367 test -d "$ac_dir" || continue
1368 ac_builddir=.
1369
1370 case "$ac_dir" in
1371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *)
1373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1374 # A ".." for each directory in $ac_dir_suffix.
1375 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1376 case $ac_top_builddir_sub in
1377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1379 esac ;;
1380 esac
1381 ac_abs_top_builddir=$ac_pwd
1382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1383 # for backward compatibility:
1384 ac_top_builddir=$ac_top_build_prefix
1385
1386 case $srcdir in
1387 .) # We are building in place.
1388 ac_srcdir=.
1389 ac_top_srcdir=$ac_top_builddir_sub
1390 ac_abs_top_srcdir=$ac_pwd ;;
1391 [\\/]* | ?:[\\/]* ) # Absolute name.
1392 ac_srcdir=$srcdir$ac_dir_suffix;
1393 ac_top_srcdir=$srcdir
1394 ac_abs_top_srcdir=$srcdir ;;
1395 *) # Relative name.
1396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1397 ac_top_srcdir=$ac_top_build_prefix$srcdir
1398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1399 esac
1400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1401
1402 cd "$ac_dir" || { ac_status=$?; continue; }
1403 # Check for guested configure.
1404 if test -f "$ac_srcdir/configure.gnu"; then
1405 echo &&
1406 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1407 elif test -f "$ac_srcdir/configure"; then
1408 echo &&
1409 $SHELL "$ac_srcdir/configure" --help=recursive
1410 else
1411 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1412 fi || ac_status=$?
1413 cd "$ac_pwd" || { ac_status=$?; break; }
1414 done
1415 fi
1416
1417 test -n "$ac_init_help" && exit $ac_status
1418 if $ac_init_version; then
1419 cat <<\_ACEOF
1420 systemtap configure 0.7
1421 generated by GNU Autoconf 2.61
1422
1423 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1424 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1425 This configure script is free software; the Free Software Foundation
1426 gives unlimited permission to copy, distribute and modify it.
1427 _ACEOF
1428 exit
1429 fi
1430 cat >config.log <<_ACEOF
1431 This file contains any messages produced by compilers while
1432 running configure, to aid debugging if configure makes a mistake.
1433
1434 It was created by systemtap $as_me 0.7, which was
1435 generated by GNU Autoconf 2.61. Invocation command line was
1436
1437 $ $0 $@
1438
1439 _ACEOF
1440 exec 5>>config.log
1441 {
1442 cat <<_ASUNAME
1443 ## --------- ##
1444 ## Platform. ##
1445 ## --------- ##
1446
1447 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1448 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1449 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1450 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1451 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1452
1453 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1454 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1455
1456 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1457 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1458 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1459 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1460 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1461 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1462 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1463
1464 _ASUNAME
1465
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 echo "PATH: $as_dir"
1472 done
1473 IFS=$as_save_IFS
1474
1475 } >&5
1476
1477 cat >&5 <<_ACEOF
1478
1479
1480 ## ----------- ##
1481 ## Core tests. ##
1482 ## ----------- ##
1483
1484 _ACEOF
1485
1486
1487 # Keep a trace of the command line.
1488 # Strip out --no-create and --no-recursion so they do not pile up.
1489 # Strip out --silent because we don't want to record it for future runs.
1490 # Also quote any args containing shell meta-characters.
1491 # Make two passes to allow for proper duplicate-argument suppression.
1492 ac_configure_args=
1493 ac_configure_args0=
1494 ac_configure_args1=
1495 ac_must_keep_next=false
1496 for ac_pass in 1 2
1497 do
1498 for ac_arg
1499 do
1500 case $ac_arg in
1501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503 | -silent | --silent | --silen | --sile | --sil)
1504 continue ;;
1505 *\'*)
1506 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1507 esac
1508 case $ac_pass in
1509 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1510 2)
1511 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1512 if test $ac_must_keep_next = true; then
1513 ac_must_keep_next=false # Got value, back to normal.
1514 else
1515 case $ac_arg in
1516 *=* | --config-cache | -C | -disable-* | --disable-* \
1517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1519 | -with-* | --with-* | -without-* | --without-* | --x)
1520 case "$ac_configure_args0 " in
1521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1522 esac
1523 ;;
1524 -* ) ac_must_keep_next=true ;;
1525 esac
1526 fi
1527 ac_configure_args="$ac_configure_args '$ac_arg'"
1528 ;;
1529 esac
1530 done
1531 done
1532 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1533 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1534
1535 # When interrupted or exit'd, cleanup temporary files, and complete
1536 # config.log. We remove comments because anyway the quotes in there
1537 # would cause problems or look ugly.
1538 # WARNING: Use '\'' to represent an apostrophe within the trap.
1539 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1540 trap 'exit_status=$?
1541 # Save into config.log some information that might help in debugging.
1542 {
1543 echo
1544
1545 cat <<\_ASBOX
1546 ## ---------------- ##
1547 ## Cache variables. ##
1548 ## ---------------- ##
1549 _ASBOX
1550 echo
1551 # The following way of writing the cache mishandles newlines in values,
1552 (
1553 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1554 eval ac_val=\$$ac_var
1555 case $ac_val in #(
1556 *${as_nl}*)
1557 case $ac_var in #(
1558 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1559 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1560 esac
1561 case $ac_var in #(
1562 _ | IFS | as_nl) ;; #(
1563 *) $as_unset $ac_var ;;
1564 esac ;;
1565 esac
1566 done
1567 (set) 2>&1 |
1568 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1569 *${as_nl}ac_space=\ *)
1570 sed -n \
1571 "s/'\''/'\''\\\\'\'''\''/g;
1572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1573 ;; #(
1574 *)
1575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1576 ;;
1577 esac |
1578 sort
1579 )
1580 echo
1581
1582 cat <<\_ASBOX
1583 ## ----------------- ##
1584 ## Output variables. ##
1585 ## ----------------- ##
1586 _ASBOX
1587 echo
1588 for ac_var in $ac_subst_vars
1589 do
1590 eval ac_val=\$$ac_var
1591 case $ac_val in
1592 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1593 esac
1594 echo "$ac_var='\''$ac_val'\''"
1595 done | sort
1596 echo
1597
1598 if test -n "$ac_subst_files"; then
1599 cat <<\_ASBOX
1600 ## ------------------- ##
1601 ## File substitutions. ##
1602 ## ------------------- ##
1603 _ASBOX
1604 echo
1605 for ac_var in $ac_subst_files
1606 do
1607 eval ac_val=\$$ac_var
1608 case $ac_val in
1609 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1610 esac
1611 echo "$ac_var='\''$ac_val'\''"
1612 done | sort
1613 echo
1614 fi
1615
1616 if test -s confdefs.h; then
1617 cat <<\_ASBOX
1618 ## ----------- ##
1619 ## confdefs.h. ##
1620 ## ----------- ##
1621 _ASBOX
1622 echo
1623 cat confdefs.h
1624 echo
1625 fi
1626 test "$ac_signal" != 0 &&
1627 echo "$as_me: caught signal $ac_signal"
1628 echo "$as_me: exit $exit_status"
1629 } >&5
1630 rm -f core *.core core.conftest.* &&
1631 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1632 exit $exit_status
1633 ' 0
1634 for ac_signal in 1 2 13 15; do
1635 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1636 done
1637 ac_signal=0
1638
1639 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1640 rm -f -r conftest* confdefs.h
1641
1642 # Predefined preprocessor variables.
1643
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE_NAME "$PACKAGE_NAME"
1646 _ACEOF
1647
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1656 _ACEOF
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_STRING "$PACKAGE_STRING"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1666 _ACEOF
1667
1668
1669 # Let the site file select an alternate cache file if it wants to.
1670 # Prefer explicitly selected file to automatically selected ones.
1671 if test -n "$CONFIG_SITE"; then
1672 set x "$CONFIG_SITE"
1673 elif test "x$prefix" != xNONE; then
1674 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1675 else
1676 set x "$ac_default_prefix/share/config.site" \
1677 "$ac_default_prefix/etc/config.site"
1678 fi
1679 shift
1680 for ac_site_file
1681 do
1682 if test -r "$ac_site_file"; then
1683 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1684 echo "$as_me: loading site script $ac_site_file" >&6;}
1685 sed 's/^/| /' "$ac_site_file" >&5
1686 . "$ac_site_file"
1687 fi
1688 done
1689
1690 if test -r "$cache_file"; then
1691 # Some versions of bash will fail to source /dev/null (special
1692 # files actually), so we avoid doing that.
1693 if test -f "$cache_file"; then
1694 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1695 echo "$as_me: loading cache $cache_file" >&6;}
1696 case $cache_file in
1697 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1698 *) . "./$cache_file";;
1699 esac
1700 fi
1701 else
1702 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1703 echo "$as_me: creating cache $cache_file" >&6;}
1704 >$cache_file
1705 fi
1706
1707 # Check that the precious variables saved in the cache have kept the same
1708 # value.
1709 ac_cache_corrupted=false
1710 for ac_var in $ac_precious_vars; do
1711 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1712 eval ac_new_set=\$ac_env_${ac_var}_set
1713 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1714 eval ac_new_val=\$ac_env_${ac_var}_value
1715 case $ac_old_set,$ac_new_set in
1716 set,)
1717 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1718 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1719 ac_cache_corrupted=: ;;
1720 ,set)
1721 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1722 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1723 ac_cache_corrupted=: ;;
1724 ,);;
1725 *)
1726 if test "x$ac_old_val" != "x$ac_new_val"; then
1727 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1728 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1729 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1730 echo "$as_me: former value: $ac_old_val" >&2;}
1731 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1732 echo "$as_me: current value: $ac_new_val" >&2;}
1733 ac_cache_corrupted=:
1734 fi;;
1735 esac
1736 # Pass precious variables to config.status.
1737 if test "$ac_new_set" = set; then
1738 case $ac_new_val in
1739 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1740 *) ac_arg=$ac_var=$ac_new_val ;;
1741 esac
1742 case " $ac_configure_args " in
1743 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1744 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1745 esac
1746 fi
1747 done
1748 if $ac_cache_corrupted; then
1749 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1750 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1751 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1752 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1753 { (exit 1); exit 1; }; }
1754 fi
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785
1786
1787
1788
1789 am__api_version='1.10'
1790
1791 ac_aux_dir=
1792 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1793 if test -f "$ac_dir/install-sh"; then
1794 ac_aux_dir=$ac_dir
1795 ac_install_sh="$ac_aux_dir/install-sh -c"
1796 break
1797 elif test -f "$ac_dir/install.sh"; then
1798 ac_aux_dir=$ac_dir
1799 ac_install_sh="$ac_aux_dir/install.sh -c"
1800 break
1801 elif test -f "$ac_dir/shtool"; then
1802 ac_aux_dir=$ac_dir
1803 ac_install_sh="$ac_aux_dir/shtool install -c"
1804 break
1805 fi
1806 done
1807 if test -z "$ac_aux_dir"; then
1808 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1809 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1810 { (exit 1); exit 1; }; }
1811 fi
1812
1813 # These three variables are undocumented and unsupported,
1814 # and are intended to be withdrawn in a future Autoconf release.
1815 # They can cause serious problems if a builder's source tree is in a directory
1816 # whose full name contains unusual characters.
1817 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1818 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1819 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1820
1821
1822 # Find a good install program. We prefer a C program (faster),
1823 # so one script is as good as another. But avoid the broken or
1824 # incompatible versions:
1825 # SysV /etc/install, /usr/sbin/install
1826 # SunOS /usr/etc/install
1827 # IRIX /sbin/install
1828 # AIX /bin/install
1829 # AmigaOS /C/install, which installs bootblocks on floppy discs
1830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1833 # OS/2's system install, which has a completely different semantic
1834 # ./install, which can be erroneously created by make from ./install.sh.
1835 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1836 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1837 if test -z "$INSTALL"; then
1838 if test "${ac_cv_path_install+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 # Account for people who put trailing slashes in PATH elements.
1847 case $as_dir/ in
1848 ./ | .// | /cC/* | \
1849 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1850 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1851 /usr/ucb/* ) ;;
1852 *)
1853 # OSF1 and SCO ODT 3.0 have their own names for install.
1854 # Don't use installbsd from OSF since it installs stuff as root
1855 # by default.
1856 for ac_prog in ginstall scoinst install; do
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1859 if test $ac_prog = install &&
1860 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1861 # AIX install. It has an incompatible calling convention.
1862 :
1863 elif test $ac_prog = install &&
1864 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1865 # program-specific install script used by HP pwplus--don't use.
1866 :
1867 else
1868 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1869 break 3
1870 fi
1871 fi
1872 done
1873 done
1874 ;;
1875 esac
1876 done
1877 IFS=$as_save_IFS
1878
1879
1880 fi
1881 if test "${ac_cv_path_install+set}" = set; then
1882 INSTALL=$ac_cv_path_install
1883 else
1884 # As a last resort, use the slow shell script. Don't cache a
1885 # value for INSTALL within a source directory, because that will
1886 # break other packages using the cache if that directory is
1887 # removed, or if the value is a relative name.
1888 INSTALL=$ac_install_sh
1889 fi
1890 fi
1891 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1892 echo "${ECHO_T}$INSTALL" >&6; }
1893
1894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1895 # It thinks the first close brace ends the variable substitution.
1896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1897
1898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1899
1900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1901
1902 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1903 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1904 # Just in case
1905 sleep 1
1906 echo timestamp > conftest.file
1907 # Do `set' in a subshell so we don't clobber the current shell's
1908 # arguments. Must try -L first in case configure is actually a
1909 # symlink; some systems play weird games with the mod time of symlinks
1910 # (eg FreeBSD returns the mod time of the symlink's containing
1911 # directory).
1912 if (
1913 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1914 if test "$*" = "X"; then
1915 # -L didn't work.
1916 set X `ls -t $srcdir/configure conftest.file`
1917 fi
1918 rm -f conftest.file
1919 if test "$*" != "X $srcdir/configure conftest.file" \
1920 && test "$*" != "X conftest.file $srcdir/configure"; then
1921
1922 # If neither matched, then we have a broken ls. This can happen
1923 # if, for instance, CONFIG_SHELL is bash and it inherits a
1924 # broken ls alias from the environment. This has actually
1925 # happened. Such a system could not be considered "sane".
1926 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1927 alias in your environment" >&5
1928 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1929 alias in your environment" >&2;}
1930 { (exit 1); exit 1; }; }
1931 fi
1932
1933 test "$2" = conftest.file
1934 )
1935 then
1936 # Ok.
1937 :
1938 else
1939 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1940 Check your system clock" >&5
1941 echo "$as_me: error: newly created file is older than distributed files!
1942 Check your system clock" >&2;}
1943 { (exit 1); exit 1; }; }
1944 fi
1945 { echo "$as_me:$LINENO: result: yes" >&5
1946 echo "${ECHO_T}yes" >&6; }
1947 test "$program_prefix" != NONE &&
1948 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1949 # Use a double $ so make ignores it.
1950 test "$program_suffix" != NONE &&
1951 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1952 # Double any \ or $. echo might interpret backslashes.
1953 # By default was `s,x,x', remove it if useless.
1954 cat <<\_ACEOF >conftest.sed
1955 s/[\\$]/&&/g;s/;s,x,x,$//
1956 _ACEOF
1957 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1958 rm -f conftest.sed
1959
1960 # expand $ac_aux_dir to an absolute path
1961 am_aux_dir=`cd $ac_aux_dir && pwd`
1962
1963 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1964 # Use eval to expand $SHELL
1965 if eval "$MISSING --run true"; then
1966 am_missing_run="$MISSING --run "
1967 else
1968 am_missing_run=
1969 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1970 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1971 fi
1972
1973 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1974 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1975 if test -z "$MKDIR_P"; then
1976 if test "${ac_cv_path_mkdir+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1981 do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 for ac_prog in mkdir gmkdir; do
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1988 'mkdir (GNU coreutils) '* | \
1989 'mkdir (coreutils) '* | \
1990 'mkdir (fileutils) '4.1*)
1991 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1992 break 3;;
1993 esac
1994 done
1995 done
1996 done
1997 IFS=$as_save_IFS
1998
1999 fi
2000
2001 if test "${ac_cv_path_mkdir+set}" = set; then
2002 MKDIR_P="$ac_cv_path_mkdir -p"
2003 else
2004 # As a last resort, use the slow shell script. Don't cache a
2005 # value for MKDIR_P within a source directory, because that will
2006 # break other packages using the cache if that directory is
2007 # removed, or if the value is a relative name.
2008 test -d ./--version && rmdir ./--version
2009 MKDIR_P="$ac_install_sh -d"
2010 fi
2011 fi
2012 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2013 echo "${ECHO_T}$MKDIR_P" >&6; }
2014
2015 mkdir_p="$MKDIR_P"
2016 case $mkdir_p in
2017 [\\/$]* | ?:[\\/]*) ;;
2018 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2019 esac
2020
2021 for ac_prog in gawk mawk nawk awk
2022 do
2023 # Extract the first word of "$ac_prog", so it can be a program name with args.
2024 set dummy $ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_AWK+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 if test -n "$AWK"; then
2031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_AWK="$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2043 fi
2044 done
2045 done
2046 IFS=$as_save_IFS
2047
2048 fi
2049 fi
2050 AWK=$ac_cv_prog_AWK
2051 if test -n "$AWK"; then
2052 { echo "$as_me:$LINENO: result: $AWK" >&5
2053 echo "${ECHO_T}$AWK" >&6; }
2054 else
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2057 fi
2058
2059
2060 test -n "$AWK" && break
2061 done
2062
2063 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2064 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2065 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2066 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069 cat >conftest.make <<\_ACEOF
2070 SHELL = /bin/sh
2071 all:
2072 @echo '@@@%%%=$(MAKE)=@@@%%%'
2073 _ACEOF
2074 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2075 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2076 *@@@%%%=?*=@@@%%%*)
2077 eval ac_cv_prog_make_${ac_make}_set=yes;;
2078 *)
2079 eval ac_cv_prog_make_${ac_make}_set=no;;
2080 esac
2081 rm -f conftest.make
2082 fi
2083 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2084 { echo "$as_me:$LINENO: result: yes" >&5
2085 echo "${ECHO_T}yes" >&6; }
2086 SET_MAKE=
2087 else
2088 { echo "$as_me:$LINENO: result: no" >&5
2089 echo "${ECHO_T}no" >&6; }
2090 SET_MAKE="MAKE=${MAKE-make}"
2091 fi
2092
2093 rm -rf .tst 2>/dev/null
2094 mkdir .tst 2>/dev/null
2095 if test -d .tst; then
2096 am__leading_dot=.
2097 else
2098 am__leading_dot=_
2099 fi
2100 rmdir .tst 2>/dev/null
2101
2102 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2103 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2104 # is not polluted with repeated "-I."
2105 am__isrc=' -I$(srcdir)'
2106 # test to see if srcdir already configured
2107 if test -f $srcdir/config.status; then
2108 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2109 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2110 { (exit 1); exit 1; }; }
2111 fi
2112 fi
2113
2114 # test whether we have cygpath
2115 if test -z "$CYGPATH_W"; then
2116 if (cygpath --version) >/dev/null 2>/dev/null; then
2117 CYGPATH_W='cygpath -w'
2118 else
2119 CYGPATH_W=echo
2120 fi
2121 fi
2122
2123
2124 # Define the identity of the package.
2125 PACKAGE='systemtap'
2126 VERSION='0.7'
2127
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE "$PACKAGE"
2131 _ACEOF
2132
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define VERSION "$VERSION"
2136 _ACEOF
2137
2138 # Some tools Automake needs.
2139
2140 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2141
2142
2143 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2144
2145
2146 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2147
2148
2149 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2150
2151
2152 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2153
2154 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2155
2156 # Installed binaries are usually stripped using `strip' when the user
2157 # run `make install-strip'. However `strip' might not be the right
2158 # tool to use in cross-compilation environments, therefore Automake
2159 # will honor the `STRIP' environment variable to overrule this program.
2160 if test "$cross_compiling" != no; then
2161 if test -n "$ac_tool_prefix"; then
2162 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2163 set dummy ${ac_tool_prefix}strip; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_STRIP+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 if test -n "$STRIP"; then
2170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 break 2
2182 fi
2183 done
2184 done
2185 IFS=$as_save_IFS
2186
2187 fi
2188 fi
2189 STRIP=$ac_cv_prog_STRIP
2190 if test -n "$STRIP"; then
2191 { echo "$as_me:$LINENO: result: $STRIP" >&5
2192 echo "${ECHO_T}$STRIP" >&6; }
2193 else
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2196 fi
2197
2198
2199 fi
2200 if test -z "$ac_cv_prog_STRIP"; then
2201 ac_ct_STRIP=$STRIP
2202 # Extract the first word of "strip", so it can be a program name with args.
2203 set dummy strip; ac_word=$2
2204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209 if test -n "$ac_ct_STRIP"; then
2210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_ac_ct_STRIP="strip"
2220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2222 fi
2223 done
2224 done
2225 IFS=$as_save_IFS
2226
2227 fi
2228 fi
2229 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2230 if test -n "$ac_ct_STRIP"; then
2231 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2232 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2233 else
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 fi
2237
2238 if test "x$ac_ct_STRIP" = x; then
2239 STRIP=":"
2240 else
2241 case $cross_compiling:$ac_tool_warned in
2242 yes:)
2243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet. If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&5
2246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2247 whose name does not start with the host triplet. If you think this
2248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2249 ac_tool_warned=yes ;;
2250 esac
2251 STRIP=$ac_ct_STRIP
2252 fi
2253 else
2254 STRIP="$ac_cv_prog_STRIP"
2255 fi
2256
2257 fi
2258 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2259
2260 # We need awk for the "check" target. The system "awk" is bad on
2261 # some platforms.
2262 # Always define AMTAR for backward compatibility.
2263
2264 AMTAR=${AMTAR-"${am_missing_run}tar"}
2265
2266 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2267
2268
2269
2270
2271
2272 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2273 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2274 # Check whether --enable-maintainer-mode was given.
2275 if test "${enable_maintainer_mode+set}" = set; then
2276 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2277 else
2278 USE_MAINTAINER_MODE=no
2279 fi
2280
2281 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2282 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2283 if test $USE_MAINTAINER_MODE = yes; then
2284 MAINTAINER_MODE_TRUE=
2285 MAINTAINER_MODE_FALSE='#'
2286 else
2287 MAINTAINER_MODE_TRUE='#'
2288 MAINTAINER_MODE_FALSE=
2289 fi
2290
2291 MAINT=$MAINTAINER_MODE_TRUE
2292
2293
2294
2295 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2296 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2297 if test -z "$MKDIR_P"; then
2298 if test "${ac_cv_path_mkdir+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2303 do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_prog in mkdir gmkdir; do
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2309 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2310 'mkdir (GNU coreutils) '* | \
2311 'mkdir (coreutils) '* | \
2312 'mkdir (fileutils) '4.1*)
2313 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2314 break 3;;
2315 esac
2316 done
2317 done
2318 done
2319 IFS=$as_save_IFS
2320
2321 fi
2322
2323 if test "${ac_cv_path_mkdir+set}" = set; then
2324 MKDIR_P="$ac_cv_path_mkdir -p"
2325 else
2326 # As a last resort, use the slow shell script. Don't cache a
2327 # value for MKDIR_P within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the value is a relative name.
2330 test -d ./--version && rmdir ./--version
2331 MKDIR_P="$ac_install_sh -d"
2332 fi
2333 fi
2334 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2335 echo "${ECHO_T}$MKDIR_P" >&6; }
2336
2337 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2338 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2339 LN_S=$as_ln_s
2340 if test "$LN_S" = "ln -s"; then
2341 { echo "$as_me:$LINENO: result: yes" >&5
2342 echo "${ECHO_T}yes" >&6; }
2343 else
2344 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2345 echo "${ECHO_T}no, using $LN_S" >&6; }
2346 fi
2347
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 if test -n "$ac_tool_prefix"; then
2354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_CC+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 CC=$ac_cv_prog_CC
2382 if test -n "$CC"; then
2383 { echo "$as_me:$LINENO: result: $CC" >&5
2384 echo "${ECHO_T}$CC" >&6; }
2385 else
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 fi
2389
2390
2391 fi
2392 if test -z "$ac_cv_prog_CC"; then
2393 ac_ct_CC=$CC
2394 # Extract the first word of "gcc", so it can be a program name with args.
2395 set dummy gcc; ac_word=$2
2396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401 if test -n "$ac_ct_CC"; then
2402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2411 ac_cv_prog_ac_ct_CC="gcc"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2422 if test -n "$ac_ct_CC"; then
2423 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2424 echo "${ECHO_T}$ac_ct_CC" >&6; }
2425 else
2426 { echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6; }
2428 fi
2429
2430 if test "x$ac_ct_CC" = x; then
2431 CC=""
2432 else
2433 case $cross_compiling:$ac_tool_warned in
2434 yes:)
2435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2436 whose name does not start with the host triplet. If you think this
2437 configuration is useful to you, please write to autoconf@gnu.org." >&5
2438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet. If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2441 ac_tool_warned=yes ;;
2442 esac
2443 CC=$ac_ct_CC
2444 fi
2445 else
2446 CC="$ac_cv_prog_CC"
2447 fi
2448
2449 if test -z "$CC"; then
2450 if test -n "$ac_tool_prefix"; then
2451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}cc; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458 if test -n "$CC"; then
2459 ac_cv_prog_CC="$CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_CC="${ac_tool_prefix}cc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 CC=$ac_cv_prog_CC
2479 if test -n "$CC"; then
2480 { echo "$as_me:$LINENO: result: $CC" >&5
2481 echo "${ECHO_T}$CC" >&6; }
2482 else
2483 { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2485 fi
2486
2487
2488 fi
2489 fi
2490 if test -z "$CC"; then
2491 # Extract the first word of "cc", so it can be a program name with args.
2492 set dummy cc; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 else
2501 ac_prog_rejected=no
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2510 ac_prog_rejected=yes
2511 continue
2512 fi
2513 ac_cv_prog_CC="cc"
2514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517 done
2518 done
2519 IFS=$as_save_IFS
2520
2521 if test $ac_prog_rejected = yes; then
2522 # We found a bogon in the path, so make sure we never use it.
2523 set dummy $ac_cv_prog_CC
2524 shift
2525 if test $# != 0; then
2526 # We chose a different compiler from the bogus one.
2527 # However, it has the same basename, so the bogon will be chosen
2528 # first if we set CC to just the basename; use the full file name.
2529 shift
2530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2531 fi
2532 fi
2533 fi
2534 fi
2535 CC=$ac_cv_prog_CC
2536 if test -n "$CC"; then
2537 { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2539 else
2540 { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542 fi
2543
2544
2545 fi
2546 if test -z "$CC"; then
2547 if test -n "$ac_tool_prefix"; then
2548 for ac_prog in cl.exe
2549 do
2550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 else
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2574
2575 fi
2576 fi
2577 CC=$ac_cv_prog_CC
2578 if test -n "$CC"; then
2579 { echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6; }
2581 else
2582 { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2584 fi
2585
2586
2587 test -n "$CC" && break
2588 done
2589 fi
2590 if test -z "$CC"; then
2591 ac_ct_CC=$CC
2592 for ac_prog in cl.exe
2593 do
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 if test -n "$ac_ct_CC"; then
2602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_ac_ct_CC="$ac_prog"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2622 if test -n "$ac_ct_CC"; then
2623 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2624 echo "${ECHO_T}$ac_ct_CC" >&6; }
2625 else
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2628 fi
2629
2630
2631 test -n "$ac_ct_CC" && break
2632 done
2633
2634 if test "x$ac_ct_CC" = x; then
2635 CC=""
2636 else
2637 case $cross_compiling:$ac_tool_warned in
2638 yes:)
2639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2640 whose name does not start with the host triplet. If you think this
2641 configuration is useful to you, please write to autoconf@gnu.org." >&5
2642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet. If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2645 ac_tool_warned=yes ;;
2646 esac
2647 CC=$ac_ct_CC
2648 fi
2649 fi
2650
2651 fi
2652
2653
2654 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&2;}
2658 { (exit 1); exit 1; }; }
2659
2660 # Provide some information about the compiler.
2661 echo "$as_me:$LINENO: checking for C compiler version" >&5
2662 ac_compiler=`set X $ac_compile; echo $2`
2663 { (ac_try="$ac_compiler --version >&5"
2664 case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667 esac
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669 (eval "$ac_compiler --version >&5") 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }
2673 { (ac_try="$ac_compiler -v >&5"
2674 case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compiler -v >&5") 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }
2683 { (ac_try="$ac_compiler -V >&5"
2684 case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_compiler -V >&5") 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693
2694 cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h. */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2700
2701 int
2702 main ()
2703 {
2704
2705 ;
2706 return 0;
2707 }
2708 _ACEOF
2709 ac_clean_files_save=$ac_clean_files
2710 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2711 # Try to create an executable without -o first, disregard a.out.
2712 # It will help us diagnose broken compilers, and finding out an intuition
2713 # of exeext.
2714 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2715 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2716 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2717 #
2718 # List of possible output files, starting from the most likely.
2719 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2720 # only as a last resort. b.out is created by i960 compilers.
2721 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2722 #
2723 # The IRIX 6 linker writes into existing files which may not be
2724 # executable, retaining their permissions. Remove them first so a
2725 # subsequent execution test works.
2726 ac_rmfiles=
2727 for ac_file in $ac_files
2728 do
2729 case $ac_file in
2730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2731 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2732 esac
2733 done
2734 rm -f $ac_rmfiles
2735
2736 if { (ac_try="$ac_link_default"
2737 case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_link_default") 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; then
2746 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2748 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2749 # so that the user can short-circuit this test for compilers unknown to
2750 # Autoconf.
2751 for ac_file in $ac_files ''
2752 do
2753 test -f "$ac_file" || continue
2754 case $ac_file in
2755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2756 ;;
2757 [ab].out )
2758 # We found the default executable, but exeext='' is most
2759 # certainly right.
2760 break;;
2761 *.* )
2762 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2763 then :; else
2764 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2765 fi
2766 # We set ac_cv_exeext here because the later test for it is not
2767 # safe: cross compilers may not add the suffix if given an `-o'
2768 # argument, so we may need to know it at that point already.
2769 # Even if this section looks crufty: it has the advantage of
2770 # actually working.
2771 break;;
2772 * )
2773 break;;
2774 esac
2775 done
2776 test "$ac_cv_exeext" = no && ac_cv_exeext=
2777
2778 else
2779 ac_file=''
2780 fi
2781
2782 { echo "$as_me:$LINENO: result: $ac_file" >&5
2783 echo "${ECHO_T}$ac_file" >&6; }
2784 if test -z "$ac_file"; then
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&2;}
2792 { (exit 77); exit 77; }; }
2793 fi
2794
2795 ac_exeext=$ac_cv_exeext
2796
2797 # Check that the compiler produces executables we can run. If not, either
2798 # the compiler is broken, or we cross compile.
2799 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2800 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2801 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2802 # If not cross compiling, check that we can run a simple program.
2803 if test "$cross_compiling" != yes; then
2804 if { ac_try='./$ac_file'
2805 { (case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_try") 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 cross_compiling=no
2815 else
2816 if test "$cross_compiling" = maybe; then
2817 cross_compiling=yes
2818 else
2819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2820 If you meant to cross compile, use \`--host'.
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&2;}
2825 { (exit 1); exit 1; }; }
2826 fi
2827 fi
2828 fi
2829 { echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6; }
2831
2832 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2833 ac_clean_files=$ac_clean_files_save
2834 # Check that the compiler produces executables we can run. If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2837 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2838 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2839 echo "${ECHO_T}$cross_compiling" >&6; }
2840
2841 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2842 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2843 if { (ac_try="$ac_link"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_link") 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; then
2853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2855 # work properly (i.e., refer to `conftest.exe'), while it won't with
2856 # `rm'.
2857 for ac_file in conftest.exe conftest conftest.*; do
2858 test -f "$ac_file" || continue
2859 case $ac_file in
2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862 break;;
2863 * ) break;;
2864 esac
2865 done
2866 else
2867 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2872 fi
2873
2874 rm -f conftest$ac_cv_exeext
2875 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2876 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2877
2878 rm -f conftest.$ac_ext
2879 EXEEXT=$ac_cv_exeext
2880 ac_exeext=$EXEEXT
2881 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2883 if test "${ac_cv_objext+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892
2893 int
2894 main ()
2895 {
2896
2897 ;
2898 return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.o conftest.obj
2902 if { (ac_try="$ac_compile"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compile") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 for ac_file in conftest.o conftest.obj conftest.*; do
2913 test -f "$ac_file" || continue;
2914 case $ac_file in
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2917 break;;
2918 esac
2919 done
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2929 fi
2930
2931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932 fi
2933 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934 echo "${ECHO_T}$ac_cv_objext" >&6; }
2935 OBJEXT=$ac_cv_objext
2936 ac_objext=$OBJEXT
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942 cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h. */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2948
2949 int
2950 main ()
2951 {
2952 #ifndef __GNUC__
2953 choke me
2954 #endif
2955
2956 ;
2957 return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest.$ac_objext; then
2977 ac_compiler_gnu=yes
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 ac_compiler_gnu=no
2983 fi
2984
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2987
2988 fi
2989 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2990 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2991 GCC=`test $ac_compiler_gnu = yes && echo yes`
2992 ac_test_CFLAGS=${CFLAGS+set}
2993 ac_save_CFLAGS=$CFLAGS
2994 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2995 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_cc_g+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999 ac_save_c_werror_flag=$ac_c_werror_flag
3000 ac_c_werror_flag=yes
3001 ac_cv_prog_cc_g=no
3002 CFLAGS="-g"
3003 cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009
3010 int
3011 main ()
3012 {
3013
3014 ;
3015 return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (ac_try="$ac_compile"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && {
3032 test -z "$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 } && test -s conftest.$ac_objext; then
3035 ac_cv_prog_cc_g=yes
3036 else
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 CFLAGS=""
3041 cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h. */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3047
3048 int
3049 main ()
3050 {
3051
3052 ;
3053 return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && {
3070 test -z "$ac_c_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
3073 :
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 ac_c_werror_flag=$ac_save_c_werror_flag
3079 CFLAGS="-g"
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086
3087 int
3088 main ()
3089 {
3090
3091 ;
3092 return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.$ac_objext; then
3112 ac_cv_prog_cc_g=yes
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117
3118 fi
3119
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 fi
3122
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 fi
3125
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3128 fi
3129 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3130 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3131 if test "$ac_test_CFLAGS" = set; then
3132 CFLAGS=$ac_save_CFLAGS
3133 elif test $ac_cv_prog_cc_g = yes; then
3134 if test "$GCC" = yes; then
3135 CFLAGS="-g -O2"
3136 else
3137 CFLAGS="-g"
3138 fi
3139 else
3140 if test "$GCC" = yes; then
3141 CFLAGS="-O2"
3142 else
3143 CFLAGS=
3144 fi
3145 fi
3146 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3147 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3148 if test "${ac_cv_prog_cc_c89+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 ac_cv_prog_cc_c89=no
3152 ac_save_CC=$CC
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #include <stdarg.h>
3160 #include <stdio.h>
3161 #include <sys/types.h>
3162 #include <sys/stat.h>
3163 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3164 struct buf { int x; };
3165 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3166 static char *e (p, i)
3167 char **p;
3168 int i;
3169 {
3170 return p[i];
3171 }
3172 static char *f (char * (*g) (char **, int), char **p, ...)
3173 {
3174 char *s;
3175 va_list v;
3176 va_start (v,p);
3177 s = g (p, va_arg (v,int));
3178 va_end (v);
3179 return s;
3180 }
3181
3182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3183 function prototypes and stuff, but not '\xHH' hex character constants.
3184 These don't provoke an error unfortunately, instead are silently treated
3185 as 'x'. The following induces an error, until -std is added to get
3186 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3187 array size at least. It's necessary to write '\x00'==0 to get something
3188 that's true only with -std. */
3189 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3190
3191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3192 inside strings and character constants. */
3193 #define FOO(x) 'x'
3194 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3195
3196 int test (int i, double x);
3197 struct s1 {int (*f) (int a);};
3198 struct s2 {int (*f) (double a);};
3199 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3200 int argc;
3201 char **argv;
3202 int
3203 main ()
3204 {
3205 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3206 ;
3207 return 0;
3208 }
3209 _ACEOF
3210 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3211 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3212 do
3213 CC="$ac_save_CC $ac_arg"
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3222 ac_status=$?
3223 grep -v '^ *+' conftest.er1 >conftest.err
3224 rm -f conftest.er1
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } && {
3228 test -z "$ac_c_werror_flag" ||
3229 test ! -s conftest.err
3230 } && test -s conftest.$ac_objext; then
3231 ac_cv_prog_cc_c89=$ac_arg
3232 else
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext
3240 test "x$ac_cv_prog_cc_c89" != "xno" && break
3241 done
3242 rm -f conftest.$ac_ext
3243 CC=$ac_save_CC
3244
3245 fi
3246 # AC_CACHE_VAL
3247 case "x$ac_cv_prog_cc_c89" in
3248 x)
3249 { echo "$as_me:$LINENO: result: none needed" >&5
3250 echo "${ECHO_T}none needed" >&6; } ;;
3251 xno)
3252 { echo "$as_me:$LINENO: result: unsupported" >&5
3253 echo "${ECHO_T}unsupported" >&6; } ;;
3254 *)
3255 CC="$CC $ac_cv_prog_cc_c89"
3256 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3258 esac
3259
3260
3261 ac_ext=c
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266 DEPDIR="${am__leading_dot}deps"
3267
3268 ac_config_commands="$ac_config_commands depfiles"
3269
3270
3271 am_make=${MAKE-make}
3272 cat > confinc << 'END'
3273 am__doit:
3274 @echo done
3275 .PHONY: am__doit
3276 END
3277 # If we don't find an include directive, just comment out the code.
3278 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3279 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3280 am__include="#"
3281 am__quote=
3282 _am_result=none
3283 # First try GNU make style include.
3284 echo "include confinc" > confmf
3285 # We grep out `Entering directory' and `Leaving directory'
3286 # messages which can occur if `w' ends up in MAKEFLAGS.
3287 # In particular we don't look at `^make:' because GNU make might
3288 # be invoked under some other name (usually "gmake"), in which
3289 # case it prints its new name instead of `make'.
3290 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3291 am__include=include
3292 am__quote=
3293 _am_result=GNU
3294 fi
3295 # Now try BSD make style include.
3296 if test "$am__include" = "#"; then
3297 echo '.include "confinc"' > confmf
3298 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3299 am__include=.include
3300 am__quote="\""
3301 _am_result=BSD
3302 fi
3303 fi
3304
3305
3306 { echo "$as_me:$LINENO: result: $_am_result" >&5
3307 echo "${ECHO_T}$_am_result" >&6; }
3308 rm -f confinc confmf
3309
3310 # Check whether --enable-dependency-tracking was given.
3311 if test "${enable_dependency_tracking+set}" = set; then
3312 enableval=$enable_dependency_tracking;
3313 fi
3314
3315 if test "x$enable_dependency_tracking" != xno; then
3316 am_depcomp="$ac_aux_dir/depcomp"
3317 AMDEPBACKSLASH='\'
3318 fi
3319 if test "x$enable_dependency_tracking" != xno; then
3320 AMDEP_TRUE=
3321 AMDEP_FALSE='#'
3322 else
3323 AMDEP_TRUE='#'
3324 AMDEP_FALSE=
3325 fi
3326
3327
3328
3329 depcc="$CC" am_compiler_list=
3330
3331 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3332 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3333 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3337 # We make a subdir and do the tests there. Otherwise we can end up
3338 # making bogus files that we don't know about and never remove. For
3339 # instance it was reported that on HP-UX the gcc test will end up
3340 # making a dummy file named `D' -- because `-MD' means `put the output
3341 # in D'.
3342 mkdir conftest.dir
3343 # Copy depcomp to subdir because otherwise we won't find it if we're
3344 # using a relative directory.
3345 cp "$am_depcomp" conftest.dir
3346 cd conftest.dir
3347 # We will build objects and dependencies in a subdirectory because
3348 # it helps to detect inapplicable dependency modes. For instance
3349 # both Tru64's cc and ICC support -MD to output dependencies as a
3350 # side effect of compilation, but ICC will put the dependencies in
3351 # the current directory while Tru64 will put them in the object
3352 # directory.
3353 mkdir sub
3354
3355 am_cv_CC_dependencies_compiler_type=none
3356 if test "$am_compiler_list" = ""; then
3357 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3358 fi
3359 for depmode in $am_compiler_list; do
3360 # Setup a source with many dependencies, because some compilers
3361 # like to wrap large dependency lists on column 80 (with \), and
3362 # we should not choose a depcomp mode which is confused by this.
3363 #
3364 # We need to recreate these files for each test, as the compiler may
3365 # overwrite some of them when testing with obscure command lines.
3366 # This happens at least with the AIX C compiler.
3367 : > sub/conftest.c
3368 for i in 1 2 3 4 5 6; do
3369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3370 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3371 # Solaris 8's {/usr,}/bin/sh.
3372 touch sub/conftst$i.h
3373 done
3374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3375
3376 case $depmode in
3377 nosideeffect)
3378 # after this tag, mechanisms are not by side-effect, so they'll
3379 # only be used when explicitly requested
3380 if test "x$enable_dependency_tracking" = xyes; then
3381 continue
3382 else
3383 break
3384 fi
3385 ;;
3386 none) break ;;
3387 esac
3388 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3389 # mode. It turns out that the SunPro C++ compiler does not properly
3390 # handle `-M -o', and we need to detect this.
3391 if depmode=$depmode \
3392 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3393 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3394 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3395 >/dev/null 2>conftest.err &&
3396 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3397 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3398 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3399 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3400 # icc doesn't choke on unknown options, it will just issue warnings
3401 # or remarks (even with -Werror). So we grep stderr for any message
3402 # that says an option was ignored or not supported.
3403 # When given -MP, icc 7.0 and 7.1 complain thusly:
3404 # icc: Command line warning: ignoring option '-M'; no argument required
3405 # The diagnosis changed in icc 8.0:
3406 # icc: Command line remark: option '-MP' not supported
3407 if (grep 'ignoring option' conftest.err ||
3408 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3409 am_cv_CC_dependencies_compiler_type=$depmode
3410 break
3411 fi
3412 fi
3413 done
3414
3415 cd ..
3416 rm -rf conftest.dir
3417 else
3418 am_cv_CC_dependencies_compiler_type=none
3419 fi
3420
3421 fi
3422 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3423 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3424 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3425
3426 if
3427 test "x$enable_dependency_tracking" != xno \
3428 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3429 am__fastdepCC_TRUE=
3430 am__fastdepCC_FALSE='#'
3431 else
3432 am__fastdepCC_TRUE='#'
3433 am__fastdepCC_FALSE=
3434 fi
3435
3436
3437 ac_ext=cpp
3438 ac_cpp='$CXXCPP $CPPFLAGS'
3439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3442 if test -z "$CXX"; then
3443 if test -n "$CCC"; then
3444 CXX=$CCC
3445 else
3446 if test -n "$ac_tool_prefix"; then
3447 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3448 do
3449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3453 if test "${ac_cv_prog_CXX+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 if test -n "$CXX"; then
3457 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470 done
3471 done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 CXX=$ac_cv_prog_CXX
3477 if test -n "$CXX"; then
3478 { echo "$as_me:$LINENO: result: $CXX" >&5
3479 echo "${ECHO_T}$CXX" >&6; }
3480 else
3481 { echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6; }
3483 fi
3484
3485
3486 test -n "$CXX" && break
3487 done
3488 fi
3489 if test -z "$CXX"; then
3490 ac_ct_CXX=$CXX
3491 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3492 do
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3497 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 if test -n "$ac_ct_CXX"; then
3501 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_ac_ct_CXX="$ac_prog"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3521 if test -n "$ac_ct_CXX"; then
3522 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3523 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3524 else
3525 { echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6; }
3527 fi
3528
3529
3530 test -n "$ac_ct_CXX" && break
3531 done
3532
3533 if test "x$ac_ct_CXX" = x; then
3534 CXX="g++"
3535 else
3536 case $cross_compiling:$ac_tool_warned in
3537 yes:)
3538 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3539 whose name does not start with the host triplet. If you think this
3540 configuration is useful to you, please write to autoconf@gnu.org." >&5
3541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3542 whose name does not start with the host triplet. If you think this
3543 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3544 ac_tool_warned=yes ;;
3545 esac
3546 CXX=$ac_ct_CXX
3547 fi
3548 fi
3549
3550 fi
3551 fi
3552 # Provide some information about the compiler.
3553 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3554 ac_compiler=`set X $ac_compile; echo $2`
3555 { (ac_try="$ac_compiler --version >&5"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compiler --version >&5") 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }
3565 { (ac_try="$ac_compiler -v >&5"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compiler -v >&5") 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
3575 { (ac_try="$ac_compiler -V >&5"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compiler -V >&5") 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }
3585
3586 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3587 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3588 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591 cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h. */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597
3598 int
3599 main ()
3600 {
3601 #ifndef __GNUC__
3602 choke me
3603 #endif
3604
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_compile") 2>conftest.er1
3617 ac_status=$?
3618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && {
3623 test -z "$ac_cxx_werror_flag" ||
3624 test ! -s conftest.err
3625 } && test -s conftest.$ac_objext; then
3626 ac_compiler_gnu=yes
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 ac_compiler_gnu=no
3632 fi
3633
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3636
3637 fi
3638 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3639 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3640 GXX=`test $ac_compiler_gnu = yes && echo yes`
3641 ac_test_CXXFLAGS=${CXXFLAGS+set}
3642 ac_save_CXXFLAGS=$CXXFLAGS
3643 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3644 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3645 if test "${ac_cv_prog_cxx_g+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3649 ac_cxx_werror_flag=yes
3650 ac_cv_prog_cxx_g=no
3651 CXXFLAGS="-g"
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 rm -f conftest.$ac_objext
3668 if { (ac_try="$ac_compile"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_compile") 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } && {
3681 test -z "$ac_cxx_werror_flag" ||
3682 test ! -s conftest.err
3683 } && test -s conftest.$ac_objext; then
3684 ac_cv_prog_cxx_g=yes
3685 else
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3688
3689 CXXFLAGS=""
3690 cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h. */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696
3697 int
3698 main ()
3699 {
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 rm -f conftest.$ac_objext
3706 if { (ac_try="$ac_compile"
3707 case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710 esac
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712 (eval "$ac_compile") 2>conftest.er1
3713 ac_status=$?
3714 grep -v '^ *+' conftest.er1 >conftest.err
3715 rm -f conftest.er1
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } && {
3719 test -z "$ac_cxx_werror_flag" ||
3720 test ! -s conftest.err
3721 } && test -s conftest.$ac_objext; then
3722 :
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3728 CXXFLAGS="-g"
3729 cat >conftest.$ac_ext <<_ACEOF
3730 /* confdefs.h. */
3731 _ACEOF
3732 cat confdefs.h >>conftest.$ac_ext
3733 cat >>conftest.$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3735
3736 int
3737 main ()
3738 {
3739
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 rm -f conftest.$ac_objext
3745 if { (ac_try="$ac_compile"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_compile") 2>conftest.er1
3752 ac_status=$?
3753 grep -v '^ *+' conftest.er1 >conftest.err
3754 rm -f conftest.er1
3755 cat conftest.err >&5
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } && {
3758 test -z "$ac_cxx_werror_flag" ||
3759 test ! -s conftest.err
3760 } && test -s conftest.$ac_objext; then
3761 ac_cv_prog_cxx_g=yes
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766
3767 fi
3768
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3770 fi
3771
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 fi
3774
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3777 fi
3778 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3779 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3780 if test "$ac_test_CXXFLAGS" = set; then
3781 CXXFLAGS=$ac_save_CXXFLAGS
3782 elif test $ac_cv_prog_cxx_g = yes; then
3783 if test "$GXX" = yes; then
3784 CXXFLAGS="-g -O2"
3785 else
3786 CXXFLAGS="-g"
3787 fi
3788 else
3789 if test "$GXX" = yes; then
3790 CXXFLAGS="-O2"
3791 else
3792 CXXFLAGS=
3793 fi
3794 fi
3795 ac_ext=c
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800
3801 depcc="$CXX" am_compiler_list=
3802
3803 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3804 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3805 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3809 # We make a subdir and do the tests there. Otherwise we can end up
3810 # making bogus files that we don't know about and never remove. For
3811 # instance it was reported that on HP-UX the gcc test will end up
3812 # making a dummy file named `D' -- because `-MD' means `put the output
3813 # in D'.
3814 mkdir conftest.dir
3815 # Copy depcomp to subdir because otherwise we won't find it if we're
3816 # using a relative directory.
3817 cp "$am_depcomp" conftest.dir
3818 cd conftest.dir
3819 # We will build objects and dependencies in a subdirectory because
3820 # it helps to detect inapplicable dependency modes. For instance
3821 # both Tru64's cc and ICC support -MD to output dependencies as a
3822 # side effect of compilation, but ICC will put the dependencies in
3823 # the current directory while Tru64 will put them in the object
3824 # directory.
3825 mkdir sub
3826
3827 am_cv_CXX_dependencies_compiler_type=none
3828 if test "$am_compiler_list" = ""; then
3829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3830 fi
3831 for depmode in $am_compiler_list; do
3832 # Setup a source with many dependencies, because some compilers
3833 # like to wrap large dependency lists on column 80 (with \), and
3834 # we should not choose a depcomp mode which is confused by this.
3835 #
3836 # We need to recreate these files for each test, as the compiler may
3837 # overwrite some of them when testing with obscure command lines.
3838 # This happens at least with the AIX C compiler.
3839 : > sub/conftest.c
3840 for i in 1 2 3 4 5 6; do
3841 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3842 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3843 # Solaris 8's {/usr,}/bin/sh.
3844 touch sub/conftst$i.h
3845 done
3846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3847
3848 case $depmode in
3849 nosideeffect)
3850 # after this tag, mechanisms are not by side-effect, so they'll
3851 # only be used when explicitly requested
3852 if test "x$enable_dependency_tracking" = xyes; then
3853 continue
3854 else
3855 break
3856 fi
3857 ;;
3858 none) break ;;
3859 esac
3860 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3861 # mode. It turns out that the SunPro C++ compiler does not properly
3862 # handle `-M -o', and we need to detect this.
3863 if depmode=$depmode \
3864 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3866 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3867 >/dev/null 2>conftest.err &&
3868 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3869 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3870 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3871 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3872 # icc doesn't choke on unknown options, it will just issue warnings
3873 # or remarks (even with -Werror). So we grep stderr for any message
3874 # that says an option was ignored or not supported.
3875 # When given -MP, icc 7.0 and 7.1 complain thusly:
3876 # icc: Command line warning: ignoring option '-M'; no argument required
3877 # The diagnosis changed in icc 8.0:
3878 # icc: Command line remark: option '-MP' not supported
3879 if (grep 'ignoring option' conftest.err ||
3880 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3881 am_cv_CXX_dependencies_compiler_type=$depmode
3882 break
3883 fi
3884 fi
3885 done
3886
3887 cd ..
3888 rm -rf conftest.dir
3889 else
3890 am_cv_CXX_dependencies_compiler_type=none
3891 fi
3892
3893 fi
3894 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3895 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3896 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3897
3898 if
3899 test "x$enable_dependency_tracking" != xno \
3900 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3901 am__fastdepCXX_TRUE=
3902 am__fastdepCXX_FALSE='#'
3903 else
3904 am__fastdepCXX_TRUE='#'
3905 am__fastdepCXX_FALSE=
3906 fi
3907
3908
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3916 # On Suns, sometimes $CPP names a directory.
3917 if test -n "$CPP" && test -d "$CPP"; then
3918 CPP=
3919 fi
3920 if test -z "$CPP"; then
3921 if test "${ac_cv_prog_CPP+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 # Double quotes because CPP needs to be expanded
3925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3926 do
3927 ac_preproc_ok=false
3928 for ac_c_preproc_warn_flag in '' yes
3929 do
3930 # Use a header file that comes with gcc, so configuring glibc
3931 # with a fresh cross-compiler works.
3932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3933 # <limits.h> exists even on freestanding compilers.
3934 # On the NeXT, cc -E runs the code through the compiler's parser,
3935 # not just through cpp. "Syntax error" is here to catch this case.
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 #ifdef __STDC__
3943 # include <limits.h>
3944 #else
3945 # include <assert.h>
3946 #endif
3947 Syntax error
3948 _ACEOF
3949 if { (ac_try="$ac_cpp conftest.$ac_ext"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } >/dev/null && {
3962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3964 }; then
3965 :
3966 else
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 # Broken: fails on valid input.
3971 continue
3972 fi
3973
3974 rm -f conftest.err conftest.$ac_ext
3975
3976 # OK, works on sane cases. Now check whether nonexistent headers
3977 # can be detected and how.
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #include <ac_nonexistent.h>
3985 _ACEOF
3986 if { (ac_try="$ac_cpp conftest.$ac_ext"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } >/dev/null && {
3999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 }; then
4002 # Broken: success on invalid input.
4003 continue
4004 else
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 # Passes both tests.
4009 ac_preproc_ok=:
4010 break
4011 fi
4012
4013 rm -f conftest.err conftest.$ac_ext
4014
4015 done
4016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4017 rm -f conftest.err conftest.$ac_ext
4018 if $ac_preproc_ok; then
4019 break
4020 fi
4021
4022 done
4023 ac_cv_prog_CPP=$CPP
4024
4025 fi
4026 CPP=$ac_cv_prog_CPP
4027 else
4028 ac_cv_prog_CPP=$CPP
4029 fi
4030 { echo "$as_me:$LINENO: result: $CPP" >&5
4031 echo "${ECHO_T}$CPP" >&6; }
4032 ac_preproc_ok=false
4033 for ac_c_preproc_warn_flag in '' yes
4034 do
4035 # Use a header file that comes with gcc, so configuring glibc
4036 # with a fresh cross-compiler works.
4037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038 # <limits.h> exists even on freestanding compilers.
4039 # On the NeXT, cc -E runs the code through the compiler's parser,
4040 # not just through cpp. "Syntax error" is here to catch this case.
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #ifdef __STDC__
4048 # include <limits.h>
4049 #else
4050 # include <assert.h>
4051 #endif
4052 Syntax error
4053 _ACEOF
4054 if { (ac_try="$ac_cpp conftest.$ac_ext"
4055 case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null && {
4067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4069 }; then
4070 :
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075 # Broken: fails on valid input.
4076 continue
4077 fi
4078
4079 rm -f conftest.err conftest.$ac_ext
4080
4081 # OK, works on sane cases. Now check whether nonexistent headers
4082 # can be detected and how.
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #include <ac_nonexistent.h>
4090 _ACEOF
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null && {
4104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 }; then
4107 # Broken: success on invalid input.
4108 continue
4109 else
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 # Passes both tests.
4114 ac_preproc_ok=:
4115 break
4116 fi
4117
4118 rm -f conftest.err conftest.$ac_ext
4119
4120 done
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then
4124 :
4125 else
4126 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4127 See \`config.log' for more details." >&5
4128 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4129 See \`config.log' for more details." >&2;}
4130 { (exit 1); exit 1; }; }
4131 fi
4132
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149 if test "${ac_cv_prog_CC+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 CC=$ac_cv_prog_CC
4173 if test -n "$CC"; then
4174 { echo "$as_me:$LINENO: result: $CC" >&5
4175 echo "${ECHO_T}$CC" >&6; }
4176 else
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4179 fi
4180
4181
4182 fi
4183 if test -z "$ac_cv_prog_CC"; then
4184 ac_ct_CC=$CC
4185 # Extract the first word of "gcc", so it can be a program name with args.
4186 set dummy gcc; ac_word=$2
4187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 if test -n "$ac_ct_CC"; then
4193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_prog_ac_ct_CC="gcc"
4203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi
4211 fi
4212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4213 if test -n "$ac_ct_CC"; then
4214 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4215 echo "${ECHO_T}$ac_ct_CC" >&6; }
4216 else
4217 { echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6; }
4219 fi
4220
4221 if test "x$ac_ct_CC" = x; then
4222 CC=""
4223 else
4224 case $cross_compiling:$ac_tool_warned in
4225 yes:)
4226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4227 whose name does not start with the host triplet. If you think this
4228 configuration is useful to you, please write to autoconf@gnu.org." >&5
4229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4230 whose name does not start with the host triplet. If you think this
4231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4232 ac_tool_warned=yes ;;
4233 esac
4234 CC=$ac_ct_CC
4235 fi
4236 else
4237 CC="$ac_cv_prog_CC"
4238 fi
4239
4240 if test -z "$CC"; then
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}cc; ac_word=$2
4244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4246 if test "${ac_cv_prog_CC+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if test -n "$CC"; then
4250 ac_cv_prog_CC="$CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_CC="${ac_tool_prefix}cc"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 CC=$ac_cv_prog_CC
4270 if test -n "$CC"; then
4271 { echo "$as_me:$LINENO: result: $CC" >&5
4272 echo "${ECHO_T}$CC" >&6; }
4273 else
4274 { echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6; }
4276 fi
4277
4278
4279 fi
4280 fi
4281 if test -z "$CC"; then
4282 # Extract the first word of "cc", so it can be a program name with args.
4283 set dummy cc; ac_word=$2
4284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4286 if test "${ac_cv_prog_CC+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 if test -n "$CC"; then
4290 ac_cv_prog_CC="$CC" # Let the user override the test.
4291 else
4292 ac_prog_rejected=no
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4301 ac_prog_rejected=yes
4302 continue
4303 fi
4304 ac_cv_prog_CC="cc"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4307 fi
4308 done
4309 done
4310 IFS=$as_save_IFS
4311
4312 if test $ac_prog_rejected = yes; then
4313 # We found a bogon in the path, so make sure we never use it.
4314 set dummy $ac_cv_prog_CC
4315 shift
4316 if test $# != 0; then
4317 # We chose a different compiler from the bogus one.
4318 # However, it has the same basename, so the bogon will be chosen
4319 # first if we set CC to just the basename; use the full file name.
4320 shift
4321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4322 fi
4323 fi
4324 fi
4325 fi
4326 CC=$ac_cv_prog_CC
4327 if test -n "$CC"; then
4328 { echo "$as_me:$LINENO: result: $CC" >&5
4329 echo "${ECHO_T}$CC" >&6; }
4330 else
4331 { echo "$as_me:$LINENO: result: no" >&5
4332 echo "${ECHO_T}no" >&6; }
4333 fi
4334
4335
4336 fi
4337 if test -z "$CC"; then
4338 if test -n "$ac_tool_prefix"; then
4339 for ac_prog in cl.exe
4340 do
4341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4345 if test "${ac_cv_prog_CC+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 if test -n "$CC"; then
4349 ac_cv_prog_CC="$CC" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362 done
4363 done
4364 IFS=$as_save_IFS
4365
4366 fi
4367 fi
4368 CC=$ac_cv_prog_CC
4369 if test -n "$CC"; then
4370 { echo "$as_me:$LINENO: result: $CC" >&5
4371 echo "${ECHO_T}$CC" >&6; }
4372 else
4373 { echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6; }
4375 fi
4376
4377
4378 test -n "$CC" && break
4379 done
4380 fi
4381 if test -z "$CC"; then
4382 ac_ct_CC=$CC
4383 for ac_prog in cl.exe
4384 do
4385 # Extract the first word of "$ac_prog", so it can be a program name with args.
4386 set dummy $ac_prog; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 if test -n "$ac_ct_CC"; then
4393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_ac_ct_CC="$ac_prog"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4413 if test -n "$ac_ct_CC"; then
4414 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4415 echo "${ECHO_T}$ac_ct_CC" >&6; }
4416 else
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4419 fi
4420
4421
4422 test -n "$ac_ct_CC" && break
4423 done
4424
4425 if test "x$ac_ct_CC" = x; then
4426 CC=""
4427 else
4428 case $cross_compiling:$ac_tool_warned in
4429 yes:)
4430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4431 whose name does not start with the host triplet. If you think this
4432 configuration is useful to you, please write to autoconf@gnu.org." >&5
4433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4434 whose name does not start with the host triplet. If you think this
4435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4436 ac_tool_warned=yes ;;
4437 esac
4438 CC=$ac_ct_CC
4439 fi
4440 fi
4441
4442 fi
4443
4444
4445 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4446 See \`config.log' for more details." >&5
4447 echo "$as_me: error: no acceptable C compiler found in \$PATH
4448 See \`config.log' for more details." >&2;}
4449 { (exit 1); exit 1; }; }
4450
4451 # Provide some information about the compiler.
4452 echo "$as_me:$LINENO: checking for C compiler version" >&5
4453 ac_compiler=`set X $ac_compile; echo $2`
4454 { (ac_try="$ac_compiler --version >&5"
4455 case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_compiler --version >&5") 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }
4464 { (ac_try="$ac_compiler -v >&5"
4465 case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_compiler -v >&5") 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }
4474 { (ac_try="$ac_compiler -V >&5"
4475 case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478 esac
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_compiler -V >&5") 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }
4484
4485 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4486 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4487 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490 cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h. */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4496
4497 int
4498 main ()
4499 {
4500 #ifndef __GNUC__
4501 choke me
4502 #endif
4503
4504 ;
4505 return 0;
4506 }
4507 _ACEOF
4508 rm -f conftest.$ac_objext
4509 if { (ac_try="$ac_compile"
4510 case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4515 (eval "$ac_compile") 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } && {
4522 test -z "$ac_c_werror_flag" ||
4523 test ! -s conftest.err
4524 } && test -s conftest.$ac_objext; then
4525 ac_compiler_gnu=yes
4526 else
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 ac_compiler_gnu=no
4531 fi
4532
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4535
4536 fi
4537 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4538 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4539 GCC=`test $ac_compiler_gnu = yes && echo yes`
4540 ac_test_CFLAGS=${CFLAGS+set}
4541 ac_save_CFLAGS=$CFLAGS
4542 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4543 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4544 if test "${ac_cv_prog_cc_g+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 ac_save_c_werror_flag=$ac_c_werror_flag
4548 ac_c_werror_flag=yes
4549 ac_cv_prog_cc_g=no
4550 CFLAGS="-g"
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557
4558 int
4559 main ()
4560 {
4561
4562 ;
4563 return 0;
4564 }
4565 _ACEOF
4566 rm -f conftest.$ac_objext
4567 if { (ac_try="$ac_compile"
4568 case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571 esac
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_compile") 2>conftest.er1
4574 ac_status=$?
4575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } && {
4580 test -z "$ac_c_werror_flag" ||
4581 test ! -s conftest.err
4582 } && test -s conftest.$ac_objext; then
4583 ac_cv_prog_cc_g=yes
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 CFLAGS=""
4589 cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h. */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4595
4596 int
4597 main ()
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 } && test -s conftest.$ac_objext; then
4621 :
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ac_c_werror_flag=$ac_save_c_werror_flag
4627 CFLAGS="-g"
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634
4635 int
4636 main ()
4637 {
4638
4639 ;
4640 return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_compile") 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } && {
4657 test -z "$ac_c_werror_flag" ||
4658 test ! -s conftest.err
4659 } && test -s conftest.$ac_objext; then
4660 ac_cv_prog_cc_g=yes
4661 else
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665
4666 fi
4667
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 fi
4670
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 fi
4673
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4676 fi
4677 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4678 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4679 if test "$ac_test_CFLAGS" = set; then
4680 CFLAGS=$ac_save_CFLAGS
4681 elif test $ac_cv_prog_cc_g = yes; then
4682 if test "$GCC" = yes; then
4683 CFLAGS="-g -O2"
4684 else
4685 CFLAGS="-g"
4686 fi
4687 else
4688 if test "$GCC" = yes; then
4689 CFLAGS="-O2"
4690 else
4691 CFLAGS=
4692 fi
4693 fi
4694 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4695 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4696 if test "${ac_cv_prog_cc_c89+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 ac_cv_prog_cc_c89=no
4700 ac_save_CC=$CC
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 #include <stdarg.h>
4708 #include <stdio.h>
4709 #include <sys/types.h>
4710 #include <sys/stat.h>
4711 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4712 struct buf { int x; };
4713 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4714 static char *e (p, i)
4715 char **p;
4716 int i;
4717 {
4718 return p[i];
4719 }
4720 static char *f (char * (*g) (char **, int), char **p, ...)
4721 {
4722 char *s;
4723 va_list v;
4724 va_start (v,p);
4725 s = g (p, va_arg (v,int));
4726 va_end (v);
4727 return s;
4728 }
4729
4730 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4731 function prototypes and stuff, but not '\xHH' hex character constants.
4732 These don't provoke an error unfortunately, instead are silently treated
4733 as 'x'. The following induces an error, until -std is added to get
4734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4735 array size at least. It's necessary to write '\x00'==0 to get something
4736 that's true only with -std. */
4737 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4738
4739 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4740 inside strings and character constants. */
4741 #define FOO(x) 'x'
4742 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4743
4744 int test (int i, double x);
4745 struct s1 {int (*f) (int a);};
4746 struct s2 {int (*f) (double a);};
4747 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4748 int argc;
4749 char **argv;
4750 int
4751 main ()
4752 {
4753 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4754 ;
4755 return 0;
4756 }
4757 _ACEOF
4758 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4759 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4760 do
4761 CC="$ac_save_CC $ac_arg"
4762 rm -f conftest.$ac_objext
4763 if { (ac_try="$ac_compile"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_compile") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } && {
4776 test -z "$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4778 } && test -s conftest.$ac_objext; then
4779 ac_cv_prog_cc_c89=$ac_arg
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784
4785 fi
4786
4787 rm -f core conftest.err conftest.$ac_objext
4788 test "x$ac_cv_prog_cc_c89" != "xno" && break
4789 done
4790 rm -f conftest.$ac_ext
4791 CC=$ac_save_CC
4792
4793 fi
4794 # AC_CACHE_VAL
4795 case "x$ac_cv_prog_cc_c89" in
4796 x)
4797 { echo "$as_me:$LINENO: result: none needed" >&5
4798 echo "${ECHO_T}none needed" >&6; } ;;
4799 xno)
4800 { echo "$as_me:$LINENO: result: unsupported" >&5
4801 echo "${ECHO_T}unsupported" >&6; } ;;
4802 *)
4803 CC="$CC $ac_cv_prog_cc_c89"
4804 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4805 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4806 esac
4807
4808
4809 ac_ext=c
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814
4815 depcc="$CC" am_compiler_list=
4816
4817 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4823 # We make a subdir and do the tests there. Otherwise we can end up
4824 # making bogus files that we don't know about and never remove. For
4825 # instance it was reported that on HP-UX the gcc test will end up
4826 # making a dummy file named `D' -- because `-MD' means `put the output
4827 # in D'.
4828 mkdir conftest.dir
4829 # Copy depcomp to subdir because otherwise we won't find it if we're
4830 # using a relative directory.
4831 cp "$am_depcomp" conftest.dir
4832 cd conftest.dir
4833 # We will build objects and dependencies in a subdirectory because
4834 # it helps to detect inapplicable dependency modes. For instance
4835 # both Tru64's cc and ICC support -MD to output dependencies as a
4836 # side effect of compilation, but ICC will put the dependencies in
4837 # the current directory while Tru64 will put them in the object
4838 # directory.
4839 mkdir sub
4840
4841 am_cv_CC_dependencies_compiler_type=none
4842 if test "$am_compiler_list" = ""; then
4843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4844 fi
4845 for depmode in $am_compiler_list; do
4846 # Setup a source with many dependencies, because some compilers
4847 # like to wrap large dependency lists on column 80 (with \), and
4848 # we should not choose a depcomp mode which is confused by this.
4849 #
4850 # We need to recreate these files for each test, as the compiler may
4851 # overwrite some of them when testing with obscure command lines.
4852 # This happens at least with the AIX C compiler.
4853 : > sub/conftest.c
4854 for i in 1 2 3 4 5 6; do
4855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4856 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4857 # Solaris 8's {/usr,}/bin/sh.
4858 touch sub/conftst$i.h
4859 done
4860 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4861
4862 case $depmode in
4863 nosideeffect)
4864 # after this tag, mechanisms are not by side-effect, so they'll
4865 # only be used when explicitly requested
4866 if test "x$enable_dependency_tracking" = xyes; then
4867 continue
4868 else
4869 break
4870 fi
4871 ;;
4872 none) break ;;
4873 esac
4874 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4875 # mode. It turns out that the SunPro C++ compiler does not properly
4876 # handle `-M -o', and we need to detect this.
4877 if depmode=$depmode \
4878 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4879 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4880 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4881 >/dev/null 2>conftest.err &&
4882 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4883 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4884 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4885 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4886 # icc doesn't choke on unknown options, it will just issue warnings
4887 # or remarks (even with -Werror). So we grep stderr for any message
4888 # that says an option was ignored or not supported.
4889 # When given -MP, icc 7.0 and 7.1 complain thusly:
4890 # icc: Command line warning: ignoring option '-M'; no argument required
4891 # The diagnosis changed in icc 8.0:
4892 # icc: Command line remark: option '-MP' not supported
4893 if (grep 'ignoring option' conftest.err ||
4894 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4895 am_cv_CC_dependencies_compiler_type=$depmode
4896 break
4897 fi
4898 fi
4899 done
4900
4901 cd ..
4902 rm -rf conftest.dir
4903 else
4904 am_cv_CC_dependencies_compiler_type=none
4905 fi
4906
4907 fi
4908 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4909 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4911
4912 if
4913 test "x$enable_dependency_tracking" != xno \
4914 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4915 am__fastdepCC_TRUE=
4916 am__fastdepCC_FALSE='#'
4917 else
4918 am__fastdepCC_TRUE='#'
4919 am__fastdepCC_FALSE=
4920 fi
4921
4922
4923
4924 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4925
4926 if test "x$CC" != xcc; then
4927 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4928 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4929 else
4930 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4931 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4932 fi
4933 set dummy $CC; ac_cc=`echo $2 |
4934 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4935 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4944
4945 int
4946 main ()
4947 {
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 # Make sure it works both with $CC and with simple cc.
4954 # We do the test twice because some compilers refuse to overwrite an
4955 # existing .o file with -o, though they will create one.
4956 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4957 rm -f conftest2.*
4958 if { (case "(($ac_try" in
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4961 esac
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_try") 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_try") 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); };
4976 then
4977 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4978 if test "x$CC" != xcc; then
4979 # Test first that cc exists at all.
4980 if { ac_try='cc -c conftest.$ac_ext >&5'
4981 { (case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_try") 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4991 rm -f conftest2.*
4992 if { (case "(($ac_try" in
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4995 esac
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_try") 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } &&
5001 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_try") 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); };
5010 then
5011 # cc works too.
5012 :
5013 else
5014 # cc exists but doesn't like -o.
5015 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5016 fi
5017 fi
5018 fi
5019 else
5020 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5021 fi
5022 rm -f core conftest*
5023
5024 fi
5025 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5026 { echo "$as_me:$LINENO: result: yes" >&5
5027 echo "${ECHO_T}yes" >&6; }
5028 else
5029 { echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6; }
5031
5032 cat >>confdefs.h <<\_ACEOF
5033 #define NO_MINUS_C_MINUS_O 1
5034 _ACEOF
5035
5036 fi
5037
5038 # FIXME: we rely on the cache variable name because
5039 # there is no other way.
5040 set dummy $CC
5041 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5042 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5043 # Losing compiler, so override with the script.
5044 # FIXME: It is wrong to rewrite CC.
5045 # But if we don't then we get into trouble of one sort or another.
5046 # A longer-term fix would be to have automake use am__CC in this case,
5047 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5048 CC="$am_aux_dir/compile $CC"
5049 fi
5050
5051
5052 { echo "$as_me:$LINENO: checking for function prototypes" >&5
5053 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
5054 if test "$ac_cv_prog_cc_c89" != no; then
5055 { echo "$as_me:$LINENO: result: yes" >&5
5056 echo "${ECHO_T}yes" >&6; }
5057
5058 cat >>confdefs.h <<\_ACEOF
5059 #define PROTOTYPES 1
5060 _ACEOF
5061
5062
5063 cat >>confdefs.h <<\_ACEOF
5064 #define __PROTOTYPES 1
5065 _ACEOF
5066
5067 else
5068 { echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6; }
5070 fi
5071
5072
5073
5074 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5075 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5076 if test "${ac_cv_path_GREP+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 # Extract the first word of "grep ggrep" to use in msg output
5080 if test -z "$GREP"; then
5081 set dummy grep ggrep; ac_prog_name=$2
5082 if test "${ac_cv_path_GREP+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 ac_path_GREP_found=false
5086 # Loop through the user's path and test for each of PROGNAME-LIST
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_prog in grep ggrep; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5095 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5096 # Check for GNU ac_path_GREP and select it if it is found.
5097 # Check for GNU $ac_path_GREP
5098 case `"$ac_path_GREP" --version 2>&1` in
5099 *GNU*)
5100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5101 *)
5102 ac_count=0
5103 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5104 while :
5105 do
5106 cat "conftest.in" "conftest.in" >"conftest.tmp"
5107 mv "conftest.tmp" "conftest.in"
5108 cp "conftest.in" "conftest.nl"
5109 echo 'GREP' >> "conftest.nl"
5110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112 ac_count=`expr $ac_count + 1`
5113 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5114 # Best one so far, save it but keep looking for a better one
5115 ac_cv_path_GREP="$ac_path_GREP"
5116 ac_path_GREP_max=$ac_count
5117 fi
5118 # 10*(2^10) chars as input seems more than enough
5119 test $ac_count -gt 10 && break
5120 done
5121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122 esac
5123
5124
5125 $ac_path_GREP_found && break 3
5126 done
5127 done
5128
5129 done
5130 IFS=$as_save_IFS
5131
5132
5133 fi
5134
5135 GREP="$ac_cv_path_GREP"
5136 if test -z "$GREP"; then
5137 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5138 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5139 { (exit 1); exit 1; }; }
5140 fi
5141
5142 else
5143 ac_cv_path_GREP=$GREP
5144 fi
5145
5146
5147 fi
5148 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5149 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5150 GREP="$ac_cv_path_GREP"
5151
5152
5153 { echo "$as_me:$LINENO: checking for egrep" >&5
5154 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5155 if test "${ac_cv_path_EGREP+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5159 then ac_cv_path_EGREP="$GREP -E"
5160 else
5161 # Extract the first word of "egrep" to use in msg output
5162 if test -z "$EGREP"; then
5163 set dummy egrep; ac_prog_name=$2
5164 if test "${ac_cv_path_EGREP+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167 ac_path_EGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in egrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5183 *)
5184 ac_count=0
5185 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5186 while :
5187 do
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 echo 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 ac_count=`expr $ac_count + 1`
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5199 fi
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5205
5206
5207 $ac_path_EGREP_found && break 3
5208 done
5209 done
5210
5211 done
5212 IFS=$as_save_IFS
5213
5214
5215 fi
5216
5217 EGREP="$ac_cv_path_EGREP"
5218 if test -z "$EGREP"; then
5219 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5220 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5221 { (exit 1); exit 1; }; }
5222 fi
5223
5224 else
5225 ac_cv_path_EGREP=$EGREP
5226 fi
5227
5228
5229 fi
5230 fi
5231 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5232 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5233 EGREP="$ac_cv_path_EGREP"
5234
5235
5236 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5237 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5238 if test "${ac_cv_header_stdc+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h. */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 #include <stdlib.h>
5248 #include <stdarg.h>
5249 #include <string.h>
5250 #include <float.h>
5251
5252 int
5253 main ()
5254 {
5255
5256 ;
5257 return 0;
5258 }
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5262 case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_compile") 2>conftest.er1
5268 ac_status=$?
5269 grep -v '^ *+' conftest.er1 >conftest.err
5270 rm -f conftest.er1
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } && {
5274 test -z "$ac_c_werror_flag" ||
5275 test ! -s conftest.err
5276 } && test -s conftest.$ac_objext; then
5277 ac_cv_header_stdc=yes
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5281
5282 ac_cv_header_stdc=no
5283 fi
5284
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286
5287 if test $ac_cv_header_stdc = yes; then
5288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5289 cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h. */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 #include <string.h>
5296
5297 _ACEOF
5298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5299 $EGREP "memchr" >/dev/null 2>&1; then
5300 :
5301 else
5302 ac_cv_header_stdc=no
5303 fi
5304 rm -f conftest*
5305
5306 fi
5307
5308 if test $ac_cv_header_stdc = yes; then
5309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <stdlib.h>
5317
5318 _ACEOF
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "free" >/dev/null 2>&1; then
5321 :
5322 else
5323 ac_cv_header_stdc=no
5324 fi
5325 rm -f conftest*
5326
5327 fi
5328
5329 if test $ac_cv_header_stdc = yes; then
5330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5331 if test "$cross_compiling" = yes; then
5332 :
5333 else
5334 cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h. */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <ctype.h>
5341 #include <stdlib.h>
5342 #if ((' ' & 0x0FF) == 0x020)
5343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 #else
5346 # define ISLOWER(c) \
5347 (('a' <= (c) && (c) <= 'i') \
5348 || ('j' <= (c) && (c) <= 'r') \
5349 || ('s' <= (c) && (c) <= 'z'))
5350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5351 #endif
5352
5353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5354 int
5355 main ()
5356 {
5357 int i;
5358 for (i = 0; i < 256; i++)
5359 if (XOR (islower (i), ISLOWER (i))
5360 || toupper (i) != TOUPPER (i))
5361 return 2;
5362 return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest$ac_exeext
5366 if { (ac_try="$ac_link"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_link") 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5376 { (case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379 esac
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_try") 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 :
5386 else
5387 echo "$as_me: program exited with status $ac_status" >&5
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ( exit $ac_status )
5392 ac_cv_header_stdc=no
5393 fi
5394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5395 fi
5396
5397
5398 fi
5399 fi
5400 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5401 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5402 if test $ac_cv_header_stdc = yes; then
5403
5404 cat >>confdefs.h <<\_ACEOF
5405 #define STDC_HEADERS 1
5406 _ACEOF
5407
5408 fi
5409
5410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5421 inttypes.h stdint.h unistd.h
5422 do
5423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5436
5437 #include <$ac_header>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.$ac_objext; then
5456 eval "$as_ac_Header=yes"
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 eval "$as_ac_Header=no"
5462 fi
5463
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 fi
5466 ac_res=`eval echo '${'$as_ac_Header'}'`
5467 { echo "$as_me:$LINENO: result: $ac_res" >&5
5468 echo "${ECHO_T}$ac_res" >&6; }
5469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5470 cat >>confdefs.h <<_ACEOF
5471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5472 _ACEOF
5473
5474 fi
5475
5476 done
5477
5478
5479
5480 if test "$ac_cv_prog_cc_stdc" != no; then
5481 U= ANSI2KNR=
5482 else
5483 U=_ ANSI2KNR=./ansi2knr
5484 fi
5485 # Ensure some checks needed by ansi2knr itself.
5486
5487
5488 for ac_header in string.h
5489 do
5490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 fi
5497 ac_res=`eval echo '${'$as_ac_Header'}'`
5498 { echo "$as_me:$LINENO: result: $ac_res" >&5
5499 echo "${ECHO_T}$ac_res" >&6; }
5500 else
5501 # Is the header compilable?
5502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5511 #include <$ac_header>
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && {
5527 test -z "$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest.$ac_objext; then
5530 ac_header_compiler=yes
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 ac_header_compiler=no
5536 fi
5537
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5540 echo "${ECHO_T}$ac_header_compiler" >&6; }
5541
5542 # Is the header present?
5543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 #include <$ac_header>
5552 _ACEOF
5553 if { (ac_try="$ac_cpp conftest.$ac_ext"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } >/dev/null && {
5566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 }; then
5569 ac_header_preproc=yes
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574 ac_header_preproc=no
5575 fi
5576
5577 rm -f conftest.err conftest.$ac_ext
5578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5579 echo "${ECHO_T}$ac_header_preproc" >&6; }
5580
5581 # So? What about this header?
5582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5583 yes:no: )
5584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5588 ac_header_preproc=yes
5589 ;;
5590 no:yes:* )
5591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5603 ( cat <<\_ASBOX
5604 ## ------------------------------------------- ##
5605 ## Report this to systemtap@sources.redhat.com ##
5606 ## ------------------------------------------- ##
5607 _ASBOX
5608 ) | sed "s/^/$as_me: WARNING: /" >&2
5609 ;;
5610 esac
5611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 eval "$as_ac_Header=\$ac_header_preproc"
5617 fi
5618 ac_res=`eval echo '${'$as_ac_Header'}'`
5619 { echo "$as_me:$LINENO: result: $ac_res" >&5
5620 echo "${ECHO_T}$ac_res" >&6; }
5621
5622 fi
5623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5624 cat >>confdefs.h <<_ACEOF
5625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5626 _ACEOF
5627
5628 fi
5629
5630 done
5631
5632
5633 if test -n "$ac_tool_prefix"; then
5634 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5635 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5638 if test "${ac_cv_prog_RANLIB+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 if test -n "$RANLIB"; then
5642 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655 done
5656 done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
5661 RANLIB=$ac_cv_prog_RANLIB
5662 if test -n "$RANLIB"; then
5663 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5664 echo "${ECHO_T}$RANLIB" >&6; }
5665 else
5666 { echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6; }
5668 fi
5669
5670
5671 fi
5672 if test -z "$ac_cv_prog_RANLIB"; then
5673 ac_ct_RANLIB=$RANLIB
5674 # Extract the first word of "ranlib", so it can be a program name with args.
5675 set dummy ranlib; ac_word=$2
5676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5678 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681 if test -n "$ac_ct_RANLIB"; then
5682 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_prog_ac_ct_RANLIB="ranlib"
5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5702 if test -n "$ac_ct_RANLIB"; then
5703 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5704 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5705 else
5706 { echo "$as_me:$LINENO: result: no" >&5
5707 echo "${ECHO_T}no" >&6; }
5708 fi
5709
5710 if test "x$ac_ct_RANLIB" = x; then
5711 RANLIB=":"
5712 else
5713 case $cross_compiling:$ac_tool_warned in
5714 yes:)
5715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5716 whose name does not start with the host triplet. If you think this
5717 configuration is useful to you, please write to autoconf@gnu.org." >&5
5718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5719 whose name does not start with the host triplet. If you think this
5720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5721 ac_tool_warned=yes ;;
5722 esac
5723 RANLIB=$ac_ct_RANLIB
5724 fi
5725 else
5726 RANLIB="$ac_cv_prog_RANLIB"
5727 fi
5728
5729
5730
5731 # Find a good install program. We prefer a C program (faster),
5732 # so one script is as good as another. But avoid the broken or
5733 # incompatible versions:
5734 # SysV /etc/install, /usr/sbin/install
5735 # SunOS /usr/etc/install
5736 # IRIX /sbin/install
5737 # AIX /bin/install
5738 # AmigaOS /C/install, which installs bootblocks on floppy discs
5739 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5740 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5741 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5742 # OS/2's system install, which has a completely different semantic
5743 # ./install, which can be erroneously created by make from ./install.sh.
5744 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5745 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5746 if test -z "$INSTALL"; then
5747 if test "${ac_cv_path_install+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 # Account for people who put trailing slashes in PATH elements.
5756 case $as_dir/ in
5757 ./ | .// | /cC/* | \
5758 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5759 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5760 /usr/ucb/* ) ;;
5761 *)
5762 # OSF1 and SCO ODT 3.0 have their own names for install.
5763 # Don't use installbsd from OSF since it installs stuff as root
5764 # by default.
5765 for ac_prog in ginstall scoinst install; do
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5768 if test $ac_prog = install &&
5769 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5770 # AIX install. It has an incompatible calling convention.
5771 :
5772 elif test $ac_prog = install &&
5773 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5774 # program-specific install script used by HP pwplus--don't use.
5775 :
5776 else
5777 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5778 break 3
5779 fi
5780 fi
5781 done
5782 done
5783 ;;
5784 esac
5785 done
5786 IFS=$as_save_IFS
5787
5788
5789 fi
5790 if test "${ac_cv_path_install+set}" = set; then
5791 INSTALL=$ac_cv_path_install
5792 else
5793 # As a last resort, use the slow shell script. Don't cache a
5794 # value for INSTALL within a source directory, because that will
5795 # break other packages using the cache if that directory is
5796 # removed, or if the value is a relative name.
5797 INSTALL=$ac_install_sh
5798 fi
5799 fi
5800 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5801 echo "${ECHO_T}$INSTALL" >&6; }
5802
5803 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5804 # It thinks the first close brace ends the variable substitution.
5805 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5806
5807 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5808
5809 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5810
5811 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5812 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5813 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5814 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 cat >conftest.make <<\_ACEOF
5818 SHELL = /bin/sh
5819 all:
5820 @echo '@@@%%%=$(MAKE)=@@@%%%'
5821 _ACEOF
5822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5824 *@@@%%%=?*=@@@%%%*)
5825 eval ac_cv_prog_make_${ac_make}_set=yes;;
5826 *)
5827 eval ac_cv_prog_make_${ac_make}_set=no;;
5828 esac
5829 rm -f conftest.make
5830 fi
5831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5832 { echo "$as_me:$LINENO: result: yes" >&5
5833 echo "${ECHO_T}yes" >&6; }
5834 SET_MAKE=
5835 else
5836 { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5838 SET_MAKE="MAKE=${MAKE-make}"
5839 fi
5840
5841
5842
5843
5844 # Check whether --enable-perfmon was given.
5845 if test "${enable_perfmon+set}" = set; then
5846 enableval=$enable_perfmon;
5847 if test "$enable_perfmon" != "no"; then
5848 CPPFLAGS="$CPPFLAGS -DPERFMON"
5849 LIBS="$LIBS -lpfm"
5850 if test "$enable_perfmon" != "yes"; then
5851 CPPFLAGS="$CPPFLAGS -I$enable_perfmon/include"
5852 LDFLAGS="$LDFLAGS -L$enable_perfmon/lib"
5853 fi
5854
5855 { echo "$as_me:$LINENO: checking for pfm_start in -lpfm" >&5
5856 echo $ECHO_N "checking for pfm_start in -lpfm... $ECHO_C" >&6; }
5857 if test "${ac_cv_lib_pfm_pfm_start+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 ac_check_lib_save_LIBS=$LIBS
5861 LIBS="-lpfm $LIBS"
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868
5869 /* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
5872 #ifdef __cplusplus
5873 extern "C"
5874 #endif
5875 char pfm_start ();
5876 int
5877 main ()
5878 {
5879 return pfm_start ();
5880 ;
5881 return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (ac_try="$ac_link"
5886 case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_link") 2>conftest.er1
5892 ac_status=$?
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } && {
5898 test -z "$ac_c_werror_flag" ||
5899 test ! -s conftest.err
5900 } && test -s conftest$ac_exeext &&
5901 $as_test_x conftest$ac_exeext; then
5902 ac_cv_lib_pfm_pfm_start=yes
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_cv_lib_pfm_pfm_start=no
5908 fi
5909
5910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5911 conftest$ac_exeext conftest.$ac_ext
5912 LIBS=$ac_check_lib_save_LIBS
5913 fi
5914 { echo "$as_me:$LINENO: result: $ac_cv_lib_pfm_pfm_start" >&5
5915 echo "${ECHO_T}$ac_cv_lib_pfm_pfm_start" >&6; }
5916 if test $ac_cv_lib_pfm_pfm_start = yes; then
5917 cat >>confdefs.h <<_ACEOF
5918 #define HAVE_LIBPFM 1
5919 _ACEOF
5920
5921 LIBS="-lpfm $LIBS"
5922
5923 else
5924
5925 { { echo "$as_me:$LINENO: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&5
5926 echo "$as_me: error: systemtap cannot find required perfmon libs (libpfm-devel may need to be installed" >&2;}
5927 { (exit 1); exit 1; }; }
5928 fi
5929
5930 fi
5931 fi
5932
5933
5934 if test "${enable_prologues+set}" != set; then
5935 { echo "$as_me:$LINENO: checking to see if prologue searching should be the default" >&5
5936 echo $ECHO_N "checking to see if prologue searching should be the default... $ECHO_C" >&6; }
5937 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
5938 echo ' yes '
5939 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5940 enable_prologues=yes
5941 { echo "$as_me:$LINENO: result: yes" >&5
5942 echo "${ECHO_T}yes" >&6; }
5943 else
5944 { echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6; }
5946 fi
5947 fi
5948 # Check whether --enable-prologues was given.
5949 if test "${enable_prologues+set}" = set; then
5950 enableval=$enable_prologues;
5951 if test "$enable_prologues" = yes; then
5952
5953 cat >>confdefs.h <<\_ACEOF
5954 #define ENABLE_PROLOGUES
5955 _ACEOF
5956
5957 fi
5958 fi
5959
5960
5961 # Check whether --enable-ssp was given.
5962 if test "${enable_ssp+set}" = set; then
5963 enableval=$enable_ssp;
5964 fi
5965
5966 if test "x$enable_ssp" != xno; then
5967
5968 save_CFLAGS="$CFLAGS"
5969 save_CXXFLAGS="$CXXFLAGS"
5970 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
5971 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
5972 cat >conftest.$ac_ext <<_ACEOF
5973 int something ();
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5992
5993 { echo "$as_me:$LINENO: Compiling with gcc -fstack-protector-all et al." >&5
5994 echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
5995 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
5996 CXFXLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001
6002 { echo "$as_me:$LINENO: Compiler does not support -fstack-protector-all et al." >&5
6003 echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
6004 CFLAGS="$save_CFLAGS"
6005 CXXFLAGS="$save_CXXFLAGS"
6006 fi
6007
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 fi
6010
6011
6012 # Check whether --enable-pie was given.
6013 if test "${enable_pie+set}" = set; then
6014 enableval=$enable_pie;
6015 fi
6016
6017 if test "x$enable_pie" != xno; then
6018
6019 save_CFLAGS="$CFLAGS"
6020 save_CXXFLAGS="$CXXFLAGS"
6021 save_LDFLAGS="$LDFLAGS"
6022 CFLAGS="$CFLAGS -fpie"
6023 CXXFLAGS="$CXXFLAGS -fpie"
6024 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
6025 cat >conftest.$ac_ext <<_ACEOF
6026 void main () {}
6027 _ACEOF
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (ac_try="$ac_link"
6030 case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_link") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest$ac_exeext &&
6045 $as_test_x conftest$ac_exeext; then
6046
6047 { echo "$as_me:$LINENO: Compiling with gcc pie et al." >&5
6048 echo "$as_me: Compiling with gcc pie et al." >&6;}
6049 # LDFLAGS is special since it may be passed down to bundled-elfutils,
6050 # and interfere with the .so's built therein
6051 PIELDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
6052 LDFLAGS="$save_LDFLAGS"
6053
6054 else
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6057
6058
6059 { echo "$as_me:$LINENO: Compiler does not support -pie et al." >&5
6060 echo "$as_me: Compiler does not support -pie et al." >&6;}
6061 CFLAGS="$save_CFLAGS"
6062 CXXFLAGS="$save_CXXFLAGS"
6063 PIELDFLAGS=""
6064 LDFLAGS="$save_LDFLAGS"
6065 fi
6066
6067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6068 conftest$ac_exeext conftest.$ac_ext
6069 fi
6070
6071
6072
6073 # Check whether --enable-sqlite was given.
6074 if test "${enable_sqlite+set}" = set; then
6075 enableval=$enable_sqlite;
6076 else
6077 enable_sqlite=check
6078 fi
6079 sqlite3_LIBS=
6080 if test "x$enable_sqlite" != xno; then
6081 { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
6082 echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
6083 if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 ac_check_lib_save_LIBS=$LIBS
6087 LIBS="-lsqlite3 $LIBS"
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094
6095 /* Override any GCC internal prototype to avoid an error.
6096 Use char because int might match the return type of a GCC
6097 builtin and then its argument prototype would still apply. */
6098 #ifdef __cplusplus
6099 extern "C"
6100 #endif
6101 char sqlite3_open ();
6102 int
6103 main ()
6104 {
6105 return sqlite3_open ();
6106 ;
6107 return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (ac_try="$ac_link"
6112 case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest$ac_exeext &&
6127 $as_test_x conftest$ac_exeext; then
6128 ac_cv_lib_sqlite3_sqlite3_open=yes
6129 else
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_cv_lib_sqlite3_sqlite3_open=no
6134 fi
6135
6136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6137 conftest$ac_exeext conftest.$ac_ext
6138 LIBS=$ac_check_lib_save_LIBS
6139 fi
6140 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
6141 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
6142 if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
6143 sqlite3_LIBS=-lsqlite3
6144
6145
6146 cat >>confdefs.h <<\_ACEOF
6147 #define HAVE_LIBSQLITE3 1
6148 _ACEOF
6149
6150 else
6151 if test "x$enable_sqlite" != xcheck; then
6152 { { echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed
6153 See \`config.log' for more details." >&5
6154 echo "$as_me: error: --enable-sqlite was given, but test for sqlite failed
6155 See \`config.log' for more details." >&2;}
6156 { (exit 1); exit 1; }; }
6157 fi
6158 fi
6159
6160 fi
6161
6162
6163 # Check whether --enable-crash was given.
6164 if test "${enable_crash+set}" = set; then
6165 enableval=$enable_crash; if test "$enable_crash" != "no"; then
6166 save_CPPFLAGS="$CPPFLAGS"
6167 if test "$enable_crash" != "yes"; then
6168 staplog_CPPFLAGS=-I$enable_crash
6169 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
6170
6171 fi
6172
6173 for ac_header in crash/defs.h
6174 do
6175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187
6188 #define NR_CPUS 256
6189
6190
6191 #include <$ac_header>
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6195 case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_compile") 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } && {
6207 test -z "$ac_c_werror_flag" ||
6208 test ! -s conftest.err
6209 } && test -s conftest.$ac_objext; then
6210 eval "$as_ac_Header=yes"
6211 else
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215 eval "$as_ac_Header=no"
6216 fi
6217
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 fi
6220 ac_res=`eval echo '${'$as_ac_Header'}'`
6221 { echo "$as_me:$LINENO: result: $ac_res" >&5
6222 echo "${ECHO_T}$ac_res" >&6; }
6223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6224 cat >>confdefs.h <<_ACEOF
6225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226 _ACEOF
6227
6228 else
6229 { { echo "$as_me:$LINENO: error: cannot find required crash header (crash-devel may need to be installed)" >&5
6230 echo "$as_me: error: cannot find required crash header (crash-devel may need to be installed)" >&2;}
6231 { (exit 1); exit 1; }; }
6232 fi
6233
6234 done
6235
6236 CPPFLAGS="$save_CPPFLAGS"
6237 fi
6238 else
6239 enable_crash="no"
6240 fi
6241
6242 if test "$enable_crash" != "no"; then
6243 BUILD_CRASHMOD_TRUE=
6244 BUILD_CRASHMOD_FALSE='#'
6245 else
6246 BUILD_CRASHMOD_TRUE='#'
6247 BUILD_CRASHMOD_FALSE=
6248 fi
6249
6250
6251 # Check whether --enable-docs was given.
6252 if test "${enable_docs+set}" = set; then
6253 enableval=$enable_docs; enable_docs=$enableval
6254 else
6255 enable_docs="check"
6256 fi
6257
6258 # Extract the first word of "latex", so it can be a program name with args.
6259 set dummy latex; ac_word=$2
6260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262 if test "${ac_cv_prog_have_latex+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265 if test -n "$have_latex"; then
6266 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_prog_have_latex="yes"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279 done
6280 done
6281 IFS=$as_save_IFS
6282
6283 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
6284 fi
6285 fi
6286 have_latex=$ac_cv_prog_have_latex
6287 if test -n "$have_latex"; then
6288 { echo "$as_me:$LINENO: result: $have_latex" >&5
6289 echo "${ECHO_T}$have_latex" >&6; }
6290 else
6291 { echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6; }
6293 fi
6294
6295
6296 # Extract the first word of "dvips", so it can be a program name with args.
6297 set dummy dvips; ac_word=$2
6298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6300 if test "${ac_cv_prog_have_dvips+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303 if test -n "$have_dvips"; then
6304 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313 ac_cv_prog_have_dvips="yes"
6314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317 done
6318 done
6319 IFS=$as_save_IFS
6320
6321 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
6322 fi
6323 fi
6324 have_dvips=$ac_cv_prog_have_dvips
6325 if test -n "$have_dvips"; then
6326 { echo "$as_me:$LINENO: result: $have_dvips" >&5
6327 echo "${ECHO_T}$have_dvips" >&6; }
6328 else
6329 { echo "$as_me:$LINENO: result: no" >&5
6330 echo "${ECHO_T}no" >&6; }
6331 fi
6332
6333
6334 # Extract the first word of "ps2pdf", so it can be a program name with args.
6335 set dummy ps2pdf; ac_word=$2
6336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6338 if test "${ac_cv_prog_have_ps2pdf+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 if test -n "$have_ps2pdf"; then
6342 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_prog_have_ps2pdf="yes"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355 done
6356 done
6357 IFS=$as_save_IFS
6358
6359 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
6360 fi
6361 fi
6362 have_ps2pdf=$ac_cv_prog_have_ps2pdf
6363 if test -n "$have_ps2pdf"; then
6364 { echo "$as_me:$LINENO: result: $have_ps2pdf" >&5
6365 echo "${ECHO_T}$have_ps2pdf" >&6; }
6366 else
6367 { echo "$as_me:$LINENO: result: no" >&5
6368 echo "${ECHO_T}no" >&6; }
6369 fi
6370
6371
6372 # Extract the first word of "latex2html", so it can be a program name with args.
6373 set dummy latex2html; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_prog_have_latex2html+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 if test -n "$have_latex2html"; then
6380 ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_have_latex2html="yes"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no"
6398 fi
6399 fi
6400 have_latex2html=$ac_cv_prog_have_latex2html
6401 if test -n "$have_latex2html"; then
6402 { echo "$as_me:$LINENO: result: $have_latex2html" >&5
6403 echo "${ECHO_T}$have_latex2html" >&6; }
6404 else
6405 { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6407 fi
6408
6409
6410 if test "$enable_docs" == "yes"; then
6411 if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then
6412 { { echo "$as_me:$LINENO: error: cannot find all tools for building documentation" >&5
6413 echo "$as_me: error: cannot find all tools for building documentation" >&2;}
6414 { (exit 1); exit 1; }; }
6415 fi
6416 fi
6417 if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then
6418 BUILD_DOCS_TRUE=
6419 BUILD_DOCS_FALSE='#'
6420 else
6421 BUILD_DOCS_TRUE='#'
6422 BUILD_DOCS_FALSE=
6423 fi
6424
6425
6426
6427 for ac_header in sys/capability.h
6428 do
6429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 fi
6436 ac_res=`eval echo '${'$as_ac_Header'}'`
6437 { echo "$as_me:$LINENO: result: $ac_res" >&5
6438 echo "${ECHO_T}$ac_res" >&6; }
6439 else
6440 # Is the header compilable?
6441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6443 cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h. */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 $ac_includes_default
6450 #include <$ac_header>
6451 _ACEOF
6452 rm -f conftest.$ac_objext
6453 if { (ac_try="$ac_compile"
6454 case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457 esac
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_compile") 2>conftest.er1
6460 ac_status=$?
6461 grep -v '^ *+' conftest.er1 >conftest.err
6462 rm -f conftest.er1
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && {
6466 test -z "$ac_c_werror_flag" ||
6467 test ! -s conftest.err
6468 } && test -s conftest.$ac_objext; then
6469 ac_header_compiler=yes
6470 else
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ac_header_compiler=no
6475 fi
6476
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6479 echo "${ECHO_T}$ac_header_compiler" >&6; }
6480
6481 # Is the header present?
6482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <$ac_header>
6491 _ACEOF
6492 if { (ac_try="$ac_cpp conftest.$ac_ext"
6493 case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496 esac
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } >/dev/null && {
6505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 }; then
6508 ac_header_preproc=yes
6509 else
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 ac_header_preproc=no
6514 fi
6515
6516 rm -f conftest.err conftest.$ac_ext
6517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6518 echo "${ECHO_T}$ac_header_preproc" >&6; }
6519
6520 # So? What about this header?
6521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6522 yes:no: )
6523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6527 ac_header_preproc=yes
6528 ;;
6529 no:yes:* )
6530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6542 ( cat <<\_ASBOX
6543 ## ------------------------------------------- ##
6544 ## Report this to systemtap@sources.redhat.com ##
6545 ## ------------------------------------------- ##
6546 _ASBOX
6547 ) | sed "s/^/$as_me: WARNING: /" >&2
6548 ;;
6549 esac
6550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 eval "$as_ac_Header=\$ac_header_preproc"
6556 fi
6557 ac_res=`eval echo '${'$as_ac_Header'}'`
6558 { echo "$as_me:$LINENO: result: $ac_res" >&5
6559 echo "${ECHO_T}$ac_res" >&6; }
6560
6561 fi
6562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6563 cat >>confdefs.h <<_ACEOF
6564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6565 _ACEOF
6566
6567 else
6568 { { echo "$as_me:$LINENO: error: cannot find required libcap header (libcap-devel may need to be installed)" >&5
6569 echo "$as_me: error: cannot find required libcap header (libcap-devel may need to be installed)" >&2;}
6570 { (exit 1); exit 1; }; }
6571 fi
6572
6573 done
6574
6575
6576 build_elfutils=no
6577
6578 # Check whether --with-elfutils was given.
6579 if test "${with_elfutils+set}" = set; then
6580 withval=$with_elfutils;
6581 case "$with_elfutils" in
6582 yes) { { echo "$as_me:$LINENO: error: --with-elfutils requires an argument" >&5
6583 echo "$as_me: error: --with-elfutils requires an argument" >&2;}
6584 { (exit 1); exit 1; }; } ;;
6585 ''|no) ;;
6586 *) build_elfutils=yes ;;
6587 esac
6588 fi
6589
6590 if test $build_elfutils = yes; then
6591 BUILD_ELFUTILS_TRUE=
6592 BUILD_ELFUTILS_FALSE='#'
6593 else
6594 BUILD_ELFUTILS_TRUE='#'
6595 BUILD_ELFUTILS_FALSE=
6596 fi
6597
6598 elfutils_abs_srcdir=`if test $build_elfutils = yes; then
6599 cd $with_elfutils && pwd
6600 fi
6601 `
6602
6603
6604 if test $build_elfutils = no; then
6605 # Need libdwfl-capable recent elfutils from Fedora
6606 save_LIBS="$LIBS"
6607
6608 { echo "$as_me:$LINENO: checking for dwfl_module_getsym in -ldw" >&5
6609 echo $ECHO_N "checking for dwfl_module_getsym in -ldw... $ECHO_C" >&6; }
6610 if test "${ac_cv_lib_dw_dwfl_module_getsym+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613 ac_check_lib_save_LIBS=$LIBS
6614 LIBS="-ldw $LIBS"
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621
6622 /* Override any GCC internal prototype to avoid an error.
6623 Use char because int might match the return type of a GCC
6624 builtin and then its argument prototype would still apply. */
6625 #ifdef __cplusplus
6626 extern "C"
6627 #endif
6628 char dwfl_module_getsym ();
6629 int
6630 main ()
6631 {
6632 return dwfl_module_getsym ();
6633 ;
6634 return 0;
6635 }
6636 _ACEOF
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (ac_try="$ac_link"
6639 case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642 esac
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_link") 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && {
6651 test -z "$ac_c_werror_flag" ||
6652 test ! -s conftest.err
6653 } && test -s conftest$ac_exeext &&
6654 $as_test_x conftest$ac_exeext; then
6655 ac_cv_lib_dw_dwfl_module_getsym=yes
6656 else
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ac_cv_lib_dw_dwfl_module_getsym=no
6661 fi
6662
6663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6664 conftest$ac_exeext conftest.$ac_ext
6665 LIBS=$ac_check_lib_save_LIBS
6666 fi
6667 { echo "$as_me:$LINENO: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
6668 echo "${ECHO_T}$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
6669 if test $ac_cv_lib_dw_dwfl_module_getsym = yes; then
6670 cat >>confdefs.h <<_ACEOF
6671 #define HAVE_LIBDW 1
6672 _ACEOF
6673
6674 LIBS="-ldw $LIBS"
6675
6676 else
6677
6678 { { echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (dw 0.123+)" >&5
6679 echo "$as_me: error: missing elfutils development headers/libraries (dw 0.123+)" >&2;}
6680 { (exit 1); exit 1; }; }
6681 fi
6682
6683
6684 { echo "$as_me:$LINENO: checking for ebl_openbackend in -lebl" >&5
6685 echo $ECHO_N "checking for ebl_openbackend in -lebl... $ECHO_C" >&6; }
6686 if test "${ac_cv_lib_ebl_ebl_openbackend+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689 ac_check_lib_save_LIBS=$LIBS
6690 LIBS="-lebl $LIBS"
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697
6698 /* Override any GCC internal prototype to avoid an error.
6699 Use char because int might match the return type of a GCC
6700 builtin and then its argument prototype would still apply. */
6701 #ifdef __cplusplus
6702 extern "C"
6703 #endif
6704 char ebl_openbackend ();
6705 int
6706 main ()
6707 {
6708 return ebl_openbackend ();
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6715 case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_link") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest$ac_exeext &&
6730 $as_test_x conftest$ac_exeext; then
6731 ac_cv_lib_ebl_ebl_openbackend=yes
6732 else
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 ac_cv_lib_ebl_ebl_openbackend=no
6737 fi
6738
6739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6740 conftest$ac_exeext conftest.$ac_ext
6741 LIBS=$ac_check_lib_save_LIBS
6742 fi
6743 { echo "$as_me:$LINENO: result: $ac_cv_lib_ebl_ebl_openbackend" >&5
6744 echo "${ECHO_T}$ac_cv_lib_ebl_ebl_openbackend" >&6; }
6745 if test $ac_cv_lib_ebl_ebl_openbackend = yes; then
6746 cat >>confdefs.h <<_ACEOF
6747 #define HAVE_LIBEBL 1
6748 _ACEOF
6749
6750 LIBS="-lebl $LIBS"
6751
6752 else
6753
6754 { { echo "$as_me:$LINENO: error: missing elfutils development headers/libraries (ebl 0.123+)" >&5
6755 echo "$as_me: error: missing elfutils development headers/libraries (ebl 0.123+)" >&2;}
6756 { (exit 1); exit 1; }; }
6757 fi
6758
6759
6760 stap_LIBS="$LIBS"
6761 LIBS="$save_LIBS"
6762 else
6763 # We built our own and stap_LDFLAGS points at the install.
6764 stap_LIBS="-ldw -lebl"
6765 fi
6766
6767
6768 { echo "$as_me:$LINENO: stap will link $stap_LIBS" >&5
6769 echo "$as_me: stap will link $stap_LIBS" >&6;}
6770
6771 date=`date +%Y-%m-%d`
6772
6773 cat >>confdefs.h <<_ACEOF
6774 #define DATE "$date"
6775 _ACEOF
6776
6777 DATE="$date"
6778
6779
6780
6781 # This procflags business is for staprun/stapio, which need to
6782 # be compiled with the same bitness as the kernel. On e.g. PPC,
6783 # userspace might be 32-bit default, but staprun needs to be
6784 # 64-bit. See also bug #4037.
6785
6786 processor=`uname -p`
6787 case "$processor" in
6788 ppc64) PROCFLAGS=-m64 ;;
6789 x86_64) PROCFLAGS=-m64 ;;
6790 *) PROCFLAGS=""
6791 esac
6792
6793
6794 # -lcap is used for staprun, so PROCFLAGS comes in to play
6795 SAVE_LIBS="$LIBS"
6796 SAVE_CFLAGS="$CFLAGS"
6797 CFLAGS="$CFLAGS $PROCFLAGS"
6798
6799 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
6800 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
6801 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 ac_check_lib_save_LIBS=$LIBS
6805 LIBS="-lcap $LIBS"
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812
6813 /* Override any GCC internal prototype to avoid an error.
6814 Use char because int might match the return type of a GCC
6815 builtin and then its argument prototype would still apply. */
6816 #ifdef __cplusplus
6817 extern "C"
6818 #endif
6819 char cap_init ();
6820 int
6821 main ()
6822 {
6823 return cap_init ();
6824 ;
6825 return 0;
6826 }
6827 _ACEOF
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (ac_try="$ac_link"
6830 case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833 esac
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_link") 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest$ac_exeext &&
6845 $as_test_x conftest$ac_exeext; then
6846 ac_cv_lib_cap_cap_init=yes
6847 else
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851 ac_cv_lib_cap_cap_init=no
6852 fi
6853
6854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6855 conftest$ac_exeext conftest.$ac_ext
6856 LIBS=$ac_check_lib_save_LIBS
6857 fi
6858 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
6859 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
6860 if test $ac_cv_lib_cap_cap_init = yes; then
6861 cat >>confdefs.h <<_ACEOF
6862 #define HAVE_LIBCAP 1
6863 _ACEOF
6864
6865 LIBS="-lcap $LIBS"
6866
6867 else
6868 { { echo "$as_me:$LINENO: error: need $PROCFLAGS -lcap" >&5
6869 echo "$as_me: error: need $PROCFLAGS -lcap" >&2;}
6870 { (exit 1); exit 1; }; }
6871 fi
6872
6873 cap_LIBS="$LIBS"
6874
6875 LIBS="$SAVE_LIBS"
6876 CFLAGS="$SAVE_CFLAGS"
6877
6878 ac_config_headers="$ac_config_headers config.h:config.in"
6879
6880 ac_config_files="$ac_config_files Makefile doc/Makefile systemtap.spec stap.1 stapprobes.5 stapfuncs.5 stapex.5 staprun.8 man/stapprobes.iosched.5 man/stapprobes.netdev.5 man/stapprobes.nfs.5 man/stapprobes.nfsd.5 man/stapprobes.pagefault.5 man/stapprobes.process.5 man/stapprobes.rpc.5 man/stapprobes.scsi.5 man/stapprobes.signal.5 man/stapprobes.socket.5 man/stapprobes.tcp.5 man/stapprobes.udp.5"
6881
6882 subdirs="$subdirs testsuite"
6883
6884
6885 cat >confcache <<\_ACEOF
6886 # This file is a shell script that caches the results of configure
6887 # tests run on this system so they can be shared between configure
6888 # scripts and configure runs, see configure's option --config-cache.
6889 # It is not useful on other systems. If it contains results you don't
6890 # want to keep, you may remove or edit it.
6891 #
6892 # config.status only pays attention to the cache file if you give it
6893 # the --recheck option to rerun configure.
6894 #
6895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6897 # following values.
6898
6899 _ACEOF
6900
6901 # The following way of writing the cache mishandles newlines in values,
6902 # but we know of no workaround that is simple, portable, and efficient.
6903 # So, we kill variables containing newlines.
6904 # Ultrix sh set writes to stderr and can't be redirected directly,
6905 # and sets the high bit in the cache file unless we assign to the vars.
6906 (
6907 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6908 eval ac_val=\$$ac_var
6909 case $ac_val in #(
6910 *${as_nl}*)
6911 case $ac_var in #(
6912 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6913 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6914 esac
6915 case $ac_var in #(
6916 _ | IFS | as_nl) ;; #(
6917 *) $as_unset $ac_var ;;
6918 esac ;;
6919 esac
6920 done
6921
6922 (set) 2>&1 |
6923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6924 *${as_nl}ac_space=\ *)
6925 # `set' does not quote correctly, so add quotes (double-quote
6926 # substitution turns \\\\ into \\, and sed turns \\ into \).
6927 sed -n \
6928 "s/'/'\\\\''/g;
6929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6930 ;; #(
6931 *)
6932 # `set' quotes correctly as required by POSIX, so do not add quotes.
6933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6934 ;;
6935 esac |
6936 sort
6937 ) |
6938 sed '
6939 /^ac_cv_env_/b end
6940 t clear
6941 :clear
6942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6943 t end
6944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6945 :end' >>confcache
6946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6947 if test -w "$cache_file"; then
6948 test "x$cache_file" != "x/dev/null" &&
6949 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6950 echo "$as_me: updating cache $cache_file" >&6;}
6951 cat confcache >$cache_file
6952 else
6953 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6954 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6955 fi
6956 fi
6957 rm -f confcache
6958
6959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6960 # Let make expand exec_prefix.
6961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6962
6963 DEFS=-DHAVE_CONFIG_H
6964
6965 ac_libobjs=
6966 ac_ltlibobjs=
6967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6968 # 1. Remove the extension, and $U if already installed.
6969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6970 ac_i=`echo "$ac_i" | sed "$ac_script"`
6971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6972 # will be set to the directory where LIBOBJS objects are built.
6973 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6974 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6975 done
6976 LIBOBJS=$ac_libobjs
6977
6978 LTLIBOBJS=$ac_ltlibobjs
6979
6980
6981 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6982 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6983 Usually this means the macro was only invoked conditionally." >&5
6984 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6985 Usually this means the macro was only invoked conditionally." >&2;}
6986 { (exit 1); exit 1; }; }
6987 fi
6988 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6989 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6990 Usually this means the macro was only invoked conditionally." >&5
6991 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6992 Usually this means the macro was only invoked conditionally." >&2;}
6993 { (exit 1); exit 1; }; }
6994 fi
6995 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6996 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6997 Usually this means the macro was only invoked conditionally." >&5
6998 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6999 Usually this means the macro was only invoked conditionally." >&2;}
7000 { (exit 1); exit 1; }; }
7001 fi
7002 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7003 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7004 Usually this means the macro was only invoked conditionally." >&5
7005 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7006 Usually this means the macro was only invoked conditionally." >&2;}
7007 { (exit 1); exit 1; }; }
7008 fi
7009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7010 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7011 Usually this means the macro was only invoked conditionally." >&5
7012 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7013 Usually this means the macro was only invoked conditionally." >&2;}
7014 { (exit 1); exit 1; }; }
7015 fi
7016 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
7017 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CRASHMOD\" was never defined.
7018 Usually this means the macro was only invoked conditionally." >&5
7019 echo "$as_me: error: conditional \"BUILD_CRASHMOD\" was never defined.
7020 Usually this means the macro was only invoked conditionally." >&2;}
7021 { (exit 1); exit 1; }; }
7022 fi
7023 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
7024 { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
7025 Usually this means the macro was only invoked conditionally." >&5
7026 echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
7027 Usually this means the macro was only invoked conditionally." >&2;}
7028 { (exit 1); exit 1; }; }
7029 fi
7030 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
7031 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ELFUTILS\" was never defined.
7032 Usually this means the macro was only invoked conditionally." >&5
7033 echo "$as_me: error: conditional \"BUILD_ELFUTILS\" was never defined.
7034 Usually this means the macro was only invoked conditionally." >&2;}
7035 { (exit 1); exit 1; }; }
7036 fi
7037
7038 : ${CONFIG_STATUS=./config.status}
7039 ac_clean_files_save=$ac_clean_files
7040 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7041 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7042 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7043 cat >$CONFIG_STATUS <<_ACEOF
7044 #! $SHELL
7045 # Generated by $as_me.
7046 # Run this file to recreate the current configuration.
7047 # Compiler output produced by configure, useful for debugging
7048 # configure, is in config.log if it exists.
7049
7050 debug=false
7051 ac_cs_recheck=false
7052 ac_cs_silent=false
7053 SHELL=\${CONFIG_SHELL-$SHELL}
7054 _ACEOF
7055
7056 cat >>$CONFIG_STATUS <<\_ACEOF
7057 ## --------------------- ##
7058 ## M4sh Initialization. ##
7059 ## --------------------- ##
7060
7061 # Be more Bourne compatible
7062 DUALCASE=1; export DUALCASE # for MKS sh
7063 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7064 emulate sh
7065 NULLCMD=:
7066 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7067 # is contrary to our usage. Disable this feature.
7068 alias -g '${1+"$@"}'='"$@"'
7069 setopt NO_GLOB_SUBST
7070 else
7071 case `(set -o) 2>/dev/null` in
7072 *posix*) set -o posix ;;
7073 esac
7074
7075 fi
7076
7077
7078
7079
7080 # PATH needs CR
7081 # Avoid depending upon Character Ranges.
7082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7085 as_cr_digits='0123456789'
7086 as_cr_alnum=$as_cr_Letters$as_cr_digits
7087
7088 # The user is always right.
7089 if test "${PATH_SEPARATOR+set}" != set; then
7090 echo "#! /bin/sh" >conf$$.sh
7091 echo "exit 0" >>conf$$.sh
7092 chmod +x conf$$.sh
7093 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7094 PATH_SEPARATOR=';'
7095 else
7096 PATH_SEPARATOR=:
7097 fi
7098 rm -f conf$$.sh
7099 fi
7100
7101 # Support unset when possible.
7102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7103 as_unset=unset
7104 else
7105 as_unset=false
7106 fi
7107
7108
7109 # IFS
7110 # We need space, tab and new line, in precisely that order. Quoting is
7111 # there to prevent editors from complaining about space-tab.
7112 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7113 # splitting by setting IFS to empty value.)
7114 as_nl='
7115 '
7116 IFS=" "" $as_nl"
7117
7118 # Find who we are. Look in the path if we contain no directory separator.
7119 case $0 in
7120 *[\\/]* ) as_myself=$0 ;;
7121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 for as_dir in $PATH
7123 do
7124 IFS=$as_save_IFS
7125 test -z "$as_dir" && as_dir=.
7126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7127 done
7128 IFS=$as_save_IFS
7129
7130 ;;
7131 esac
7132 # We did not find ourselves, most probably we were run as `sh COMMAND'
7133 # in which case we are not to be found in the path.
7134 if test "x$as_myself" = x; then
7135 as_myself=$0
7136 fi
7137 if test ! -f "$as_myself"; then
7138 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7139 { (exit 1); exit 1; }
7140 fi
7141
7142 # Work around bugs in pre-3.0 UWIN ksh.
7143 for as_var in ENV MAIL MAILPATH
7144 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7145 done
7146 PS1='$ '
7147 PS2='> '
7148 PS4='+ '
7149
7150 # NLS nuisances.
7151 for as_var in \
7152 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7153 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7154 LC_TELEPHONE LC_TIME
7155 do
7156 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7157 eval $as_var=C; export $as_var
7158 else
7159 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7160 fi
7161 done
7162
7163 # Required to use basename.
7164 if expr a : '\(a\)' >/dev/null 2>&1 &&
7165 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7166 as_expr=expr
7167 else
7168 as_expr=false
7169 fi
7170
7171 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7172 as_basename=basename
7173 else
7174 as_basename=false
7175 fi
7176
7177
7178 # Name of the executable.
7179 as_me=`$as_basename -- "$0" ||
7180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7181 X"$0" : 'X\(//\)$' \| \
7182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7183 echo X/"$0" |
7184 sed '/^.*\/\([^/][^/]*\)\/*$/{
7185 s//\1/
7186 q
7187 }
7188 /^X\/\(\/\/\)$/{
7189 s//\1/
7190 q
7191 }
7192 /^X\/\(\/\).*/{
7193 s//\1/
7194 q
7195 }
7196 s/.*/./; q'`
7197
7198 # CDPATH.
7199 $as_unset CDPATH
7200
7201
7202
7203 as_lineno_1=$LINENO
7204 as_lineno_2=$LINENO
7205 test "x$as_lineno_1" != "x$as_lineno_2" &&
7206 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7207
7208 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7209 # uniformly replaced by the line number. The first 'sed' inserts a
7210 # line-number line after each line using $LINENO; the second 'sed'
7211 # does the real work. The second script uses 'N' to pair each
7212 # line-number line with the line containing $LINENO, and appends
7213 # trailing '-' during substitution so that $LINENO is not a special
7214 # case at line end.
7215 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7216 # scripts with optimization help from Paolo Bonzini. Blame Lee
7217 # E. McMahon (1931-1989) for sed's syntax. :-)
7218 sed -n '
7219 p
7220 /[$]LINENO/=
7221 ' <$as_myself |
7222 sed '
7223 s/[$]LINENO.*/&-/
7224 t lineno
7225 b
7226 :lineno
7227 N
7228 :loop
7229 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7230 t loop
7231 s/-\n.*//
7232 ' >$as_me.lineno &&
7233 chmod +x "$as_me.lineno" ||
7234 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7235 { (exit 1); exit 1; }; }
7236
7237 # Don't try to exec as it changes $[0], causing all sort of problems
7238 # (the dirname of $[0] is not the place where we might find the
7239 # original and so on. Autoconf is especially sensitive to this).
7240 . "./$as_me.lineno"
7241 # Exit status is that of the last command.
7242 exit
7243 }
7244
7245
7246 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7247 as_dirname=dirname
7248 else
7249 as_dirname=false
7250 fi
7251
7252 ECHO_C= ECHO_N= ECHO_T=
7253 case `echo -n x` in
7254 -n*)
7255 case `echo 'x\c'` in
7256 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7257 *) ECHO_C='\c';;
7258 esac;;
7259 *)
7260 ECHO_N='-n';;
7261 esac
7262
7263 if expr a : '\(a\)' >/dev/null 2>&1 &&
7264 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7265 as_expr=expr
7266 else
7267 as_expr=false
7268 fi
7269
7270 rm -f conf$$ conf$$.exe conf$$.file
7271 if test -d conf$$.dir; then
7272 rm -f conf$$.dir/conf$$.file
7273 else
7274 rm -f conf$$.dir
7275 mkdir conf$$.dir
7276 fi
7277 echo >conf$$.file
7278 if ln -s conf$$.file conf$$ 2>/dev/null; then
7279 as_ln_s='ln -s'
7280 # ... but there are two gotchas:
7281 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7282 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7283 # In both cases, we have to default to `cp -p'.
7284 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7285 as_ln_s='cp -p'
7286 elif ln conf$$.file conf$$ 2>/dev/null; then
7287 as_ln_s=ln
7288 else
7289 as_ln_s='cp -p'
7290 fi
7291 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7292 rmdir conf$$.dir 2>/dev/null
7293
7294 if mkdir -p . 2>/dev/null; then
7295 as_mkdir_p=:
7296 else
7297 test -d ./-p && rmdir ./-p
7298 as_mkdir_p=false
7299 fi
7300
7301 if test -x / >/dev/null 2>&1; then
7302 as_test_x='test -x'
7303 else
7304 if ls -dL / >/dev/null 2>&1; then
7305 as_ls_L_option=L
7306 else
7307 as_ls_L_option=
7308 fi
7309 as_test_x='
7310 eval sh -c '\''
7311 if test -d "$1"; then
7312 test -d "$1/.";
7313 else
7314 case $1 in
7315 -*)set "./$1";;
7316 esac;
7317 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7318 ???[sx]*):;;*)false;;esac;fi
7319 '\'' sh
7320 '
7321 fi
7322 as_executable_p=$as_test_x
7323
7324 # Sed expression to map a string onto a valid CPP name.
7325 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7326
7327 # Sed expression to map a string onto a valid variable name.
7328 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7329
7330
7331 exec 6>&1
7332
7333 # Save the log message, to keep $[0] and so on meaningful, and to
7334 # report actual input values of CONFIG_FILES etc. instead of their
7335 # values after options handling.
7336 ac_log="
7337 This file was extended by systemtap $as_me 0.7, which was
7338 generated by GNU Autoconf 2.61. Invocation command line was
7339
7340 CONFIG_FILES = $CONFIG_FILES
7341 CONFIG_HEADERS = $CONFIG_HEADERS
7342 CONFIG_LINKS = $CONFIG_LINKS
7343 CONFIG_COMMANDS = $CONFIG_COMMANDS
7344 $ $0 $@
7345
7346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7347 "
7348
7349 _ACEOF
7350
7351 cat >>$CONFIG_STATUS <<_ACEOF
7352 # Files that config.status was made for.
7353 config_files="$ac_config_files"
7354 config_headers="$ac_config_headers"
7355 config_commands="$ac_config_commands"
7356
7357 _ACEOF
7358
7359 cat >>$CONFIG_STATUS <<\_ACEOF
7360 ac_cs_usage="\
7361 \`$as_me' instantiates files from templates according to the
7362 current configuration.
7363
7364 Usage: $0 [OPTIONS] [FILE]...
7365
7366 -h, --help print this help, then exit
7367 -V, --version print version number and configuration settings, then exit
7368 -q, --quiet do not print progress messages
7369 -d, --debug don't remove temporary files
7370 --recheck update $as_me by reconfiguring in the same conditions
7371 --file=FILE[:TEMPLATE]
7372 instantiate the configuration file FILE
7373 --header=FILE[:TEMPLATE]
7374 instantiate the configuration header FILE
7375
7376 Configuration files:
7377 $config_files
7378
7379 Configuration headers:
7380 $config_headers
7381
7382 Configuration commands:
7383 $config_commands
7384
7385 Report bugs to <bug-autoconf@gnu.org>."
7386
7387 _ACEOF
7388 cat >>$CONFIG_STATUS <<_ACEOF
7389 ac_cs_version="\\
7390 systemtap config.status 0.7
7391 configured by $0, generated by GNU Autoconf 2.61,
7392 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7393
7394 Copyright (C) 2006 Free Software Foundation, Inc.
7395 This config.status script is free software; the Free Software Foundation
7396 gives unlimited permission to copy, distribute and modify it."
7397
7398 ac_pwd='$ac_pwd'
7399 srcdir='$srcdir'
7400 INSTALL='$INSTALL'
7401 MKDIR_P='$MKDIR_P'
7402 _ACEOF
7403
7404 cat >>$CONFIG_STATUS <<\_ACEOF
7405 # If no file are specified by the user, then we need to provide default
7406 # value. By we need to know if files were specified by the user.
7407 ac_need_defaults=:
7408 while test $# != 0
7409 do
7410 case $1 in
7411 --*=*)
7412 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7413 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7414 ac_shift=:
7415 ;;
7416 *)
7417 ac_option=$1
7418 ac_optarg=$2
7419 ac_shift=shift
7420 ;;
7421 esac
7422
7423 case $ac_option in
7424 # Handling of the options.
7425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7426 ac_cs_recheck=: ;;
7427 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7428 echo "$ac_cs_version"; exit ;;
7429 --debug | --debu | --deb | --de | --d | -d )
7430 debug=: ;;
7431 --file | --fil | --fi | --f )
7432 $ac_shift
7433 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7434 ac_need_defaults=false;;
7435 --header | --heade | --head | --hea )
7436 $ac_shift
7437 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7438 ac_need_defaults=false;;
7439 --he | --h)
7440 # Conflict between --help and --header
7441 { echo "$as_me: error: ambiguous option: $1
7442 Try \`$0 --help' for more information." >&2
7443 { (exit 1); exit 1; }; };;
7444 --help | --hel | -h )
7445 echo "$ac_cs_usage"; exit ;;
7446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7447 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7448 ac_cs_silent=: ;;
7449
7450 # This is an error.
7451 -*) { echo "$as_me: error: unrecognized option: $1
7452 Try \`$0 --help' for more information." >&2
7453 { (exit 1); exit 1; }; } ;;
7454
7455 *) ac_config_targets="$ac_config_targets $1"
7456 ac_need_defaults=false ;;
7457
7458 esac
7459 shift
7460 done
7461
7462 ac_configure_extra_args=
7463
7464 if $ac_cs_silent; then
7465 exec 6>/dev/null
7466 ac_configure_extra_args="$ac_configure_extra_args --silent"
7467 fi
7468
7469 _ACEOF
7470 cat >>$CONFIG_STATUS <<_ACEOF
7471 if \$ac_cs_recheck; then
7472 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7473 CONFIG_SHELL=$SHELL
7474 export CONFIG_SHELL
7475 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7476 fi
7477
7478 _ACEOF
7479 cat >>$CONFIG_STATUS <<\_ACEOF
7480 exec 5>>config.log
7481 {
7482 echo
7483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7484 ## Running $as_me. ##
7485 _ASBOX
7486 echo "$ac_log"
7487 } >&5
7488
7489 _ACEOF
7490 cat >>$CONFIG_STATUS <<_ACEOF
7491 #
7492 # INIT-COMMANDS
7493 #
7494 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7495
7496 _ACEOF
7497
7498 cat >>$CONFIG_STATUS <<\_ACEOF
7499
7500 # Handling of arguments.
7501 for ac_config_target in $ac_config_targets
7502 do
7503 case $ac_config_target in
7504 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7505 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7506 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7507 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7508 "systemtap.spec") CONFIG_FILES="$CONFIG_FILES systemtap.spec" ;;
7509 "stap.1") CONFIG_FILES="$CONFIG_FILES stap.1" ;;
7510 "stapprobes.5") CONFIG_FILES="$CONFIG_FILES stapprobes.5" ;;
7511 "stapfuncs.5") CONFIG_FILES="$CONFIG_FILES stapfuncs.5" ;;
7512 "stapex.5") CONFIG_FILES="$CONFIG_FILES stapex.5" ;;
7513 "staprun.8") CONFIG_FILES="$CONFIG_FILES staprun.8" ;;
7514 "man/stapprobes.iosched.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.iosched.5" ;;
7515 "man/stapprobes.netdev.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.netdev.5" ;;
7516 "man/stapprobes.nfs.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfs.5" ;;
7517 "man/stapprobes.nfsd.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.nfsd.5" ;;
7518 "man/stapprobes.pagefault.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.pagefault.5" ;;
7519 "man/stapprobes.process.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.process.5" ;;
7520 "man/stapprobes.rpc.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.rpc.5" ;;
7521 "man/stapprobes.scsi.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.scsi.5" ;;
7522 "man/stapprobes.signal.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.signal.5" ;;
7523 "man/stapprobes.socket.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.socket.5" ;;
7524 "man/stapprobes.tcp.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.tcp.5" ;;
7525 "man/stapprobes.udp.5") CONFIG_FILES="$CONFIG_FILES man/stapprobes.udp.5" ;;
7526
7527 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7528 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7529 { (exit 1); exit 1; }; };;
7530 esac
7531 done
7532
7533
7534 # If the user did not use the arguments to specify the items to instantiate,
7535 # then the envvar interface is used. Set only those that are not.
7536 # We use the long form for the default assignment because of an extremely
7537 # bizarre bug on SunOS 4.1.3.
7538 if $ac_need_defaults; then
7539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7542 fi
7543
7544 # Have a temporary directory for convenience. Make it in the build tree
7545 # simply because there is no reason against having it here, and in addition,
7546 # creating and moving files from /tmp can sometimes cause problems.
7547 # Hook for its removal unless debugging.
7548 # Note that there is a small window in which the directory will not be cleaned:
7549 # after its creation but before its name has been assigned to `$tmp'.
7550 $debug ||
7551 {
7552 tmp=
7553 trap 'exit_status=$?
7554 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7555 ' 0
7556 trap '{ (exit 1); exit 1; }' 1 2 13 15
7557 }
7558 # Create a (secure) tmp directory for tmp files.
7559
7560 {
7561 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7562 test -n "$tmp" && test -d "$tmp"
7563 } ||
7564 {
7565 tmp=./conf$$-$RANDOM
7566 (umask 077 && mkdir "$tmp")
7567 } ||
7568 {
7569 echo "$me: cannot create a temporary directory in ." >&2
7570 { (exit 1); exit 1; }
7571 }
7572
7573 #
7574 # Set up the sed scripts for CONFIG_FILES section.
7575 #
7576
7577 # No need to generate the scripts if there are no CONFIG_FILES.
7578 # This happens for instance when ./config.status config.h
7579 if test -n "$CONFIG_FILES"; then
7580
7581 _ACEOF
7582
7583
7584
7585 ac_delim='%!_!# '
7586 for ac_last_try in false false false false false :; do
7587 cat >conf$$subs.sed <<_ACEOF
7588 SHELL!$SHELL$ac_delim
7589 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7590 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7591 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7592 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7593 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7594 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7595 exec_prefix!$exec_prefix$ac_delim
7596 prefix!$prefix$ac_delim
7597 program_transform_name!$program_transform_name$ac_delim
7598 bindir!$bindir$ac_delim
7599 sbindir!$sbindir$ac_delim
7600 libexecdir!$libexecdir$ac_delim
7601 datarootdir!$datarootdir$ac_delim
7602 datadir!$datadir$ac_delim
7603 sysconfdir!$sysconfdir$ac_delim
7604 sharedstatedir!$sharedstatedir$ac_delim
7605 localstatedir!$localstatedir$ac_delim
7606 includedir!$includedir$ac_delim
7607 oldincludedir!$oldincludedir$ac_delim
7608 docdir!$docdir$ac_delim
7609 infodir!$infodir$ac_delim
7610 htmldir!$htmldir$ac_delim
7611 dvidir!$dvidir$ac_delim
7612 pdfdir!$pdfdir$ac_delim
7613 psdir!$psdir$ac_delim
7614 libdir!$libdir$ac_delim
7615 localedir!$localedir$ac_delim
7616 mandir!$mandir$ac_delim
7617 DEFS!$DEFS$ac_delim
7618 ECHO_C!$ECHO_C$ac_delim
7619 ECHO_N!$ECHO_N$ac_delim
7620 ECHO_T!$ECHO_T$ac_delim
7621 LIBS!$LIBS$ac_delim
7622 build_alias!$build_alias$ac_delim
7623 host_alias!$host_alias$ac_delim
7624 target_alias!$target_alias$ac_delim
7625 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7626 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7627 INSTALL_DATA!$INSTALL_DATA$ac_delim
7628 am__isrc!$am__isrc$ac_delim
7629 CYGPATH_W!$CYGPATH_W$ac_delim
7630 PACKAGE!$PACKAGE$ac_delim
7631 VERSION!$VERSION$ac_delim
7632 ACLOCAL!$ACLOCAL$ac_delim
7633 AUTOCONF!$AUTOCONF$ac_delim
7634 AUTOMAKE!$AUTOMAKE$ac_delim
7635 AUTOHEADER!$AUTOHEADER$ac_delim
7636 MAKEINFO!$MAKEINFO$ac_delim
7637 install_sh!$install_sh$ac_delim
7638 STRIP!$STRIP$ac_delim
7639 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
7640 mkdir_p!$mkdir_p$ac_delim
7641 AWK!$AWK$ac_delim
7642 SET_MAKE!$SET_MAKE$ac_delim
7643 am__leading_dot!$am__leading_dot$ac_delim
7644 AMTAR!$AMTAR$ac_delim
7645 am__tar!$am__tar$ac_delim
7646 am__untar!$am__untar$ac_delim
7647 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
7648 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
7649 MAINT!$MAINT$ac_delim
7650 LN_S!$LN_S$ac_delim
7651 CC!$CC$ac_delim
7652 CFLAGS!$CFLAGS$ac_delim
7653 LDFLAGS!$LDFLAGS$ac_delim
7654 CPPFLAGS!$CPPFLAGS$ac_delim
7655 ac_ct_CC!$ac_ct_CC$ac_delim
7656 EXEEXT!$EXEEXT$ac_delim
7657 OBJEXT!$OBJEXT$ac_delim
7658 DEPDIR!$DEPDIR$ac_delim
7659 am__include!$am__include$ac_delim
7660 am__quote!$am__quote$ac_delim
7661 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
7662 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
7663 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
7664 CCDEPMODE!$CCDEPMODE$ac_delim
7665 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
7666 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
7667 CXX!$CXX$ac_delim
7668 CXXFLAGS!$CXXFLAGS$ac_delim
7669 ac_ct_CXX!$ac_ct_CXX$ac_delim
7670 CXXDEPMODE!$CXXDEPMODE$ac_delim
7671 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
7672 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
7673 CPP!$CPP$ac_delim
7674 GREP!$GREP$ac_delim
7675 EGREP!$EGREP$ac_delim
7676 U!$U$ac_delim
7677 ANSI2KNR!$ANSI2KNR$ac_delim
7678 RANLIB!$RANLIB$ac_delim
7679 PIELDFLAGS!$PIELDFLAGS$ac_delim
7680 sqlite3_LIBS!$sqlite3_LIBS$ac_delim
7681 staplog_CPPFLAGS!$staplog_CPPFLAGS$ac_delim
7682 BUILD_CRASHMOD_TRUE!$BUILD_CRASHMOD_TRUE$ac_delim
7683 BUILD_CRASHMOD_FALSE!$BUILD_CRASHMOD_FALSE$ac_delim
7684 have_latex!$have_latex$ac_delim
7685 _ACEOF
7686
7687 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7688 break
7689 elif $ac_last_try; then
7690 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7691 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7692 { (exit 1); exit 1; }; }
7693 else
7694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7695 fi
7696 done
7697
7698 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7699 if test -n "$ac_eof"; then
7700 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7701 ac_eof=`expr $ac_eof + 1`
7702 fi
7703
7704 cat >>$CONFIG_STATUS <<_ACEOF
7705 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7707 _ACEOF
7708 sed '
7709 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7710 s/^/s,@/; s/!/@,|#_!!_#|/
7711 :n
7712 t n
7713 s/'"$ac_delim"'$/,g/; t
7714 s/$/\\/; p
7715 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7716 ' >>$CONFIG_STATUS <conf$$subs.sed
7717 rm -f conf$$subs.sed
7718 cat >>$CONFIG_STATUS <<_ACEOF
7719 CEOF$ac_eof
7720 _ACEOF
7721
7722
7723 ac_delim='%!_!# '
7724 for ac_last_try in false false false false false :; do
7725 cat >conf$$subs.sed <<_ACEOF
7726 have_dvips!$have_dvips$ac_delim
7727 have_ps2pdf!$have_ps2pdf$ac_delim
7728 have_latex2html!$have_latex2html$ac_delim
7729 BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
7730 BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
7731 BUILD_ELFUTILS_TRUE!$BUILD_ELFUTILS_TRUE$ac_delim
7732 BUILD_ELFUTILS_FALSE!$BUILD_ELFUTILS_FALSE$ac_delim
7733 elfutils_abs_srcdir!$elfutils_abs_srcdir$ac_delim
7734 stap_LIBS!$stap_LIBS$ac_delim
7735 DATE!$DATE$ac_delim
7736 PROCFLAGS!$PROCFLAGS$ac_delim
7737 cap_LIBS!$cap_LIBS$ac_delim
7738 subdirs!$subdirs$ac_delim
7739 LIBOBJS!$LIBOBJS$ac_delim
7740 LTLIBOBJS!$LTLIBOBJS$ac_delim
7741 _ACEOF
7742
7743 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
7744 break
7745 elif $ac_last_try; then
7746 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7747 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7748 { (exit 1); exit 1; }; }
7749 else
7750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7751 fi
7752 done
7753
7754 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7755 if test -n "$ac_eof"; then
7756 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7757 ac_eof=`expr $ac_eof + 1`
7758 fi
7759
7760 cat >>$CONFIG_STATUS <<_ACEOF
7761 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7763 _ACEOF
7764 sed '
7765 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7766 s/^/s,@/; s/!/@,|#_!!_#|/
7767 :n
7768 t n
7769 s/'"$ac_delim"'$/,g/; t
7770 s/$/\\/; p
7771 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7772 ' >>$CONFIG_STATUS <conf$$subs.sed
7773 rm -f conf$$subs.sed
7774 cat >>$CONFIG_STATUS <<_ACEOF
7775 :end
7776 s/|#_!!_#|//g
7777 CEOF$ac_eof
7778 _ACEOF
7779
7780
7781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7783 # trailing colons and then remove the whole line if VPATH becomes empty
7784 # (actually we leave an empty line to preserve line numbers).
7785 if test "x$srcdir" = x.; then
7786 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7787 s/:*\$(srcdir):*/:/
7788 s/:*\${srcdir}:*/:/
7789 s/:*@srcdir@:*/:/
7790 s/^\([^=]*=[ ]*\):*/\1/
7791 s/:*$//
7792 s/^[^=]*=[ ]*$//
7793 }'
7794 fi
7795
7796 cat >>$CONFIG_STATUS <<\_ACEOF
7797 fi # test -n "$CONFIG_FILES"
7798
7799
7800 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
7801 do
7802 case $ac_tag in
7803 :[FHLC]) ac_mode=$ac_tag; continue;;
7804 esac
7805 case $ac_mode$ac_tag in
7806 :[FHL]*:*);;
7807 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7808 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7809 { (exit 1); exit 1; }; };;
7810 :[FH]-) ac_tag=-:-;;
7811 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7812 esac
7813 ac_save_IFS=$IFS
7814 IFS=:
7815 set x $ac_tag
7816 IFS=$ac_save_IFS
7817 shift
7818 ac_file=$1
7819 shift
7820
7821 case $ac_mode in
7822 :L) ac_source=$1;;
7823 :[FH])
7824 ac_file_inputs=
7825 for ac_f
7826 do
7827 case $ac_f in
7828 -) ac_f="$tmp/stdin";;
7829 *) # Look for the file first in the build tree, then in the source tree
7830 # (if the path is not absolute). The absolute path cannot be DOS-style,
7831 # because $ac_f cannot contain `:'.
7832 test -f "$ac_f" ||
7833 case $ac_f in
7834 [\\/$]*) false;;
7835 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7836 esac ||
7837 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7838 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7839 { (exit 1); exit 1; }; };;
7840 esac
7841 ac_file_inputs="$ac_file_inputs $ac_f"
7842 done
7843
7844 # Let's still pretend it is `configure' which instantiates (i.e., don't
7845 # use $as_me), people would be surprised to read:
7846 # /* config.h. Generated by config.status. */
7847 configure_input="Generated from "`IFS=:
7848 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7849 if test x"$ac_file" != x-; then
7850 configure_input="$ac_file. $configure_input"
7851 { echo "$as_me:$LINENO: creating $ac_file" >&5
7852 echo "$as_me: creating $ac_file" >&6;}
7853 fi
7854
7855 case $ac_tag in
7856 *:-:* | *:-) cat >"$tmp/stdin";;
7857 esac
7858 ;;
7859 esac
7860
7861 ac_dir=`$as_dirname -- "$ac_file" ||
7862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7863 X"$ac_file" : 'X\(//\)[^/]' \| \
7864 X"$ac_file" : 'X\(//\)$' \| \
7865 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7866 echo X"$ac_file" |
7867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7868 s//\1/
7869 q
7870 }
7871 /^X\(\/\/\)[^/].*/{
7872 s//\1/
7873 q
7874 }
7875 /^X\(\/\/\)$/{
7876 s//\1/
7877 q
7878 }
7879 /^X\(\/\).*/{
7880 s//\1/
7881 q
7882 }
7883 s/.*/./; q'`
7884 { as_dir="$ac_dir"
7885 case $as_dir in #(
7886 -*) as_dir=./$as_dir;;
7887 esac
7888 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7889 as_dirs=
7890 while :; do
7891 case $as_dir in #(
7892 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7893 *) as_qdir=$as_dir;;
7894 esac
7895 as_dirs="'$as_qdir' $as_dirs"
7896 as_dir=`$as_dirname -- "$as_dir" ||
7897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7898 X"$as_dir" : 'X\(//\)[^/]' \| \
7899 X"$as_dir" : 'X\(//\)$' \| \
7900 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7901 echo X"$as_dir" |
7902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7903 s//\1/
7904 q
7905 }
7906 /^X\(\/\/\)[^/].*/{
7907 s//\1/
7908 q
7909 }
7910 /^X\(\/\/\)$/{
7911 s//\1/
7912 q
7913 }
7914 /^X\(\/\).*/{
7915 s//\1/
7916 q
7917 }
7918 s/.*/./; q'`
7919 test -d "$as_dir" && break
7920 done
7921 test -z "$as_dirs" || eval "mkdir $as_dirs"
7922 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7923 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7924 { (exit 1); exit 1; }; }; }
7925 ac_builddir=.
7926
7927 case "$ac_dir" in
7928 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7929 *)
7930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7931 # A ".." for each directory in $ac_dir_suffix.
7932 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7933 case $ac_top_builddir_sub in
7934 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7935 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7936 esac ;;
7937 esac
7938 ac_abs_top_builddir=$ac_pwd
7939 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7940 # for backward compatibility:
7941 ac_top_builddir=$ac_top_build_prefix
7942
7943 case $srcdir in
7944 .) # We are building in place.
7945 ac_srcdir=.
7946 ac_top_srcdir=$ac_top_builddir_sub
7947 ac_abs_top_srcdir=$ac_pwd ;;
7948 [\\/]* | ?:[\\/]* ) # Absolute name.
7949 ac_srcdir=$srcdir$ac_dir_suffix;
7950 ac_top_srcdir=$srcdir
7951 ac_abs_top_srcdir=$srcdir ;;
7952 *) # Relative name.
7953 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7954 ac_top_srcdir=$ac_top_build_prefix$srcdir
7955 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7956 esac
7957 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7958
7959
7960 case $ac_mode in
7961 :F)
7962 #
7963 # CONFIG_FILE
7964 #
7965
7966 case $INSTALL in
7967 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7968 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7969 esac
7970 ac_MKDIR_P=$MKDIR_P
7971 case $MKDIR_P in
7972 [\\/$]* | ?:[\\/]* ) ;;
7973 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7974 esac
7975 _ACEOF
7976
7977 cat >>$CONFIG_STATUS <<\_ACEOF
7978 # If the template does not know about datarootdir, expand it.
7979 # FIXME: This hack should be removed a few years after 2.60.
7980 ac_datarootdir_hack=; ac_datarootdir_seen=
7981
7982 case `sed -n '/datarootdir/ {
7983 p
7984 q
7985 }
7986 /@datadir@/p
7987 /@docdir@/p
7988 /@infodir@/p
7989 /@localedir@/p
7990 /@mandir@/p
7991 ' $ac_file_inputs` in
7992 *datarootdir*) ac_datarootdir_seen=yes;;
7993 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7994 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7995 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7996 _ACEOF
7997 cat >>$CONFIG_STATUS <<_ACEOF
7998 ac_datarootdir_hack='
7999 s&@datadir@&$datadir&g
8000 s&@docdir@&$docdir&g
8001 s&@infodir@&$infodir&g
8002 s&@localedir@&$localedir&g
8003 s&@mandir@&$mandir&g
8004 s&\\\${datarootdir}&$datarootdir&g' ;;
8005 esac
8006 _ACEOF
8007
8008 # Neutralize VPATH when `$srcdir' = `.'.
8009 # Shell code in configure.ac might set extrasub.
8010 # FIXME: do we really want to maintain this feature?
8011 cat >>$CONFIG_STATUS <<_ACEOF
8012 sed "$ac_vpsub
8013 $extrasub
8014 _ACEOF
8015 cat >>$CONFIG_STATUS <<\_ACEOF
8016 :t
8017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8018 s&@configure_input@&$configure_input&;t t
8019 s&@top_builddir@&$ac_top_builddir_sub&;t t
8020 s&@srcdir@&$ac_srcdir&;t t
8021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8022 s&@top_srcdir@&$ac_top_srcdir&;t t
8023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8024 s&@builddir@&$ac_builddir&;t t
8025 s&@abs_builddir@&$ac_abs_builddir&;t t
8026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8027 s&@INSTALL@&$ac_INSTALL&;t t
8028 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8029 $ac_datarootdir_hack
8030 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
8031
8032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8033 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8035 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8036 which seems to be undefined. Please make sure it is defined." >&5
8037 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8038 which seems to be undefined. Please make sure it is defined." >&2;}
8039
8040 rm -f "$tmp/stdin"
8041 case $ac_file in
8042 -) cat "$tmp/out"; rm -f "$tmp/out";;
8043 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8044 esac
8045 ;;
8046 :H)
8047 #
8048 # CONFIG_HEADER
8049 #
8050 _ACEOF
8051
8052 # Transform confdefs.h into a sed script `conftest.defines', that
8053 # substitutes the proper values into config.h.in to produce config.h.
8054 rm -f conftest.defines conftest.tail
8055 # First, append a space to every undef/define line, to ease matching.
8056 echo 's/$/ /' >conftest.defines
8057 # Then, protect against being on the right side of a sed subst, or in
8058 # an unquoted here document, in config.status. If some macros were
8059 # called several times there might be several #defines for the same
8060 # symbol, which is useless. But do not sort them, since the last
8061 # AC_DEFINE must be honored.
8062 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8063 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8064 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8065 # PARAMS is the parameter list in the macro definition--in most cases, it's
8066 # just an empty string.
8067 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8068 ac_dB='\\)[ (].*,\\1define\\2'
8069 ac_dC=' '
8070 ac_dD=' ,'
8071
8072 uniq confdefs.h |
8073 sed -n '
8074 t rset
8075 :rset
8076 s/^[ ]*#[ ]*define[ ][ ]*//
8077 t ok
8078 d
8079 :ok
8080 s/[\\&,]/\\&/g
8081 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8082 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8083 ' >>conftest.defines
8084
8085 # Remove the space that was appended to ease matching.
8086 # Then replace #undef with comments. This is necessary, for
8087 # example, in the case of _POSIX_SOURCE, which is predefined and required
8088 # on some systems where configure will not decide to define it.
8089 # (The regexp can be short, since the line contains either #define or #undef.)
8090 echo 's/ $//
8091 s,^[ #]*u.*,/* & */,' >>conftest.defines
8092
8093 # Break up conftest.defines:
8094 ac_max_sed_lines=50
8095
8096 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8097 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8098 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8099 # et cetera.
8100 ac_in='$ac_file_inputs'
8101 ac_out='"$tmp/out1"'
8102 ac_nxt='"$tmp/out2"'
8103
8104 while :
8105 do
8106 # Write a here document:
8107 cat >>$CONFIG_STATUS <<_ACEOF
8108 # First, check the format of the line:
8109 cat >"\$tmp/defines.sed" <<\\CEOF
8110 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8111 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8112 b
8113 :def
8114 _ACEOF
8115 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8116 echo 'CEOF
8117 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8118 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8119 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8120 grep . conftest.tail >/dev/null || break
8121 rm -f conftest.defines
8122 mv conftest.tail conftest.defines
8123 done
8124 rm -f conftest.defines conftest.tail
8125
8126 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8127 cat >>$CONFIG_STATUS <<\_ACEOF
8128 if test x"$ac_file" != x-; then
8129 echo "/* $configure_input */" >"$tmp/config.h"
8130 cat "$ac_result" >>"$tmp/config.h"
8131 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8132 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8133 echo "$as_me: $ac_file is unchanged" >&6;}
8134 else
8135 rm -f $ac_file
8136 mv "$tmp/config.h" $ac_file
8137 fi
8138 else
8139 echo "/* $configure_input */"
8140 cat "$ac_result"
8141 fi
8142 rm -f "$tmp/out12"
8143 # Compute $ac_file's index in $config_headers.
8144 _am_arg=$ac_file
8145 _am_stamp_count=1
8146 for _am_header in $config_headers :; do
8147 case $_am_header in
8148 $_am_arg | $_am_arg:* )
8149 break ;;
8150 * )
8151 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8152 esac
8153 done
8154 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8155 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8156 X"$_am_arg" : 'X\(//\)[^/]' \| \
8157 X"$_am_arg" : 'X\(//\)$' \| \
8158 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8159 echo X"$_am_arg" |
8160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8161 s//\1/
8162 q
8163 }
8164 /^X\(\/\/\)[^/].*/{
8165 s//\1/
8166 q
8167 }
8168 /^X\(\/\/\)$/{
8169 s//\1/
8170 q
8171 }
8172 /^X\(\/\).*/{
8173 s//\1/
8174 q
8175 }
8176 s/.*/./; q'`/stamp-h$_am_stamp_count
8177 ;;
8178
8179 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8180 echo "$as_me: executing $ac_file commands" >&6;}
8181 ;;
8182 esac
8183
8184
8185 case $ac_file$ac_mode in
8186 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8187 # Strip MF so we end up with the name of the file.
8188 mf=`echo "$mf" | sed -e 's/:.*$//'`
8189 # Check whether this is an Automake generated Makefile or not.
8190 # We used to match only the files named `Makefile.in', but
8191 # some people rename them; so instead we look at the file content.
8192 # Grep'ing the first line is not enough: some people post-process
8193 # each Makefile.in and add a new line on top of each file to say so.
8194 # Grep'ing the whole file is not good either: AIX grep has a line
8195 # limit of 2048, but all sed's we know have understand at least 4000.
8196 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8197 dirpart=`$as_dirname -- "$mf" ||
8198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8199 X"$mf" : 'X\(//\)[^/]' \| \
8200 X"$mf" : 'X\(//\)$' \| \
8201 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8202 echo X"$mf" |
8203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8204 s//\1/
8205 q
8206 }
8207 /^X\(\/\/\)[^/].*/{
8208 s//\1/
8209 q
8210 }
8211 /^X\(\/\/\)$/{
8212 s//\1/
8213 q
8214 }
8215 /^X\(\/\).*/{
8216 s//\1/
8217 q
8218 }
8219 s/.*/./; q'`
8220 else
8221 continue
8222 fi
8223 # Extract the definition of DEPDIR, am__include, and am__quote
8224 # from the Makefile without running `make'.
8225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8226 test -z "$DEPDIR" && continue
8227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8228 test -z "am__include" && continue
8229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8230 # When using ansi2knr, U may be empty or an underscore; expand it
8231 U=`sed -n 's/^U = //p' < "$mf"`
8232 # Find all dependency output files, they are included files with
8233 # $(DEPDIR) in their names. We invoke sed twice because it is the
8234 # simplest approach to changing $(DEPDIR) to its actual value in the
8235 # expansion.
8236 for file in `sed -n "
8237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8239 # Make sure the directory exists.
8240 test -f "$dirpart/$file" && continue
8241 fdir=`$as_dirname -- "$file" ||
8242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8243 X"$file" : 'X\(//\)[^/]' \| \
8244 X"$file" : 'X\(//\)$' \| \
8245 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8246 echo X"$file" |
8247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8248 s//\1/
8249 q
8250 }
8251 /^X\(\/\/\)[^/].*/{
8252 s//\1/
8253 q
8254 }
8255 /^X\(\/\/\)$/{
8256 s//\1/
8257 q
8258 }
8259 /^X\(\/\).*/{
8260 s//\1/
8261 q
8262 }
8263 s/.*/./; q'`
8264 { as_dir=$dirpart/$fdir
8265 case $as_dir in #(
8266 -*) as_dir=./$as_dir;;
8267 esac
8268 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8269 as_dirs=
8270 while :; do
8271 case $as_dir in #(
8272 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8273 *) as_qdir=$as_dir;;
8274 esac
8275 as_dirs="'$as_qdir' $as_dirs"
8276 as_dir=`$as_dirname -- "$as_dir" ||
8277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8278 X"$as_dir" : 'X\(//\)[^/]' \| \
8279 X"$as_dir" : 'X\(//\)$' \| \
8280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8281 echo X"$as_dir" |
8282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8283 s//\1/
8284 q
8285 }
8286 /^X\(\/\/\)[^/].*/{
8287 s//\1/
8288 q
8289 }
8290 /^X\(\/\/\)$/{
8291 s//\1/
8292 q
8293 }
8294 /^X\(\/\).*/{
8295 s//\1/
8296 q
8297 }
8298 s/.*/./; q'`
8299 test -d "$as_dir" && break
8300 done
8301 test -z "$as_dirs" || eval "mkdir $as_dirs"
8302 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8303 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8304 { (exit 1); exit 1; }; }; }
8305 # echo "creating $dirpart/$file"
8306 echo '# dummy' > "$dirpart/$file"
8307 done
8308 done
8309 ;;
8310
8311 esac
8312 done # for ac_tag
8313
8314
8315 { (exit 0); exit 0; }
8316 _ACEOF
8317 chmod +x $CONFIG_STATUS
8318 ac_clean_files=$ac_clean_files_save
8319
8320
8321 # configure is writing to config.log, and then calls config.status.
8322 # config.status does its own redirection, appending to config.log.
8323 # Unfortunately, on DOS this fails, as config.log is still kept open
8324 # by configure, so config.status won't be able to write to it; its
8325 # output is simply discarded. So we exec the FD to /dev/null,
8326 # effectively closing config.log, so it can be properly (re)opened and
8327 # appended to by config.status. When coming back to configure, we
8328 # need to make the FD available again.
8329 if test "$no_create" != yes; then
8330 ac_cs_success=:
8331 ac_config_status_args=
8332 test "$silent" = yes &&
8333 ac_config_status_args="$ac_config_status_args --quiet"
8334 exec 5>/dev/null
8335 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8336 exec 5>>config.log
8337 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8338 # would make configure fail if this is the last instruction.
8339 $ac_cs_success || { (exit 1); exit 1; }
8340 fi
8341
8342 #
8343 # CONFIG_SUBDIRS section.
8344 #
8345 if test "$no_recursion" != yes; then
8346
8347 # Remove --cache-file and --srcdir arguments so they do not pile up.
8348 ac_sub_configure_args=
8349 ac_prev=
8350 eval "set x $ac_configure_args"
8351 shift
8352 for ac_arg
8353 do
8354 if test -n "$ac_prev"; then
8355 ac_prev=
8356 continue
8357 fi
8358 case $ac_arg in
8359 -cache-file | --cache-file | --cache-fil | --cache-fi \
8360 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8361 ac_prev=cache_file ;;
8362 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8363 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8364 | --c=*)
8365 ;;
8366 --config-cache | -C)
8367 ;;
8368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8369 ac_prev=srcdir ;;
8370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8371 ;;
8372 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8373 ac_prev=prefix ;;
8374 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8375 ;;
8376 *)
8377 case $ac_arg in
8378 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8379 esac
8380 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
8381 esac
8382 done
8383
8384 # Always prepend --prefix to ensure using the same prefix
8385 # in subdir configurations.
8386 ac_arg="--prefix=$prefix"
8387 case $ac_arg in
8388 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8389 esac
8390 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8391
8392 # Pass --silent
8393 if test "$silent" = yes; then
8394 ac_sub_configure_args="--silent $ac_sub_configure_args"
8395 fi
8396
8397 ac_popdir=`pwd`
8398 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8399
8400 # Do not complain, so a configure script can configure whichever
8401 # parts of a large source tree are present.
8402 test -d "$srcdir/$ac_dir" || continue
8403
8404 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8405 echo "$as_me:$LINENO: $ac_msg" >&5
8406 echo "$ac_msg" >&6
8407 { as_dir="$ac_dir"
8408 case $as_dir in #(
8409 -*) as_dir=./$as_dir;;
8410 esac
8411 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8412 as_dirs=
8413 while :; do
8414 case $as_dir in #(
8415 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8416 *) as_qdir=$as_dir;;
8417 esac
8418 as_dirs="'$as_qdir' $as_dirs"
8419 as_dir=`$as_dirname -- "$as_dir" ||
8420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8421 X"$as_dir" : 'X\(//\)[^/]' \| \
8422 X"$as_dir" : 'X\(//\)$' \| \
8423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8424 echo X"$as_dir" |
8425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8426 s//\1/
8427 q
8428 }
8429 /^X\(\/\/\)[^/].*/{
8430 s//\1/
8431 q
8432 }
8433 /^X\(\/\/\)$/{
8434 s//\1/
8435 q
8436 }
8437 /^X\(\/\).*/{
8438 s//\1/
8439 q
8440 }
8441 s/.*/./; q'`
8442 test -d "$as_dir" && break
8443 done
8444 test -z "$as_dirs" || eval "mkdir $as_dirs"
8445 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8446 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8447 { (exit 1); exit 1; }; }; }
8448 ac_builddir=.
8449
8450 case "$ac_dir" in
8451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8452 *)
8453 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8454 # A ".." for each directory in $ac_dir_suffix.
8455 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8456 case $ac_top_builddir_sub in
8457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8459 esac ;;
8460 esac
8461 ac_abs_top_builddir=$ac_pwd
8462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8463 # for backward compatibility:
8464 ac_top_builddir=$ac_top_build_prefix
8465
8466 case $srcdir in
8467 .) # We are building in place.
8468 ac_srcdir=.
8469 ac_top_srcdir=$ac_top_builddir_sub
8470 ac_abs_top_srcdir=$ac_pwd ;;
8471 [\\/]* | ?:[\\/]* ) # Absolute name.
8472 ac_srcdir=$srcdir$ac_dir_suffix;
8473 ac_top_srcdir=$srcdir
8474 ac_abs_top_srcdir=$srcdir ;;
8475 *) # Relative name.
8476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8477 ac_top_srcdir=$ac_top_build_prefix$srcdir
8478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8479 esac
8480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8481
8482
8483 cd "$ac_dir"
8484
8485 # Check for guested configure; otherwise get Cygnus style configure.
8486 if test -f "$ac_srcdir/configure.gnu"; then
8487 ac_sub_configure=$ac_srcdir/configure.gnu
8488 elif test -f "$ac_srcdir/configure"; then
8489 ac_sub_configure=$ac_srcdir/configure
8490 elif test -f "$ac_srcdir/configure.in"; then
8491 # This should be Cygnus configure.
8492 ac_sub_configure=$ac_aux_dir/configure
8493 else
8494 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8495 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8496 ac_sub_configure=
8497 fi
8498
8499 # The recursion is here.
8500 if test -n "$ac_sub_configure"; then
8501 # Make the cache file name correct relative to the subdirectory.
8502 case $cache_file in
8503 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8504 *) # Relative name.
8505 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8506 esac
8507
8508 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8509 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8510 # The eval makes quoting arguments work.
8511 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8512 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8513 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8514 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8515 { (exit 1); exit 1; }; }
8516 fi
8517
8518 cd "$ac_popdir"
8519 done
8520 fi
8521
8522
8523 if test $build_elfutils = yes; then
8524 case "$with_elfutils" in
8525 /*) elfutils_srcdir="$with_elfutils" ;;
8526 *) elfutils_srcdir="../$with_elfutils" ;;
8527 esac
8528 { echo "$as_me:$LINENO: running ${elfutils_srcdir}/configure" >&5
8529 echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
8530 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
8531 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
8532 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
8533 # So we must make sure to pass those settings to elfutils configure.
8534 elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
8535 here=`pwd`
8536 (mkdir -p build-elfutils && cd build-elfutils &&
8537 ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \
8538 --includedir="${here}/include-elfutils" \
8539 --libdir="${here}/lib-elfutils" \
8540 --exec-prefix="$exec_prefix" \
8541 --prefix="$prefix" \
8542 CFLAGS="${CFLAGS/-Wall/}" \
8543 LDFLAGS="$LDFLAGS $elfutils_rpath"
8544 )
8545 fi
8546
This page took 0.492696 seconds and 6 git commands to generate.