2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="src/include/pcp/pmapi.h"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='PACKAGE_CONFIGURE
660 have_bzip2ed_manpages
661 have_gzipped_manpages
682 pcp_pmloggercontrol_path
683 pcp_pmsnapcontrol_path
685 pcp_pmproxyoptions_path
686 pcp_pmmgroptions_path
687 pcp_pmwebdoptions_path
804 have_python_setuptools
805 have_python_jsonpointer
824 SYSTEMD_SYSTEMUNITDIR
924 program_transform_name
937 enable_option_checking
970 with_perl_installdirs
971 with_perl_install_base
982 ac_precious_vars
='build_alias
1001 SYSTEMD_SYSTEMUNITDIR
1008 libmicrohttpd_CFLAGS
1017 # Initialize some variables set by options.
1019 ac_init_version
=false
1020 ac_unrecognized_opts
=
1021 ac_unrecognized_sep
=
1022 # The variables have the same names as the options, with
1023 # dashes changed to underlines.
1024 cache_file
=/dev
/null
1031 program_transform_name
=s
,x
,x
,
1039 # Installation directory options.
1040 # These are left unexpanded so users can "make install exec_prefix=/foo"
1041 # and all the variables that are supposed to be based on exec_prefix
1042 # by default will actually change.
1043 # Use braces instead of parens because sh, perl, etc. also accept them.
1044 # (The list follows the same order as the GNU Coding Standards.)
1045 bindir
='${exec_prefix}/bin'
1046 sbindir
='${exec_prefix}/sbin'
1047 libexecdir
='${exec_prefix}/libexec'
1048 datarootdir
='${prefix}/share'
1049 datadir
='${datarootdir}'
1050 sysconfdir
='${prefix}/etc'
1051 sharedstatedir
='${prefix}/com'
1052 localstatedir
='${prefix}/var'
1053 includedir
='${prefix}/include'
1054 oldincludedir
='/usr/include'
1055 docdir
='${datarootdir}/doc/${PACKAGE}'
1056 infodir
='${datarootdir}/info'
1061 libdir
='${exec_prefix}/lib'
1062 localedir
='${datarootdir}/locale'
1063 mandir
='${datarootdir}/man'
1069 # If the previous option needs an argument, assign it.
1070 if test -n "$ac_prev"; then
1071 eval $ac_prev=\
$ac_option
1077 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1082 # Accept the important Cygnus configure options, so we can diagnose typos.
1084 case $ac_dashdash$ac_option in
1088 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1090 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1091 bindir
=$ac_optarg ;;
1093 -build |
--build |
--buil |
--bui |
--bu)
1094 ac_prev
=build_alias
;;
1095 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1096 build_alias
=$ac_optarg ;;
1098 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1099 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1100 ac_prev
=cache_file
;;
1101 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1102 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1103 cache_file
=$ac_optarg ;;
1105 --config-cache |
-C)
1106 cache_file
=config.cache
;;
1108 -datadir |
--datadir |
--datadi |
--datad)
1110 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1111 datadir
=$ac_optarg ;;
1113 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1114 |
--dataroo |
--dataro |
--datar)
1115 ac_prev
=datarootdir
;;
1116 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1117 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1118 datarootdir
=$ac_optarg ;;
1120 -disable-* |
--disable-*)
1121 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1124 as_fn_error $?
"invalid feature name: $ac_useropt"
1125 ac_useropt_orig
=$ac_useropt
1126 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "enable_
$ac_useropt"
1131 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1132 ac_unrecognized_sep
=', ';;
1134 eval enable_
$ac_useropt=no
;;
1136 -docdir |
--docdir |
--docdi |
--doc |
--do)
1138 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1139 docdir
=$ac_optarg ;;
1141 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1143 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1144 dvidir
=$ac_optarg ;;
1146 -enable-* |
--enable-*)
1147 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1150 as_fn_error $?
"invalid feature name: $ac_useropt"
1151 ac_useropt_orig
=$ac_useropt
1152 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "enable_
$ac_useropt"
1157 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1158 ac_unrecognized_sep
=', ';;
1160 eval enable_
$ac_useropt=\
$ac_optarg ;;
1162 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1163 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1164 |
--exec |
--exe |
--ex)
1165 ac_prev
=exec_prefix
;;
1166 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1167 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1168 |
--exec=* |
--exe=* |
--ex=*)
1169 exec_prefix
=$ac_optarg ;;
1171 -gas |
--gas |
--ga |
--g)
1172 # Obsolete; use --with-gas.
1175 -help |
--help |
--hel |
--he |
-h)
1176 ac_init_help
=long
;;
1177 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1178 ac_init_help
=recursive
;;
1179 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1180 ac_init_help
=short
;;
1182 -host |
--host |
--hos |
--ho)
1183 ac_prev
=host_alias
;;
1184 -host=* |
--host=* |
--hos=* |
--ho=*)
1185 host_alias
=$ac_optarg ;;
1187 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1189 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1191 htmldir
=$ac_optarg ;;
1193 -includedir |
--includedir |
--includedi |
--included |
--include \
1194 |
--includ |
--inclu |
--incl |
--inc)
1195 ac_prev
=includedir
;;
1196 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1197 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1198 includedir
=$ac_optarg ;;
1200 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1202 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1203 infodir
=$ac_optarg ;;
1205 -libdir |
--libdir |
--libdi |
--libd)
1207 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1208 libdir
=$ac_optarg ;;
1210 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1211 |
--libexe |
--libex |
--libe)
1212 ac_prev
=libexecdir
;;
1213 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1214 |
--libexe=* |
--libex=* |
--libe=*)
1215 libexecdir
=$ac_optarg ;;
1217 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1218 ac_prev
=localedir
;;
1219 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1220 localedir
=$ac_optarg ;;
1222 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1223 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1224 ac_prev
=localstatedir
;;
1225 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1226 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1227 localstatedir
=$ac_optarg ;;
1229 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1231 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1232 mandir
=$ac_optarg ;;
1234 -nfp |
--nfp |
--nf)
1235 # Obsolete; use --without-fp.
1238 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1239 |
--no-cr |
--no-c |
-n)
1242 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1243 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1246 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1247 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1248 |
--oldin |
--oldi |
--old |
--ol |
--o)
1249 ac_prev
=oldincludedir
;;
1250 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1251 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1252 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1253 oldincludedir
=$ac_optarg ;;
1255 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1257 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1258 prefix
=$ac_optarg ;;
1260 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1261 |
--program-pre |
--program-pr |
--program-p)
1262 ac_prev
=program_prefix
;;
1263 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1264 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1265 program_prefix
=$ac_optarg ;;
1267 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1268 |
--program-suf |
--program-su |
--program-s)
1269 ac_prev
=program_suffix
;;
1270 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1271 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1272 program_suffix
=$ac_optarg ;;
1274 -program-transform-name |
--program-transform-name \
1275 |
--program-transform-nam |
--program-transform-na \
1276 |
--program-transform-n |
--program-transform- \
1277 |
--program-transform |
--program-transfor \
1278 |
--program-transfo |
--program-transf \
1279 |
--program-trans |
--program-tran \
1280 |
--progr-tra |
--program-tr |
--program-t)
1281 ac_prev
=program_transform_name
;;
1282 -program-transform-name=* |
--program-transform-name=* \
1283 |
--program-transform-nam=* |
--program-transform-na=* \
1284 |
--program-transform-n=* |
--program-transform-=* \
1285 |
--program-transform=* |
--program-transfor=* \
1286 |
--program-transfo=* |
--program-transf=* \
1287 |
--program-trans=* |
--program-tran=* \
1288 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1289 program_transform_name
=$ac_optarg ;;
1291 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1293 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1294 pdfdir
=$ac_optarg ;;
1296 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1298 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1301 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1302 |
-silent |
--silent |
--silen |
--sile |
--sil)
1305 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1307 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1309 sbindir
=$ac_optarg ;;
1311 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1312 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1313 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1315 ac_prev
=sharedstatedir
;;
1316 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1317 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1318 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1320 sharedstatedir
=$ac_optarg ;;
1322 -site |
--site |
--sit)
1324 -site=* |
--site=* |
--sit=*)
1327 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1329 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1330 srcdir
=$ac_optarg ;;
1332 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1333 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1334 ac_prev
=sysconfdir
;;
1335 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1336 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1337 sysconfdir
=$ac_optarg ;;
1339 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1340 ac_prev
=target_alias
;;
1341 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1342 target_alias
=$ac_optarg ;;
1344 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1347 -version |
--version |
--versio |
--versi |
--vers |
-V)
1348 ac_init_version
=: ;;
1351 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1354 as_fn_error $?
"invalid package name: $ac_useropt"
1355 ac_useropt_orig
=$ac_useropt
1356 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1361 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1362 ac_unrecognized_sep
=', ';;
1364 eval with_
$ac_useropt=\
$ac_optarg ;;
1366 -without-* |
--without-*)
1367 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1368 # Reject names that are not valid shell variable names.
1369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1370 as_fn_error $?
"invalid package name: $ac_useropt"
1371 ac_useropt_orig
=$ac_useropt
1372 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1373 case $ac_user_opts in
1377 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1378 ac_unrecognized_sep
=', ';;
1380 eval with_
$ac_useropt=no
;;
1383 # Obsolete; use --with-x.
1386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1388 ac_prev
=x_includes
;;
1389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1391 x_includes
=$ac_optarg ;;
1393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1395 ac_prev
=x_libraries
;;
1396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1398 x_libraries
=$ac_optarg ;;
1400 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1401 Try \`$0 --help' for more information"
1405 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1406 # Reject names that are not valid shell variable names.
1407 case $ac_envvar in #(
1408 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1409 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1411 eval $ac_envvar=\
$ac_optarg
1412 export $ac_envvar ;;
1415 # FIXME: should be removed in autoconf 3.0.
1416 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1417 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1418 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1419 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1425 if test -n "$ac_prev"; then
1426 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1427 as_fn_error $?
"missing argument to $ac_option"
1430 if test -n "$ac_unrecognized_opts"; then
1431 case $enable_option_checking in
1433 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1434 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1438 # Check all directory arguments for consistency.
1439 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1440 datadir sysconfdir sharedstatedir localstatedir includedir \
1441 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1442 libdir localedir mandir
1444 eval ac_val
=\$
$ac_var
1445 # Remove trailing slashes.
1448 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1449 eval $ac_var=\
$ac_val;;
1451 # Be sure to have absolute directory names.
1453 [\\/$
]* | ?
:[\\/]* ) continue;;
1454 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1456 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1459 # There might be people who depend on the old broken behavior: `$host'
1460 # used to hold the argument of --host etc.
1461 # FIXME: To remove some day.
1464 target
=$target_alias
1466 # FIXME: To remove some day.
1467 if test "x$host_alias" != x
; then
1468 if test "x$build_alias" = x
; then
1469 cross_compiling
=maybe
1470 elif test "x$build_alias" != "x$host_alias"; then
1476 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1478 test "$silent" = yes && exec 6>/dev
/null
1481 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di
=`ls -di .` &&
1483 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1484 as_fn_error $?
"working directory cannot be determined"
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486 as_fn_error $?
"pwd does not report name of working directory"
1489 # Find the source files, if location was not specified.
1490 if test -z "$srcdir"; then
1491 ac_srcdir_defaulted
=yes
1492 # Try the directory containing this script, then the parent directory.
1493 ac_confdir
=`$as_dirname -- "$as_myself" ||
1494 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495 X"$as_myself" : 'X\(//\)[^/]' \| \
1496 X"$as_myself" : 'X\(//\)$' \| \
1497 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1498 $as_echo X"$as_myself" |
1499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1521 ac_srcdir_defaulted
=no
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1524 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1525 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1527 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1529 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1539 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1541 for ac_var
in $ac_precious_vars; do
1542 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1543 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1544 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1545 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1549 # Report the --help message.
1551 if test "$ac_init_help" = "long"; then
1552 # Omit some internal or obsolete options to make the list less imposing.
1553 # This message is too long to be a string in the A/UX 3.1 sh.
1555 \`configure' configures this package to adapt to many kinds of systems.
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE. See below for descriptions of some of the useful variables.
1562 Defaults for the options are specified in brackets.
1565 -h, --help display this help and exit
1566 --help=short display options specific to this package
1567 --help=recursive display the short help of all the included packages
1568 -V, --version display version information and exit
1569 -q, --quiet, --silent do not print \`checking ...' messages
1570 --cache-file=FILE cache test results in FILE [disabled]
1571 -C, --config-cache alias for \`--cache-file=config.cache'
1572 -n, --no-create do not create output files
1573 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1575 Installation directories:
1576 --prefix=PREFIX install architecture-independent files in PREFIX
1577 [$ac_default_prefix]
1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1586 For better control, use the options below.
1588 Fine tuning of the installation directories:
1589 --bindir=DIR user executables [EPREFIX/bin]
1590 --sbindir=DIR system admin executables [EPREFIX/sbin]
1591 --libexecdir=DIR program executables [EPREFIX/libexec]
1592 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1595 --libdir=DIR object code libraries [EPREFIX/lib]
1596 --includedir=DIR C header files [PREFIX/include]
1597 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1600 --infodir=DIR info documentation [DATAROOTDIR/info]
1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1602 --mandir=DIR man documentation [DATAROOTDIR/man]
1603 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1604 --htmldir=DIR html documentation [DOCDIR]
1605 --dvidir=DIR dvi documentation [DOCDIR]
1606 --pdfdir=DIR pdf documentation [DOCDIR]
1607 --psdir=DIR ps documentation [DOCDIR]
1613 --x-includes=DIR X include files are
in DIR
1614 --x-libraries=DIR X library files are
in DIR
1617 --build=BUILD configure
for building on BUILD
[guessed
]
1618 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1619 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1623 if test -n "$ac_init_help"; then
1628 --disable-option-checking ignore unrecognized
--enable/--with options
1629 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1630 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1631 --disable-ssp disable gcc stack-protector
1632 --disable-pie disable position-independent-executable
1633 --disable-visibility disable gcc symbol visibility
1634 --disable-shared disable core shared libary generation
1637 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1638 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1639 --with-64bit turn on
64 bit compilation mode
(default is platform
1641 --with-optimization enable optimization
for C
/C
++ code
(default is
yes)
1642 --with-threads enable support
for multiple threads
(default is on
)
1643 --with-secure-sockets enable support
for secure sockets
(default is on
)
1644 --with-static-probes enable support
for static probes
(default is on
)
1645 --with-infiniband enable support
for Infiniband metrics
(default is
1647 --with-user user account under
which daemons run
(default is
1649 --with-group user group under
which daemons run
(default is pcp
)
1650 --with-discovery enable support
for service discovery
(default is on
)
1651 --with-systemd enable support
for systemd services
(default is on
)
1652 --with-qt enable support
for tools requiring Qt
(default is
1654 --with-python enable support
for tools requiring Python
(default
1656 --with-python3 enable support
for tools requiring Python3
(default
1658 --with-books enable building of the PCP books
(default is off
)
1659 --with-books-brand=BRAND
1660 choose the docbook brand when building the PCP books
1662 --with-papi[=DIR|
=MODULE
]
1663 enable performance api counter pmda
(default is on
)
1664 The optional argument may be a full path of a PAPI
1665 installation prefix
, or a pkgconfig module name.
1666 --with-perfevent enable perfevent pmda
(default is on
)
1667 --with-pmdajson enable JSON pmda
(default is on
)
1668 --with-pmdasnmp enable SNMP pmda
(default is on
)
1669 --with-manager enable daemon manager
(default is on
)
1670 --with-webapi enable REST API daemon
(default is on
)
1671 --with-webjs enable building of webjs packages
(default is off
)
1672 --with-vector enable building of vector package
(default is off
)
1673 --with-parfait enable building of parfait package
(default is off
)
1674 --with-make path to GNU compatible
make(1) (default is empty
for
1676 --with-tar path to GNU compatible
tar(1) (default is empty
for
1678 --with-zip path to GNU compatible
zip(1) (default is empty
for
1680 --with-configdir configuration directory
[LOCALSTATEDIR
/pcp
/config
]
1681 --with-perl_installdirs perl installdirs
[vendor
]
1682 --with-perl_install_base
1683 perl install_base
[PREFIX
]
1684 --with-python_prefix python setup.py prefix
[PREFIX
]
1685 --with-x use the X Window System
1686 --with-rcdir rc directory
[SYSCONFDIR
/rc.d
]
1687 --with-sysconfigdir sysconfig directory
[SYSCONFDIR
/sysconfig
]
1688 --with-logdir log directory
[LOCALSTATEDIR
/log
/pcp
]
1689 --with-rundir run directory
[LOCALSTATEDIR
/run
/pcp
]
1690 --with-tmpdir tmp directory
[LOCALSTATEDIR
/tmp
]
1691 --with-docdir docs directory
[DOCDIR
/pcp-VERSION
]
1692 --with-demosdir run directory
[DATADIR
/pcp
/demos
]
1694 Some influential environment variables
:
1695 PKG_CONFIG path to pkg-config utility
1697 directories to add to pkg-config
's search path
1699 path overriding pkg-config's built-in search path
1700 CC C compiler
command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1703 nonstandard directory
<lib dir
>
1704 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1705 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1706 you have headers
in a nonstandard directory
<include dir
>
1707 CXX C
++ compiler
command
1708 CXXFLAGS C
++ compiler flags
1709 YACC The
`Yet Another Compiler Compiler' implementation to use.
1710 Defaults to the first program found out of: `bison
-y', `byacc',
1712 YFLAGS The list of arguments that will be passed by default to $YACC.
1713 This script will default YFLAGS to the empty string to avoid a
1714 default value of `-d' given by some make applications.
1717 C compiler flags for avahi, overriding pkg-config
1718 avahi_LIBS linker flags for avahi, overriding pkg-config
1719 SYSTEMD_SYSTEMUNITDIR
1720 value of systemdsystemunitdir for systemd, overriding pkg-config
1722 C compiler flags for ncurses, overriding pkg-config
1724 linker flags for ncurses, overriding pkg-config
1726 C compiler flags for SYSTEMD, overriding pkg-config
1728 linker flags for SYSTEMD, overriding pkg-config
1729 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1730 papi_LIBS linker flags for papi, overriding pkg-config
1731 libmicrohttpd_CFLAGS
1732 C compiler flags for libmicrohttpd, overriding pkg-config
1734 linker flags for libmicrohttpd, overriding pkg-config
1736 C compiler flags for cairo, overriding pkg-config
1737 cairo_LIBS linker flags for cairo, overriding pkg-config
1738 XMKMF Path to xmkmf, Makefile generator for X Window System
1739 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1740 zlib_LIBS linker flags for zlib, overriding pkg-config
1742 Use these variables to override the choices made by `configure' or to
help
1743 it to
find libraries and programs with nonstandard names
/locations.
1745 Report bugs to the package provider.
1750 if test "$ac_init_help" = "recursive"; then
1751 # If there are subdirs, report their specific --help.
1752 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1753 test -d "$ac_dir" ||
1754 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1759 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1761 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1762 # A ".." for each directory in $ac_dir_suffix.
1763 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1764 case $ac_top_builddir_sub in
1765 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1766 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1769 ac_abs_top_builddir
=$ac_pwd
1770 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1771 # for backward compatibility:
1772 ac_top_builddir
=$ac_top_build_prefix
1775 .
) # We are building in place.
1777 ac_top_srcdir
=$ac_top_builddir_sub
1778 ac_abs_top_srcdir
=$ac_pwd ;;
1779 [\\/]* | ?
:[\\/]* ) # Absolute name.
1780 ac_srcdir
=$srcdir$ac_dir_suffix;
1781 ac_top_srcdir
=$srcdir
1782 ac_abs_top_srcdir
=$srcdir ;;
1784 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1785 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1786 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1788 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1790 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1791 # Check for guested configure.
1792 if test -f "$ac_srcdir/configure.gnu"; then
1794 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1795 elif test -f "$ac_srcdir/configure"; then
1797 $SHELL "$ac_srcdir/configure" --help=recursive
1799 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1801 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1805 test -n "$ac_init_help" && exit $ac_status
1806 if $ac_init_version; then
1809 generated by GNU Autoconf
2.69
1811 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1812 This configure
script is free software
; the Free Software Foundation
1813 gives unlimited permission to copy
, distribute and modify it.
1818 ## ------------------------ ##
1819 ## Autoconf initialization. ##
1820 ## ------------------------ ##
1822 # ac_fn_c_try_compile LINENO
1823 # --------------------------
1824 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_compile
()
1827 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1828 rm -f conftest.
$ac_objext
1829 if { { ac_try
="$ac_compile"
1831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_compile") 2>conftest.err
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest.$ac_objext; then :
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_compile
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1870 *) ac_try_echo
=$ac_try;;
1872 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1876 if test -s conftest.err
; then
1877 grep -v '^ *+' conftest.err
>conftest.er1
1878 cat conftest.er1
>&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest
$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest
$ac_exeext
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.
$ac_ext >&5
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status
$ac_retval
1904 } # ac_fn_c_try_link
1906 # ac_fn_cxx_try_compile LINENO
1907 # ----------------------------
1908 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_cxx_try_compile
()
1911 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1912 rm -f conftest.
$ac_objext
1913 if { { ac_try
="$ac_compile"
1915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_compile") 2>conftest.err
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_cxx_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest.$ac_objext; then :
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1942 } # ac_fn_cxx_try_compile
1944 # ac_fn_c_try_cpp LINENO
1945 # ----------------------
1946 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1953 *) ac_try_echo
=$ac_try;;
1955 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959 if test -s conftest.err
; then
1960 grep -v '^ *+' conftest.err
>conftest.er1
1961 cat conftest.er1
>&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } > conftest.i
&& {
1966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.
$ac_ext >&5
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status
$ac_retval
1981 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1984 # the include files in INCLUDES and setting the cache variable VAR
1986 ac_fn_c_check_header_mongrel
()
1988 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1989 if eval \
${$3+:} false
; then :
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \
${$3+:} false
; then :
1993 $as_echo_n "(cached) " >&6
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1999 # Is the header compilable?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2001 $as_echo_n "checking $2 usability... " >&6; }
2002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2007 if ac_fn_c_try_compile
"$LINENO"; then :
2008 ac_header_compiler
=yes
2010 ac_header_compiler
=no
2012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2014 $as_echo "$ac_header_compiler" >&6; }
2016 # Is the header present?
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2018 $as_echo_n "checking $2 presence... " >&6; }
2019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2023 if ac_fn_c_try_cpp
"$LINENO"; then :
2024 ac_header_preproc
=yes
2026 ac_header_preproc
=no
2028 rm -f conftest.err conftest.i conftest.
$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2030 $as_echo "$ac_header_preproc" >&6; }
2032 # So? What about this header?
2033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2036 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2038 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2042 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2044 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2046 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2048 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \
${$3+:} false
; then :
2056 $as_echo_n "(cached) " >&6
2058 eval "$3=\$ac_header_compiler"
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 } # ac_fn_c_check_header_mongrel
2068 # ac_fn_c_try_run LINENO
2069 # ----------------------
2070 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2071 # that executables *can* be run.
2074 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2075 if { { ac_try
="$ac_link"
2077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_link") 2>&5
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2086 { { case "(($ac_try" in
2087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2088 *) ac_try_echo
=$ac_try;;
2090 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_try") 2>&5
2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; }; }; then :
2098 $as_echo "$as_me: program exited with status $ac_status" >&5
2099 $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.
$ac_ext >&5
2102 ac_retval
=$ac_status
2104 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 as_fn_set_status
$ac_retval
2110 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2111 # -------------------------------------------------------
2112 # Tests whether HEADER exists and can be compiled using the include files in
2113 # INCLUDES, setting the cache variable VAR accordingly.
2114 ac_fn_c_check_header_compile
()
2116 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \
${$3+:} false
; then :
2120 $as_echo_n "(cached) " >&6
2122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2127 if ac_fn_c_try_compile
"$LINENO"; then :
2132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 } # ac_fn_c_check_header_compile
2141 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2142 # -------------------------------------------
2143 # Tests whether TYPE exists after having included INCLUDES, setting cache
2144 # variable VAR accordingly.
2145 ac_fn_c_check_type
()
2147 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 $as_echo_n "checking for $2... " >&6; }
2150 if eval \
${$3+:} false
; then :
2151 $as_echo_n "(cached) " >&6
2154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2166 if ac_fn_c_try_compile
"$LINENO"; then :
2167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2179 if ac_fn_c_try_compile
"$LINENO"; then :
2184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193 } # ac_fn_c_check_type
2195 # ac_fn_c_check_func LINENO FUNC VAR
2196 # ----------------------------------
2197 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2198 ac_fn_c_check_func
()
2200 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if eval \
${$3+:} false
; then :
2204 $as_echo_n "(cached) " >&6
2206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2208 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2210 #define $2 innocuous_$2
2212 /* System header to define __stub macros and hopefully few prototypes,
2213 which can conflict with char $2 (); below.
2214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2215 <limits.h> exists even on freestanding compilers. */
2218 # include <limits.h>
2220 # include <assert.h>
2225 /* Override any GCC internal prototype to avoid an error.
2226 Use char because int might match the return type of a GCC
2227 builtin and then its argument prototype would still apply. */
2232 /* The GNU C library defines this for functions which it implements
2233 to always fail with ENOSYS. Some functions are actually named
2234 something starting with __ and the normal name is an alias. */
2235 #if defined __stub_$2 || defined __stub___$2
2247 if ac_fn_c_try_link
"$LINENO"; then :
2252 rm -f core conftest.err conftest.
$ac_objext \
2253 conftest
$ac_exeext conftest.
$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 } # ac_fn_c_check_func
2261 cat >config.log
<<_ACEOF
2262 This file contains any messages produced by compilers while
2263 running configure, to aid debugging if configure makes a mistake.
2265 It was created by $as_me, which was
2266 generated by GNU Autoconf 2.69. Invocation command line was
2278 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2279 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2280 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2281 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2282 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2284 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2285 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2287 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2288 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2289 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2290 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2291 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2292 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2293 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir
=.
2302 $as_echo "PATH: $as_dir"
2318 # Keep a trace of the command line.
2319 # Strip out --no-create and --no-recursion so they do not pile up.
2320 # Strip out --silent because we don't want to record it for future runs.
2321 # Also quote any args containing shell meta-characters.
2322 # Make two passes to allow for proper duplicate-argument suppression.
2326 ac_must_keep_next
=false
2332 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2333 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2334 |
-silent |
--silent |
--silen |
--sile |
--sil)
2337 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2340 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2342 as_fn_append ac_configure_args1
" '$ac_arg'"
2343 if test $ac_must_keep_next = true
; then
2344 ac_must_keep_next
=false
# Got value, back to normal.
2347 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2348 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2349 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2350 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2351 case "$ac_configure_args0 " in
2352 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2355 -* ) ac_must_keep_next
=true
;;
2358 as_fn_append ac_configure_args
" '$ac_arg'"
2363 { ac_configure_args0
=; unset ac_configure_args0
;}
2364 { ac_configure_args1
=; unset ac_configure_args1
;}
2366 # When interrupted or exit'd, cleanup temporary files, and complete
2367 # config.log. We remove comments because anyway the quotes in there
2368 # would cause problems or look ugly.
2369 # WARNING: Use '\'' to represent an apostrophe within the trap.
2370 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2371 trap 'exit_status=$?
2372 # Save into config.log some information that might help in debugging.
2376 $as_echo "## ---------------- ##
2377 ## Cache variables. ##
2378 ## ---------------- ##"
2380 # The following way of writing the cache mishandles newlines in values,
2382 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2383 eval ac_val=\$$ac_var
2387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2388 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2391 _ | IFS | as_nl) ;; #(
2392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2393 *) { eval $ac_var=; unset $ac_var;} ;;
2398 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2399 *${as_nl}ac_space=\ *)
2401 "s/'\''/'\''\\\\'\'''\''/g;
2402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2412 $as_echo "## ----------------- ##
2413 ## Output variables. ##
2414 ## ----------------- ##"
2416 for ac_var in $ac_subst_vars
2418 eval ac_val=\$$ac_var
2420 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 $as_echo "$ac_var='\''$ac_val'\''"
2426 if test -n "$ac_subst_files"; then
2427 $as_echo "## ------------------- ##
2428 ## File substitutions. ##
2429 ## ------------------- ##"
2431 for ac_var
in $ac_subst_files
2433 eval ac_val
=\$
$ac_var
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 $as_echo "$ac_var='\''$ac_val'\''"
2442 if test -s confdefs.h; then
2443 $as_echo "## ----------- ##
2450 test "$ac_signal" != 0 &&
2451 $as_echo "$as_me: caught signal $ac_signal"
2452 $as_echo "$as_me: exit $exit_status"
2454 rm -f core *.core core.conftest.* &&
2455 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 for ac_signal
in 1 2 13 15; do
2459 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2464 rm -f -r conftest
* confdefs.h
2466 $as_echo "/* confdefs.h */" > confdefs.h
2468 # Predefined preprocessor variables.
2470 cat >>confdefs.h
<<_ACEOF
2471 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 cat >>confdefs.h
<<_ACEOF
2475 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 cat >>confdefs.h
<<_ACEOF
2479 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 cat >>confdefs.h
<<_ACEOF
2483 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 cat >>confdefs.h
<<_ACEOF
2487 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 cat >>confdefs.h
<<_ACEOF
2491 #define PACKAGE_URL "$PACKAGE_URL"
2495 # Let the site file select an alternate cache file if it wants to.
2496 # Prefer an explicitly selected file to automatically selected ones.
2499 if test -n "$CONFIG_SITE"; then
2500 # We do not want a PATH search for config.site.
2501 case $CONFIG_SITE in #((
2502 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2503 */*) ac_site_file1
=$CONFIG_SITE;;
2504 *) ac_site_file1
=.
/$CONFIG_SITE;;
2506 elif test "x$prefix" != xNONE
; then
2507 ac_site_file1
=$prefix/share
/config.site
2508 ac_site_file2
=$prefix/etc
/config.site
2510 ac_site_file1
=$ac_default_prefix/share
/config.site
2511 ac_site_file2
=$ac_default_prefix/etc
/config.site
2513 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2515 test "x$ac_site_file" = xNONE
&& continue
2516 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2518 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2519 sed 's/^/| /' "$ac_site_file" >&5
2521 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 as_fn_error $?
"failed to load site script $ac_site_file
2524 See \`config.log' for more details" "$LINENO" 5; }
2528 if test -r "$cache_file"; then
2529 # Some versions of bash will fail to source /dev/null (special files
2530 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2531 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2533 $as_echo "$as_me: loading cache $cache_file" >&6;}
2535 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2536 *) .
"./$cache_file";;
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2541 $as_echo "$as_me: creating cache $cache_file" >&6;}
2545 # Check that the precious variables saved in the cache have kept the same
2547 ac_cache_corrupted
=false
2548 for ac_var
in $ac_precious_vars; do
2549 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2550 eval ac_new_set
=\
$ac_env_${ac_var}_set
2551 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2552 eval ac_new_val
=\
$ac_env_${ac_var}_value
2553 case $ac_old_set,$ac_new_set in
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2557 ac_cache_corrupted
=: ;;
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2561 ac_cache_corrupted
=: ;;
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
2565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w
=`echo x $ac_old_val`
2567 ac_new_val_w
=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted
=:
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\
$ac_old_val
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2586 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2587 *) ac_arg
=$ac_var=$ac_new_val ;;
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2591 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2595 if $ac_cache_corrupted; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2600 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2607 ac_cpp
='$CPP $CPPFLAGS'
2608 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2618 # Check whether --with-64bit was given.
2619 if test "${with_64bit+set}" = set; then :
2620 withval
=$with_64bit; use_64bit
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-64bit=$withval"
2625 # Check whether --with-optimization was given.
2626 if test "${with_optimization+set}" = set; then :
2627 withval
=$with_optimization; use_optimization
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-optimization=$withval"
2634 # Check whether --with-threads was given.
2635 if test "${with_threads+set}" = set; then :
2636 withval
=$with_threads; do_threads
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-threads=$withval"
2643 # Check whether --with-secure-sockets was given.
2644 if test "${with_secure_sockets+set}" = set; then :
2645 withval
=$with_secure_sockets; do_secure
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2652 # Check whether --with-static-probes was given.
2653 if test "${with_static_probes+set}" = set; then :
2654 withval
=$with_static_probes; do_probes
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2661 # Check whether --with-infiniband was given.
2662 if test "${with_infiniband+set}" = set; then :
2663 withval
=$with_infiniband; do_infiniband
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2670 # Check whether --with-user was given.
2671 if test "${with_user+set}" = set; then :
2672 withval
=$with_user; pcp_user
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-user-account=$withval"
2680 # Check whether --with-group was given.
2681 if test "${with_group+set}" = set; then :
2682 withval
=$with_group; pcp_group
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-group-account=$withval"
2690 # Check whether --with-discovery was given.
2691 if test "${with_discovery+set}" = set; then :
2692 withval
=$with_discovery; do_discovery
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-discovery=$withval"
2699 # Check whether --with-systemd was given.
2700 if test "${with_systemd+set}" = set; then :
2701 withval
=$with_systemd; do_systemd
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-systemd=$withval"
2708 # Check whether --with-qt was given.
2709 if test "${with_qt+set}" = set; then :
2710 withval
=$with_qt; do_qt
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-qt=$withval"
2717 # Check whether --with-python was given.
2718 if test "${with_python+set}" = set; then :
2719 withval
=$with_python; do_python
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python=$withval"
2726 # Check whether --with-python3 was given.
2727 if test "${with_python3+set}" = set; then :
2728 withval
=$with_python3; do_python3
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python3=$withval"
2735 # Check whether --with-books was given.
2736 if test "${with_books+set}" = set; then :
2737 withval
=$with_books; do_books
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books=$withval"
2744 # Check whether --with-books-brand was given.
2745 if test "${with_books_brand+set}" = set; then :
2746 withval
=$with_books_brand; do_books_brand
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2748 do_books_brand
=common
2753 # Check whether --with-papi was given.
2754 if test "${with_papi+set}" = set; then :
2755 withval
=$with_papi; do_papi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-papi=$withval"
2762 # Check whether --with-perfevent was given.
2763 if test "${with_perfevent+set}" = set; then :
2764 withval
=$with_perfevent; do_perfevent
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2771 # Check whether --with-pmdajson was given.
2772 if test "${with_pmdajson+set}" = set; then :
2773 withval
=$with_pmdajson; do_pmdajson
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2780 # Check whether --with-pmdasnmp was given.
2781 if test "${with_pmdasnmp+set}" = set; then :
2782 withval
=$with_pmdasnmp; do_pmdasnmp
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2789 # Check whether --with-manager was given.
2790 if test "${with_manager+set}" = set; then :
2791 withval
=$with_manager; do_manager
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-manager=$withval"
2798 # Check whether --with-webapi was given.
2799 if test "${with_webapi+set}" = set; then :
2800 withval
=$with_webapi; do_webapi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webapi=$withval"
2807 # Check whether --with-webjs was given.
2808 if test "${with_webjs+set}" = set; then :
2809 withval
=$with_webjs; do_webjs
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webjs=$withval"
2816 # Check whether --with-vector was given.
2817 if test "${with_vector+set}" = set; then :
2818 withval
=$with_vector; do_vector
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-vector=$withval"
2825 # Check whether --with-parfait was given.
2826 if test "${with_parfait+set}" = set; then :
2827 withval
=$with_parfait; do_parfait
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-parfait=$withval"
2835 # Check whether --with-make was given.
2836 if test "${with_make+set}" = set; then :
2837 withval
=$with_make; MAKE
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-make=$withval"
2844 # Check whether --with-tar was given.
2845 if test "${with_tar+set}" = set; then :
2846 withval
=$with_tar; TAR
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-tar=$withval"
2853 # Check whether --with-zip was given.
2854 if test "${with_zip+set}" = set; then :
2855 withval
=$with_zip; ZIP
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-zip=$withval"
2862 # Note: the following environment variables may be
2863 # set to override the defaults.
2865 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2869 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2870 if test -f "$ac_dir/install-sh"; then
2872 ac_install_sh
="$ac_aux_dir/install-sh -c"
2874 elif test -f "$ac_dir/install.sh"; then
2876 ac_install_sh
="$ac_aux_dir/install.sh -c"
2878 elif test -f "$ac_dir/shtool"; then
2880 ac_install_sh
="$ac_aux_dir/shtool install -c"
2884 if test -z "$ac_aux_dir"; then
2885 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2888 # These three variables are undocumented and unsupported,
2889 # and are intended to be withdrawn in a future Autoconf release.
2890 # They can cause serious problems if a builder's source tree is in a directory
2891 # whose full name contains unusual characters.
2892 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2893 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2894 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2897 # Make sure we can run config.sub.
2898 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2899 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2902 $as_echo_n "checking build system type... " >&6; }
2903 if ${ac_cv_build+:} false
; then :
2904 $as_echo_n "(cached) " >&6
2906 ac_build_alias
=$build_alias
2907 test "x$ac_build_alias" = x
&&
2908 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2909 test "x$ac_build_alias" = x
&&
2910 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2911 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2912 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2916 $as_echo "$ac_cv_build" >&6; }
2917 case $ac_cv_build in
2919 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2922 ac_save_IFS
=$IFS; IFS
='-'
2928 # Remember, the first character of IFS is used to create $*,
2929 # except with old shells:
2932 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2936 $as_echo_n "checking host system type... " >&6; }
2937 if ${ac_cv_host+:} false
; then :
2938 $as_echo_n "(cached) " >&6
2940 if test "x$host_alias" = x
; then
2941 ac_cv_host
=$ac_cv_build
2943 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2944 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2949 $as_echo "$ac_cv_host" >&6; }
2952 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2955 ac_save_IFS
=$IFS; IFS
='-'
2961 # Remember, the first character of IFS is used to create $*,
2962 # except with old shells:
2965 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2969 $as_echo_n "checking target system type... " >&6; }
2970 if ${ac_cv_target+:} false
; then :
2971 $as_echo_n "(cached) " >&6
2973 if test "x$target_alias" = x
; then
2974 ac_cv_target
=$ac_cv_host
2976 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2977 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2982 $as_echo "$ac_cv_target" >&6; }
2983 case $ac_cv_target in
2985 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2987 target
=$ac_cv_target
2988 ac_save_IFS
=$IFS; IFS
='-'
2994 # Remember, the first character of IFS is used to create $*,
2995 # except with old shells:
2998 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3001 # The aliases save the names the user supplied, while $host etc.
3002 # will get canonicalized.
3003 test -n "$target_alias" &&
3004 test "$program_prefix$program_suffix$program_transform_name" = \
3006 program_prefix
=${target_alias}-
3008 if test -z "$target"
3011 FATAL ERROR: Cannot guess your target, try explicit specification
3012 using --target or mailto: pcp@groups.io to ask.'
3013 rm -rf conftest conftest.
*
3016 target
=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3017 target_os
=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3018 target_os
=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3020 build
=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3021 build_os
=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3022 build_os
=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3025 echo Building on
$build for $target
3026 echo "Build: os=$build_os cpu=$build_cpu"
3027 echo "Target: os=$target_os cpu=$target_cpu"
3029 if test "$cross_compiling" = "yes"; then
3030 if test -f .
/config.
$target_os; then
3031 . .
/config.
$target_os
3035 FATAL ERROR: Cannot perform cross-compilation without a file to source
3036 configuration information from (config.$target_os is missing)"
3037 rm -rf conftest conftest.
*
3044 target_distro
=$target_os
3045 if test $target_os = linux
3048 $as_echo "#define IS_LINUX 1" >>confdefs.h
3050 test -f /etc
/SuSE-release
&& target_distro
=suse
3051 test -f /etc
/fedora-release
&& target_distro
=fedora
3052 test -f /etc
/redhat-release
&& target_distro
=redhat
3053 test -f /etc
/debian_version
&& target_distro
=debian
3054 test -f /etc
/slackware-version
&& target_distro
=slackware
3055 test -f /etc
/gentoo-release
&& target_distro
=gentoo
3056 test -f /etc
/mandriva-release
&& target_distro
=mandriva
3057 test -f /etc
/arch-release
&& target_distro
=arch
3058 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3059 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3060 pcp_ps_all_flags
=-efw
3061 elif test $target_os = darwin
3064 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3066 target_distro
=macosx
3067 version
=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3068 CFLAGS
="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3069 if test $version -ge 106
3072 CFLAGS
="$CFLAGS -arch x86_64"
3075 pcp_platform_paths
='/usr/local/bin'
3076 pcp_ps_all_flags
="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3077 elif test $target_os = mingw
3080 $as_echo "#define IS_MINGW 1" >>confdefs.h
3082 CFLAGS
="-fno-strict-aliasing"
3083 pcp_platform_paths
=''
3084 pcp_ps_all_flags
=-efW
3085 elif test $target_os = solaris
3088 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3090 export CFLAGS_IF_GCC
="-fPIC -fno-strict-aliasing"
3091 export CFLAGS_IF_SUNCC
="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3092 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3093 pcp_ps_all_flags
=-ef
3094 elif test $target_os = aix
3097 $as_echo "#define IS_AIX 1" >>confdefs.h
3099 export CFLAGS
="-qcpluscmt"
3100 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3101 pcp_ps_all_flags
=-ef
3102 elif test $target_os = freebsd ||
test $target_os = kfreebsd
3105 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3107 test -f /etc
/debian_version
&& target_distro
=debian
3108 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3109 if test $target_os = kfreebsd
3111 pcp_ps_all_flags
=-efw
3113 pcp_ps_all_flags
=auxww
3115 pcp_platform_paths
='/usr/bin/X11'
3116 test -d /usr
/local
/bin
&& pcp_platform_paths
="$pcp_platform_paths:/usr/local/bin"
3117 test -d /usr
/bsd
&& pcp_platform_paths
="$pcp_platform_paths:/usr/bsd"
3118 elif test $target_os = gnu
3121 $as_echo "#define IS_GNU 1" >>confdefs.h
3123 test -f /etc
/debian_version
&& target_distro
=debian
3124 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3125 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3126 pcp_ps_all_flags
=-efw
3127 elif test $target_os = netbsdelf
3131 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3133 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3134 pcp_platform_paths
='/usr/pkg/bin'
3135 pcp_ps_all_flags
=auxww
3136 elif test $target_os = openbsd
3140 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3142 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3143 pcp_platform_paths
='/usr/local/bin'
3144 pcp_ps_all_flags
=auxww
3147 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3148 rm -rf conftest conftest.
*
3154 if test "$use_optimization" = no
3156 optimization
="-O0 -g"
3158 optimization
="-O2 -g"
3169 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3172 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
3176 $as_echo_n "(cached) " >&6
3180 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
3183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir
=.
3188 for ac_exec_ext
in '' $ac_executable_extensions; do
3189 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
3202 if test -n "$PKG_CONFIG"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3204 $as_echo "$PKG_CONFIG" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3212 if test -z "$ac_cv_path_PKG_CONFIG"; then
3213 ac_pt_PKG_CONFIG
=$PKG_CONFIG
3214 # Extract the first word of "pkg-config", so it can be a program name with args.
3215 set dummy pkg-config
; ac_word
=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
3219 $as_echo_n "(cached) " >&6
3221 case $ac_pt_PKG_CONFIG in
3223 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir
=.
3231 for ac_exec_ext
in '' $ac_executable_extensions; do
3232 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
3245 if test -n "$ac_pt_PKG_CONFIG"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3247 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3253 if test "x$ac_pt_PKG_CONFIG" = x
; then
3256 case $cross_compiling:$ac_tool_warned in
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3260 ac_tool_warned
=yes ;;
3262 PKG_CONFIG
=$ac_pt_PKG_CONFIG
3265 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
3269 if test -n "$PKG_CONFIG"; then
3270 _pkg_min_version
=0.9.0
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3272 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3273 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3282 if test -z "$PKG_CONFIG"; then
3283 as_fn_error $?
"cannot find a 'pkg-config' command" "$LINENO" 5
3288 ac_cpp
='$CPP $CPPFLAGS'
3289 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3292 if test -n "$ac_tool_prefix"; then
3293 for ac_prog
in suncc egcc gcc cc
3295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3296 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_prog_CC+:} false
; then :
3300 $as_echo_n "(cached) " >&6
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC
="$CC" # Let the user override the test.
3305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir
=.
3310 for ac_exec_ext
in '' $ac_executable_extensions; do
3311 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3332 test -n "$CC" && break
3335 if test -z "$CC"; then
3337 for ac_prog
in suncc egcc gcc cc
3339 # Extract the first word of "$ac_prog", so it can be a program name with args.
3340 set dummy
$ac_prog; ac_word
=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3344 $as_echo_n "(cached) " >&6
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir
=.
3354 for ac_exec_ext
in '' $ac_executable_extensions; do
3355 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_ac_ct_CC
="$ac_prog"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3376 test -n "$ac_ct_CC" && break
3379 if test "x$ac_ct_CC" = x
; then
3382 case $cross_compiling:$ac_tool_warned in
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned
=yes ;;
3393 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error $?
"no acceptable C compiler found in \$PATH
3396 See \`config.log' for more details" "$LINENO" 5; }
3398 # Provide some information about the compiler.
3399 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3402 for ac_option
in --version -v -V -qversion; do
3403 { { ac_try
="$ac_compiler $ac_option >&5"
3405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3412 if test -s conftest.err; then
3414 ... rest of stderr output deleted ...
3415 10q' conftest.err >conftest.er1
3416 cat conftest.er1 >&5
3418 rm -f conftest.er1 conftest.err
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3434 ac_clean_files_save=$ac_clean_files
3435 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3436 # Try to create an executable without -o first, disregard a.out.
3437 # It will help us diagnose broken compilers, and finding out an intuition
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3440 $as_echo_n "checking whether the C compiler works... " >&6; }
3441 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3443 # The possible output files:
3444 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3447 for ac_file in $ac_files
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3456 if { { ac_try="$ac_link_default"
3458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3459 *) ac_try_echo
=$ac_try;;
3461 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_link_default") 2>&5
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; then :
3467 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3468 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3469 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3470 # so that the user can short-circuit this test for compilers unknown to
3472 for ac_file
in $ac_files ''
3474 test -f "$ac_file" ||
continue
3476 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3479 # We found the default executable, but exeext='' is most
3483 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3485 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 # We set ac_cv_exeext here because the later test for it is not
3488 # safe: cross compilers may not add the suffix if given an `-o'
3489 # argument, so we may need to know it at that point already.
3490 # Even if this section looks crufty: it has the advantage of
3497 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3502 if test -z "$ac_file"; then :
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.
$ac_ext >&5
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error
77 "C compiler cannot create executables
3511 See \`config.log' for more details" "$LINENO" 5; }
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3514 $as_echo "yes" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3517 $as_echo_n "checking for C compiler default output file name... " >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3519 $as_echo "$ac_file" >&6; }
3520 ac_exeext
=$ac_cv_exeext
3522 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3523 ac_clean_files
=$ac_clean_files_save
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3525 $as_echo_n "checking for suffix of executables... " >&6; }
3526 if { { ac_try
="$ac_link"
3528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link") 2>&5
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3538 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3539 # work properly (i.e., refer to `conftest.exe'), while it won't with
3541 for ac_file
in conftest.exe conftest conftest.
*; do
3542 test -f "$ac_file" ||
continue
3544 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3545 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3554 See \`config.log' for more details" "$LINENO" 5; }
3556 rm -f conftest conftest
$ac_cv_exeext
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3558 $as_echo "$ac_cv_exeext" >&6; }
3560 rm -f conftest.
$ac_ext
3561 EXEEXT
=$ac_cv_exeext
3563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3569 FILE *f = fopen ("conftest.out", "w");
3570 return ferror (f) || fclose (f) != 0;
3576 ac_clean_files
="$ac_clean_files conftest.out"
3577 # Check that the compiler produces executables we can run. If not, either
3578 # the compiler is broken, or we cross compile.
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3580 $as_echo_n "checking whether we are cross compiling... " >&6; }
3581 if test "$cross_compiling" != yes; then
3582 { { ac_try
="$ac_link"
3584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link") 2>&5
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }
3593 if { ac_try='./conftest$ac_cv_exeext'
3594 { { case "(($ac_try" in
3595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3596 *) ac_try_echo
=$ac_try;;
3598 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_try") 2>&5
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; }; then
3606 if test "$cross_compiling" = maybe
; then
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $?
"cannot run C compiled programs.
3612 If you meant to cross compile, use \`--host'.
3613 See \`config.log' for more details" "$LINENO" 5; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618 $as_echo "$cross_compiling" >&6; }
3620 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3621 ac_clean_files
=$ac_clean_files_save
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3623 $as_echo_n "checking for suffix of object files... " >&6; }
3624 if ${ac_cv_objext+:} false
; then :
3625 $as_echo_n "(cached) " >&6
3627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3638 rm -f conftest.o conftest.obj
3639 if { { ac_try
="$ac_compile"
3641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_compile") 2>&5
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 for ac_file in conftest.o conftest.obj conftest.*; do
3651 test -f "$ac_file" || continue;
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3665 See \
`config.log' for more details" "$LINENO" 5; }
3667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3670 $as_echo "$ac_cv_objext" >&6; }
3671 OBJEXT=$ac_cv_objext
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675 if ${ac_cv_c_compiler_gnu+:} false; then :
3676 $as_echo_n "(cached) " >&6
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3692 if ac_fn_c_try_compile "$LINENO"; then :
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3702 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3703 if test $ac_compiler_gnu = yes; then
3708 ac_test_CFLAGS=${CFLAGS+set}
3709 ac_save_CFLAGS=$CFLAGS
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3711 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3712 if ${ac_cv_prog_cc_g+:} false; then :
3713 $as_echo_n "(cached) " >&6
3715 ac_save_c_werror_flag=$ac_c_werror_flag
3716 ac_c_werror_flag=yes
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3730 if ac_fn_c_try_compile "$LINENO"; then :
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3745 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_c_werror_flag=$ac_save_c_werror_flag
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3761 if ac_fn_c_try_compile "$LINENO"; then :
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_c_werror_flag=$ac_save_c_werror_flag
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3772 $as_echo "$ac_cv_prog_cc_g" >&6; }
3773 if test "$ac_test_CFLAGS" = set; then
3774 CFLAGS=$ac_save_CFLAGS
3775 elif test $ac_cv_prog_cc_g = yes; then
3776 if test "$GCC" = yes; then
3782 if test "$GCC" = yes; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3789 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3790 if ${ac_cv_prog_cc_c89+:} false; then :
3791 $as_echo_n "(cached) " >&6
3793 ac_cv_prog_cc_c89=no
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3801 struct buf { int x; };
3802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3803 static char *e (p, i)
3809 static char *f (char * (*g) (char **, int), char **p, ...)
3814 s = g (p, va_arg (v,int));
3819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3820 function prototypes and stuff, but not '\xHH' hex character constants.
3821 These don't provoke an error unfortunately, instead are silently treated
3822 as 'x'. The following induces an error, until -std is added to get
3823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3824 array size at least. It's necessary to write '\x00'==0 to get something
3825 that's true only with -std. */
3826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3829 inside strings and character constants. */
3831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3833 int test (int i, double x);
3834 struct s1 {int (*f) (int a);};
3835 struct s2 {int (*f) (double a);};
3836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3842 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3850 CC="$ac_save_CC $ac_arg"
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 ac_cv_prog_cc_c89=$ac_arg
3854 rm -f core conftest.err conftest.$ac_objext
3855 test "x$ac_cv_prog_cc_c89" != "xno" && break
3857 rm -f conftest.$ac_ext
3862 case "x$ac_cv_prog_cc_c89" in
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3865 $as_echo "none needed" >&6; } ;;
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3868 $as_echo "unsupported" >&6; } ;;
3870 CC="$CC $ac_cv_prog_cc_c89"
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3872 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3874 if test "x$ac_cv_prog_cc_c89" != xno; then :
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 if test $target_os = solaris
3886 # Extract the first word of "$CC", so it can be a program name with args.
3887 set dummy $CC; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_path_CCPATH+:} false; then :
3891 $as_echo_n "(cached) " >&6
3895 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3917 CCPATH=$ac_cv_path_CCPATH
3918 if test -n "$CCPATH"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3920 $as_echo "$CCPATH" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3928 if test "$GCC" = "yes"
3930 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3932 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3934 if test "$use_64bit" = "no"
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3939 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3944 CFLAGS="$CFLAGS -m64"
3945 LDFLAGS="$LDFLAGS -m64"
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3965 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3967 CFLAGS="-O $PCFLAGS"
3971 # Add some security-related gcc flags
3972 if echo "$CFLAGS" | grep stack-protector >/dev/null
3976 # Check whether --enable-ssp was given.
3977 if test "${enable_ssp+set}" = set; then :
3978 enableval=$enable_ssp;
3982 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3984 save_CFLAGS="$CFLAGS"
3985 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3990 if ac_fn_c_try_compile "$LINENO"; then :
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3993 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3994 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3998 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3999 CFLAGS="$save_CFLAGS"
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 # Check for even more security-related gcc/linker flags, useful for daemons
4010 # Check whether --enable-pie was given.
4011 if test "${enable_pie+set}" = set; then :
4012 enableval=$enable_pie;
4015 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4018 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4019 save_CFLAGS="$CFLAGS"
4020 save_LDFLAGS="$LDFLAGS"
4021 CFLAGS="$CFLAGS $PIECFLAGS"
4022 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4027 if ac_fn_c_try_link "$LINENO"; then :
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4030 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4035 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4040 rm -f core conftest.err conftest.$ac_objext \
4041 conftest$ac_exeext conftest.$ac_ext
4042 CFLAGS="$save_CFLAGS"
4043 LDFLAGS="$save_LDFLAGS"
4049 # Check for support for symbol hiding via gcc flags
4050 # Check whether --enable-visibility was given.
4051 if test "${enable_visibility+set}" = set; then :
4052 enableval=$enable_visibility;
4055 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4057 INVISIBILITY="-fvisibility=hidden"
4058 save_CFLAGS="$CFLAGS"
4059 CFLAGS="$CFLAGS -c $INVISIBILITY"
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 int visible () { return 0; }
4064 if ac_fn_c_try_compile "$LINENO"; then :
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4067 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4072 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 CFLAGS="$save_CFLAGS"
4083 ac_cpp='$CXXCPP $CPPFLAGS'
4084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4087 if test -z "$CXX"; then
4088 if test -n "$CCC"; then
4091 if test -n "$ac_tool_prefix"; then
4092 for ac_prog in eg++ g++ c++
4094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CXX+:} false; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -n "$CXX"; then
4102 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 if test -n "$CXX"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4124 $as_echo "$CXX" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4131 test -n "$CXX" && break
4134 if test -z "$CXX"; then
4136 for ac_prog in eg++ g++ c++
4138 # Extract the first word of "$ac_prog", so it can be a program name with args.
4139 set dummy $ac_prog; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4143 $as_echo_n "(cached) " >&6
4145 if test -n "$ac_ct_CXX"; then
4146 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_ac_ct_CXX="$ac_prog"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4166 if test -n "$ac_ct_CXX"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4168 $as_echo "$ac_ct_CXX" >&6; }
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4175 test -n "$ac_ct_CXX" && break
4178 if test "x$ac_ct_CXX" = x; then
4181 case $cross_compiling:$ac_tool_warned in
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4185 ac_tool_warned=yes ;;
4193 # Provide some information about the compiler.
4194 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4197 for ac_option in --version -v -V -qversion; do
4198 { { ac_try="$ac_compiler $ac_option >&5"
4200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4201 *) ac_try_echo
=$ac_try;;
4203 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4207 if test -s conftest.err
; then
4209 ... rest of stderr output deleted ...
4210 10q' conftest.err
>conftest.er1
4211 cat conftest.er1
>&5
4213 rm -f conftest.er1 conftest.err
4214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215 test $ac_status = 0; }
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4219 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4220 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4221 $as_echo_n "(cached) " >&6
4223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4237 if ac_fn_cxx_try_compile
"$LINENO"; then :
4242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4243 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4247 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4248 if test $ac_compiler_gnu = yes; then
4253 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4254 ac_save_CXXFLAGS
=$CXXFLAGS
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4256 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4257 if ${ac_cv_prog_cxx_g+:} false
; then :
4258 $as_echo_n "(cached) " >&6
4260 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4261 ac_cxx_werror_flag
=yes
4264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4275 if ac_fn_cxx_try_compile
"$LINENO"; then :
4276 ac_cv_prog_cxx_g
=yes
4279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4290 if ac_fn_cxx_try_compile
"$LINENO"; then :
4293 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4306 if ac_fn_cxx_try_compile
"$LINENO"; then :
4307 ac_cv_prog_cxx_g
=yes
4309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4314 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4317 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4318 if test "$ac_test_CXXFLAGS" = set; then
4319 CXXFLAGS
=$ac_save_CXXFLAGS
4320 elif test $ac_cv_prog_cxx_g = yes; then
4321 if test "$GXX" = yes; then
4327 if test "$GXX" = yes; then
4334 ac_cpp
='$CPP $CPPFLAGS'
4335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4342 $as_echo_n "checking for working C++ compiler... " >&6; }
4344 ac_cpp
='$CXXCPP $CPPFLAGS'
4345 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4356 const char gday[] = "G'day, world\n";
4361 if ac_fn_cxx_try_compile
"$LINENO"; then :
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363 $as_echo "yes" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4371 ac_cpp
='$CPP $CPPFLAGS'
4372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4377 # Prevent shared libraries from being built for libpcp and other core libraries
4378 # Check whether --enable-shared was given.
4379 if test "${enable_shared+set}" = set; then :
4380 enableval
=$enable_shared; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --disable-shared=$withval"
4386 test -z "$AWK" && for ac_prog
in gawk
awk
4388 # Extract the first word of "$ac_prog", so it can be a program name with args.
4389 set dummy
$ac_prog; ac_word
=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if ${ac_cv_path_AWK+:} false
; then :
4393 $as_echo_n "(cached) " >&6
4397 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
4400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir
=.
4405 for ac_exec_ext
in '' $ac_executable_extensions; do
4406 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 if test -n "$AWK"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4421 $as_echo "$AWK" >&6; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4428 test -n "$AWK" && break
4430 test -n "$AWK" || AWK
="/usr/bin/awk"
4443 if test -z "$SED"; then
4444 # Extract the first word of "sed", so it can be a program name with args.
4445 set dummy
sed; ac_word
=$2
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 $as_echo_n "checking for $ac_word... " >&6; }
4448 if ${ac_cv_path_SED+:} false
; then :
4449 $as_echo_n "(cached) " >&6
4453 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
4456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir
=.
4461 for ac_exec_ext
in '' $ac_executable_extensions; do
4462 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="/bin/sed"
4476 if test -n "$SED"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4478 $as_echo "$SED" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4486 if test ! -x "$SED"; then
4487 as_fn_error $?
"cannot find a valid 'sed' command." "$LINENO" 5
4492 if test -z "$ECHO"; then
4493 # Extract the first word of "echo", so it can be a program name with args.
4494 set dummy
echo; ac_word
=$2
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496 $as_echo_n "checking for $ac_word... " >&6; }
4497 if ${ac_cv_path_ECHO+:} false
; then :
4498 $as_echo_n "(cached) " >&6
4502 ac_cv_path_ECHO
="$ECHO" # Let the user override the test with a path.
4505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir
=.
4510 for ac_exec_ext
in '' $ac_executable_extensions; do
4511 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_path_ECHO
="$as_dir/$ac_word$ac_exec_ext"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO
="/bin/echo"
4524 ECHO
=$ac_cv_path_ECHO
4525 if test -n "$ECHO"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4527 $as_echo "$ECHO" >&6; }
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4535 if test ! -x "$ECHO"; then
4536 as_fn_error $?
"cannot find a valid 'echo' command." "$LINENO" 5
4541 if test -z "$FIND"; then
4542 # Extract the first word of "find", so it can be a program name with args.
4543 set dummy
find; ac_word
=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_path_FIND+:} false
; then :
4547 $as_echo_n "(cached) " >&6
4551 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
4554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir
=.
4559 for ac_exec_ext
in '' $ac_executable_extensions; do
4560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="/usr/bin/find"
4573 FIND
=$ac_cv_path_FIND
4574 if test -n "$FIND"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4576 $as_echo "$FIND" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4584 if test ! -x "$FIND"; then
4585 as_fn_error $?
"cannot find a valid 'find' command." "$LINENO" 5
4590 if test -z "$WHICH"; then
4591 # Extract the first word of "which", so it can be a program name with args.
4592 set dummy
which; ac_word
=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_path_WHICH+:} false
; then :
4596 $as_echo_n "(cached) " >&6
4600 ac_cv_path_WHICH
="$WHICH" # Let the user override the test with a path.
4603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir
=.
4608 for ac_exec_ext
in '' $ac_executable_extensions; do
4609 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_path_WHICH
="$as_dir/$ac_word$ac_exec_ext"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH
="/usr/bin/which"
4622 WHICH
=$ac_cv_path_WHICH
4623 if test -n "$WHICH"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4625 $as_echo "$WHICH" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4633 if test ! -x "$WHICH"; then
4634 as_fn_error $?
"cannot find a valid 'which' command." "$LINENO" 5
4639 for ac_prog
in flex
lex
4641 # Extract the first word of "$ac_prog", so it can be a program name with args.
4642 set dummy
$ac_prog; ac_word
=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if ${ac_cv_prog_LEX+:} false
; then :
4646 $as_echo_n "(cached) " >&6
4648 if test -n "$LEX"; then
4649 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir
=.
4656 for ac_exec_ext
in '' $ac_executable_extensions; do
4657 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4658 ac_cv_prog_LEX
="$ac_prog"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 if test -n "$LEX"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4671 $as_echo "$LEX" >&6; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4678 test -n "$LEX" && break
4680 test -n "$LEX" || LEX
=":"
4682 if test "x$LEX" != "x:"; then
4683 cat >conftest.l
<<_ACEOF
4689 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4690 yyless ((input () != 0)); }
4691 f { unput (yytext[0]); }
4692 . { BEGIN INITIAL; }
4694 #ifdef YYTEXT_POINTER
4695 extern char *yytext;
4700 return ! yylex () + ! yywrap ();
4703 { { ac_try
="$LEX conftest.l"
4705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709 $as_echo "$ac_try_echo"; } >&5
4710 (eval "$LEX conftest.l") 2>&5
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4715 $as_echo_n "checking lex output file root... " >&6; }
4716 if ${ac_cv_prog_lex_root+:} false; then :
4717 $as_echo_n "(cached) " >&6
4720 if test -f lex.yy.c; then
4721 ac_cv_prog_lex_root=lex.yy
4722 elif test -f lexyy.c; then
4723 ac_cv_prog_lex_root=lexyy
4725 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4729 $as_echo "$ac_cv_prog_lex_root" >&6; }
4730 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4732 if test -z "${LEXLIB+set}"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4734 $as_echo_n "checking lex library... " >&6; }
4735 if ${ac_cv_lib_lex+:} false; then :
4736 $as_echo_n "(cached) " >&6
4740 ac_cv_lib_lex='none needed'
4741 for ac_lib in '' -lfl -ll; do
4742 LIBS="$ac_lib $ac_save_LIBS"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 `cat $LEX_OUTPUT_ROOT.c
`
4747 if ac_fn_c_try_link "$LINENO"; then :
4748 ac_cv_lib_lex=$ac_lib
4750 rm -f core conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752 test "$ac_cv_lib_lex" != 'none needed' && break
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4758 $as_echo "$ac_cv_lib_lex" >&6; }
4759 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4764 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4765 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4766 $as_echo_n "(cached) " >&6
4768 # POSIX says lex can declare yytext either as a pointer or an array; the
4769 # default is implementation-dependent. Figure out which it is, since
4770 # not all implementations provide the %pointer and %array declarations.
4771 ac_cv_prog_lex_yytext_pointer=no
4773 LIBS="$LEXLIB $ac_save_LIBS"
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4777 #define YYTEXT_POINTER 1
4778 `cat $LEX_OUTPUT_ROOT.c
`
4780 if ac_fn_c_try_link "$LINENO"; then :
4781 ac_cv_prog_lex_yytext_pointer=yes
4783 rm -f core conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4789 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4790 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4792 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4795 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4798 lex=`$echo $LEX |
awk '{print $1}'`
4800 if test ! -x "$lex"; then
4801 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4806 for ac_prog in 'bison -y' byacc
4808 # Extract the first word of "$ac_prog", so it can be a program name with args.
4809 set dummy $ac_prog; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if ${ac_cv_prog_YACC+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 if test -n "$YACC"; then
4816 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_YACC="$ac_prog"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 YACC=$ac_cv_prog_YACC
4836 if test -n "$YACC"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4838 $as_echo "$YACC" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4845 test -n "$YACC" && break
4847 test -n "$YACC" || YACC="yacc"
4849 yacc=`$echo $YACC |
awk '{print $1}'`
4850 yacc=`$which "$yacc"`
4851 if test ! -x "$yacc"; then
4852 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4858 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4859 if test $target_os = mingw; then
4860 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4862 if test -x $d/sort; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4871 $as_echo "$sort" >&6; }
4876 echo "FATAL ERROR: $sort -n failed!"
4877 rm -rf conftest conftest.*
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4883 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4884 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4886 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4890 $as_echo "neither?" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4894 $as_echo " -n" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4899 $as_echo "backslash-c" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4905 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4906 if ${ac_cv_path_GREP+:} false; then :
4907 $as_echo_n "(cached) " >&6
4909 if test -z "$GREP"; then
4910 ac_path_GREP_found=false
4911 # Loop through the user's path and test for each of PROGNAME-LIST
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4916 test -z "$as_dir" && as_dir=.
4917 for ac_prog in grep ggrep; do
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4920 as_fn_executable_p "$ac_path_GREP" || continue
4921 # Check for GNU ac_path_GREP and select it if it is found.
4922 # Check for GNU $ac_path_GREP
4923 case `"$ac_path_GREP" --version 2>&1` in
4925 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4928 $as_echo_n 0123456789 >"conftest.in"
4931 cat "conftest.in" "conftest.in" >"conftest.tmp"
4932 mv "conftest.tmp" "conftest.in"
4933 cp "conftest.in" "conftest.nl"
4934 $as_echo 'GREP' >> "conftest.nl"
4935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4937 as_fn_arith $ac_count + 1 && ac_count=$as_val
4938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4939 # Best one so far, save it but keep looking for a better one
4940 ac_cv_path_GREP="$ac_path_GREP"
4941 ac_path_GREP_max=$ac_count
4943 # 10*(2^10) chars as input seems more than enough
4944 test $ac_count -gt 10 && break
4946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4949 $ac_path_GREP_found && break 3
4954 if test -z "$ac_cv_path_GREP"; then
4955 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4958 ac_cv_path_GREP=$GREP
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4963 $as_echo "$ac_cv_path_GREP" >&6; }
4964 GREP="$ac_cv_path_GREP"
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4968 $as_echo_n "checking for egrep... " >&6; }
4969 if ${ac_cv_path_EGREP+:} false; then :
4970 $as_echo_n "(cached) " >&6
4972 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4973 then ac_cv_path_EGREP="$GREP -E"
4975 if test -z "$EGREP"; then
4976 ac_path_EGREP_found=false
4977 # Loop through the user's path and test for each of PROGNAME-LIST
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4982 test -z "$as_dir" && as_dir=.
4983 for ac_prog in egrep; do
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4986 as_fn_executable_p "$ac_path_EGREP" || continue
4987 # Check for GNU ac_path_EGREP and select it if it is found.
4988 # Check for GNU $ac_path_EGREP
4989 case `"$ac_path_EGREP" --version 2>&1` in
4991 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4994 $as_echo_n 0123456789 >"conftest.in"
4997 cat "conftest.in" "conftest.in" >"conftest.tmp"
4998 mv "conftest.tmp" "conftest.in"
4999 cp "conftest.in" "conftest.nl"
5000 $as_echo 'EGREP' >> "conftest.nl"
5001 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5003 as_fn_arith $ac_count + 1 && ac_count=$as_val
5004 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5005 # Best one so far, save it but keep looking for a better one
5006 ac_cv_path_EGREP="$ac_path_EGREP"
5007 ac_path_EGREP_max=$ac_count
5009 # 10*(2^10) chars as input seems more than enough
5010 test $ac_count -gt 10 && break
5012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5015 $ac_path_EGREP_found && break 3
5020 if test -z "$ac_cv_path_EGREP"; then
5021 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5024 ac_cv_path_EGREP=$EGREP
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5030 $as_echo "$ac_cv_path_EGREP" >&6; }
5031 EGREP="$ac_cv_path_EGREP"
5035 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5038 for ac_prog in dtrace
5040 # Extract the first word of "$ac_prog", so it can be a program name with args.
5041 set dummy $ac_prog; 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_DTRACE+:} false; then :
5045 $as_echo_n "(cached) " >&6
5047 if test -n "$DTRACE"; then
5048 ac_cv_prog_DTRACE="$DTRACE" # 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_DTRACE="$ac_prog"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 DTRACE=$ac_cv_prog_DTRACE
5068 if test -n "$DTRACE"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5070 $as_echo "$DTRACE" >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5077 test -n "$DTRACE" && break
5080 if test -z "$DTRACE"
5082 if test "$do_probes" = "yes"
5084 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5094 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5095 # On Suns, sometimes $CPP names a directory.
5096 if test -n "$CPP" && test -d "$CPP"; then
5099 if test -z "$CPP"; then
5100 if ${ac_cv_prog_CPP+:} false; then :
5101 $as_echo_n "(cached) " >&6
5103 # Double quotes because CPP needs to be expanded
5104 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5107 for ac_c_preproc_warn_flag in '' yes
5109 # Use a header file that comes with gcc, so configuring glibc
5110 # with a fresh cross-compiler works.
5111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5112 # <limits.h> exists even on freestanding compilers.
5113 # On the NeXT, cc -E runs the code through the compiler's parser,
5114 # not just through cpp. "Syntax error" is here to catch this case.
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5118 # include <limits.h>
5120 # include <assert.h>
5124 if ac_fn_c_try_cpp "$LINENO"; then :
5127 # Broken: fails on valid input.
5130 rm -f conftest.err conftest.i conftest.$ac_ext
5132 # OK, works on sane cases. Now check whether nonexistent headers
5133 # can be detected and how.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <ac_nonexistent.h>
5138 if ac_fn_c_try_cpp "$LINENO"; then :
5139 # Broken: success on invalid input.
5142 # Passes both tests.
5146 rm -f conftest.err conftest.i conftest.$ac_ext
5149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5150 rm -f conftest.i conftest.err conftest.
$ac_ext
5151 if $ac_preproc_ok; then :
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5164 $as_echo "$CPP" >&6; }
5166 for ac_c_preproc_warn_flag
in '' yes
5168 # Use a header file that comes with gcc, so configuring glibc
5169 # with a fresh cross-compiler works.
5170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5171 # <limits.h> exists even on freestanding compilers.
5172 # On the NeXT, cc -E runs the code through the compiler's parser,
5173 # not just through cpp. "Syntax error" is here to catch this case.
5174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5177 # include <limits.h>
5179 # include <assert.h>
5183 if ac_fn_c_try_cpp
"$LINENO"; then :
5186 # Broken: fails on valid input.
5189 rm -f conftest.err conftest.i conftest.
$ac_ext
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 #include <ac_nonexistent.h>
5197 if ac_fn_c_try_cpp
"$LINENO"; then :
5198 # Broken: success on invalid input.
5201 # Passes both tests.
5205 rm -f conftest.err conftest.i conftest.
$ac_ext
5208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5209 rm -f conftest.i conftest.err conftest.
$ac_ext
5210 if $ac_preproc_ok; then :
5213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5216 See \`config.log' for more details" "$LINENO" 5; }
5220 ac_cpp
='$CPP $CPPFLAGS'
5221 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5227 $as_echo_n "checking for ANSI C header files... " >&6; }
5228 if ${ac_cv_header_stdc+:} false
; then :
5229 $as_echo_n "(cached) " >&6
5231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5246 if ac_fn_c_try_compile
"$LINENO"; then :
5247 ac_cv_header_stdc
=yes
5249 ac_cv_header_stdc
=no
5251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5253 if test $ac_cv_header_stdc = yes; then
5254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "memchr" >/dev
/null
2>&1; then :
5264 ac_cv_header_stdc
=no
5270 if test $ac_cv_header_stdc = yes; then
5271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278 $EGREP "free" >/dev
/null
2>&1; then :
5281 ac_cv_header_stdc
=no
5287 if test $ac_cv_header_stdc = yes; then
5288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5289 if test "$cross_compiling" = yes; then :
5292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5296 #if ((' ' & 0x0FF) == 0x020)
5297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5300 # define ISLOWER(c) \
5301 (('a' <= (c) && (c) <= 'i') \
5302 || ('j' <= (c) && (c) <= 'r') \
5303 || ('s' <= (c) && (c) <= 'z'))
5304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5312 for (i = 0; i < 256; i++)
5313 if (XOR (islower (i), ISLOWER (i))
5314 || toupper (i) != TOUPPER (i))
5319 if ac_fn_c_try_run
"$LINENO"; then :
5322 ac_cv_header_stdc
=no
5324 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5325 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5331 $as_echo "$ac_cv_header_stdc" >&6; }
5332 if test $ac_cv_header_stdc = yes; then
5334 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5339 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5340 inttypes.h stdint.h unistd.h
5342 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5343 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5345 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5346 cat >>confdefs.h
<<_ACEOF
5347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355 for ac_header
in sys
/sdt.h
5357 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5358 if test "x$ac_cv_header_sys_sdt_h" = xyes
; then :
5359 cat >>confdefs.h
<<_ACEOF
5360 #define HAVE_SYS_SDT_H 1
5363 if $enable_probes = true
5365 if test $target_os = kfreebsd
5368 elif test $target_os = freebsd
5370 rm -f conftest.d conftest.h
5371 cat <<End-of-File >conftest.d
5376 if dtrace
-s conftest.d
-h >/dev
/null
2>&1
5378 if test ! -f conftest.h
5381 if test "$do_probes" = "yes"
5383 as_fn_error $?
"cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5388 if test "$do_probes" = "yes"
5390 as_fn_error $?
"cannot enable static probes - dtrace failed" "$LINENO" 5
5399 if test "$do_probes" = "yes"
5401 as_fn_error $?
"cannot enable static probes - no SDT header" "$LINENO" 5
5409 if test "$enable_probes" = "true"
5412 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5419 if test "x$do_discovery" != "xno"; then :
5421 # on Mac OS X, dns_sd.h
5423 # on Linux, aloha Avahi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5428 $as_echo_n "checking for avahi... " >&6; }
5430 if test -n "$avahi_CFLAGS"; then
5431 pkg_cv_avahi_CFLAGS
="$avahi_CFLAGS"
5432 elif test -n "$PKG_CONFIG"; then
5433 if test -n "$PKG_CONFIG" && \
5434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5435 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438 test $ac_status = 0; }; then
5439 pkg_cv_avahi_CFLAGS
=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5440 test "x$?" != "x0" && pkg_failed
=yes
5447 if test -n "$avahi_LIBS"; then
5448 pkg_cv_avahi_LIBS
="$avahi_LIBS"
5449 elif test -n "$PKG_CONFIG"; then
5450 if test -n "$PKG_CONFIG" && \
5451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5452 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5455 test $ac_status = 0; }; then
5456 pkg_cv_avahi_LIBS
=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5457 test "x$?" != "x0" && pkg_failed
=yes
5467 if test $pkg_failed = yes; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5472 _pkg_short_errors_supported
=yes
5474 _pkg_short_errors_supported
=no
5476 if test $_pkg_short_errors_supported = yes; then
5477 avahi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5479 avahi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5481 # Put the nasty error message in config.log where it belongs
5482 echo "$avahi_PKG_ERRORS" >&5
5485 elif test $pkg_failed = untried
; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5490 avahi_CFLAGS
=$pkg_cv_avahi_CFLAGS
5491 avahi_LIBS
=$pkg_cv_avahi_LIBS
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493 $as_echo "yes" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5495 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5496 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false
; then :
5497 $as_echo_n "(cached) " >&6
5499 ac_check_lib_save_LIBS
=$LIBS
5500 LIBS
="-lavahi-client $LIBS"
5501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5504 /* Override any GCC internal prototype to avoid an error.
5505 Use char because int might match the return type of a GCC
5506 builtin and then its argument prototype would still apply. */
5510 char avahi_client_new ();
5514 return avahi_client_new ();
5519 if ac_fn_c_try_link
"$LINENO"; then :
5520 ac_cv_lib_avahi_client_avahi_client_new
=yes
5522 ac_cv_lib_avahi_client_avahi_client_new
=no
5524 rm -f core conftest.err conftest.
$ac_objext \
5525 conftest
$ac_exeext conftest.
$ac_ext
5526 LIBS
=$ac_check_lib_save_LIBS
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5529 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5530 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes
; then :
5531 lib_for_avahi
="-lavahi-common -lavahi-client"
5538 for ac_header
in avahi-client
/publish.h
5540 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5541 if test "x$ac_cv_header_avahi_client_publish_h" = xyes
; then :
5542 cat >>confdefs.h
<<_ACEOF
5543 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5552 for ac_header
in avahi-common
/alternative.h
5554 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5555 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes
; then :
5556 cat >>confdefs.h
<<_ACEOF
5557 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5567 if test "$enable_avahi" = "true"
5572 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5574 enable_discovery
=true
5577 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5579 as_fn_error $?
"cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5581 if test "$enable_discovery" = "true"
5584 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5592 enable_systemd
=false
5593 if test "x$do_systemd" != "xno"; then :
5598 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5599 pkg_cv_SYSTEMD_SYSTEMUNITDIR
="$SYSTEMD_SYSTEMUNITDIR"
5600 elif test -n "$PKG_CONFIG"; then
5601 if test -n "$PKG_CONFIG" && \
5602 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5603 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606 test $ac_status = 0; }; then
5607 pkg_cv_SYSTEMD_SYSTEMUNITDIR
=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5608 test "x$?" != "x0" && pkg_failed
=yes
5615 SYSTEMD_SYSTEMUNITDIR
=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5617 if test "x$SYSTEMD_SYSTEMUNITDIR" = x
""; then :
5618 enable_systemd
=false
5620 pcp_systemdunit_dir
=$SYSTEMD_SYSTEMUNITDIR
5623 if test -z "$pcp_systemdunit_dir"
5625 if test "$do_systemd" = "yes"
5627 as_fn_error $?
"cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5629 enable_systemd
=false
5635 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5636 # targets a build for non-system directories such as /usr/local.
5637 # AC_PREFIX_DEFAULT([])
5640 PACKAGE_VERSION
=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5647 if test -z "$PACKAGE_BUILD_DATE" ; then
5648 PACKAGE_BUILD_DATE
=`date +%Y-%m-%d`
5652 if test -z "$PACKAGE_DISTRIBUTION" ; then
5653 PACKAGE_DISTRIBUTION
=$target_distro
5657 pm_version_current
=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5660 ac_config_headers
="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5662 ac_config_files
="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5664 cat >confcache
<<\_ACEOF
5665 # This file is a shell script that caches the results of configure
5666 # tests run on this system so they can be shared between configure
5667 # scripts and configure runs, see configure's option --config-cache.
5668 # It is not useful on other systems. If it contains results you don't
5669 # want to keep, you may remove or edit it.
5671 # config.status only pays attention to the cache file if you give it
5672 # the --recheck option to rerun configure.
5674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5680 # The following way of writing the cache mishandles newlines in values,
5681 # but we know of no workaround that is simple, portable, and efficient.
5682 # So, we kill variables containing newlines.
5683 # Ultrix sh set writes to stderr and can't be redirected directly,
5684 # and sets the high bit in the cache file unless we assign to the vars.
5686 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5687 eval ac_val
=\$
$ac_var
5691 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5692 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5695 _ | IFS | as_nl
) ;; #(
5696 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5697 *) { eval $ac_var=; unset $ac_var;} ;;
5703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5704 *${as_nl}ac_space
=\
*)
5705 # `set' does not quote correctly, so add quotes: double-quote
5706 # substitution turns \\\\ into \\, and sed turns \\ into \.
5709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5712 # `set' quotes correctly as required by POSIX, so do not add quotes.
5713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5726 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5727 if test -w "$cache_file"; then
5728 if test "x$cache_file" != "x/dev/null"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5730 $as_echo "$as_me: updating cache $cache_file" >&6;}
5731 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5732 cat confcache
>"$cache_file"
5734 case $cache_file in #(
5736 mv -f confcache
"$cache_file"$$
&&
5737 mv -f "$cache_file"$$
"$cache_file" ;; #(
5739 mv -f confcache
"$cache_file" ;;
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5745 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5750 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5751 # Let make expand exec_prefix.
5752 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5754 DEFS
=-DHAVE_CONFIG_H
5759 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5760 # 1. Remove the extension, and $U if already installed.
5761 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5762 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5763 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5764 # will be set to the directory where LIBOBJS objects are built.
5765 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5766 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5770 LTLIBOBJS
=$ac_ltlibobjs
5774 : "${CONFIG_STATUS=./config.status}"
5776 ac_clean_files_save
=$ac_clean_files
5777 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5779 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5781 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5783 # Generated by $as_me.
5784 # Run this file to recreate the current configuration.
5785 # Compiler output produced by configure, useful for debugging
5786 # configure, is in config.log if it exists.
5792 SHELL=\${CONFIG_SHELL-$SHELL}
5795 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5796 ## -------------------- ##
5797 ## M4sh Initialization. ##
5798 ## -------------------- ##
5800 # Be more Bourne compatible
5801 DUALCASE
=1; export DUALCASE
# for MKS sh
5802 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5805 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5806 # is contrary to our usage. Disable this feature.
5807 alias -g '${1+"$@"}'='"$@"'
5808 setopt NO_GLOB_SUBST
5810 case `(set -o) 2>/dev/null` in #(
5822 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5823 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5825 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5826 # Prefer a ksh shell builtin over an external printf program on Solaris,
5827 # but without wasting forks for bash or zsh.
5828 if test -z "$BASH_VERSION$ZSH_VERSION" \
5829 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5830 as_echo='print
-r --'
5831 as_echo_n='print
-rn --'
5832 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5833 as_echo='printf %s
\n'
5834 as_echo_n='printf %s
'
5836 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5837 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5838 as_echo_n='/usr
/ucb
/echo -n'
5840 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5841 as_echo_n_body='eval
5845 expr "X$arg" : "X\\(.*\\)$as_nl";
5846 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5848 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5850 export as_echo_n_body
5851 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5854 as_echo='sh
-c $as_echo_body as_echo
'
5857 # The user is always right.
5858 if test "${PATH_SEPARATOR+set}" != set; then
5860 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5861 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5868 # We need space, tab and new line, in precisely that order. Quoting is
5869 # there to prevent editors from complaining about space-tab.
5870 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5871 # splitting by setting IFS to empty value.)
5874 # Find who we are. Look in the path if we contain no directory separator.
5877 *[\\/]* ) as_myself=$0 ;;
5878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 test -z "$as_dir" && as_dir=.
5883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5889 # We did not find ourselves, most probably we were run as `sh COMMAND'
5890 # in which case we are not to be found in the path.
5891 if test "x$as_myself" = x
; then
5894 if test ! -f "$as_myself"; then
5895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5899 # Unset variables that we do not need and which cause bugs (e.g. in
5900 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5901 # suppresses any "Segmentation fault" message there. '((' could
5902 # trigger a bug in pdksh 5.2.14.
5903 for as_var
in BASH_ENV ENV MAIL MAILPATH
5904 do eval test x\
${$as_var+set} = xset \
5905 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5918 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5921 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5922 # ----------------------------------------
5923 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5924 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5925 # script with STATUS, using 1 if that was 0.
5928 as_status
=$1; test $as_status -eq 0 && as_status
=1
5930 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5933 $as_echo "$as_me: error: $2" >&2
5934 as_fn_exit
$as_status
5938 # as_fn_set_status STATUS
5939 # -----------------------
5940 # Set $? to STATUS, without forking.
5944 } # as_fn_set_status
5948 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5958 # Portably unset VAR.
5961 { eval $1=; unset $1;}
5963 as_unset
=as_fn_unset
5964 # as_fn_append VAR VALUE
5965 # ----------------------
5966 # Append the text in VALUE to the end of the definition contained in VAR. Take
5967 # advantage of any shell optimizations that allow amortized linear growth over
5968 # repeated appends, instead of the typical quadratic growth present in naive
5970 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5971 eval 'as_fn_append ()
5982 # as_fn_arith ARG...
5983 # ------------------
5984 # Perform arithmetic evaluation on the ARGs, and store the result in the
5985 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5986 # must be portable across $(()) and expr.
5987 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5988 eval 'as_fn_arith ()
5995 as_val
=`expr "$@" || test $? -eq 1`
6000 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6001 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6007 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6008 as_basename
=basename
6013 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6019 as_me
=`$as_basename -- "$0" ||
6020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6021 X"$0" : 'X\(//\)$' \| \
6022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6024 sed '/^.*\/\([^/][^/]*\)\/*$/{
6038 # Avoid depending upon Character Ranges.
6039 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6040 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6041 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6042 as_cr_digits
='0123456789'
6043 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6045 ECHO_C
= ECHO_N
= ECHO_T
=
6046 case `echo -n x` in #(((((
6048 case `echo 'xy\c'` in
6049 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6051 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6058 rm -f conf$$ conf$$.exe conf$$.
file
6059 if test -d conf$$.dir
; then
6060 rm -f conf$$.dir
/conf$$.
file
6063 mkdir conf$$.dir
2>/dev
/null
6065 if (echo >conf$$.
file) 2>/dev
/null
; then
6066 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6068 # ... but there are two gotchas:
6069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6071 # In both cases, we have to default to `cp -pR'.
6072 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6074 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6082 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6083 rmdir conf$$.dir
2>/dev
/null
6088 # Create "$as_dir" as a directory, including parents if necessary.
6093 -*) as_dir
=.
/$as_dir;;
6095 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6099 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6100 *) as_qdir
=$as_dir;;
6102 as_dirs
="'$as_qdir' $as_dirs"
6103 as_dir
=`$as_dirname -- "$as_dir" ||
6104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6105 X"$as_dir" : 'X\(//\)[^/]' \| \
6106 X"$as_dir" : 'X\(//\)$' \| \
6107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6108 $as_echo X"$as_dir" |
6109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6126 test -d "$as_dir" && break
6128 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6129 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6133 if mkdir
-p .
2>/dev
/null
; then
6134 as_mkdir_p
='mkdir -p "$as_dir"'
6136 test -d .
/-p && rmdir .
/-p
6141 # as_fn_executable_p FILE
6142 # -----------------------
6143 # Test if FILE is an executable regular file.
6144 as_fn_executable_p
()
6146 test -f "$1" && test -x "$1"
6147 } # as_fn_executable_p
6149 as_executable_p
=as_fn_executable_p
6151 # Sed expression to map a string onto a valid CPP name.
6152 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6154 # Sed expression to map a string onto a valid variable name.
6155 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6159 ## ----------------------------------- ##
6160 ## Main body of $CONFIG_STATUS script. ##
6161 ## ----------------------------------- ##
6163 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6166 # Save the log message, to keep $0 and so on meaningful, and to
6167 # report actual input values of CONFIG_FILES etc. instead of their
6168 # values after options handling.
6170 This file was extended by $as_me, which was
6171 generated by GNU Autoconf 2.69. Invocation command line was
6173 CONFIG_FILES = $CONFIG_FILES
6174 CONFIG_HEADERS = $CONFIG_HEADERS
6175 CONFIG_LINKS = $CONFIG_LINKS
6176 CONFIG_COMMANDS = $CONFIG_COMMANDS
6179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6184 case $ac_config_files in *"
6185 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6188 case $ac_config_headers in *"
6189 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6194 # Files that config.status was made for.
6195 config_files="$ac_config_files"
6196 config_headers="$ac_config_headers"
6200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6202 \`$as_me' instantiates files and other configuration actions
6203 from templates according to the current configuration. Unless the files
6204 and actions are specified as TAGs, all are instantiated by default.
6206 Usage: $0 [OPTION]... [TAG]...
6208 -h, --help print this help, then exit
6209 -V, --version print version number and configuration settings, then exit
6210 --config print configuration, then exit
6211 -q, --quiet, --silent
6212 do not print progress messages
6213 -d, --debug don't remove temporary files
6214 --recheck update $as_me by reconfiguring in the same conditions
6215 --file=FILE[:TEMPLATE]
6216 instantiate the configuration file FILE
6217 --header=FILE[:TEMPLATE]
6218 instantiate the configuration header FILE
6220 Configuration files:
6223 Configuration headers:
6226 Report bugs to the package provider."
6229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6230 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6233 configured by $0, generated by GNU Autoconf 2.69,
6234 with options \\"\$ac_cs_config\\"
6236 Copyright (C) 2012 Free Software Foundation, Inc.
6237 This config.status script is free software; the Free Software Foundation
6238 gives unlimited permission to copy, distribute and modify it."
6242 test -n "\$AWK" || AWK=awk
6245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6246 # The default lists apply if the user does not specify any file.
6252 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6253 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6257 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6269 # Handling of the options.
6270 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6272 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6273 $as_echo "$ac_cs_version"; exit ;;
6274 --config |
--confi |
--conf |
--con |
--co |
--c )
6275 $as_echo "$ac_cs_config"; exit ;;
6276 --debug |
--debu |
--deb |
--de |
--d |
-d )
6278 --file |
--fil |
--fi |
--f )
6281 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6282 '') as_fn_error $?
"missing file argument" ;;
6284 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6285 ac_need_defaults
=false
;;
6286 --header |
--heade |
--head |
--hea )
6289 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6291 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6292 ac_need_defaults
=false
;;
6294 # Conflict between --help and --header
6295 as_fn_error $?
"ambiguous option: \`$1'
6296 Try \`$0 --help' for more information.";;
6297 --help |
--hel |
-h )
6298 $as_echo "$ac_cs_usage"; exit ;;
6299 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6300 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6304 -*) as_fn_error $?
"unrecognized option: \`$1'
6305 Try \`$0 --help' for more information." ;;
6307 *) as_fn_append ac_config_targets
" $1"
6308 ac_need_defaults
=false
;;
6314 ac_configure_extra_args
=
6316 if $ac_cs_silent; then
6318 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6323 if \$ac_cs_recheck; then
6324 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6327 CONFIG_SHELL='$SHELL'
6333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6338 ## Running $as_me. ##
6344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6349 # Handling of arguments.
6350 for ac_config_target
in $ac_config_targets
6352 case $ac_config_target in
6353 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6354 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6355 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6356 "src/include/pcp/platformsz.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6358 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6363 # If the user did not use the arguments to specify the items to instantiate,
6364 # then the envvar interface is used. Set only those that are not.
6365 # We use the long form for the default assignment because of an extremely
6366 # bizarre bug on SunOS 4.1.3.
6367 if $ac_need_defaults; then
6368 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6369 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6372 # Have a temporary directory for convenience. Make it in the build tree
6373 # simply because there is no reason against having it here, and in addition,
6374 # creating and moving files from /tmp can sometimes cause problems.
6375 # Hook for its removal unless debugging.
6376 # Note that there is a small window in which the directory will not be cleaned:
6377 # after its creation but before its name has been assigned to `$tmp'.
6381 trap 'exit_status=$?
6383 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6385 trap 'as_fn_exit 1' 1 2 13 15
6387 # Create a (secure) tmp directory for tmp files.
6390 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6394 tmp
=.
/conf$$
-$RANDOM
6395 (umask 077 && mkdir
"$tmp")
6396 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
6399 # Set up the scripts for CONFIG_FILES section.
6400 # No need to generate them if there are no CONFIG_FILES.
6401 # This happens for instance with `./config.status config.h'.
6402 if test -n "$CONFIG_FILES"; then
6405 ac_cr
=`echo X | tr X '\015'`
6406 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6407 # But we know of no other shell where ac_cr would be empty at this
6408 # point, so we can use a bashism as a fallback.
6409 if test "x$ac_cr" = x
; then
6410 eval ac_cr
=\$
\'\\r
\'
6412 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6413 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6419 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6424 echo "cat >conf$$subs.awk <<_ACEOF" &&
6425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6428 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6429 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6431 for ac_last_try in false false false false false :; do
6432 . ./conf$$subs.sh ||
6433 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6435 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6436 if test $ac_delim_n = $ac_delim_num; then
6438 elif $ac_last_try; then
6439 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6441 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6447 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
6451 s/^/S["/; s
/!.
*/"]=/
6461 s/\(.\{148\}\)..*/\1/
6463 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6468 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6475 s/\(.\{148\}\)..*/\1/
6477 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6481 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6486 ' <conf$$subs.awk | sed '
6491 ' >>$CONFIG_STATUS || ac_write_fail=1
6492 rm -f conf$$subs.awk
6493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6495 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6496 for (key in S) S_is_set[key] = 1
6502 nfields = split(line, field, "@
")
6504 len = length(field[1])
6505 for (i = 2; i < nfields; i++) {
6507 keylen = length(key)
6508 if (S_is_set[key]) {
6510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6511 len += length(value) + length(field[++i])
6522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6523 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6524 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6527 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6528 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
6531 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6532 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
6533 # trailing colons and then remove the whole line if VPATH becomes empty
6534 # (actually we leave an empty line to preserve line numbers).
6535 if test "x
$srcdir" = x.; then
6536 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6555 fi # test -n "$CONFIG_FILES"
6557 # Set up the scripts for CONFIG_HEADERS section.
6558 # No need to generate them if there are no CONFIG_HEADERS.
6559 # This happens for instance with `./config.status Makefile'.
6560 if test -n "$CONFIG_HEADERS"; then
6561 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
6565 # Transform confdefs.h into an awk script `defines.awk', embedded as
6566 # here-document in config.status, that substitutes the proper values into
6567 # config.h.in to produce config.h.
6569 # Create a delimiter string that does not exist in confdefs.h, to ease
6570 # handling of long lines.
6572 for ac_last_try in false false :; do
6573 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
6574 if test -z "$ac_tt"; then
6576 elif $ac_last_try; then
6577 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6579 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6583 # For the awk script, D is an array of macro values keyed by name,
6584 # likewise P contains macro parameters if any. Preserve backslash
6585 # newline sequences.
6587 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6589 s/.\{148\}/&'"$ac_delim"'/g
6592 s/^[ ]*#[ ]*define[ ][ ]*/ /
6599 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6601 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6605 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6606 D["\
1"]=" \
3\\\\\\n
"\\/p
6608 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6613 s/.\{148\}/&'"$ac_delim"'/g
6618 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6621 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6623 ' <confdefs.h | sed '
6624 s/'"$ac_delim"'/"\\\
6625 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6628 for (key in D) D_is_set[key] = 1
6631 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6633 split(line, arg, " ")
6634 if (arg[1] == "#") {
6638 defundef
= substr
(arg
[1], 2)
6641 split(mac1
, mac2
, "(") #)
6643 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6644 if (D_is_set
[macro
]) {
6645 # Preserve the white space surrounding the "#".
6646 print prefix
"define", macro P
[macro
] D
[macro
]
6649 # Replace #undef with comments. This is necessary, for example,
6650 # in the case of _POSIX_SOURCE, which is predefined and required
6651 # on some systems where configure will not decide to define it.
6652 if (defundef
== "undef") {
6653 print
"/*", prefix defundef
, macro
, "*/"
6661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6662 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6663 fi # test -n "$CONFIG_HEADERS"
6666 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
6671 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6673 case $ac_mode$ac_tag in
6675 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6676 :[FH
]-) ac_tag
=-:-;;
6677 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6694 -) ac_f
="$ac_tmp/stdin";;
6695 *) # Look for the file first in the build tree, then in the source tree
6696 # (if the path is not absolute). The absolute path cannot be DOS-style,
6697 # because $ac_f cannot contain `:'.
6701 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6703 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6705 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6706 as_fn_append ac_file_inputs
" '$ac_f'"
6709 # Let's still pretend it is `configure' which instantiates (i.e., don't
6710 # use $as_me), people would be surprised to read:
6711 # /* config.h. Generated by config.status. */
6712 configure_input
='Generated from '`
6713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6715 if test x
"$ac_file" != x-
; then
6716 configure_input
="$ac_file. $configure_input"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6718 $as_echo "$as_me: creating $ac_file" >&6;}
6720 # Neutralize special characters interpreted by sed in replacement strings.
6721 case $configure_input in #(
6722 *\
&* |
*\|
* |
*\\* )
6723 ac_sed_conf_input
=`$as_echo "$configure_input" |
6724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6725 *) ac_sed_conf_input
=$configure_input;;
6729 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6730 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6735 ac_dir
=`$as_dirname -- "$ac_file" ||
6736 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6737 X"$ac_file" : 'X\(//\)[^/]' \| \
6738 X"$ac_file" : 'X\(//\)$' \| \
6739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6740 $as_echo X"$ac_file" |
6741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6758 as_dir
="$ac_dir"; as_fn_mkdir_p
6762 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6764 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6765 # A ".." for each directory in $ac_dir_suffix.
6766 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6767 case $ac_top_builddir_sub in
6768 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6769 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6772 ac_abs_top_builddir
=$ac_pwd
6773 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6774 # for backward compatibility:
6775 ac_top_builddir
=$ac_top_build_prefix
6778 .
) # We are building in place.
6780 ac_top_srcdir
=$ac_top_builddir_sub
6781 ac_abs_top_srcdir
=$ac_pwd ;;
6782 [\\/]* | ?
:[\\/]* ) # Absolute name.
6783 ac_srcdir
=$srcdir$ac_dir_suffix;
6784 ac_top_srcdir
=$srcdir
6785 ac_abs_top_srcdir
=$srcdir ;;
6787 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6788 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6789 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6791 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6803 # If the template does not know about datarootdir, expand it.
6804 # FIXME: This hack should be removed a few years after 2.60.
6805 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6816 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6817 *datarootdir
*) ac_datarootdir_seen
=yes;;
6818 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6820 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6823 ac_datarootdir_hack='
6824 s&@datadir@&$datadir&g
6825 s&@docdir@&$docdir&g
6826 s&@infodir@&$infodir&g
6827 s&@localedir@&$localedir&g
6828 s&@mandir@&$mandir&g
6829 s&\\\${datarootdir}&$datarootdir&g' ;;
6833 # Neutralize VPATH when `$srcdir' = `.'.
6834 # Shell code in configure.ac might set extrasub.
6835 # FIXME: do we really want to maintain this feature?
6836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6837 ac_sed_extra="$ac_vpsub
6840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6842 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6843 s|@configure_input@|
$ac_sed_conf_input|
;t t
6844 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6845 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6846 s
&@srcdir@
&$ac_srcdir&;t t
6847 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6848 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6849 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6850 s
&@builddir@
&$ac_builddir&;t t
6851 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6852 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6853 $ac_datarootdir_hack
6855 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6856 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6859 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6860 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6861 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6863 which seems to be undefined. Please make sure it is defined" >&5
6864 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6865 which seems to be undefined. Please make sure it is defined" >&2;}
6867 rm -f "$ac_tmp/stdin"
6869 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6870 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6878 if test x"$ac_file" != x-; then
6880 $as_echo "/* $configure_input */" \
6881 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6882 } >"$ac_tmp/config.h" \
6883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6884 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6886 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6889 mv "$ac_tmp/config.h" "$ac_file" \
6890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6893 $as_echo "/* $configure_input */" \
6894 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6895 || as_fn_error $? "could not create -" "$LINENO" 5
6907 ac_clean_files=$ac_clean_files_save
6909 test $ac_write_fail = 0 ||
6910 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6913 # configure is writing to config.log, and then calls config.status.
6914 # config.status does its own redirection, appending to config.log.
6915 # Unfortunately, on DOS this fails, as config.log is still kept open
6916 # by configure, so config.status won't be able to
write to it
; its
6917 # output is simply discarded. So we exec the FD to /dev/null,
6918 # effectively closing config.log, so it can be properly (re)opened and
6919 # appended to by config.status. When coming back to configure, we
6920 # need to make the FD available again.
6921 if test "$no_create" != yes; then
6923 ac_config_status_args
=
6924 test "$silent" = yes &&
6925 ac_config_status_args
="$ac_config_status_args --quiet"
6927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6930 # would make configure fail if this is the last instruction.
6931 $ac_cs_success || as_fn_exit
1
6933 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6935 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6941 # Extract the first word of "$ac_prog", so it can be a program name with args.
6942 set dummy
$ac_prog; ac_word
=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_GIT+:} false
; then :
6946 $as_echo_n "(cached) " >&6
6948 if test -n "$GIT"; then
6949 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
6951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6955 test -z "$as_dir" && as_dir
=.
6956 for ac_exec_ext
in '' $ac_executable_extensions; do
6957 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_GIT
="$ac_prog"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 if test -n "$GIT"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6971 $as_echo "$GIT" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6978 test -n "$GIT" && break
6983 for ac_prog
in python
6985 # Extract the first word of "$ac_prog", so it can be a program name with args.
6986 set dummy
$ac_prog; ac_word
=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_PYTHON+:} false
; then :
6990 $as_echo_n "(cached) " >&6
6992 if test -n "$PYTHON"; then
6993 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
6995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir
=.
7000 for ac_exec_ext
in '' $ac_executable_extensions; do
7001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_PYTHON
="$ac_prog"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 PYTHON
=$ac_cv_prog_PYTHON
7013 if test -n "$PYTHON"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7015 $as_echo "$PYTHON" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7022 test -n "$PYTHON" && break
7024 test -n "$PYTHON" || PYTHON
="python2.7"
7028 for ac_prog
in python3
7030 # Extract the first word of "$ac_prog", so it can be a program name with args.
7031 set dummy
$ac_prog; ac_word
=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_PYTHON3+:} false
; then :
7035 $as_echo_n "(cached) " >&6
7037 if test -n "$PYTHON3"; then
7038 ac_cv_prog_PYTHON3
="$PYTHON3" # Let the user override the test.
7040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir
=.
7045 for ac_exec_ext
in '' $ac_executable_extensions; do
7046 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_PYTHON3
="$ac_prog"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 PYTHON3
=$ac_cv_prog_PYTHON3
7058 if test -n "$PYTHON3"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7060 $as_echo "$PYTHON3" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7067 test -n "$PYTHON3" && break
7069 test -n "$PYTHON3" || PYTHON3
="python3.4"
7073 enable_python2
=false
7074 if test "x$do_python" != "xno"; then :
7077 if test -z "$PYTHON"
7079 enable_python2
=false
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7082 $as_echo_n "checking Python version... " >&6; }
7083 eval `$PYTHON -V 2>&1 | awk '/^Python/ { ver=2; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export PY_MAJOR=%d PY_MINOR=%d PY_POINT=%d\n",$major,$minor,$point }'`
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7085 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7086 if test "$PY_MAJOR" -lt 2; then
7087 echo WARNING
: Python version
2.6 or later does not seem to be installed.
7088 enable_python2
=false
7090 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7091 echo WARNING
: Python version
2.
$PY_MINOR is too old.
7092 echo Python version
2.6 or later is required
for Python builds.
7093 enable_python2
=false
7095 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}/Python.h
7097 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7098 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7099 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7100 cat >>confdefs.h
<<_ACEOF
7101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7106 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7107 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7108 enable_python2
=false
7118 if test "$do_python" != "check" -a "$enable_python2" != "true"
7120 as_fn_error $?
"cannot enable Python - no supported version found" "$LINENO" 5
7126 enable_python3
=false
7127 if test "x$do_python3" != "xno"; then :
7130 if test -z "$PYTHON3"
7132 enable_python3
=false
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7135 $as_echo_n "checking Python3 version... " >&6; }
7136 eval `$PYTHON3 -V 2>&1 | awk '/^Python/ { ver=2; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export PY_MAJOR=%d PY_MINOR=%d PY_POINT=%d\n",$major,$minor,$point }'`
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7138 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7139 if test "$PY_MAJOR" -lt 3; then
7140 echo WARNING
: Python version
3.3 or later does not seem to be installed.
7141 enable_python3
=false
7143 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7144 echo WARNING
: Python version
3.
$PY_MINOR is too old.
7145 echo Python version
3.3 or later is required
for Python builds.
7146 enable_python3
=false
7148 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}m
/Python.h
7150 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7151 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7152 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7153 cat >>confdefs.h
<<_ACEOF
7154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7159 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7160 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7161 enable_python3
=false
7171 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7173 as_fn_error $?
"cannot enable Python3 - no supported version found" "$LINENO" 5
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7180 $as_echo_n "checking for any python version... " >&6; }
7181 if test "$cross_compiling" = "yes"; then
7183 echo "cross-compile -> \"$ans\"" >&5
7184 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7191 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7192 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }; fi
7195 if test "$enable_python3" = "true"
7197 pcp_python_prog
=$PYTHON3
7198 elif test "$enable_python2" = "true"
7200 pcp_python_prog
=$PYTHON
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7208 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7213 txt
="import jsonpointer"
7215 $pcp_python_prog -c 'import sys;
7216 '"$txt" >>config.log
2>&1
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7220 $as_echo "yes" >&6; }
7221 eval have_python_jsonpointer
=true
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 eval have_python_jsonpointer
=false
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module setuptools" >&5
7230 $as_echo_n "checking for Python module setuptools... " >&6; }
7235 txt
="import setuptools"
7237 $pcp_python_prog -c 'import sys;
7238 '"$txt" >>config.log
2>&1
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7242 $as_echo "yes" >&6; }
7243 eval have_python_setuptools
=true
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 eval have_python_setuptools
=false
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module requests" >&5
7252 $as_echo_n "checking for Python module requests... " >&6; }
7257 txt
="import requests"
7259 $pcp_python_prog -c 'import sys;
7260 '"$txt" >>config.log
2>&1
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7264 $as_echo "yes" >&6; }
7265 eval have_python_requests
=true
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 eval have_python_requests
=false
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7274 $as_echo_n "checking for Python module six... " >&6; }
7281 $pcp_python_prog -c 'import sys;
7282 '"$txt" >>config.log
2>&1
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7286 $as_echo "yes" >&6; }
7287 eval have_python_six
=true
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 eval have_python_six
=false
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7297 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7299 if test "x$do_pmdajson" = "xyes"; then :
7302 if test "x$do_pmdajson" = "xcheck"; then :
7304 $have_python_jsonpointer && $have_python_six && pmda_json
=true
7307 PMDA_JSON
=$pmda_json
7309 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7310 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }; fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module libvirt" >&5
7314 $as_echo_n "checking for Python module libvirt... " >&6; }
7319 txt
="import libvirt"
7321 $pcp_python_prog -c 'import sys;
7322 '"$txt" >>config.log
2>&1
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 $as_echo "yes" >&6; }
7327 eval have_python_libvirt
=true
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331 eval have_python_libvirt
=false
7338 # Extract the first word of "$ac_prog", so it can be a program name with args.
7339 set dummy
$ac_prog; ac_word
=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_PERL+:} false
; then :
7343 $as_echo_n "(cached) " >&6
7345 if test -n "$PERL"; then
7346 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7352 test -z "$as_dir" && as_dir
=.
7353 for ac_exec_ext
in '' $ac_executable_extensions; do
7354 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7355 ac_cv_prog_PERL
="$ac_prog"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 PERL
=$ac_cv_prog_PERL
7366 if test -n "$PERL"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7368 $as_echo "$PERL" >&6; }
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7375 test -n "$PERL" && break
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7381 $as_echo_n "checking for any perl version... " >&6; }
7382 if test "$cross_compiling" = "yes"; then
7384 echo "cross-compile -> \"$ans\"" >&5
7385 elif test -n "$PERL"
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7396 $as_echo "$pcp_perl_prog" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7399 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7401 if test "x$do_pmdasnmp" = "xyes"; then :
7404 if test "x$do_pmdasnmp" = "xcheck"; then :
7406 if test "$have_perl" = true
7408 if $pcp_perl_prog -e "use Net::SNMP" >/dev
/null
2>&1
7415 PMDA_SNMP
=$pmda_snmp
7417 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }; fi
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7422 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7424 if test "$have_perl" = true
7426 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7428 if $pcp_perl_prog -e "use DBD::mysql" >/dev
/null
2>&1
7434 PMDA_MYSQL
=$pmda_mysql
7436 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7437 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }; fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7441 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7442 pmda_postgresql
=false
7443 if test "$have_perl" = true
7445 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7447 if $pcp_perl_prog -e "use DBD::Pg" >/dev
/null
2>&1
7449 pmda_postgresql
=true
7453 PMDA_POSTGRESQL
=$pmda_postgresql
7455 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }; fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7460 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7462 if test "$have_perl" = true
7464 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7469 PMDA_ORACLE
=$pmda_oracle
7471 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7472 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }; fi
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7476 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7477 pmda_elasticsearch
=false
7478 if test "$have_perl" = true
7480 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7482 pmda_elasticsearch
=true
7485 PMDA_ELASTICSEARCH
=$pmda_elasticsearch
7487 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7488 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }; fi
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7492 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7494 if test "$have_perl" = true
7496 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7501 PMDA_NGINX
=$pmda_nginx
7503 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7504 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }; fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7508 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7510 if test "$have_perl" = true
7512 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7517 PMDA_ACTIVEMQ
=$pmda_activemq
7519 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7520 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }; fi
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the libvirt PMDA should be included" >&5
7524 $as_echo_n "checking if the libvirt PMDA should be included... " >&6; }
7526 if test "$have_python" = true
7528 if $pcp_python_prog -c "import libvirt" >/dev
/null
2>&1
7530 if $pcp_python_prog -c "import lxml" >/dev
/null
2>&1
7536 PMDA_LIBVIRT
=$pmda_libvirt
7538 if $pmda_libvirt; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7539 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }; fi
7545 if test "x$do_qt" != "xno"; then :
7551 for ac_prog
in qmake-qt5 qmake-qt4 qmake
7553 # Extract the first word of "$ac_prog", so it can be a program name with args.
7554 set dummy
$ac_prog; ac_word
=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_path_QMAKE+:} false
; then :
7558 $as_echo_n "(cached) " >&6
7562 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
7565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7566 as_dummy
="$QTDIR/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib/qt5/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin:/usr/local/bin"
7567 for as_dir
in $as_dummy
7570 test -z "$as_dir" && as_dir
=.
7571 for ac_exec_ext
in '' $ac_executable_extensions; do
7572 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 QMAKE
=$ac_cv_path_QMAKE
7585 if test -n "$QMAKE"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7587 $as_echo "$QMAKE" >&6; }
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7594 test -n "$QMAKE" && break
7597 test "x$cc_is_gcc" = xyes
-a $target_os = solaris
&& QMAKE
="$QMAKE -spec solaris-g++"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7605 $as_echo_n "checking Qt version... " >&6; }
7606 eval `$qmake --version | awk '/Using Qt version/ { ver=4; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export QT_MAJOR=%d QT_MINOR=%d QT_POINT=%d\n",$major,$minor,$point }'`
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7608 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7609 if test "$QT_MAJOR" -lt 4; then
7610 echo WARNING
: Qt version
4.4 or later does not seem to be installed.
7611 echo Cannot proceed with the Qt
$QT_MAJOR installation found.
7614 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7615 echo WARNING
: Qt version
4.
$QT_MINOR is too old.
7616 echo Qt version
4.4 or later is required
for Qt builds.
7621 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7623 as_fn_error $?
"cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7624 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7627 test "$do_qt" != "check" && \
7628 as_fn_error $?
"C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7629 elif test "$do_qt" = "debug"
7642 # Extract the first word of "gmake", so it can be a program name with args.
7643 set dummy gmake
; ac_word
=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_path_MAKE+:} false
; then :
7647 $as_echo_n "(cached) " >&6
7651 ac_cv_path_MAKE
="$MAKE" # Let the user override the test with a path.
7654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir
=.
7659 for ac_exec_ext
in '' $ac_executable_extensions; do
7660 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_path_MAKE
="$as_dir/$ac_word$ac_exec_ext"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 MAKE
=$ac_cv_path_MAKE
7673 if test -n "$MAKE"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7675 $as_echo "$MAKE" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7684 # look elsewhere ...
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7686 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7687 for f
in /usr
/local
/bin
/gmake
/usr
/freeware
/bin
/gmake
/usr
/local
/bin
/make /opt
/sfw
/bin
/gmake nowhere
7695 if test $f = nowhere
7697 # Check if /usr/bin/make is any good
7698 mver
=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7699 if test "$mver" != "GNU Make"
7702 echo "FATAL ERROR: could not find GNU make anywhere"
7703 echo "You need to set \$MAKE as the full path to GNU make "
7704 echo "in the environment."
7705 rm -rf conftest conftest.
*
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7712 $as_echo "$MAKE" >&6; }
7718 if test -z "$CPP"; then
7720 ac_cpp
='$CPP $CPPFLAGS'
7721 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7725 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7726 # On Suns, sometimes $CPP names a directory.
7727 if test -n "$CPP" && test -d "$CPP"; then
7730 if test -z "$CPP"; then
7731 if ${ac_cv_prog_CPP+:} false
; then :
7732 $as_echo_n "(cached) " >&6
7734 # Double quotes because CPP needs to be expanded
7735 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7738 for ac_c_preproc_warn_flag
in '' yes
7740 # Use a header file that comes with gcc, so configuring glibc
7741 # with a fresh cross-compiler works.
7742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7743 # <limits.h> exists even on freestanding compilers.
7744 # On the NeXT, cc -E runs the code through the compiler's parser,
7745 # not just through cpp. "Syntax error" is here to catch this case.
7746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7749 # include <limits.h>
7751 # include <assert.h>
7755 if ac_fn_c_try_cpp
"$LINENO"; then :
7758 # Broken: fails on valid input.
7761 rm -f conftest.err conftest.i conftest.
$ac_ext
7763 # OK, works on sane cases. Now check whether nonexistent headers
7764 # can be detected and how.
7765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 #include <ac_nonexistent.h>
7769 if ac_fn_c_try_cpp
"$LINENO"; then :
7770 # Broken: success on invalid input.
7773 # Passes both tests.
7777 rm -f conftest.err conftest.i conftest.
$ac_ext
7780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7781 rm -f conftest.i conftest.err conftest.
$ac_ext
7782 if $ac_preproc_ok; then :
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7795 $as_echo "$CPP" >&6; }
7797 for ac_c_preproc_warn_flag
in '' yes
7799 # Use a header file that comes with gcc, so configuring glibc
7800 # with a fresh cross-compiler works.
7801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802 # <limits.h> exists even on freestanding compilers.
7803 # On the NeXT, cc -E runs the code through the compiler's parser,
7804 # not just through cpp. "Syntax error" is here to catch this case.
7805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7808 # include <limits.h>
7810 # include <assert.h>
7814 if ac_fn_c_try_cpp
"$LINENO"; then :
7817 # Broken: fails on valid input.
7820 rm -f conftest.err conftest.i conftest.
$ac_ext
7822 # OK, works on sane cases. Now check whether nonexistent headers
7823 # can be detected and how.
7824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <ac_nonexistent.h>
7828 if ac_fn_c_try_cpp
"$LINENO"; then :
7829 # Broken: success on invalid input.
7832 # Passes both tests.
7836 rm -f conftest.err conftest.i conftest.
$ac_ext
7839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840 rm -f conftest.i conftest.err conftest.
$ac_ext
7841 if $ac_preproc_ok; then :
7844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7846 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7847 See \`config.log' for more details" "$LINENO" 5; }
7851 ac_cpp
='$CPP $CPPFLAGS'
7852 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7860 if test -z "$LD"; then
7861 # Extract the first word of "ld", so it can be a program name with args.
7862 set dummy ld
; ac_word
=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if ${ac_cv_path_LD+:} false
; then :
7866 $as_echo_n "(cached) " >&6
7870 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
7873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7877 test -z "$as_dir" && as_dir
=.
7878 for ac_exec_ext
in '' $ac_executable_extensions; do
7879 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7880 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 test -z "$ac_cv_path_LD" && ac_cv_path_LD
="/usr/bin/ld"
7893 if test -n "$LD"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7895 $as_echo "$LD" >&6; }
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7906 if test -z "$PCP_USER_INSTALL" ; then
7907 pcp_user_install
=root
7909 pcp_user_install
="$PCP_USER_INSTALL"
7912 if test -z "$PCP_GROUP_INSTALL" ; then
7915 darwin|freebsd|netbsd|openbsd
)
7916 pcp_group_install
=wheel
7919 pcp_group_install
=root
7923 pcp_group_install
="$PCP_GROUP_INSTALL"
7927 if test -z "$TAR"; then
7928 for ac_prog
in gtar
tar
7930 # Extract the first word of "$ac_prog", so it can be a program name with args.
7931 set dummy
$ac_prog; ac_word
=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_path_TAR+:} false
; then :
7935 $as_echo_n "(cached) " >&6
7939 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir
=.
7947 for ac_exec_ext
in '' $ac_executable_extensions; do
7948 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7949 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 if test -n "$TAR"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7963 $as_echo "$TAR" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7970 test -n "$TAR" && break
7972 test -n "$TAR" || TAR
="tar"
7975 if test $target_os = darwin
-a -x /usr
/bin
/gnutar
7982 if test -z "$ZIP"; then
7983 # Extract the first word of "gzip", so it can be a program name with args.
7984 set dummy
gzip; ac_word
=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_path_ZIP+:} false
; then :
7988 $as_echo_n "(cached) " >&6
7992 ac_cv_path_ZIP
="$ZIP" # Let the user override the test with a path.
7995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7999 test -z "$as_dir" && as_dir
=.
8000 for ac_exec_ext
in '' $ac_executable_extensions; do
8001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_path_ZIP
="$as_dir/$ac_word$ac_exec_ext"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP
="/bin/gzip"
8015 if test -n "$ZIP"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
8017 $as_echo "$ZIP" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8025 test ! -x "$ZIP" && ZIP
=/usr
/local
/bin
/gzip
8026 test ! -x "$ZIP" && ZIP
=/usr
/freeware
/bin
/gzip
8027 test ! -x "$ZIP" && ZIP
=/usr
/bin
/gzip
8029 test -z "$gzip" && gzip=no-gzip
8032 if test -z "$BZIP2"; then
8033 # Extract the first word of "bzip2", so it can be a program name with args.
8034 set dummy
bzip2; ac_word
=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_path_BZIP2+:} false
; then :
8038 $as_echo_n "(cached) " >&6
8042 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
8045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8049 test -z "$as_dir" && as_dir
=.
8050 for ac_exec_ext
in '' $ac_executable_extensions; do
8051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2
="/bin/bzip2"
8064 BZIP2
=$ac_cv_path_BZIP2
8065 if test -n "$BZIP2"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
8067 $as_echo "$BZIP2" >&6; }
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8075 test ! -x "$BZIP2" && BZIP2
=/usr
/bin
/bzip2
8076 test ! -x "$BZIP2" && BZIP2
=/usr
/local
/bin
/bzip2
8077 test ! -x "$BZIP2" && BZIP2
=/usr
/freeware
/bin
/bzip2
8079 test -z "$bzip2" && bzip2=no-bzip2
8082 if test -z "$LZMA"; then
8083 # Extract the first word of "lzma", so it can be a program name with args.
8084 set dummy lzma
; ac_word
=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_path_LZMA+:} false
; then :
8088 $as_echo_n "(cached) " >&6
8092 ac_cv_path_LZMA
="$LZMA" # Let the user override the test with a path.
8095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir
=.
8100 for ac_exec_ext
in '' $ac_executable_extensions; do
8101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_path_LZMA
="$as_dir/$ac_word$ac_exec_ext"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA
="/bin/lzma"
8114 LZMA
=$ac_cv_path_LZMA
8115 if test -n "$LZMA"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8117 $as_echo "$LZMA" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8125 test ! -x "$LZMA" && LZMA
=/usr
/bin
/lzma
8126 test ! -x "$LZMA" && LZMA
=/usr
/local
/bin
/lzma
8127 test ! -x "$LZMA" && LZMA
=/usr
/freeware
/bin
/lzma
8129 test -z "$lzma" && lzma
=no-lzma
8132 if test -z "$XZ"; then
8133 # Extract the first word of "xz", so it can be a program name with args.
8134 set dummy xz
; ac_word
=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if ${ac_cv_path_XZ+:} false
; then :
8138 $as_echo_n "(cached) " >&6
8142 ac_cv_path_XZ
="$XZ" # Let the user override the test with a path.
8145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8149 test -z "$as_dir" && as_dir
=.
8150 for ac_exec_ext
in '' $ac_executable_extensions; do
8151 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8152 ac_cv_path_XZ
="$as_dir/$ac_word$ac_exec_ext"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ
="/bin/xz"
8165 if test -n "$XZ"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8167 $as_echo "$XZ" >&6; }
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8175 test ! -x "$XZ" && XZ
=/usr
/bin
/xz
8176 test ! -x "$XZ" && XZ
=/usr
/local
/bin
/xz
8177 test ! -x "$XZ" && XZ
=/usr
/freeware
/bin
/xz
8179 test -z "$xz" && xz
=no-xz
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8183 $as_echo_n "checking for PackageMaker... " >&6; }
8184 if test -z "$PACKAGE_MAKER"
8186 if test $target_os = darwin
8188 if test -x /Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8189 then # local XCode extras install
8190 package_maker
=/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8192 $as_echo " yes (local install)" >&6; }
8193 elif test -x /Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8195 package_maker
=/Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8197 $as_echo " yes (darwin 6.x)" >&6; }
8198 elif test -x /Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8201 $as_echo " yes (darwin 7.x)" >&6; }
8202 package_maker
=/Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8205 $as_echo " not found!" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8207 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo " no" >&6; }
8214 package_maker
="$PACKAGE_MAKER"
8218 if test -z "$HDIUTIL"; then
8219 # Extract the first word of "hdiutil", so it can be a program name with args.
8220 set dummy hdiutil
; ac_word
=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_path_HDIUTIL+:} false
; then :
8224 $as_echo_n "(cached) " >&6
8228 ac_cv_path_HDIUTIL
="$HDIUTIL" # Let the user override the test with a path.
8231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8235 test -z "$as_dir" && as_dir
=.
8236 for ac_exec_ext
in '' $ac_executable_extensions; do
8237 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8238 ac_cv_path_HDIUTIL
="$as_dir/$ac_word$ac_exec_ext"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 HDIUTIL
=$ac_cv_path_HDIUTIL
8250 if test -n "$HDIUTIL"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8252 $as_echo "$HDIUTIL" >&6; }
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8263 if test -z "$MKINSTALLP"; then
8264 # Extract the first word of "mkinstallp", so it can be a program name with args.
8265 set dummy mkinstallp
; ac_word
=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_path_MKINSTALLP+:} false
; then :
8269 $as_echo_n "(cached) " >&6
8273 ac_cv_path_MKINSTALLP
="$MKINSTALLP" # Let the user override the test with a path.
8276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8280 test -z "$as_dir" && as_dir
=.
8281 for ac_exec_ext
in '' $ac_executable_extensions; do
8282 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8283 ac_cv_path_MKINSTALLP
="$as_dir/$ac_word$ac_exec_ext"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 MKINSTALLP
=$ac_cv_path_MKINSTALLP
8295 if test -n "$MKINSTALLP"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8297 $as_echo "$MKINSTALLP" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8305 mkinstallp
=$MKINSTALLP
8308 if test -z "$PKGMK"; then
8309 # Extract the first word of "pkgmk", so it can be a program name with args.
8310 set dummy pkgmk
; ac_word
=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if ${ac_cv_path_PKGMK+:} false
; then :
8314 $as_echo_n "(cached) " >&6
8318 ac_cv_path_PKGMK
="$PKGMK" # Let the user override the test with a path.
8321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8325 test -z "$as_dir" && as_dir
=.
8326 for ac_exec_ext
in '' $ac_executable_extensions; do
8327 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8328 ac_cv_path_PKGMK
="$as_dir/$ac_word$ac_exec_ext"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 PKGMK
=$ac_cv_path_PKGMK
8340 if test -n "$PKGMK"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8342 $as_echo "$PKGMK" >&6; }
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8353 if test -z "$DLLTOOL"; then
8354 # Extract the first word of "dlltool", so it can be a program name with args.
8355 set dummy dlltool
; ac_word
=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_path_DLLTOOL+:} false
; then :
8359 $as_echo_n "(cached) " >&6
8363 ac_cv_path_DLLTOOL
="$DLLTOOL" # Let the user override the test with a path.
8366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir
=.
8371 for ac_exec_ext
in '' $ac_executable_extensions; do
8372 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_path_DLLTOOL
="$as_dir/$ac_word$ac_exec_ext"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 DLLTOOL
=$ac_cv_path_DLLTOOL
8385 if test -n "$DLLTOOL"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8387 $as_echo "$DLLTOOL" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8398 if test -z "$RPMBUILD"; then
8399 # Extract the first word of "rpmbuild", so it can be a program name with args.
8400 set dummy rpmbuild
; ac_word
=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_path_RPMBUILD+:} false
; then :
8404 $as_echo_n "(cached) " >&6
8408 ac_cv_path_RPMBUILD
="$RPMBUILD" # Let the user override the test with a path.
8411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8415 test -z "$as_dir" && as_dir
=.
8416 for ac_exec_ext
in '' $ac_executable_extensions; do
8417 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8418 ac_cv_path_RPMBUILD
="$as_dir/$ac_word$ac_exec_ext"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 RPMBUILD
=$ac_cv_path_RPMBUILD
8430 if test -n "$RPMBUILD"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8432 $as_echo "$RPMBUILD" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8440 test $target_distro = slackware
&& RPMBUILD
=''
8444 if test -z "$RPM"; then
8445 # Extract the first word of "rpm", so it can be a program name with args.
8446 set dummy rpm
; ac_word
=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_path_RPM+:} false
; then :
8450 $as_echo_n "(cached) " >&6
8454 ac_cv_path_RPM
="$RPM" # Let the user override the test with a path.
8457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8461 test -z "$as_dir" && as_dir
=.
8462 for ac_exec_ext
in '' $ac_executable_extensions; do
8463 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8464 ac_cv_path_RPM
="$as_dir/$ac_word$ac_exec_ext"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8476 if test -n "$RPM"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8478 $as_echo "$RPM" >&6; }
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8486 test $target_distro = slackware
&& RPM
=''
8490 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8498 if test -z "$POD2MAN"; then
8499 # Extract the first word of "pod2man", so it can be a program name with args.
8500 set dummy pod2man
; ac_word
=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_path_POD2MAN+:} false
; then :
8504 $as_echo_n "(cached) " >&6
8508 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8515 test -z "$as_dir" && as_dir
=.
8516 for ac_exec_ext
in '' $ac_executable_extensions; do
8517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8518 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 POD2MAN
=$ac_cv_path_POD2MAN
8530 if test -n "$POD2MAN"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8532 $as_echo "$POD2MAN" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8544 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8545 perl
-e "use ExtUtils::MakeMaker" 2>/dev
/null
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8549 $as_echo " yes" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo " no" >&6; }
8554 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8555 echo "You can either install this from your distribution, or"
8556 echo "download from CPAN (Comprehensive Perl Archive Network)."
8557 rm -rf conftest conftest.
*
8561 # Extract the first word of "true", so it can be a program name with args.
8562 set dummy true
; ac_word
=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_path_TRUEPROG+:} false
; then :
8566 $as_echo_n "(cached) " >&6
8570 ac_cv_path_TRUEPROG
="$TRUEPROG" # Let the user override the test with a path.
8573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8577 test -z "$as_dir" && as_dir
=.
8578 for ac_exec_ext
in '' $ac_executable_extensions; do
8579 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8580 ac_cv_path_TRUEPROG
="$as_dir/$ac_word$ac_exec_ext"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 TRUEPROG
=$ac_cv_path_TRUEPROG
8592 if test -n "$TRUEPROG"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8594 $as_echo "$TRUEPROG" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8602 if test -z "$MAKEDEPEND"; then
8603 # Extract the first word of "makedepend", so it can be a program name with args.
8604 set dummy makedepend
; ac_word
=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if ${ac_cv_path_MAKEDEPEND+:} false
; then :
8608 $as_echo_n "(cached) " >&6
8612 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
8615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8619 test -z "$as_dir" && as_dir
=.
8620 for ac_exec_ext
in '' $ac_executable_extensions; do
8621 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8622 ac_cv_path_MAKEDEPEND
="$as_dir/$ac_word$ac_exec_ext"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUEPROG"
8634 MAKEDEPEND
=$ac_cv_path_MAKEDEPEND
8635 if test -n "$MAKEDEPEND"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8637 $as_echo "$MAKEDEPEND" >&6; }
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 $as_echo "no" >&6; }
8645 makedepend
=$MAKEDEPEND
8648 if test -z "$MD5SUM"; then
8649 # Extract the first word of "md5sum", so it can be a program name with args.
8650 set dummy
md5sum; ac_word
=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_path_MD5SUM+:} false
; then :
8654 $as_echo_n "(cached) " >&6
8658 ac_cv_path_MD5SUM
="$MD5SUM" # Let the user override the test with a path.
8661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8665 test -z "$as_dir" && as_dir
=.
8666 for ac_exec_ext
in '' $ac_executable_extensions; do
8667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8668 ac_cv_path_MD5SUM
="$as_dir/$ac_word$ac_exec_ext"
8669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM
="$TRUEPROG"
8680 MD5SUM
=$ac_cv_path_MD5SUM
8681 if test -n "$MD5SUM"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8683 $as_echo "$MD5SUM" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8694 if test -z "$DPKG"; then
8695 # Extract the first word of "dpkg", so it can be a program name with args.
8696 set dummy dpkg
; ac_word
=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if ${ac_cv_path_DPKG+:} false
; then :
8700 $as_echo_n "(cached) " >&6
8704 ac_cv_path_DPKG
="$DPKG" # Let the user override the test with a path.
8707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8711 test -z "$as_dir" && as_dir
=.
8712 for ac_exec_ext
in '' $ac_executable_extensions; do
8713 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8714 ac_cv_path_DPKG
="$as_dir/$ac_word$ac_exec_ext"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 DPKG
=$ac_cv_path_DPKG
8726 if test -n "$DPKG"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8728 $as_echo "$DPKG" >&6; }
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8739 if test -z "$MAKEPKG"; then
8740 # Extract the first word of "makepkg", so it can be a program name with args.
8741 set dummy makepkg
; ac_word
=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_path_MAKEPKG+:} false
; then :
8745 $as_echo_n "(cached) " >&6
8749 ac_cv_path_MAKEPKG
="$MAKEPKG" # Let the user override the test with a path.
8752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8756 test -z "$as_dir" && as_dir
=.
8757 for ac_exec_ext
in '' $ac_executable_extensions; do
8758 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8759 ac_cv_path_MAKEPKG
="$as_dir/$ac_word$ac_exec_ext"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 MAKEPKG
=$ac_cv_path_MAKEPKG
8771 if test -n "$MAKEPKG"; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8773 $as_echo "$MAKEPKG" >&6; }
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8784 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8785 set dummy publican
; ac_word
=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if ${ac_cv_path_PUBLICAN+:} false
; then :
8789 $as_echo_n "(cached) " >&6
8793 ac_cv_path_PUBLICAN
="$PUBLICAN" # Let the user override the test with a path.
8796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8800 test -z "$as_dir" && as_dir
=.
8801 for ac_exec_ext
in '' $ac_executable_extensions; do
8802 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8803 ac_cv_path_PUBLICAN
="$as_dir/$ac_word$ac_exec_ext"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 PUBLICAN
=$ac_cv_path_PUBLICAN
8815 if test -n "$PUBLICAN"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8817 $as_echo "$PUBLICAN" >&6; }
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8826 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8827 set dummy dblatex
; ac_word
=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_path_DBLATEX+:} false
; then :
8831 $as_echo_n "(cached) " >&6
8835 ac_cv_path_DBLATEX
="$DBLATEX" # Let the user override the test with a path.
8838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8842 test -z "$as_dir" && as_dir
=.
8843 for ac_exec_ext
in '' $ac_executable_extensions; do
8844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_path_DBLATEX
="$as_dir/$ac_word$ac_exec_ext"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 DBLATEX
=$ac_cv_path_DBLATEX
8857 if test -n "$DBLATEX"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8859 $as_echo "$DBLATEX" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8868 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8869 set dummy xmlto
; ac_word
=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if ${ac_cv_path_XMLTO+:} false
; then :
8873 $as_echo_n "(cached) " >&6
8877 ac_cv_path_XMLTO
="$XMLTO" # Let the user override the test with a path.
8880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8884 test -z "$as_dir" && as_dir
=.
8885 for ac_exec_ext
in '' $ac_executable_extensions; do
8886 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8887 ac_cv_path_XMLTO
="$as_dir/$ac_word$ac_exec_ext"
8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 XMLTO
=$ac_cv_path_XMLTO
8899 if test -n "$XMLTO"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8901 $as_echo "$XMLTO" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8912 if test "$do_books" = "check" -o "$do_books" = "yes"
8914 if test "$BOOK_TOOLCHAIN" != ""
8916 book_toolchain
=$BOOK_TOOLCHAIN
8917 elif test "$DBLATEX" != ""
8919 book_toolchain
=dblatex
8920 elif test "$PUBLICAN" != ""
8922 book_toolchain
=publican
8923 elif test "$XMLTO" != ""
8925 book_toolchain
=xmlto
8926 elif test "$do_books" = "yes"
8928 as_fn_error $?
"cannot enable books build - no toolchain found" "$LINENO" 5
8934 if test "$do_books_brand" != ""
8936 book_brand
=$do_books_brand
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8941 $as_echo_n "checking whether ln -s works... " >&6; }
8943 if test "$LN_S" = "ln -s"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8945 $as_echo "yes" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8948 $as_echo "no, using $LN_S" >&6; }
8951 if test $target_os = mingw
; then
8957 test -f /proc
/stat || mount
/proc
>/dev
/null
2>&1
8960 if test -n "$PROCPS"
8962 pcp_ps_prog
="$PROCPS"
8968 if test $target_os = mingw
8970 pcp_syslog_prog
=pcp-eventlog
8972 pcp_syslog_prog
=logger
8977 if test $target_os = solaris
8979 test -f /usr
/xpg
4/bin
/grep && grep=/usr
/xpg
4/bin
/grep
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8984 $as_echo_n "checking for /proc ... " >&6; }
8985 if test "$cross_compiling" = "yes"; then
8987 echo "cross-compile -> \"$ans\"" >&5
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8997 $as_echo "yes" >&6; }
8999 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9007 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9008 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9010 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9011 if eval \
${$as_ac_Header+:} false
; then :
9012 $as_echo_n "(cached) " >&6
9014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9016 #include <sys/types.h>
9028 if ac_fn_c_try_compile
"$LINENO"; then :
9029 eval "$as_ac_Header=yes"
9031 eval "$as_ac_Header=no"
9033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9035 eval ac_res
=\$
$as_ac_Header
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9037 $as_echo "$ac_res" >&6; }
9038 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9039 cat >>confdefs.h
<<_ACEOF
9040 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9043 ac_header_dirent
=$ac_hdr; break
9047 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9048 if test $ac_header_dirent = dirent.h
; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9050 $as_echo_n "checking for library containing opendir... " >&6; }
9051 if ${ac_cv_search_opendir+:} false
; then :
9052 $as_echo_n "(cached) " >&6
9054 ac_func_search_save_LIBS
=$LIBS
9055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9058 /* Override any GCC internal prototype to avoid an error.
9059 Use char because int might match the return type of a GCC
9060 builtin and then its argument prototype would still apply. */
9073 for ac_lib
in '' dir
; do
9074 if test -z "$ac_lib"; then
9075 ac_res
="none required"
9078 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9080 if ac_fn_c_try_link
"$LINENO"; then :
9081 ac_cv_search_opendir
=$ac_res
9083 rm -f core conftest.err conftest.
$ac_objext \
9085 if ${ac_cv_search_opendir+:} false
; then :
9089 if ${ac_cv_search_opendir+:} false
; then :
9092 ac_cv_search_opendir
=no
9095 LIBS
=$ac_func_search_save_LIBS
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9098 $as_echo "$ac_cv_search_opendir" >&6; }
9099 ac_res
=$ac_cv_search_opendir
9100 if test "$ac_res" != no
; then :
9101 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9107 $as_echo_n "checking for library containing opendir... " >&6; }
9108 if ${ac_cv_search_opendir+:} false
; then :
9109 $as_echo_n "(cached) " >&6
9111 ac_func_search_save_LIBS
=$LIBS
9112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9115 /* Override any GCC internal prototype to avoid an error.
9116 Use char because int might match the return type of a GCC
9117 builtin and then its argument prototype would still apply. */
9130 for ac_lib
in '' x
; do
9131 if test -z "$ac_lib"; then
9132 ac_res
="none required"
9135 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9137 if ac_fn_c_try_link
"$LINENO"; then :
9138 ac_cv_search_opendir
=$ac_res
9140 rm -f core conftest.err conftest.
$ac_objext \
9142 if ${ac_cv_search_opendir+:} false
; then :
9146 if ${ac_cv_search_opendir+:} false
; then :
9149 ac_cv_search_opendir
=no
9152 LIBS
=$ac_func_search_save_LIBS
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9155 $as_echo "$ac_cv_search_opendir" >&6; }
9156 ac_res
=$ac_cv_search_opendir
9157 if test "$ac_res" != no
; then :
9158 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9165 $as_echo_n "checking for ANSI C header files... " >&6; }
9166 if ${ac_cv_header_stdc+:} false
; then :
9167 $as_echo_n "(cached) " >&6
9169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9184 if ac_fn_c_try_compile
"$LINENO"; then :
9185 ac_cv_header_stdc
=yes
9187 ac_cv_header_stdc
=no
9189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9191 if test $ac_cv_header_stdc = yes; then
9192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9199 $EGREP "memchr" >/dev
/null
2>&1; then :
9202 ac_cv_header_stdc
=no
9208 if test $ac_cv_header_stdc = yes; then
9209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9216 $EGREP "free" >/dev
/null
2>&1; then :
9219 ac_cv_header_stdc
=no
9225 if test $ac_cv_header_stdc = yes; then
9226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9227 if test "$cross_compiling" = yes; then :
9230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9234 #if ((' ' & 0x0FF) == 0x020)
9235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9238 # define ISLOWER(c) \
9239 (('a' <= (c) && (c) <= 'i') \
9240 || ('j' <= (c) && (c) <= 'r') \
9241 || ('s' <= (c) && (c) <= 'z'))
9242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9250 for (i = 0; i < 256; i++)
9251 if (XOR (islower (i), ISLOWER (i))
9252 || toupper (i) != TOUPPER (i))
9257 if ac_fn_c_try_run
"$LINENO"; then :
9260 ac_cv_header_stdc
=no
9262 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9263 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9269 $as_echo "$ac_cv_header_stdc" >&6; }
9270 if test $ac_cv_header_stdc = yes; then
9272 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9277 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9278 if ${ac_cv_header_sys_wait_h+:} false
; then :
9279 $as_echo_n "(cached) " >&6
9281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 #include <sys/types.h>
9284 #include <sys/wait.h>
9286 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9289 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9297 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9302 if ac_fn_c_try_compile
"$LINENO"; then :
9303 ac_cv_header_sys_wait_h
=yes
9305 ac_cv_header_sys_wait_h
=no
9307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9310 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9311 if test $ac_cv_header_sys_wait_h = yes; then
9313 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9317 for ac_header
in fcntl.h limits.h malloc.h
strings.h syslog.h
9319 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9321 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9322 cat >>confdefs.h
<<_ACEOF
9323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9330 for ac_header
in stddef.h sched.h dlfcn.h dl.h
9332 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9333 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9334 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9335 cat >>confdefs.h
<<_ACEOF
9336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9343 for ac_header
in sys
/times.h sys
/resource.h sys
/prctl.h
9345 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9346 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9347 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9348 cat >>confdefs.h
<<_ACEOF
9349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9356 for ac_header
in sys
/sysinfo.h sys
/systeminfo.h
9358 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9359 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9360 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9361 cat >>confdefs.h
<<_ACEOF
9362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369 for ac_header
in endian.h standards.h sys
/byteorder.h
9371 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9372 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9373 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9374 cat >>confdefs.h
<<_ACEOF
9375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9382 for ac_header
in libgen.h sys
/mman.h sys
/un.h
9384 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9385 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9386 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9387 cat >>confdefs.h
<<_ACEOF
9388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9395 for ac_header
in values.h stdint.h ieeefp.h math.h
9397 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9398 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9399 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9400 cat >>confdefs.h
<<_ACEOF
9401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9408 for ac_header
in pwd.h grp.h regex.h sys
/wait.h
9410 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9411 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9412 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9413 cat >>confdefs.h
<<_ACEOF
9414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9421 for ac_header
in termio.h termios.h sys
/termios.h
9423 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9424 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9425 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9426 cat >>confdefs.h
<<_ACEOF
9427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9434 for ac_header
in sys
/ioctl.h sys
/select.h sys
/socket.h
9436 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9437 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9438 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9439 cat >>confdefs.h
<<_ACEOF
9440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9447 for ac_header
in netdb.h
9449 ac_fn_c_check_header_mongrel
"$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9450 if test "x$ac_cv_header_netdb_h" = xyes
; then :
9451 cat >>confdefs.h
<<_ACEOF
9452 #define HAVE_NETDB_H 1
9459 if test $target_os = darwin
-o $target_os = openbsd
9461 for ac_header
in net
/if.h
9463 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9464 #include <sys/socket.h>
9466 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9467 cat >>confdefs.h
<<_ACEOF
9468 #define HAVE_NET_IF_H 1
9476 for ac_header
in net
/if.h
9478 ac_fn_c_check_header_mongrel
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9479 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9480 cat >>confdefs.h
<<_ACEOF
9481 #define HAVE_NET_IF_H 1
9489 for ac_header
in netinet
/in.h netinet
/tcp.h arpa
/inet.h
9491 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9492 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9493 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9494 cat >>confdefs.h
<<_ACEOF
9495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9502 for ac_header
in windows.h winsock2.h ws2tcpip.h
9504 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9505 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9506 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9507 cat >>confdefs.h
<<_ACEOF
9508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9515 for ac_header
in execinfo.h bits
/wordsize.h
9517 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9518 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9519 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9520 cat >>confdefs.h
<<_ACEOF
9521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9528 for ac_header
in iptypes.h
9530 ac_fn_c_check_header_compile
"$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9532 if test "x$ac_cv_header_iptypes_h" = xyes
; then :
9533 cat >>confdefs.h
<<_ACEOF
9534 #define HAVE_IPTYPES_H 1
9541 for ac_header
in iphlpapi.h
9543 ac_fn_c_check_header_compile
"$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9545 if test "x$ac_cv_header_iphlpapi_h" = xyes
; then :
9546 cat >>confdefs.h
<<_ACEOF
9547 #define HAVE_IPHLPAPI_H 1
9554 for ac_header
in fts.h libzfs.h
9556 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9557 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9558 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9559 cat >>confdefs.h
<<_ACEOF
9560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9567 for ac_header
in sys
/statvfs.h sys
/statfs.h sys
/mount.h
9569 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9570 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9571 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9572 cat >>confdefs.h
<<_ACEOF
9573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9582 $as_echo_n "checking for sys/endian.h ... " >&6; }
9583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9586 #include <sys/endian.h>
9597 if ac_fn_c_try_compile
"$LINENO"; then :
9599 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9601 $as_echo "yes" >&6; }
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9609 $as_echo_n "checking for machine/endian.h ... " >&6; }
9610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9613 #include <machine/endian.h>
9624 if ac_fn_c_try_compile
"$LINENO"; then :
9626 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9636 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9640 #include <standards.h>
9641 #include <sys/endian.h>
9652 if ac_fn_c_try_compile
"$LINENO"; then :
9654 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9656 $as_echo "yes" >&6; }
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9664 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9665 if ${ac_cv_c_const+:} false
; then :
9666 $as_echo_n "(cached) " >&6
9668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9676 /* Ultrix mips cc rejects this sort of thing. */
9677 typedef int charset[2];
9678 const charset cs = { 0, 0 };
9679 /* SunOS 4.1.1 cc rejects this. */
9680 char const *const *pcpcc;
9682 /* NEC SVR4.0.2 mips cc rejects this. */
9683 struct point {int x, y;};
9684 static struct point const zero = {0,0};
9685 /* AIX XL C 1.02.0.0 rejects this.
9686 It does not let you subtract one const X* pointer from another in
9687 an arm of an if-expression whose if-part is not a constant
9689 const char *g = "string";
9690 pcpcc = &g + (g ? g-g : 0);
9691 /* HPUX 7.0 cc rejects these. */
9693 ppc = (char**) pcpcc;
9694 pcpcc = (char const *const *) ppc;
9695 { /* SCO 3.2v4 cc rejects this sort of thing. */
9698 char const *s = 0 ? (char *) 0 : (char const *) 0;
9703 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9705 const int *foo = &x[0];
9708 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9709 typedef const int *iptr;
9713 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9714 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9715 struct s { int j; const int *ap[3]; } bx;
9716 struct s *b = &bx; b->j = 5;
9718 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9722 return !cs[0] && !zero.x;
9729 if ac_fn_c_try_compile
"$LINENO"; then :
9734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9737 $as_echo "$ac_cv_c_const" >&6; }
9738 if test $ac_cv_c_const = no
; then
9740 $as_echo "#define const /**/" >>confdefs.h
9744 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9745 if test "x$ac_cv_type_off_t" = xyes
; then :
9749 cat >>confdefs.h
<<_ACEOF
9750 #define off_t long int
9755 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9756 if test "x$ac_cv_type_pid_t" = xyes
; then :
9760 cat >>confdefs.h
<<_ACEOF
9766 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9767 if test "x$ac_cv_type_size_t" = xyes
; then :
9771 cat >>confdefs.h
<<_ACEOF
9772 #define size_t unsigned int
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9778 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9779 if ${ac_cv_header_time+:} false
; then :
9780 $as_echo_n "(cached) " >&6
9782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 #include <sys/types.h>
9785 #include <sys/time.h>
9791 if ((struct tm *) 0)
9797 if ac_fn_c_try_compile
"$LINENO"; then :
9798 ac_cv_header_time
=yes
9800 ac_cv_header_time
=no
9802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9805 $as_echo "$ac_cv_header_time" >&6; }
9806 if test $ac_cv_header_time = yes; then
9808 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9813 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9814 if ${ac_cv_struct_tm+:} false
; then :
9815 $as_echo_n "(cached) " >&6
9817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 #include <sys/types.h>
9826 int *p = &tm.tm_sec;
9832 if ac_fn_c_try_compile
"$LINENO"; then :
9833 ac_cv_struct_tm
=time.h
9835 ac_cv_struct_tm
=sys
/time.h
9837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9840 $as_echo "$ac_cv_struct_tm" >&6; }
9841 if test $ac_cv_struct_tm = sys
/time.h
; then
9843 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9848 $as_echo_n "checking for inline... " >&6; }
9849 if ${ac_cv_c_inline+:} false
; then :
9850 $as_echo_n "(cached) " >&6
9853 for ac_kw
in inline __inline__ __inline
; do
9854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9858 static $ac_kw foo_t static_foo () {return 0; }
9859 $ac_kw foo_t foo () {return 0; }
9863 if ac_fn_c_try_compile
"$LINENO"; then :
9864 ac_cv_c_inline
=$ac_kw
9866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9867 test "$ac_cv_c_inline" != no
&& break
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9872 $as_echo "$ac_cv_c_inline" >&6; }
9874 case $ac_cv_c_inline in
9877 case $ac_cv_c_inline in
9879 *) ac_val
=$ac_cv_c_inline;;
9881 cat >>confdefs.h
<<_ACEOF
9883 #define inline $ac_val
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9891 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9892 if ${ac_cv_lib_regex_regcomp+:} false
; then :
9893 $as_echo_n "(cached) " >&6
9895 ac_check_lib_save_LIBS
=$LIBS
9896 LIBS
="-lregex $LIBS"
9897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9915 if ac_fn_c_try_link
"$LINENO"; then :
9916 ac_cv_lib_regex_regcomp
=yes
9918 ac_cv_lib_regex_regcomp
=no
9920 rm -f core conftest.err conftest.
$ac_objext \
9921 conftest
$ac_exeext conftest.
$ac_ext
9922 LIBS
=$ac_check_lib_save_LIBS
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9925 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9926 if test "x$ac_cv_lib_regex_regcomp" = xyes
; then :
9927 cat >>confdefs.h
<<_ACEOF
9928 #define HAVE_LIBREGEX 1
9931 LIBS
="-lregex $LIBS"
9936 if test $ac_cv_lib_regex_regcomp = yes
9938 lib_for_regex
="-lregex"
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9945 $as_echo_n "checking for ncurses... " >&6; }
9947 if test -n "$ncurses_CFLAGS"; then
9948 pkg_cv_ncurses_CFLAGS
="$ncurses_CFLAGS"
9949 elif test -n "$PKG_CONFIG"; then
9950 if test -n "$PKG_CONFIG" && \
9951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9952 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9955 test $ac_status = 0; }; then
9956 pkg_cv_ncurses_CFLAGS
=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9957 test "x$?" != "x0" && pkg_failed
=yes
9964 if test -n "$ncurses_LIBS"; then
9965 pkg_cv_ncurses_LIBS
="$ncurses_LIBS"
9966 elif test -n "$PKG_CONFIG"; then
9967 if test -n "$PKG_CONFIG" && \
9968 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9969 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9972 test $ac_status = 0; }; then
9973 pkg_cv_ncurses_LIBS
=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9974 test "x$?" != "x0" && pkg_failed
=yes
9984 if test $pkg_failed = yes; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9988 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9989 _pkg_short_errors_supported
=yes
9991 _pkg_short_errors_supported
=no
9993 if test $_pkg_short_errors_supported = yes; then
9994 ncurses_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9996 ncurses_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9998 # Put the nasty error message in config.log where it belongs
9999 echo "$ncurses_PKG_ERRORS" >&5
10002 elif test $pkg_failed = untried
; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10007 ncurses_CFLAGS
=$pkg_cv_ncurses_CFLAGS
10008 ncurses_LIBS
=$pkg_cv_ncurses_LIBS
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10010 $as_echo "yes" >&6; }
10013 HAVE_NCURSES
=$have_ncurses
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10019 $as_echo_n "checking for SYSTEMD... " >&6; }
10021 if test -n "$SYSTEMD_CFLAGS"; then
10022 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
10023 elif test -n "$PKG_CONFIG"; then
10024 if test -n "$PKG_CONFIG" && \
10025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10026 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10029 test $ac_status = 0; }; then
10030 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
10031 test "x$?" != "x0" && pkg_failed
=yes
10038 if test -n "$SYSTEMD_LIBS"; then
10039 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
10040 elif test -n "$PKG_CONFIG"; then
10041 if test -n "$PKG_CONFIG" && \
10042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10043 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10046 test $ac_status = 0; }; then
10047 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
10048 test "x$?" != "x0" && pkg_failed
=yes
10058 if test $pkg_failed = yes; then
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10062 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10063 _pkg_short_errors_supported
=yes
10065 _pkg_short_errors_supported
=no
10067 if test $_pkg_short_errors_supported = yes; then
10068 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
10070 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
10072 # Put the nasty error message in config.log where it belongs
10073 echo "$SYSTEMD_PKG_ERRORS" >&5
10076 elif test $pkg_failed = untried
; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10081 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
10082 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10084 $as_echo "yes" >&6; }
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10094 $as_echo_n "checking for SYSTEMD... " >&6; }
10096 if test -n "$SYSTEMD_CFLAGS"; then
10097 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
10098 elif test -n "$PKG_CONFIG"; then
10099 if test -n "$PKG_CONFIG" && \
10100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10101 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10104 test $ac_status = 0; }; then
10105 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
10106 test "x$?" != "x0" && pkg_failed
=yes
10113 if test -n "$SYSTEMD_LIBS"; then
10114 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
10115 elif test -n "$PKG_CONFIG"; then
10116 if test -n "$PKG_CONFIG" && \
10117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10118 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10121 test $ac_status = 0; }; then
10122 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
10123 test "x$?" != "x0" && pkg_failed
=yes
10133 if test $pkg_failed = yes; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10138 _pkg_short_errors_supported
=yes
10140 _pkg_short_errors_supported
=no
10142 if test $_pkg_short_errors_supported = yes; then
10143 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10145 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10147 # Put the nasty error message in config.log where it belongs
10148 echo "$SYSTEMD_PKG_ERRORS" >&5
10151 elif test $pkg_failed = untried
; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10156 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
10157 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159 $as_echo "yes" >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
10164 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
10165 PMDA_SYSTEMD
=$pmda_systemd
10167 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10168 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }; fi
10171 pmda_infiniband
=false
10172 if test "x$do_infiniband" != "xno"; then :
10174 for ac_header
in infiniband
/umad.h
10176 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10177 if test "x$ac_cv_header_infiniband_umad_h" = xyes
; then :
10178 cat >>confdefs.h
<<_ACEOF
10179 #define HAVE_INFINIBAND_UMAD_H 1
10182 for ac_header
in infiniband
/mad.h
10184 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10185 if test "x$ac_cv_header_infiniband_mad_h" = xyes
; then :
10186 cat >>confdefs.h
<<_ACEOF
10187 #define HAVE_INFINIBAND_MAD_H 1
10189 pmda_infiniband
=true
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10202 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10203 if ${ac_cv_lib_ibmad_madrpc_init+:} false
; then :
10204 $as_echo_n "(cached) " >&6
10206 ac_check_lib_save_LIBS
=$LIBS
10207 LIBS
="-libmad $LIBS"
10208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10217 char madrpc_init ();
10221 return madrpc_init ();
10226 if ac_fn_c_try_link
"$LINENO"; then :
10227 ac_cv_lib_ibmad_madrpc_init
=yes
10229 ac_cv_lib_ibmad_madrpc_init
=no
10231 rm -f core conftest.err conftest.
$ac_objext \
10232 conftest
$ac_exeext conftest.
$ac_ext
10233 LIBS
=$ac_check_lib_save_LIBS
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10236 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10237 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes
; then :
10238 cat >>confdefs.h
<<_ACEOF
10239 #define HAVE_LIBIBMAD 1
10242 LIBS
="-libmad $LIBS"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10247 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10248 if ${ac_cv_lib_ibumad_umad_init+:} false
; then :
10249 $as_echo_n "(cached) " >&6
10251 ac_check_lib_save_LIBS
=$LIBS
10252 LIBS
="-libumad $LIBS"
10253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10266 return umad_init ();
10271 if ac_fn_c_try_link
"$LINENO"; then :
10272 ac_cv_lib_ibumad_umad_init
=yes
10274 ac_cv_lib_ibumad_umad_init
=no
10276 rm -f core conftest.err conftest.
$ac_objext \
10277 conftest
$ac_exeext conftest.
$ac_ext
10278 LIBS
=$ac_check_lib_save_LIBS
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10281 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10282 if test "x$ac_cv_lib_ibumad_umad_init" = xyes
; then :
10283 cat >>confdefs.h
<<_ACEOF
10284 #define HAVE_LIBIBUMAD 1
10287 LIBS
="-libumad $LIBS"
10291 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10293 IB_LIBS
="-libmad -libumad"
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10296 $as_echo_n "checking for port_performance_query_via... " >&6; }
10297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10306 char port_performance_query_via ();
10310 return port_performance_query_via ();
10315 if ac_fn_c_try_link
"$LINENO"; then :
10317 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10319 have_port_performance_query_via
=true
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10321 $as_echo "yes" >&6; }
10323 have_port_performance_query_via
=false
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10327 rm -f core conftest.err conftest.
$ac_objext \
10328 conftest
$ac_exeext conftest.
$ac_ext
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10330 $as_echo_n "checking for pma_query_via... " >&6; }
10331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10334 /* Override any GCC internal prototype to avoid an error.
10335 Use char because int might match the return type of a GCC
10336 builtin and then its argument prototype would still apply. */
10340 char pma_query_via ();
10344 return pma_query_via ();
10349 if ac_fn_c_try_link
"$LINENO"; then :
10351 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10353 have_pma_query_via
=true
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10355 $as_echo "yes" >&6; }
10357 have_pma_query_via
=false
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10361 rm -f core conftest.err conftest.
$ac_objext \
10362 conftest
$ac_exeext conftest.
$ac_ext
10364 if test $have_pma_query_via -o $have_port_performance_query_via
10368 pmda_infiniband
=false
10371 pmda_infiniband
=false
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10378 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10379 PMDA_INFINIBAND
=$pmda_infiniband
10381 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10382 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }; fi
10386 if test "x$do_papi" != "xno"; then :
10390 saved_LDFLAGS
="$LDFLAGS"
10391 saved_CFLAGS
="$CFLAGS"
10394 CFLAGS
="$papi_CFLAGS"
10395 LDFLAGS
="$papi_LIBS"
10401 PAPI_ROOTDIR
=$do_papi;
10402 CFLAGS
="-I$PAPI_ROOTDIR/include"
10403 LDFLAGS
="-L$PAPI_ROOTDIR/lib"
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10409 $as_echo_n "checking for papi... " >&6; }
10411 if test -n "$papi_CFLAGS"; then
10412 pkg_cv_papi_CFLAGS
="$papi_CFLAGS"
10413 elif test -n "$PKG_CONFIG"; then
10414 if test -n "$PKG_CONFIG" && \
10415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10416 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10419 test $ac_status = 0; }; then
10420 pkg_cv_papi_CFLAGS
=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10421 test "x$?" != "x0" && pkg_failed
=yes
10428 if test -n "$papi_LIBS"; then
10429 pkg_cv_papi_LIBS
="$papi_LIBS"
10430 elif test -n "$PKG_CONFIG"; then
10431 if test -n "$PKG_CONFIG" && \
10432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10433 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10436 test $ac_status = 0; }; then
10437 pkg_cv_papi_LIBS
=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10438 test "x$?" != "x0" && pkg_failed
=yes
10448 if test $pkg_failed = yes; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }
10452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10453 _pkg_short_errors_supported
=yes
10455 _pkg_short_errors_supported
=no
10457 if test $_pkg_short_errors_supported = yes; then
10458 papi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10460 papi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10462 # Put the nasty error message in config.log where it belongs
10463 echo "$papi_PKG_ERRORS" >&5
10465 as_fn_error $?
"Package requirements ($do_papi) were not met:
10469 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10470 installed software in a non-standard prefix.
10472 Alternatively, you may set the environment variables papi_CFLAGS
10473 and papi_LIBS to avoid the need to call pkg-config.
10474 See the pkg-config man page for more details." "$LINENO" 5
10475 elif test $pkg_failed = untried
; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10480 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
10481 is in your PATH or set the PKG_CONFIG environment variable to the full
10482 path to pkg-config.
10484 Alternatively, you may set the environment variables papi_CFLAGS
10485 and papi_LIBS to avoid the need to call pkg-config.
10486 See the pkg-config man page for more details.
10488 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10489 See \`config.log' for more details" "$LINENO" 5; }
10491 papi_CFLAGS
=$pkg_cv_papi_CFLAGS
10492 papi_LIBS
=$pkg_cv_papi_LIBS
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10494 $as_echo "yes" >&6; }
10496 CFLAGS
="$papi_CFLAGS"
10497 LDFLAGS
="$papi_LIBS"
10502 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10504 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10505 if ${ac_cv_lib_papi_PAPI_library_init+:} false
; then :
10506 $as_echo_n "(cached) " >&6
10508 ac_check_lib_save_LIBS
=$LIBS
10509 LIBS
="-lpapi $LIBS"
10510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10513 /* Override any GCC internal prototype to avoid an error.
10514 Use char because int might match the return type of a GCC
10515 builtin and then its argument prototype would still apply. */
10519 char PAPI_library_init ();
10523 return PAPI_library_init ();
10528 if ac_fn_c_try_link
"$LINENO"; then :
10529 ac_cv_lib_papi_PAPI_library_init
=yes
10531 ac_cv_lib_papi_PAPI_library_init
=no
10533 rm -f core conftest.err conftest.
$ac_objext \
10534 conftest
$ac_exeext conftest.
$ac_ext
10535 LIBS
=$ac_check_lib_save_LIBS
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10538 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10539 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes
; then :
10540 papi_libs
="$LDFLAGS -lpapi"
10545 for ac_header
in papi.h
10547 ac_fn_c_check_header_mongrel
"$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10548 if test "x$ac_cv_header_papi_h" = xyes
; then :
10549 cat >>confdefs.h
<<_ACEOF
10550 #define HAVE_PAPI_H 1
10552 papi_cflags
="$CFLAGS"
10559 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10561 as_fn_error $?
"PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10563 pmda_papi
=$enable_papi
10566 CFLAGS
="$saved_CFLAGS"
10567 LDFLAGS
="$saved_LDFLAGS"
10568 PAPI_CFLAGS
=$papi_cflags
10570 PAPI_LIBS
=$papi_libs
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10575 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10576 PMDA_PAPI
=$pmda_papi
10578 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10579 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }; fi
10582 if test "x$pmda_papi" = "xtrue"; then :
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10585 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10586 cat <<End-of-File >conftest.c
10588 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10590 (eval $ac_compile) 2>conftest.out
10591 cat conftest.out
>&5
10592 if test -s conftest.out
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10598 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10601 $as_echo "yes" >&6; }
10608 pmda_perfevent
=false
10609 if test "x$do_perfevent" != "xno" ; then :
10611 enable_perfevent
=true
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10615 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10616 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false
; then :
10617 $as_echo_n "(cached) " >&6
10619 ac_check_lib_save_LIBS
=$LIBS
10621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10624 /* Override any GCC internal prototype to avoid an error.
10625 Use char because int might match the return type of a GCC
10626 builtin and then its argument prototype would still apply. */
10630 char pfm_get_os_event_encoding ();
10634 return pfm_get_os_event_encoding ();
10639 if ac_fn_c_try_link
"$LINENO"; then :
10640 ac_cv_lib_pfm_pfm_get_os_event_encoding
=yes
10642 ac_cv_lib_pfm_pfm_get_os_event_encoding
=no
10644 rm -f core conftest.err conftest.
$ac_objext \
10645 conftest
$ac_exeext conftest.
$ac_ext
10646 LIBS
=$ac_check_lib_save_LIBS
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10649 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10650 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes
; then :
10653 enable_perfevent
=false
10656 for ac_header
in perfmon
/pfmlib_perf_event.h
10658 ac_fn_c_check_header_mongrel
"$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10659 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes
; then :
10660 cat >>confdefs.h
<<_ACEOF
10661 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10665 enable_perfevent
=false
10670 if test "$do_perfevent" != "check" -a "$enable_perfevent" != "true"
10672 as_fn_error $?
"libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10674 pmda_perfevent
=$enable_perfevent
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10682 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10683 PMDA_PERFEVENT
=$pmda_perfevent
10685 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10686 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; }; fi
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10692 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 #include <rpm/header.h>
10699 (void)HEADERGET_EXT;
10704 if ac_fn_c_try_compile
"$LINENO"; then :
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10706 $as_echo "yes" >&6; }
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10714 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10717 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10718 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }; fi
10723 for ac_prog
in qshape
10725 # Extract the first word of "$ac_prog", so it can be a program name with args.
10726 set dummy
$ac_prog; ac_word
=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if ${ac_cv_prog_QSHAPE+:} false
; then :
10730 $as_echo_n "(cached) " >&6
10732 if test -n "$QSHAPE"; then
10733 ac_cv_prog_QSHAPE
="$QSHAPE" # Let the user override the test.
10735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10736 as_dummy
="path=$PATH:/usr/sbin"
10737 for as_dir
in $as_dummy
10740 test -z "$as_dir" && as_dir
=.
10741 for ac_exec_ext
in '' $ac_executable_extensions; do
10742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10743 ac_cv_prog_QSHAPE
="$ac_prog"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 QSHAPE
=$ac_cv_prog_QSHAPE
10754 if test -n "$QSHAPE"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10756 $as_echo "$QSHAPE" >&6; }
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10763 test -n "$QSHAPE" && break
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10767 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10768 if test -n "$QSHAPE"
10772 for script in /usr
/share
/doc
/packages
/postfix-doc
/auxiliary
/qshape
/qshape.pl
10774 if test -f "$script"
10781 PMDA_POSTFIX
=$pmda_postfix
10783 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10784 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }; fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10790 $as_echo_n "checking for libmicrohttpd... " >&6; }
10792 if test -n "$libmicrohttpd_CFLAGS"; then
10793 pkg_cv_libmicrohttpd_CFLAGS
="$libmicrohttpd_CFLAGS"
10794 elif test -n "$PKG_CONFIG"; then
10795 if test -n "$PKG_CONFIG" && \
10796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10797 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10800 test $ac_status = 0; }; then
10801 pkg_cv_libmicrohttpd_CFLAGS
=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10802 test "x$?" != "x0" && pkg_failed
=yes
10809 if test -n "$libmicrohttpd_LIBS"; then
10810 pkg_cv_libmicrohttpd_LIBS
="$libmicrohttpd_LIBS"
10811 elif test -n "$PKG_CONFIG"; then
10812 if test -n "$PKG_CONFIG" && \
10813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10814 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10817 test $ac_status = 0; }; then
10818 pkg_cv_libmicrohttpd_LIBS
=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10819 test "x$?" != "x0" && pkg_failed
=yes
10829 if test $pkg_failed = yes; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10833 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10834 _pkg_short_errors_supported
=yes
10836 _pkg_short_errors_supported
=no
10838 if test $_pkg_short_errors_supported = yes; then
10839 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10841 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10843 # Put the nasty error message in config.log where it belongs
10844 echo "$libmicrohttpd_PKG_ERRORS" >&5
10846 have_libmicrohttpd
=false
10847 elif test $pkg_failed = untried
; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10850 have_libmicrohttpd
=false
10852 libmicrohttpd_CFLAGS
=$pkg_cv_libmicrohttpd_CFLAGS
10853 libmicrohttpd_LIBS
=$pkg_cv_libmicrohttpd_LIBS
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10855 $as_echo "yes" >&6; }
10856 have_libmicrohttpd
=true
10858 HAVE_LIBMICROHTTPD
=$have_libmicrohttpd
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10864 $as_echo_n "checking for cairo... " >&6; }
10866 if test -n "$cairo_CFLAGS"; then
10867 pkg_cv_cairo_CFLAGS
="$cairo_CFLAGS"
10868 elif test -n "$PKG_CONFIG"; then
10869 if test -n "$PKG_CONFIG" && \
10870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10871 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10874 test $ac_status = 0; }; then
10875 pkg_cv_cairo_CFLAGS
=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10876 test "x$?" != "x0" && pkg_failed
=yes
10883 if test -n "$cairo_LIBS"; then
10884 pkg_cv_cairo_LIBS
="$cairo_LIBS"
10885 elif test -n "$PKG_CONFIG"; then
10886 if test -n "$PKG_CONFIG" && \
10887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10888 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10891 test $ac_status = 0; }; then
10892 pkg_cv_cairo_LIBS
=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10893 test "x$?" != "x0" && pkg_failed
=yes
10903 if test $pkg_failed = yes; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10908 _pkg_short_errors_supported
=yes
10910 _pkg_short_errors_supported
=no
10912 if test $_pkg_short_errors_supported = yes; then
10913 cairo_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10915 cairo_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10917 # Put the nasty error message in config.log where it belongs
10918 echo "$cairo_PKG_ERRORS" >&5
10921 elif test $pkg_failed = untried
; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10926 cairo_CFLAGS
=$pkg_cv_cairo_CFLAGS
10927 cairo_LIBS
=$pkg_cv_cairo_LIBS
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10929 $as_echo "yes" >&6; }
10932 HAVE_CAIRO
=$have_cairo
10935 enable_webapi
=false
10936 if test "x$do_webapi" != "xno"; then :
10940 if test "$have_libmicrohttpd" != "true"
10942 enable_webapi
=false
10943 test "$do_webapi" != "check" && \
10944 as_fn_error $?
"libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10945 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10947 enable_webapi
=false
10948 test "$do_webapi" != "check" && \
10949 as_fn_error $?
"C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10955 enable_manager
=false
10956 if test "x$do_manager" != "xno"; then :
10958 enable_manager
=true
10960 if test "$target_os" = "mingw"
10962 enable_manager
=false
10963 test "$do_manager" != "check" && \
10964 as_fn_error $?
"MinGW build, cannot enable daemon manager" "$LINENO" 5
10965 elif test "x$cxx" = "x"
10967 enable_manager
=false
10968 test "$do_manager" != "check" && \
10969 as_fn_error $?
"C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10972 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10975 #ifndef _XOPEN_SOURCE
10976 #define _XOPEN_SOURCE 600
10988 if ac_fn_c_try_compile
"$LINENO"; then :
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10990 $as_echo "yes" >&6; }
10992 enable_manager
=false
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11002 $as_echo_n "checking return type of signal handlers... " >&6; }
11003 if ${ac_cv_type_signal+:} false
; then :
11004 $as_echo_n "(cached) " >&6
11006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 #include <sys/types.h>
11009 #include <signal.h>
11014 return *(signal (0, 0)) (0) == 1;
11019 if ac_fn_c_try_compile
"$LINENO"; then :
11020 ac_cv_type_signal
=int
11022 ac_cv_type_signal
=void
11024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11027 $as_echo "$ac_cv_type_signal" >&6; }
11029 cat >>confdefs.h
<<_ACEOF
11030 #define RETSIGTYPE $ac_cv_type_signal
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
11035 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
11036 if ${ac_cv_func_wait3_rusage+:} false
; then :
11037 $as_echo_n "(cached) " >&6
11039 if test "$cross_compiling" = yes; then :
11040 ac_cv_func_wait3_rusage
=no
11042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044 $ac_includes_default
11045 #include <sys/time.h>
11046 #include <sys/resource.h>
11047 #include <sys/wait.h>
11048 /* HP-UX has wait3 but does not fill in rusage at all. */
11054 /* Use a field that we can force nonzero --
11055 voluntary context switches.
11056 For systems like NeXT and OSF/1 that don't set it,
11057 also use the system CPU time. And page faults (I/O) for Linux. */
11059 r.ru_stime.tv_sec = 0;
11060 r.ru_stime.tv_usec = 0;
11061 r.ru_majflt = r.ru_minflt = 0;
11064 case 0: /* Child. */
11065 sleep(1); /* Give up the CPU. */
11068 case -1: /* What can we do? */
11071 default: /* Parent. */
11073 /* Avoid "text file busy" from rm on fast HP-UX machines. */
11075 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
11076 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
11080 if ac_fn_c_try_run
"$LINENO"; then :
11081 ac_cv_func_wait3_rusage
=yes
11083 ac_cv_func_wait3_rusage
=no
11085 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11086 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
11091 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
11092 if test $ac_cv_func_wait3_rusage = yes; then
11094 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
11098 for ac_func
in vprintf
11100 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
11101 if test "x$ac_cv_func_vprintf" = xyes
; then :
11102 cat >>confdefs.h
<<_ACEOF
11103 #define HAVE_VPRINTF 1
11106 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
11107 if test "x$ac_cv_func__doprnt" = xyes
; then :
11109 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11117 for ac_func
in mktime nanosleep
usleep unsetenv
11119 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11121 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11122 cat >>confdefs.h
<<_ACEOF
11123 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11129 for ac_func
in select socket gethostname getpeerucred getpeereid
11131 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11132 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11133 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11134 cat >>confdefs.h
<<_ACEOF
11135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11141 for ac_func
in uname syslog __clone pipe2 fcntl ioctl
11143 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11144 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11145 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11146 cat >>confdefs.h
<<_ACEOF
11147 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11153 for ac_func
in prctl setlinebuf waitpid atexit
kill
11155 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11156 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11157 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11158 cat >>confdefs.h
<<_ACEOF
11159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11165 for ac_func
in chown fchmod getcwd scandir mkstemp
11167 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11168 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11169 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11170 cat >>confdefs.h
<<_ACEOF
11171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11177 for ac_func
in brk sbrk posix_memalign memalign valloc
11179 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11180 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11181 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11182 cat >>confdefs.h
<<_ACEOF
11183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11189 for ac_func
in signal sighold sigrelse tcgetattr
11191 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11193 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11194 cat >>confdefs.h
<<_ACEOF
11195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11201 for ac_func
in regex regcmp regexec regcomp
11203 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11204 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11205 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11206 cat >>confdefs.h
<<_ACEOF
11207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213 for ac_func
in strtod strtol strtoll strtoull strndup strchrnul
11215 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11216 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11217 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11218 cat >>confdefs.h
<<_ACEOF
11219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11225 for ac_func
in getuid getgid
11227 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11228 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11229 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11230 cat >>confdefs.h
<<_ACEOF
11231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11237 for ac_func
in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11239 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11240 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11241 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11242 cat >>confdefs.h
<<_ACEOF
11243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11249 for ac_func
in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11251 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11252 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11253 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11254 cat >>confdefs.h
<<_ACEOF
11255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11261 for ac_func
in sysinfo trace_back_stack backtrace
11263 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11264 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11265 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11266 cat >>confdefs.h
<<_ACEOF
11267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11273 for ac_func
in sendmsg recvmsg setns
11275 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11276 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11277 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11278 cat >>confdefs.h
<<_ACEOF
11279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11286 if test $target_os != linux
-a $target_os != freebsd
-a $target_os != kfreebsd
-a $target_os != netbsd
; then
11287 for ac_func
in readdir64
11289 ac_fn_c_check_func
"$LINENO" "readdir64" "ac_cv_func_readdir64"
11290 if test "x$ac_cv_func_readdir64" = xyes
; then :
11291 cat >>confdefs.h
<<_ACEOF
11292 #define HAVE_READDIR64 1
11300 if test $target_os = solaris
11302 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11303 if test "x$ac_cv_type___int32_t" = xyes
; then :
11307 cat >>confdefs.h
<<_ACEOF
11308 #define __int32_t int32_t
11313 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11314 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11318 cat >>confdefs.h
<<_ACEOF
11319 #define __uint32_t uint32_t
11324 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11325 if test "x$ac_cv_type___int64_t" = xyes
; then :
11329 cat >>confdefs.h
<<_ACEOF
11330 #define __int64_t int64_t
11335 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11336 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11340 cat >>confdefs.h
<<_ACEOF
11341 #define __uint64_t uint64_t
11346 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11347 if test "x$ac_cv_type_uint_t" = xyes
; then :
11351 cat >>confdefs.h
<<_ACEOF
11352 #define uint_t u_int32_t
11358 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11359 if test "x$ac_cv_type___int32_t" = xyes
; then :
11363 cat >>confdefs.h
<<_ACEOF
11364 #define __int32_t int
11369 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11370 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11374 cat >>confdefs.h
<<_ACEOF
11375 #define __uint32_t unsigned int
11380 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11381 if test "x$ac_cv_type___int64_t" = xyes
; then :
11385 cat >>confdefs.h
<<_ACEOF
11386 #define __int64_t long long
11391 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11392 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11396 cat >>confdefs.h
<<_ACEOF
11397 #define __uint64_t unsigned long long
11402 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11403 if test "x$ac_cv_type_uint_t" = xyes
; then :
11407 cat >>confdefs.h
<<_ACEOF
11408 #define uint_t unsigned int
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11416 $as_echo_n "checking for __psint_t ... " >&6; }
11417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11420 #include <sys/types.h>
11421 #include <stdlib.h>
11422 #include <stddef.h>
11432 if ac_fn_c_try_compile
"$LINENO"; then :
11434 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11436 $as_echo "yes" >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11444 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11448 #include <stddef.h>
11449 #ifdef HAVE_MALLOC_H
11450 #include <malloc.h>
11461 if ac_fn_c_try_compile
"$LINENO"; then :
11463 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465 $as_echo "yes" >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11473 $as_echo_n "checking for uid_t ... " >&6; }
11474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11477 #include <sys/types.h>
11490 if ac_fn_c_try_compile
"$LINENO"; then :
11492 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11494 $as_echo "yes" >&6; }
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11501 $as_echo_n "checking for gid_t ... " >&6; }
11502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 #include <sys/types.h>
11518 if ac_fn_c_try_compile
"$LINENO"; then :
11520 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11522 $as_echo "yes" >&6; }
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11529 $as_echo_n "checking for SID ... " >&6; }
11530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11533 #ifdef HAVE_WINDOWS_H
11534 #include <windows.h>
11545 if ac_fn_c_try_compile
"$LINENO"; then :
11547 $as_echo "#define HAVE_SID 1" >>confdefs.h
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11549 $as_echo "yes" >&6; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11557 $as_echo_n "checking for socklen_t ... " >&6; }
11558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 #include <sys/types.h>
11562 #ifdef HAVE_SYS_SOCKET_H
11563 #include <sys/socket.h>
11574 if ac_fn_c_try_compile
"$LINENO"; then :
11576 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11578 $as_echo "yes" >&6; }
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11598 if ac_fn_c_try_compile
"$LINENO"; then :
11600 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11608 #include <stdlib.h>
11609 #include <unistd.h>
11614 char **x = _environ;
11619 if ac_fn_c_try_link
"$LINENO"; then :
11621 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11624 rm -f core conftest.err conftest.
$ac_objext \
11625 conftest
$ac_exeext conftest.
$ac_ext
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11628 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11632 #ifdef HAVE_SYS_PRCTL_H
11633 #include <sys/prctl.h>
11639 int i = PR_TERMCHILD;
11644 if ac_fn_c_try_compile
"$LINENO"; then :
11646 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11656 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11660 #ifdef HAVE_SYS_PRCTL_H
11661 #include <sys/prctl.h>
11667 int i = PR_SET_PDEATHSIG;
11672 if ac_fn_c_try_compile
"$LINENO"; then :
11674 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676 $as_echo "yes" >&6; }
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11684 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11685 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
11686 $as_echo_n "(cached) " >&6
11688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 #include <sys/types.h>
11691 #include <termios.h>
11697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11698 $EGREP "yes" >/dev
/null
2>&1; then :
11699 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
11701 ac_cv_sys_tiocgwinsz_in_termios_h
=no
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11707 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11709 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11711 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11712 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
11713 $as_echo_n "(cached) " >&6
11715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11717 #include <sys/types.h>
11718 #include <sys/ioctl.h>
11724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11725 $EGREP "yes" >/dev
/null
2>&1; then :
11726 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
11728 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11734 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11736 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11738 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11745 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11746 save_CFLAGS
="$CFLAGS"
11748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11759 if ac_fn_c_try_link
"$LINENO"; then :
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11762 rdynamic_flag
=-rdynamic
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11769 rm -f core conftest.err conftest.
$ac_objext \
11770 conftest
$ac_exeext conftest.
$ac_ext
11771 CFLAGS
="$save_CFLAGS"
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11776 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11777 cat <<End-of-File >conftest.c
11778 #include <stdlib.h>
11779 #include <unistd.h>
11780 #include <dirent.h>
11782 my_select(const struct dirent *foo) { return 0; }
11783 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11785 (eval $ac_compile) 2>conftest.out
11786 cat conftest.out
>&5
11787 if test -s conftest.out
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11793 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796 $as_echo "yes" >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11801 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11802 cat <<End-of-File >conftest.c
11803 #include <stdlib.h>
11804 #include <unistd.h>
11805 #include <dirent.h>
11806 int main() { struct dirent d; d.d_off = 0; }
11808 (eval $ac_compile) 2>conftest.out
11809 cat conftest.out
>&5
11810 if test -s conftest.out
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11816 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11819 $as_echo "yes" >&6; }
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11824 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11825 if test "$cross_compiling" = "yes"; then
11826 ans
=$printf_p_prefix
11827 echo "cross-compile -> \"$ans\"" >&5
11829 cat <<End-of-File >conftest.c
11831 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11833 (eval $ac_compile) 2>&5
11834 (eval $ac_link) 2>&5
11836 echo "./conftest -> \"$ans\"" >&5
11842 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11845 $as_echo "yes" >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11852 rm -rf conftest conftest.
*
11856 # need to deal with this sort of cpp output ...
11857 # typedef long pid_t;
11858 # typedef unsigned int pid_t;
11859 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11860 # __extension__ typedef int pid_t;
11866 # typedef ... *pid;
11867 # and chaining of the form
11868 # typedef long __pid_t;
11869 # typedef __pid_t pid_t;
11871 _raw
=`$CPP conftest.c \
11873 -e 's/[ ]__attribute__ ((.*));/;/' \
11874 -e 's/__extension__[ ][ ]*//' \
11876 /bozo/ { print; next }
11877 $1 == "typedef" { printf "%s",$0
11883 if ($0 ~ /{/) depth = 1
11886 wantsemi == 1 { printf " %s",$0
11887 if ($0 ~ /{/) depth++
11889 if ($0 ~ /}/) depth--
11890 if (depth > 0) next
11903 $1 == "typedef" { map[$NF] = ""
11904 for (i = 2; i < NF; i++) {
11908 map[$NF] = map[$NF] " " $i
11910 print $NF " -> " map[$NF] >"conftest.debug"
11913 $2 == "bozo" { t = $1
11914 printf "best guess: %s",t >"conftest.debug"
11915 while (map[t] != "") {
11917 printf " -> %s",t >"conftest.debug"
11919 print "" >"conftest.debug"
11928 unsigned|
'unsigned int')
11934 'long long'|
'long long int')
11935 if test $target_os = mingw
; then
11941 'unsigned long'|
'unsigned long int'|
'long unsigned int')
11944 'unsigned long long'|
'unsigned long long int')
11945 if test $target_os = mingw
; then
11951 *\
*) # pointer to a something
11954 struct\
*) # not much can be done here ...
11959 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11960 echo "... typedef mapping ..."
11962 rm -rf conftest conftest.
*
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11969 $as_echo_n "checking printf type for pid_t... " >&6; }
11970 if test "$cross_compiling" = "yes"; then
11971 ans
=$printf_fmt_pid
11972 echo "cross-compile -> \"$ans\"" >&5
11975 cat <<End-of-File >conftest.c
11976 #include <sys/types.h>
11977 #include <unistd.h>
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11984 $as_echo "$fmt_pid" >&6; }
11986 rm -rf conftest.c conftest.debug
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11989 $as_echo_n "checking printf type for int64_t ... " >&6; }
11990 if test "$cross_compiling" = "yes"; then
11991 ans
=$printf_fmt_int64
11992 echo "cross-compile -> \"$ans\"" >&5
11994 cat <<End-of-File >conftest.c
11996 #include <stdint.h>
11997 #include <inttypes.h>
12000 printf("\"%s\"\n", __PRI64_PREFIX "d");
12005 (eval $ac_link) 2>&5
12006 if test -x .
/conftest
12009 echo "./conftest -> \"$ans\"" >&5
12013 cat <<End-of-File >conftest.c
12015 #include <stdint.h>
12016 #include <string.h>
12020 int64_t bozo = 0x12345678abcdLL;
12021 sprintf(buf, "%lx", bozo);
12022 if (strcmp(buf, "12345678abcd") == 0)
12023 printf("\"ld\"\n");
12025 sprintf(buf, "%llx", bozo);
12026 if (strcmp(buf, "12345678abcd") == 0)
12027 printf("\"lld\"\n");
12032 (eval $ac_link) 2>&5
12033 if test -x .
/conftest
12036 echo "./conftest -> \"$ans\"" >&5
12042 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
12043 rm -rf conftest conftest.
*
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
12048 $as_echo "\"$fmt_int64\"" >&6; }
12050 fmt_uint64
=`echo $fmt_int64 | sed -e 's/d"/u"/'`
12052 rm -rf conftest.
* conftest
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
12055 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
12056 if test "$cross_compiling" = "yes"; then
12058 echo "cross-compile -> \"$ans\"" >&5
12060 cat <<End-of-File >conftest.c
12062 #include <stdlib.h>
12065 long long int value = -1;
12066 value = strtol("1234567812345678", NULL, 16);
12067 if (value == 0x1234567812345678LL) {
12068 printf("strotol\n");
12071 value = strtoll("1234567812345678", NULL, 16);
12072 if (value == 0x1234567812345678LL) {
12073 printf("strtoll\n");
12079 (eval $ac_compile) 2>&5
12080 (eval $ac_link) 2>&5
12082 echo "./conftest -> \"$ans\"" >&5
12087 $as_echo "#define strtoint64 strtol" >>confdefs.h
12089 $as_echo "#define strtouint64 strtoul" >>confdefs.h
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
12092 $as_echo "strtol" >&6; }
12095 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12097 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
12100 $as_echo "strtoll" >&6; }
12103 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12105 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
12108 $as_echo "assuming strtoll" >&6; }
12111 rm -rf conftest conftest.
*
12113 if test "$do_threads" = "check" -o "$do_threads" = "yes"
12115 for ac_header
in pthread.h
12117 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12118 if test "x$ac_cv_header_pthread_h" = xyes
; then :
12119 cat >>confdefs.h
<<_ACEOF
12120 #define HAVE_PTHREAD_H 1
12125 if test "$do_threads" = "yes"
12127 as_fn_error $?
"cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
12136 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
12137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139 #include <pthread.h>
12143 pthread_mutex_t mymutex;
12148 if ac_fn_c_try_compile
"$LINENO"; then :
12150 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12155 if test "$do_threads" = "yes"
12157 as_fn_error $?
"cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
12167 $as_echo_n "checking where pthread_create() is defined... " >&6; }
12168 for cand
in "" pthreads pthread
; do
12172 LIBS
=`echo $LIBS -l$cand`
12174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 #include <pthread.h>
12183 pthread_create(NULL, NULL, NULL, NULL);
12189 if ac_fn_c_try_link
"$LINENO"; then :
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12191 $as_echo "lib${cand:-c}" >&6; }
12194 lib_for_pthreads
="$cand"
12196 lib_for_pthreads
="-l$cand"
12201 rm -f core conftest.err conftest.
$ac_objext \
12202 conftest
$ac_exeext conftest.
$ac_ext
12207 if test "$ac_cv_header_pthread_h" = "yes"
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12210 $as_echo_n "checking printf type for pthread_t... " >&6; }
12211 cat <<End-of-File >conftest.c
12212 #include <pthread.h>
12216 fmt_pthread
="$_fmt"
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12218 $as_echo "$fmt_pthread" >&6; }
12220 rm -rf conftest.c conftest.debug
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12223 $as_echo_n "checking if compiler supports __thread... " >&6; }
12224 if test $target_os = netbsd
12226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12228 #include <pthread.h>
12229 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12242 if ac_fn_c_try_compile
"$LINENO"; then :
12244 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12246 $as_echo "yes" >&6; }
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255 #include <pthread.h>
12265 if ac_fn_c_try_compile
"$LINENO"; then :
12267 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12269 $as_echo "yes" >&6; }
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12278 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281 #include <pthread.h>
12285 pthread_barrier_t mybarrier;
12290 if ac_fn_c_try_compile
"$LINENO"; then :
12292 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12294 $as_echo "yes" >&6; }
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12304 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12305 if test "$cross_compiling" = "yes"; then
12306 ans
=$sizeof_suseconds_t
12307 echo "cross-compile -> \"$ans\"" >&5
12309 cat <<End-of-File >conftest.c
12310 #include <sys/time.h>
12311 main() { printf("%d", (int)sizeof(suseconds_t)); }
12313 (eval $ac_compile) 2>&5
12314 (eval $ac_link) 2>&5
12316 echo "./conftest -> \"$ans\"" >&5
12317 rm -rf conftest conftest.
*
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12320 $as_echo "$ans" >&6; }
12322 cat >>confdefs.h
<<_ACEOF
12323 #define SIZEOF_SUSECONDS_T $ans
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12328 $as_echo_n "checking sizeof time_t... " >&6; }
12329 if test "$cross_compiling" = "yes"; then
12331 echo "cross-compile -> \"$ans\"" >&5
12333 cat <<End-of-File >conftest.c
12334 #include <sys/time.h>
12335 main() { printf("%d", (int)sizeof(time_t)); }
12337 (eval $ac_compile) 2>&5
12338 (eval $ac_link) 2>&5
12340 echo "./conftest -> \"$ans\"" >&5
12341 rm -rf conftest conftest.
*
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12344 $as_echo "$ans" >&6; }
12346 cat >>confdefs.h
<<_ACEOF
12347 #define SIZEOF_TIME_T $ans
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12352 $as_echo_n "checking sizeof long... " >&6; }
12353 if test "$cross_compiling" = "yes"; then
12355 echo "cross-compile -> \"$ans\"" >&5
12357 cat <<End-of-File >conftest.c
12359 main() { printf("%d", (int)sizeof(long)); }
12361 (eval $ac_compile) 2>&5
12362 (eval $ac_link) 2>&5
12364 echo "./conftest -> \"$ans\"" >&5
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12367 $as_echo "$ans" >&6; }
12368 if test "$ans" = 4; then
12370 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12372 elif test "$ans" = 8; then
12374 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12378 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12379 echo "sizeof(char *) -> $ans"
12380 rm -rf conftest conftest.
*
12383 rm -rf conftest conftest.
*
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12386 $as_echo_n "checking sizeof pointer... " >&6; }
12387 if test "$cross_compiling" = "yes"; then
12388 ans
=$sizeof_pointer
12389 echo "cross-compile -> \"$ans\"" >&5
12391 cat <<End-of-File >conftest.c
12393 main() { printf("%d", (int)sizeof(char *)); }
12395 (eval $ac_compile) 2>&5
12396 (eval $ac_link) 2>&5
12398 echo "./conftest -> \"$ans\"" >&5
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12401 $as_echo "$ans" >&6; }
12402 if test "$ans" = 4; then
12404 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12407 elif test "$ans" = 8; then
12409 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12414 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12415 echo "sizeof(char *) -> $ans"
12416 rm -rf conftest conftest.
*
12419 rm -rf conftest conftest.
*
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12422 $as_echo_n "checking sizeof int... " >&6; }
12423 if test "$cross_compiling" = "yes"; then
12425 echo "cross-compile -> \"$ans\"" >&5
12427 cat <<End-of-File >conftest.c
12429 main() { printf("%d", (int)sizeof(int)); }
12431 (eval $ac_compile) 2>&5
12432 (eval $ac_link) 2>&5
12434 echo "./conftest -> \"$ans\"" >&5
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12437 $as_echo "$ans" >&6; }
12438 if test "$ans" != 4
12441 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12442 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12443 echo " the over-the-wire PDU formats"
12444 rm -rf conftest conftest.
*
12447 rm -rf conftest conftest.
*
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12450 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12451 if test "$cross_compiling" = "yes"; then
12452 ans
=$bit_field_scheme
12453 echo "cross-compile -> \"$ans\"" >&5
12455 cat <<End-of-File >conftest.c
12456 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12457 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12459 (eval $ac_compile) 2>&5
12460 (eval $ac_link) 2>&5
12462 echo "./conftest -> \"$ans\"" >&5
12467 # left-to-right starting from MSB (SGI cc on MIPS), or
12468 # left-to-right ending at LSB
12470 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12473 $as_echo "yes" >&6; }
12476 # right-to-left ending at MSB, or
12477 # right-to-left starting from LSB (gcc in Intel)
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12483 $as_echo "unknown" >&6; }
12484 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12485 rm -f conftest conftest.
*
12489 rm -rf conftest conftest.
*
12491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12494 #include <stdlib.h>
12495 #include <unistd.h>
12502 double y = (double)x;
12508 if ac_fn_c_try_link
"$LINENO"; then :
12510 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12513 rm -f core conftest.err conftest.
$ac_objext \
12514 conftest
$ac_exeext conftest.
$ac_ext
12516 for ac_func
in basename
12518 ac_fn_c_check_func
"$LINENO" "basename" "ac_cv_func_basename"
12519 if test "x$ac_cv_func_basename" = xyes
; then :
12520 cat >>confdefs.h
<<_ACEOF
12521 #define HAVE_BASENAME 1
12527 if test $ac_cv_func_basename = yes
12530 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12533 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12535 lib_for_basename
=""
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12538 $as_echo_n "checking for basename in -lgen... " >&6; }
12539 if ${ac_cv_lib_gen_basename+:} false
; then :
12540 $as_echo_n "(cached) " >&6
12542 ac_check_lib_save_LIBS
=$LIBS
12544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12547 /* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12557 return basename ();
12562 if ac_fn_c_try_link
"$LINENO"; then :
12563 ac_cv_lib_gen_basename
=yes
12565 ac_cv_lib_gen_basename
=no
12567 rm -f core conftest.err conftest.
$ac_objext \
12568 conftest
$ac_exeext conftest.
$ac_ext
12569 LIBS
=$ac_check_lib_save_LIBS
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12572 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12573 if test "x$ac_cv_lib_gen_basename" = xyes
; then :
12574 cat >>confdefs.h
<<_ACEOF
12575 #define HAVE_LIBGEN 1
12582 if test $ac_cv_lib_gen_basename = yes
12585 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12588 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12590 lib_for_basename
="-lgen"
12592 lib_for_basename
="-lpcp"
12597 lib_for_clock_gettime
=
12598 for ac_func
in clock_gettime
12600 ac_fn_c_check_func
"$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12601 if test "x$ac_cv_func_clock_gettime" = xyes
; then :
12602 cat >>confdefs.h
<<_ACEOF
12603 #define HAVE_CLOCK_GETTIME 1
12609 if test $ac_cv_func_clock_gettime = no
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12612 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12613 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
12614 $as_echo_n "(cached) " >&6
12616 ac_check_lib_save_LIBS
=$LIBS
12618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12621 /* Override any GCC internal prototype to avoid an error.
12622 Use char because int might match the return type of a GCC
12623 builtin and then its argument prototype would still apply. */
12627 char clock_gettime ();
12631 return clock_gettime ();
12636 if ac_fn_c_try_link
"$LINENO"; then :
12637 ac_cv_lib_rt_clock_gettime
=yes
12639 ac_cv_lib_rt_clock_gettime
=no
12641 rm -f core conftest.err conftest.
$ac_objext \
12642 conftest
$ac_exeext conftest.
$ac_ext
12643 LIBS
=$ac_check_lib_save_LIBS
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12646 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12647 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
12648 cat >>confdefs.h
<<_ACEOF
12649 #define HAVE_LIBRT 1
12656 if test $ac_cv_lib_rt_clock_gettime = yes
12659 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12667 for ac_func
in dlopen
12669 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12670 if test "x$ac_cv_func_dlopen" = xyes
; then :
12671 cat >>confdefs.h
<<_ACEOF
12672 #define HAVE_DLOPEN 1
12678 if test $ac_cv_func_dlopen = no
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12682 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12683 $as_echo_n "(cached) " >&6
12685 ac_check_lib_save_LIBS
=$LIBS
12687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12690 /* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12705 if ac_fn_c_try_link
"$LINENO"; then :
12706 ac_cv_lib_dl_dlopen
=yes
12708 ac_cv_lib_dl_dlopen
=no
12710 rm -f core conftest.err conftest.
$ac_objext \
12711 conftest
$ac_exeext conftest.
$ac_ext
12712 LIBS
=$ac_check_lib_save_LIBS
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12716 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12717 cat >>confdefs.h
<<_ACEOF
12718 #define HAVE_LIBDL 1
12725 if test $ac_cv_lib_dl_dlopen = yes
12728 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12730 lib_for_dlopen
=-ldl
12736 for ac_func
in flog10
12738 ac_fn_c_check_func
"$LINENO" "flog10" "ac_cv_func_flog10"
12739 if test "x$ac_cv_func_flog10" = xyes
; then :
12740 cat >>confdefs.h
<<_ACEOF
12741 #define HAVE_FLOG10 1
12747 if test $ac_cv_func_flog10 = no
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12750 $as_echo_n "checking for flog10 in -lm... " >&6; }
12751 if ${ac_cv_lib_m_flog10+:} false
; then :
12752 $as_echo_n "(cached) " >&6
12754 ac_check_lib_save_LIBS
=$LIBS
12756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12774 if ac_fn_c_try_link
"$LINENO"; then :
12775 ac_cv_lib_m_flog10
=yes
12777 ac_cv_lib_m_flog10
=no
12779 rm -f core conftest.err conftest.
$ac_objext \
12780 conftest
$ac_exeext conftest.
$ac_ext
12781 LIBS
=$ac_check_lib_save_LIBS
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12784 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12785 if test "x$ac_cv_lib_m_flog10" = xyes
; then :
12786 cat >>confdefs.h
<<_ACEOF
12787 #define HAVE_LIBM 1
12794 if test $ac_cv_lib_m_flog10 = yes
12797 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12803 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12808 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
12809 if test "x$ac_cv_func_pow" = xyes
; then :
12810 cat >>confdefs.h
<<_ACEOF
12817 if test $ac_cv_func_pow = no
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12820 $as_echo_n "checking for pow in -lm... " >&6; }
12821 if ${ac_cv_lib_m_pow+:} false
; then :
12822 $as_echo_n "(cached) " >&6
12824 ac_check_lib_save_LIBS
=$LIBS
12826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12844 if ac_fn_c_try_link
"$LINENO"; then :
12845 ac_cv_lib_m_pow
=yes
12849 rm -f core conftest.err conftest.
$ac_objext \
12850 conftest
$ac_exeext conftest.
$ac_ext
12851 LIBS
=$ac_check_lib_save_LIBS
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12854 $as_echo "$ac_cv_lib_m_pow" >&6; }
12855 if test "x$ac_cv_lib_m_pow" = xyes
; then :
12856 cat >>confdefs.h
<<_ACEOF
12857 #define HAVE_LIBM 1
12864 if test $ac_cv_lib_m_pow = yes
12867 $as_echo "#define HAVE_POW 1" >>confdefs.h
12873 $as_echo "#define HAVE_POW 1" >>confdefs.h
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12877 $as_echo_n "checking for fpclassify()... " >&6; }
12878 ac_cv_func_fpclassify
=no
12879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12888 double x = 123.456;
12889 if (fpclassify(x) == FP_NAN) exit(1);
12895 if ac_fn_c_try_link
"$LINENO"; then :
12896 ac_cv_func_fpclassify
=yes
12898 rm -f core conftest.err conftest.
$ac_objext \
12899 conftest
$ac_exeext conftest.
$ac_ext
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12901 $as_echo "$ac_cv_func_fpclassify" >&6; }
12902 if test $ac_cv_func_fpclassify = no
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12905 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12917 double x = 123.456;
12918 if (fpclassify(x) == FP_NAN) exit(1);
12924 if ac_fn_c_try_link
"$LINENO"; then :
12925 ac_cv_func_fpclassify
=yes
12927 rm -f core conftest.err conftest.
$ac_objext \
12928 conftest
$ac_exeext conftest.
$ac_ext
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12930 $as_echo "$ac_cv_func_fpclassify" >&6; }
12931 if test $ac_cv_func_fpclassify = yes
12937 if test $ac_cv_func_fpclassify = yes
12940 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12943 for ac_func
in isnan
12945 ac_fn_c_check_func
"$LINENO" "isnan" "ac_cv_func_isnan"
12946 if test "x$ac_cv_func_isnan" = xyes
; then :
12947 cat >>confdefs.h
<<_ACEOF
12948 #define HAVE_ISNAN 1
12954 if test $ac_cv_func_isnan = no
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12957 $as_echo_n "checking for isnan in -lm... " >&6; }
12958 if ${ac_cv_lib_m_isnan+:} false
; then :
12959 $as_echo_n "(cached) " >&6
12961 ac_check_lib_save_LIBS
=$LIBS
12963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12981 if ac_fn_c_try_link
"$LINENO"; then :
12982 ac_cv_lib_m_isnan
=yes
12984 ac_cv_lib_m_isnan
=no
12986 rm -f core conftest.err conftest.
$ac_objext \
12987 conftest
$ac_exeext conftest.
$ac_ext
12988 LIBS
=$ac_check_lib_save_LIBS
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12991 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12992 if test "x$ac_cv_lib_m_isnan" = xyes
; then :
12993 cat >>confdefs.h
<<_ACEOF
12994 #define HAVE_LIBM 1
13001 if test $ac_cv_lib_m_isnan = yes
13004 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13009 for ac_func
in isnanf
13011 ac_fn_c_check_func
"$LINENO" "isnanf" "ac_cv_func_isnanf"
13012 if test "x$ac_cv_func_isnanf" = xyes
; then :
13013 cat >>confdefs.h
<<_ACEOF
13014 #define HAVE_ISNANF 1
13020 if test $ac_cv_func_isnanf = no
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
13023 $as_echo_n "checking for isnanf in -lm... " >&6; }
13024 if ${ac_cv_lib_m_isnanf+:} false
; then :
13025 $as_echo_n "(cached) " >&6
13027 ac_check_lib_save_LIBS
=$LIBS
13029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13047 if ac_fn_c_try_link
"$LINENO"; then :
13048 ac_cv_lib_m_isnanf
=yes
13050 ac_cv_lib_m_isnanf
=no
13052 rm -f core conftest.err conftest.
$ac_objext \
13053 conftest
$ac_exeext conftest.
$ac_ext
13054 LIBS
=$ac_check_lib_save_LIBS
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
13057 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
13058 if test "x$ac_cv_lib_m_isnanf" = xyes
; then :
13059 cat >>confdefs.h
<<_ACEOF
13060 #define HAVE_LIBM 1
13067 if test $ac_cv_lib_m_isnanf = yes
13070 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
13078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13080 #include <signal.h>
13089 if ac_fn_c_try_link
"$LINENO"; then :
13091 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
13094 rm -f core conftest.err conftest.
$ac_objext \
13095 conftest
$ac_exeext conftest.
$ac_ext
13097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099 #include <signal.h>
13103 int x = SA_SIGINFO;
13108 if ac_fn_c_try_link
"$LINENO"; then :
13110 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
13113 rm -f core conftest.err conftest.
$ac_objext \
13114 conftest
$ac_exeext conftest.
$ac_ext
13116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 #include <signal.h>
13127 if ac_fn_c_try_link
"$LINENO"; then :
13129 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
13132 rm -f core conftest.err conftest.
$ac_objext \
13133 conftest
$ac_exeext conftest.
$ac_ext
13135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137 #include <signal.h>
13146 if ac_fn_c_try_link
"$LINENO"; then :
13148 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
13151 rm -f core conftest.err conftest.
$ac_objext \
13152 conftest
$ac_exeext conftest.
$ac_ext
13154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 #include <signal.h>
13165 if ac_fn_c_try_link
"$LINENO"; then :
13167 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
13170 rm -f core conftest.err conftest.
$ac_objext \
13171 conftest
$ac_exeext conftest.
$ac_ext
13173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13175 #include <sys/wait.h>
13179 typedef void (*SIGRET)(int);
13180 SIGRET x = SIG_IGN;
13186 if ac_fn_c_try_link
"$LINENO"; then :
13188 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13191 rm -f core conftest.err conftest.
$ac_objext \
13192 conftest
$ac_exeext conftest.
$ac_ext
13194 have_stat_type
=false
13195 have_stat_name
=false
13196 if test $have_stat_name = false
13198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200 #include <sys/stat.h>
13203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13204 $EGREP "[ ]st_mtimespec" >/dev
/null
2>&1; then :
13205 have_stat_name
=true
;
13207 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13213 if test $have_stat_name = false
-a $target_os != darwin
-a $target_os != linux
-a $target_os != kfreebsd
-a $target_os != netbsd
13215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13217 #include <sys/stat.h>
13220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13221 $EGREP "[ ]st_mtime" >/dev
/null
2>&1; then :
13222 have_stat_name
=true
;
13224 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13230 if test $have_stat_type = false
13232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234 #include <sys/stat.h>
13237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13238 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13239 have_stat_type
=true
;
13241 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13247 if test $have_stat_type = false
13249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251 #include <sys/stat.h>
13254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13255 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13256 have_stat_type
=true
;
13258 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13264 if test $have_stat_type = false
13266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 #include <sys/stat.h>
13271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13272 $EGREP "timespec[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13273 have_stat_type
=true
;
13275 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13281 if test $have_stat_type = false
13283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285 #include <sys/stat.h>
13288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13289 $EGREP "time_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13290 have_stat_type
=true
;
13292 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13298 if test $have_stat_type = false
13300 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13301 rm -rf conftest conftest.
*
13306 pcp_etc_dir
=`eval echo $sysconfdir`
13307 pcp_etc_dir
=`eval echo $pcp_etc_dir`
13309 pcp_saslconf_dir
=`eval echo $sysconfdir/sasl2`
13310 pcp_saslconf_dir
=`eval echo $pcp_saslconf_dir`
13312 pcp_sysconf_dir
=`eval echo $sysconfdir/pcp`
13313 pcp_sysconf_dir
=`eval echo $pcp_sysconf_dir`
13315 pcp_pmcdconf_path
=$pcp_sysconf_dir/pmcd
/pmcd.conf
13316 pcp_pmcdrclocal_path
=$pcp_sysconf_dir/pmcd
/rc.
local
13317 pcp_pmcdoptions_path
=$pcp_sysconf_dir/pmcd
/pmcd.options
13318 pcp_pmwebdoptions_path
=$pcp_sysconf_dir/pmwebd
/pmwebd.options
13319 pcp_pmmgroptions_path
=$pcp_sysconf_dir/pmmgr
/pmmgr.options
13320 pcp_pmproxyoptions_path
=$pcp_sysconf_dir/pmproxy
/pmproxy.options
13321 pcp_pmiecontrol_path
=$pcp_sysconf_dir/pmie
/control
13322 pcp_pmsnapcontrol_path
=$pcp_sysconf_dir/pmsnap
/control
13323 pcp_pmloggercontrol_path
=$pcp_sysconf_dir/pmlogger
/control
13334 pcp_share_dir
=`eval echo $datarootdir/pcp`
13335 pcp_share_dir
=`eval echo $pcp_share_dir`
13338 pcp_binadm_dir
=`eval echo $libexecdir/pcp/bin`
13339 pcp_binadm_dir
=`eval echo $pcp_binadm_dir`
13342 pcp_var_dir
=`eval echo $localstatedir/lib/pcp`
13343 pcp_var_dir
=`eval echo $pcp_var_dir`
13347 # Check whether --with-configdir was given.
13348 if test "${with_configdir+set}" = set; then :
13349 withval
=$with_configdir; pcp_config_dir
=$withval
13351 pcp_config_dir
=$pcp_var_dir/config
13355 pcp_pmdas_dir
=$pcp_var_dir/pmdas
13358 pcp_lib_dir
=`eval echo $libdir`
13359 pcp_lib_dir
=`eval echo $pcp_lib_dir`
13360 pcp_lib32_dir
=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13365 # Check whether --with-perl_installdirs was given.
13366 if test "${with_perl_installdirs+set}" = set; then :
13367 withval
=$with_perl_installdirs; perl_installdirs
=$withval
13369 perl_installdirs
=vendor
13372 perl_installdirs
=`eval echo $perl_installdirs`
13373 perl_installdirs
=`eval echo $perl_installdirs`
13376 # Check whether --with-perl_install_base was given.
13377 if test "${with_perl_install_base+set}" = set; then :
13378 withval
=$with_perl_install_base; perl_install_base
=$withval
13380 perl_install_base
=$prefix
13383 perl_install_base
=`eval echo $perl_install_base`
13384 perl_install_base
=`eval echo $perl_install_base`
13388 # Check whether --with-python_prefix was given.
13389 if test "${with_python_prefix+set}" = set; then :
13390 withval
=$with_python_prefix; python_prefix
=$withval
13392 python_prefix
=$prefix
13395 python_prefix
=`eval echo $python_prefix`
13396 python_prefix
=`eval echo $python_prefix`
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13400 $as_echo_n "checking for X... " >&6; }
13403 # Check whether --with-x was given.
13404 if test "${with_x+set}" = set; then :
13408 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13409 if test "x$with_x" = xno
; then
13410 # The user explicitly disabled X.
13413 case $x_includes,$x_libraries in #(
13414 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
13415 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
13416 $as_echo_n "(cached) " >&6
13418 # One or both of the vars are not set, and there is no cached value.
13419 ac_x_includes
=no ac_x_libraries
=no
13420 rm -f -r conftest.dir
13421 if mkdir conftest.dir
; then
13423 cat >Imakefile
<<'_ACEOF'
13425 @echo incroot='${INCROOT}'
13427 @echo usrlibdir='${USRLIBDIR}'
13429 @echo libdir='${LIBDIR}'
13431 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13432 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13433 for ac_var
in incroot usrlibdir libdir
; do
13434 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13436 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13437 for ac_extension
in a so sl dylib la dll
; do
13438 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13439 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13440 ac_im_usrlibdir
=$ac_im_libdir; break
13443 # Screen out bogus values from the imake configuration. They are
13444 # bogus both because they are the default anyway, and because
13445 # using them would break gcc on systems where it needs fixed includes.
13446 case $ac_im_incroot in
13447 /usr
/include
) ac_x_includes
= ;;
13448 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13450 case $ac_im_usrlibdir in
13451 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13452 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13456 rm -f -r conftest.dir
13459 # Standard set of common directories for X headers.
13460 # Check X11 before X11Rn because it is often a symlink to the current release.
13474 /usr/local/X11/include
13475 /usr/local/X11R7/include
13476 /usr/local/X11R6/include
13477 /usr/local/X11R5/include
13478 /usr/local/X11R4/include
13480 /usr/local/include/X11
13481 /usr/local/include/X11R7
13482 /usr/local/include/X11R6
13483 /usr/local/include/X11R5
13484 /usr/local/include/X11R4
13488 /usr/XFree86/include/X11
13492 /usr/unsupported/include
13493 /usr/athena/include
13494 /usr/local/x11r5/include
13495 /usr/lpp/Xamples/include
13497 /usr/openwin/include
13498 /usr/openwin/share/include'
13500 if test "$ac_x_includes" = no
; then
13501 # Guess where to find include files, by looking for Xlib.h.
13502 # First, try using that file with no special directory specified.
13503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 #include <X11/Xlib.h>
13507 if ac_fn_c_try_cpp
"$LINENO"; then :
13508 # We can compile using X headers with no special include directory.
13511 for ac_dir
in $ac_x_header_dirs; do
13512 if test -r "$ac_dir/X11/Xlib.h"; then
13513 ac_x_includes
=$ac_dir
13518 rm -f conftest.err conftest.i conftest.
$ac_ext
13519 fi # $ac_x_includes = no
13521 if test "$ac_x_libraries" = no
; then
13522 # Check for the libraries.
13523 # See if we find them without any special options.
13524 # Don't add to $LIBS permanently.
13527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13529 #include <X11/Xlib.h>
13538 if ac_fn_c_try_link
"$LINENO"; then :
13540 # We can link X programs with no special library path.
13544 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13546 # Don't even attempt the hair of trying to link an X program!
13547 for ac_extension
in a so sl dylib la dll
; do
13548 if test -r "$ac_dir/libX11.$ac_extension"; then
13549 ac_x_libraries
=$ac_dir
13555 rm -f core conftest.err conftest.
$ac_objext \
13556 conftest
$ac_exeext conftest.
$ac_ext
13557 fi # $ac_x_libraries = no
13559 case $ac_x_includes,$ac_x_libraries in #(
13560 no
,* |
*,no |
*\'*)
13561 # Didn't find X, or a directory has "'" in its name.
13562 ac_cv_have_x
="have_x=no";; #(
13564 # Record where we found X for the cache.
13565 ac_cv_have_x
="have_x=yes\
13566 ac_x_includes='$ac_x_includes'\
13567 ac_x_libraries='$ac_x_libraries'"
13573 eval "$ac_cv_have_x"
13576 if test "$have_x" != yes; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13578 $as_echo "$have_x" >&6; }
13581 # If each of the values was on the command line, it overrides each guess.
13582 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13583 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13584 # Update the cache value to reflect the command line values.
13585 ac_cv_have_x
="have_x=yes\
13586 ac_x_includes='$x_includes'\
13587 ac_x_libraries='$x_libraries'"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13589 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13592 if test "$no_x" = yes; then
13593 # Not all programs may use this symbol, but it does not hurt to define it.
13595 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13597 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
13599 if test -n "$x_includes"; then
13600 X_CFLAGS
="$X_CFLAGS -I$x_includes"
13603 # It would also be nice to do this for all -L options, not just this one.
13604 if test -n "$x_libraries"; then
13605 X_LIBS
="$X_LIBS -L$x_libraries"
13606 # For Solaris; some versions of Sun CC require a space after -R and
13607 # others require no space. Words are not sufficient . . . .
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13609 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13610 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
13611 ac_xsave_c_werror_flag
=$ac_c_werror_flag
13612 ac_c_werror_flag
=yes
13613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13624 if ac_fn_c_try_link
"$LINENO"; then :
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 X_LIBS
="$X_LIBS -R$x_libraries"
13629 LIBS
="$ac_xsave_LIBS -R $x_libraries"
13630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13641 if ac_fn_c_try_link
"$LINENO"; then :
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13643 $as_echo "yes" >&6; }
13644 X_LIBS
="$X_LIBS -R $x_libraries"
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13647 $as_echo "neither works" >&6; }
13649 rm -f core conftest.err conftest.
$ac_objext \
13650 conftest
$ac_exeext conftest.
$ac_ext
13652 rm -f core conftest.err conftest.
$ac_objext \
13653 conftest
$ac_exeext conftest.
$ac_ext
13654 ac_c_werror_flag
=$ac_xsave_c_werror_flag
13655 LIBS
=$ac_xsave_LIBS
13658 # Check for system-dependent libraries X programs must link with.
13659 # Do this before checking for the system-independent R6 libraries
13660 # (-lICE), since we may need -lsocket or whatever for X linking.
13662 if test "$ISC" = yes; then
13663 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
13665 # Martyn Johnson says this is needed for Ultrix, if the X
13666 # libraries were built with DECnet support. And Karl Berry says
13667 # the Alpha needs dnet_stub (dnet does not exist).
13668 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
13669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13672 /* Override any GCC internal prototype to avoid an error.
13673 Use char because int might match the return type of a GCC
13674 builtin and then its argument prototype would still apply. */
13678 char XOpenDisplay ();
13682 return XOpenDisplay ();
13687 if ac_fn_c_try_link
"$LINENO"; then :
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13691 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13692 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
13693 $as_echo_n "(cached) " >&6
13695 ac_check_lib_save_LIBS
=$LIBS
13696 LIBS
="-ldnet $LIBS"
13697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13700 /* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
13710 return dnet_ntoa ();
13715 if ac_fn_c_try_link
"$LINENO"; then :
13716 ac_cv_lib_dnet_dnet_ntoa
=yes
13718 ac_cv_lib_dnet_dnet_ntoa
=no
13720 rm -f core conftest.err conftest.
$ac_objext \
13721 conftest
$ac_exeext conftest.
$ac_ext
13722 LIBS
=$ac_check_lib_save_LIBS
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13725 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13726 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
13727 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
13730 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13732 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13733 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
13734 $as_echo_n "(cached) " >&6
13736 ac_check_lib_save_LIBS
=$LIBS
13737 LIBS
="-ldnet_stub $LIBS"
13738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13741 /* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13751 return dnet_ntoa ();
13756 if ac_fn_c_try_link
"$LINENO"; then :
13757 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
13759 ac_cv_lib_dnet_stub_dnet_ntoa
=no
13761 rm -f core conftest.err conftest.
$ac_objext \
13762 conftest
$ac_exeext conftest.
$ac_ext
13763 LIBS
=$ac_check_lib_save_LIBS
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13766 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13767 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
13768 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
13773 rm -f core conftest.err conftest.
$ac_objext \
13774 conftest
$ac_exeext conftest.
$ac_ext
13775 LIBS
="$ac_xsave_LIBS"
13777 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13778 # to get the SysV transport functions.
13779 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13781 # The nsl library prevents programs from opening the X display
13782 # on Irix 5.2, according to T.E. Dickey.
13783 # The functions gethostbyname, getservbyname, and inet_addr are
13784 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13785 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13786 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
13790 if test $ac_cv_func_gethostbyname = no
; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13792 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13793 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
13794 $as_echo_n "(cached) " >&6
13796 ac_check_lib_save_LIBS
=$LIBS
13798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13801 /* Override any GCC internal prototype to avoid an error.
13802 Use char because int might match the return type of a GCC
13803 builtin and then its argument prototype would still apply. */
13807 char gethostbyname ();
13811 return gethostbyname ();
13816 if ac_fn_c_try_link
"$LINENO"; then :
13817 ac_cv_lib_nsl_gethostbyname
=yes
13819 ac_cv_lib_nsl_gethostbyname
=no
13821 rm -f core conftest.err conftest.
$ac_objext \
13822 conftest
$ac_exeext conftest.
$ac_ext
13823 LIBS
=$ac_check_lib_save_LIBS
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13826 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13827 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
13828 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
13831 if test $ac_cv_lib_nsl_gethostbyname = no
; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13833 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13834 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
13835 $as_echo_n "(cached) " >&6
13837 ac_check_lib_save_LIBS
=$LIBS
13839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13848 char gethostbyname ();
13852 return gethostbyname ();
13857 if ac_fn_c_try_link
"$LINENO"; then :
13858 ac_cv_lib_bsd_gethostbyname
=yes
13860 ac_cv_lib_bsd_gethostbyname
=no
13862 rm -f core conftest.err conftest.
$ac_objext \
13863 conftest
$ac_exeext conftest.
$ac_ext
13864 LIBS
=$ac_check_lib_save_LIBS
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13867 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13868 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
13869 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
13875 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13876 # socket/setsockopt and other routines are undefined under SCO ODT
13877 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13878 # on later versions), says Simon Leinen: it contains gethostby*
13879 # variants that don't use the name server (or something). -lsocket
13880 # must be given before -lnsl if both are needed. We assume that
13881 # if connect needs -lnsl, so does gethostbyname.
13882 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
13883 if test "x$ac_cv_func_connect" = xyes
; then :
13887 if test $ac_cv_func_connect = no
; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13889 $as_echo_n "checking for connect in -lsocket... " >&6; }
13890 if ${ac_cv_lib_socket_connect+:} false
; then :
13891 $as_echo_n "(cached) " >&6
13893 ac_check_lib_save_LIBS
=$LIBS
13894 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
13895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13898 /* Override any GCC internal prototype to avoid an error.
13899 Use char because int might match the return type of a GCC
13900 builtin and then its argument prototype would still apply. */
13913 if ac_fn_c_try_link
"$LINENO"; then :
13914 ac_cv_lib_socket_connect
=yes
13916 ac_cv_lib_socket_connect
=no
13918 rm -f core conftest.err conftest.
$ac_objext \
13919 conftest
$ac_exeext conftest.
$ac_ext
13920 LIBS
=$ac_check_lib_save_LIBS
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13923 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13924 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
13925 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
13930 # Guillermo Gomez says -lposix is necessary on A/UX.
13931 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
13932 if test "x$ac_cv_func_remove" = xyes
; then :
13936 if test $ac_cv_func_remove = no
; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13938 $as_echo_n "checking for remove in -lposix... " >&6; }
13939 if ${ac_cv_lib_posix_remove+:} false
; then :
13940 $as_echo_n "(cached) " >&6
13942 ac_check_lib_save_LIBS
=$LIBS
13943 LIBS
="-lposix $LIBS"
13944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13947 /* Override any GCC internal prototype to avoid an error.
13948 Use char because int might match the return type of a GCC
13949 builtin and then its argument prototype would still apply. */
13962 if ac_fn_c_try_link
"$LINENO"; then :
13963 ac_cv_lib_posix_remove
=yes
13965 ac_cv_lib_posix_remove
=no
13967 rm -f core conftest.err conftest.
$ac_objext \
13968 conftest
$ac_exeext conftest.
$ac_ext
13969 LIBS
=$ac_check_lib_save_LIBS
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13972 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13973 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
13974 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
13979 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13980 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
13981 if test "x$ac_cv_func_shmat" = xyes
; then :
13985 if test $ac_cv_func_shmat = no
; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13987 $as_echo_n "checking for shmat in -lipc... " >&6; }
13988 if ${ac_cv_lib_ipc_shmat+:} false
; then :
13989 $as_echo_n "(cached) " >&6
13991 ac_check_lib_save_LIBS
=$LIBS
13993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13996 /* Override any GCC internal prototype to avoid an error.
13997 Use char because int might match the return type of a GCC
13998 builtin and then its argument prototype would still apply. */
14011 if ac_fn_c_try_link
"$LINENO"; then :
14012 ac_cv_lib_ipc_shmat
=yes
14014 ac_cv_lib_ipc_shmat
=no
14016 rm -f core conftest.err conftest.
$ac_objext \
14017 conftest
$ac_exeext conftest.
$ac_ext
14018 LIBS
=$ac_check_lib_save_LIBS
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14021 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14022 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
14023 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
14029 # Check for libraries that X11R6 Xt/Xaw programs need.
14030 ac_save_LDFLAGS
=$LDFLAGS
14031 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
14032 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14033 # check for ICE first), but we must link in the order -lSM -lICE or
14034 # we get undefined symbols. So assume we have SM if we have ICE.
14035 # These have to be linked with before -lX11, unlike the other
14036 # libraries we check for below, so use a different variable.
14037 # John Interrante, Karl Berry
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14039 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14040 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
14041 $as_echo_n "(cached) " >&6
14043 ac_check_lib_save_LIBS
=$LIBS
14044 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
14045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14048 /* Override any GCC internal prototype to avoid an error.
14049 Use char because int might match the return type of a GCC
14050 builtin and then its argument prototype would still apply. */
14054 char IceConnectionNumber ();
14058 return IceConnectionNumber ();
14063 if ac_fn_c_try_link
"$LINENO"; then :
14064 ac_cv_lib_ICE_IceConnectionNumber
=yes
14066 ac_cv_lib_ICE_IceConnectionNumber
=no
14068 rm -f core conftest.err conftest.
$ac_objext \
14069 conftest
$ac_exeext conftest.
$ac_ext
14070 LIBS
=$ac_check_lib_save_LIBS
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14073 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14074 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
14075 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
14078 LDFLAGS
=$ac_save_LDFLAGS
14082 pcp_x11_incflags
=$X_CFLAGS
14084 pcp_x11_libflags
=$X_LIBS
14086 pcp_x11_extra
=$X_EXTRA_LIBS
14088 pcp_x11_pre
=$X_PRE_LIBS
14091 have_manpages
=false
14092 have_gzipped_manpages
=false
14093 have_bzip2ed_manpages
=false
14094 have_lzmaed_manpages
=false
14095 have_xzed_manpages
=false
14096 need_old_tbl_header
=false
14098 pcp_man_dir
=`eval echo $mandir`
14099 pcp_man_dir
=`eval echo $pcp_man_dir`
14101 for d
in /usr
/man
/usr
/share
/man
$pcp_man_dir
14103 for sd
in man1 sman1
14105 if test -f $d/$sd/man
.1.gz
14107 have_gzipped_manpages
=true
14109 man_header
=`$ZIP -d < $d/$sd/man.1.gz | head -1`
14111 elif test -f $d/$sd/man
.1.bz2
14113 have_bzip2ed_manpages
=true
14115 man_header
=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
14117 elif test -f $d/$sd/man
.1.lzma
14119 have_lzmaed_manpages
=true
14121 man_header
=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
14123 elif test -f $d/$sd/man
.1.xz
14125 have_xzed_manpages
=true
14127 man_header
=`$XZ -d < $d/$sd/man.1.xz | head -1`
14129 elif test -f $d/$sd/man
.1
14131 man_header
=`head -1 $d/$sd/man.1`
14137 if test x
"$man_header" = "x'\\\" t" -o x
"$man_header" = "x'\\\" te" ; then
14138 need_old_tbl_header
=true
14148 pcp_bin_dir
=`eval echo $bindir`
14149 pcp_bin_dir
=`eval echo $pcp_bin_dir`
14152 pcp_sbin_dir
=`eval echo $sbindir`
14153 pcp_sbin_dir
=`eval echo $pcp_sbin_dir`
14156 pcp_inc_dir
=`eval echo $includedir/pcp`
14157 pcp_inc_dir
=`eval echo $pcp_inc_dir`
14160 if test $target_os = linux
; then
14161 pcp_books_dir
=`eval echo $datarootdir/doc/pcp-doc`
14163 pcp_books_dir
=`eval echo $datarootdir/doc/pcp`
14165 pcp_books_dir
=`eval echo $pcp_books_dir`
14166 pcp_html_dir
=`eval echo $pcp_books_dir/html`
14170 if test $target_os = linux
; then
14171 pcp_icons_dir
=`eval echo $datarootdir/pcp-gui/pixmaps`
14173 pcp_icons_dir
=`eval echo $datarootdir/pcp/pixmaps`
14175 pcp_icons_dir
=`eval echo $pcp_icons_dir`
14178 pcp_desktop_dir
=`eval echo $datarootdir/applications`
14179 pcp_desktop_dir
=`eval echo $pcp_desktop_dir`
14183 # Check whether --with-rcdir was given.
14184 if test "${with_rcdir+set}" = set; then :
14185 withval
=$with_rcdir; pcp_rc_dir
=$withval
14190 pcp_rc_dir
="$pcp_share_dir/lib"
14192 pcp_rc_dir
="$pcp_etc_dir/init.d"
14199 # Check whether --with-sysconfigdir was given.
14200 if test "${with_sysconfigdir+set}" = set; then :
14201 withval
=$with_sysconfigdir; pcp_sysconfig_dir
=$withval
14203 pcp_sysconfig_dir
=$pcp_etc_dir/sysconfig
14209 # Check whether --with-logdir was given.
14210 if test "${with_logdir+set}" = set; then :
14211 withval
=$with_logdir; pcp_log_dir
=$withval
14213 pcp_log_dir
=$localstatedir/log
/pcp
14216 pcp_log_dir
=`eval echo $pcp_log_dir`
14217 pcp_log_dir
=`eval echo $pcp_log_dir`
14221 # Check whether --with-rundir was given.
14222 if test "${with_rundir+set}" = set; then :
14223 withval
=$with_rundir; pcp_run_dir
=$withval
14225 pcp_run_dir
=$localstatedir/run
/pcp
14228 pcp_run_dir
=`eval echo $pcp_run_dir`
14229 pcp_run_dir
=`eval echo $pcp_run_dir`
14233 # Check whether --with-tmpdir was given.
14234 if test "${with_tmpdir+set}" = set; then :
14235 withval
=$with_tmpdir; pcp_tmpfile_dir
=$withval
14237 pcp_tmpfile_dir
=$localstatedir/tmp
14240 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
14241 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
14244 pcp_tmp_dir
=`eval echo $pcp_var_dir/tmp`
14248 # Check whether --with-docdir was given.
14249 if test "${with_docdir+set}" = set; then :
14250 withval
=$with_docdir; pcp_doc_dir
=$withval
14252 PACKAGE
=pcp-
${PACKAGE_VERSION}; pcp_doc_dir
=$docdir
14255 pcp_doc_dir
=`eval echo $pcp_doc_dir`
14256 pcp_doc_dir
=`eval echo $pcp_doc_dir`
14260 # Check whether --with-demosdir was given.
14261 if test "${with_demosdir+set}" = set; then :
14262 withval
=$with_demosdir; pcp_demos_dir
=$withval
14264 pcp_demos_dir
=$pcp_share_dir/demos
14269 if test -z "$XCONFIRM"
14271 # Extract the first word of "xconfirm", so it can be a program name with args.
14272 set dummy xconfirm
; ac_word
=$2
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14274 $as_echo_n "checking for $ac_word... " >&6; }
14275 if ${ac_cv_path_ac_xconfirm_prog+:} false
; then :
14276 $as_echo_n "(cached) " >&6
14278 case $ac_xconfirm_prog in
14280 ac_cv_path_ac_xconfirm_prog
="$ac_xconfirm_prog" # Let the user override the test with a path.
14283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14284 for as_dir
in $PATH
14287 test -z "$as_dir" && as_dir
=.
14288 for ac_exec_ext
in '' $ac_executable_extensions; do
14289 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14290 ac_cv_path_ac_xconfirm_prog
="$as_dir/$ac_word$ac_exec_ext"
14291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog
="$pcp_bin_dir/pmconfirm"
14302 ac_xconfirm_prog
=$ac_cv_path_ac_xconfirm_prog
14303 if test -n "$ac_xconfirm_prog"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14305 $as_echo "$ac_xconfirm_prog" >&6; }
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14313 ac_xconfirm_prog
=$XCONFIRM
14317 if test "$ac_cv_header_fcntl_h" = "yes"
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14320 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14332 if ac_fn_c_try_compile
"$LINENO"; then :
14334 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 $as_echo "yes" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14345 if test "$ac_cv_header_libzfs_h" = "yes"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14348 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351 #include <libzfs.h>
14355 libzfs_handle_t *zh;
14356 zpool_handle_t *zp;
14358 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14364 if ac_fn_c_try_compile
"$LINENO"; then :
14366 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14369 $as_echo "yes" >&6; }
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 $as_echo "no" >&6; }
14374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14377 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14380 #include <libzfs.h>
14384 libzfs_handle_t *zh;
14385 zpool_handle_t *zp;
14387 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14393 if ac_fn_c_try_compile
"$LINENO"; then :
14395 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14398 $as_echo "yes" >&6; }
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 $as_echo "no" >&6; }
14403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14406 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14410 saved_CFLAGS
="$CFLAGS"
14411 saved_CPPFLAGS
="$CPPFLAGS"
14412 NSS_INC_DIRS
="-I/usr/include/nss -I/usr/include/nss3"
14413 NSPR_INC_DIRS
="-I/usr/include/nspr -I/usr/include/nspr4"
14414 CFLAGS
="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14415 CPPFLAGS
="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14417 for ac_header
in nss
/nss.h
14419 ac_fn_c_check_header_mongrel
"$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14420 if test "x$ac_cv_header_nss_nss_h" = xyes
; then :
14421 cat >>confdefs.h
<<_ACEOF
14422 #define HAVE_NSS_NSS_H 1
14424 NSSCFLAGS
=-I/usr
/include
/nss
14427 for ac_header
in nss
3/nss.h
14429 ac_fn_c_check_header_mongrel
"$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14430 if test "x$ac_cv_header_nss3_nss_h" = xyes
; then :
14431 cat >>confdefs.h
<<_ACEOF
14432 #define HAVE_NSS3_NSS_H 1
14434 NSSCFLAGS
=-I/usr
/include
/nss3
14437 enable_secure
=false
14438 if test "$do_secure" = "yes"
14440 as_fn_error $?
"cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14454 for ac_header
in nspr
/nspr.h
14456 ac_fn_c_check_header_mongrel
"$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14457 if test "x$ac_cv_header_nspr_nspr_h" = xyes
; then :
14458 cat >>confdefs.h
<<_ACEOF
14459 #define HAVE_NSPR_NSPR_H 1
14461 NSPRCFLAGS
=-I/usr
/include
/nspr
14464 for ac_header
in nspr
4/nspr.h
14466 ac_fn_c_check_header_mongrel
"$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14467 if test "x$ac_cv_header_nspr4_nspr_h" = xyes
; then :
14468 cat >>confdefs.h
<<_ACEOF
14469 #define HAVE_NSPR4_NSPR_H 1
14471 NSPRCFLAGS
=-I/usr
/include
/nspr4
14474 enable_secure
=false
14475 if test "$do_secure" = "yes"
14477 as_fn_error $?
"cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14491 for ac_header
in sasl
/sasl.h
14493 ac_fn_c_check_header_mongrel
"$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14494 if test "x$ac_cv_header_sasl_sasl_h" = xyes
; then :
14495 cat >>confdefs.h
<<_ACEOF
14496 #define HAVE_SASL_SASL_H 1
14498 SASLCFLAGS
=-I/usr
/include
/sasl
14501 enable_secure
=false
14502 if test "$do_secure" = "yes"
14504 as_fn_error $?
"cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14514 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14515 if ${ac_cv_lib_sasl2_sasl_server_init+:} false
; then :
14516 $as_echo_n "(cached) " >&6
14518 ac_check_lib_save_LIBS
=$LIBS
14519 LIBS
="-lsasl2 $LIBS"
14520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14529 char sasl_server_init ();
14533 return sasl_server_init ();
14538 if ac_fn_c_try_link
"$LINENO"; then :
14539 ac_cv_lib_sasl2_sasl_server_init
=yes
14541 ac_cv_lib_sasl2_sasl_server_init
=no
14543 rm -f core conftest.err conftest.
$ac_objext \
14544 conftest
$ac_exeext conftest.
$ac_ext
14545 LIBS
=$ac_check_lib_save_LIBS
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14548 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14549 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes
; then :
14550 lib_for_sasl
="-lsasl2"
14553 enable_secure
=false
14554 if test "$do_secure" = "yes"
14556 as_fn_error $?
"cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14564 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14565 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false
; then :
14566 $as_echo_n "(cached) " >&6
14568 ac_check_lib_save_LIBS
=$LIBS
14570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14573 /* Override any GCC internal prototype to avoid an error.
14574 Use char because int might match the return type of a GCC
14575 builtin and then its argument prototype would still apply. */
14579 char SSL_ImportFD ();
14583 return SSL_ImportFD ();
14588 if ac_fn_c_try_link
"$LINENO"; then :
14589 ac_cv_lib_ssl_SSL_ImportFD
=yes
14591 ac_cv_lib_ssl_SSL_ImportFD
=no
14593 rm -f core conftest.err conftest.
$ac_objext \
14594 conftest
$ac_exeext conftest.
$ac_ext
14595 LIBS
=$ac_check_lib_save_LIBS
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14598 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14599 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes
; then :
14600 lib_for_ssl
="-lssl"
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14604 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14605 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false
; then :
14606 $as_echo_n "(cached) " >&6
14608 ac_check_lib_save_LIBS
=$LIBS
14609 LIBS
="-lssl3 $LIBS"
14610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14611 /* end confdefs.h. */
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14619 char SSL_ImportFD ();
14623 return SSL_ImportFD ();
14628 if ac_fn_c_try_link
"$LINENO"; then :
14629 ac_cv_lib_ssl3_SSL_ImportFD
=yes
14631 ac_cv_lib_ssl3_SSL_ImportFD
=no
14633 rm -f core conftest.err conftest.
$ac_objext \
14634 conftest
$ac_exeext conftest.
$ac_ext
14635 LIBS
=$ac_check_lib_save_LIBS
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14638 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14639 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes
; then :
14640 lib_for_ssl
="-lssl3"
14643 enable_secure
=false
14644 if test "$do_secure" = "yes"
14646 as_fn_error $?
"cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14657 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14658 if ${ac_cv_lib_nss_NSS_Init+:} false
; then :
14659 $as_echo_n "(cached) " >&6
14661 ac_check_lib_save_LIBS
=$LIBS
14663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14666 /* Override any GCC internal prototype to avoid an error.
14667 Use char because int might match the return type of a GCC
14668 builtin and then its argument prototype would still apply. */
14676 return NSS_Init ();
14681 if ac_fn_c_try_link
"$LINENO"; then :
14682 ac_cv_lib_nss_NSS_Init
=yes
14684 ac_cv_lib_nss_NSS_Init
=no
14686 rm -f core conftest.err conftest.
$ac_objext \
14687 conftest
$ac_exeext conftest.
$ac_ext
14688 LIBS
=$ac_check_lib_save_LIBS
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14691 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14692 if test "x$ac_cv_lib_nss_NSS_Init" = xyes
; then :
14693 lib_for_nss
="-lnss"
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14697 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14698 if ${ac_cv_lib_nss3_NSS_Init+:} false
; then :
14699 $as_echo_n "(cached) " >&6
14701 ac_check_lib_save_LIBS
=$LIBS
14702 LIBS
="-lnss3 $LIBS"
14703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14706 /* Override any GCC internal prototype to avoid an error.
14707 Use char because int might match the return type of a GCC
14708 builtin and then its argument prototype would still apply. */
14716 return NSS_Init ();
14721 if ac_fn_c_try_link
"$LINENO"; then :
14722 ac_cv_lib_nss3_NSS_Init
=yes
14724 ac_cv_lib_nss3_NSS_Init
=no
14726 rm -f core conftest.err conftest.
$ac_objext \
14727 conftest
$ac_exeext conftest.
$ac_ext
14728 LIBS
=$ac_check_lib_save_LIBS
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14731 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14732 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes
; then :
14733 lib_for_nss
="-lnss3"
14736 enable_secure
=false
14737 if test "$do_secure" = "yes"
14739 as_fn_error $?
"cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14750 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14751 if ${ac_cv_lib_nspr_PR_Init+:} false
; then :
14752 $as_echo_n "(cached) " >&6
14754 ac_check_lib_save_LIBS
=$LIBS
14755 LIBS
="-lnspr $LIBS"
14756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14759 /* Override any GCC internal prototype to avoid an error.
14760 Use char because int might match the return type of a GCC
14761 builtin and then its argument prototype would still apply. */
14774 if ac_fn_c_try_link
"$LINENO"; then :
14775 ac_cv_lib_nspr_PR_Init
=yes
14777 ac_cv_lib_nspr_PR_Init
=no
14779 rm -f core conftest.err conftest.
$ac_objext \
14780 conftest
$ac_exeext conftest.
$ac_ext
14781 LIBS
=$ac_check_lib_save_LIBS
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14784 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14785 if test "x$ac_cv_lib_nspr_PR_Init" = xyes
; then :
14786 lib_for_nspr
="-lnspr"
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14790 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14791 if ${ac_cv_lib_nspr4_PR_Init+:} false
; then :
14792 $as_echo_n "(cached) " >&6
14794 ac_check_lib_save_LIBS
=$LIBS
14795 LIBS
="-lnspr4 $LIBS"
14796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14799 /* Override any GCC internal prototype to avoid an error.
14800 Use char because int might match the return type of a GCC
14801 builtin and then its argument prototype would still apply. */
14814 if ac_fn_c_try_link
"$LINENO"; then :
14815 ac_cv_lib_nspr4_PR_Init
=yes
14817 ac_cv_lib_nspr4_PR_Init
=no
14819 rm -f core conftest.err conftest.
$ac_objext \
14820 conftest
$ac_exeext conftest.
$ac_ext
14821 LIBS
=$ac_check_lib_save_LIBS
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14824 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14825 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes
; then :
14826 lib_for_nspr
="-lnspr4"
14829 enable_secure
=false
14830 if test "$do_secure" = "yes"
14832 as_fn_error $?
"cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14842 if test "$enable_secure" = "true"
14845 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14850 CPPFLAGS
="$saved_CPPFLAGS"
14851 CFLAGS
="$saved_CFLAGS"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14855 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14856 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false
; then :
14857 $as_echo_n "(cached) " >&6
14859 ac_check_lib_save_LIBS
=$LIBS
14860 LIBS
="-latomic $LIBS"
14861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14864 /* Override any GCC internal prototype to avoid an error.
14865 Use char because int might match the return type of a GCC
14866 builtin and then its argument prototype would still apply. */
14870 char __atomic_fetch_add_4 ();
14874 return __atomic_fetch_add_4 ();
14879 if ac_fn_c_try_link
"$LINENO"; then :
14880 ac_cv_lib_atomic___atomic_fetch_add_4
=yes
14882 ac_cv_lib_atomic___atomic_fetch_add_4
=no
14884 rm -f core conftest.err conftest.
$ac_objext \
14885 conftest
$ac_exeext conftest.
$ac_ext
14886 LIBS
=$ac_check_lib_save_LIBS
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14889 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14890 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes
; then :
14891 lib_for_atomic
="-latomic"
14896 if test -f /usr
/include
/sn
/arsess.h
14898 pcp_mpi_dirs
=libpcp_mpi\ libpcp_mpiread
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14905 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14909 #include <sys/types.h>
14910 #ifdef HAVE_SYS_SOCKET_H
14911 #include <sys/socket.h>
14913 #ifdef HAVE_SYS_UN_H
14914 #include <sys/un.h>
14920 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14925 if ac_fn_c_try_compile
"$LINENO"; then :
14927 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14929 $as_echo "yes" >&6; }
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932 $as_echo "no" >&6; }
14934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14937 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14941 #include <sys/types.h>
14942 #ifdef HAVE_SYS_SOCKET_H
14943 #include <sys/socket.h>
14945 #ifdef HAVE_SYS_UN_H
14946 #include <sys/un.h>
14952 struct ucred ucred; ucred.uid = 0;
14957 if ac_fn_c_try_compile
"$LINENO"; then :
14959 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14961 $as_echo "yes" >&6; }
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14964 $as_echo "no" >&6; }
14966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14969 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14978 struct timespec foo;
14983 if ac_fn_c_try_compile
"$LINENO"; then :
14985 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14987 $as_echo "yes" >&6; }
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 $as_echo "no" >&6; }
14992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
14995 $as_echo_n "checking for altzone in time.h... " >&6; }
14996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
15004 time_t az = altzone;
15009 if ac_fn_c_try_compile
"$LINENO"; then :
15011 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15013 $as_echo "yes" >&6; }
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15016 $as_echo "no" >&6; }
15018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
15021 $as_echo_n "checking if strftime knows about %z... " >&6; }
15022 if test "$cross_compiling" = yes; then :
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15024 $as_echo "no" >&6; }
15026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15032 time_t t = time(NULL);
15033 struct tm * t1 = localtime (&t);
15034 if (strftime (b, 32, "%z", t1) < 3)
15036 if (strcmp(b, "%z") == 0)
15042 if ac_fn_c_try_run
"$LINENO"; then :
15044 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15046 $as_echo "yes" >&6; }
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15051 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15052 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
15057 $as_echo_n "checking if strerror_r returns char *... " >&6; }
15058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060 #include <string.h>
15064 strerror_r(0, NULL, 0)[0];
15069 if ac_fn_c_try_compile
"$LINENO"; then :
15071 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15073 $as_echo "yes" >&6; }
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15076 $as_echo "no" >&6; }
15078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15084 ac_fn_c_check_func
"$LINENO" "readline" "ac_cv_func_readline"
15085 if test "x$ac_cv_func_readline" = xyes
; then :
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15090 $as_echo_n "checking for readline in -lreadline... " >&6; }
15091 if ${ac_cv_lib_readline_readline+:} false
; then :
15092 $as_echo_n "(cached) " >&6
15094 ac_check_lib_save_LIBS
=$LIBS
15095 LIBS
="-lreadline $LIBS"
15096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15099 /* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15109 return readline ();
15114 if ac_fn_c_try_link
"$LINENO"; then :
15115 ac_cv_lib_readline_readline
=yes
15117 ac_cv_lib_readline_readline
=no
15119 rm -f core conftest.err conftest.
$ac_objext \
15120 conftest
$ac_exeext conftest.
$ac_ext
15121 LIBS
=$ac_check_lib_save_LIBS
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15124 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15125 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
15126 cat >>confdefs.h
<<_ACEOF
15127 #define HAVE_LIBREADLINE 1
15130 LIBS
="-lreadline $LIBS"
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
15135 $as_echo_n "checking for add_history in -lreadline... " >&6; }
15136 if ${ac_cv_lib_readline_add_history+:} false
; then :
15137 $as_echo_n "(cached) " >&6
15139 ac_check_lib_save_LIBS
=$LIBS
15140 LIBS
="-lreadline -lcurses $LIBS"
15141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h. */
15144 /* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15150 char add_history ();
15154 return add_history ();
15159 if ac_fn_c_try_link
"$LINENO"; then :
15160 ac_cv_lib_readline_add_history
=yes
15162 ac_cv_lib_readline_add_history
=no
15164 rm -f core conftest.err conftest.
$ac_objext \
15165 conftest
$ac_exeext conftest.
$ac_ext
15166 LIBS
=$ac_check_lib_save_LIBS
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
15169 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
15170 if test "x$ac_cv_lib_readline_add_history" = xyes
; then :
15171 cat >>confdefs.h
<<_ACEOF
15172 #define HAVE_LIBREADLINE 1
15175 LIBS
="-lreadline $LIBS"
15185 if test $ac_cv_func_readline = yes
15188 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15190 elif test $ac_cv_lib_readline_readline = yes
15193 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15195 lib_for_readline
=-lreadline
15196 elif test $ac_cv_lib_readline_add_history = yes
15199 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15201 lib_for_curses
=-lcurses
15202 lib_for_readline
=-lreadline
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15211 $as_echo_n "checking for zlib... " >&6; }
15213 if test -n "$zlib_CFLAGS"; then
15214 pkg_cv_zlib_CFLAGS
="$zlib_CFLAGS"
15215 elif test -n "$PKG_CONFIG"; then
15216 if test -n "$PKG_CONFIG" && \
15217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15218 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15221 test $ac_status = 0; }; then
15222 pkg_cv_zlib_CFLAGS
=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15223 test "x$?" != "x0" && pkg_failed
=yes
15230 if test -n "$zlib_LIBS"; then
15231 pkg_cv_zlib_LIBS
="$zlib_LIBS"
15232 elif test -n "$PKG_CONFIG"; then
15233 if test -n "$PKG_CONFIG" && \
15234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15235 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15238 test $ac_status = 0; }; then
15239 pkg_cv_zlib_LIBS
=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15240 test "x$?" != "x0" && pkg_failed
=yes
15250 if test $pkg_failed = yes; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15252 $as_echo "no" >&6; }
15254 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15255 _pkg_short_errors_supported
=yes
15257 _pkg_short_errors_supported
=no
15259 if test $_pkg_short_errors_supported = yes; then
15260 zlib_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15262 zlib_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15264 # Put the nasty error message in config.log where it belongs
15265 echo "$zlib_PKG_ERRORS" >&5
15268 elif test $pkg_failed = untried
; then
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270 $as_echo "no" >&6; }
15273 zlib_CFLAGS
=$pkg_cv_zlib_CFLAGS
15274 zlib_LIBS
=$pkg_cv_zlib_LIBS
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15276 $as_echo "yes" >&6; }
15279 HAVE_ZLIB
=$have_zlib
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15283 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15288 int test = AI_ADDRCONFIG;
15299 if ac_fn_c_try_compile
"$LINENO"; then :
15301 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15303 $as_echo "yes" >&6; }
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15306 $as_echo "no" >&6; }
15308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15312 if test -f .
/build
/tar
/parfait.
tar.gz
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15315 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15321 if test -f .
/build
/tar
/vector.
tar.gz
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15324 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15330 if test -f .
/build
/tar
/webjs.
tar.gz
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15333 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15341 ac_config_files
="$ac_config_files src/include/builddefs src/include/pcp.conf pcp.lsm debian/pcp.preinst.head debian/pcp.postinst.head build/tar/preinstall.head build/tar/postinstall.head build/GNUlocaldefs build/mac/uninstall-pcp"
15343 cat >confcache
<<\_ACEOF
15344 # This file is a shell script that caches the results of configure
15345 # tests run on this system so they can be shared between configure
15346 # scripts and configure runs, see configure's option --config-cache.
15347 # It is not useful on other systems. If it contains results you don't
15348 # want to keep, you may remove or edit it.
15350 # config.status only pays attention to the cache file if you give it
15351 # the --recheck option to rerun configure.
15353 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15354 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15355 # following values.
15359 # The following way of writing the cache mishandles newlines in values,
15360 # but we know of no workaround that is simple, portable, and efficient.
15361 # So, we kill variables containing newlines.
15362 # Ultrix sh set writes to stderr and can't be redirected directly,
15363 # and sets the high bit in the cache file unless we assign to the vars.
15365 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15366 eval ac_val
=\$
$ac_var
15370 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15371 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15374 _ | IFS | as_nl
) ;; #(
15375 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15376 *) { eval $ac_var=; unset $ac_var;} ;;
15382 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15383 *${as_nl}ac_space
=\
*)
15384 # `set' does not quote correctly, so add quotes: double-quote
15385 # substitution turns \\\\ into \\, and sed turns \\ into \.
15388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15391 # `set' quotes correctly as required by POSIX, so do not add quotes.
15392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15403 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15405 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15406 if test -w "$cache_file"; then
15407 if test "x$cache_file" != "x/dev/null"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15409 $as_echo "$as_me: updating cache $cache_file" >&6;}
15410 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15411 cat confcache
>"$cache_file"
15413 case $cache_file in #(
15415 mv -f confcache
"$cache_file"$$
&&
15416 mv -f "$cache_file"$$
"$cache_file" ;; #(
15418 mv -f confcache
"$cache_file" ;;
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15424 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15429 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15430 # Let make expand exec_prefix.
15431 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15433 DEFS
=-DHAVE_CONFIG_H
15438 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15439 # 1. Remove the extension, and $U if already installed.
15440 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15441 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15442 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15443 # will be set to the directory where LIBOBJS objects are built.
15444 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15445 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15447 LIBOBJS
=$ac_libobjs
15449 LTLIBOBJS
=$ac_ltlibobjs
15453 : "${CONFIG_STATUS=./config.status}"
15455 ac_clean_files_save
=$ac_clean_files
15456 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15458 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15460 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15462 # Generated by $as_me.
15463 # Run this file to recreate the current configuration.
15464 # Compiler output produced by configure, useful for debugging
15465 # configure, is in config.log if it exists.
15468 ac_cs_recheck=false
15471 SHELL=\${CONFIG_SHELL-$SHELL}
15474 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15475 ## -------------------- ##
15476 ## M4sh Initialization. ##
15477 ## -------------------- ##
15479 # Be more Bourne compatible
15480 DUALCASE
=1; export DUALCASE
# for MKS sh
15481 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15484 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15485 # is contrary to our usage. Disable this feature.
15486 alias -g '${1+"$@"}'='"$@"'
15487 setopt NO_GLOB_SUBST
15489 case `(set -o) 2>/dev/null` in #(
15501 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15502 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15503 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15504 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15505 # Prefer a ksh shell builtin over an external printf program on Solaris,
15506 # but without wasting forks for bash or zsh.
15507 if test -z "$BASH_VERSION$ZSH_VERSION" \
15508 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15509 as_echo='print
-r --'
15510 as_echo_n='print
-rn --'
15511 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15512 as_echo='printf %s
\n'
15513 as_echo_n='printf %s
'
15515 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15516 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15517 as_echo_n='/usr
/ucb
/echo -n'
15519 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15520 as_echo_n_body='eval
15524 expr "X$arg" : "X\\(.*\\)$as_nl";
15525 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15527 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15529 export as_echo_n_body
15530 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15532 export as_echo_body
15533 as_echo='sh
-c $as_echo_body as_echo
'
15536 # The user is always right.
15537 if test "${PATH_SEPARATOR+set}" != set; then
15539 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15540 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15547 # We need space, tab and new line, in precisely that order. Quoting is
15548 # there to prevent editors from complaining about space-tab.
15549 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15550 # splitting by setting IFS to empty value.)
15553 # Find who we are. Look in the path if we contain no directory separator.
15556 *[\\/]* ) as_myself=$0 ;;
15557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15558 for as_dir in $PATH
15561 test -z "$as_dir" && as_dir=.
15562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15568 # We did not find ourselves, most probably we were run as `sh COMMAND'
15569 # in which case we are not to be found in the path.
15570 if test "x$as_myself" = x
; then
15573 if test ! -f "$as_myself"; then
15574 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15578 # Unset variables that we do not need and which cause bugs (e.g. in
15579 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15580 # suppresses any "Segmentation fault" message there. '((' could
15581 # trigger a bug in pdksh 5.2.14.
15582 for as_var
in BASH_ENV ENV MAIL MAILPATH
15583 do eval test x\
${$as_var+set} = xset \
15584 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15597 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15600 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15601 # ----------------------------------------
15602 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15603 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15604 # script with STATUS, using 1 if that was 0.
15607 as_status
=$1; test $as_status -eq 0 && as_status
=1
15609 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15610 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15612 $as_echo "$as_me: error: $2" >&2
15613 as_fn_exit
$as_status
15617 # as_fn_set_status STATUS
15618 # -----------------------
15619 # Set $? to STATUS, without forking.
15620 as_fn_set_status
()
15623 } # as_fn_set_status
15625 # as_fn_exit STATUS
15626 # -----------------
15627 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15631 as_fn_set_status
$1
15637 # Portably unset VAR.
15640 { eval $1=; unset $1;}
15642 as_unset
=as_fn_unset
15643 # as_fn_append VAR VALUE
15644 # ----------------------
15645 # Append the text in VALUE to the end of the definition contained in VAR. Take
15646 # advantage of any shell optimizations that allow amortized linear growth over
15647 # repeated appends, instead of the typical quadratic growth present in naive
15649 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15650 eval 'as_fn_append ()
15661 # as_fn_arith ARG...
15662 # ------------------
15663 # Perform arithmetic evaluation on the ARGs, and store the result in the
15664 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15665 # must be portable across $(()) and expr.
15666 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15667 eval 'as_fn_arith ()
15674 as_val
=`expr "$@" || test $? -eq 1`
15679 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15680 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15686 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15687 as_basename
=basename
15692 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15698 as_me
=`$as_basename -- "$0" ||
15699 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15700 X"$0" : 'X\(//\)$' \| \
15701 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15703 sed '/^.*\/\([^/][^/]*\)\/*$/{
15717 # Avoid depending upon Character Ranges.
15718 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15719 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15720 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15721 as_cr_digits
='0123456789'
15722 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15724 ECHO_C
= ECHO_N
= ECHO_T
=
15725 case `echo -n x` in #(((((
15727 case `echo 'xy\c'` in
15728 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15730 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15737 rm -f conf$$ conf$$.exe conf$$.
file
15738 if test -d conf$$.dir
; then
15739 rm -f conf$$.dir
/conf$$.
file
15742 mkdir conf$$.dir
2>/dev
/null
15744 if (echo >conf$$.
file) 2>/dev
/null
; then
15745 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15747 # ... but there are two gotchas:
15748 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15749 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15750 # In both cases, we have to default to `cp -pR'.
15751 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15753 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15761 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15762 rmdir conf$$.dir
2>/dev
/null
15767 # Create "$as_dir" as a directory, including parents if necessary.
15772 -*) as_dir
=.
/$as_dir;;
15774 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15778 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15779 *) as_qdir
=$as_dir;;
15781 as_dirs
="'$as_qdir' $as_dirs"
15782 as_dir
=`$as_dirname -- "$as_dir" ||
15783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15784 X"$as_dir" : 'X\(//\)[^/]' \| \
15785 X"$as_dir" : 'X\(//\)$' \| \
15786 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15787 $as_echo X"$as_dir" |
15788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15792 /^X\(\/\/\)[^/].*/{
15805 test -d "$as_dir" && break
15807 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15808 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15812 if mkdir
-p .
2>/dev
/null
; then
15813 as_mkdir_p
='mkdir -p "$as_dir"'
15815 test -d .
/-p && rmdir .
/-p
15820 # as_fn_executable_p FILE
15821 # -----------------------
15822 # Test if FILE is an executable regular file.
15823 as_fn_executable_p
()
15825 test -f "$1" && test -x "$1"
15826 } # as_fn_executable_p
15827 as_test_x
='test -x'
15828 as_executable_p
=as_fn_executable_p
15830 # Sed expression to map a string onto a valid CPP name.
15831 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15833 # Sed expression to map a string onto a valid variable name.
15834 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15838 ## ----------------------------------- ##
15839 ## Main body of $CONFIG_STATUS script. ##
15840 ## ----------------------------------- ##
15842 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15845 # Save the log message, to keep $0 and so on meaningful, and to
15846 # report actual input values of CONFIG_FILES etc. instead of their
15847 # values after options handling.
15849 This file was extended by $as_me, which was
15850 generated by GNU Autoconf 2.69. Invocation command line was
15852 CONFIG_FILES = $CONFIG_FILES
15853 CONFIG_HEADERS = $CONFIG_HEADERS
15854 CONFIG_LINKS = $CONFIG_LINKS
15855 CONFIG_COMMANDS = $CONFIG_COMMANDS
15858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15863 case $ac_config_files in *"
15864 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15867 case $ac_config_headers in *"
15868 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 # Files that config.status was made for.
15874 config_files="$ac_config_files"
15875 config_headers="$ac_config_headers"
15879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15881 \`$as_me' instantiates files and other configuration actions
15882 from templates according to the current configuration. Unless the files
15883 and actions are specified as TAGs, all are instantiated by default.
15885 Usage: $0 [OPTION]... [TAG]...
15887 -h, --help print this help, then exit
15888 -V, --version print version number and configuration settings, then exit
15889 --config print configuration, then exit
15890 -q, --quiet, --silent
15891 do not print progress messages
15892 -d, --debug don't remove temporary files
15893 --recheck update $as_me by reconfiguring in the same conditions
15894 --file=FILE[:TEMPLATE]
15895 instantiate the configuration file FILE
15896 --header=FILE[:TEMPLATE]
15897 instantiate the configuration header FILE
15899 Configuration files:
15902 Configuration headers:
15905 Report bugs to the package provider."
15908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15909 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15912 configured by $0, generated by GNU Autoconf 2.69,
15913 with options \\"\$ac_cs_config\\"
15915 Copyright (C) 2012 Free Software Foundation, Inc.
15916 This config.status script is free software; the Free Software Foundation
15917 gives unlimited permission to copy, distribute and modify it."
15921 test -n "\$AWK" || AWK=awk
15924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15925 # The default lists apply if the user does not specify any file.
15931 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15932 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15936 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15948 # Handling of the options.
15949 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15951 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15952 $as_echo "$ac_cs_version"; exit ;;
15953 --config |
--confi |
--conf |
--con |
--co |
--c )
15954 $as_echo "$ac_cs_config"; exit ;;
15955 --debug |
--debu |
--deb |
--de |
--d |
-d )
15957 --file |
--fil |
--fi |
--f )
15960 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15961 '') as_fn_error $?
"missing file argument" ;;
15963 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15964 ac_need_defaults
=false
;;
15965 --header |
--heade |
--head |
--hea )
15968 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15970 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15971 ac_need_defaults
=false
;;
15973 # Conflict between --help and --header
15974 as_fn_error $?
"ambiguous option: \`$1'
15975 Try \`$0 --help' for more information.";;
15976 --help |
--hel |
-h )
15977 $as_echo "$ac_cs_usage"; exit ;;
15978 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15979 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15982 # This is an error.
15983 -*) as_fn_error $?
"unrecognized option: \`$1'
15984 Try \`$0 --help' for more information." ;;
15986 *) as_fn_append ac_config_targets
" $1"
15987 ac_need_defaults
=false
;;
15993 ac_configure_extra_args
=
15995 if $ac_cs_silent; then
15997 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16002 if \$ac_cs_recheck; then
16003 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16005 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16006 CONFIG_SHELL='$SHELL'
16007 export CONFIG_SHELL
16012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16017 ## Running $as_me. ##
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16028 # Handling of arguments.
16029 for ac_config_target
in $ac_config_targets
16031 case $ac_config_target in
16032 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
16033 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
16034 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
16035 "src/include/pcp/platformsz.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
16036 "src/include/builddefs") CONFIG_FILES
="$CONFIG_FILES src/include/builddefs" ;;
16037 "src/include/pcp.conf") CONFIG_FILES
="$CONFIG_FILES src/include/pcp.conf" ;;
16038 "pcp.lsm") CONFIG_FILES
="$CONFIG_FILES pcp.lsm" ;;
16039 "debian/pcp.preinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.preinst.head" ;;
16040 "debian/pcp.postinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.postinst.head" ;;
16041 "build/tar/preinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/preinstall.head" ;;
16042 "build/tar/postinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/postinstall.head" ;;
16043 "build/GNUlocaldefs") CONFIG_FILES
="$CONFIG_FILES build/GNUlocaldefs" ;;
16044 "build/mac/uninstall-pcp") CONFIG_FILES
="$CONFIG_FILES build/mac/uninstall-pcp" ;;
16046 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16051 # If the user did not use the arguments to specify the items to instantiate,
16052 # then the envvar interface is used. Set only those that are not.
16053 # We use the long form for the default assignment because of an extremely
16054 # bizarre bug on SunOS 4.1.3.
16055 if $ac_need_defaults; then
16056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16060 # Have a temporary directory for convenience. Make it in the build tree
16061 # simply because there is no reason against having it here, and in addition,
16062 # creating and moving files from /tmp can sometimes cause problems.
16063 # Hook for its removal unless debugging.
16064 # Note that there is a small window in which the directory will not be cleaned:
16065 # after its creation but before its name has been assigned to `$tmp'.
16069 trap 'exit_status=$?
16070 : "${ac_tmp:=$tmp}"
16071 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16073 trap 'as_fn_exit 1' 1 2 13 15
16075 # Create a (secure) tmp directory for tmp files.
16078 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16082 tmp
=.
/conf$$
-$RANDOM
16083 (umask 077 && mkdir
"$tmp")
16084 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16087 # Set up the scripts for CONFIG_FILES section.
16088 # No need to generate them if there are no CONFIG_FILES.
16089 # This happens for instance with `./config.status config.h'.
16090 if test -n "$CONFIG_FILES"; then
16093 ac_cr
=`echo X | tr X '\015'`
16094 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16095 # But we know of no other shell where ac_cr would be empty at this
16096 # point, so we can use a bashism as a fallback.
16097 if test "x$ac_cr" = x
; then
16098 eval ac_cr
=\$
\'\\r
\'
16100 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16101 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16104 ac_cs_awk_cr
=$ac_cr
16107 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16112 echo "cat >conf$$subs.awk <<_ACEOF" &&
16113 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16115 } >conf$$subs.sh ||
16116 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16117 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16119 for ac_last_try in false false false false false :; do
16120 . ./conf$$subs.sh ||
16121 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16123 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16124 if test $ac_delim_n = $ac_delim_num; then
16126 elif $ac_last_try; then
16127 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16129 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16132 rm -f conf$$subs.sh
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16139 s/^/S["/; s
/!.
*/"]=/
16149 s/\(.\{148\}\)..*/\1/
16151 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16156 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16163 s/\(.\{148\}\)..*/\1/
16165 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16169 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16174 ' <conf$$subs.awk | sed '
16179 ' >>$CONFIG_STATUS || ac_write_fail=1
16180 rm -f conf$$subs.awk
16181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16184 for (key in S) S_is_set[key] = 1
16190 nfields = split(line, field, "@
")
16192 len = length(field[1])
16193 for (i = 2; i < nfields; i++) {
16195 keylen = length(key)
16196 if (S_is_set[key]) {
16198 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16199 len += length(value) + length(field[++i])
16210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16211 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16212 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16215 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16216 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16219 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16220 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16221 # trailing colons and then remove the whole line if VPATH becomes empty
16222 # (actually we leave an empty line to preserve line numbers).
16223 if test "x
$srcdir" = x.; then
16224 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16243 fi # test -n "$CONFIG_FILES"
16245 # Set up the scripts for CONFIG_HEADERS section.
16246 # No need to generate them if there are no CONFIG_HEADERS.
16247 # This happens for instance with `./config.status Makefile'.
16248 if test -n "$CONFIG_HEADERS"; then
16249 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16253 # Transform confdefs.h into an awk script `defines.awk', embedded as
16254 # here-document in config.status, that substitutes the proper values into
16255 # config.h.in to produce config.h.
16257 # Create a delimiter string that does not exist in confdefs.h, to ease
16258 # handling of long lines.
16260 for ac_last_try in false false :; do
16261 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16262 if test -z "$ac_tt"; then
16264 elif $ac_last_try; then
16265 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16267 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16271 # For the awk script, D is an array of macro values keyed by name,
16272 # likewise P contains macro parameters if any. Preserve backslash
16273 # newline sequences.
16275 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16277 s/.\{148\}/&'"$ac_delim"'/g
16280 s/^[ ]*#[ ]*define[ ][ ]*/ /
16287 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16289 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16294 D["\
1"]=" \
3\\\\\\n
"\\/p
16296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16301 s/.\{148\}/&'"$ac_delim"'/g
16306 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16309 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16311 ' <confdefs.h | sed '
16312 s/'"$ac_delim"'/"\\\
16313 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16316 for (key in D) D_is_set[key] = 1
16319 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16321 split(line, arg, " ")
16322 if (arg[1] == "#") {
16326 defundef
= substr
(arg
[1], 2)
16329 split(mac1
, mac2
, "(") #)
16331 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16332 if (D_is_set
[macro
]) {
16333 # Preserve the white space surrounding the "#".
16334 print prefix
"define", macro P
[macro
] D
[macro
]
16337 # Replace #undef with comments. This is necessary, for example,
16338 # in the case of _POSIX_SOURCE, which is predefined and required
16339 # on some systems where configure will not decide to define it.
16340 if (defundef
== "undef") {
16341 print
"/*", prefix defundef
, macro
, "*/"
16349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16350 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16351 fi # test -n "$CONFIG_HEADERS"
16354 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
16359 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16361 case $ac_mode$ac_tag in
16363 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16364 :[FH
]-) ac_tag
=-:-;;
16365 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16382 -) ac_f
="$ac_tmp/stdin";;
16383 *) # Look for the file first in the build tree, then in the source tree
16384 # (if the path is not absolute). The absolute path cannot be DOS-style,
16385 # because $ac_f cannot contain `:'.
16389 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16391 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16393 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16394 as_fn_append ac_file_inputs
" '$ac_f'"
16397 # Let's still pretend it is `configure' which instantiates (i.e., don't
16398 # use $as_me), people would be surprised to read:
16399 # /* config.h. Generated by config.status. */
16400 configure_input
='Generated from '`
16401 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16403 if test x
"$ac_file" != x-
; then
16404 configure_input
="$ac_file. $configure_input"
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16406 $as_echo "$as_me: creating $ac_file" >&6;}
16408 # Neutralize special characters interpreted by sed in replacement strings.
16409 case $configure_input in #(
16410 *\
&* |
*\|
* |
*\\* )
16411 ac_sed_conf_input
=`$as_echo "$configure_input" |
16412 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16413 *) ac_sed_conf_input
=$configure_input;;
16417 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16418 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16423 ac_dir
=`$as_dirname -- "$ac_file" ||
16424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16425 X"$ac_file" : 'X\(//\)[^/]' \| \
16426 X"$ac_file" : 'X\(//\)$' \| \
16427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16428 $as_echo X"$ac_file" |
16429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16433 /^X\(\/\/\)[^/].*/{
16446 as_dir
="$ac_dir"; as_fn_mkdir_p
16450 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16452 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16453 # A ".." for each directory in $ac_dir_suffix.
16454 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16455 case $ac_top_builddir_sub in
16456 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16457 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16460 ac_abs_top_builddir
=$ac_pwd
16461 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16462 # for backward compatibility:
16463 ac_top_builddir
=$ac_top_build_prefix
16466 .
) # We are building in place.
16468 ac_top_srcdir
=$ac_top_builddir_sub
16469 ac_abs_top_srcdir
=$ac_pwd ;;
16470 [\\/]* | ?
:[\\/]* ) # Absolute name.
16471 ac_srcdir
=$srcdir$ac_dir_suffix;
16472 ac_top_srcdir
=$srcdir
16473 ac_abs_top_srcdir
=$srcdir ;;
16474 *) # Relative name.
16475 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16476 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16477 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16479 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16491 # If the template does not know about datarootdir, expand it.
16492 # FIXME: This hack should be removed a few years after 2.60.
16493 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16504 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16505 *datarootdir
*) ac_datarootdir_seen
=yes;;
16506 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16508 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16511 ac_datarootdir_hack='
16512 s&@datadir@&$datadir&g
16513 s&@docdir@&$docdir&g
16514 s&@infodir@&$infodir&g
16515 s&@localedir@&$localedir&g
16516 s&@mandir@&$mandir&g
16517 s&\\\${datarootdir}&$datarootdir&g' ;;
16521 # Neutralize VPATH when `$srcdir' = `.'.
16522 # Shell code in configure.ac might set extrasub.
16523 # FIXME: do we really want to maintain this feature?
16524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525 ac_sed_extra="$ac_vpsub
16528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16530 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16531 s|@configure_input@|
$ac_sed_conf_input|
;t t
16532 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16533 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16534 s
&@srcdir@
&$ac_srcdir&;t t
16535 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16536 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16537 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16538 s
&@builddir@
&$ac_builddir&;t t
16539 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16540 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16541 $ac_datarootdir_hack
16543 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16544 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16546 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16547 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16548 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16549 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16551 which seems to be undefined. Please make sure it is defined" >&5
16552 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16553 which seems to be undefined. Please make sure it is defined" >&2;}
16555 rm -f "$ac_tmp/stdin"
16557 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16558 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16566 if test x"$ac_file" != x-; then
16568 $as_echo "/* $configure_input */" \
16569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16570 } >"$ac_tmp/config.h" \
16571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16572 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16574 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16577 mv "$ac_tmp/config.h" "$ac_file" \
16578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16581 $as_echo "/* $configure_input */" \
16582 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16583 || as_fn_error $? "could not create -" "$LINENO" 5
16595 ac_clean_files=$ac_clean_files_save
16597 test $ac_write_fail = 0 ||
16598 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16601 # configure is writing to config.log, and then calls config.status.
16602 # config.status does its own redirection, appending to config.log.
16603 # Unfortunately, on DOS this fails, as config.log is still kept open
16604 # by configure, so config.status won't be able to
write to it
; its
16605 # output is simply discarded. So we exec the FD to /dev/null,
16606 # effectively closing config.log, so it can be properly (re)opened and
16607 # appended to by config.status. When coming back to configure, we
16608 # need to make the FD available again.
16609 if test "$no_create" != yes; then
16611 ac_config_status_args
=
16612 test "$silent" = yes &&
16613 ac_config_status_args
="$ac_config_status_args --quiet"
16615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16618 # would make configure fail if this is the last instruction.
16619 $ac_cs_success || as_fn_exit
1
16621 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16623 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}