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