2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for systemtap 3.1.
5 # Report bugs to <systemtap@sourceware.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: systemtap@sourceware.org about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='systemtap'
582 PACKAGE_TARNAME
='systemtap'
583 PACKAGE_VERSION
='3.1'
584 PACKAGE_STRING
='systemtap 3.1'
585 PACKAGE_BUGREPORT
='systemtap@sourceware.org'
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
625 enable_option_checking
=no
626 ac_subst_vars
='am__EXEEXT_FALSE
644 support_section_question
645 HAVE_MONITOR_LIBS_FALSE
646 HAVE_MONITOR_LIBS_TRUE
675 HAVE_LIBREADLINE_FALSE
676 HAVE_LIBREADLINE_TRUE
692 XMLTO_STRINGPARAM_FALSE
693 XMLTO_STRINGPARAM_TRUE
712 BUILD_TRANSLATOR_FALSE
713 BUILD_TRANSLATOR_TRUE
743 XGETTEXT_EXTRA_OPTIONS
751 GETTEXT_MACRO_VERSION
783 MAINTAINER_MODE_FALSE
797 INSTALL_STRIP_PROGRAM
851 program_transform_name
864 enable_option_checking
866 enable_maintainer_mode
867 enable_dependency_tracking
898 ac_precious_vars
='build_alias
929 ac_subdirs_all
='testsuite'
931 # Initialize some variables set by options.
933 ac_init_version
=false
934 ac_unrecognized_opts
=
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
945 program_transform_name
=s
,x
,x
,
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir
='${exec_prefix}/bin'
960 sbindir
='${exec_prefix}/sbin'
961 libexecdir
='${exec_prefix}/libexec'
962 datarootdir
='${prefix}/share'
963 datadir
='${datarootdir}'
964 sysconfdir
='${prefix}/etc'
965 sharedstatedir
='${prefix}/com'
966 localstatedir
='${prefix}/var'
967 includedir
='${prefix}/include'
968 oldincludedir
='/usr/include'
969 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
970 infodir
='${datarootdir}/info'
975 libdir
='${exec_prefix}/lib'
976 localedir
='${datarootdir}/locale'
977 mandir
='${datarootdir}/man'
983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
985 eval $ac_prev=\
$ac_option
991 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996 # Accept the important Cygnus configure options, so we can diagnose typos.
998 case $ac_dashdash$ac_option in
1002 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1004 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1005 bindir
=$ac_optarg ;;
1007 -build |
--build |
--buil |
--bui |
--bu)
1008 ac_prev
=build_alias
;;
1009 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1010 build_alias
=$ac_optarg ;;
1012 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1013 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1014 ac_prev
=cache_file
;;
1015 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1016 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1017 cache_file
=$ac_optarg ;;
1019 --config-cache |
-C)
1020 cache_file
=config.cache
;;
1022 -datadir |
--datadir |
--datadi |
--datad)
1024 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1025 datadir
=$ac_optarg ;;
1027 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1028 |
--dataroo |
--dataro |
--datar)
1029 ac_prev
=datarootdir
;;
1030 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1031 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1032 datarootdir
=$ac_optarg ;;
1034 -disable-* |
--disable-*)
1035 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1038 as_fn_error $?
"invalid feature name: $ac_useropt"
1039 ac_useropt_orig
=$ac_useropt
1040 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1043 "enable_
$ac_useropt"
1045 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1046 ac_unrecognized_sep
=', ';;
1048 eval enable_
$ac_useropt=no
;;
1050 -docdir |
--docdir |
--docdi |
--doc |
--do)
1052 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1053 docdir
=$ac_optarg ;;
1055 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1057 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1058 dvidir
=$ac_optarg ;;
1060 -enable-* |
--enable-*)
1061 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1064 as_fn_error $?
"invalid feature name: $ac_useropt"
1065 ac_useropt_orig
=$ac_useropt
1066 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_
$ac_useropt"
1071 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1072 ac_unrecognized_sep
=', ';;
1074 eval enable_
$ac_useropt=\
$ac_optarg ;;
1076 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1077 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1078 |
--exec |
--exe |
--ex)
1079 ac_prev
=exec_prefix
;;
1080 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1081 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1082 |
--exec=* |
--exe=* |
--ex=*)
1083 exec_prefix
=$ac_optarg ;;
1085 -gas |
--gas |
--ga |
--g)
1086 # Obsolete; use --with-gas.
1089 -help |
--help |
--hel |
--he |
-h)
1090 ac_init_help
=long
;;
1091 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1092 ac_init_help
=recursive
;;
1093 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1094 ac_init_help
=short
;;
1096 -host |
--host |
--hos |
--ho)
1097 ac_prev
=host_alias
;;
1098 -host=* |
--host=* |
--hos=* |
--ho=*)
1099 host_alias
=$ac_optarg ;;
1101 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1103 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1105 htmldir
=$ac_optarg ;;
1107 -includedir |
--includedir |
--includedi |
--included |
--include \
1108 |
--includ |
--inclu |
--incl |
--inc)
1109 ac_prev
=includedir
;;
1110 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1111 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1112 includedir
=$ac_optarg ;;
1114 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1116 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1117 infodir
=$ac_optarg ;;
1119 -libdir |
--libdir |
--libdi |
--libd)
1121 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1122 libdir
=$ac_optarg ;;
1124 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1125 |
--libexe |
--libex |
--libe)
1126 ac_prev
=libexecdir
;;
1127 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1128 |
--libexe=* |
--libex=* |
--libe=*)
1129 libexecdir
=$ac_optarg ;;
1131 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1132 ac_prev
=localedir
;;
1133 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1134 localedir
=$ac_optarg ;;
1136 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1137 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1138 ac_prev
=localstatedir
;;
1139 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1140 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1141 localstatedir
=$ac_optarg ;;
1143 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1145 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1146 mandir
=$ac_optarg ;;
1148 -nfp |
--nfp |
--nf)
1149 # Obsolete; use --without-fp.
1152 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1153 |
--no-cr |
--no-c |
-n)
1156 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1157 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1160 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1161 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1162 |
--oldin |
--oldi |
--old |
--ol |
--o)
1163 ac_prev
=oldincludedir
;;
1164 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1165 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1166 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1167 oldincludedir
=$ac_optarg ;;
1169 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1171 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1172 prefix
=$ac_optarg ;;
1174 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1175 |
--program-pre |
--program-pr |
--program-p)
1176 ac_prev
=program_prefix
;;
1177 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1178 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1179 program_prefix
=$ac_optarg ;;
1181 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1182 |
--program-suf |
--program-su |
--program-s)
1183 ac_prev
=program_suffix
;;
1184 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1185 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1186 program_suffix
=$ac_optarg ;;
1188 -program-transform-name |
--program-transform-name \
1189 |
--program-transform-nam |
--program-transform-na \
1190 |
--program-transform-n |
--program-transform- \
1191 |
--program-transform |
--program-transfor \
1192 |
--program-transfo |
--program-transf \
1193 |
--program-trans |
--program-tran \
1194 |
--progr-tra |
--program-tr |
--program-t)
1195 ac_prev
=program_transform_name
;;
1196 -program-transform-name=* |
--program-transform-name=* \
1197 |
--program-transform-nam=* |
--program-transform-na=* \
1198 |
--program-transform-n=* |
--program-transform-=* \
1199 |
--program-transform=* |
--program-transfor=* \
1200 |
--program-transfo=* |
--program-transf=* \
1201 |
--program-trans=* |
--program-tran=* \
1202 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1203 program_transform_name
=$ac_optarg ;;
1205 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1207 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1208 pdfdir
=$ac_optarg ;;
1210 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1212 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1215 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1216 |
-silent |
--silent |
--silen |
--sile |
--sil)
1219 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1221 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1223 sbindir
=$ac_optarg ;;
1225 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1226 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1227 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1229 ac_prev
=sharedstatedir
;;
1230 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1231 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1232 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1234 sharedstatedir
=$ac_optarg ;;
1236 -site |
--site |
--sit)
1238 -site=* |
--site=* |
--sit=*)
1241 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1243 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1244 srcdir
=$ac_optarg ;;
1246 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1247 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1248 ac_prev
=sysconfdir
;;
1249 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1250 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1251 sysconfdir
=$ac_optarg ;;
1253 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1254 ac_prev
=target_alias
;;
1255 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1256 target_alias
=$ac_optarg ;;
1258 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1261 -version |
--version |
--versio |
--versi |
--vers |
-V)
1262 ac_init_version
=: ;;
1265 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1268 as_fn_error $?
"invalid package name: $ac_useropt"
1269 ac_useropt_orig
=$ac_useropt
1270 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1275 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep
=', ';;
1278 eval with_
$ac_useropt=\
$ac_optarg ;;
1280 -without-* |
--without-*)
1281 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1284 as_fn_error $?
"invalid package name: $ac_useropt"
1285 ac_useropt_orig
=$ac_useropt
1286 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1291 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep
=', ';;
1294 eval with_
$ac_useropt=no
;;
1297 # Obsolete; use --with-x.
1300 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1301 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1302 ac_prev
=x_includes
;;
1303 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1304 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1305 x_includes
=$ac_optarg ;;
1307 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1308 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1309 ac_prev
=x_libraries
;;
1310 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1311 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1312 x_libraries
=$ac_optarg ;;
1314 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1315 Try \`$0 --help' for more information"
1319 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 case $ac_envvar in #(
1322 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1323 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1325 eval $ac_envvar=\
$ac_optarg
1326 export $ac_envvar ;;
1329 # FIXME: should be removed in autoconf 3.0.
1330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1339 if test -n "$ac_prev"; then
1340 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1341 as_fn_error $?
"missing argument to $ac_option"
1344 if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1347 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1352 # Check all directory arguments for consistency.
1353 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir
1358 eval ac_val
=\$
$ac_var
1359 # Remove trailing slashes.
1362 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\
$ac_val;;
1365 # Be sure to have absolute directory names.
1367 [\\/$
]* | ?
:[\\/]* ) continue;;
1368 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1370 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1373 # There might be people who depend on the old broken behavior: `$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1378 target
=$target_alias
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x
; then
1382 if test "x$build_alias" = x
; then
1383 cross_compiling
=maybe
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1392 test "$silent" = yes && exec 6>/dev
/null
1395 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di
=`ls -di .` &&
1397 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $?
"working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $?
"pwd does not report name of working directory"
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted
=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir
=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 $as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1435 ac_srcdir_defaulted
=no
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1439 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1441 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1453 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455 for ac_var
in $ac_precious_vars; do
1456 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1458 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1463 # Report the --help message.
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1469 \`configure' configures systemtap 3.1 to adapt to many kinds of systems.
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1476 Defaults for the options are specified in brackets.
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print \`checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1500 For better control, use the options below.
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
1527 --program-prefix=PREFIX prepend PREFIX to installed program names
1528 --program-suffix=SUFFIX append SUFFIX to installed program names
1529 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1532 --build=BUILD configure
for building on BUILD
[guessed
]
1533 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1534 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1538 if test -n "$ac_init_help"; then
1539 case $ac_init_help in
1540 short | recursive
) echo "Configuration of systemtap 3.1:";;
1545 --disable-option-checking ignore unrecognized
--enable/--with options
1546 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1547 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1548 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1549 --disable-silent-rules verbose build output
(undo
: "make V=0")
1550 --enable-maintainer-mode
1551 enable make rules and dependencies not useful
(and
1552 sometimes confusing
) to the casual installer
1553 --enable-dependency-tracking
1554 do not reject slow dependency extractors
1555 --disable-dependency-tracking
1556 speeds up one-time build
1557 --disable-largefile omit support
for large files
1558 --disable-nls do not use Native Language Support
1559 --disable-rpath do not hardcode runtime library paths
1560 --enable-prologues make -P prologue-searching default
1561 --disable-sdt-probes disable process.mark probes
in stap
, staprun
, stapio
1562 --disable-ssp disable gcc stack-protector
1563 --enable-pie enable position-independent-executable
1564 --enable-sqlite build with sqlite support
1565 --disable-translator build only runtime utilities
1566 --enable-crash[=DIRECTORY
]
1567 enable crash extension
(default is disabled
).
1568 Optional DIRECTORY is the path to the crash header
1569 file (needed
if installed
in a non-standard
1571 --enable-docs enable building documentation
(default on
if latex
1573 --enable-refdocs enable building reference documentation
(default on
1574 if other documentation built
).
1575 --enable-htmldocs enable building html documentation
(default off
).
1576 --enable-server enable building of stap-server
(default on
if nss
1578 --enable-virt enable building of stapvirt support
(default on
if
1579 libvirt etc. found
).
1582 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1583 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1584 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1585 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1586 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1587 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1588 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1589 --without-nss Do not use NSS even
if present
1590 --with-dracutstap=DIR Install dracut module files
in DIR
1591 --without-avahi Do not use Avahi even
if present
1592 --with-rpm query rpm database
for missing debuginfos
1593 --with-python3 prefer
/usr
/bin
/python3
1594 --with-elfutils=DIRECTORY
1595 find elfutils
source code
in DIRECTORY
1596 --with-dyninst=DIRECTORY
1597 find dyninst headers
/libraries
in DIRECTORY
1598 --without-python2 Disable building python version
2 support
, even
if
1600 --without-selinux Do not use libselinux even
if present
1601 --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so
1602 against
(default is
/usr
/lib
/jvm
/java
)
1603 --with-extra-version=STRING
1604 Add STRING to stap
-V version
1606 Some influential environment variables
:
1607 CC C compiler
command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1610 nonstandard directory
<lib dir
>
1611 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1612 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1613 you have headers
in a nonstandard directory
<include dir
>
1615 CXX C
++ compiler
command
1616 CXXFLAGS C
++ compiler flags
1617 PYTHON the Python interpreter
1618 PKG_CONFIG path to pkg-config utility
1620 directories to add to pkg-config
's search path
1622 path overriding pkg-config's built-in search path
1623 nss_CFLAGS C compiler flags
for nss
, overriding pkg-config
1624 nss_LIBS linker flags
for nss
, overriding pkg-config
1626 C compiler flags
for avahi
, overriding pkg-config
1627 avahi_LIBS linker flags
for avahi
, overriding pkg-config
1628 CXXCPP C
++ preprocessor
1630 C compiler flags
for libvirt
, overriding pkg-config
1632 linker flags
for libvirt
, overriding pkg-config
1634 C compiler flags
for libxml2
, overriding pkg-config
1636 linker flags
for libxml2
, overriding pkg-config
1638 C compiler flags
for jsonc
, overriding pkg-config
1639 jsonc_LIBS linker flags
for jsonc
, overriding pkg-config
1641 C compiler flags
for ncurses
, overriding pkg-config
1643 linker flags
for ncurses
, overriding pkg-config
1645 C compiler flags
for selinux
, overriding pkg-config
1647 linker flags
for selinux
, overriding pkg-config
1649 Use these variables to override the choices made by
`configure' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1652 Report bugs to <systemtap@sourceware.org>.
1657 if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1669 # A ".." for each directory in $ac_dir_suffix.
1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1682 .) # We are building in place.
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
1687 ac_srcdir=$srcdir$ac_dir_suffix;
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for guested configure.
1699 if test -f "$ac_srcdir/configure.gnu"; then
1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702 elif test -f "$ac_srcdir/configure"; then
1704 $SHELL "$ac_srcdir/configure" --help=recursive
1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 cd "$ac_pwd" || { ac_status=$?; break; }
1712 test -n "$ac_init_help" && exit $ac_status
1713 if $ac_init_version; then
1715 systemtap configure 3.1
1716 generated by GNU Autoconf 2.69
1718 Copyright (C) 2012 Free Software Foundation, Inc.
1719 This configure script is free software; the Free Software Foundation
1720 gives unlimited permission to copy, distribute and modify it.
1725 ## ------------------------ ##
1726 ## Autoconf initialization. ##
1727 ## ------------------------ ##
1729 # ac_fn_c_try_compile LINENO
1730 # --------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1739 *) ac_try_echo
=$ac_try;;
1741 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1745 if test -s conftest.err
; then
1746 grep -v '^ *+' conftest.err
>conftest.er1
1747 cat conftest.er1
>&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.
$ac_objext; then :
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.
$ac_ext >&5
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status
$ac_retval
1765 } # ac_fn_c_try_compile
1767 # ac_fn_c_try_cpp LINENO
1768 # ----------------------
1769 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1773 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } > conftest.i && {
1789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1809 ac_fn_c_check_header_mongrel ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if eval \${$3+:} false; then :
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1822 # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_header_compiler=yes
1833 ac_header_compiler=no
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847 ac_header_preproc=yes
1849 ac_header_preproc=no
1851 rm -f conftest.err conftest.i conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1855 # So? What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ( $as_echo "## --------------------------------------- ##
1875 ## Report this to systemtap@sourceware.org ##
1876 ## --------------------------------------- ##"
1877 ) | sed "s/^/$as_me: WARNING: /" >&2
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1885 eval "$3=\$ac_header_compiler"
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 } # ac_fn_c_check_header_mongrel
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { { ac_try="$ac_link"
1904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1905 *) ac_try_echo
=$ac_try;;
1907 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1913 { { case "(($ac_try" in
1914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_try") 2>&5
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; }; }; then :
1925 $as_echo "$as_me: program exited with status $ac_status" >&5
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=$ac_status
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1937 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists and can be compiled using the include files in
1940 # INCLUDES, setting the cache variable VAR accordingly.
1941 ac_fn_c_check_header_compile ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 } # ac_fn_c_check_header_compile
1968 # ac_fn_cxx_try_compile LINENO
1969 # ----------------------------
1970 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_cxx_try_compile ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext
1975 if { { ac_try="$ac_compile"
1977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1978 *) ac_try_echo
=$ac_try;;
1980 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_compile") 2>conftest.err
1984 if test -s conftest.err
; then
1985 grep -v '^ *+' conftest.err
>conftest.er1
1986 cat conftest.er1
>&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_cxx_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest.
$ac_objext; then :
1996 $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.
$ac_ext >&5
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 as_fn_set_status
$ac_retval
2004 } # ac_fn_cxx_try_compile
2006 # ac_fn_c_try_link LINENO
2007 # -----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 rm -f conftest.
$ac_objext conftest
$ac_exeext
2013 if { { ac_try
="$ac_link"
2015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>conftest.err
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest$ac_exeext && {
2032 test "$cross_compiling" = yes ||
2033 test -x conftest$ac_exeext
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2042 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044 # interfere with the next link command; also delete a directory that is
2045 # left behind by Apple's compiler. We do this before executing the actions.
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status $ac_retval
2050 } # ac_fn_c_try_link
2052 # ac_fn_c_check_func LINENO FUNC VAR
2053 # ----------------------------------
2054 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2055 ac_fn_c_check_func ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2067 #define $2 innocuous_$2
2069 /* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char $2 (); below.
2071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2072 <limits.h> exists even on freestanding compilers. */
2075 # include <limits.h>
2077 # include <assert.h>
2082 /* Override any GCC internal prototype to avoid an error.
2083 Use char because int might match the return type of a GCC
2084 builtin and then its argument prototype would still apply. */
2089 /* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092 #if defined __stub_$2 || defined __stub___$2
2104 if ac_fn_c_try_link "$LINENO"; then :
2109 rm -f core conftest.err conftest.$ac_objext \
2110 conftest$ac_exeext conftest.$ac_ext
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 } # ac_fn_c_check_func
2119 # ac_fn_cxx_try_cpp LINENO
2120 # ------------------------
2121 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2122 ac_fn_cxx_try_cpp ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if { { ac_try="$ac_cpp conftest.$ac_ext"
2127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2128 *) ac_try_echo
=$ac_try;;
2130 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131 $as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2134 if test -s conftest.err
; then
2135 grep -v '^ *+' conftest.err
>conftest.er1
2136 cat conftest.er1
>&5
2137 mv -f conftest.er1 conftest.err
2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140 test $ac_status = 0; } > conftest.i
&& {
2141 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2142 test ! -s conftest.err
2146 $as_echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.
$ac_ext >&5
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 as_fn_set_status
$ac_retval
2154 } # ac_fn_cxx_try_cpp
2156 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2157 # ---------------------------------------------------------
2158 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2159 # the include files in INCLUDES and setting the cache variable VAR
2161 ac_fn_cxx_check_header_mongrel
()
2163 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2164 if eval \
${$3+:} false
; then :
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2166 $as_echo_n "checking for $2... " >&6; }
2167 if eval \
${$3+:} false
; then :
2168 $as_echo_n "(cached) " >&6
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2174 # Is the header compilable?
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2176 $as_echo_n "checking $2 usability... " >&6; }
2177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2182 if ac_fn_cxx_try_compile
"$LINENO"; then :
2183 ac_header_compiler
=yes
2185 ac_header_compiler
=no
2187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2189 $as_echo "$ac_header_compiler" >&6; }
2191 # Is the header present?
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2193 $as_echo_n "checking $2 presence... " >&6; }
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2198 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2199 ac_header_preproc
=yes
2201 ac_header_preproc
=no
2203 rm -f conftest.err conftest.i conftest.
$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2205 $as_echo "$ac_header_preproc" >&6; }
2207 # So? What about this header?
2208 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2211 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2213 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2217 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2219 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2221 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2223 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226 ( $as_echo "## --------------------------------------- ##
2227 ## Report this to systemtap@sourceware.org ##
2228 ## --------------------------------------- ##"
2229 ) |
sed "s/^/$as_me: WARNING: /" >&2
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if eval \
${$3+:} false
; then :
2235 $as_echo_n "(cached) " >&6
2237 eval "$3=\$ac_header_compiler"
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_cxx_check_header_mongrel
2247 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2248 # ---------------------------------------------
2249 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2251 ac_fn_c_check_decl
()
2253 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2254 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2255 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2257 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2258 if eval \
${$3+:} false
; then :
2259 $as_echo_n "(cached) " >&6
2261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2267 #ifndef $as_decl_name
2269 (void) $as_decl_use;
2271 (void) $as_decl_name;
2279 if ac_fn_c_try_compile
"$LINENO"; then :
2284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_c_check_decl
2292 cat >config.log
<<_ACEOF
2293 This file contains any messages produced by compilers while
2294 running configure, to aid debugging if configure makes a mistake.
2296 It was created by systemtap $as_me 3.1, which was
2297 generated by GNU Autoconf 2.69. Invocation command line was
2309 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2310 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2311 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2312 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2313 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2315 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2316 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2318 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2319 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2320 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2321 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2322 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2323 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2324 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir
=.
2333 $as_echo "PATH: $as_dir"
2349 # Keep a trace of the command line.
2350 # Strip out --no-create and --no-recursion so they do not pile up.
2351 # Strip out --silent because we don't want to record it for future runs.
2352 # Also quote any args containing shell meta-characters.
2353 # Make two passes to allow for proper duplicate-argument suppression.
2357 ac_must_keep_next
=false
2363 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2364 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2365 |
-silent |
--silent |
--silen |
--sile |
--sil)
2368 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2371 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2373 as_fn_append ac_configure_args1
" '$ac_arg'"
2374 if test $ac_must_keep_next = true
; then
2375 ac_must_keep_next
=false
# Got value, back to normal.
2378 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2379 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2380 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2381 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2382 case "$ac_configure_args0 " in
2383 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2386 -* ) ac_must_keep_next
=true
;;
2389 as_fn_append ac_configure_args
" '$ac_arg'"
2394 { ac_configure_args0
=; unset ac_configure_args0
;}
2395 { ac_configure_args1
=; unset ac_configure_args1
;}
2397 # When interrupted or exit'd, cleanup temporary files, and complete
2398 # config.log. We remove comments because anyway the quotes in there
2399 # would cause problems or look ugly.
2400 # WARNING: Use '\'' to represent an apostrophe within the trap.
2401 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2402 trap 'exit_status=$?
2403 # Save into config.log some information that might help in debugging.
2407 $as_echo "## ---------------- ##
2408 ## Cache variables. ##
2409 ## ---------------- ##"
2411 # The following way of writing the cache mishandles newlines in values,
2413 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2414 eval ac_val=\$$ac_var
2418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2422 _ | IFS | as_nl) ;; #(
2423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2424 *) { eval $ac_var=; unset $ac_var;} ;;
2429 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2430 *${as_nl}ac_space=\ *)
2432 "s/'\''/'\''\\\\'\'''\''/g;
2433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2443 $as_echo "## ----------------- ##
2444 ## Output variables. ##
2445 ## ----------------- ##"
2447 for ac_var in $ac_subst_vars
2449 eval ac_val=\$$ac_var
2451 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2453 $as_echo "$ac_var='\''$ac_val'\''"
2457 if test -n "$ac_subst_files"; then
2458 $as_echo "## ------------------- ##
2459 ## File substitutions. ##
2460 ## ------------------- ##"
2462 for ac_var
in $ac_subst_files
2464 eval ac_val
=\$
$ac_var
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2468 $as_echo "$ac_var='\''$ac_val'\''"
2473 if test -s confdefs.h; then
2474 $as_echo "## ----------- ##
2481 test "$ac_signal" != 0 &&
2482 $as_echo "$as_me: caught signal $ac_signal"
2483 $as_echo "$as_me: exit $exit_status"
2485 rm -f core *.core core.conftest.* &&
2486 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2489 for ac_signal
in 1 2 13 15; do
2490 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2495 rm -f -r conftest
* confdefs.h
2497 $as_echo "/* confdefs.h */" > confdefs.h
2499 # Predefined preprocessor variables.
2501 cat >>confdefs.h
<<_ACEOF
2502 #define PACKAGE_NAME "$PACKAGE_NAME"
2505 cat >>confdefs.h
<<_ACEOF
2506 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2509 cat >>confdefs.h
<<_ACEOF
2510 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2513 cat >>confdefs.h
<<_ACEOF
2514 #define PACKAGE_STRING "$PACKAGE_STRING"
2517 cat >>confdefs.h
<<_ACEOF
2518 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2521 cat >>confdefs.h
<<_ACEOF
2522 #define PACKAGE_URL "$PACKAGE_URL"
2526 # Let the site file select an alternate cache file if it wants to.
2527 # Prefer an explicitly selected file to automatically selected ones.
2530 if test -n "$CONFIG_SITE"; then
2531 # We do not want a PATH search for config.site.
2532 case $CONFIG_SITE in #((
2533 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2534 */*) ac_site_file1
=$CONFIG_SITE;;
2535 *) ac_site_file1
=.
/$CONFIG_SITE;;
2537 elif test "x$prefix" != xNONE
; then
2538 ac_site_file1
=$prefix/share
/config.site
2539 ac_site_file2
=$prefix/etc
/config.site
2541 ac_site_file1
=$ac_default_prefix/share
/config.site
2542 ac_site_file2
=$ac_default_prefix/etc
/config.site
2544 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2546 test "x$ac_site_file" = xNONE
&& continue
2547 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2549 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2550 sed 's/^/| /' "$ac_site_file" >&5
2552 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2554 as_fn_error $?
"failed to load site script $ac_site_file
2555 See \`config.log' for more details" "$LINENO" 5; }
2559 if test -r "$cache_file"; then
2560 # Some versions of bash will fail to source /dev/null (special files
2561 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2562 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2564 $as_echo "$as_me: loading cache $cache_file" >&6;}
2566 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2567 *) .
"./$cache_file";;
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2572 $as_echo "$as_me: creating cache $cache_file" >&6;}
2576 gt_needs
="$gt_needs "
2577 # Check that the precious variables saved in the cache have kept the same
2579 ac_cache_corrupted
=false
2580 for ac_var
in $ac_precious_vars; do
2581 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2582 eval ac_new_set
=\
$ac_env_${ac_var}_set
2583 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2584 eval ac_new_val
=\
$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2588 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted
=: ;;
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted
=: ;;
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w
=`echo x $ac_old_val`
2599 ac_new_val_w
=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2602 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2603 ac_cache_corrupted
=:
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\
$ac_old_val
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2615 # Pass precious variables to config.status.
2616 if test "$ac_new_set" = set; then
2618 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2619 *) ac_arg
=$ac_var=$ac_new_val ;;
2621 case " $ac_configure_args " in
2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2623 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2627 if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2631 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2632 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2634 ## -------------------- ##
2635 ## Main body of script. ##
2636 ## -------------------- ##
2639 ac_cpp
='$CPP $CPPFLAGS'
2640 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2647 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2648 if test -f "$ac_dir/install-sh"; then
2650 ac_install_sh
="$ac_aux_dir/install-sh -c"
2652 elif test -f "$ac_dir/install.sh"; then
2654 ac_install_sh
="$ac_aux_dir/install.sh -c"
2656 elif test -f "$ac_dir/shtool"; then
2658 ac_install_sh
="$ac_aux_dir/shtool install -c"
2662 if test -z "$ac_aux_dir"; then
2663 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2666 # These three variables are undocumented and unsupported,
2667 # and are intended to be withdrawn in a future Autoconf release.
2668 # They can cause serious problems if a builder's source tree is in a directory
2669 # whose full name contains unusual characters.
2670 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2671 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2672 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2675 # Make sure we can run config.sub.
2676 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2677 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2680 $as_echo_n "checking build system type... " >&6; }
2681 if ${ac_cv_build+:} false
; then :
2682 $as_echo_n "(cached) " >&6
2684 ac_build_alias
=$build_alias
2685 test "x$ac_build_alias" = x
&&
2686 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2687 test "x$ac_build_alias" = x
&&
2688 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2689 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2690 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2694 $as_echo "$ac_cv_build" >&6; }
2695 case $ac_cv_build in
2697 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2700 ac_save_IFS
=$IFS; IFS
='-'
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2710 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2714 $as_echo_n "checking host system type... " >&6; }
2715 if ${ac_cv_host+:} false
; then :
2716 $as_echo_n "(cached) " >&6
2718 if test "x$host_alias" = x
; then
2719 ac_cv_host
=$ac_cv_build
2721 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2722 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2727 $as_echo "$ac_cv_host" >&6; }
2730 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2733 ac_save_IFS
=$IFS; IFS
='-'
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2743 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2747 $as_echo_n "checking target system type... " >&6; }
2748 if ${ac_cv_target+:} false
; then :
2749 $as_echo_n "(cached) " >&6
2751 if test "x$target_alias" = x
; then
2752 ac_cv_target
=$ac_cv_host
2754 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2755 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2760 $as_echo "$ac_cv_target" >&6; }
2761 case $ac_cv_target in
2763 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2765 target
=$ac_cv_target
2766 ac_save_IFS
=$IFS; IFS
='-'
2772 # Remember, the first character of IFS is used to create $*,
2773 # except with old shells:
2776 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2779 # The aliases save the names the user supplied, while $host etc.
2780 # will get canonicalized.
2781 test -n "$target_alias" &&
2782 test "$program_prefix$program_suffix$program_transform_name" = \
2784 program_prefix
=${target_alias}-
2787 am__api_version
='1.15'
2789 # Find a good install program. We prefer a C program (faster),
2790 # so one script is as good as another. But avoid the broken or
2791 # incompatible versions:
2792 # SysV /etc/install, /usr/sbin/install
2793 # SunOS /usr/etc/install
2794 # IRIX /sbin/install
2796 # AmigaOS /C/install, which installs bootblocks on floppy discs
2797 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2800 # OS/2's system install, which has a completely different semantic
2801 # ./install, which can be erroneously created by make from ./install.sh.
2802 # Reject install programs that cannot install multiple files.
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2804 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2805 if test -z "$INSTALL"; then
2806 if ${ac_cv_path_install+:} false
; then :
2807 $as_echo_n "(cached) " >&6
2809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir
=.
2814 # Account for people who put trailing slashes in PATH elements.
2815 case $as_dir/ in #((
2816 .
/ | .
// |
/[cC
]/* | \
2817 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2818 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2821 # OSF1 and SCO ODT 3.0 have their own names for install.
2822 # Don't use installbsd from OSF since it installs stuff as root
2824 for ac_prog
in ginstall scoinst
install; do
2825 for ac_exec_ext
in '' $ac_executable_extensions; do
2826 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2827 if test $ac_prog = install &&
2828 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2829 # AIX install. It has an incompatible calling convention.
2831 elif test $ac_prog = install &&
2832 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2833 # program-specific install script used by HP pwplus--don't use.
2836 rm -rf conftest.one conftest.two conftest.dir
2837 echo one
> conftest.one
2838 echo two
> conftest.two
2840 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2841 test -s conftest.one
&& test -s conftest.two
&&
2842 test -s conftest.dir
/conftest.one
&&
2843 test -s conftest.dir
/conftest.two
2845 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2858 rm -rf conftest.one conftest.two conftest.dir
2861 if test "${ac_cv_path_install+set}" = set; then
2862 INSTALL
=$ac_cv_path_install
2864 # As a last resort, use the slow shell script. Don't cache a
2865 # value for INSTALL within a source directory, because that will
2866 # break other packages using the cache if that directory is
2867 # removed, or if the value is a relative name.
2868 INSTALL
=$ac_install_sh
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2872 $as_echo "$INSTALL" >&6; }
2874 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2875 # It thinks the first close brace ends the variable substitution.
2876 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2878 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2880 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2883 $as_echo_n "checking whether build environment is sane... " >&6; }
2884 # Reject unsafe characters in $srcdir or the absolute working directory
2885 # name. Accept space and tab only in the latter.
2889 *[\\\"\
#\$\&\'\`$am_lf]*)
2890 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2893 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2894 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2897 # Do 'set' in a subshell so we don't clobber the current shell's
2898 # arguments. Must try -L first in case configure is actually a
2899 # symlink; some systems play weird games with the mod time of symlinks
2900 # (eg FreeBSD returns the mod time of the symlink's containing
2904 for am_try
in 1 2; do
2905 echo "timestamp, slept: $am_has_slept" > conftest.
file
2906 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2907 if test "$*" = "X"; then
2909 set X
`ls -t "$srcdir/configure" conftest.file`
2911 if test "$*" != "X $srcdir/configure conftest.file" \
2912 && test "$*" != "X conftest.file $srcdir/configure"; then
2914 # If neither matched, then we have a broken ls. This can happen
2915 # if, for instance, CONFIG_SHELL is bash and it inherits a
2916 # broken ls alias from the environment. This has actually
2917 # happened. Such a system could not be considered "sane".
2918 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2919 alias in your environment" "$LINENO" 5
2921 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2928 test "$2" = conftest.
file
2934 as_fn_error $?
"newly created file is older than distributed files!
2935 Check your system clock" "$LINENO" 5
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938 $as_echo "yes" >&6; }
2939 # If we didn't sleep, we still need to ensure time stamps of config.status and
2940 # generated files are strictly newer.
2942 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2949 test "$program_prefix" != NONE
&&
2950 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2951 # Use a double $ so make ignores it.
2952 test "$program_suffix" != NONE
&&
2953 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2954 # Double any \ or $.
2955 # By default was `s,x,x', remove it if useless.
2956 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2957 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2959 # Expand $ac_aux_dir to an absolute path.
2960 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2962 if test x
"${MISSING+set}" != xset
; then
2965 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2967 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2970 # Use eval to expand $SHELL
2971 if eval "$MISSING --is-lightweight"; then
2972 am_missing_run
="$MISSING "
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2976 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2979 if test x
"${install_sh+set}" != xset
; then
2982 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2984 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2988 # Installed binaries are usually stripped using 'strip' when the user
2989 # run "make install-strip". However 'strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the 'STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no
; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_STRIP+:} false
; then :
2999 $as_echo_n "(cached) " >&6
3001 if test -n "$STRIP"; then
3002 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir
=.
3009 for ac_exec_ext
in '' $ac_executable_extensions; do
3010 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 STRIP
=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 $as_echo "$STRIP" >&6; }
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3032 if test -z "$ac_cv_prog_STRIP"; then
3034 # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip
; ac_word
=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$ac_ct_STRIP"; then
3042 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir
=.
3049 for ac_exec_ext
in '' $ac_executable_extensions; do
3050 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_ac_ct_STRIP
="strip"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3064 $as_echo "$ac_ct_STRIP" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3070 if test "x$ac_ct_STRIP" = x
; then
3073 case $cross_compiling:$ac_tool_warned in
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned
=yes ;;
3082 STRIP
="$ac_cv_prog_STRIP"
3086 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3089 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091 if ${ac_cv_path_mkdir+:} false
; then :
3092 $as_echo_n "(cached) " >&6
3094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3095 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3098 test -z "$as_dir" && as_dir
=.
3099 for ac_prog
in mkdir gmkdir
; do
3100 for ac_exec_ext
in '' $ac_executable_extensions; do
3101 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3102 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3103 'mkdir (GNU coreutils) '* | \
3104 'mkdir (coreutils) '* | \
3105 'mkdir (fileutils) '4.1*)
3106 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3116 test -d .
/--version && rmdir .
/--version
3117 if test "${ac_cv_path_mkdir+set}" = set; then
3118 MKDIR_P
="$ac_cv_path_mkdir -p"
3120 # As a last resort, use the slow shell script. Don't cache a
3121 # value for MKDIR_P within a source directory, because that will
3122 # break other packages using the cache if that directory is
3123 # removed, or if the value is a relative name.
3124 MKDIR_P
="$ac_install_sh -d"
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 $as_echo "$MKDIR_P" >&6; }
3130 for ac_prog
in gawk mawk nawk
awk
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy
$ac_prog; ac_word
=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_AWK+:} false
; then :
3137 $as_echo_n "(cached) " >&6
3139 if test -n "$AWK"; then
3140 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir
=.
3147 for ac_exec_ext
in '' $ac_executable_extensions; do
3148 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_AWK
="$ac_prog"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 if test -n "$AWK"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3162 $as_echo "$AWK" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3169 test -n "$AWK" && break
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3173 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3175 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3176 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3177 $as_echo_n "(cached) " >&6
3179 cat >conftest.
make <<\_ACEOF
3182 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3184 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3185 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3187 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3189 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3193 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 SET_MAKE
="MAKE=${MAKE-make}"
3203 rm -rf .tst
2>/dev
/null
3204 mkdir .tst
2>/dev
/null
3205 if test -d .tst
; then
3210 rmdir .tst
2>/dev
/null
3212 # Check whether --enable-silent-rules was given.
3213 if test "${enable_silent_rules+set}" = set; then :
3214 enableval
=$enable_silent_rules;
3217 case $enable_silent_rules in # (((
3218 yes) AM_DEFAULT_VERBOSITY
=0;;
3219 no
) AM_DEFAULT_VERBOSITY
=1;;
3220 *) AM_DEFAULT_VERBOSITY
=1;;
3222 am_make
=${MAKE-make}
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3224 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3225 if ${am_cv_make_support_nested_variables+:} false
; then :
3226 $as_echo_n "(cached) " >&6
3228 if $as_echo 'TRUE=$(BAR$(V))
3234 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3235 am_cv_make_support_nested_variables
=yes
3237 am_cv_make_support_nested_variables
=no
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3241 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3242 if test $am_cv_make_support_nested_variables = yes; then
3244 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3246 AM_V
=$AM_DEFAULT_VERBOSITY
3247 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3251 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3252 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3253 # is not polluted with repeated "-I."
3254 am__isrc
=' -I$(srcdir)'
3255 # test to see if srcdir already configured
3256 if test -f $srcdir/config.status
; then
3257 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3261 # test whether we have cygpath
3262 if test -z "$CYGPATH_W"; then
3263 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3264 CYGPATH_W
='cygpath -w'
3271 # Define the identity of the package.
3276 cat >>confdefs.h
<<_ACEOF
3277 #define PACKAGE "$PACKAGE"
3281 cat >>confdefs.h
<<_ACEOF
3282 #define VERSION "$VERSION"
3285 # Some tools Automake needs.
3287 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3290 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3293 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3296 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3299 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3301 # For better backward compatibility. To be removed once Automake 1.9.x
3302 # dies out for good. For more background, see:
3303 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3304 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3305 mkdir_p
='$(MKDIR_P)'
3307 # We need awk for the "check" target (and possibly the TAP driver). The
3308 # system "awk" is bad on some platforms.
3309 # Always define AMTAR for backward compatibility. Yes, it's still used
3310 # in the wild :-( We should find a proper way to deprecate it ...
3314 # We'll loop over all known methods to create a tar archive until one works.
3315 _am_tools
='gnutar pax cpio none'
3317 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3324 # POSIX will say in a future version that running "rm -f" with no argument
3325 # is OK; and we want to be able to make that assumption in our Makefile
3326 # recipes. So use an aggressive probe to check that the usage we want is
3327 # actually supported "in the wild" to an acceptable degree.
3328 # See automake bug#10828.
3329 # To make any issue more visible, cause the running configure to be aborted
3330 # by default if the 'rm' program in use doesn't match our expectations; the
3331 # user can still override this though.
3332 if rm -f && rm -fr && rm -rf; then : OK
; else
3336 Your 'rm' program seems unable to run without file operands specified
3337 on the command line, even when the '-f' option is present. This is contrary
3338 to the behaviour of most rm programs out there, and not conforming with
3339 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3341 Please tell bug-automake@gnu.org about your system, including the value
3342 of your $PATH and any error possibly output before this message. This
3343 can help us improve future automake versions.
3346 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3347 echo 'Configuration will proceed anyway, since you have set the' >&2
3348 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3352 Aborting the configuration process, to ensure you take notice of the issue.
3354 You can download and install GNU coreutils to get an 'rm' implementation
3355 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3357 If you want to complete the configuration process using your problematic
3358 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3359 to "yes", and re-run configure.
3362 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3368 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3369 # Check whether --enable-maintainer-mode was given.
3370 if test "${enable_maintainer_mode+set}" = set; then :
3371 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3373 USE_MAINTAINER_MODE
=no
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3377 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3378 if test $USE_MAINTAINER_MODE = yes; then
3379 MAINTAINER_MODE_TRUE
=
3380 MAINTAINER_MODE_FALSE
='#'
3382 MAINTAINER_MODE_TRUE
='#'
3383 MAINTAINER_MODE_FALSE
=
3386 MAINT
=$MAINTAINER_MODE_TRUE
3390 # Check whether --enable-silent-rules was given.
3391 if test "${enable_silent_rules+set}" = set; then :
3392 enableval
=$enable_silent_rules;
3395 case $enable_silent_rules in # (((
3396 yes) AM_DEFAULT_VERBOSITY
=0;;
3397 no
) AM_DEFAULT_VERBOSITY
=1;;
3398 *) AM_DEFAULT_VERBOSITY
=0;;
3400 am_make
=${MAKE-make}
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3402 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3403 if ${am_cv_make_support_nested_variables+:} false
; then :
3404 $as_echo_n "(cached) " >&6
3406 if $as_echo 'TRUE=$(BAR$(V))
3412 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3413 am_cv_make_support_nested_variables
=yes
3415 am_cv_make_support_nested_variables
=no
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3419 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3420 if test $am_cv_make_support_nested_variables = yes; then
3422 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3424 AM_V
=$AM_DEFAULT_VERBOSITY
3425 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3430 DEPDIR="${am__leading_dot}deps"
3432 ac_config_commands="$ac_config_commands depfiles"
3435 am_make=${MAKE-make}
3436 cat > confinc << 'END
'
3438 @echo this is the am__doit target
3441 # If we don't
find an include directive
, just comment out the code.
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3443 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3447 # First try GNU make style include.
3448 echo "include confinc" > confmf
3449 # Ignore all kinds of additional output from 'make'.
3450 case `$am_make -s -f confmf 2> /dev/null` in #(
3451 *the\ am__doit\ target
*)
3457 # Now try BSD make style include.
3458 if test "$am__include" = "#"; then
3459 echo '.include "confinc"' > confmf
3460 case `$am_make -s -f confmf 2> /dev/null` in #(
3461 *the\ am__doit\ target
*)
3462 am__include
=.include
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3471 $as_echo "$_am_result" >&6; }
3472 rm -f confinc confmf
3474 # Check whether --enable-dependency-tracking was given.
3475 if test "${enable_dependency_tracking+set}" = set; then :
3476 enableval
=$enable_dependency_tracking;
3479 if test "x$enable_dependency_tracking" != xno
; then
3480 am_depcomp
="$ac_aux_dir/depcomp"
3484 if test "x$enable_dependency_tracking" != xno; then
3494 ac_cpp
='$CPP $CPPFLAGS'
3495 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3498 if test -n "$ac_tool_prefix"; then
3499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3500 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC+:} false
; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$CC"; then
3507 ac_cv_prog_CC
="$CC" # Let the user override the test.
3509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir
=.
3514 for ac_exec_ext
in '' $ac_executable_extensions; do
3515 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 if test -n "$CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 $as_echo "$CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3537 if test -z "$ac_cv_prog_CC"; then
3539 # Extract the first word of "gcc", so it can be a program name with args.
3540 set dummy gcc
; ac_word
=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3544 $as_echo_n "(cached) " >&6
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3553 test -z "$as_dir" && as_dir
=.
3554 for ac_exec_ext
in '' $ac_executable_extensions; do
3555 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_ac_ct_CC
="gcc"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3575 if test "x$ac_ct_CC" = x
; then
3578 case $cross_compiling:$ac_tool_warned in
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned
=yes ;;
3590 if test -z "$CC"; then
3591 if test -n "$ac_tool_prefix"; then
3592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3593 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false
; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC
="$CC" # Let the user override the test.
3602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3606 test -z "$as_dir" && as_dir
=.
3607 for ac_exec_ext
in '' $ac_executable_extensions; do
3608 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 if test -n "$CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3631 if test -z "$CC"; then
3632 # Extract the first word of "cc", so it can be a program name with args.
3633 set dummy cc
; ac_word
=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if ${ac_cv_prog_CC+:} false
; then :
3637 $as_echo_n "(cached) " >&6
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC
="$CC" # Let the user override the test.
3643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir
=.
3648 for ac_exec_ext
in '' $ac_executable_extensions; do
3649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3651 ac_prog_rejected
=yes
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy
$ac_cv_prog_CC
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3671 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog
in cl.exe
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if ${ac_cv_prog_CC+:} false
; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC
="$CC" # Let the user override the test.
3701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir
=.
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3728 test -n "$CC" && break
3731 if test -z "$CC"; then
3733 for ac_prog
in cl.exe
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736 set dummy
$ac_prog; ac_word
=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3740 $as_echo_n "(cached) " >&6
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir
=.
3750 for ac_exec_ext
in '' $ac_executable_extensions; do
3751 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_ac_ct_CC
="$ac_prog"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3763 if test -n "$ac_ct_CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765 $as_echo "$ac_ct_CC" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3772 test -n "$ac_ct_CC" && break
3775 if test "x$ac_ct_CC" = x
; then
3778 case $cross_compiling:$ac_tool_warned in
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782 ac_tool_warned
=yes ;;
3791 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error $?
"no acceptable C compiler found in \$PATH
3794 See \`config.log' for more details" "$LINENO" 5; }
3796 # Provide some information about the compiler.
3797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3800 for ac_option
in --version -v -V -qversion; do
3801 { { ac_try
="$ac_compiler $ac_option >&5"
3803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3810 if test -s conftest.err; then
3812 ... rest of stderr output deleted ...
3813 10q' conftest.err >conftest.er1
3814 cat conftest.er1 >&5
3816 rm -f conftest.er1 conftest.err
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3832 ac_clean_files_save=$ac_clean_files
3833 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3834 # Try to create an executable without -o first, disregard a.out.
3835 # It will help us diagnose broken compilers, and finding out an intuition
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3838 $as_echo_n "checking whether the C compiler works... " >&6; }
3839 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3841 # The possible output files:
3842 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3845 for ac_file in $ac_files
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3849 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3854 if { { ac_try="$ac_link_default"
3856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3857 *) ac_try_echo
=$ac_try;;
3859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_link_default") 2>&5
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; then :
3865 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3866 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3867 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3868 # so that the user can short-circuit this test for compilers unknown to
3870 for ac_file
in $ac_files ''
3872 test -f "$ac_file" ||
continue
3874 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3877 # We found the default executable, but exeext='' is most
3881 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3883 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3885 # We set ac_cv_exeext here because the later test for it is not
3886 # safe: cross compilers may not add the suffix if given an `-o'
3887 # argument, so we may need to know it at that point already.
3888 # Even if this section looks crufty: it has the advantage of
3895 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3900 if test -z "$ac_file"; then :
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 $as_echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.
$ac_ext >&5
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error
77 "C compiler cannot create executables
3909 See \`config.log' for more details" "$LINENO" 5; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3912 $as_echo "yes" >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3915 $as_echo_n "checking for C compiler default output file name... " >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917 $as_echo "$ac_file" >&6; }
3918 ac_exeext
=$ac_cv_exeext
3920 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3921 ac_clean_files
=$ac_clean_files_save
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3923 $as_echo_n "checking for suffix of executables... " >&6; }
3924 if { { ac_try
="$ac_link"
3926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_link") 2>&5
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; then :
3935 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3936 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3937 # work properly (i.e., refer to `conftest.exe'), while it won't with
3939 for ac_file
in conftest.exe conftest conftest.
*; do
3940 test -f "$ac_file" ||
continue
3942 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3943 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3952 See \`config.log' for more details" "$LINENO" 5; }
3954 rm -f conftest conftest
$ac_cv_exeext
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3956 $as_echo "$ac_cv_exeext" >&6; }
3958 rm -f conftest.
$ac_ext
3959 EXEEXT
=$ac_cv_exeext
3961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3967 FILE *f = fopen ("conftest.out", "w");
3968 return ferror (f) || fclose (f) != 0;
3974 ac_clean_files
="$ac_clean_files conftest.out"
3975 # Check that the compiler produces executables we can run. If not, either
3976 # the compiler is broken, or we cross compile.
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3978 $as_echo_n "checking whether we are cross compiling... " >&6; }
3979 if test "$cross_compiling" != yes; then
3980 { { ac_try
="$ac_link"
3982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987 (eval "$ac_link") 2>&5
3989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990 test $ac_status = 0; }
3991 if { ac_try='./conftest$ac_cv_exeext'
3992 { { case "(($ac_try" in
3993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3994 *) ac_try_echo
=$ac_try;;
3996 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_try") 2>&5
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }; }; then
4004 if test "$cross_compiling" = maybe
; then
4007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009 as_fn_error $?
"cannot run C compiled programs.
4010 If you meant to cross compile, use \`--host'.
4011 See \`config.log' for more details" "$LINENO" 5; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4016 $as_echo "$cross_compiling" >&6; }
4018 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4019 ac_clean_files
=$ac_clean_files_save
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4021 $as_echo_n "checking for suffix of object files... " >&6; }
4022 if ${ac_cv_objext+:} false
; then :
4023 $as_echo_n "(cached) " >&6
4025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4036 rm -f conftest.o conftest.obj
4037 if { { ac_try
="$ac_compile"
4039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043 $as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_compile") 2>&5
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }; then :
4048 for ac_file in conftest.o conftest.obj conftest.*; do
4049 test -f "$ac_file" || continue;
4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4057 $as_echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4063 See \
`config.log' for more details" "$LINENO" 5; }
4065 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4068 $as_echo "$ac_cv_objext" >&6; }
4069 OBJEXT=$ac_cv_objext
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4072 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4073 if ${ac_cv_c_compiler_gnu+:} false; then :
4074 $as_echo_n "(cached) " >&6
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4090 if ac_fn_c_try_compile "$LINENO"; then :
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4100 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4101 if test $ac_compiler_gnu = yes; then
4106 ac_test_CFLAGS=${CFLAGS+set}
4107 ac_save_CFLAGS=$CFLAGS
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4109 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4110 if ${ac_cv_prog_cc_g+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 ac_save_c_werror_flag=$ac_c_werror_flag
4114 ac_c_werror_flag=yes
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4143 if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4159 if ac_fn_c_try_compile "$LINENO"; then :
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 ac_c_werror_flag=$ac_save_c_werror_flag
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4170 $as_echo "$ac_cv_prog_cc_g" >&6; }
4171 if test "$ac_test_CFLAGS" = set; then
4172 CFLAGS=$ac_save_CFLAGS
4173 elif test $ac_cv_prog_cc_g = yes; then
4174 if test "$GCC" = yes; then
4180 if test "$GCC" = yes; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4187 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4188 if ${ac_cv_prog_cc_c89+:} false; then :
4189 $as_echo_n "(cached) " >&6
4191 ac_cv_prog_cc_c89=no
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4199 struct buf { int x; };
4200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4201 static char *e (p, i)
4207 static char *f (char * (*g) (char **, int), char **p, ...)
4212 s = g (p, va_arg (v,int));
4217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4218 function prototypes and stuff, but not '\xHH' hex character constants.
4219 These don't provoke an error unfortunately, instead are silently treated
4220 as 'x'. The following induces an error, until -std is added to get
4221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4222 array size at least. It's necessary to write '\x00'==0 to get something
4223 that's true only with -std. */
4224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4226 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4227 inside strings and character constants. */
4229 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4231 int test (int i, double x);
4232 struct s1 {int (*f) (int a);};
4233 struct s2 {int (*f) (double a);};
4234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4240 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4245 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4246 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4248 CC="$ac_save_CC $ac_arg"
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 ac_cv_prog_cc_c89=$ac_arg
4252 rm -f core conftest.err conftest.$ac_objext
4253 test "x$ac_cv_prog_cc_c89" != "xno" && break
4255 rm -f conftest.$ac_ext
4260 case "x$ac_cv_prog_cc_c89" in
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263 $as_echo "none needed" >&6; } ;;
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4266 $as_echo "unsupported" >&6; } ;;
4268 CC="$CC $ac_cv_prog_cc_c89"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4270 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4272 if test "x$ac_cv_prog_cc_c89" != xno; then :
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4288 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4289 if ${am_cv_prog_cc_c_o+:} false; then :
4290 $as_echo_n "(cached) " >&6
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4303 # Make sure it works both with $CC and with simple cc.
4304 # Following AC_PROG_CC_C_O, we do the test twice because some
4305 # compilers refuse to overwrite an existing .o file with -o,
4306 # though they will create one.
4307 am_cv_prog_cc_c_o=yes
4309 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4310 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } \
4314 && test -f conftest2.$ac_objext; then
4317 am_cv_prog_cc_c_o=no
4321 rm -f core conftest*
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4325 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4326 if test "$am_cv_prog_cc_c_o" != yes; then
4327 # Losing compiler, so override with the script.
4328 # FIXME: It is wrong to rewrite CC.
4329 # But if we don't then we get into trouble of one sort or another.
4330 # A longer-term fix would be to have automake use am__CC in this case,
4331 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4332 CC="$am_aux_dir/compile $CC"
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 depcc="$CC" am_compiler_list=
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4344 $as_echo_n "checking dependency style of $depcc... " >&6; }
4345 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4346 $as_echo_n "(cached) " >&6
4348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349 # We make a subdir and do the tests there. Otherwise we can end up
4350 # making bogus files that we don't know about and never remove. For
4351 # instance it was reported that on HP-UX the gcc test will end up
4352 # making a dummy file named 'D' -- because '-MD' means "put the output
4356 # Copy depcomp to subdir because otherwise we won't find it if we're
4357 # using a relative directory.
4358 cp "$am_depcomp" conftest.dir
4360 # We will build objects and dependencies in a subdirectory because
4361 # it helps to detect inapplicable dependency modes. For instance
4362 # both Tru64's cc and ICC support -MD to output dependencies as a
4363 # side effect of compilation, but ICC will put the dependencies in
4364 # the current directory while Tru64 will put them in the object
4368 am_cv_CC_dependencies_compiler_type=none
4369 if test "$am_compiler_list" = ""; then
4370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4373 case " $depcc " in #(
4374 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4377 for depmode in $am_compiler_list; do
4378 # Setup a source with many dependencies, because some compilers
4379 # like to wrap large dependency lists on column 80 (with \), and
4380 # we should not choose a depcomp mode which is confused by this.
4382 # We need to recreate these files for each test, as the compiler may
4383 # overwrite some of them when testing with obscure command lines.
4384 # This happens at least with the AIX C compiler.
4386 for i in 1 2 3 4 5 6; do
4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4388 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4389 # Solaris 10 /bin/sh.
4390 echo '/* dummy */' > sub/conftst$i.h
4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4394 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4395 # mode. It turns out that the SunPro C++ compiler does not properly
4396 # handle '-M -o', and we need to detect this. Also, some Intel
4397 # versions had trouble with output in subdirs.
4398 am__obj=sub/conftest.${OBJEXT-o}
4399 am__minus_obj="-o $am__obj"
4402 # This depmode causes a compiler race in universal mode.
4403 test "$am__universal" = false || continue
4406 # After this tag, mechanisms are not by side-effect, so they'll
4407 # only be used when explicitly requested.
4408 if test "x$enable_dependency_tracking" = xyes; then
4414 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4415 # This compiler won't grok '-c -o', but also, the minuso test has
4416 # not run yet. These depmodes are late enough in the game, and
4417 # so weak that their functioning should not be impacted.
4418 am__obj=conftest.${OBJEXT-o}
4423 if depmode=$depmode \
4424 source=sub/conftest.c object=$am__obj \
4425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4427 >/dev/null 2>conftest.err &&
4428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4432 # icc doesn't choke on unknown options, it will just issue warnings
4433 # or remarks (even with -Werror). So we grep stderr for any message
4434 # that says an option was ignored or not supported.
4435 # When given -MP, icc 7.0 and 7.1 complain thusly:
4436 # icc: Command line warning: ignoring option '-M'; no argument required
4437 # The diagnosis changed in icc 8.0:
4438 # icc: Command line remark: option '-MP' not supported
4439 if (grep 'ignoring option' conftest.err ||
4440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4441 am_cv_CC_dependencies_compiler_type=$depmode
4450 am_cv_CC_dependencies_compiler_type=none
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4455 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4456 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4459 test "x$enable_dependency_tracking" != xno \
4460 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4462 am__fastdepCC_FALSE='#'
4464 am__fastdepCC_TRUE='#'
4465 am__fastdepCC_FALSE=
4471 ac_cpp='$CPP $CPPFLAGS'
4472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4476 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4477 # On Suns, sometimes $CPP names a directory.
4478 if test -n "$CPP" && test -d "$CPP"; then
4481 if test -z "$CPP"; then
4482 if ${ac_cv_prog_CPP+:} false; then :
4483 $as_echo_n "(cached) " >&6
4485 # Double quotes because CPP needs to be expanded
4486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4489 for ac_c_preproc_warn_flag in '' yes
4491 # Use a header file that comes with gcc, so configuring glibc
4492 # with a fresh cross-compiler works.
4493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494 # <limits.h> exists even on freestanding compilers.
4495 # On the NeXT, cc -E runs the code through the compiler's parser,
4496 # not just through cpp. "Syntax error" is here to catch this case.
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4500 # include <limits.h>
4502 # include <assert.h>
4506 if ac_fn_c_try_cpp "$LINENO"; then :
4509 # Broken: fails on valid input.
4512 rm -f conftest.err conftest.i conftest.$ac_ext
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4521 # Broken: success on invalid input.
4524 # Passes both tests.
4528 rm -f conftest.err conftest.i conftest.$ac_ext
4531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4532 rm -f conftest.i conftest.err conftest.
$ac_ext
4533 if $ac_preproc_ok; then :
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4546 $as_echo "$CPP" >&6; }
4548 for ac_c_preproc_warn_flag
in '' yes
4550 # Use a header file that comes with gcc, so configuring glibc
4551 # with a fresh cross-compiler works.
4552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4553 # <limits.h> exists even on freestanding compilers.
4554 # On the NeXT, cc -E runs the code through the compiler's parser,
4555 # not just through cpp. "Syntax error" is here to catch this case.
4556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4559 # include <limits.h>
4561 # include <assert.h>
4565 if ac_fn_c_try_cpp
"$LINENO"; then :
4568 # Broken: fails on valid input.
4571 rm -f conftest.err conftest.i conftest.
$ac_ext
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 #include <ac_nonexistent.h>
4579 if ac_fn_c_try_cpp
"$LINENO"; then :
4580 # Broken: success on invalid input.
4583 # Passes both tests.
4587 rm -f conftest.err conftest.i conftest.
$ac_ext
4590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4591 rm -f conftest.i conftest.err conftest.
$ac_ext
4592 if $ac_preproc_ok; then :
4595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4598 See \`config.log' for more details" "$LINENO" 5; }
4602 ac_cpp
='$CPP $CPPFLAGS'
4603 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4610 if ${ac_cv_path_GREP+:} false
; then :
4611 $as_echo_n "(cached) " >&6
4613 if test -z "$GREP"; then
4614 ac_path_GREP_found
=false
4615 # Loop through the user's path and test for each of PROGNAME-LIST
4616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4617 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4620 test -z "$as_dir" && as_dir
=.
4621 for ac_prog
in grep ggrep
; do
4622 for ac_exec_ext
in '' $ac_executable_extensions; do
4623 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4624 as_fn_executable_p
"$ac_path_GREP" ||
continue
4625 # Check for GNU ac_path_GREP and select it if it is found.
4626 # Check for GNU $ac_path_GREP
4627 case `"$ac_path_GREP" --version 2>&1` in
4629 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4632 $as_echo_n 0123456789 >"conftest.in"
4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
4636 mv "conftest.tmp" "conftest.in"
4637 cp "conftest.in" "conftest.nl"
4638 $as_echo 'GREP' >> "conftest.nl"
4639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4640 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4641 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4643 # Best one so far, save it but keep looking for a better one
4644 ac_cv_path_GREP
="$ac_path_GREP"
4645 ac_path_GREP_max
=$ac_count
4647 # 10*(2^10) chars as input seems more than enough
4648 test $ac_count -gt 10 && break
4650 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4653 $ac_path_GREP_found && break 3
4658 if test -z "$ac_cv_path_GREP"; then
4659 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4662 ac_cv_path_GREP
=$GREP
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4667 $as_echo "$ac_cv_path_GREP" >&6; }
4668 GREP
="$ac_cv_path_GREP"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4672 $as_echo_n "checking for egrep... " >&6; }
4673 if ${ac_cv_path_EGREP+:} false
; then :
4674 $as_echo_n "(cached) " >&6
4676 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4677 then ac_cv_path_EGREP
="$GREP -E"
4679 if test -z "$EGREP"; then
4680 ac_path_EGREP_found
=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4683 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4686 test -z "$as_dir" && as_dir
=.
4687 for ac_prog
in egrep; do
4688 for ac_exec_ext
in '' $ac_executable_extensions; do
4689 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4690 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4691 # Check for GNU ac_path_EGREP and select it if it is found.
4692 # Check for GNU $ac_path_EGREP
4693 case `"$ac_path_EGREP" --version 2>&1` in
4695 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4698 $as_echo_n 0123456789 >"conftest.in"
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'EGREP' >> "conftest.nl"
4705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4706 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4707 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_EGREP
="$ac_path_EGREP"
4711 ac_path_EGREP_max
=$ac_count
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4716 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4719 $ac_path_EGREP_found && break 3
4724 if test -z "$ac_cv_path_EGREP"; then
4725 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4728 ac_cv_path_EGREP
=$EGREP
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4734 $as_echo "$ac_cv_path_EGREP" >&6; }
4735 EGREP
="$ac_cv_path_EGREP"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4739 $as_echo_n "checking for ANSI C header files... " >&6; }
4740 if ${ac_cv_header_stdc+:} false
; then :
4741 $as_echo_n "(cached) " >&6
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4758 if ac_fn_c_try_compile
"$LINENO"; then :
4759 ac_cv_header_stdc
=yes
4761 ac_cv_header_stdc
=no
4763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4765 if test $ac_cv_header_stdc = yes; then
4766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773 $EGREP "memchr" >/dev
/null
2>&1; then :
4776 ac_cv_header_stdc
=no
4782 if test $ac_cv_header_stdc = yes; then
4783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790 $EGREP "free" >/dev
/null
2>&1; then :
4793 ac_cv_header_stdc
=no
4799 if test $ac_cv_header_stdc = yes; then
4800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4801 if test "$cross_compiling" = yes; then :
4804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4808 #if ((' ' & 0x0FF) == 0x020)
4809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4812 # define ISLOWER(c) \
4813 (('a' <= (c) && (c) <= 'i') \
4814 || ('j' <= (c) && (c) <= 'r') \
4815 || ('s' <= (c) && (c) <= 'z'))
4816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4824 for (i = 0; i < 256; i++)
4825 if (XOR (islower (i), ISLOWER (i))
4826 || toupper (i) != TOUPPER (i))
4831 if ac_fn_c_try_run
"$LINENO"; then :
4834 ac_cv_header_stdc
=no
4836 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4837 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4843 $as_echo "$ac_cv_header_stdc" >&6; }
4844 if test $ac_cv_header_stdc = yes; then
4846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4850 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4851 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4852 inttypes.h stdint.h unistd.h
4854 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4855 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4857 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4858 cat >>confdefs.h
<<_ACEOF
4859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4868 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4869 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4876 if test "$MINIX" = yes; then
4878 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4881 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4884 $as_echo "#define _MINIX 1" >>confdefs.h
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4890 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4891 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4892 $as_echo_n "(cached) " >&6
4894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4897 # define __EXTENSIONS__ 1
4898 $ac_includes_default
4907 if ac_fn_c_try_compile
"$LINENO"; then :
4908 ac_cv_safe_to_define___extensions__
=yes
4910 ac_cv_safe_to_define___extensions__
=no
4912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4915 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4916 test $ac_cv_safe_to_define___extensions__ = yes &&
4917 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4919 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4921 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4923 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4925 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4931 $as_echo_n "checking whether ln -s works... " >&6; }
4933 if test "$LN_S" = "ln -s"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4935 $as_echo "yes" >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4938 $as_echo "no, using $LN_S" >&6; }
4942 ac_cpp
='$CPP $CPPFLAGS'
4943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4946 if test -n "$ac_tool_prefix"; then
4947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4948 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_CC+:} false
; then :
4952 $as_echo_n "(cached) " >&6
4954 if test -n "$CC"; then
4955 ac_cv_prog_CC
="$CC" # Let the user override the test.
4957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir
=.
4962 for ac_exec_ext
in '' $ac_executable_extensions; do
4963 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 if test -n "$CC"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4977 $as_echo "$CC" >&6; }
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4985 if test -z "$ac_cv_prog_CC"; then
4987 # Extract the first word of "gcc", so it can be a program name with args.
4988 set dummy gcc
; ac_word
=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4992 $as_echo_n "(cached) " >&6
4994 if test -n "$ac_ct_CC"; then
4995 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5001 test -z "$as_dir" && as_dir
=.
5002 for ac_exec_ext
in '' $ac_executable_extensions; do
5003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_ac_ct_CC
="gcc"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5015 if test -n "$ac_ct_CC"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5017 $as_echo "$ac_ct_CC" >&6; }
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5023 if test "x$ac_ct_CC" = x
; then
5026 case $cross_compiling:$ac_tool_warned in
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5030 ac_tool_warned
=yes ;;
5038 if test -z "$CC"; then
5039 if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5041 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_CC+:} false
; then :
5045 $as_echo_n "(cached) " >&6
5047 if test -n "$CC"; then
5048 ac_cv_prog_CC
="$CC" # Let the user override the test.
5050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir
=.
5055 for ac_exec_ext
in '' $ac_executable_extensions; do
5056 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 if test -n "$CC"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5070 $as_echo "$CC" >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5079 if test -z "$CC"; then
5080 # Extract the first word of "cc", so it can be a program name with args.
5081 set dummy cc
; ac_word
=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_CC+:} false
; then :
5085 $as_echo_n "(cached) " >&6
5087 if test -n "$CC"; then
5088 ac_cv_prog_CC
="$CC" # Let the user override the test.
5091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir
=.
5096 for ac_exec_ext
in '' $ac_executable_extensions; do
5097 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5098 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5099 ac_prog_rejected
=yes
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 if test $ac_prog_rejected = yes; then
5111 # We found a bogon in the path, so make sure we never use it.
5112 set dummy
$ac_cv_prog_CC
5114 if test $# != 0; then
5115 # We chose a different compiler from the bogus one.
5116 # However, it has the same basename, so the bogon will be chosen
5117 # first if we set CC to just the basename; use the full file name.
5119 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5125 if test -n "$CC"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5127 $as_echo "$CC" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5135 if test -z "$CC"; then
5136 if test -n "$ac_tool_prefix"; then
5137 for ac_prog
in cl.exe
5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_CC+:} false
; then :
5144 $as_echo_n "(cached) " >&6
5146 if test -n "$CC"; then
5147 ac_cv_prog_CC
="$CC" # Let the user override the test.
5149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir
=.
5154 for ac_exec_ext
in '' $ac_executable_extensions; do
5155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 if test -n "$CC"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5169 $as_echo "$CC" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5176 test -n "$CC" && break
5179 if test -z "$CC"; then
5181 for ac_prog
in cl.exe
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184 set dummy
$ac_prog; ac_word
=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5188 $as_echo_n "(cached) " >&6
5190 if test -n "$ac_ct_CC"; then
5191 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir
=.
5198 for ac_exec_ext
in '' $ac_executable_extensions; do
5199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_CC
="$ac_prog"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5211 if test -n "$ac_ct_CC"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5213 $as_echo "$ac_ct_CC" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 test -n "$ac_ct_CC" && break
5223 if test "x$ac_ct_CC" = x
; then
5226 case $cross_compiling:$ac_tool_warned in
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned
=yes ;;
5239 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5241 as_fn_error $?
"no acceptable C compiler found in \$PATH
5242 See \`config.log' for more details" "$LINENO" 5; }
5244 # Provide some information about the compiler.
5245 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5248 for ac_option
in --version -v -V -qversion; do
5249 { { ac_try
="$ac_compiler $ac_option >&5"
5251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5255 $as_echo "$ac_try_echo"; } >&5
5256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5258 if test -s conftest.err; then
5260 ... rest of stderr output deleted ...
5261 10q' conftest.err >conftest.er1
5262 cat conftest.er1 >&5
5264 rm -f conftest.er1 conftest.err
5265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266 test $ac_status = 0; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5270 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5271 if ${ac_cv_c_compiler_gnu+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5288 if ac_fn_c_try_compile "$LINENO"; then :
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5298 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5299 if test $ac_compiler_gnu = yes; then
5304 ac_test_CFLAGS=${CFLAGS+set}
5305 ac_save_CFLAGS=$CFLAGS
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5307 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5308 if ${ac_cv_prog_cc_g+:} false; then :
5309 $as_echo_n "(cached) " >&6
5311 ac_save_c_werror_flag=$ac_c_werror_flag
5312 ac_c_werror_flag=yes
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5326 if ac_fn_c_try_compile "$LINENO"; then :
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5341 if ac_fn_c_try_compile "$LINENO"; then :
5344 ac_c_werror_flag=$ac_save_c_werror_flag
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5357 if ac_fn_c_try_compile "$LINENO"; then :
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 ac_c_werror_flag=$ac_save_c_werror_flag
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5368 $as_echo "$ac_cv_prog_cc_g" >&6; }
5369 if test "$ac_test_CFLAGS" = set; then
5370 CFLAGS=$ac_save_CFLAGS
5371 elif test $ac_cv_prog_cc_g = yes; then
5372 if test "$GCC" = yes; then
5378 if test "$GCC" = yes; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5386 if ${ac_cv_prog_cc_c89+:} false; then :
5387 $as_echo_n "(cached) " >&6
5389 ac_cv_prog_cc_c89=no
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5397 struct buf { int x; };
5398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5399 static char *e (p, i)
5405 static char *f (char * (*g) (char **, int), char **p, ...)
5410 s = g (p, va_arg (v,int));
5415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5416 function prototypes and stuff, but not '\xHH' hex character constants.
5417 These don't provoke an error unfortunately, instead are silently treated
5418 as 'x'. The following induces an error, until -std is added to get
5419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5420 array size at least. It's necessary to write '\x00'==0 to get something
5421 that's true only with -std. */
5422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5425 inside strings and character constants. */
5427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5429 int test (int i, double x);
5430 struct s1 {int (*f) (int a);};
5431 struct s2 {int (*f) (double a);};
5432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5446 CC="$ac_save_CC $ac_arg"
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 ac_cv_prog_cc_c89=$ac_arg
5450 rm -f core conftest.err conftest.$ac_objext
5451 test "x$ac_cv_prog_cc_c89" != "xno" && break
5453 rm -f conftest.$ac_ext
5458 case "x$ac_cv_prog_cc_c89" in
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5461 $as_echo "none needed" >&6; } ;;
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5464 $as_echo "unsupported" >&6; } ;;
5466 CC="$CC $ac_cv_prog_cc_c89"
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5470 if test "x$ac_cv_prog_cc_c89" != xno; then :
5475 ac_cpp='$CPP $CPPFLAGS'
5476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481 ac_cpp='$CPP $CPPFLAGS'
5482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5486 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5487 if ${am_cv_prog_cc_c_o+:} false; then :
5488 $as_echo_n "(cached) " >&6
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5501 # Make sure it works both with $CC and with simple cc.
5502 # Following AC_PROG_CC_C_O, we do the test twice because some
5503 # compilers refuse to overwrite an existing .o file with -o,
5504 # though they will create one.
5505 am_cv_prog_cc_c_o=yes
5507 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5508 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } \
5512 && test -f conftest2.$ac_objext; then
5515 am_cv_prog_cc_c_o=no
5519 rm -f core conftest*
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5523 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5524 if test "$am_cv_prog_cc_c_o" != yes; then
5525 # Losing compiler, so override with the script.
5526 # FIXME: It is wrong to rewrite CC.
5527 # But if we don't then we get into trouble of one sort or another.
5528 # A longer-term fix would be to have automake use am__CC in this case,
5529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5530 CC="$am_aux_dir/compile $CC"
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5539 depcc="$CC" am_compiler_list=
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5542 $as_echo_n "checking dependency style of $depcc... " >&6; }
5543 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5544 $as_echo_n "(cached) " >&6
5546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5547 # We make a subdir and do the tests there. Otherwise we can end up
5548 # making bogus files that we don't know about and never remove. For
5549 # instance it was reported that on HP-UX the gcc test will end up
5550 # making a dummy file named 'D' -- because '-MD' means "put the output
5554 # Copy depcomp to subdir because otherwise we won't find it if we're
5555 # using a relative directory.
5556 cp "$am_depcomp" conftest.dir
5558 # We will build objects and dependencies in a subdirectory because
5559 # it helps to detect inapplicable dependency modes. For instance
5560 # both Tru64's cc and ICC support -MD to output dependencies as a
5561 # side effect of compilation, but ICC will put the dependencies in
5562 # the current directory while Tru64 will put them in the object
5566 am_cv_CC_dependencies_compiler_type=none
5567 if test "$am_compiler_list" = ""; then
5568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5571 case " $depcc " in #(
5572 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5575 for depmode in $am_compiler_list; do
5576 # Setup a source with many dependencies, because some compilers
5577 # like to wrap large dependency lists on column 80 (with \), and
5578 # we should not choose a depcomp mode which is confused by this.
5580 # We need to recreate these files for each test, as the compiler may
5581 # overwrite some of them when testing with obscure command lines.
5582 # This happens at least with the AIX C compiler.
5584 for i in 1 2 3 4 5 6; do
5585 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5586 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5587 # Solaris 10 /bin/sh.
5588 echo '/* dummy */' > sub/conftst$i.h
5590 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5592 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5593 # mode. It turns out that the SunPro C++ compiler does not properly
5594 # handle '-M -o', and we need to detect this. Also, some Intel
5595 # versions had trouble with output in subdirs.
5596 am__obj=sub/conftest.${OBJEXT-o}
5597 am__minus_obj="-o $am__obj"
5600 # This depmode causes a compiler race in universal mode.
5601 test "$am__universal" = false || continue
5604 # After this tag, mechanisms are not by side-effect, so they'll
5605 # only be used when explicitly requested.
5606 if test "x$enable_dependency_tracking" = xyes; then
5612 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5613 # This compiler won't grok '-c -o', but also, the minuso test has
5614 # not run yet. These depmodes are late enough in the game, and
5615 # so weak that their functioning should not be impacted.
5616 am__obj=conftest.${OBJEXT-o}
5621 if depmode=$depmode \
5622 source=sub/conftest.c object=$am__obj \
5623 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5624 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5625 >/dev/null 2>conftest.err &&
5626 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5627 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5628 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5629 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5630 # icc doesn't choke on unknown options, it will just issue warnings
5631 # or remarks (even with -Werror). So we grep stderr for any message
5632 # that says an option was ignored or not supported.
5633 # When given -MP, icc 7.0 and 7.1 complain thusly:
5634 # icc: Command line warning: ignoring option '-M'; no argument required
5635 # The diagnosis changed in icc 8.0:
5636 # icc: Command line remark: option '-MP' not supported
5637 if (grep 'ignoring option' conftest.err ||
5638 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5639 am_cv_CC_dependencies_compiler_type=$depmode
5648 am_cv_CC_dependencies_compiler_type=none
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5653 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5654 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5657 test "x$enable_dependency_tracking" != xno \
5658 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5660 am__fastdepCC_FALSE='#'
5662 am__fastdepCC_TRUE='#'
5663 am__fastdepCC_FALSE=
5668 ac_cpp='$CXXCPP $CPPFLAGS'
5669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5672 if test -z "$CXX"; then
5673 if test -n "$CCC"; then
5676 if test -n "$ac_tool_prefix"; then
5677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_CXX+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$CXX"; then
5687 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 if test -n "$CXX"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5709 $as_echo "$CXX" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5716 test -n "$CXX" && break
5719 if test -z "$CXX"; then
5721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5723 # Extract the first word of "$ac_prog", so it can be a program name with args.
5724 set dummy $ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5728 $as_echo_n "(cached) " >&6
5730 if test -n "$ac_ct_CXX"; then
5731 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_ac_ct_CXX="$ac_prog"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5751 if test -n "$ac_ct_CXX"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5753 $as_echo "$ac_ct_CXX" >&6; }
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5760 test -n "$ac_ct_CXX" && break
5763 if test "x$ac_ct_CXX" = x; then
5766 case $cross_compiling:$ac_tool_warned in
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5778 # Provide some information about the compiler.
5779 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5782 for ac_option in --version -v -V -qversion; do
5783 { { ac_try="$ac_compiler $ac_option >&5"
5785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5786 *) ac_try_echo
=$ac_try;;
5788 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5789 $as_echo "$ac_try_echo"; } >&5
5790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5792 if test -s conftest.err
; then
5794 ... rest of stderr output deleted ...
5795 10q' conftest.err
>conftest.er1
5796 cat conftest.er1
>&5
5798 rm -f conftest.er1 conftest.err
5799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5800 test $ac_status = 0; }
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5804 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5805 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5806 $as_echo_n "(cached) " >&6
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5822 if ac_fn_cxx_try_compile
"$LINENO"; then :
5827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5828 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5832 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5833 if test $ac_compiler_gnu = yes; then
5838 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5839 ac_save_CXXFLAGS
=$CXXFLAGS
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5841 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5842 if ${ac_cv_prog_cxx_g+:} false
; then :
5843 $as_echo_n "(cached) " >&6
5845 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5846 ac_cxx_werror_flag
=yes
5849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5860 if ac_fn_cxx_try_compile
"$LINENO"; then :
5861 ac_cv_prog_cxx_g
=yes
5864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5875 if ac_fn_cxx_try_compile
"$LINENO"; then :
5878 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5891 if ac_fn_cxx_try_compile
"$LINENO"; then :
5892 ac_cv_prog_cxx_g
=yes
5894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5899 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5902 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5903 if test "$ac_test_CXXFLAGS" = set; then
5904 CXXFLAGS
=$ac_save_CXXFLAGS
5905 elif test $ac_cv_prog_cxx_g = yes; then
5906 if test "$GXX" = yes; then
5912 if test "$GXX" = yes; then
5919 ac_cpp
='$CPP $CPPFLAGS'
5920 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5924 depcc
="$CXX" am_compiler_list
=
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5927 $as_echo_n "checking dependency style of $depcc... " >&6; }
5928 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
5929 $as_echo_n "(cached) " >&6
5931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5932 # We make a subdir and do the tests there. Otherwise we can end up
5933 # making bogus files that we don't know about and never remove. For
5934 # instance it was reported that on HP-UX the gcc test will end up
5935 # making a dummy file named 'D' -- because '-MD' means "put the output
5939 # Copy depcomp to subdir because otherwise we won't find it if we're
5940 # using a relative directory.
5941 cp "$am_depcomp" conftest.dir
5943 # We will build objects and dependencies in a subdirectory because
5944 # it helps to detect inapplicable dependency modes. For instance
5945 # both Tru64's cc and ICC support -MD to output dependencies as a
5946 # side effect of compilation, but ICC will put the dependencies in
5947 # the current directory while Tru64 will put them in the object
5951 am_cv_CXX_dependencies_compiler_type
=none
5952 if test "$am_compiler_list" = ""; then
5953 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5956 case " $depcc " in #(
5957 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5960 for depmode
in $am_compiler_list; do
5961 # Setup a source with many dependencies, because some compilers
5962 # like to wrap large dependency lists on column 80 (with \), and
5963 # we should not choose a depcomp mode which is confused by this.
5965 # We need to recreate these files for each test, as the compiler may
5966 # overwrite some of them when testing with obscure command lines.
5967 # This happens at least with the AIX C compiler.
5969 for i
in 1 2 3 4 5 6; do
5970 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5971 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5972 # Solaris 10 /bin/sh.
5973 echo '/* dummy */' > sub
/conftst
$i.h
5975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5977 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5978 # mode. It turns out that the SunPro C++ compiler does not properly
5979 # handle '-M -o', and we need to detect this. Also, some Intel
5980 # versions had trouble with output in subdirs.
5981 am__obj
=sub
/conftest.
${OBJEXT-o}
5982 am__minus_obj
="-o $am__obj"
5985 # This depmode causes a compiler race in universal mode.
5986 test "$am__universal" = false ||
continue
5989 # After this tag, mechanisms are not by side-effect, so they'll
5990 # only be used when explicitly requested.
5991 if test "x$enable_dependency_tracking" = xyes
; then
5997 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5998 # This compiler won't grok '-c -o', but also, the minuso test has
5999 # not run yet. These depmodes are late enough in the game, and
6000 # so weak that their functioning should not be impacted.
6001 am__obj
=conftest.
${OBJEXT-o}
6006 if depmode
=$depmode \
6007 source=sub
/conftest.c object
=$am__obj \
6008 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6009 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6010 >/dev
/null
2>conftest.err
&&
6011 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6012 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6013 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6014 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6015 # icc doesn't choke on unknown options, it will just issue warnings
6016 # or remarks (even with -Werror). So we grep stderr for any message
6017 # that says an option was ignored or not supported.
6018 # When given -MP, icc 7.0 and 7.1 complain thusly:
6019 # icc: Command line warning: ignoring option '-M'; no argument required
6020 # The diagnosis changed in icc 8.0:
6021 # icc: Command line remark: option '-MP' not supported
6022 if (grep 'ignoring option' conftest.err ||
6023 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6024 am_cv_CXX_dependencies_compiler_type
=$depmode
6033 am_cv_CXX_dependencies_compiler_type
=none
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6038 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6039 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
6042 test "x$enable_dependency_tracking" != xno \
6043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
6044 am__fastdepCXX_TRUE
=
6045 am__fastdepCXX_FALSE
='#'
6047 am__fastdepCXX_TRUE
='#'
6048 am__fastdepCXX_FALSE
=
6053 ac_cpp
='$CPP $CPPFLAGS'
6054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6058 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6059 # On Suns, sometimes $CPP names a directory.
6060 if test -n "$CPP" && test -d "$CPP"; then
6063 if test -z "$CPP"; then
6064 if ${ac_cv_prog_CPP+:} false
; then :
6065 $as_echo_n "(cached) " >&6
6067 # Double quotes because CPP needs to be expanded
6068 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6071 for ac_c_preproc_warn_flag
in '' yes
6073 # Use a header file that comes with gcc, so configuring glibc
6074 # with a fresh cross-compiler works.
6075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6076 # <limits.h> exists even on freestanding compilers.
6077 # On the NeXT, cc -E runs the code through the compiler's parser,
6078 # not just through cpp. "Syntax error" is here to catch this case.
6079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6082 # include <limits.h>
6084 # include <assert.h>
6088 if ac_fn_c_try_cpp
"$LINENO"; then :
6091 # Broken: fails on valid input.
6094 rm -f conftest.err conftest.i conftest.
$ac_ext
6096 # OK, works on sane cases. Now check whether nonexistent headers
6097 # can be detected and how.
6098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 #include <ac_nonexistent.h>
6102 if ac_fn_c_try_cpp
"$LINENO"; then :
6103 # Broken: success on invalid input.
6106 # Passes both tests.
6110 rm -f conftest.err conftest.i conftest.
$ac_ext
6113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6114 rm -f conftest.i conftest.err conftest.
$ac_ext
6115 if $ac_preproc_ok; then :
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6128 $as_echo "$CPP" >&6; }
6130 for ac_c_preproc_warn_flag
in '' yes
6132 # Use a header file that comes with gcc, so configuring glibc
6133 # with a fresh cross-compiler works.
6134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6135 # <limits.h> exists even on freestanding compilers.
6136 # On the NeXT, cc -E runs the code through the compiler's parser,
6137 # not just through cpp. "Syntax error" is here to catch this case.
6138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6141 # include <limits.h>
6143 # include <assert.h>
6147 if ac_fn_c_try_cpp
"$LINENO"; then :
6150 # Broken: fails on valid input.
6153 rm -f conftest.err conftest.i conftest.
$ac_ext
6155 # OK, works on sane cases. Now check whether nonexistent headers
6156 # can be detected and how.
6157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 #include <ac_nonexistent.h>
6161 if ac_fn_c_try_cpp
"$LINENO"; then :
6162 # Broken: success on invalid input.
6165 # Passes both tests.
6169 rm -f conftest.err conftest.i conftest.
$ac_ext
6172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6173 rm -f conftest.i conftest.err conftest.
$ac_ext
6174 if $ac_preproc_ok; then :
6177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6179 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6180 See \`config.log' for more details" "$LINENO" 5; }
6184 ac_cpp
='$CPP $CPPFLAGS'
6185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6190 ac_cpp
='$CPP $CPPFLAGS'
6191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6196 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_CC+:} false
; then :
6200 $as_echo_n "(cached) " >&6
6202 if test -n "$CC"; then
6203 ac_cv_prog_CC
="$CC" # Let the user override the test.
6205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir
=.
6210 for ac_exec_ext
in '' $ac_executable_extensions; do
6211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 if test -n "$CC"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6225 $as_echo "$CC" >&6; }
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6233 if test -z "$ac_cv_prog_CC"; then
6235 # Extract the first word of "gcc", so it can be a program name with args.
6236 set dummy gcc
; ac_word
=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6240 $as_echo_n "(cached) " >&6
6242 if test -n "$ac_ct_CC"; then
6243 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir
=.
6250 for ac_exec_ext
in '' $ac_executable_extensions; do
6251 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_ac_ct_CC
="gcc"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6263 if test -n "$ac_ct_CC"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6265 $as_echo "$ac_ct_CC" >&6; }
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6271 if test "x$ac_ct_CC" = x
; then
6274 case $cross_compiling:$ac_tool_warned in
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned
=yes ;;
6286 if test -z "$CC"; then
6287 if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6289 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_CC+:} false
; then :
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$CC"; then
6296 ac_cv_prog_CC
="$CC" # Let the user override the test.
6298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir
=.
6303 for ac_exec_ext
in '' $ac_executable_extensions; do
6304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 if test -n "$CC"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6318 $as_echo "$CC" >&6; }
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6327 if test -z "$CC"; then
6328 # Extract the first word of "cc", so it can be a program name with args.
6329 set dummy cc
; ac_word
=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_prog_CC+:} false
; then :
6333 $as_echo_n "(cached) " >&6
6335 if test -n "$CC"; then
6336 ac_cv_prog_CC
="$CC" # Let the user override the test.
6339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir
=.
6344 for ac_exec_ext
in '' $ac_executable_extensions; do
6345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6347 ac_prog_rejected
=yes
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 if test $ac_prog_rejected = yes; then
6359 # We found a bogon in the path, so make sure we never use it.
6360 set dummy
$ac_cv_prog_CC
6362 if test $# != 0; then
6363 # We chose a different compiler from the bogus one.
6364 # However, it has the same basename, so the bogon will be chosen
6365 # first if we set CC to just the basename; use the full file name.
6367 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6373 if test -n "$CC"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6375 $as_echo "$CC" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6383 if test -z "$CC"; then
6384 if test -n "$ac_tool_prefix"; then
6385 for ac_prog
in cl.exe
6387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6388 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_CC+:} false
; then :
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$CC"; then
6395 ac_cv_prog_CC
="$CC" # Let the user override the test.
6397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir
=.
6402 for ac_exec_ext
in '' $ac_executable_extensions; do
6403 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 if test -n "$CC"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6417 $as_echo "$CC" >&6; }
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6424 test -n "$CC" && break
6427 if test -z "$CC"; then
6429 for ac_prog
in cl.exe
6431 # Extract the first word of "$ac_prog", so it can be a program name with args.
6432 set dummy
$ac_prog; ac_word
=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6436 $as_echo_n "(cached) " >&6
6438 if test -n "$ac_ct_CC"; then
6439 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir
=.
6446 for ac_exec_ext
in '' $ac_executable_extensions; do
6447 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_ac_ct_CC
="$ac_prog"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6459 if test -n "$ac_ct_CC"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6461 $as_echo "$ac_ct_CC" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6468 test -n "$ac_ct_CC" && break
6471 if test "x$ac_ct_CC" = x
; then
6474 case $cross_compiling:$ac_tool_warned in
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6478 ac_tool_warned
=yes ;;
6487 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6489 as_fn_error $?
"no acceptable C compiler found in \$PATH
6490 See \`config.log' for more details" "$LINENO" 5; }
6492 # Provide some information about the compiler.
6493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6496 for ac_option
in --version -v -V -qversion; do
6497 { { ac_try
="$ac_compiler $ac_option >&5"
6499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6503 $as_echo "$ac_try_echo"; } >&5
6504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6506 if test -s conftest.err; then
6508 ... rest of stderr output deleted ...
6509 10q' conftest.err >conftest.er1
6510 cat conftest.er1 >&5
6512 rm -f conftest.er1 conftest.err
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; }
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6518 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6519 if ${ac_cv_c_compiler_gnu+:} false; then :
6520 $as_echo_n "(cached) " >&6
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6536 if ac_fn_c_try_compile "$LINENO"; then :
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6546 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6547 if test $ac_compiler_gnu = yes; then
6552 ac_test_CFLAGS=${CFLAGS+set}
6553 ac_save_CFLAGS=$CFLAGS
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6555 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6556 if ${ac_cv_prog_cc_g+:} false; then :
6557 $as_echo_n "(cached) " >&6
6559 ac_save_c_werror_flag=$ac_c_werror_flag
6560 ac_c_werror_flag=yes
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6574 if ac_fn_c_try_compile "$LINENO"; then :
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6589 if ac_fn_c_try_compile "$LINENO"; then :
6592 ac_c_werror_flag=$ac_save_c_werror_flag
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6605 if ac_fn_c_try_compile "$LINENO"; then :
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 ac_c_werror_flag=$ac_save_c_werror_flag
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6616 $as_echo "$ac_cv_prog_cc_g" >&6; }
6617 if test "$ac_test_CFLAGS" = set; then
6618 CFLAGS=$ac_save_CFLAGS
6619 elif test $ac_cv_prog_cc_g = yes; then
6620 if test "$GCC" = yes; then
6626 if test "$GCC" = yes; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6633 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6634 if ${ac_cv_prog_cc_c89+:} false; then :
6635 $as_echo_n "(cached) " >&6
6637 ac_cv_prog_cc_c89=no
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6645 struct buf { int x; };
6646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6647 static char *e (p, i)
6653 static char *f (char * (*g) (char **, int), char **p, ...)
6658 s = g (p, va_arg (v,int));
6663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6664 function prototypes and stuff, but not '\xHH' hex character constants.
6665 These don't provoke an error unfortunately, instead are silently treated
6666 as 'x'. The following induces an error, until -std is added to get
6667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6668 array size at least. It's necessary to write '\x00'==0 to get something
6669 that's true only with -std. */
6670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6673 inside strings and character constants. */
6675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6677 int test (int i, double x);
6678 struct s1 {int (*f) (int a);};
6679 struct s2 {int (*f) (double a);};
6680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6694 CC="$ac_save_CC $ac_arg"
6695 if ac_fn_c_try_compile "$LINENO"; then :
6696 ac_cv_prog_cc_c89=$ac_arg
6698 rm -f core conftest.err conftest.$ac_objext
6699 test "x$ac_cv_prog_cc_c89" != "xno" && break
6701 rm -f conftest.$ac_ext
6706 case "x$ac_cv_prog_cc_c89" in
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6709 $as_echo "none needed" >&6; } ;;
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6712 $as_echo "unsupported" >&6; } ;;
6714 CC="$CC $ac_cv_prog_cc_c89"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6716 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6718 if test "x$ac_cv_prog_cc_c89" != xno; then :
6723 ac_cpp='$CPP $CPPFLAGS'
6724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6729 ac_cpp='$CPP $CPPFLAGS'
6730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6734 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6735 if ${am_cv_prog_cc_c_o+:} false; then :
6736 $as_echo_n "(cached) " >&6
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6749 # Make sure it works both with $CC and with simple cc.
6750 # Following AC_PROG_CC_C_O, we do the test twice because some
6751 # compilers refuse to overwrite an existing .o file with -o,
6752 # though they will create one.
6753 am_cv_prog_cc_c_o=yes
6755 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6756 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } \
6760 && test -f conftest2.$ac_objext; then
6763 am_cv_prog_cc_c_o=no
6767 rm -f core conftest*
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6771 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6772 if test "$am_cv_prog_cc_c_o" != yes; then
6773 # Losing compiler, so override with the script.
6774 # FIXME: It is wrong to rewrite CC.
6775 # But if we don't then we get into trouble of one sort or another.
6776 # A longer-term fix would be to have automake use am__CC in this case,
6777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6778 CC="$am_aux_dir/compile $CC"
6781 ac_cpp='$CPP $CPPFLAGS'
6782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6787 depcc="$CC" am_compiler_list=
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6790 $as_echo_n "checking dependency style of $depcc... " >&6; }
6791 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6792 $as_echo_n "(cached) " >&6
6794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6795 # We make a subdir and do the tests there. Otherwise we can end up
6796 # making bogus files that we don't know about and never remove. For
6797 # instance it was reported that on HP-UX the gcc test will end up
6798 # making a dummy file named 'D' -- because '-MD' means "put the output
6802 # Copy depcomp to subdir because otherwise we won't find it if we're
6803 # using a relative directory.
6804 cp "$am_depcomp" conftest.dir
6806 # We will build objects and dependencies in a subdirectory because
6807 # it helps to detect inapplicable dependency modes. For instance
6808 # both Tru64's cc and ICC support -MD to output dependencies as a
6809 # side effect of compilation, but ICC will put the dependencies in
6810 # the current directory while Tru64 will put them in the object
6814 am_cv_CC_dependencies_compiler_type=none
6815 if test "$am_compiler_list" = ""; then
6816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6819 case " $depcc " in #(
6820 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6823 for depmode in $am_compiler_list; do
6824 # Setup a source with many dependencies, because some compilers
6825 # like to wrap large dependency lists on column 80 (with \), and
6826 # we should not choose a depcomp mode which is confused by this.
6828 # We need to recreate these files for each test, as the compiler may
6829 # overwrite some of them when testing with obscure command lines.
6830 # This happens at least with the AIX C compiler.
6832 for i in 1 2 3 4 5 6; do
6833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6834 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6835 # Solaris 10 /bin/sh.
6836 echo '/* dummy */' > sub/conftst$i.h
6838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6840 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6841 # mode. It turns out that the SunPro C++ compiler does not properly
6842 # handle '-M -o', and we need to detect this. Also, some Intel
6843 # versions had trouble with output in subdirs.
6844 am__obj=sub/conftest.${OBJEXT-o}
6845 am__minus_obj="-o $am__obj"
6848 # This depmode causes a compiler race in universal mode.
6849 test "$am__universal" = false || continue
6852 # After this tag, mechanisms are not by side-effect, so they'll
6853 # only be used when explicitly requested.
6854 if test "x$enable_dependency_tracking" = xyes; then
6860 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6861 # This compiler won't grok '-c -o', but also, the minuso test has
6862 # not run yet. These depmodes are late enough in the game, and
6863 # so weak that their functioning should not be impacted.
6864 am__obj=conftest.${OBJEXT-o}
6869 if depmode=$depmode \
6870 source=sub/conftest.c object=$am__obj \
6871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6873 >/dev/null 2>conftest.err &&
6874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6878 # icc doesn't choke on unknown options, it will just issue warnings
6879 # or remarks (even with -Werror). So we grep stderr for any message
6880 # that says an option was ignored or not supported.
6881 # When given -MP, icc 7.0 and 7.1 complain thusly:
6882 # icc: Command line warning: ignoring option '-M'; no argument required
6883 # The diagnosis changed in icc 8.0:
6884 # icc: Command line remark: option '-MP' not supported
6885 if (grep 'ignoring option' conftest.err ||
6886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6887 am_cv_CC_dependencies_compiler_type=$depmode
6896 am_cv_CC_dependencies_compiler_type=none
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6901 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6902 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6905 test "x$enable_dependency_tracking" != xno \
6906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6908 am__fastdepCC_FALSE='#'
6910 am__fastdepCC_TRUE='#'
6911 am__fastdepCC_FALSE=
6915 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6918 if test -n "$ac_tool_prefix"; then
6919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6920 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if ${ac_cv_prog_RANLIB+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 if test -n "$RANLIB"; then
6927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 RANLIB=$ac_cv_prog_RANLIB
6947 if test -n "$RANLIB"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6949 $as_echo "$RANLIB" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6957 if test -z "$ac_cv_prog_RANLIB"; then
6958 ac_ct_RANLIB=$RANLIB
6959 # Extract the first word of "ranlib", so it can be a program name with args.
6960 set dummy ranlib; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6964 $as_echo_n "(cached) " >&6
6966 if test -n "$ac_ct_RANLIB"; then
6967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6976 ac_cv_prog_ac_ct_RANLIB="ranlib"
6977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6987 if test -n "$ac_ct_RANLIB"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6989 $as_echo "$ac_ct_RANLIB" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6995 if test "x$ac_ct_RANLIB" = x; then
6998 case $cross_compiling:$ac_tool_warned in
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002 ac_tool_warned=yes ;;
7004 RANLIB=$ac_ct_RANLIB
7007 RANLIB="$ac_cv_prog_RANLIB"
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7014 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7016 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7017 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7018 $as_echo_n "(cached) " >&6
7020 cat >conftest.make <<\_ACEOF
7023 @echo '@@@%%%=$(MAKE)=@@@%%%'
7025 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7026 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
7028 eval ac_cv_prog_make_${ac_make}_set=yes;;
7030 eval ac_cv_prog_make_${ac_make}_set=no;;
7034 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7036 $as_echo "yes" >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 SET_MAKE="MAKE=${MAKE-make}"
7046 # Check whether --enable-largefile was given.
7047 if test "${enable_largefile+set}" = set; then :
7048 enableval=$enable_largefile;
7051 if test "$enable_largefile" != no; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7054 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7055 if ${ac_cv_sys_largefile_CC+:} false; then :
7056 $as_echo_n "(cached) " >&6
7058 ac_cv_sys_largefile_CC=no
7059 if test "$GCC" != yes; then
7062 # IRIX 6.2 and later do not support large files by default,
7063 # so use the C compiler's -n32 option if that helps.
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 #include <sys/types.h>
7067 /* Check that off_t can represent 2**63 - 1 correctly.
7068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7069 since some C++ compilers masquerading as C compilers
7070 incorrectly reject 9223372036854775807. */
7071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7073 && LARGE_OFF_T % 2147483647 == 1)
7083 if ac_fn_c_try_compile "$LINENO"; then :
7086 rm -f core conftest.err conftest.$ac_objext
7088 if ac_fn_c_try_compile "$LINENO"; then :
7089 ac_cv_sys_largefile_CC=' -n32'; break
7091 rm -f core conftest.err conftest.$ac_objext
7095 rm -f conftest.$ac_ext
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7099 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7100 if test "$ac_cv_sys_largefile_CC" != no; then
7101 CC=$CC$ac_cv_sys_largefile_CC
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7105 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7106 if ${ac_cv_sys_file_offset_bits+:} false; then :
7107 $as_echo_n "(cached) " >&6
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #include <sys/types.h>
7113 /* Check that off_t can represent 2**63 - 1 correctly.
7114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7115 since some C++ compilers masquerading as C compilers
7116 incorrectly reject 9223372036854775807. */
7117 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7119 && LARGE_OFF_T % 2147483647 == 1)
7129 if ac_fn_c_try_compile "$LINENO"; then :
7130 ac_cv_sys_file_offset_bits=no; break
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 #define _FILE_OFFSET_BITS 64
7136 #include <sys/types.h>
7137 /* Check that off_t can represent 2**63 - 1 correctly.
7138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7139 since some C++ compilers masquerading as C compilers
7140 incorrectly reject 9223372036854775807. */
7141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7143 && LARGE_OFF_T % 2147483647 == 1)
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 ac_cv_sys_file_offset_bits=64; break
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 ac_cv_sys_file_offset_bits=unknown
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7162 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7163 case $ac_cv_sys_file_offset_bits in #(
7166 cat >>confdefs.h <<_ACEOF
7167 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7172 if test $ac_cv_sys_file_offset_bits = unknown; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7174 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7175 if ${ac_cv_sys_large_files+:} false; then :
7176 $as_echo_n "(cached) " >&6
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 #include <sys/types.h>
7182 /* Check that off_t can represent 2**63 - 1 correctly.
7183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7184 since some C++ compilers masquerading as C compilers
7185 incorrectly reject 9223372036854775807. */
7186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7188 && LARGE_OFF_T % 2147483647 == 1)
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 ac_cv_sys_large_files=no; break
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 #define _LARGE_FILES 1
7205 #include <sys/types.h>
7206 /* Check that off_t can represent 2**63 - 1 correctly.
7207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7208 since some C++ compilers masquerading as C compilers
7209 incorrectly reject 9223372036854775807. */
7210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7212 && LARGE_OFF_T % 2147483647 == 1)
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 ac_cv_sys_large_files=1; break
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 ac_cv_sys_large_files=unknown
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7231 $as_echo "$ac_cv_sys_large_files" >&6; }
7232 case $ac_cv_sys_large_files in #(
7235 cat >>confdefs.h <<_ACEOF
7236 #define _LARGE_FILES $ac_cv_sys_large_files
7246 for ac_func in ppoll
7248 ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
7249 if test "x$ac_cv_func_ppoll" = xyes; then :
7250 cat >>confdefs.h <<_ACEOF
7251 #define HAVE_PPOLL 1
7257 for ac_func in openat
7259 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
7260 if test "x$ac_cv_func_openat" = xyes; then :
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_OPENAT 1
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7269 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7270 if ${ac_cv_path_SED+:} false; then :
7271 $as_echo_n "(cached) " >&6
7273 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7274 for ac_i in 1 2 3 4 5 6 7; do
7275 ac_script="$ac_script$as_nl$ac_script"
7277 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7278 { ac_script=; unset ac_script;}
7279 if test -z "$SED"; then
7280 ac_path_SED_found=false
7281 # Loop through the user's path and test for each of PROGNAME-LIST
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_prog in sed gsed; do
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7290 as_fn_executable_p "$ac_path_SED" || continue
7291 # Check for GNU ac_path_SED and select it if it is found.
7292 # Check for GNU $ac_path_SED
7293 case `"$ac_path_SED" --version 2>&1` in
7295 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7298 $as_echo_n 0123456789 >"conftest.in"
7301 cat "conftest.in" "conftest.in" >"conftest.tmp"
7302 mv "conftest.tmp" "conftest.in"
7303 cp "conftest.in" "conftest.nl"
7304 $as_echo '' >> "conftest.nl"
7305 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7307 as_fn_arith $ac_count + 1 && ac_count=$as_val
7308 if test $ac_count -gt ${ac_path_SED_max-0}; then
7309 # Best one so far, save it but keep looking for a better one
7310 ac_cv_path_SED="$ac_path_SED"
7311 ac_path_SED_max=$ac_count
7313 # 10*(2^10) chars as input seems more than enough
7314 test $ac_count -gt 10 && break
7316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7319 $ac_path_SED_found && break 3
7324 if test -z "$ac_cv_path_SED"; then
7325 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7333 $as_echo "$ac_cv_path_SED" >&6; }
7334 SED="$ac_cv_path_SED"
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7339 $as_echo_n "checking whether NLS is requested... " >&6; }
7340 # Check whether --enable-nls was given.
7341 if test "${enable_nls+set}" = set; then :
7342 enableval=$enable_nls; USE_NLS=$enableval
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7348 $as_echo "$USE_NLS" >&6; }
7353 GETTEXT_MACRO_VERSION=0.19
7358 # Prepare PATH_SEPARATOR.
7359 # The user is always right.
7360 if test "${PATH_SEPARATOR+set}" != set; then
7361 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7362 # contains only /bin. Note that ksh looks also at the FPATH variable,
7363 # so we have to set that as well for the test.
7365 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7366 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7367 || PATH_SEPARATOR=';'
7371 # Find out how to test for executable files. Don't use a zero-byte file,
7372 # as systems may use methods other than mode bits to determine executability.
7373 cat >conf$$.file <<_ASEOF
7377 chmod +x conf$$.file
7378 if test -x conf$$.file >/dev/null 2>&1; then
7379 ac_executable_p="test -x"
7381 ac_executable_p="test -f"
7385 # Extract the first word of "msgfmt", so it can be a program name with args.
7386 set dummy msgfmt; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_path_MSGFMT+:} false; then :
7390 $as_echo_n "(cached) " >&6
7394 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7397 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7398 for ac_dir in $PATH; do
7400 test -z "$ac_dir" && ac_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7403 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7404 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7405 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7406 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7413 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7417 MSGFMT="$ac_cv_path_MSGFMT"
7418 if test "$MSGFMT" != ":"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7420 $as_echo "$MSGFMT" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7426 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7427 set dummy gmsgfmt; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_path_GMSGFMT+:} false; then :
7431 $as_echo_n "(cached) " >&6
7435 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7457 GMSGFMT=$ac_cv_path_GMSGFMT
7458 if test -n "$GMSGFMT"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7460 $as_echo "$GMSGFMT" >&6; }
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7468 case `$MSGFMT --version |
sed 1q |
sed -e 's,^[^0-9]*,,'` in
7469 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7470 *) MSGFMT_015=$MSGFMT ;;
7473 case `$GMSGFMT --version |
sed 1q |
sed -e 's,^[^0-9]*,,'` in
7474 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7475 *) GMSGFMT_015=$GMSGFMT ;;
7480 # Prepare PATH_SEPARATOR.
7481 # The user is always right.
7482 if test "${PATH_SEPARATOR+set}" != set; then
7483 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7484 # contains only /bin. Note that ksh looks also at the FPATH variable,
7485 # so we have to set that as well for the test.
7487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7488 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7489 || PATH_SEPARATOR=';'
7493 # Find out how to test for executable files. Don't use a zero-byte file,
7494 # as systems may use methods other than mode bits to determine executability.
7495 cat >conf$$.file <<_ASEOF
7499 chmod +x conf$$.file
7500 if test -x conf$$.file >/dev/null 2>&1; then
7501 ac_executable_p="test -x"
7503 ac_executable_p="test -f"
7507 # Extract the first word of "xgettext", so it can be a program name with args.
7508 set dummy xgettext; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_path_XGETTEXT+:} false; then :
7512 $as_echo_n "(cached) " >&6
7516 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7519 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7520 for ac_dir in $PATH; do
7522 test -z "$ac_dir" && ac_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7525 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7526 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7527 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7528 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7535 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7539 XGETTEXT="$ac_cv_path_XGETTEXT"
7540 if test "$XGETTEXT" != ":"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7542 $as_echo "$XGETTEXT" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 case `$XGETTEXT --version |
sed 1q |
sed -e 's,^[^0-9]*,,'` in
7551 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7552 *) XGETTEXT_015=$XGETTEXT ;;
7557 # Prepare PATH_SEPARATOR.
7558 # The user is always right.
7559 if test "${PATH_SEPARATOR+set}" != set; then
7560 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7561 # contains only /bin. Note that ksh looks also at the FPATH variable,
7562 # so we have to set that as well for the test.
7564 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7565 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7566 || PATH_SEPARATOR=';'
7570 # Find out how to test for executable files. Don't use a zero-byte file,
7571 # as systems may use methods other than mode bits to determine executability.
7572 cat >conf$$.file <<_ASEOF
7576 chmod +x conf$$.file
7577 if test -x conf$$.file >/dev/null 2>&1; then
7578 ac_executable_p="test -x"
7580 ac_executable_p="test -f"
7584 # Extract the first word of "msgmerge", so it can be a program name with args.
7585 set dummy msgmerge; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_path_MSGMERGE+:} false; then :
7589 $as_echo_n "(cached) " >&6
7593 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7596 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7597 for ac_dir in $PATH; do
7599 test -z "$ac_dir" && ac_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7602 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7603 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7604 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7611 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7615 MSGMERGE="$ac_cv_path_MSGMERGE"
7616 if test "$MSGMERGE" != ":"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7618 $as_echo "$MSGMERGE" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7625 test -n "$localedir" || localedir='${datadir}/locale'
7628 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7631 ac_config_commands="$ac_config_commands po-directories"
7635 if test "X$prefix" = "XNONE"; then
7636 acl_final_prefix="$ac_default_prefix"
7638 acl_final_prefix="$prefix"
7640 if test "X$exec_prefix" = "XNONE"; then
7641 acl_final_exec_prefix='${prefix}'
7643 acl_final_exec_prefix="$exec_prefix"
7645 acl_save_prefix="$prefix"
7646 prefix="$acl_final_prefix"
7647 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7648 prefix="$acl_save_prefix"
7652 # Check whether --with-gnu-ld was given.
7653 if test "${with_gnu_ld+set}" = set; then :
7654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7659 # Prepare PATH_SEPARATOR.
7660 # The user is always right.
7661 if test "${PATH_SEPARATOR+set}" != set; then
7662 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7663 # contains only /bin. Note that ksh looks also at the FPATH variable,
7664 # so we have to set that as well for the test.
7666 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7667 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7668 || PATH_SEPARATOR=';'
7673 if test "$GCC" = yes; then
7674 # Check if gcc -print-prog-name=ld gives a path.
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7676 $as_echo_n "checking for ld used by $CC... " >&6; }
7679 # gcc leaves a trailing carriage return which upsets mingw
7680 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
7682 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
7685 # Accept absolute paths.
7687 re_direlt='/[^/][^/]*/\.\./'
7688 # Canonicalize the pathname of ld
7689 ac_prog=`echo "$ac_prog"|
sed 's%\\\\%/%g'`
7690 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7691 ac_prog=`echo $ac_prog|
sed "s%$re_direlt%/%"`
7693 test -z "$LD" && LD="$ac_prog"
7696 # If it fails, then pretend we aren't using GCC.
7700 # If it is relative, then search for the first ld in PATH.
7704 elif test "$with_gnu_ld" = yes; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7706 $as_echo_n "checking for GNU ld... " >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7709 $as_echo_n "checking for non-GNU ld... " >&6; }
7711 if ${acl_cv_path_LD+:} false; then :
7712 $as_echo_n "(cached) " >&6
7714 if test -z "$LD"; then
7715 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7716 for ac_dir in $PATH; do
7718 test -z "$ac_dir" && ac_dir=.
7719 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7720 acl_cv_path_LD="$ac_dir/$ac_prog"
7721 # Check to see if the program is GNU ld. I'd rather use --version,
7722 # but apparently some variants of GNU ld only accept -v.
7723 # Break only if it was the GNU/non-GNU ld that we prefer.
7724 case `"$acl_cv_path_LD" -v 2>&1 </dev
/null
` in
7725 *GNU* | *'with BFD'*)
7726 test "$with_gnu_ld" != no && break
7729 test "$with_gnu_ld" != yes && break
7736 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7740 LD="$acl_cv_path_LD"
7741 if test -n "$LD"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7743 $as_echo "$LD" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7748 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7750 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7751 if ${acl_cv_prog_gnu_ld+:} false; then :
7752 $as_echo_n "(cached) " >&6
7754 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7755 case `$LD -v 2>&1 </dev
/null
` in
7756 *GNU* | *'with BFD'*)
7757 acl_cv_prog_gnu_ld=yes
7760 acl_cv_prog_gnu_ld=no
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7765 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7766 with_gnu_ld=$acl_cv_prog_gnu_ld
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7772 $as_echo_n "checking for shared library run path origin... " >&6; }
7773 if ${acl_cv_rpath+:} false; then :
7774 $as_echo_n "(cached) " >&6
7777 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7778 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7785 $as_echo "$acl_cv_rpath" >&6; }
7787 acl_libext="$acl_cv_libext"
7788 acl_shlibext="$acl_cv_shlibext"
7789 acl_libname_spec="$acl_cv_libname_spec"
7790 acl_library_names_spec="$acl_cv_library_names_spec"
7791 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7792 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7793 acl_hardcode_direct="$acl_cv_hardcode_direct"
7794 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7795 # Check whether --enable-rpath was given.
7796 if test "${enable_rpath+set}" = set; then :
7797 enableval=$enable_rpath; :
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7810 $as_echo_n "checking for 64-bit host... " >&6; }
7811 if ${gl_cv_solaris_64bit+:} false; then :
7812 $as_echo_n "(cached) " >&6
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7824 gl_cv_solaris_64bit=yes
7826 gl_cv_solaris_64bit=no
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7833 $as_echo "$gl_cv_solaris_64bit" >&6; }
7834 if test $gl_cv_solaris_64bit = yes; then
7835 acl_libdirstem=lib/64
7837 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7838 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7843 searchpath=`(LC_ALL
=C
$CC -print-search-dirs) 2>/dev
/null |
sed -n -e 's,^libraries: ,,p' |
sed -e 's,^=,,'`
7844 if test -n "$searchpath"; then
7845 acl_save_IFS="${IFS= }"; IFS=":"
7846 for searchdir in $searchpath; do
7847 if test -d "$searchdir"; then
7848 case "$searchdir" in
7849 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7851 # Better ignore directories of this form. They are misleading.
7853 *) searchdir=`cd "$searchdir" && pwd`
7854 case "$searchdir" in
7855 */lib64 ) acl_libdirstem=lib64 ;;
7864 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7879 acl_save_prefix="$prefix"
7880 prefix="$acl_final_prefix"
7881 acl_save_exec_prefix="$exec_prefix"
7882 exec_prefix="$acl_final_exec_prefix"
7884 eval additional_includedir=\"$includedir\"
7885 eval additional_libdir=\"$libdir\"
7887 exec_prefix="$acl_save_exec_prefix"
7888 prefix="$acl_save_prefix"
7891 # Check whether --with-libiconv-prefix was given.
7892 if test "${with_libiconv_prefix+set}" = set; then :
7893 withval=$with_libiconv_prefix;
7894 if test "X$withval" = "Xno"; then
7897 if test "X$withval" = "X"; then
7899 acl_save_prefix="$prefix"
7900 prefix="$acl_final_prefix"
7901 acl_save_exec_prefix="$exec_prefix"
7902 exec_prefix="$acl_final_exec_prefix"
7904 eval additional_includedir=\"$includedir\"
7905 eval additional_libdir=\"$libdir\"
7907 exec_prefix="$acl_save_exec_prefix"
7908 prefix="$acl_save_prefix"
7911 additional_includedir="$withval/include"
7912 additional_libdir="$withval/$acl_libdirstem"
7913 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7914 && ! test -d "$withval/$acl_libdirstem"; then
7915 additional_libdir="$withval/$acl_libdirstem2"
7929 names_already_handled=
7930 names_next_round='iconv '
7931 while test -n "$names_next_round"; do
7932 names_this_round="$names_next_round"
7934 for name in $names_this_round; do
7936 for n in $names_already_handled; do
7937 if test "$n" = "$name"; then
7942 if test -z "$already_handled"; then
7943 names_already_handled="$names_already_handled $name"
7944 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7945 eval value=\"\$HAVE_LIB$uppername\"
7946 if test -n "$value"; then
7947 if test "$value" = yes; then
7948 eval value=\"\$LIB$uppername\"
7949 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7950 eval value=\"\$LTLIB$uppername\"
7951 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7960 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7961 if test -n "$acl_shlibext"; then
7962 shrext=".$acl_shlibext" # typically: shrext=.so
7966 if test $use_additional = yes; then
7967 dir="$additional_libdir"
7968 if test -n "$acl_shlibext"; then
7969 if test -f "$dir/$libname$shrext"; then
7971 found_so="$dir/$libname$shrext"
7973 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7974 ver=`(cd "$dir" && \
7975 for f
in "$libname$shrext".
*; do echo "$f"; done \
7976 |
sed -e "s,^$libname$shrext\\\\.,," \
7977 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7978 |
sed 1q
) 2>/dev
/null
`
7979 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7981 found_so="$dir/$libname$shrext.$ver"
7984 eval library_names=\"$acl_library_names_spec\"
7985 for f in $library_names; do
7986 if test -f "$dir/$f"; then
7995 if test "X$found_dir" = "X"; then
7996 if test -f "$dir/$libname.$acl_libext"; then
7998 found_a="$dir/$libname.$acl_libext"
8001 if test "X$found_dir" != "X"; then
8002 if test -f "$dir/$libname.la"; then
8003 found_la="$dir/$libname.la"
8007 if test "X$found_dir" = "X"; then
8008 for x in $LDFLAGS $LTLIBICONV; do
8010 acl_save_prefix="$prefix"
8011 prefix="$acl_final_prefix"
8012 acl_save_exec_prefix="$exec_prefix"
8013 exec_prefix="$acl_final_exec_prefix"
8015 exec_prefix="$acl_save_exec_prefix"
8016 prefix="$acl_save_prefix"
8020 dir=`echo "X$x" |
sed -e 's/^X-L//'`
8021 if test -n "$acl_shlibext"; then
8022 if test -f "$dir/$libname$shrext"; then
8024 found_so="$dir/$libname$shrext"
8026 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8027 ver=`(cd "$dir" && \
8028 for f
in "$libname$shrext".
*; do echo "$f"; done \
8029 |
sed -e "s,^$libname$shrext\\\\.,," \
8030 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8031 |
sed 1q
) 2>/dev
/null
`
8032 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8034 found_so="$dir/$libname$shrext.$ver"
8037 eval library_names=\"$acl_library_names_spec\"
8038 for f in $library_names; do
8039 if test -f "$dir/$f"; then
8048 if test "X$found_dir" = "X"; then
8049 if test -f "$dir/$libname.$acl_libext"; then
8051 found_a="$dir/$libname.$acl_libext"
8054 if test "X$found_dir" != "X"; then
8055 if test -f "$dir/$libname.la"; then
8056 found_la="$dir/$libname.la"
8061 if test "X$found_dir" != "X"; then
8066 if test "X$found_dir" != "X"; then
8067 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8068 if test "X$found_so" != "X"; then
8069 if test "$enable_rpath" = no \
8070 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8071 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8072 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8075 for x in $ltrpathdirs; do
8076 if test "X$x" = "X$found_dir"; then
8081 if test -z "$haveit"; then
8082 ltrpathdirs="$ltrpathdirs $found_dir"
8084 if test "$acl_hardcode_direct" = yes; then
8085 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8087 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8090 for x in $rpathdirs; do
8091 if test "X$x" = "X$found_dir"; then
8096 if test -z "$haveit"; then
8097 rpathdirs="$rpathdirs $found_dir"
8101 for x in $LDFLAGS $LIBICONV; do
8103 acl_save_prefix="$prefix"
8104 prefix="$acl_final_prefix"
8105 acl_save_exec_prefix="$exec_prefix"
8106 exec_prefix="$acl_final_exec_prefix"
8108 exec_prefix="$acl_save_exec_prefix"
8109 prefix="$acl_save_prefix"
8111 if test "X$x" = "X-L$found_dir"; then
8116 if test -z "$haveit"; then
8117 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8119 if test "$acl_hardcode_minus_L" != no; then
8120 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8122 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8128 if test "X$found_a" != "X"; then
8129 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8131 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8134 additional_includedir=
8135 case "$found_dir" in
8136 */$acl_libdirstem | */$acl_libdirstem/)
8137 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8138 if test "$name" = 'iconv'; then
8139 LIBICONV_PREFIX="$basedir"
8141 additional_includedir="$basedir/include"
8143 */$acl_libdirstem2 | */$acl_libdirstem2/)
8144 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8145 if test "$name" = 'iconv'; then
8146 LIBICONV_PREFIX="$basedir"
8148 additional_includedir="$basedir/include"
8151 if test "X$additional_includedir" != "X"; then
8152 if test "X$additional_includedir" != "X/usr/include"; then
8154 if test "X$additional_includedir" = "X/usr/local/include"; then
8155 if test -n "$GCC"; then
8157 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8161 if test -z "$haveit"; then
8162 for x in $CPPFLAGS $INCICONV; do
8164 acl_save_prefix="$prefix"
8165 prefix="$acl_final_prefix"
8166 acl_save_exec_prefix="$exec_prefix"
8167 exec_prefix="$acl_final_exec_prefix"
8169 exec_prefix="$acl_save_exec_prefix"
8170 prefix="$acl_save_prefix"
8172 if test "X$x" = "X-I$additional_includedir"; then
8177 if test -z "$haveit"; then
8178 if test -d "$additional_includedir"; then
8179 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8185 if test -n "$found_la"; then
8186 save_libdir="$libdir"
8188 */* | *\\*) . "$found_la" ;;
8189 *) . "./$found_la" ;;
8191 libdir="$save_libdir"
8192 for dep in $dependency_libs; do
8195 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
8196 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8197 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8199 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8200 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8201 if test -n "$GCC"; then
8203 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8207 if test -z "$haveit"; then
8209 for x in $LDFLAGS $LIBICONV; do
8211 acl_save_prefix="$prefix"
8212 prefix="$acl_final_prefix"
8213 acl_save_exec_prefix="$exec_prefix"
8214 exec_prefix="$acl_final_exec_prefix"
8216 exec_prefix="$acl_save_exec_prefix"
8217 prefix="$acl_save_prefix"
8219 if test "X$x" = "X-L$additional_libdir"; then
8224 if test -z "$haveit"; then
8225 if test -d "$additional_libdir"; then
8226 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8230 for x in $LDFLAGS $LTLIBICONV; do
8232 acl_save_prefix="$prefix"
8233 prefix="$acl_final_prefix"
8234 acl_save_exec_prefix="$exec_prefix"
8235 exec_prefix="$acl_final_exec_prefix"
8237 exec_prefix="$acl_save_exec_prefix"
8238 prefix="$acl_save_prefix"
8240 if test "X$x" = "X-L$additional_libdir"; then
8245 if test -z "$haveit"; then
8246 if test -d "$additional_libdir"; then
8247 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8254 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
8255 if test "$enable_rpath" != no; then
8257 for x in $rpathdirs; do
8258 if test "X$x" = "X$dir"; then
8263 if test -z "$haveit"; then
8264 rpathdirs="$rpathdirs $dir"
8267 for x in $ltrpathdirs; do
8268 if test "X$x" = "X$dir"; then
8273 if test -z "$haveit"; then
8274 ltrpathdirs="$ltrpathdirs $dir"
8279 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
8282 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8285 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8286 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8292 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8293 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8299 if test "X$rpathdirs" != "X"; then
8300 if test -n "$acl_hardcode_libdir_separator"; then
8302 for found_dir in $rpathdirs; do
8303 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8305 acl_save_libdir="$libdir"
8307 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8308 libdir="$acl_save_libdir"
8309 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8311 for found_dir in $rpathdirs; do
8312 acl_save_libdir="$libdir"
8314 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8315 libdir="$acl_save_libdir"
8316 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8320 if test "X$ltrpathdirs" != "X"; then
8321 for found_dir in $ltrpathdirs; do
8322 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8357 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8358 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8359 $as_echo_n "(cached) " >&6
8361 gt_save_LIBS="$LIBS"
8362 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 #include <CoreFoundation/CFPreferences.h>
8369 CFPreferencesCopyAppValue(NULL, NULL)
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 gt_cv_func_CFPreferencesCopyAppValue=yes
8377 gt_cv_func_CFPreferencesCopyAppValue=no
8379 rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381 LIBS="$gt_save_LIBS"
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8384 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8385 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8387 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8391 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8392 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8393 $as_echo_n "(cached) " >&6
8395 gt_save_LIBS="$LIBS"
8396 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <CoreFoundation/CFLocale.h>
8403 CFLocaleCopyCurrent();
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 gt_cv_func_CFLocaleCopyCurrent=yes
8411 gt_cv_func_CFLocaleCopyCurrent=no
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 LIBS="$gt_save_LIBS"
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8418 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8419 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8421 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8425 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8426 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8438 case " $gt_needs " in
8439 *" need-formatstring-macros "*) gt_api_version=3 ;;
8440 *" need-ngettext "*) gt_api_version=2 ;;
8441 *) gt_api_version=1 ;;
8443 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8444 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8446 if test "$USE_NLS" = "yes"; then
8447 gt_use_preinstalled_gnugettext=no
8450 if test $gt_api_version -ge 3; then
8451 gt_revision_test_code='
8452 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8453 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8455 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8458 gt_revision_test_code=
8460 if test $gt_api_version -ge 2; then
8461 gt_expression_test_code=' + * ngettext ("", "", 0)'
8463 gt_expression_test_code=
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8467 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8468 if eval \${$gt_func_gnugettext_libc+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8474 #include <libintl.h>
8475 $gt_revision_test_code
8476 extern int _nl_msg_cat_cntr;
8477 extern int *_nl_domain_bindings;
8483 bindtextdomain ("", "");
8484 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8490 if ac_fn_c_try_link "$LINENO"; then :
8491 eval "$gt_func_gnugettext_libc=yes"
8493 eval "$gt_func_gnugettext_libc=no"
8495 rm -f core conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8498 eval ac_res=\$$gt_func_gnugettext_libc
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8500 $as_echo "$ac_res" >&6; }
8502 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8508 am_save_CPPFLAGS="$CPPFLAGS"
8510 for element in $INCICONV; do
8512 for x in $CPPFLAGS; do
8514 acl_save_prefix="$prefix"
8515 prefix="$acl_final_prefix"
8516 acl_save_exec_prefix="$exec_prefix"
8517 exec_prefix="$acl_final_exec_prefix"
8519 exec_prefix="$acl_save_exec_prefix"
8520 prefix="$acl_save_prefix"
8522 if test "X$x" = "X$element"; then
8527 if test -z "$haveit"; then
8528 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8534 $as_echo_n "checking for iconv... " >&6; }
8535 if ${am_cv_func_iconv+:} false; then :
8536 $as_echo_n "(cached) " >&6
8539 am_cv_func_iconv="no, consider installing GNU libiconv"
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8550 iconv_t cd = iconv_open("","");
8551 iconv(cd,NULL,NULL,NULL,NULL);
8557 if ac_fn_c_try_link "$LINENO"; then :
8558 am_cv_func_iconv=yes
8560 rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 if test "$am_cv_func_iconv" != yes; then
8563 am_save_LIBS="$LIBS"
8564 LIBS="$LIBS $LIBICONV"
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8574 iconv_t cd = iconv_open("","");
8575 iconv(cd,NULL,NULL,NULL,NULL);
8581 if ac_fn_c_try_link "$LINENO"; then :
8583 am_cv_func_iconv=yes
8585 rm -f core conftest.err conftest.$ac_objext \
8586 conftest$ac_exeext conftest.$ac_ext
8587 LIBS="$am_save_LIBS"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8592 $as_echo "$am_cv_func_iconv" >&6; }
8593 if test "$am_cv_func_iconv" = yes; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8595 $as_echo_n "checking for working iconv... " >&6; }
8596 if ${am_cv_func_iconv_works+:} false; then :
8597 $as_echo_n "(cached) " >&6
8600 am_save_LIBS="$LIBS"
8601 if test $am_cv_lib_iconv = yes; then
8602 LIBS="$LIBS $LIBICONV"
8604 am_cv_func_iconv_works=no
8605 for ac_iconv_const in '' 'const'; do
8606 if test "$cross_compiling" = yes; then :
8608 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8609 *) am_cv_func_iconv_works="guessing yes" ;;
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8619 # define ICONV_CONST $ac_iconv_const
8626 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8629 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8630 if (cd_utf8_to_88591 != (iconv_t)(-1))
8632 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8634 ICONV_CONST char *inptr = input;
8635 size_t inbytesleft = strlen (input);
8637 size_t outbytesleft = sizeof (buf);
8638 size_t res = iconv (cd_utf8_to_88591,
8639 &inptr, &inbytesleft,
8640 &outptr, &outbytesleft);
8643 iconv_close (cd_utf8_to_88591);
8646 /* Test against Solaris 10 bug: Failures are not distinguishable from
8647 successful returns. */
8649 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8650 if (cd_ascii_to_88591 != (iconv_t)(-1))
8652 static ICONV_CONST char input[] = "\263";
8654 ICONV_CONST char *inptr = input;
8655 size_t inbytesleft = strlen (input);
8657 size_t outbytesleft = sizeof (buf);
8658 size_t res = iconv (cd_ascii_to_88591,
8659 &inptr, &inbytesleft,
8660 &outptr, &outbytesleft);
8663 iconv_close (cd_ascii_to_88591);
8666 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8668 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8669 if (cd_88591_to_utf8 != (iconv_t)(-1))
8671 static ICONV_CONST char input[] = "\304";
8672 static char buf[2] = { (char)0xDE, (char)0xAD };
8673 ICONV_CONST char *inptr = input;
8674 size_t inbytesleft = 1;
8676 size_t outbytesleft = 1;
8677 size_t res = iconv (cd_88591_to_utf8,
8678 &inptr, &inbytesleft,
8679 &outptr, &outbytesleft);
8680 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8682 iconv_close (cd_88591_to_utf8);
8685 #if 0 /* This bug could be worked around by the caller. */
8686 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8688 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8689 if (cd_88591_to_utf8 != (iconv_t)(-1))
8691 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8693 ICONV_CONST char *inptr = input;
8694 size_t inbytesleft = strlen (input);
8696 size_t outbytesleft = sizeof (buf);
8697 size_t res = iconv (cd_88591_to_utf8,
8698 &inptr, &inbytesleft,
8699 &outptr, &outbytesleft);
8702 iconv_close (cd_88591_to_utf8);
8706 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8708 if (/* Try standardized names. */
8709 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
8710 /* Try IRIX, OSF/1 names. */
8711 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
8712 /* Try AIX names. */
8713 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
8714 /* Try HP-UX names. */
8715 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
8723 if ac_fn_c_try_run "$LINENO"; then :
8724 am_cv_func_iconv_works=yes
8726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8727 conftest.$ac_objext conftest.beam conftest.$ac_ext
8730 test "$am_cv_func_iconv_works" = no || break
8732 LIBS="$am_save_LIBS"
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8736 $as_echo "$am_cv_func_iconv_works" >&6; }
8737 case "$am_cv_func_iconv_works" in
8738 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8739 *) am_func_iconv=yes ;;
8742 am_func_iconv=no am_cv_lib_iconv=no
8744 if test "$am_func_iconv" = yes; then
8746 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8749 if test "$am_cv_lib_iconv" = yes; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8751 $as_echo_n "checking how to link with libiconv... " >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8753 $as_echo "$LIBICONV" >&6; }
8755 CPPFLAGS="$am_save_CPPFLAGS"
8772 acl_save_prefix="$prefix"
8773 prefix="$acl_final_prefix"
8774 acl_save_exec_prefix="$exec_prefix"
8775 exec_prefix="$acl_final_exec_prefix"
8777 eval additional_includedir=\"$includedir\"
8778 eval additional_libdir=\"$libdir\"
8780 exec_prefix="$acl_save_exec_prefix"
8781 prefix="$acl_save_prefix"
8784 # Check whether --with-libintl-prefix was given.
8785 if test "${with_libintl_prefix+set}" = set; then :
8786 withval=$with_libintl_prefix;
8787 if test "X$withval" = "Xno"; then
8790 if test "X$withval" = "X"; then
8792 acl_save_prefix="$prefix"
8793 prefix="$acl_final_prefix"
8794 acl_save_exec_prefix="$exec_prefix"
8795 exec_prefix="$acl_final_exec_prefix"
8797 eval additional_includedir=\"$includedir\"
8798 eval additional_libdir=\"$libdir\"
8800 exec_prefix="$acl_save_exec_prefix"
8801 prefix="$acl_save_prefix"
8804 additional_includedir="$withval/include"
8805 additional_libdir="$withval/$acl_libdirstem"
8806 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8807 && ! test -d "$withval/$acl_libdirstem"; then
8808 additional_libdir="$withval/$acl_libdirstem2"
8822 names_already_handled=
8823 names_next_round='intl '
8824 while test -n "$names_next_round"; do
8825 names_this_round="$names_next_round"
8827 for name in $names_this_round; do
8829 for n in $names_already_handled; do
8830 if test "$n" = "$name"; then
8835 if test -z "$already_handled"; then
8836 names_already_handled="$names_already_handled $name"
8837 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8838 eval value=\"\$HAVE_LIB$uppername\"
8839 if test -n "$value"; then
8840 if test "$value" = yes; then
8841 eval value=\"\$LIB$uppername\"
8842 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8843 eval value=\"\$LTLIB$uppername\"
8844 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8853 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8854 if test -n "$acl_shlibext"; then
8855 shrext=".$acl_shlibext" # typically: shrext=.so
8859 if test $use_additional = yes; then
8860 dir="$additional_libdir"
8861 if test -n "$acl_shlibext"; then
8862 if test -f "$dir/$libname$shrext"; then
8864 found_so="$dir/$libname$shrext"
8866 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8867 ver=`(cd "$dir" && \
8868 for f
in "$libname$shrext".
*; do echo "$f"; done \
8869 |
sed -e "s,^$libname$shrext\\\\.,," \
8870 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8871 |
sed 1q
) 2>/dev
/null
`
8872 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8874 found_so="$dir/$libname$shrext.$ver"
8877 eval library_names=\"$acl_library_names_spec\"
8878 for f in $library_names; do
8879 if test -f "$dir/$f"; then
8888 if test "X$found_dir" = "X"; then
8889 if test -f "$dir/$libname.$acl_libext"; then
8891 found_a="$dir/$libname.$acl_libext"
8894 if test "X$found_dir" != "X"; then
8895 if test -f "$dir/$libname.la"; then
8896 found_la="$dir/$libname.la"
8900 if test "X$found_dir" = "X"; then
8901 for x in $LDFLAGS $LTLIBINTL; do
8903 acl_save_prefix="$prefix"
8904 prefix="$acl_final_prefix"
8905 acl_save_exec_prefix="$exec_prefix"
8906 exec_prefix="$acl_final_exec_prefix"
8908 exec_prefix="$acl_save_exec_prefix"
8909 prefix="$acl_save_prefix"
8913 dir=`echo "X$x" |
sed -e 's/^X-L//'`
8914 if test -n "$acl_shlibext"; then
8915 if test -f "$dir/$libname$shrext"; then
8917 found_so="$dir/$libname$shrext"
8919 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8920 ver=`(cd "$dir" && \
8921 for f
in "$libname$shrext".
*; do echo "$f"; done \
8922 |
sed -e "s,^$libname$shrext\\\\.,," \
8923 |
sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8924 |
sed 1q
) 2>/dev
/null
`
8925 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8927 found_so="$dir/$libname$shrext.$ver"
8930 eval library_names=\"$acl_library_names_spec\"
8931 for f in $library_names; do
8932 if test -f "$dir/$f"; then
8941 if test "X$found_dir" = "X"; then
8942 if test -f "$dir/$libname.$acl_libext"; then
8944 found_a="$dir/$libname.$acl_libext"
8947 if test "X$found_dir" != "X"; then
8948 if test -f "$dir/$libname.la"; then
8949 found_la="$dir/$libname.la"
8954 if test "X$found_dir" != "X"; then
8959 if test "X$found_dir" != "X"; then
8960 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8961 if test "X$found_so" != "X"; then
8962 if test "$enable_rpath" = no \
8963 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8964 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8965 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8968 for x in $ltrpathdirs; do
8969 if test "X$x" = "X$found_dir"; then
8974 if test -z "$haveit"; then
8975 ltrpathdirs="$ltrpathdirs $found_dir"
8977 if test "$acl_hardcode_direct" = yes; then
8978 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8980 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8981 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8983 for x in $rpathdirs; do
8984 if test "X$x" = "X$found_dir"; then
8989 if test -z "$haveit"; then
8990 rpathdirs="$rpathdirs $found_dir"
8994 for x in $LDFLAGS $LIBINTL; do
8996 acl_save_prefix="$prefix"
8997 prefix="$acl_final_prefix"
8998 acl_save_exec_prefix="$exec_prefix"
8999 exec_prefix="$acl_final_exec_prefix"
9001 exec_prefix="$acl_save_exec_prefix"
9002 prefix="$acl_save_prefix"
9004 if test "X$x" = "X-L$found_dir"; then
9009 if test -z "$haveit"; then
9010 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9012 if test "$acl_hardcode_minus_L" != no; then
9013 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9015 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9021 if test "X$found_a" != "X"; then
9022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9024 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9027 additional_includedir=
9028 case "$found_dir" in
9029 */$acl_libdirstem | */$acl_libdirstem/)
9030 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9031 if test "$name" = 'intl'; then
9032 LIBINTL_PREFIX="$basedir"
9034 additional_includedir="$basedir/include"
9036 */$acl_libdirstem2 | */$acl_libdirstem2/)
9037 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9038 if test "$name" = 'intl'; then
9039 LIBINTL_PREFIX="$basedir"
9041 additional_includedir="$basedir/include"
9044 if test "X$additional_includedir" != "X"; then
9045 if test "X$additional_includedir" != "X/usr/include"; then
9047 if test "X$additional_includedir" = "X/usr/local/include"; then
9048 if test -n "$GCC"; then
9050 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9054 if test -z "$haveit"; then
9055 for x in $CPPFLAGS $INCINTL; do
9057 acl_save_prefix="$prefix"
9058 prefix="$acl_final_prefix"
9059 acl_save_exec_prefix="$exec_prefix"
9060 exec_prefix="$acl_final_exec_prefix"
9062 exec_prefix="$acl_save_exec_prefix"
9063 prefix="$acl_save_prefix"
9065 if test "X$x" = "X-I$additional_includedir"; then
9070 if test -z "$haveit"; then
9071 if test -d "$additional_includedir"; then
9072 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9078 if test -n "$found_la"; then
9079 save_libdir="$libdir"
9081 */* | *\\*) . "$found_la" ;;
9082 *) . "./$found_la" ;;
9084 libdir="$save_libdir"
9085 for dep in $dependency_libs; do
9088 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
9089 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9090 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9092 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9093 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9094 if test -n "$GCC"; then
9096 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9100 if test -z "$haveit"; then
9102 for x in $LDFLAGS $LIBINTL; do
9104 acl_save_prefix="$prefix"
9105 prefix="$acl_final_prefix"
9106 acl_save_exec_prefix="$exec_prefix"
9107 exec_prefix="$acl_final_exec_prefix"
9109 exec_prefix="$acl_save_exec_prefix"
9110 prefix="$acl_save_prefix"
9112 if test "X$x" = "X-L$additional_libdir"; then
9117 if test -z "$haveit"; then
9118 if test -d "$additional_libdir"; then
9119 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9123 for x in $LDFLAGS $LTLIBINTL; do
9125 acl_save_prefix="$prefix"
9126 prefix="$acl_final_prefix"
9127 acl_save_exec_prefix="$exec_prefix"
9128 exec_prefix="$acl_final_exec_prefix"
9130 exec_prefix="$acl_save_exec_prefix"
9131 prefix="$acl_save_prefix"
9133 if test "X$x" = "X-L$additional_libdir"; then
9138 if test -z "$haveit"; then
9139 if test -d "$additional_libdir"; then
9140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9147 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
9148 if test "$enable_rpath" != no; then
9150 for x in $rpathdirs; do
9151 if test "X$x" = "X$dir"; then
9156 if test -z "$haveit"; then
9157 rpathdirs="$rpathdirs $dir"
9160 for x in $ltrpathdirs; do
9161 if test "X$x" = "X$dir"; then
9166 if test -z "$haveit"; then
9167 ltrpathdirs="$ltrpathdirs $dir"
9172 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
9175 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9178 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9179 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9185 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9186 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9192 if test "X$rpathdirs" != "X"; then
9193 if test -n "$acl_hardcode_libdir_separator"; then
9195 for found_dir in $rpathdirs; do
9196 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9198 acl_save_libdir="$libdir"
9200 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9201 libdir="$acl_save_libdir"
9202 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9204 for found_dir in $rpathdirs; do
9205 acl_save_libdir="$libdir"
9207 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9208 libdir="$acl_save_libdir"
9209 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9213 if test "X$ltrpathdirs" != "X"; then
9214 for found_dir in $ltrpathdirs; do
9215 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9225 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9226 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9227 $as_echo_n "(cached) " >&6
9229 gt_save_CPPFLAGS="$CPPFLAGS"
9230 CPPFLAGS="$CPPFLAGS $INCINTL"
9231 gt_save_LIBS="$LIBS"
9232 LIBS="$LIBS $LIBINTL"
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9236 #include <libintl.h>
9237 $gt_revision_test_code
9238 extern int _nl_msg_cat_cntr;
9243 const char *_nl_expand_alias (const char *);
9249 bindtextdomain ("", "");
9250 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9256 if ac_fn_c_try_link "$LINENO"; then :
9257 eval "$gt_func_gnugettext_libintl=yes"
9259 eval "$gt_func_gnugettext_libintl=no"
9261 rm -f core conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9264 LIBS="$LIBS $LIBICONV"
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9268 #include <libintl.h>
9269 $gt_revision_test_code
9270 extern int _nl_msg_cat_cntr;
9275 const char *_nl_expand_alias (const char *);
9281 bindtextdomain ("", "");
9282 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9288 if ac_fn_c_try_link "$LINENO"; then :
9289 LIBINTL="$LIBINTL $LIBICONV"
9290 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9291 eval "$gt_func_gnugettext_libintl=yes"
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9297 CPPFLAGS="$gt_save_CPPFLAGS"
9298 LIBS="$gt_save_LIBS"
9300 eval ac_res=\$$gt_func_gnugettext_libintl
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9302 $as_echo "$ac_res" >&6; }
9305 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9306 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9307 && test "$PACKAGE" != gettext-runtime \
9308 && test "$PACKAGE" != gettext-tools; }; then
9309 gt_use_preinstalled_gnugettext=yes
9318 if test -n "$INTL_MACOSX_LIBS"; then
9319 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9320 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9321 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9322 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9326 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9327 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9329 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9337 $as_echo_n "checking whether to use NLS... " >&6; }
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9339 $as_echo "$USE_NLS" >&6; }
9340 if test "$USE_NLS" = "yes"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9342 $as_echo_n "checking where the gettext function comes from... " >&6; }
9343 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9344 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9345 gt_source="external libintl"
9350 gt_source="included intl directory"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9353 $as_echo "$gt_source" >&6; }
9356 if test "$USE_NLS" = "yes"; then
9358 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9359 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9361 $as_echo_n "checking how to link with libintl... " >&6; }
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9363 $as_echo "$LIBINTL" >&6; }
9365 for element in $INCINTL; do
9367 for x in $CPPFLAGS; do
9369 acl_save_prefix="$prefix"
9370 prefix="$acl_final_prefix"
9371 acl_save_exec_prefix="$exec_prefix"
9372 exec_prefix="$acl_final_exec_prefix"
9374 exec_prefix="$acl_save_exec_prefix"
9375 prefix="$acl_save_prefix"
9377 if test "X$x" = "X$element"; then
9382 if test -z "$haveit"; then
9383 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9390 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9393 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9411 if test "x$GMSGFMT" = "x:"; then
9412 as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5
9415 # We want the 'PYTHON' varible to be python version 2. We also want
9416 # our custom 'PYTHON3' varible to be python version 3.
9418 # First, figure out what version of python is in the executable named
9419 # 'python'. On most systems that is python version 2, but on arch
9420 # linux that is python version 3.
9421 # Extract the first word of "python", so it can be a program name with args.
9422 set dummy python; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if ${ac_cv_path_PYTHON_UNKNOWN+:} false; then :
9426 $as_echo_n "(cached) " >&6
9428 case $PYTHON_UNKNOWN in
9430 ac_cv_path_PYTHON_UNKNOWN="$PYTHON_UNKNOWN" # Let the user override the test with a path.
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9440 ac_cv_path_PYTHON_UNKNOWN="$as_dir/$ac_word$ac_exec_ext"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9448 test -z "$ac_cv_path_PYTHON_UNKNOWN" && ac_cv_path_PYTHON_UNKNOWN="no"
9452 PYTHON_UNKNOWN=$ac_cv_path_PYTHON_UNKNOWN
9453 if test -n "$PYTHON_UNKNOWN"; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_UNKNOWN" >&5
9455 $as_echo "$PYTHON_UNKNOWN" >&6; }
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9462 if test "x$PYTHON_UNKNOWN" != "xno"; then
9463 # OK, we found 'python'. What version is it?
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON_UNKNOWN is version 2 or 3" >&5
9465 $as_echo_n "checking whether $PYTHON_UNKNOWN is version 2 or 3... " >&6; }
9466 if ${ac_cv_python_unknown_version+:} false; then :
9467 $as_echo_n "(cached) " >&6
9469 ac_cv_python_unknown_version=`$PYTHON_UNKNOWN -c "import sys; sys.stdout.write(sys.version[:3][0])"`
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_unknown_version" >&5
9472 $as_echo "$ac_cv_python_unknown_version" >&6; }
9475 # Now we'll update the _AM_PYTHON_INTERPRETER_LIST variable (which
9476 # AM_PATH_PYTHON uses) to only be version 2 versions of python. Note
9477 # that the m4_define happens when autoconf is run, but the
9478 # FIRST_PYTHON_INTERPRETER variable expansion will happen when the
9479 # user runs configure.
9480 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$ac_cv_python_unknown_version" = "x2"; then
9481 FIRST_PYTHON_INTERPRETER=python
9483 FIRST_PYTHON_INTERPRETER=python2
9487 # Now we can call AM_PATH_PYTHON to find python version 2.6+ (and
9495 if test -n "$PYTHON"; then
9496 # If the user set $PYTHON, use it and don't search something else.
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
9498 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
9500 # split strings by '.' and convert to numeric. Append some zeros
9501 # because we need at least 4 digits for the hex conversion.
9502 # map returns an iterator in Python 3.0 and a list in 2.x
9503 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
9505 # xrange is not present in Python 3.0 and range returns an iterator
9506 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
9507 sys.exit(sys.hexversion < minverhex)"
9508 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
9509 ($PYTHON -c "$prog") >&5 2>&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; then :
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9514 $as_echo "yes" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9518 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
9520 am_display_PYTHON=$PYTHON
9522 # Otherwise, try each interpreter until we find one that satisfies
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
9525 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
9526 if ${am_cv_pathless_PYTHON+:} false; then :
9527 $as_echo_n "(cached) " >&6
9530 for am_cv_pathless_PYTHON in $FIRST_PYTHON_INTERPRETER python2 python2.7 python2.6 none; do
9531 test "$am_cv_pathless_PYTHON" = none && break
9533 # split strings by '.' and convert to numeric. Append some zeros
9534 # because we need at least 4 digits for the hex conversion.
9535 # map returns an iterator in Python 3.0 and a list in 2.x
9536 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
9538 # xrange is not present in Python 3.0 and range returns an iterator
9539 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
9540 sys.exit(sys.hexversion < minverhex)"
9541 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
9542 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; then :
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
9551 $as_echo "$am_cv_pathless_PYTHON" >&6; }
9552 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
9553 if test "$am_cv_pathless_PYTHON" = none; then
9556 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
9557 set dummy $am_cv_pathless_PYTHON; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if ${ac_cv_path_PYTHON+:} false; then :
9561 $as_echo_n "(cached) " >&6
9565 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 PYTHON=$ac_cv_path_PYTHON
9587 if test -n "$PYTHON"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9589 $as_echo "$PYTHON" >&6; }
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9597 am_display_PYTHON=$am_cv_pathless_PYTHON
9601 if test "$PYTHON" = :; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
9607 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
9608 if ${am_cv_python_version+:} false; then :
9609 $as_echo_n "(cached) " >&6
9611 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
9614 $as_echo "$am_cv_python_version" >&6; }
9615 PYTHON_VERSION=$am_cv_python_version
9619 PYTHON_PREFIX='${prefix}'
9621 PYTHON_EXEC_PREFIX='${exec_prefix}'
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
9626 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
9627 if ${am_cv_python_platform+:} false; then :
9628 $as_echo_n "(cached) " >&6
9630 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
9633 $as_echo "$am_cv_python_platform" >&6; }
9634 PYTHON_PLATFORM=$am_cv_python_platform
9637 # Just factor out some code duplication.
9638 am_python_setup_sysconfig="\
9640 # Prefer sysconfig over distutils.sysconfig, for better compatibility
9641 # with python 3.x. See automake bug#10227.
9645 can_use_sysconfig = 0
9647 can_use_sysconfig = 1
9648 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
9649 # <https://github.com/pypa/virtualenv/issues/118>
9651 from platform import python_implementation
9652 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
9653 can_use_sysconfig = 0
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
9659 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
9660 if ${am_cv_python_pythondir+:} false; then :
9661 $as_echo_n "(cached) " >&6
9663 if test "x$prefix" = xNONE
9665 am_py_prefix=$ac_default_prefix
9667 am_py_prefix=$prefix
9669 am_cv_python_pythondir=`$PYTHON -c "
9670 $am_python_setup_sysconfig
9671 if can_use_sysconfig:
9672 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
9674 from distutils import sysconfig
9675 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
9676 sys.stdout.write(sitedir)"`
9677 case $am_cv_python_pythondir in
9679 am__strip_prefix=`echo "$am_py_prefix" |
sed 's|.|.|g'`
9680 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" |
sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
9683 case $am_py_prefix in
9686 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
9694 $as_echo "$am_cv_python_pythondir" >&6; }
9695 pythondir=$am_cv_python_pythondir
9699 pkgpythondir=\${pythondir}/$PACKAGE
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
9703 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
9704 if ${am_cv_python_pyexecdir+:} false; then :
9705 $as_echo_n "(cached) " >&6
9707 if test "x$exec_prefix" = xNONE
9709 am_py_exec_prefix=$am_py_prefix
9711 am_py_exec_prefix=$exec_prefix
9713 am_cv_python_pyexecdir=`$PYTHON -c "
9714 $am_python_setup_sysconfig
9715 if can_use_sysconfig:
9716 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
9718 from distutils import sysconfig
9719 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
9720 sys.stdout.write(sitedir)"`
9721 case $am_cv_python_pyexecdir in
9722 $am_py_exec_prefix*)
9723 am__strip_prefix=`echo "$am_py_exec_prefix" |
sed 's|.|.|g'`
9724 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" |
sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
9727 case $am_py_exec_prefix in
9730 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
9738 $as_echo "$am_cv_python_pyexecdir" >&6; }
9739 pyexecdir=$am_cv_python_pyexecdir
9743 pkgpyexecdir=\${pyexecdir}/$PACKAGE
9751 # Now let's try to find python version 3.
9752 if test "x$PYTHON_UNKNOWN" != "xno" -a "x$python_unknown_version" = "x3"; then
9753 # Extract the first word of "python", so it can be a program name with args.
9754 set dummy python; ac_word=$2
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756 $as_echo_n "checking for $ac_word... " >&6; }
9757 if ${ac_cv_path_PYTHON3+:} false; then :
9758 $as_echo_n "(cached) " >&6
9762 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 PYTHON3=$ac_cv_path_PYTHON3
9784 if test -n "$PYTHON3"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9786 $as_echo "$PYTHON3" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9794 for ac_prog in python3 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0
9796 # Extract the first word of "$ac_prog", so it can be a program name with args.
9797 set dummy $ac_prog; ac_word=$2
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799 $as_echo_n "checking for $ac_word... " >&6; }
9800 if ${ac_cv_path_PYTHON3+:} false; then :
9801 $as_echo_n "(cached) " >&6
9805 ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815 ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 PYTHON3=$ac_cv_path_PYTHON3
9827 if test -n "$PYTHON3"; then
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
9829 $as_echo "$PYTHON3" >&6; }
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9836 test -n "$PYTHON3" && break
9841 # If we found python version 3, set up the other variables for python
9842 # version 3 that AM_PATH_PYTHON sets up for python version 2.
9843 if test -n "$PYTHON3"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 version" >&5
9845 $as_echo_n "checking for python3 version... " >&6; }
9846 if ${ac_cv_python3_version+:} false; then :
9847 $as_echo_n "(cached) " >&6
9849 ac_cv_python3_version=`$PYTHON3 -c "import sys; sys.stdout.write(sys.version[:3])"`
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version" >&5
9852 $as_echo "$ac_cv_python3_version" >&6; }
9853 PYTHON3_VERSION=$python3_version
9855 PYTHON3_PREFIX='${prefix}'
9857 PYTHON3_EXEC_PREFIX='${exec_prefix}'
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 platform" >&5
9860 $as_echo_n "checking for python3 platform... " >&6; }
9861 if ${ac_cv_python3_platform+:} false; then :
9862 $as_echo_n "(cached) " >&6
9864 ac_cv_python3_platform=`$PYTHON3 -c "import sys; sys.stdout.write(sys.platform)"`
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_platform" >&5
9867 $as_echo "$ac_cv_python3_platform" >&6; }
9868 PYTHON3_PLATFORM=$ac_cv_python3_platform
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 script directory" >&5
9872 $as_echo_n "checking for python3 script directory... " >&6; }
9873 if ${ac_cv_python3_dir+:} false; then :
9874 $as_echo_n "(cached) " >&6
9876 ac_cv_python3_dir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(0,0,prefix='$PYTHON3_PREFIX'))"`
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_dir" >&5
9879 $as_echo "$ac_cv_python3_dir" >&6; }
9880 python3dir=$am_cv_python3_dir
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 extension module directory" >&5
9884 $as_echo_n "checking for python3 extension module directory... " >&6; }
9885 if ${ac_cv_py3execdir+:} false; then :
9886 $as_echo_n "(cached) " >&6
9888 ac_cv_py3execdir=`$PYTHON3 -c "import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(1,0,prefix='$PYTHON3_EXEC_PREFIX'))"`
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_py3execdir" >&5
9891 $as_echo "$ac_cv_py3execdir" >&6; }
9892 py3execdir=$am_cv_py3execdir
9896 if test "${enable_prologues+set}" != set; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5
9898 $as_echo_n "checking to see if prologue searching should be the default... " >&6; }
9899 if { echo '#if __i386__ == 1 && __GNUC__ < 4'
9901 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9902 enable_prologues=yes
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9904 $as_echo "yes" >&6; }
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 $as_echo "no" >&6; }
9910 # Check whether --enable-prologues was given.
9911 if test "${enable_prologues+set}" = set; then :
9912 enableval=$enable_prologues;
9913 if test "$enable_prologues" = yes; then
9915 $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h
9922 if test "${enable_sdt_probes+set}" != set; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5
9924 $as_echo_n "checking to see if sdt probes should be the default... " >&6; }
9925 if { echo '#if __GNUC__ < 4'
9927 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9928 enable_sdt_probes=no
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9933 $as_echo "yes" >&6; }
9936 # Check whether --enable-sdt-probes was given.
9937 if test "${enable_sdt_probes+set}" = set; then :
9938 enableval=$enable_sdt_probes;
9941 if test "x$enable_sdt_probes" != xno; then :
9944 $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h
9950 ax_cxx_compile_cxx11_required=false
9952 ac_cpp='$CXXCPP $CPPFLAGS'
9953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
9958 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
9959 if ${ax_cv_cxx_compile_cxx11+:} false; then :
9960 $as_echo_n "(cached) " >&6
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9966 // If the compiler admits that it is not ready for C++11, why torture it?
9967 // Hopefully, this will speed up the test.
9971 #error "This is not a C++ compiler"
9973 #elif __cplusplus < 201103L
9975 #error "This is not a C++11 compiler"
9982 namespace test_static_assert
9985 template <typename T>
9988 static_assert(sizeof(int) <= sizeof(T), "not big enough");
9993 namespace test_final_override
10001 struct Derived : public Base
10003 virtual void f() override {}
10008 namespace test_double_right_angle_brackets
10011 template < typename T >
10014 typedef check<void> single_type;
10015 typedef check<check<void>> double_type;
10016 typedef check<check<check<void>>> triple_type;
10017 typedef check<check<check<check<void>>>> quadruple_type;
10021 namespace test_decltype
10034 namespace test_type_deduction
10037 template < typename T1, typename T2 >
10040 static const bool value = false;
10043 template < typename T >
10044 struct is_same<T, T>
10046 static const bool value = true;
10049 template < typename T1, typename T2 >
10051 add(T1 a1, T2 a2) -> decltype(a1 + a2)
10057 test(const int c, volatile int v)
10059 static_assert(is_same<int, decltype(0)>::value == true, "");
10060 static_assert(is_same<int, decltype(c)>::value == false, "");
10061 static_assert(is_same<int, decltype(v)>::value == false, "");
10064 auto sumi = ac + av + 'x';
10065 auto sumf = ac + av + 1.0;
10066 static_assert(is_same<int, decltype(ac)>::value == true, "");
10067 static_assert(is_same<int, decltype(av)>::value == true, "");
10068 static_assert(is_same<int, decltype(sumi)>::value == true, "");
10069 static_assert(is_same<int, decltype(sumf)>::value == false, "");
10070 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
10071 return (sumf > 0.0) ? sumi : add(c, v);
10076 namespace test_noexcept
10079 int f() { return 0; }
10080 int g() noexcept { return 0; }
10082 static_assert(noexcept(f()) == false, "");
10083 static_assert(noexcept(g()) == true, "");
10087 namespace test_constexpr
10090 template < typename CharT >
10091 unsigned long constexpr
10092 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
10094 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
10097 template < typename CharT >
10098 unsigned long constexpr
10099 strlen_c(const CharT *const s) noexcept
10101 return strlen_c_r(s, 0UL);
10104 static_assert(strlen_c("") == 0UL, "");
10105 static_assert(strlen_c("1") == 1UL, "");
10106 static_assert(strlen_c("example") == 7UL, "");
10107 static_assert(strlen_c("another\0example") == 7UL, "");
10111 namespace test_rvalue_references
10117 static constexpr int value = N;
10120 answer<1> f(int&) { return answer<1>(); }
10121 answer<2> f(const int&) { return answer<2>(); }
10122 answer<3> f(int&&) { return answer<3>(); }
10129 static_assert(decltype(f(i))::value == 1, "");
10130 static_assert(decltype(f(c))::value == 2, "");
10131 static_assert(decltype(f(0))::value == 3, "");
10136 namespace test_uniform_initialization
10141 static const int zero {};
10142 static const int one {1};
10145 static_assert(test::zero == 0, "");
10146 static_assert(test::one == 1, "");
10150 namespace test_lambdas
10156 auto lambda1 = [](){};
10157 auto lambda2 = lambda1;
10165 auto a = [](int i, int j){ return i + j; }(1, 2);
10166 auto b = []() -> int { return '0'; }();
10167 auto c = [=](){ return a + b; }();
10168 auto d = [&](){ return c; }();
10169 auto e = [a, &b](int x) mutable {
10170 const auto identity = [](int y){ return y; };
10171 for (auto i = 0; i < a; ++i)
10173 return x + identity(a + b);
10175 return a + b + c + d + e;
10181 const auto nullary = [](){ return 0; };
10182 const auto unary = [](int x){ return x; };
10183 using nullary_t = decltype(nullary);
10184 using unary_t = decltype(unary);
10185 const auto higher1st = [](nullary_t f){ return f(); };
10186 const auto higher2nd = [unary](nullary_t f1){
10187 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
10189 return higher1st(nullary) + higher2nd(nullary)(unary);
10194 namespace test_variadic_templates
10200 template <int N0, int... N1toN>
10201 struct sum<N0, N1toN...>
10203 static constexpr auto value = N0 + sum<N1toN...>::value;
10209 static constexpr auto value = 0;
10212 static_assert(sum<>::value == 0, "");
10213 static_assert(sum<1>::value == 1, "");
10214 static_assert(sum<23>::value == 23, "");
10215 static_assert(sum<1, 2>::value == 3, "");
10216 static_assert(sum<5, 5, 11>::value == 21, "");
10217 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
10221 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
10222 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
10223 // because of this.
10224 namespace test_template_alias_sfinae
10229 template<typename T>
10230 using member = typename T::member_type;
10232 template<typename T>
10235 template<typename T>
10236 void func(member<T>*) {}
10240 void test() { func<foo>(0); }
10244 } // namespace cxx11
10246 #endif // __cplusplus >= 201103L
10251 if ac_fn_cxx_try_compile "$LINENO"; then :
10252 ax_cv_cxx_compile_cxx11=yes
10254 ax_cv_cxx_compile_cxx11=no
10256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
10259 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
10260 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
10266 if test x$ac_success = xno; then
10267 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
10268 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" |
$as_tr_sh`
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
10270 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
10271 if eval \${$cachevar+:} false; then :
10272 $as_echo_n "(cached) " >&6
10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10280 // If the compiler admits that it is not ready for C++11, why torture it?
10281 // Hopefully, this will speed up the test.
10283 #ifndef __cplusplus
10285 #error "This is not a C++ compiler"
10287 #elif __cplusplus < 201103L
10289 #error "This is not a C++11 compiler"
10296 namespace test_static_assert
10299 template <typename T>
10302 static_assert(sizeof(int) <= sizeof(T), "not big enough");
10307 namespace test_final_override
10312 virtual void f() {}
10315 struct Derived : public Base
10317 virtual void f() override {}
10322 namespace test_double_right_angle_brackets
10325 template < typename T >
10328 typedef check<void> single_type;
10329 typedef check<check<void>> double_type;
10330 typedef check<check<check<void>>> triple_type;
10331 typedef check<check<check<check<void>>>> quadruple_type;
10335 namespace test_decltype
10348 namespace test_type_deduction
10351 template < typename T1, typename T2 >
10354 static const bool value = false;
10357 template < typename T >
10358 struct is_same<T, T>
10360 static const bool value = true;
10363 template < typename T1, typename T2 >
10365 add(T1 a1, T2 a2) -> decltype(a1 + a2)
10371 test(const int c, volatile int v)
10373 static_assert(is_same<int, decltype(0)>::value == true, "");
10374 static_assert(is_same<int, decltype(c)>::value == false, "");
10375 static_assert(is_same<int, decltype(v)>::value == false, "");
10378 auto sumi = ac + av + 'x';
10379 auto sumf = ac + av + 1.0;
10380 static_assert(is_same<int, decltype(ac)>::value == true, "");
10381 static_assert(is_same<int, decltype(av)>::value == true, "");
10382 static_assert(is_same<int, decltype(sumi)>::value == true, "");
10383 static_assert(is_same<int, decltype(sumf)>::value == false, "");
10384 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
10385 return (sumf > 0.0) ? sumi : add(c, v);
10390 namespace test_noexcept
10393 int f() { return 0; }
10394 int g() noexcept { return 0; }
10396 static_assert(noexcept(f()) == false, "");
10397 static_assert(noexcept(g()) == true, "");
10401 namespace test_constexpr
10404 template < typename CharT >
10405 unsigned long constexpr
10406 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
10408 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
10411 template < typename CharT >
10412 unsigned long constexpr
10413 strlen_c(const CharT *const s) noexcept
10415 return strlen_c_r(s, 0UL);
10418 static_assert(strlen_c("") == 0UL, "");
10419 static_assert(strlen_c("1") == 1UL, "");
10420 static_assert(strlen_c("example") == 7UL, "");
10421 static_assert(strlen_c("another\0example") == 7UL, "");
10425 namespace test_rvalue_references
10431 static constexpr int value = N;
10434 answer<1> f(int&) { return answer<1>(); }
10435 answer<2> f(const int&) { return answer<2>(); }
10436 answer<3> f(int&&) { return answer<3>(); }
10443 static_assert(decltype(f(i))::value == 1, "");
10444 static_assert(decltype(f(c))::value == 2, "");
10445 static_assert(decltype(f(0))::value == 3, "");
10450 namespace test_uniform_initialization
10455 static const int zero {};
10456 static const int one {1};
10459 static_assert(test::zero == 0, "");
10460 static_assert(test::one == 1, "");
10464 namespace test_lambdas
10470 auto lambda1 = [](){};
10471 auto lambda2 = lambda1;
10479 auto a = [](int i, int j){ return i + j; }(1, 2);
10480 auto b = []() -> int { return '0'; }();
10481 auto c = [=](){ return a + b; }();
10482 auto d = [&](){ return c; }();
10483 auto e = [a, &b](int x) mutable {
10484 const auto identity = [](int y){ return y; };
10485 for (auto i = 0; i < a; ++i)
10487 return x + identity(a + b);
10489 return a + b + c + d + e;
10495 const auto nullary = [](){ return 0; };
10496 const auto unary = [](int x){ return x; };
10497 using nullary_t = decltype(nullary);
10498 using unary_t = decltype(unary);
10499 const auto higher1st = [](nullary_t f){ return f(); };
10500 const auto higher2nd = [unary](nullary_t f1){
10501 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
10503 return higher1st(nullary) + higher2nd(nullary)(unary);
10508 namespace test_variadic_templates
10514 template <int N0, int... N1toN>
10515 struct sum<N0, N1toN...>
10517 static constexpr auto value = N0 + sum<N1toN...>::value;
10523 static constexpr auto value = 0;
10526 static_assert(sum<>::value == 0, "");
10527 static_assert(sum<1>::value == 1, "");
10528 static_assert(sum<23>::value == 23, "");
10529 static_assert(sum<1, 2>::value == 3, "");
10530 static_assert(sum<5, 5, 11>::value == 21, "");
10531 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
10535 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
10536 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
10537 // because of this.
10538 namespace test_template_alias_sfinae
10543 template<typename T>
10544 using member = typename T::member_type;
10546 template<typename T>
10549 template<typename T>
10550 void func(member<T>*) {}
10554 void test() { func<foo>(0); }
10558 } // namespace cxx11
10560 #endif // __cplusplus >= 201103L
10565 if ac_fn_cxx_try_compile "$LINENO"; then :
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 eval ac_res=\$$cachevar
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10575 $as_echo "$ac_res" >&6; }
10576 if eval test x\$$cachevar = xyes; then
10584 ac_cpp='$CPP $CPPFLAGS'
10585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10589 if test x$ax_cxx_compile_cxx11_required = xtrue; then
10590 if test x$ac_success = xno; then
10591 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
10594 if test x$ac_success = xno; then
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
10597 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
10601 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
10606 if test "x$HAVE_CXX11" != x1; then :
10609 ac_cpp='$CXXCPP $CPPFLAGS'
10610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -std=c++0x" >&5
10615 $as_echo_n "checking whether C++ compiler accepts -std=c++0x... " >&6; }
10616 if ${ax_cv_check_cxxflags___std_cpp0x+:} false; then :
10617 $as_echo_n "(cached) " >&6
10620 ax_check_save_flags=$CXXFLAGS
10621 CXXFLAGS="$CXXFLAGS -std=c++0x"
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10633 if ac_fn_cxx_try_compile "$LINENO"; then :
10634 ax_cv_check_cxxflags___std_cpp0x=yes
10636 ax_cv_check_cxxflags___std_cpp0x=no
10638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10639 CXXFLAGS=$ax_check_save_flags
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___std_cpp0x" >&5
10642 $as_echo "$ax_cv_check_cxxflags___std_cpp0x" >&6; }
10643 if test "x$ax_cv_check_cxxflags___std_cpp0x" = xyes; then :
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with -std=c++0x" >&5
10646 $as_echo "$as_me: Compiling with -std=c++0x" >&6;}
10647 CXX="$CXX -std=c++0x"
10652 as_fn_error $? "A compiler with C++11 support is required." "$LINENO" 5
10657 ac_cpp='$CPP $CPPFLAGS'
10658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10665 # Check whether --enable-ssp was given.
10666 if test "${enable_ssp+set}" = set; then :
10667 enableval=$enable_ssp;
10670 if test "x$enable_ssp" != xno; then :
10672 save_CFLAGS="$CFLAGS"
10673 save_CXXFLAGS="$CXXFLAGS"
10674 CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
10675 CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2"
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10680 if ac_fn_c_try_compile "$LINENO"; then :
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
10683 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
10684 CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
10685 CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2"
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
10689 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
10690 CFLAGS="$save_CFLAGS"
10691 CXXFLAGS="$save_CXXFLAGS"
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699 # Compiling without fPIE by default (see PR 9922)
10700 # Check whether --enable-pie was given.
10701 if test "${enable_pie+set}" = set; then :
10702 enableval=$enable_pie;
10705 if test "x$enable_pie" == xyes; then :
10708 PIECXXFLAGS='-fPIE'
10709 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
10710 save_CFLAGS="$CFLAGS"
10711 save_CXXFLAGS="$CXXFLAGS"
10712 save_LDFLAGS="$LDFLAGS"
10713 CFLAGS="$CFLAGS $PIECFLAGS"
10714 CXXFLAGS="$CXXFLAGS $PIECXXFLAGS"
10715 LDFLAGS="$LDFLAGS $PIELDFLAGS"
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10720 if ac_fn_c_try_link "$LINENO"; then :
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
10723 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
10728 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 CFLAGS="$save_CFLAGS"
10737 CXXFLAGS="$save_CXXFLAGS"
10738 LDFLAGS="$save_LDFLAGS"
10745 # Check whether --enable-sqlite was given.
10746 if test "${enable_sqlite+set}" = set; then :
10747 enableval=$enable_sqlite;
10749 enable_sqlite=check
10752 if test "x$enable_sqlite" != xno; then :
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
10754 $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
10755 if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
10756 $as_echo_n "(cached) " >&6
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-lsqlite3 $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10769 char sqlite3_open ();
10773 return sqlite3_open ();
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_sqlite3_sqlite3_open=yes
10781 ac_cv_lib_sqlite3_sqlite3_open=no
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
10788 $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
10789 if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
10790 sqlite3_LIBS=-lsqlite3
10793 $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h
10796 if test "x$enable_sqlite" != xcheck; then
10797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10799 as_fn_error $? "--enable-sqlite was given
, but
test for sqlite failed
10800 See \
`config.log' for more details" "$LINENO" 5; }
10806 # Check whether --enable-translator was given.
10807 if test "${enable_translator+set}" = set; then :
10808 enableval=$enable_translator;
10810 enable_translator="yes"
10813 if test "$enable_translator" == "yes"; then
10814 BUILD_TRANSLATOR_TRUE=
10815 BUILD_TRANSLATOR_FALSE='#'
10817 BUILD_TRANSLATOR_TRUE='#'
10818 BUILD_TRANSLATOR_FALSE=
10822 # Check whether --enable-crash was given.
10823 if test "${enable_crash+set}" = set; then :
10824 enableval=$enable_crash; if test "$enable_crash" != "no"; then
10825 save_CPPFLAGS="$CPPFLAGS"
10826 if test "$enable_crash" != "yes"; then
10827 staplog_CPPFLAGS=-I$enable_crash
10828 CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS"
10831 for ac_header in crash/defs.h
10833 ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" "
10834 #define NR_CPUS 256
10837 if test "x$ac_cv_header_crash_defs_h" = xyes; then :
10838 cat >>confdefs.h <<_ACEOF
10839 #define HAVE_CRASH_DEFS_H 1
10843 as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5
10848 CPPFLAGS="$save_CPPFLAGS"
10854 if test "$enable_crash" != "no"; then
10855 BUILD_CRASHMOD_TRUE=
10856 BUILD_CRASHMOD_FALSE='#'
10858 BUILD_CRASHMOD_TRUE='#'
10859 BUILD_CRASHMOD_FALSE=
10864 # Check whether --enable-docs was given.
10865 if test "${enable_docs+set}" = set; then :
10866 enableval=$enable_docs; enable_docs=$enableval
10868 enable_docs="check"
10871 # Extract the first word of "latex", so it can be a program name with args.
10872 set dummy latex; ac_word=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if ${ac_cv_prog_have_latex+:} false; then :
10876 $as_echo_n "(cached) " >&6
10878 if test -n "$have_latex"; then
10879 ac_cv_prog_have_latex="$have_latex" # Let the user override the test.
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10888 ac_cv_prog_have_latex="yes"
10889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no"
10899 have_latex=$ac_cv_prog_have_latex
10900 if test -n "$have_latex"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5
10902 $as_echo "$have_latex" >&6; }
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10909 # Extract the first word of "dvips", so it can be a program name with args.
10910 set dummy dvips; ac_word=$2
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10912 $as_echo_n "checking for $ac_word... " >&6; }
10913 if ${ac_cv_prog_have_dvips+:} false; then :
10914 $as_echo_n "(cached) " >&6
10916 if test -n "$have_dvips"; then
10917 ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test.
10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920 for as_dir in $PATH
10923 test -z "$as_dir" && as_dir=.
10924 for ac_exec_ext in '' $ac_executable_extensions; do
10925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10926 ac_cv_prog_have_dvips="yes"
10927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no"
10937 have_dvips=$ac_cv_prog_have_dvips
10938 if test -n "$have_dvips"; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5
10940 $as_echo "$have_dvips" >&6; }
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10947 # Extract the first word of "ps2pdf", so it can be a program name with args.
10948 set dummy ps2pdf; ac_word=$2
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950 $as_echo_n "checking for $ac_word... " >&6; }
10951 if ${ac_cv_prog_have_ps2pdf+:} false; then :
10952 $as_echo_n "(cached) " >&6
10954 if test -n "$have_ps2pdf"; then
10955 ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test.
10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10964 ac_cv_prog_have_ps2pdf="yes"
10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no"
10975 have_ps2pdf=$ac_cv_prog_have_ps2pdf
10976 if test -n "$have_ps2pdf"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5
10978 $as_echo "$have_ps2pdf" >&6; }
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10985 if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
10986 if test "$enable_docs" == "yes"; then
10987 as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5
10989 if test "$enable_docs" == "check"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5
10991 $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;}
10994 if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no"; then
10995 building_docs="yes"
10997 if test "$building_docs" == "yes"; then
10999 BUILD_DOCS_FALSE='#'
11001 BUILD_DOCS_TRUE='#'
11007 building_refdocs="no"
11008 # Check whether --enable-refdocs was given.
11009 if test "${enable_refdocs+set}" = set; then :
11010 enableval=$enable_refdocs; enable_refdocs=$enableval
11012 enable_refdocs="check"
11015 if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
11016 as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5
11018 if test "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
11019 building_refdocs="yes"
11021 if test "$building_refdocs" == "yes"; then
11022 BUILD_REFDOCS_TRUE=
11023 BUILD_REFDOCS_FALSE='#'
11025 BUILD_REFDOCS_TRUE='#'
11026 BUILD_REFDOCS_FALSE=
11030 # Extract the first word of "xmlto", so it can be a program name with args.
11031 set dummy xmlto; ac_word=$2
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033 $as_echo_n "checking for $ac_word... " >&6; }
11034 if ${ac_cv_prog_have_xmlto+:} false; then :
11035 $as_echo_n "(cached) " >&6
11037 if test -n "$have_xmlto"; then
11038 ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test.
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11044 test -z "$as_dir" && as_dir=.
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11047 ac_cv_prog_have_xmlto="yes"
11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no"
11058 have_xmlto=$ac_cv_prog_have_xmlto
11059 if test -n "$have_xmlto"; then
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5
11061 $as_echo "$have_xmlto" >&6; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11068 # Extract the first word of "fop", so it can be a program name with args.
11069 set dummy fop; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if ${ac_cv_prog_have_fop+:} false; then :
11073 $as_echo_n "(cached) " >&6
11075 if test -n "$have_fop"; then
11076 ac_cv_prog_have_fop="$have_fop" # Let the user override the test.
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085 ac_cv_prog_have_fop="yes"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no"
11096 have_fop=$ac_cv_prog_have_fop
11097 if test -n "$have_fop"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5
11099 $as_echo "$have_fop" >&6; }
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11106 if test "x${have_fop}" == "xyes"; then
11107 # Due to rhbz505364 / 830266, we must actually test-run fop, not just
11108 # hope that it works.
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5
11110 $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; }
11111 if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113 $as_echo "yes" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5
11116 $as_echo "it's dead, Jim" >&6; }
11119 rm -f dummy-tapsets.pdf
11121 if test "$have_fop" == "yes"; then
11129 if test "$have_xmlto" == "yes"; then
11131 HAVE_XMLTO_FALSE='#'
11133 HAVE_XMLTO_TRUE='#'
11138 building_htmldocs="no"
11139 # Check whether --enable-htmldocs was given.
11140 if test "${enable_htmldocs+set}" = set; then :
11141 enableval=$enable_htmldocs; building_htmldocs=$enableval
11143 building_htmldocs="no"
11146 if test "$have_xmlto" == "no" -a "$building_htmldocs" == "yes"; then
11147 as_fn_error $? "xmlto required for building html documentation" "$LINENO" 5
11150 if test "$building_htmldocs" == "yes"; then
11151 BUILD_HTMLDOCS_TRUE=
11152 BUILD_HTMLDOCS_FALSE='#'
11154 BUILD_HTMLDOCS_TRUE='#'
11155 BUILD_HTMLDOCS_FALSE=
11159 cat > conftest.xml << 'EOF'
11160 <?xml version="1.0" encoding="UTF-8"?>
11161 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
11162 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" >
11164 <bookinfo><title>foo</title></bookinfo>
11165 <chapter id="logging.stp"><title>Logging Tapset</title>
11166 <refentry id="API-log"><refnamediv><refname>log</refname>
11167 <refpurpose>logging</refpurpose></refnamediv>
11168 <refsect1><title>Description</title>
11169 <para>baz</para></refsect1></refentry></chapter>
11173 if test "x${have_xmlto}" == "xyes"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5
11175 $as_echo_n "checking for xmlto --stringparam support... " >&6; }
11176 xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
11177 if test $? == 0; then
11178 have_xmlto_stringparam="yes"
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11180 $as_echo "yes" >&6; }
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11185 rm -f conftest.html
11187 if test "$have_xmlto_stringparam" == "yes"; then
11188 XMLTO_STRINGPARAM_TRUE=
11189 XMLTO_STRINGPARAM_FALSE='#'
11191 XMLTO_STRINGPARAM_TRUE='#'
11192 XMLTO_STRINGPARAM_FALSE=
11199 # Check whether --with-nss was given.
11200 if test "${with_nss+set}" = set; then :
11212 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11213 if test -n "$ac_tool_prefix"; then
11214 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11215 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217 $as_echo_n "checking for $ac_word... " >&6; }
11218 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11219 $as_echo_n "(cached) " >&6
11221 case $PKG_CONFIG in
11223 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227 for as_dir in $PATH
11230 test -z "$as_dir" && as_dir=.
11231 for ac_exec_ext in '' $ac_executable_extensions; do
11232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11233 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11245 if test -n "$PKG_CONFIG"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11247 $as_echo "$PKG_CONFIG" >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11255 if test -z "$ac_cv_path_PKG_CONFIG"; then
11256 ac_pt_PKG_CONFIG=$PKG_CONFIG
11257 # Extract the first word of "pkg-config", so it can be a program name with args.
11258 set dummy pkg-config; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11262 $as_echo_n "(cached) " >&6
11264 case $ac_pt_PKG_CONFIG in
11266 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11288 if test -n "$ac_pt_PKG_CONFIG"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11290 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11296 if test "x$ac_pt_PKG_CONFIG" = x; then
11299 case $cross_compiling:$ac_tool_warned in
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11303 ac_tool_warned=yes ;;
11305 PKG_CONFIG=$ac_pt_PKG_CONFIG
11308 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11312 if test -n "$PKG_CONFIG"; then
11313 _pkg_min_version=0.9.0
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11315 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11316 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11318 $as_echo "yes" >&6; }
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321 $as_echo "no" >&6; }
11325 if test "x$with_nss" != "xno"; then :
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
11330 $as_echo_n "checking for nss... " >&6; }
11332 if test -n "$nss_CFLAGS"; then
11333 pkg_cv_nss_CFLAGS="$nss_CFLAGS"
11334 elif test -n "$PKG_CONFIG"; then
11335 if test -n "$PKG_CONFIG" && \
11336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
11337 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
11339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11340 test $ac_status = 0; }; then
11341 pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev
/null
`
11342 test "x$?" != "x0" && pkg_failed=yes
11349 if test -n "$nss_LIBS"; then
11350 pkg_cv_nss_LIBS="$nss_LIBS"
11351 elif test -n "$PKG_CONFIG"; then
11352 if test -n "$PKG_CONFIG" && \
11353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5
11354 ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5
11356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11357 test $ac_status = 0; }; then
11358 pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev
/null
`
11359 test "x$?" != "x0" && pkg_failed=yes
11369 if test $pkg_failed = yes; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11373 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11374 _pkg_short_errors_supported=yes
11376 _pkg_short_errors_supported=no
11378 if test $_pkg_short_errors_supported = yes; then
11379 nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1`
11381 nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1`
11383 # Put the nasty error message in config.log where it belongs
11384 echo "$nss_PKG_ERRORS" >&5
11387 elif test $pkg_failed = untried; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11392 nss_CFLAGS=$pkg_cv_nss_CFLAGS
11393 nss_LIBS=$pkg_cv_nss_LIBS
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11395 $as_echo "yes" >&6; }
11398 $as_echo "#define HAVE_NSS 1" >>confdefs.h
11407 if test "${have_nss}" = "yes"; then
11417 # Check whether --with-dracutstap was given.
11418 if test "${with_dracutstap+set}" = set; then :
11419 withval=$with_dracutstap;
11422 if test "x$with_dracutstap" != "x"; then :
11423 dracutstap="$with_dracutstap"
11425 dracutstap=/usr/lib/dracut/modules.d/99stap
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: using dracut module directory $dracutstap" >&5
11428 $as_echo "$as_me: using dracut module directory $dracutstap" >&6;}
11431 # Check whether --enable-server was given.
11432 if test "${enable_server+set}" = set; then :
11433 enableval=$enable_server; enable_server=$enableval
11435 enable_server="check"
11439 if test "$enable_server" != "no"; then
11440 if test "x${have_nss}" != "xyes"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5
11442 $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;}
11445 if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then
11447 BUILD_SERVER_FALSE='#'
11449 BUILD_SERVER_TRUE='#'
11450 BUILD_SERVER_FALSE=
11454 if test "${have_nss}" != "yes"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5
11456 $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;}
11460 # Check whether --with-avahi was given.
11461 if test "${with_avahi+set}" = set; then :
11462 withval=$with_avahi;
11466 if test "x$with_avahi" != "xno"; then :
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
11471 $as_echo_n "checking for avahi... " >&6; }
11473 if test -n "$avahi_CFLAGS"; then
11474 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
11475 elif test -n "$PKG_CONFIG"; then
11476 if test -n "$PKG_CONFIG" && \
11477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
11478 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
11480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11481 test $ac_status = 0; }; then
11482 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev
/null
`
11483 test "x$?" != "x0" && pkg_failed=yes
11490 if test -n "$avahi_LIBS"; then
11491 pkg_cv_avahi_LIBS="$avahi_LIBS"
11492 elif test -n "$PKG_CONFIG"; then
11493 if test -n "$PKG_CONFIG" && \
11494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
11495 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
11497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11498 test $ac_status = 0; }; then
11499 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev
/null
`
11500 test "x$?" != "x0" && pkg_failed=yes
11510 if test $pkg_failed = yes; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11515 _pkg_short_errors_supported=yes
11517 _pkg_short_errors_supported=no
11519 if test $_pkg_short_errors_supported = yes; then
11520 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
11522 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
11524 # Put the nasty error message in config.log where it belongs
11525 echo "$avahi_PKG_ERRORS" >&5
11528 elif test $pkg_failed = untried; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530 $as_echo "no" >&6; }
11533 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
11534 avahi_LIBS=$pkg_cv_avahi_LIBS
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11536 $as_echo "yes" >&6; }
11539 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
11548 if test "${have_avahi}" = "yes"; then
11550 HAVE_AVAHI_FALSE='#'
11552 HAVE_AVAHI_TRUE='#'
11557 if test "${have_avahi}" != "yes"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5
11559 $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;}
11564 # Check whether --with-rpm was given.
11565 if test "${with_rpm+set}" = set; then :
11571 if test "$with_rpm" != "no"; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5
11573 $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; }
11574 if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then :
11575 $as_echo_n "(cached) " >&6
11577 ac_check_lib_save_LIBS=$LIBS
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11588 char rpmtsInitIterator ();
11592 return rpmtsInitIterator ();
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 ac_cv_lib_rpm_rpmtsInitIterator=yes
11600 ac_cv_lib_rpm_rpmtsInitIterator=no
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5
11607 $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; }
11608 if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then :
11611 $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h
11613 stap_LIBS="$stap_LIBS -lc -lrpm"
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5
11620 $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; }
11621 if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then :
11622 $as_echo_n "(cached) " >&6
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lrpmio $LIBS"
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11635 char rpmFreeCrypto ();
11639 return rpmFreeCrypto ();
11644 if ac_fn_c_try_link "$LINENO"; then :
11645 ac_cv_lib_rpmio_rpmFreeCrypto=yes
11647 ac_cv_lib_rpmio_rpmFreeCrypto=no
11649 rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5
11654 $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; }
11655 if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then :
11658 $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h
11660 stap_LIBS="$stap_LIBS -lc -lrpmio"
11661 have_librpmio="yes"
11666 if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
11667 as_fn_error $? "cannot find librpm" "$LINENO" 5
11669 if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5
11671 $as_echo "$as_me: WARNING: cannot find librpmio" >&2;}
11675 LIBS_no_readline=$LIBS
11677 have_libreadline="no"
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
11679 $as_echo_n "checking how to link readline libs... " >&6; }
11680 for libtermcap in "" tinfo ncursesw ncurses curses termcap; do
11681 if test -z "$libtermcap"; then
11682 READLINE_LIBS="-lreadline"
11684 READLINE_LIBS="-lreadline -l$libtermcap"
11686 LIBS="$READLINE_LIBS $LIBS_no_readline"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11700 return readline ();
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 have_libreadline="yes"
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 if test "$have_libreadline" = "yes"; then
11714 if test "$have_libreadline" = "no"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11716 $as_echo "none" >&6; }
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
11720 $as_echo "$READLINE_LIBS" >&6; }
11722 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11726 if test "$have_libreadline" == "yes"; then
11727 HAVE_LIBREADLINE_TRUE=
11728 HAVE_LIBREADLINE_FALSE='#'
11730 HAVE_LIBREADLINE_TRUE='#'
11731 HAVE_LIBREADLINE_FALSE=
11735 LIBS=$LIBS_no_readline
11738 # Check whether --with-python3 was given.
11739 if test "${with_python3+set}" = set; then :
11740 withval=$with_python3;
11743 if test "x$with_python3" = "xyes"; then :
11744 if test -z "$PYTHON3"; then :
11745 as_fn_error $? "python version 3 is required" "$LINENO" 5
11747 preferred_python=$PYTHON3
11751 if test "x$PYTHON" = "x:"; then :
11752 as_fn_error $? "python version 2 is required" "$LINENO" 5
11754 preferred_python=$PYTHON
11761 # Check whether --with-elfutils was given.
11762 if test "${with_elfutils+set}" = set; then :
11763 withval=$with_elfutils;
11764 case "$with_elfutils" in
11765 yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;;
11767 *) build_elfutils=yes ;;
11771 if test $build_elfutils = yes; then
11772 BUILD_ELFUTILS_TRUE=
11773 BUILD_ELFUTILS_FALSE='#'
11775 BUILD_ELFUTILS_TRUE='#'
11776 BUILD_ELFUTILS_FALSE=
11779 elfutils_abs_srcdir=`if test $build_elfutils = yes; then :
11780 cd $with_elfutils && pwd
11784 if test $enable_translator = yes; then
11785 if test $build_elfutils = no; then
11786 # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/
11788 # On modern debian/ubuntu, libebl has been merged into libdw
11789 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
11792 $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
11793 if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
11794 $as_echo_n "(cached) " >&6
11796 ac_check_lib_save_LIBS=$LIBS
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11807 char ebl_get_elfmachine ();
11811 return ebl_get_elfmachine ();
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 ac_cv_lib_ebl_ebl_get_elfmachine=yes
11819 ac_cv_lib_ebl_ebl_get_elfmachine=no
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
11826 $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
11827 if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5
11837 $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; }
11838 if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then :
11839 $as_echo_n "(cached) " >&6
11841 ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11852 char dwfl_module_getsym ();
11856 return dwfl_module_getsym ();
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 ac_cv_lib_dw_dwfl_module_getsym=yes
11864 ac_cv_lib_dw_dwfl_module_getsym=no
11866 rm -f core conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868 LIBS=$ac_check_lib_save_LIBS
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5
11871 $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; }
11872 if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then :
11873 cat >>confdefs.h <<_ACEOF
11874 #define HAVE_LIBDW 1
11881 as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5
11885 $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; }
11886 if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then :
11887 $as_echo_n "(cached) " >&6
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS"
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11900 char dwarf_next_unit ();
11904 return dwarf_next_unit ();
11909 if ac_fn_c_try_link "$LINENO"; then :
11910 ac_cv_lib_dw_dwarf_next_unit=yes
11912 ac_cv_lib_dw_dwarf_next_unit=no
11914 rm -f core conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
11916 LIBS=$ac_check_lib_save_LIBS
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5
11919 $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; }
11920 if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then :
11921 cat >>confdefs.h <<_ACEOF
11922 #define HAVE_LIBDW 1
11929 as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5
11932 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf"
11935 # We built our own and stap_LDFLAGS points at the install.
11936 stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5
11942 $as_echo "$as_me: stap will link $stap_LIBS" >&6;}
11944 # staprun has more modest libelf needs
11945 if test $build_elfutils = no; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5
11948 $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; }
11949 if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then :
11950 $as_echo_n "(cached) " >&6
11952 ac_check_lib_save_LIBS=$LIBS
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11963 char elf_getshdrstrndx ();
11967 return elf_getshdrstrndx ();
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 ac_cv_lib_elf_elf_getshdrstrndx=yes
11975 ac_cv_lib_elf_elf_getshdrstrndx=no
11977 rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5
11982 $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; }
11983 if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
11984 cat >>confdefs.h <<_ACEOF
11985 #define HAVE_LIBELF 1
11992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11994 as_fn_error $? "libelf too old
, need
0.142+
11995 See \
`config.log' for more details" "$LINENO" 5; }
11998 staprun_LIBS="$staprun_LIBS -lelf"
12001 # We built our own and staprun_LDFLAGS points at the install.
12002 staprun_LIBS="$staprun_LIBS -lelf"
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5
12007 $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;}
12010 date=`date +%Y-
%m-
%d
`
12012 cat >>confdefs.h <<_ACEOF
12013 #define DATE "$date"
12019 # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun
12020 # being compiled on 32-bit userspace but running against 64-bit kernels.
12021 # This is no longer necessary.
12024 ac_cpp='$CXXCPP $CPPFLAGS'
12025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12029 # Use boost::string_ref if available
12031 ac_cpp='$CXXCPP $CPPFLAGS'
12032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12036 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12037 if test -z "$CXXCPP"; then
12038 if ${ac_cv_prog_CXXCPP+:} false; then :
12039 $as_echo_n "(cached) " >&6
12041 # Double quotes because CXXCPP needs to be expanded
12042 for CXXCPP in "$CXX -E" "/lib/cpp"
12044 ac_preproc_ok=false
12045 for ac_cxx_preproc_warn_flag in '' yes
12047 # Use a header file that comes with gcc, so configuring glibc
12048 # with a fresh cross-compiler works.
12049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12050 # <limits.h> exists even on freestanding compilers.
12051 # On the NeXT, cc -E runs the code through the compiler's parser,
12052 # not just through cpp. "Syntax error" is here to catch this case.
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12056 # include <limits.h>
12058 # include <assert.h>
12062 if ac_fn_cxx_try_cpp "$LINENO"; then :
12065 # Broken: fails on valid input.
12068 rm -f conftest.err conftest.i conftest.$ac_ext
12070 # OK, works on sane cases. Now check whether nonexistent headers
12071 # can be detected and how.
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #include <ac_nonexistent.h>
12076 if ac_fn_cxx_try_cpp "$LINENO"; then :
12077 # Broken: success on invalid input.
12080 # Passes both tests.
12084 rm -f conftest.err conftest.i conftest.$ac_ext
12087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12088 rm -f conftest.i conftest.err conftest.
$ac_ext
12089 if $ac_preproc_ok; then :
12094 ac_cv_prog_CXXCPP
=$CXXCPP
12097 CXXCPP
=$ac_cv_prog_CXXCPP
12099 ac_cv_prog_CXXCPP
=$CXXCPP
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12102 $as_echo "$CXXCPP" >&6; }
12103 ac_preproc_ok
=false
12104 for ac_cxx_preproc_warn_flag
in '' yes
12106 # Use a header file that comes with gcc, so configuring glibc
12107 # with a fresh cross-compiler works.
12108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12109 # <limits.h> exists even on freestanding compilers.
12110 # On the NeXT, cc -E runs the code through the compiler's parser,
12111 # not just through cpp. "Syntax error" is here to catch this case.
12112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12115 # include <limits.h>
12117 # include <assert.h>
12121 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12124 # Broken: fails on valid input.
12127 rm -f conftest.err conftest.i conftest.
$ac_ext
12129 # OK, works on sane cases. Now check whether nonexistent headers
12130 # can be detected and how.
12131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <ac_nonexistent.h>
12135 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12136 # Broken: success on invalid input.
12139 # Passes both tests.
12143 rm -f conftest.err conftest.i conftest.
$ac_ext
12146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12147 rm -f conftest.i conftest.err conftest.
$ac_ext
12148 if $ac_preproc_ok; then :
12151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12153 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12154 See \`config.log' for more details" "$LINENO" 5; }
12158 ac_cpp
='$CXXCPP $CPPFLAGS'
12159 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12160 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12161 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12164 for ac_header
in boost
/utility
/string_ref.hpp
12166 ac_fn_cxx_check_header_mongrel
"$LINENO" "boost/utility/string_ref.hpp" "ac_cv_header_boost_utility_string_ref_hpp" "$ac_includes_default"
12167 if test "x$ac_cv_header_boost_utility_string_ref_hpp" = xyes
; then :
12168 cat >>confdefs.h
<<_ACEOF
12169 #define HAVE_BOOST_UTILITY_STRING_REF_HPP 1
12177 ac_cpp
='$CPP $CPPFLAGS'
12178 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12184 # Check for Dyninst headers and libraries
12186 # Check whether --with-dyninst was given.
12187 if test "${with_dyninst+set}" = set; then :
12188 withval
=$with_dyninst;
12192 case "$with_dyninst" in
12194 ''|
yes) # Try a simple-minded distro search
12195 DYNINST_CXXFLAGS
="-I/usr/include/dyninst"
12196 DYNINST_LDFLAGS
="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?!
12198 *) # Use paths in the user-specified prefix
12199 DYNINST_CXXFLAGS
="-I$with_dyninst/include"
12200 DYNINST_LDFLAGS
="-L$with_dyninst/lib/" # XXX need lib64 too?
12203 if test "$with_dyninst" != "no"; then
12205 ac_cpp
='$CXXCPP $CPPFLAGS'
12206 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12207 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12208 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12210 old_CPPFLAGS
="$CPPFLAGS"
12211 CPPFLAGS
="$CPPFLAGS $DYNINST_CXXFLAGS"
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5
12213 $as_echo "$as_me: checking dyninst support" >&6;}
12214 for ac_header
in BPatch_object.h
12216 ac_fn_cxx_check_header_mongrel
"$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default"
12217 if test "x$ac_cv_header_BPatch_object_h" = xyes
; then :
12218 cat >>confdefs.h
<<_ACEOF
12219 #define HAVE_BPATCH_OBJECT_H 1
12225 $as_echo "#define HAVE_DYNINST 1" >>confdefs.h
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5
12229 $as_echo "$as_me: dyninst support available" >&6;}
12234 if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then
12235 as_fn_error $?
"Dyninst does not appear to be usable" "$LINENO" 5
12237 CPPFLAGS
="$old_CPPFLAGS"
12239 ac_cpp
='$CPP $CPPFLAGS'
12240 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12241 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12242 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12245 if test "${have_dyninst}" = "yes"; then
12247 HAVE_DYNINST_FALSE
='#'
12249 HAVE_DYNINST_TRUE
='#'
12250 HAVE_DYNINST_FALSE
=
12256 # Check whether --enable-virt was given.
12257 if test "${enable_virt+set}" = set; then :
12258 enableval
=$enable_virt; enable_virt
=$enableval
12260 enable_virt
="check"
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5
12267 $as_echo_n "checking for libvirt... " >&6; }
12269 if test -n "$libvirt_CFLAGS"; then
12270 pkg_cv_libvirt_CFLAGS
="$libvirt_CFLAGS"
12271 elif test -n "$PKG_CONFIG"; then
12272 if test -n "$PKG_CONFIG" && \
12273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
12274 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
12276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12277 test $ac_status = 0; }; then
12278 pkg_cv_libvirt_CFLAGS
=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null`
12279 test "x$?" != "x0" && pkg_failed
=yes
12286 if test -n "$libvirt_LIBS"; then
12287 pkg_cv_libvirt_LIBS
="$libvirt_LIBS"
12288 elif test -n "$PKG_CONFIG"; then
12289 if test -n "$PKG_CONFIG" && \
12290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5
12291 ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5
12293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12294 test $ac_status = 0; }; then
12295 pkg_cv_libvirt_LIBS
=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null`
12296 test "x$?" != "x0" && pkg_failed
=yes
12306 if test $pkg_failed = yes; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12311 _pkg_short_errors_supported
=yes
12313 _pkg_short_errors_supported
=no
12315 if test $_pkg_short_errors_supported = yes; then
12316 libvirt_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
12318 libvirt_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1`
12320 # Put the nasty error message in config.log where it belongs
12321 echo "$libvirt_PKG_ERRORS" >&5
12324 elif test $pkg_failed = untried
; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12329 libvirt_CFLAGS
=$pkg_cv_libvirt_CFLAGS
12330 libvirt_LIBS
=$pkg_cv_libvirt_LIBS
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12332 $as_echo "yes" >&6; }
12336 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
12340 if test "${have_libvirt}" = "yes"; then
12342 HAVE_LIBVIRT_FALSE
='#'
12344 HAVE_LIBVIRT_TRUE
='#'
12345 HAVE_LIBVIRT_FALSE
=
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5
12351 $as_echo_n "checking for libxml2... " >&6; }
12353 if test -n "$libxml2_CFLAGS"; then
12354 pkg_cv_libxml2_CFLAGS
="$libxml2_CFLAGS"
12355 elif test -n "$PKG_CONFIG"; then
12356 if test -n "$PKG_CONFIG" && \
12357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12358 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361 test $ac_status = 0; }; then
12362 pkg_cv_libxml2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
12363 test "x$?" != "x0" && pkg_failed
=yes
12370 if test -n "$libxml2_LIBS"; then
12371 pkg_cv_libxml2_LIBS
="$libxml2_LIBS"
12372 elif test -n "$PKG_CONFIG"; then
12373 if test -n "$PKG_CONFIG" && \
12374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
12375 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
12377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12378 test $ac_status = 0; }; then
12379 pkg_cv_libxml2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
12380 test "x$?" != "x0" && pkg_failed
=yes
12390 if test $pkg_failed = yes; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12395 _pkg_short_errors_supported
=yes
12397 _pkg_short_errors_supported
=no
12399 if test $_pkg_short_errors_supported = yes; then
12400 libxml2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
12402 libxml2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
12404 # Put the nasty error message in config.log where it belongs
12405 echo "$libxml2_PKG_ERRORS" >&5
12408 elif test $pkg_failed = untried
; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 $as_echo "no" >&6; }
12413 libxml2_CFLAGS
=$pkg_cv_libxml2_CFLAGS
12414 libxml2_LIBS
=$pkg_cv_libxml2_LIBS
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12416 $as_echo "yes" >&6; }
12420 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12424 if test "${have_libxml2}" = "yes"; then
12426 HAVE_LIBXML2_FALSE
='#'
12428 HAVE_LIBXML2_TRUE
='#'
12429 HAVE_LIBXML2_FALSE
=
12433 if test "$enable_virt" != "no"; then
12434 if test "x${have_libvirt}" != "xyes"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5
12436 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;}
12438 if test "x${have_libxml2}" != "xyes"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5
12440 $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;}
12443 if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then
12445 BUILD_VIRT_FALSE
='#'
12447 BUILD_VIRT_TRUE
='#'
12453 # Check whether --with-python2 was given.
12454 if test "${with_python2+set}" = set; then :
12455 withval
=$with_python2;
12458 if test "x$with_python2" != "xno"; then :
12459 for ac_header
in python
$PYTHON_VERSION/Python.h
12461 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12462 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12463 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12464 cat >>confdefs.h
<<_ACEOF
12465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12467 have_python2_support
=yes
12469 have_python2_support
=no
12475 have_python2_support
=no
12477 if test "x$have_python2_support" = "xyes"; then :
12479 $as_echo "#define HAVE_PYTHON2 1" >>confdefs.h
12482 if test "x$with_python2" = "xyes"; then :
12483 as_fn_error $?
"python version 2 support requested but not found" "$LINENO" 5
12487 if test "x$have_python2_support" = "xyes"; then
12489 HAVE_PYTHON2_FALSE
='#'
12491 HAVE_PYTHON2_TRUE
='#'
12492 HAVE_PYTHON2_FALSE
=
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jsonc" >&5
12499 $as_echo_n "checking for jsonc... " >&6; }
12501 if test -n "$jsonc_CFLAGS"; then
12502 pkg_cv_jsonc_CFLAGS
="$jsonc_CFLAGS"
12503 elif test -n "$PKG_CONFIG"; then
12504 if test -n "$PKG_CONFIG" && \
12505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
12506 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
12508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12509 test $ac_status = 0; }; then
12510 pkg_cv_jsonc_CFLAGS
=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
12511 test "x$?" != "x0" && pkg_failed
=yes
12518 if test -n "$jsonc_LIBS"; then
12519 pkg_cv_jsonc_LIBS
="$jsonc_LIBS"
12520 elif test -n "$PKG_CONFIG"; then
12521 if test -n "$PKG_CONFIG" && \
12522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
12523 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
12525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12526 test $ac_status = 0; }; then
12527 pkg_cv_jsonc_LIBS
=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
12528 test "x$?" != "x0" && pkg_failed
=yes
12538 if test $pkg_failed = yes; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12543 _pkg_short_errors_supported
=yes
12545 _pkg_short_errors_supported
=no
12547 if test $_pkg_short_errors_supported = yes; then
12548 jsonc_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
12550 jsonc_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
12552 # Put the nasty error message in config.log where it belongs
12553 echo "$jsonc_PKG_ERRORS" >&5
12556 elif test $pkg_failed = untried
; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12561 jsonc_CFLAGS
=$pkg_cv_jsonc_CFLAGS
12562 jsonc_LIBS
=$pkg_cv_jsonc_LIBS
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12564 $as_echo "yes" >&6; }
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
12570 $as_echo_n "checking for ncurses... " >&6; }
12572 if test -n "$ncurses_CFLAGS"; then
12573 pkg_cv_ncurses_CFLAGS
="$ncurses_CFLAGS"
12574 elif test -n "$PKG_CONFIG"; then
12575 if test -n "$PKG_CONFIG" && \
12576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12577 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12580 test $ac_status = 0; }; then
12581 pkg_cv_ncurses_CFLAGS
=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
12582 test "x$?" != "x0" && pkg_failed
=yes
12589 if test -n "$ncurses_LIBS"; then
12590 pkg_cv_ncurses_LIBS
="$ncurses_LIBS"
12591 elif test -n "$PKG_CONFIG"; then
12592 if test -n "$PKG_CONFIG" && \
12593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
12594 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597 test $ac_status = 0; }; then
12598 pkg_cv_ncurses_LIBS
=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
12599 test "x$?" != "x0" && pkg_failed
=yes
12609 if test $pkg_failed = yes; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12613 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12614 _pkg_short_errors_supported
=yes
12616 _pkg_short_errors_supported
=no
12618 if test $_pkg_short_errors_supported = yes; then
12619 ncurses_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
12621 ncurses_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
12623 # Put the nasty error message in config.log where it belongs
12624 echo "$ncurses_PKG_ERRORS" >&5
12627 elif test $pkg_failed = untried
; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12632 ncurses_CFLAGS
=$pkg_cv_ncurses_CFLAGS
12633 ncurses_LIBS
=$pkg_cv_ncurses_LIBS
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12635 $as_echo "yes" >&6; }
12638 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"; then
12639 HAVE_MONITOR_LIBS_TRUE
=
12640 HAVE_MONITOR_LIBS_FALSE
='#'
12642 HAVE_MONITOR_LIBS_TRUE
='#'
12643 HAVE_MONITOR_LIBS_FALSE
=
12646 if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
12648 $as_echo "#define HAVE_MONITOR_LIBS 1" >>confdefs.h
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5
12653 $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; }
12654 if ${stap_cv_sectionq+:} false
; then :
12655 $as_echo_n "(cached) " >&6
12658 old_CFLAGS
="$CFLAGS"
12659 CFLAGS
="$CFLAGS -Wa,--fatal-warnings"
12660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 asm(".section .note.foo,\"?\",\"note\"\n"
12665 ".section .text,\"axG\",\"progbits\",foogroup,comdat\n"
12667 ".pushsection .note.foo,\"?\",\"note\"\n"
12672 if ac_fn_c_try_compile
"$LINENO"; then :
12673 stap_cv_sectionq
=yes
12675 stap_cv_sectionq
=no
12677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12678 CFLAGS
="$old_CFLAGS"
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5
12681 $as_echo "$stap_cv_sectionq" >&6; }
12683 support_section_question
=0
12684 if test $stap_cv_sectionq = yes; then
12685 support_section_question
=1
12687 ac_config_files
="$ac_config_files includes/sys/sdt-config.h po/Makefile.in"
12690 if test $build_elfutils = yes -a $enable_translator = yes; then
12692 case "$with_elfutils" in
12693 /*) elfutils_srcdir
="$with_elfutils" ;;
12694 *) elfutils_srcdir
="${here}/$with_elfutils" ;;
12697 if ! test -f ${elfutils_srcdir}/configure
; then
12698 as_fn_error $?
"No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5
12701 $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;}
12703 save_CFLAGS
="$CFLAGS"
12704 save_CXXFLAGS
="$CXXFLAGS"
12705 CXXFLAGS
="$CXXFLAGS -fgnu89-inline"
12706 CFLAGS
="$CFLAGS -fgnu89-inline"
12707 gnu89_inline_flag
=""
12708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12712 if ac_fn_c_try_compile
"$LINENO"; then :
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5
12715 $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;}
12716 gnu89_inline_flag
="-fgnu89-inline"
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5
12720 $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;}
12722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12723 CFLAGS
="$save_CFLAGS"
12724 CXXFLAGS
="$save_CXXFLAGS"
12726 # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that
12727 # $ORIGIN is where libdw.so resides, which is not where there is a ../lib.
12728 # Note that $libdir might be using a quoted use of $exec_prefix or $prefix.
12729 # So we must make sure to pass those settings to elfutils configure.
12730 elfutils_rpath
="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}"
12731 # Check whether this is a source release, or a source checkout.
12732 # We need --enable-maintainer-mode if it isn't a source release.
12733 # elfutils.spec is only distributed in source releases.
12734 if test -f ${elfutils_srcdir}/elfutils.spec
; then
12735 need_maintainer_option
=""
12737 need_maintainer_option
="--enable-maintainer-mode"
12739 (mkdir
-p build-elfutils
&& cd build-elfutils
&&
12740 bash
${elfutils_srcdir}/configure
--enable-libebl-subdir=${PACKAGE_NAME} \
12741 --includedir="${here}/include-elfutils" \
12742 --libdir="${here}/lib-elfutils" \
12743 --exec-prefix="$exec_prefix" \
12744 --prefix="$prefix" \
12746 ${need_maintainer_option} \
12747 CFLAGS
="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \
12748 LDFLAGS
="$LDFLAGS $elfutils_rpath" &&
12749 if test -f ${elfutils_srcdir}/config
/version.h.
in; then
12750 echo Found elfutils
/version.h header...
12752 echo elfutils
/version.h header not found
, need elfutils
0.142+...
12756 if test $?
!= 0; then exit -1; fi
12760 # Check whether --with-selinux was given.
12761 if test "${with_selinux+set}" = set; then :
12762 withval
=$with_selinux;
12766 if test "x$with_selinux" != "xno"; then :
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5
12771 $as_echo_n "checking for selinux... " >&6; }
12773 if test -n "$selinux_CFLAGS"; then
12774 pkg_cv_selinux_CFLAGS
="$selinux_CFLAGS"
12775 elif test -n "$PKG_CONFIG"; then
12776 if test -n "$PKG_CONFIG" && \
12777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12778 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781 test $ac_status = 0; }; then
12782 pkg_cv_selinux_CFLAGS
=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
12783 test "x$?" != "x0" && pkg_failed
=yes
12790 if test -n "$selinux_LIBS"; then
12791 pkg_cv_selinux_LIBS
="$selinux_LIBS"
12792 elif test -n "$PKG_CONFIG"; then
12793 if test -n "$PKG_CONFIG" && \
12794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
12795 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
12797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12798 test $ac_status = 0; }; then
12799 pkg_cv_selinux_LIBS
=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
12800 test "x$?" != "x0" && pkg_failed
=yes
12810 if test $pkg_failed = yes; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12814 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12815 _pkg_short_errors_supported
=yes
12817 _pkg_short_errors_supported
=no
12819 if test $_pkg_short_errors_supported = yes; then
12820 selinux_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
12822 selinux_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
12824 # Put the nasty error message in config.log where it belongs
12825 echo "$selinux_PKG_ERRORS" >&5
12828 elif test $pkg_failed = untried
; then
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12833 selinux_CFLAGS
=$pkg_cv_selinux_CFLAGS
12834 selinux_LIBS
=$pkg_cv_selinux_LIBS
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836 $as_echo "yes" >&6; }
12839 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
12848 if test "${have_selinux}" = "yes"; then
12850 HAVE_SELINUX_FALSE
='#'
12852 HAVE_SELINUX_TRUE
='#'
12853 HAVE_SELINUX_FALSE
=
12857 ac_fn_c_check_decl
"$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <fcntl.h>
12859 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes
; then :
12861 $as_echo "#define HAVE_F_SETPIPE_SZ 1" >>confdefs.h
12866 # Extract the first word of "javac", so it can be a program name with args.
12867 set dummy javac
; ac_word
=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if ${ac_cv_prog_have_javac+:} false
; then :
12871 $as_echo_n "(cached) " >&6
12873 if test -n "$have_javac"; then
12874 ac_cv_prog_have_javac
="$have_javac" # Let the user override the test.
12876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12877 for as_dir
in $PATH
12880 test -z "$as_dir" && as_dir
=.
12881 for ac_exec_ext
in '' $ac_executable_extensions; do
12882 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12883 ac_cv_prog_have_javac
="yes"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac
="no"
12894 have_javac
=$ac_cv_prog_have_javac
12895 if test -n "$have_javac"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5
12897 $as_echo "$have_javac" >&6; }
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12904 # Extract the first word of "jar", so it can be a program name with args.
12905 set dummy jar
; ac_word
=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_prog_have_jar+:} false
; then :
12909 $as_echo_n "(cached) " >&6
12911 if test -n "$have_jar"; then
12912 ac_cv_prog_have_jar
="$have_jar" # Let the user override the test.
12914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12915 for as_dir
in $PATH
12918 test -z "$as_dir" && as_dir
=.
12919 for ac_exec_ext
in '' $ac_executable_extensions; do
12920 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12921 ac_cv_prog_have_jar
="yes"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12929 test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar
="no"
12932 have_jar
=$ac_cv_prog_have_jar
12933 if test -n "$have_jar"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5
12935 $as_echo "$have_jar" >&6; }
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12942 if test "$have_javac" != no
-a "$have_jar" != no
; then
12943 echo java found
, will try to configure Byteman support
12946 # Check whether --with-java was given.
12947 if test "${with_java+set}" = set; then :
12948 withval
=$with_java;
12950 with_java
=/usr
/lib
/jvm
/java
12953 if test ! -d "$with_java"; then
12956 JAVADIR
="${with_java}"
12957 # always needed to compile
12959 if test "$with_java" != "no"; then
12961 cat >>confdefs.h
<<_ACEOF
12962 #define HAVE_JAVA "1"
12967 if test "$with_java" != "no"; then
12969 HAVE_JAVA_FALSE
='#'
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5
12978 $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;}
12981 HAVE_JAVA_FALSE
='#'
12987 fi # java+byteman support
12989 ENABLE_NLS
="$USE_NLS"
12991 localedir
="$localedir"
12993 LOCALEDIR
="$localedir"
12997 # Check whether --with-extra-version was given.
12998 if test "${with_extra_version+set}" = set; then :
12999 withval
=$with_extra_version;
13002 if test "x$with_extra_version" != "xno"; then :
13004 stap_extra_version
="$with_extra_version"
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5
13006 $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;}
13009 stap_extra_version
=""
13012 cat >>confdefs.h
<<_ACEOF
13013 #define STAP_EXTRA_VERSION "$stap_extra_version"
13016 STAP_EXTRA_VERSION
="$stap_extra_version"
13020 stap_prefix
=$prefix
13021 test "$stap_prefix" = NONE
&& stap_prefix
=$ac_default_prefix
13023 cat >>confdefs.h
<<_ACEOF
13024 #define STAP_PREFIX "$stap_prefix"
13027 STAP_PREFIX
="$stap_prefix"
13030 ac_config_headers
="$ac_config_headers config.h:config.in"
13032 ac_config_files
="$ac_config_files Makefile doc/Makefile man/Makefile man/cs/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile man/stap.1 man/stappaths.7 man/systemtap.8 man/cs/stap.1 man/cs/stappaths.7 man/cs/systemtap.8 initscript/config.systemtap initscript/config.stap-server initscript/systemtap initscript/stap-server initscript/99stap/module-setup.sh"
13036 subdirs
="$subdirs testsuite"
13038 if test $enable_translator == "yes"; then
13039 ac_config_files
="$ac_config_files run-stap"
13042 ac_config_files
="$ac_config_files dtrace"
13044 ac_config_files
="$ac_config_files stapdyn/Makefile"
13046 ac_config_files
="$ac_config_files java/Makefile"
13048 ac_config_files
="$ac_config_files java/stapbm"
13050 ac_config_files
="$ac_config_files python/Makefile"
13052 ac_config_files
="$ac_config_files staprun/Makefile"
13054 ac_config_files
="$ac_config_files staprun/run-staprun"
13056 ac_config_files
="$ac_config_files staprun/guest/stapshd"
13058 ac_config_files
="$ac_config_files staprun/guest/stapsh-daemon"
13060 ac_config_files
="$ac_config_files staprun/guest/stapsh@.service"
13063 # Setup "shadow" directory doc/beginners that has the basic directories setup for
13064 # xmlto in one directory (through directory links if necessary).
13065 # It would be nice to use AC_CONFIG_LINKS, but automake complains when
13066 # the src is a directory and not a file.
13067 ac_config_commands
="$ac_config_commands doc/beginners"
13070 cat >confcache
<<\_ACEOF
13071 # This file is a shell script that caches the results of configure
13072 # tests run on this system so they can be shared between configure
13073 # scripts and configure runs, see configure's option --config-cache.
13074 # It is not useful on other systems. If it contains results you don't
13075 # want to keep, you may remove or edit it.
13077 # config.status only pays attention to the cache file if you give it
13078 # the --recheck option to rerun configure.
13080 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13081 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13082 # following values.
13086 # The following way of writing the cache mishandles newlines in values,
13087 # but we know of no workaround that is simple, portable, and efficient.
13088 # So, we kill variables containing newlines.
13089 # Ultrix sh set writes to stderr and can't be redirected directly,
13090 # and sets the high bit in the cache file unless we assign to the vars.
13092 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13093 eval ac_val
=\$
$ac_var
13097 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13101 _ | IFS | as_nl
) ;; #(
13102 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13103 *) { eval $ac_var=; unset $ac_var;} ;;
13109 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13110 *${as_nl}ac_space
=\
*)
13111 # `set' does not quote correctly, so add quotes: double-quote
13112 # substitution turns \\\\ into \\, and sed turns \\ into \.
13115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13118 # `set' quotes correctly as required by POSIX, so do not add quotes.
13119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13130 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13132 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13133 if test -w "$cache_file"; then
13134 if test "x$cache_file" != "x/dev/null"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13136 $as_echo "$as_me: updating cache $cache_file" >&6;}
13137 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
13138 cat confcache
>"$cache_file"
13140 case $cache_file in #(
13142 mv -f confcache
"$cache_file"$$
&&
13143 mv -f "$cache_file"$$
"$cache_file" ;; #(
13145 mv -f confcache
"$cache_file" ;;
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13151 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13156 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13157 # Let make expand exec_prefix.
13158 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13160 DEFS
=-DHAVE_CONFIG_H
13164 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13165 # 1. Remove the extension, and $U if already installed.
13166 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13167 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13169 # will be set to the directory where LIBOBJS objects are built.
13170 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13171 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13173 LIBOBJS
=$ac_libobjs
13175 LTLIBOBJS
=$ac_ltlibobjs
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13179 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13180 if test -n "$am_sleep_pid"; then
13181 # Hide warnings about reused PIDs.
13182 wait $am_sleep_pid 2>/dev
/null
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13185 $as_echo "done" >&6; }
13186 if test -n "$EXEEXT"; then
13188 am__EXEEXT_FALSE
='#'
13190 am__EXEEXT_TRUE
='#'
13194 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13195 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
13196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13198 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13199 as_fn_error $?
"conditional \"AMDEP\" was never defined.
13200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13203 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
13204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13206 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13207 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
13208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13210 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13211 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
13212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13214 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13215 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
13216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13218 if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then
13219 as_fn_error $?
"conditional \"BUILD_TRANSLATOR\" was never defined.
13220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13222 if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then
13223 as_fn_error $?
"conditional \"BUILD_CRASHMOD\" was never defined.
13224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13226 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
13227 as_fn_error $?
"conditional \"BUILD_DOCS\" was never defined.
13228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13230 if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then
13231 as_fn_error $?
"conditional \"BUILD_REFDOCS\" was never defined.
13232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13234 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13235 as_fn_error $?
"conditional \"HAVE_FOP\" was never defined.
13236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13238 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13239 as_fn_error $?
"conditional \"HAVE_XMLTO\" was never defined.
13240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13242 if test -z "${BUILD_HTMLDOCS_TRUE}" && test -z "${BUILD_HTMLDOCS_FALSE}"; then
13243 as_fn_error $?
"conditional \"BUILD_HTMLDOCS\" was never defined.
13244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13246 if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then
13247 as_fn_error $?
"conditional \"XMLTO_STRINGPARAM\" was never defined.
13248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13250 if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then
13251 as_fn_error $?
"conditional \"HAVE_NSS\" was never defined.
13252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13254 if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
13255 as_fn_error $?
"conditional \"BUILD_SERVER\" was never defined.
13256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13258 if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then
13259 as_fn_error $?
"conditional \"HAVE_AVAHI\" was never defined.
13260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13262 if test -z "${HAVE_LIBREADLINE_TRUE}" && test -z "${HAVE_LIBREADLINE_FALSE}"; then
13263 as_fn_error $?
"conditional \"HAVE_LIBREADLINE\" was never defined.
13264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13266 if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then
13267 as_fn_error $?
"conditional \"BUILD_ELFUTILS\" was never defined.
13268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13270 if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then
13271 as_fn_error $?
"conditional \"HAVE_DYNINST\" was never defined.
13272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13274 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
13275 as_fn_error $?
"conditional \"HAVE_LIBVIRT\" was never defined.
13276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13278 if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
13279 as_fn_error $?
"conditional \"HAVE_LIBXML2\" was never defined.
13280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13282 if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then
13283 as_fn_error $?
"conditional \"BUILD_VIRT\" was never defined.
13284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13286 if test -z "${HAVE_PYTHON2_TRUE}" && test -z "${HAVE_PYTHON2_FALSE}"; then
13287 as_fn_error $?
"conditional \"HAVE_PYTHON2\" was never defined.
13288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13290 if test -z "${HAVE_MONITOR_LIBS_TRUE}" && test -z "${HAVE_MONITOR_LIBS_FALSE}"; then
13291 as_fn_error $?
"conditional \"HAVE_MONITOR_LIBS\" was never defined.
13292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13294 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
13295 as_fn_error $?
"conditional \"HAVE_SELINUX\" was never defined.
13296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13298 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13299 as_fn_error $?
"conditional \"HAVE_JAVA\" was never defined.
13300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13302 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
13303 as_fn_error $?
"conditional \"HAVE_JAVA\" was never defined.
13304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13307 : "${CONFIG_STATUS=./config.status}"
13309 ac_clean_files_save
=$ac_clean_files
13310 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13312 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13314 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13316 # Generated by $as_me.
13317 # Run this file to recreate the current configuration.
13318 # Compiler output produced by configure, useful for debugging
13319 # configure, is in config.log if it exists.
13322 ac_cs_recheck=false
13325 SHELL=\${CONFIG_SHELL-$SHELL}
13328 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13329 ## -------------------- ##
13330 ## M4sh Initialization. ##
13331 ## -------------------- ##
13333 # Be more Bourne compatible
13334 DUALCASE
=1; export DUALCASE
# for MKS sh
13335 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13338 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13339 # is contrary to our usage. Disable this feature.
13340 alias -g '${1+"$@"}'='"$@"'
13341 setopt NO_GLOB_SUBST
13343 case `(set -o) 2>/dev/null` in #(
13355 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13356 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13357 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13358 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13359 # Prefer a ksh shell builtin over an external printf program on Solaris,
13360 # but without wasting forks for bash or zsh.
13361 if test -z "$BASH_VERSION$ZSH_VERSION" \
13362 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13363 as_echo='print
-r --'
13364 as_echo_n='print
-rn --'
13365 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13366 as_echo='printf %s
\n'
13367 as_echo_n='printf %s
'
13369 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13370 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13371 as_echo_n='/usr
/ucb
/echo -n'
13373 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13374 as_echo_n_body='eval
13378 expr "X$arg" : "X\\(.*\\)$as_nl";
13379 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13381 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13383 export as_echo_n_body
13384 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13386 export as_echo_body
13387 as_echo='sh
-c $as_echo_body as_echo
'
13390 # The user is always right.
13391 if test "${PATH_SEPARATOR+set}" != set; then
13393 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13394 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13401 # We need space, tab and new line, in precisely that order. Quoting is
13402 # there to prevent editors from complaining about space-tab.
13403 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13404 # splitting by setting IFS to empty value.)
13407 # Find who we are. Look in the path if we contain no directory separator.
13410 *[\\/]* ) as_myself=$0 ;;
13411 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412 for as_dir in $PATH
13415 test -z "$as_dir" && as_dir=.
13416 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13422 # We did not find ourselves, most probably we were run as `sh COMMAND'
13423 # in which case we are not to be found in the path.
13424 if test "x$as_myself" = x
; then
13427 if test ! -f "$as_myself"; then
13428 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13432 # Unset variables that we do not need and which cause bugs (e.g. in
13433 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13434 # suppresses any "Segmentation fault" message there. '((' could
13435 # trigger a bug in pdksh 5.2.14.
13436 for as_var
in BASH_ENV ENV MAIL MAILPATH
13437 do eval test x\
${$as_var+set} = xset \
13438 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13451 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13454 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13455 # ----------------------------------------
13456 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13457 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13458 # script with STATUS, using 1 if that was 0.
13461 as_status
=$1; test $as_status -eq 0 && as_status
=1
13463 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13464 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13466 $as_echo "$as_me: error: $2" >&2
13467 as_fn_exit
$as_status
13471 # as_fn_set_status STATUS
13472 # -----------------------
13473 # Set $? to STATUS, without forking.
13474 as_fn_set_status
()
13477 } # as_fn_set_status
13479 # as_fn_exit STATUS
13480 # -----------------
13481 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13485 as_fn_set_status
$1
13491 # Portably unset VAR.
13494 { eval $1=; unset $1;}
13496 as_unset
=as_fn_unset
13497 # as_fn_append VAR VALUE
13498 # ----------------------
13499 # Append the text in VALUE to the end of the definition contained in VAR. Take
13500 # advantage of any shell optimizations that allow amortized linear growth over
13501 # repeated appends, instead of the typical quadratic growth present in naive
13503 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13504 eval 'as_fn_append ()
13515 # as_fn_arith ARG...
13516 # ------------------
13517 # Perform arithmetic evaluation on the ARGs, and store the result in the
13518 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13519 # must be portable across $(()) and expr.
13520 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13521 eval 'as_fn_arith ()
13528 as_val
=`expr "$@" || test $? -eq 1`
13533 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13534 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13540 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13541 as_basename
=basename
13546 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13552 as_me
=`$as_basename -- "$0" ||
13553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13554 X"$0" : 'X\(//\)$' \| \
13555 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13557 sed '/^.*\/\([^/][^/]*\)\/*$/{
13571 # Avoid depending upon Character Ranges.
13572 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13573 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13574 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13575 as_cr_digits
='0123456789'
13576 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13578 ECHO_C
= ECHO_N
= ECHO_T
=
13579 case `echo -n x` in #(((((
13581 case `echo 'xy\c'` in
13582 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13584 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13591 rm -f conf$$ conf$$.exe conf$$.
file
13592 if test -d conf$$.dir
; then
13593 rm -f conf$$.dir
/conf$$.
file
13596 mkdir conf$$.dir
2>/dev
/null
13598 if (echo >conf$$.
file) 2>/dev
/null
; then
13599 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13601 # ... but there are two gotchas:
13602 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13603 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13604 # In both cases, we have to default to `cp -pR'.
13605 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13607 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13615 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13616 rmdir conf$$.dir
2>/dev
/null
13621 # Create "$as_dir" as a directory, including parents if necessary.
13626 -*) as_dir
=.
/$as_dir;;
13628 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13632 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13633 *) as_qdir
=$as_dir;;
13635 as_dirs
="'$as_qdir' $as_dirs"
13636 as_dir
=`$as_dirname -- "$as_dir" ||
13637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13638 X"$as_dir" : 'X\(//\)[^/]' \| \
13639 X"$as_dir" : 'X\(//\)$' \| \
13640 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13641 $as_echo X"$as_dir" |
13642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13646 /^X\(\/\/\)[^/].*/{
13659 test -d "$as_dir" && break
13661 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13662 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
13666 if mkdir
-p .
2>/dev
/null
; then
13667 as_mkdir_p
='mkdir -p "$as_dir"'
13669 test -d .
/-p && rmdir .
/-p
13674 # as_fn_executable_p FILE
13675 # -----------------------
13676 # Test if FILE is an executable regular file.
13677 as_fn_executable_p
()
13679 test -f "$1" && test -x "$1"
13680 } # as_fn_executable_p
13681 as_test_x
='test -x'
13682 as_executable_p
=as_fn_executable_p
13684 # Sed expression to map a string onto a valid CPP name.
13685 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13687 # Sed expression to map a string onto a valid variable name.
13688 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13692 ## ----------------------------------- ##
13693 ## Main body of $CONFIG_STATUS script. ##
13694 ## ----------------------------------- ##
13696 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13699 # Save the log message, to keep $0 and so on meaningful, and to
13700 # report actual input values of CONFIG_FILES etc. instead of their
13701 # values after options handling.
13703 This file was extended by systemtap $as_me 3.1, which was
13704 generated by GNU Autoconf 2.69. Invocation command line was
13706 CONFIG_FILES = $CONFIG_FILES
13707 CONFIG_HEADERS = $CONFIG_HEADERS
13708 CONFIG_LINKS = $CONFIG_LINKS
13709 CONFIG_COMMANDS = $CONFIG_COMMANDS
13712 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13717 case $ac_config_files in *"
13718 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13721 case $ac_config_headers in *"
13722 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727 # Files that config.status was made for.
13728 config_files="$ac_config_files"
13729 config_headers="$ac_config_headers"
13730 config_commands="$ac_config_commands"
13734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13736 \`$as_me' instantiates files and other configuration actions
13737 from templates according to the current configuration. Unless the files
13738 and actions are specified as TAGs, all are instantiated by default.
13740 Usage: $0 [OPTION]... [TAG]...
13742 -h, --help print this help, then exit
13743 -V, --version print version number and configuration settings, then exit
13744 --config print configuration, then exit
13745 -q, --quiet, --silent
13746 do not print progress messages
13747 -d, --debug don't remove temporary files
13748 --recheck update $as_me by reconfiguring in the same conditions
13749 --file=FILE[:TEMPLATE]
13750 instantiate the configuration file FILE
13751 --header=FILE[:TEMPLATE]
13752 instantiate the configuration header FILE
13754 Configuration files:
13757 Configuration headers:
13760 Configuration commands:
13763 Report bugs to <systemtap@sourceware.org>."
13766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13767 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13769 systemtap config.status 3.1
13770 configured by $0, generated by GNU Autoconf 2.69,
13771 with options \\"\$ac_cs_config\\"
13773 Copyright (C) 2012 Free Software Foundation, Inc.
13774 This config.status script is free software; the Free Software Foundation
13775 gives unlimited permission to copy, distribute and modify it."
13782 test -n "\$AWK" || AWK=awk
13785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13786 # The default lists apply if the user does not specify any file.
13792 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13793 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13797 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13809 # Handling of the options.
13810 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13812 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13813 $as_echo "$ac_cs_version"; exit ;;
13814 --config |
--confi |
--conf |
--con |
--co |
--c )
13815 $as_echo "$ac_cs_config"; exit ;;
13816 --debug |
--debu |
--deb |
--de |
--d |
-d )
13818 --file |
--fil |
--fi |
--f )
13821 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13822 '') as_fn_error $?
"missing file argument" ;;
13824 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13825 ac_need_defaults
=false
;;
13826 --header |
--heade |
--head |
--hea )
13829 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13831 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13832 ac_need_defaults
=false
;;
13834 # Conflict between --help and --header
13835 as_fn_error $?
"ambiguous option: \`$1'
13836 Try \`$0 --help' for more information.";;
13837 --help |
--hel |
-h )
13838 $as_echo "$ac_cs_usage"; exit ;;
13839 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13840 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13843 # This is an error.
13844 -*) as_fn_error $?
"unrecognized option: \`$1'
13845 Try \`$0 --help' for more information." ;;
13847 *) as_fn_append ac_config_targets
" $1"
13848 ac_need_defaults
=false
;;
13854 ac_configure_extra_args
=
13856 if $ac_cs_silent; then
13858 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13863 if \$ac_cs_recheck; then
13864 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13866 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13867 CONFIG_SHELL='$SHELL'
13868 export CONFIG_SHELL
13873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13878 ## Running $as_me. ##
13884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13888 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13889 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13890 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13891 # from automake < 1.5.
13892 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13893 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13894 LINGUAS="${LINGUAS-%UNSET%}"
13899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13901 # Handling of arguments.
13902 for ac_config_target
in $ac_config_targets
13904 case $ac_config_target in
13905 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13906 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
13907 "includes/sys/sdt-config.h") CONFIG_FILES
="$CONFIG_FILES includes/sys/sdt-config.h" ;;
13908 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
13909 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
13910 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13911 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
13912 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
13913 "man/cs/Makefile") CONFIG_FILES
="$CONFIG_FILES man/cs/Makefile" ;;
13914 "doc/beginners/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/beginners/Makefile" ;;
13915 "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;;
13916 "man/stap.1") CONFIG_FILES
="$CONFIG_FILES man/stap.1" ;;
13917 "man/stappaths.7") CONFIG_FILES
="$CONFIG_FILES man/stappaths.7" ;;
13918 "man/systemtap.8") CONFIG_FILES
="$CONFIG_FILES man/systemtap.8" ;;
13919 "man/cs/stap.1") CONFIG_FILES
="$CONFIG_FILES man/cs/stap.1" ;;
13920 "man/cs/stappaths.7") CONFIG_FILES
="$CONFIG_FILES man/cs/stappaths.7" ;;
13921 "man/cs/systemtap.8") CONFIG_FILES
="$CONFIG_FILES man/cs/systemtap.8" ;;
13922 "initscript/config.systemtap") CONFIG_FILES
="$CONFIG_FILES initscript/config.systemtap" ;;
13923 "initscript/config.stap-server") CONFIG_FILES
="$CONFIG_FILES initscript/config.stap-server" ;;
13924 "initscript/systemtap") CONFIG_FILES
="$CONFIG_FILES initscript/systemtap" ;;
13925 "initscript/stap-server") CONFIG_FILES
="$CONFIG_FILES initscript/stap-server" ;;
13926 "initscript/99stap/module-setup.sh") CONFIG_FILES
="$CONFIG_FILES initscript/99stap/module-setup.sh" ;;
13927 "run-stap") CONFIG_FILES
="$CONFIG_FILES run-stap" ;;
13928 "dtrace") CONFIG_FILES
="$CONFIG_FILES dtrace" ;;
13929 "stapdyn/Makefile") CONFIG_FILES
="$CONFIG_FILES stapdyn/Makefile" ;;
13930 "java/Makefile") CONFIG_FILES
="$CONFIG_FILES java/Makefile" ;;
13931 "java/stapbm") CONFIG_FILES
="$CONFIG_FILES java/stapbm" ;;
13932 "python/Makefile") CONFIG_FILES
="$CONFIG_FILES python/Makefile" ;;
13933 "staprun/Makefile") CONFIG_FILES
="$CONFIG_FILES staprun/Makefile" ;;
13934 "staprun/run-staprun") CONFIG_FILES
="$CONFIG_FILES staprun/run-staprun" ;;
13935 "staprun/guest/stapshd") CONFIG_FILES
="$CONFIG_FILES staprun/guest/stapshd" ;;
13936 "staprun/guest/stapsh-daemon") CONFIG_FILES
="$CONFIG_FILES staprun/guest/stapsh-daemon" ;;
13937 "staprun/guest/stapsh@.service") CONFIG_FILES
="$CONFIG_FILES staprun/guest/stapsh@.service" ;;
13938 "doc/beginners") CONFIG_COMMANDS
="$CONFIG_COMMANDS doc/beginners" ;;
13940 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13945 # If the user did not use the arguments to specify the items to instantiate,
13946 # then the envvar interface is used. Set only those that are not.
13947 # We use the long form for the default assignment because of an extremely
13948 # bizarre bug on SunOS 4.1.3.
13949 if $ac_need_defaults; then
13950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13955 # Have a temporary directory for convenience. Make it in the build tree
13956 # simply because there is no reason against having it here, and in addition,
13957 # creating and moving files from /tmp can sometimes cause problems.
13958 # Hook for its removal unless debugging.
13959 # Note that there is a small window in which the directory will not be cleaned:
13960 # after its creation but before its name has been assigned to `$tmp'.
13964 trap 'exit_status=$?
13965 : "${ac_tmp:=$tmp}"
13966 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13968 trap 'as_fn_exit 1' 1 2 13 15
13970 # Create a (secure) tmp directory for tmp files.
13973 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13977 tmp
=.
/conf$$
-$RANDOM
13978 (umask 077 && mkdir
"$tmp")
13979 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
13982 # Set up the scripts for CONFIG_FILES section.
13983 # No need to generate them if there are no CONFIG_FILES.
13984 # This happens for instance with `./config.status config.h'.
13985 if test -n "$CONFIG_FILES"; then
13988 ac_cr
=`echo X | tr X '\015'`
13989 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13990 # But we know of no other shell where ac_cr would be empty at this
13991 # point, so we can use a bashism as a fallback.
13992 if test "x$ac_cr" = x
; then
13993 eval ac_cr
=\$
\'\\r
\'
13995 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13996 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13999 ac_cs_awk_cr
=$ac_cr
14002 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14007 echo "cat >conf$$subs.awk <<_ACEOF" &&
14008 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14010 } >conf$$subs.sh ||
14011 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14012 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14014 for ac_last_try in false false false false false :; do
14015 . ./conf$$subs.sh ||
14016 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14018 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14019 if test $ac_delim_n = $ac_delim_num; then
14021 elif $ac_last_try; then
14022 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14024 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14027 rm -f conf$$subs.sh
14029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14030 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
14034 s/^/S["/; s
/!.
*/"]=/
14044 s/\(.\{148\}\)..*/\1/
14046 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14051 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14058 s/\(.\{148\}\)..*/\1/
14060 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14064 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14069 ' <conf$$subs.awk | sed '
14074 ' >>$CONFIG_STATUS || ac_write_fail=1
14075 rm -f conf$$subs.awk
14076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14078 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
14079 for (key in S) S_is_set[key] = 1
14085 nfields = split(line, field, "@
")
14087 len = length(field[1])
14088 for (i = 2; i < nfields; i++) {
14090 keylen = length(key)
14091 if (S_is_set[key]) {
14093 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14094 len += length(value) + length(field[++i])
14105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14106 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14107 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14110 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
14111 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
14114 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14115 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
14116 # trailing colons and then remove the whole line if VPATH becomes empty
14117 # (actually we leave an empty line to preserve line numbers).
14118 if test "x
$srcdir" = x.; then
14119 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14138 fi # test -n "$CONFIG_FILES"
14140 # Set up the scripts for CONFIG_HEADERS section.
14141 # No need to generate them if there are no CONFIG_HEADERS.
14142 # This happens for instance with `./config.status Makefile'.
14143 if test -n "$CONFIG_HEADERS"; then
14144 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
14148 # Transform confdefs.h into an awk script `defines.awk', embedded as
14149 # here-document in config.status, that substitutes the proper values into
14150 # config.h.in to produce config.h.
14152 # Create a delimiter string that does not exist in confdefs.h, to ease
14153 # handling of long lines.
14155 for ac_last_try in false false :; do
14156 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
14157 if test -z "$ac_tt"; then
14159 elif $ac_last_try; then
14160 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
14162 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14166 # For the awk script, D is an array of macro values keyed by name,
14167 # likewise P contains macro parameters if any. Preserve backslash
14168 # newline sequences.
14170 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14172 s/.\{148\}/&'"$ac_delim"'/g
14175 s/^[ ]*#[ ]*define[ ][ ]*/ /
14182 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14184 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14188 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14189 D["\
1"]=" \
3\\\\\\n
"\\/p
14191 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14196 s/.\{148\}/&'"$ac_delim"'/g
14201 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14204 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14206 ' <confdefs.h | sed '
14207 s/'"$ac_delim"'/"\\\
14208 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14211 for (key in D) D_is_set[key] = 1
14214 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14216 split(line, arg, " ")
14217 if (arg[1] == "#") {
14221 defundef
= substr
(arg
[1], 2)
14224 split(mac1
, mac2
, "(") #)
14226 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14227 if (D_is_set
[macro
]) {
14228 # Preserve the white space surrounding the "#".
14229 print prefix
"define", macro P
[macro
] D
[macro
]
14232 # Replace #undef with comments. This is necessary, for example,
14233 # in the case of _POSIX_SOURCE, which is predefined and required
14234 # on some systems where configure will not decide to define it.
14235 if (defundef
== "undef") {
14236 print
"/*", prefix defundef
, macro
, "*/"
14244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14245 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
14246 fi # test -n "$CONFIG_HEADERS"
14249 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14254 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14256 case $ac_mode$ac_tag in
14258 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14259 :[FH
]-) ac_tag
=-:-;;
14260 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14277 -) ac_f
="$ac_tmp/stdin";;
14278 *) # Look for the file first in the build tree, then in the source tree
14279 # (if the path is not absolute). The absolute path cannot be DOS-style,
14280 # because $ac_f cannot contain `:'.
14284 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14286 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14288 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14289 as_fn_append ac_file_inputs
" '$ac_f'"
14292 # Let's still pretend it is `configure' which instantiates (i.e., don't
14293 # use $as_me), people would be surprised to read:
14294 # /* config.h. Generated by config.status. */
14295 configure_input
='Generated from '`
14296 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14298 if test x
"$ac_file" != x-
; then
14299 configure_input
="$ac_file. $configure_input"
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14301 $as_echo "$as_me: creating $ac_file" >&6;}
14303 # Neutralize special characters interpreted by sed in replacement strings.
14304 case $configure_input in #(
14305 *\
&* |
*\|
* |
*\\* )
14306 ac_sed_conf_input
=`$as_echo "$configure_input" |
14307 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14308 *) ac_sed_conf_input
=$configure_input;;
14312 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
14313 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
14318 ac_dir
=`$as_dirname -- "$ac_file" ||
14319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14320 X"$ac_file" : 'X\(//\)[^/]' \| \
14321 X"$ac_file" : 'X\(//\)$' \| \
14322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14323 $as_echo X"$ac_file" |
14324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14328 /^X\(\/\/\)[^/].*/{
14341 as_dir
="$ac_dir"; as_fn_mkdir_p
14345 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14347 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14348 # A ".." for each directory in $ac_dir_suffix.
14349 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14350 case $ac_top_builddir_sub in
14351 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14352 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14355 ac_abs_top_builddir
=$ac_pwd
14356 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14357 # for backward compatibility:
14358 ac_top_builddir
=$ac_top_build_prefix
14361 .
) # We are building in place.
14363 ac_top_srcdir
=$ac_top_builddir_sub
14364 ac_abs_top_srcdir
=$ac_pwd ;;
14365 [\\/]* | ?
:[\\/]* ) # Absolute name.
14366 ac_srcdir
=$srcdir$ac_dir_suffix;
14367 ac_top_srcdir
=$srcdir
14368 ac_abs_top_srcdir
=$srcdir ;;
14369 *) # Relative name.
14370 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14371 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14372 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14374 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14384 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14385 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14387 ac_MKDIR_P
=$MKDIR_P
14389 [\\/$
]* | ?
:[\\/]* ) ;;
14390 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
14394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14395 # If the template does not know about datarootdir, expand it.
14396 # FIXME: This hack should be removed a few years after 2.60.
14397 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14408 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14409 *datarootdir
*) ac_datarootdir_seen
=yes;;
14410 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14412 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14415 ac_datarootdir_hack='
14416 s&@datadir@&$datadir&g
14417 s&@docdir@&$docdir&g
14418 s&@infodir@&$infodir&g
14419 s&@localedir@&$localedir&g
14420 s&@mandir@&$mandir&g
14421 s&\\\${datarootdir}&$datarootdir&g' ;;
14425 # Neutralize VPATH when `$srcdir' = `.'.
14426 # Shell code in configure.ac might set extrasub.
14427 # FIXME: do we really want to maintain this feature?
14428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14429 ac_sed_extra="$ac_vpsub
14432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14434 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14435 s|@configure_input@|
$ac_sed_conf_input|
;t t
14436 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14437 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14438 s
&@srcdir@
&$ac_srcdir&;t t
14439 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14440 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14441 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14442 s
&@builddir@
&$ac_builddir&;t t
14443 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14444 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14445 s
&@INSTALL@
&$ac_INSTALL&;t t
14446 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
14447 $ac_datarootdir_hack
14449 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
14450 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
14452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14453 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
14454 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14455 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14457 which seems to be undefined. Please make sure it is defined" >&5
14458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14459 which seems to be undefined. Please make sure it is defined" >&2;}
14461 rm -f "$ac_tmp/stdin"
14463 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14464 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14472 if test x"$ac_file" != x-; then
14474 $as_echo "/* $configure_input */" \
14475 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14476 } >"$ac_tmp/config.h" \
14477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14478 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14480 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14483 mv "$ac_tmp/config.h" "$ac_file" \
14484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14487 $as_echo "/* $configure_input */" \
14488 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14489 || as_fn_error $? "could not create -" "$LINENO" 5
14491 # Compute "$ac_file"'s index
in $config_headers.
14494 for _am_header
in $config_headers :; do
14495 case $_am_header in
14496 $_am_arg |
$_am_arg:* )
14499 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
14502 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14503 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14504 X"$_am_arg" : 'X\(//\)[^/]' \| \
14505 X"$_am_arg" : 'X\(//\)$' \| \
14506 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14507 $as_echo X"$_am_arg" |
14508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14512 /^X\(\/\/\)[^/].*/{
14524 s/.*/./; q'`/stamp-h
$_am_stamp_count
14527 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14528 $as_echo "$as_me: executing $ac_file commands" >&6;}
14533 case $ac_file$ac_mode in
14534 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
14535 # Older Autoconf quotes --file arguments for eval, but not when files
14536 # are listed without --file. Let's play safe and only enable the eval
14537 # if we detect the quoting.
14538 case $CONFIG_FILES in
14539 *\'*) eval set x
"$CONFIG_FILES" ;;
14540 *) set x
$CONFIG_FILES ;;
14545 # Strip MF so we end up with the name of the file.
14546 mf
=`echo "$mf" | sed -e 's/:.*$//'`
14547 # Check whether this is an Automake generated Makefile or not.
14548 # We used to match only the files named 'Makefile.in', but
14549 # some people rename them; so instead we look at the file content.
14550 # Grep'ing the first line is not enough: some people post-process
14551 # each Makefile.in and add a new line on top of each file to say so.
14552 # Grep'ing the whole file is not good either: AIX grep has a line
14553 # limit of 2048, but all sed's we know have understand at least 4000.
14554 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
14555 dirpart
=`$as_dirname -- "$mf" ||
14556 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14557 X"$mf" : 'X\(//\)[^/]' \| \
14558 X"$mf" : 'X\(//\)$' \| \
14559 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14565 /^X\(\/\/\)[^/].*/{
14581 # Extract the definition of DEPDIR, am__include, and am__quote
14582 # from the Makefile without running 'make'.
14583 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
14584 test -z "$DEPDIR" && continue
14585 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
14586 test -z "$am__include" && continue
14587 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
14588 # Find all dependency output files, they are included files with
14589 # $(DEPDIR) in their names. We invoke sed twice because it is the
14590 # simplest approach to changing $(DEPDIR) to its actual value in the
14592 for file in `sed -n "
14593 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14594 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14595 # Make sure the directory exists.
14596 test -f "$dirpart/$file" && continue
14597 fdir
=`$as_dirname -- "$file" ||
14598 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14599 X"$file" : 'X\(//\)[^/]' \| \
14600 X"$file" : 'X\(//\)$' \| \
14601 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14602 $as_echo X"$file" |
14603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14607 /^X\(\/\/\)[^/].*/{
14620 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
14621 # echo "creating $dirpart/$file"
14622 echo '# dummy' > "$dirpart/$file"
14627 "po-directories":C
)
14628 for ac_file
in $CONFIG_FILES; do
14629 # Support "outfile[:infile[:infile...]]"
14631 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14633 # PO directories have a Makefile.in generated from Makefile.in.in.
14634 case "$ac_file" in */Makefile.
in)
14635 # Adjust a relative srcdir.
14636 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14637 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
14638 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14639 # In autoconf-2.13 it is called $ac_given_srcdir.
14640 # In autoconf-2.50 it is called $srcdir.
14641 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
14642 case "$ac_given_srcdir" in
14643 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
14644 /*) top_srcdir
="$ac_given_srcdir" ;;
14645 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
14647 # Treat a directory as a PO directory if and only if it has a
14648 # POTFILES.in file. This allows packages to have multiple PO
14649 # directories under different names or in different locations.
14650 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14651 rm -f "$ac_dir/POTFILES"
14652 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
14653 gt_tab
=`printf '\t'`
14654 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14655 POMAKEFILEDEPS
="POTFILES.in"
14656 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14657 # on $ac_dir but don't depend on user-specified configuration
14659 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14660 # The LINGUAS file contains the set of available languages.
14661 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14662 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
14664 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14665 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14666 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14667 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
14669 # The set of available languages was given in configure.in.
14670 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14671 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14674 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14675 # Compute UPDATEPOFILES
14676 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14677 # Compute DUMMYPOFILES
14678 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14680 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14681 case "$ac_given_srcdir" in
14683 *) srcdirpre
='$(srcdir)/' ;;
14689 for lang
in $ALL_LINGUAS; do
14690 POFILES
="$POFILES $srcdirpre$lang.po"
14691 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
14692 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
14693 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
14695 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14696 # environment variable.
14698 if test -n "$ALL_LINGUAS"; then
14699 for presentlang
in $ALL_LINGUAS; do
14701 if test "%UNSET%" != "$LINGUAS"; then
14702 desiredlanguages
="$LINGUAS"
14704 desiredlanguages
="$ALL_LINGUAS"
14706 for desiredlang
in $desiredlanguages; do
14707 # Use the presentlang catalog if desiredlang is
14708 # a. equal to presentlang, or
14709 # b. a variant of presentlang (because in this case,
14710 # presentlang can be used as a fallback for messages
14711 # which are not translated in the desiredlang catalog).
14712 case "$desiredlang" in
14713 "$presentlang"*) useit
=yes;;
14716 if test $useit = yes; then
14717 INST_LINGUAS
="$INST_LINGUAS $presentlang"
14722 if test -n "$INST_LINGUAS"; then
14723 for lang
in $INST_LINGUAS; do
14724 CATALOGS
="$CATALOGS $lang.gmo"
14727 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
14728 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14729 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
14730 if test -f "$f"; then
14732 *.orig |
*.bak |
*~
) ;;
14733 *) cat "$f" >> "$ac_dir/Makefile" ;;
14741 "run-stap":F
) chmod +x run-stap
;;
14742 "dtrace":F
) chmod +x dtrace
;;
14743 "java/stapbm":F
) chmod +x java
/stapbm
;;
14744 "staprun/run-staprun":F
) chmod +x staprun
/run-staprun
;;
14745 "staprun/guest/stapshd":F
) chmod +x staprun
/guest
/stapshd
;;
14746 "staprun/guest/stapsh-daemon":F
) chmod +x staprun
/guest
/stapsh-daemon
;;
14747 "doc/beginners":C
) rm -f $ac_abs_top_builddir/doc
/beginners
/en-US
$ac_abs_top_builddir/doc
/beginners
/build
/en-US
/testsuite
&& mkdir
-p $ac_abs_top_builddir/doc
/beginners
/build
/en-US
&& ln -s $ac_abs_top_srcdir/doc
/SystemTap_Beginners_Guide
/en-US
$ac_abs_top_builddir/doc
/beginners
/en-US
&& ln -s $ac_abs_top_srcdir/testsuite
$ac_abs_top_builddir/doc
/beginners
/build
/en-US
/testsuite
;;
14755 ac_clean_files
=$ac_clean_files_save
14757 test $ac_write_fail = 0 ||
14758 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14761 # configure is writing to config.log, and then calls config.status.
14762 # config.status does its own redirection, appending to config.log.
14763 # Unfortunately, on DOS this fails, as config.log is still kept open
14764 # by configure, so config.status won't be able to write to it; its
14765 # output is simply discarded. So we exec the FD to /dev/null,
14766 # effectively closing config.log, so it can be properly (re)opened and
14767 # appended to by config.status. When coming back to configure, we
14768 # need to make the FD available again.
14769 if test "$no_create" != yes; then
14771 ac_config_status_args
=
14772 test "$silent" = yes &&
14773 ac_config_status_args
="$ac_config_status_args --quiet"
14775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14778 # would make configure fail if this is the last instruction.
14779 $ac_cs_success || as_fn_exit
1
14783 # CONFIG_SUBDIRS section.
14785 if test "$no_recursion" != yes; then
14787 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14788 # so they do not pile up.
14789 ac_sub_configure_args
=
14791 eval "set x $ac_configure_args"
14795 if test -n "$ac_prev"; then
14800 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
14801 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
14802 ac_prev
=cache_file
;;
14803 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
14804 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
14807 --config-cache |
-C)
14809 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
14811 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
14813 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
14815 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
14817 --disable-option-checking)
14821 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14823 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
14827 # Always prepend --prefix to ensure using the same prefix
14828 # in subdir configurations.
14829 ac_arg
="--prefix=$prefix"
14831 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14833 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
14836 if test "$silent" = yes; then
14837 ac_sub_configure_args
="--silent $ac_sub_configure_args"
14840 # Always prepend --disable-option-checking to silence warnings, since
14841 # different subdirs can have different --enable and --with options.
14842 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
14845 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
14847 # Do not complain, so a configure script can configure whichever
14848 # parts of a large source tree are present.
14849 test -d "$srcdir/$ac_dir" ||
continue
14851 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14852 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14853 $as_echo "$ac_msg" >&6
14854 as_dir
="$ac_dir"; as_fn_mkdir_p
14858 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14860 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14861 # A ".." for each directory in $ac_dir_suffix.
14862 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14863 case $ac_top_builddir_sub in
14864 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14865 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14868 ac_abs_top_builddir
=$ac_pwd
14869 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14870 # for backward compatibility:
14871 ac_top_builddir
=$ac_top_build_prefix
14874 .
) # We are building in place.
14876 ac_top_srcdir
=$ac_top_builddir_sub
14877 ac_abs_top_srcdir
=$ac_pwd ;;
14878 [\\/]* | ?
:[\\/]* ) # Absolute name.
14879 ac_srcdir
=$srcdir$ac_dir_suffix;
14880 ac_top_srcdir
=$srcdir
14881 ac_abs_top_srcdir
=$srcdir ;;
14882 *) # Relative name.
14883 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14884 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14885 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14887 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14892 # Check for guested configure; otherwise get Cygnus style configure.
14893 if test -f "$ac_srcdir/configure.gnu"; then
14894 ac_sub_configure
=$ac_srcdir/configure.gnu
14895 elif test -f "$ac_srcdir/configure"; then
14896 ac_sub_configure
=$ac_srcdir/configure
14897 elif test -f "$ac_srcdir/configure.in"; then
14898 # This should be Cygnus configure.
14899 ac_sub_configure
=$ac_aux_dir/configure
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14902 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14906 # The recursion is here.
14907 if test -n "$ac_sub_configure"; then
14908 # Make the cache file name correct relative to the subdirectory.
14909 case $cache_file in
14910 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
14911 *) # Relative name.
14912 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14916 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14917 # The eval makes quoting arguments work.
14918 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14919 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14920 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14926 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14928 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14932 if test "${prefix}" = "/usr/local"; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
14934 $as_echo "$as_me: " >&6;}
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5
14936 $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;}
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5
14938 $as_echo "$as_me: configuring with a prefix. For example, try" >&6;}
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5
14940 $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;}
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5
14942 $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;}
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5
14944 $as_echo "$as_me: is not supported." >&6;}