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