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
810 have_python_setuptools
811 have_python_jsonpointer
830 SYSTEMD_SYSTEMUNITDIR
930 program_transform_name
943 enable_option_checking
978 with_perl_installdirs
979 with_perl_install_base
990 ac_precious_vars
='build_alias
1009 SYSTEMD_SYSTEMUNITDIR
1016 libmicrohttpd_CFLAGS
1025 # Initialize some variables set by options.
1027 ac_init_version
=false
1028 ac_unrecognized_opts
=
1029 ac_unrecognized_sep
=
1030 # The variables have the same names as the options, with
1031 # dashes changed to underlines.
1032 cache_file
=/dev
/null
1039 program_transform_name
=s
,x
,x
,
1047 # Installation directory options.
1048 # These are left unexpanded so users can "make install exec_prefix=/foo"
1049 # and all the variables that are supposed to be based on exec_prefix
1050 # by default will actually change.
1051 # Use braces instead of parens because sh, perl, etc. also accept them.
1052 # (The list follows the same order as the GNU Coding Standards.)
1053 bindir
='${exec_prefix}/bin'
1054 sbindir
='${exec_prefix}/sbin'
1055 libexecdir
='${exec_prefix}/libexec'
1056 datarootdir
='${prefix}/share'
1057 datadir
='${datarootdir}'
1058 sysconfdir
='${prefix}/etc'
1059 sharedstatedir
='${prefix}/com'
1060 localstatedir
='${prefix}/var'
1061 includedir
='${prefix}/include'
1062 oldincludedir
='/usr/include'
1063 docdir
='${datarootdir}/doc/${PACKAGE}'
1064 infodir
='${datarootdir}/info'
1069 libdir
='${exec_prefix}/lib'
1070 localedir
='${datarootdir}/locale'
1071 mandir
='${datarootdir}/man'
1077 # If the previous option needs an argument, assign it.
1078 if test -n "$ac_prev"; then
1079 eval $ac_prev=\
$ac_option
1085 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1090 # Accept the important Cygnus configure options, so we can diagnose typos.
1092 case $ac_dashdash$ac_option in
1096 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1098 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1099 bindir
=$ac_optarg ;;
1101 -build |
--build |
--buil |
--bui |
--bu)
1102 ac_prev
=build_alias
;;
1103 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1104 build_alias
=$ac_optarg ;;
1106 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1107 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1108 ac_prev
=cache_file
;;
1109 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1110 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1111 cache_file
=$ac_optarg ;;
1113 --config-cache |
-C)
1114 cache_file
=config.cache
;;
1116 -datadir |
--datadir |
--datadi |
--datad)
1118 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1119 datadir
=$ac_optarg ;;
1121 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1122 |
--dataroo |
--dataro |
--datar)
1123 ac_prev
=datarootdir
;;
1124 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1125 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1126 datarootdir
=$ac_optarg ;;
1128 -disable-* |
--disable-*)
1129 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1132 as_fn_error $?
"invalid feature name: $ac_useropt"
1133 ac_useropt_orig
=$ac_useropt
1134 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "enable_
$ac_useropt"
1139 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1140 ac_unrecognized_sep
=', ';;
1142 eval enable_
$ac_useropt=no
;;
1144 -docdir |
--docdir |
--docdi |
--doc |
--do)
1146 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1147 docdir
=$ac_optarg ;;
1149 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1151 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1152 dvidir
=$ac_optarg ;;
1154 -enable-* |
--enable-*)
1155 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1158 as_fn_error $?
"invalid feature name: $ac_useropt"
1159 ac_useropt_orig
=$ac_useropt
1160 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "enable_
$ac_useropt"
1165 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1166 ac_unrecognized_sep
=', ';;
1168 eval enable_
$ac_useropt=\
$ac_optarg ;;
1170 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1171 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1172 |
--exec |
--exe |
--ex)
1173 ac_prev
=exec_prefix
;;
1174 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1175 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1176 |
--exec=* |
--exe=* |
--ex=*)
1177 exec_prefix
=$ac_optarg ;;
1179 -gas |
--gas |
--ga |
--g)
1180 # Obsolete; use --with-gas.
1183 -help |
--help |
--hel |
--he |
-h)
1184 ac_init_help
=long
;;
1185 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1186 ac_init_help
=recursive
;;
1187 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1188 ac_init_help
=short
;;
1190 -host |
--host |
--hos |
--ho)
1191 ac_prev
=host_alias
;;
1192 -host=* |
--host=* |
--hos=* |
--ho=*)
1193 host_alias
=$ac_optarg ;;
1195 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1197 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1199 htmldir
=$ac_optarg ;;
1201 -includedir |
--includedir |
--includedi |
--included |
--include \
1202 |
--includ |
--inclu |
--incl |
--inc)
1203 ac_prev
=includedir
;;
1204 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1205 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1206 includedir
=$ac_optarg ;;
1208 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1210 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1211 infodir
=$ac_optarg ;;
1213 -libdir |
--libdir |
--libdi |
--libd)
1215 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1216 libdir
=$ac_optarg ;;
1218 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1219 |
--libexe |
--libex |
--libe)
1220 ac_prev
=libexecdir
;;
1221 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1222 |
--libexe=* |
--libex=* |
--libe=*)
1223 libexecdir
=$ac_optarg ;;
1225 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1226 ac_prev
=localedir
;;
1227 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1228 localedir
=$ac_optarg ;;
1230 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1231 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1232 ac_prev
=localstatedir
;;
1233 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1234 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1235 localstatedir
=$ac_optarg ;;
1237 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1239 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1240 mandir
=$ac_optarg ;;
1242 -nfp |
--nfp |
--nf)
1243 # Obsolete; use --without-fp.
1246 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1247 |
--no-cr |
--no-c |
-n)
1250 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1251 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1254 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1255 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1256 |
--oldin |
--oldi |
--old |
--ol |
--o)
1257 ac_prev
=oldincludedir
;;
1258 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1259 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1260 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1261 oldincludedir
=$ac_optarg ;;
1263 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1265 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1266 prefix
=$ac_optarg ;;
1268 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1269 |
--program-pre |
--program-pr |
--program-p)
1270 ac_prev
=program_prefix
;;
1271 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1272 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1273 program_prefix
=$ac_optarg ;;
1275 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1276 |
--program-suf |
--program-su |
--program-s)
1277 ac_prev
=program_suffix
;;
1278 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1279 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1280 program_suffix
=$ac_optarg ;;
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 ac_prev
=program_transform_name
;;
1290 -program-transform-name=* |
--program-transform-name=* \
1291 |
--program-transform-nam=* |
--program-transform-na=* \
1292 |
--program-transform-n=* |
--program-transform-=* \
1293 |
--program-transform=* |
--program-transfor=* \
1294 |
--program-transfo=* |
--program-transf=* \
1295 |
--program-trans=* |
--program-tran=* \
1296 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1297 program_transform_name
=$ac_optarg ;;
1299 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1301 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1302 pdfdir
=$ac_optarg ;;
1304 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1306 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1309 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1310 |
-silent |
--silent |
--silen |
--sile |
--sil)
1313 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1315 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1317 sbindir
=$ac_optarg ;;
1319 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1320 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1321 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1323 ac_prev
=sharedstatedir
;;
1324 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1325 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1326 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1328 sharedstatedir
=$ac_optarg ;;
1330 -site |
--site |
--sit)
1332 -site=* |
--site=* |
--sit=*)
1335 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1337 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1338 srcdir
=$ac_optarg ;;
1340 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1341 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1342 ac_prev
=sysconfdir
;;
1343 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1344 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1345 sysconfdir
=$ac_optarg ;;
1347 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1348 ac_prev
=target_alias
;;
1349 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1350 target_alias
=$ac_optarg ;;
1352 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1355 -version |
--version |
--versio |
--versi |
--vers |
-V)
1356 ac_init_version
=: ;;
1359 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1362 as_fn_error $?
"invalid package name: $ac_useropt"
1363 ac_useropt_orig
=$ac_useropt
1364 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1369 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1370 ac_unrecognized_sep
=', ';;
1372 eval with_
$ac_useropt=\
$ac_optarg ;;
1374 -without-* |
--without-*)
1375 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1378 as_fn_error $?
"invalid package name: $ac_useropt"
1379 ac_useropt_orig
=$ac_useropt
1380 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1385 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1386 ac_unrecognized_sep
=', ';;
1388 eval with_
$ac_useropt=no
;;
1391 # Obsolete; use --with-x.
1394 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1395 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1396 ac_prev
=x_includes
;;
1397 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1398 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1399 x_includes
=$ac_optarg ;;
1401 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1402 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1403 ac_prev
=x_libraries
;;
1404 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1405 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1406 x_libraries
=$ac_optarg ;;
1408 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1409 Try \`$0 --help' for more information"
1413 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1414 # Reject names that are not valid shell variable names.
1415 case $ac_envvar in #(
1416 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1417 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1419 eval $ac_envvar=\
$ac_optarg
1420 export $ac_envvar ;;
1423 # FIXME: should be removed in autoconf 3.0.
1424 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1425 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1426 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1427 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1433 if test -n "$ac_prev"; then
1434 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1435 as_fn_error $?
"missing argument to $ac_option"
1438 if test -n "$ac_unrecognized_opts"; then
1439 case $enable_option_checking in
1441 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1442 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1446 # Check all directory arguments for consistency.
1447 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1448 datadir sysconfdir sharedstatedir localstatedir includedir \
1449 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1450 libdir localedir mandir
1452 eval ac_val
=\$
$ac_var
1453 # Remove trailing slashes.
1456 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1457 eval $ac_var=\
$ac_val;;
1459 # Be sure to have absolute directory names.
1461 [\\/$
]* | ?
:[\\/]* ) continue;;
1462 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1464 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1467 # There might be people who depend on the old broken behavior: `$host'
1468 # used to hold the argument of --host etc.
1469 # FIXME: To remove some day.
1472 target
=$target_alias
1474 # FIXME: To remove some day.
1475 if test "x$host_alias" != x
; then
1476 if test "x$build_alias" = x
; then
1477 cross_compiling
=maybe
1478 elif test "x$build_alias" != "x$host_alias"; then
1484 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1486 test "$silent" = yes && exec 6>/dev
/null
1489 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di
=`ls -di .` &&
1491 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1492 as_fn_error $?
"working directory cannot be determined"
1493 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1494 as_fn_error $?
"pwd does not report name of working directory"
1497 # Find the source files, if location was not specified.
1498 if test -z "$srcdir"; then
1499 ac_srcdir_defaulted
=yes
1500 # Try the directory containing this script, then the parent directory.
1501 ac_confdir
=`$as_dirname -- "$as_myself" ||
1502 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1503 X"$as_myself" : 'X\(//\)[^/]' \| \
1504 X"$as_myself" : 'X\(//\)$' \| \
1505 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1506 $as_echo X"$as_myself" |
1507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1529 ac_srcdir_defaulted
=no
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1532 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1533 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1535 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1537 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1539 # When building in place, set srcdir=.
1540 if test "$ac_abs_confdir" = "$ac_pwd"; then
1543 # Remove unnecessary trailing slashes from srcdir.
1544 # Double slashes in file names in object file debugging info
1545 # mess up M-x gdb in Emacs.
1547 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 for ac_var
in $ac_precious_vars; do
1550 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1551 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1552 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1553 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1557 # Report the --help message.
1559 if test "$ac_init_help" = "long"; then
1560 # Omit some internal or obsolete options to make the list less imposing.
1561 # This message is too long to be a string in the A/UX 3.1 sh.
1563 \`configure' configures this package to adapt to many kinds of systems.
1565 Usage: $0 [OPTION]... [VAR=VALUE]...
1567 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568 VAR=VALUE. See below for descriptions of some of the useful variables.
1570 Defaults for the options are specified in brackets.
1573 -h, --help display this help and exit
1574 --help=short display options specific to this package
1575 --help=recursive display the short help of all the included packages
1576 -V, --version display version information and exit
1577 -q, --quiet, --silent do not print \`checking ...' messages
1578 --cache-file=FILE cache test results in FILE [disabled]
1579 -C, --config-cache alias for \`--cache-file=config.cache'
1580 -n, --no-create do not create output files
1581 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1583 Installation directories:
1584 --prefix=PREFIX install architecture-independent files in PREFIX
1585 [$ac_default_prefix]
1586 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1589 By default, \`make install' will install all the files in
1590 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1591 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1592 for instance \`--prefix=\$HOME'.
1594 For better control, use the options below.
1596 Fine tuning of the installation directories:
1597 --bindir=DIR user executables [EPREFIX/bin]
1598 --sbindir=DIR system admin executables [EPREFIX/sbin]
1599 --libexecdir=DIR program executables [EPREFIX/libexec]
1600 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1601 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1602 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1603 --libdir=DIR object code libraries [EPREFIX/lib]
1604 --includedir=DIR C header files [PREFIX/include]
1605 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1606 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1607 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1608 --infodir=DIR info documentation [DATAROOTDIR/info]
1609 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1610 --mandir=DIR man documentation [DATAROOTDIR/man]
1611 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1612 --htmldir=DIR html documentation [DOCDIR]
1613 --dvidir=DIR dvi documentation [DOCDIR]
1614 --pdfdir=DIR pdf documentation [DOCDIR]
1615 --psdir=DIR ps documentation [DOCDIR]
1621 --x-includes=DIR X include files are
in DIR
1622 --x-libraries=DIR X library files are
in DIR
1625 --build=BUILD configure
for building on BUILD
[guessed
]
1626 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1627 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1631 if test -n "$ac_init_help"; then
1636 --disable-option-checking ignore unrecognized
--enable/--with options
1637 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1638 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1639 --disable-ssp disable gcc stack-protector
1640 --disable-pie disable position-independent-executable
1641 --disable-visibility disable gcc symbol visibility
1642 --disable-shared disable core shared libary generation
1645 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1646 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1647 --with-64bit turn on
64 bit compilation mode
(default is platform
1649 --with-optimization enable optimization
for C
/C
++ code
(default is
yes)
1650 --with-threads enable support
for multiple threads
(default is on
)
1651 --with-secure-sockets enable support
for secure sockets
(default is on
)
1652 --with-static-probes enable support
for static probes
(default is on
)
1653 --with-infiniband enable support
for Infiniband metrics
(default is
1655 --with-user user account under
which daemons run
(default is
1657 --with-group user group under
which daemons run
(default is pcp
)
1658 --with-discovery enable support
for service discovery
(default is on
)
1659 --with-systemd enable support
for systemd services
(default is on
)
1660 --with-qt enable support
for tools requiring Qt
(default is
1662 --with-qt3d enable support
for 3D scene graph API
(default is
1664 --with-python enable support
for tools requiring Python
(default
1666 --with-python3 enable support
for tools requiring Python3
(default
1668 --with-books enable building of the PCP books
(default is off
)
1669 --with-books-brand=BRAND
1670 choose the docbook brand when building the PCP books
1672 --with-papi[=DIR|
=MODULE
]
1673 enable performance api counter pmda
(default is on
)
1674 The optional argument may be a full path of a PAPI
1675 installation prefix
, or a pkgconfig module name.
1676 --with-perfevent enable perfevent pmda
(default is on
)
1677 --with-pmdajson enable JSON pmda
(default is on
)
1678 --with-pmdasnmp enable SNMP pmda
(default is on
)
1679 --with-manager enable daemon manager
(default is on
)
1680 --with-webapi enable REST API daemon
(default is on
)
1681 --with-webjs enable building of webjs packages
(default is off
)
1682 --with-vector enable building of vector package
(default is off
)
1683 --with-parfait enable building of parfait package
(default is off
)
1684 --with-selinux enable building of selinux package
(default is on
)
1685 --with-make path to GNU compatible
make(1) (default is empty
for
1687 --with-tar path to GNU compatible
tar(1) (default is empty
for
1689 --with-zip path to GNU compatible
zip(1) (default is empty
for
1691 --with-configdir configuration directory
[LOCALSTATEDIR
/pcp
/config
]
1692 --with-perl_installdirs perl installdirs
[vendor
]
1693 --with-perl_install_base
1694 perl install_base
[PREFIX
]
1695 --with-python_prefix python setup.py prefix
[PREFIX
]
1696 --with-x use the X Window System
1697 --with-rcdir rc directory
[SYSCONFDIR
/rc.d
]
1698 --with-sysconfigdir sysconfig directory
[SYSCONFDIR
/sysconfig
]
1699 --with-logdir log directory
[LOCALSTATEDIR
/log
/pcp
]
1700 --with-rundir run directory
[LOCALSTATEDIR
/run
/pcp
]
1701 --with-tmpdir tmp directory
[LOCALSTATEDIR
/tmp
]
1702 --with-docdir docs directory
[DOCDIR
/pcp-VERSION
]
1703 --with-demosdir run directory
[DATADIR
/pcp
/demos
]
1705 Some influential environment variables
:
1706 PKG_CONFIG path to pkg-config utility
1708 directories to add to pkg-config
's search path
1710 path overriding pkg-config's built-in search path
1711 CC C compiler
command
1712 CFLAGS C compiler flags
1713 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1714 nonstandard directory
<lib dir
>
1715 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1716 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1717 you have headers
in a nonstandard directory
<include dir
>
1718 CXX C
++ compiler
command
1719 CXXFLAGS C
++ compiler flags
1720 YACC The
`Yet Another Compiler Compiler' implementation to use.
1721 Defaults to the first program found out of: `bison
-y', `byacc',
1723 YFLAGS The list of arguments that will be passed by default to $YACC.
1724 This script will default YFLAGS to the empty string to avoid a
1725 default value of `-d' given by some make applications.
1728 C compiler flags for avahi, overriding pkg-config
1729 avahi_LIBS linker flags for avahi, overriding pkg-config
1730 SYSTEMD_SYSTEMUNITDIR
1731 value of systemdsystemunitdir for systemd, overriding pkg-config
1733 C compiler flags for ncurses, overriding pkg-config
1735 linker flags for ncurses, overriding pkg-config
1737 C compiler flags for SYSTEMD, overriding pkg-config
1739 linker flags for SYSTEMD, overriding pkg-config
1740 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1741 papi_LIBS linker flags for papi, overriding pkg-config
1742 libmicrohttpd_CFLAGS
1743 C compiler flags for libmicrohttpd, overriding pkg-config
1745 linker flags for libmicrohttpd, overriding pkg-config
1747 C compiler flags for cairo, overriding pkg-config
1748 cairo_LIBS linker flags for cairo, overriding pkg-config
1749 XMKMF Path to xmkmf, Makefile generator for X Window System
1750 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1751 zlib_LIBS linker flags for zlib, overriding pkg-config
1753 Use these variables to override the choices made by `configure' or to
help
1754 it to
find libraries and programs with nonstandard names
/locations.
1756 Report bugs to the package provider.
1761 if test "$ac_init_help" = "recursive"; then
1762 # If there are subdirs, report their specific --help.
1763 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1764 test -d "$ac_dir" ||
1765 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1770 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1772 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1773 # A ".." for each directory in $ac_dir_suffix.
1774 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1775 case $ac_top_builddir_sub in
1776 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1777 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1780 ac_abs_top_builddir
=$ac_pwd
1781 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1782 # for backward compatibility:
1783 ac_top_builddir
=$ac_top_build_prefix
1786 .
) # We are building in place.
1788 ac_top_srcdir
=$ac_top_builddir_sub
1789 ac_abs_top_srcdir
=$ac_pwd ;;
1790 [\\/]* | ?
:[\\/]* ) # Absolute name.
1791 ac_srcdir
=$srcdir$ac_dir_suffix;
1792 ac_top_srcdir
=$srcdir
1793 ac_abs_top_srcdir
=$srcdir ;;
1795 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1796 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1797 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1799 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1801 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1802 # Check for guested configure.
1803 if test -f "$ac_srcdir/configure.gnu"; then
1805 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1806 elif test -f "$ac_srcdir/configure"; then
1808 $SHELL "$ac_srcdir/configure" --help=recursive
1810 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1812 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1816 test -n "$ac_init_help" && exit $ac_status
1817 if $ac_init_version; then
1820 generated by GNU Autoconf
2.69
1822 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1823 This configure
script is free software
; the Free Software Foundation
1824 gives unlimited permission to copy
, distribute and modify it.
1829 ## ------------------------ ##
1830 ## Autoconf initialization. ##
1831 ## ------------------------ ##
1833 # ac_fn_c_try_compile LINENO
1834 # --------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_compile
()
1838 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1839 rm -f conftest.
$ac_objext
1840 if { { ac_try
="$ac_compile"
1842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_compile
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1881 *) ac_try_echo
=$ac_try;;
1883 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1887 if test -s conftest.err
; then
1888 grep -v '^ *+' conftest.err
>conftest.er1
1889 cat conftest.er1
>&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest
$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 test -x conftest
$ac_exeext
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.
$ac_ext >&5
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status
$ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_cxx_try_compile LINENO
1918 # ----------------------------
1919 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_compile
()
1922 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1923 rm -f conftest.
$ac_objext
1924 if { { ac_try
="$ac_compile"
1926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_compile") 2>conftest.err
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest.$ac_objext; then :
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_cxx_try_compile
1955 # ac_fn_c_try_cpp LINENO
1956 # ----------------------
1957 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_cpp conftest.$ac_ext"
1963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1964 *) ac_try_echo
=$ac_try;;
1966 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970 if test -s conftest.err
; then
1971 grep -v '^ *+' conftest.err
>conftest.er1
1972 cat conftest.er1
>&5
1973 mv -f conftest.er1 conftest.err
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } > conftest.i
&& {
1977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1978 test ! -s conftest.err
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.
$ac_ext >&5
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status
$ac_retval
1992 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1993 # -------------------------------------------------------
1994 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1995 # the include files in INCLUDES and setting the cache variable VAR
1997 ac_fn_c_check_header_mongrel
()
1999 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2000 if eval \
${$3+:} false
; then :
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \
${$3+:} false
; then :
2004 $as_echo_n "(cached) " >&6
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2010 # Is the header compilable?
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2012 $as_echo_n "checking $2 usability... " >&6; }
2013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2018 if ac_fn_c_try_compile
"$LINENO"; then :
2019 ac_header_compiler
=yes
2021 ac_header_compiler
=no
2023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2025 $as_echo "$ac_header_compiler" >&6; }
2027 # Is the header present?
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2029 $as_echo_n "checking $2 presence... " >&6; }
2030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2034 if ac_fn_c_try_cpp
"$LINENO"; then :
2035 ac_header_preproc
=yes
2037 ac_header_preproc
=no
2039 rm -f conftest.err conftest.i conftest.
$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2041 $as_echo "$ac_header_preproc" >&6; }
2043 # So? What about this header?
2044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2047 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2053 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2055 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2057 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2059 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \
${$3+:} false
; then :
2067 $as_echo_n "(cached) " >&6
2069 eval "$3=\$ac_header_compiler"
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_header_mongrel
2079 # ac_fn_c_try_run LINENO
2080 # ----------------------
2081 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2082 # that executables *can* be run.
2085 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2086 if { { ac_try
="$ac_link"
2088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_link") 2>&5
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2097 { { case "(($ac_try" in
2098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2099 *) ac_try_echo
=$ac_try;;
2101 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 $as_echo "$ac_try_echo"; } >&5
2103 (eval "$ac_try") 2>&5
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; }; }; then :
2109 $as_echo "$as_me: program exited with status $ac_status" >&5
2110 $as_echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.
$ac_ext >&5
2113 ac_retval
=$ac_status
2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status
$ac_retval
2121 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2122 # -------------------------------------------------------
2123 # Tests whether HEADER exists and can be compiled using the include files in
2124 # INCLUDES, setting the cache variable VAR accordingly.
2125 ac_fn_c_check_header_compile
()
2127 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \
${$3+:} false
; then :
2131 $as_echo_n "(cached) " >&6
2133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2138 if ac_fn_c_try_compile
"$LINENO"; then :
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150 } # ac_fn_c_check_header_compile
2152 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2153 # -------------------------------------------
2154 # Tests whether TYPE exists after having included INCLUDES, setting cache
2155 # variable VAR accordingly.
2156 ac_fn_c_check_type
()
2158 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \
${$3+:} false
; then :
2162 $as_echo_n "(cached) " >&6
2165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2177 if ac_fn_c_try_compile
"$LINENO"; then :
2178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2190 if ac_fn_c_try_compile
"$LINENO"; then :
2195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 } # ac_fn_c_check_type
2206 # ac_fn_c_check_func LINENO FUNC VAR
2207 # ----------------------------------
2208 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2209 ac_fn_c_check_func
()
2211 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \
${$3+:} false
; then :
2215 $as_echo_n "(cached) " >&6
2217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2221 #define $2 innocuous_$2
2223 /* System header to define __stub macros and hopefully few prototypes,
2224 which can conflict with char $2 (); below.
2225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2226 <limits.h> exists even on freestanding compilers. */
2229 # include <limits.h>
2231 # include <assert.h>
2236 /* Override any GCC internal prototype to avoid an error.
2237 Use char because int might match the return type of a GCC
2238 builtin and then its argument prototype would still apply. */
2243 /* The GNU C library defines this for functions which it implements
2244 to always fail with ENOSYS. Some functions are actually named
2245 something starting with __ and the normal name is an alias. */
2246 #if defined __stub_$2 || defined __stub___$2
2258 if ac_fn_c_try_link
"$LINENO"; then :
2263 rm -f core conftest.err conftest.
$ac_objext \
2264 conftest
$ac_exeext conftest.
$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_c_check_func
2272 cat >config.log
<<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2276 It was created by $as_me, which was
2277 generated by GNU Autoconf 2.69. Invocation command line was
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2298 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2299 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2302 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2303 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2304 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir
=.
2313 $as_echo "PATH: $as_dir"
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2337 ac_must_keep_next
=false
2343 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2344 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2345 |
-silent |
--silent |
--silen |
--sile |
--sil)
2348 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2351 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2353 as_fn_append ac_configure_args1
" '$ac_arg'"
2354 if test $ac_must_keep_next = true
; then
2355 ac_must_keep_next
=false
# Got value, back to normal.
2358 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2359 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2360 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2361 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2362 case "$ac_configure_args0 " in
2363 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2366 -* ) ac_must_keep_next
=true
;;
2369 as_fn_append ac_configure_args
" '$ac_arg'"
2374 { ac_configure_args0
=; unset ac_configure_args0
;}
2375 { ac_configure_args1
=; unset ac_configure_args1
;}
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log. We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383 # Save into config.log some information that might help in debugging.
2387 $as_echo "## ---------------- ##
2388 ## Cache variables. ##
2389 ## ---------------- ##"
2391 # The following way of writing the cache mishandles newlines in values,
2393 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394 eval ac_val=\$$ac_var
2398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2402 _ | IFS | as_nl) ;; #(
2403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404 *) { eval $ac_var=; unset $ac_var;} ;;
2409 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410 *${as_nl}ac_space=\ *)
2412 "s/'\''/'\''\\\\'\'''\''/g;
2413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423 $as_echo "## ----------------- ##
2424 ## Output variables. ##
2425 ## ----------------- ##"
2427 for ac_var in $ac_subst_vars
2429 eval ac_val=\$$ac_var
2431 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 $as_echo "$ac_var='\''$ac_val'\''"
2437 if test -n "$ac_subst_files"; then
2438 $as_echo "## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##"
2442 for ac_var
in $ac_subst_files
2444 eval ac_val
=\$
$ac_var
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 $as_echo "$ac_var='\''$ac_val'\''"
2453 if test -s confdefs.h; then
2454 $as_echo "## ----------- ##
2461 test "$ac_signal" != 0 &&
2462 $as_echo "$as_me: caught signal $ac_signal"
2463 $as_echo "$as_me: exit $exit_status"
2465 rm -f core *.core core.conftest.* &&
2466 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2469 for ac_signal
in 1 2 13 15; do
2470 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2475 rm -f -r conftest
* confdefs.h
2477 $as_echo "/* confdefs.h */" > confdefs.h
2479 # Predefined preprocessor variables.
2481 cat >>confdefs.h
<<_ACEOF
2482 #define PACKAGE_NAME "$PACKAGE_NAME"
2485 cat >>confdefs.h
<<_ACEOF
2486 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2489 cat >>confdefs.h
<<_ACEOF
2490 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2493 cat >>confdefs.h
<<_ACEOF
2494 #define PACKAGE_STRING "$PACKAGE_STRING"
2497 cat >>confdefs.h
<<_ACEOF
2498 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2501 cat >>confdefs.h
<<_ACEOF
2502 #define PACKAGE_URL "$PACKAGE_URL"
2506 # Let the site file select an alternate cache file if it wants to.
2507 # Prefer an explicitly selected file to automatically selected ones.
2510 if test -n "$CONFIG_SITE"; then
2511 # We do not want a PATH search for config.site.
2512 case $CONFIG_SITE in #((
2513 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2514 */*) ac_site_file1
=$CONFIG_SITE;;
2515 *) ac_site_file1
=.
/$CONFIG_SITE;;
2517 elif test "x$prefix" != xNONE
; then
2518 ac_site_file1
=$prefix/share
/config.site
2519 ac_site_file2
=$prefix/etc
/config.site
2521 ac_site_file1
=$ac_default_prefix/share
/config.site
2522 ac_site_file2
=$ac_default_prefix/etc
/config.site
2524 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2526 test "x$ac_site_file" = xNONE
&& continue
2527 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2530 sed 's/^/| /' "$ac_site_file" >&5
2532 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 as_fn_error $?
"failed to load site script $ac_site_file
2535 See \`config.log' for more details" "$LINENO" 5; }
2539 if test -r "$cache_file"; then
2540 # Some versions of bash will fail to source /dev/null (special files
2541 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2542 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 $as_echo "$as_me: loading cache $cache_file" >&6;}
2546 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2547 *) .
"./$cache_file";;
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 $as_echo "$as_me: creating cache $cache_file" >&6;}
2556 # Check that the precious variables saved in the cache have kept the same
2558 ac_cache_corrupted
=false
2559 for ac_var
in $ac_precious_vars; do
2560 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2561 eval ac_new_set
=\
$ac_env_${ac_var}_set
2562 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2563 eval ac_new_val
=\
$ac_env_${ac_var}_value
2564 case $ac_old_set,$ac_new_set in
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568 ac_cache_corrupted
=: ;;
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572 ac_cache_corrupted
=: ;;
2575 if test "x$ac_old_val" != "x$ac_new_val"; then
2576 # differences in whitespace do not lead to failure.
2577 ac_old_val_w
=`echo x $ac_old_val`
2578 ac_new_val_w
=`echo x $ac_new_val`
2579 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582 ac_cache_corrupted
=:
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586 eval $ac_var=\
$ac_old_val
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2589 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2591 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2594 # Pass precious variables to config.status.
2595 if test "$ac_new_set" = set; then
2597 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 *) ac_arg
=$ac_var=$ac_new_val ;;
2600 case " $ac_configure_args " in
2601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2602 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2606 if $ac_cache_corrupted; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2611 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2613 ## -------------------- ##
2614 ## Main body of script. ##
2615 ## -------------------- ##
2618 ac_cpp
='$CPP $CPPFLAGS'
2619 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2629 # Check whether --with-64bit was given.
2630 if test "${with_64bit+set}" = set; then :
2631 withval
=$with_64bit; use_64bit
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-64bit=$withval"
2636 # Check whether --with-optimization was given.
2637 if test "${with_optimization+set}" = set; then :
2638 withval
=$with_optimization; use_optimization
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-optimization=$withval"
2645 # Check whether --with-threads was given.
2646 if test "${with_threads+set}" = set; then :
2647 withval
=$with_threads; do_threads
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-threads=$withval"
2654 # Check whether --with-secure-sockets was given.
2655 if test "${with_secure_sockets+set}" = set; then :
2656 withval
=$with_secure_sockets; do_secure
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2663 # Check whether --with-static-probes was given.
2664 if test "${with_static_probes+set}" = set; then :
2665 withval
=$with_static_probes; do_probes
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2672 # Check whether --with-infiniband was given.
2673 if test "${with_infiniband+set}" = set; then :
2674 withval
=$with_infiniband; do_infiniband
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2681 # Check whether --with-user was given.
2682 if test "${with_user+set}" = set; then :
2683 withval
=$with_user; pcp_user
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-user-account=$withval"
2691 # Check whether --with-group was given.
2692 if test "${with_group+set}" = set; then :
2693 withval
=$with_group; pcp_group
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-group-account=$withval"
2701 # Check whether --with-discovery was given.
2702 if test "${with_discovery+set}" = set; then :
2703 withval
=$with_discovery; do_discovery
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-discovery=$withval"
2710 # Check whether --with-systemd was given.
2711 if test "${with_systemd+set}" = set; then :
2712 withval
=$with_systemd; do_systemd
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-systemd=$withval"
2719 # Check whether --with-qt was given.
2720 if test "${with_qt+set}" = set; then :
2721 withval
=$with_qt; do_qt
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-qt=$withval"
2728 # Check whether --with-qt3d was given.
2729 if test "${with_qt3d+set}" = set; then :
2730 withval
=$with_qt3d; do_qt3d
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-qt3d=$withval"
2737 # Check whether --with-python was given.
2738 if test "${with_python+set}" = set; then :
2739 withval
=$with_python; do_python
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python=$withval"
2746 # Check whether --with-python3 was given.
2747 if test "${with_python3+set}" = set; then :
2748 withval
=$with_python3; do_python3
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python3=$withval"
2755 # Check whether --with-books was given.
2756 if test "${with_books+set}" = set; then :
2757 withval
=$with_books; do_books
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books=$withval"
2764 # Check whether --with-books-brand was given.
2765 if test "${with_books_brand+set}" = set; then :
2766 withval
=$with_books_brand; do_books_brand
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2768 do_books_brand
=common
2773 # Check whether --with-papi was given.
2774 if test "${with_papi+set}" = set; then :
2775 withval
=$with_papi; do_papi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-papi=$withval"
2782 # Check whether --with-perfevent was given.
2783 if test "${with_perfevent+set}" = set; then :
2784 withval
=$with_perfevent; do_perfevent
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2791 # Check whether --with-pmdajson was given.
2792 if test "${with_pmdajson+set}" = set; then :
2793 withval
=$with_pmdajson; do_pmdajson
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2800 # Check whether --with-pmdasnmp was given.
2801 if test "${with_pmdasnmp+set}" = set; then :
2802 withval
=$with_pmdasnmp; do_pmdasnmp
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2809 # Check whether --with-manager was given.
2810 if test "${with_manager+set}" = set; then :
2811 withval
=$with_manager; do_manager
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-manager=$withval"
2818 # Check whether --with-webapi was given.
2819 if test "${with_webapi+set}" = set; then :
2820 withval
=$with_webapi; do_webapi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webapi=$withval"
2827 # Check whether --with-webjs was given.
2828 if test "${with_webjs+set}" = set; then :
2829 withval
=$with_webjs; do_webjs
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webjs=$withval"
2836 # Check whether --with-vector was given.
2837 if test "${with_vector+set}" = set; then :
2838 withval
=$with_vector; do_vector
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-vector=$withval"
2845 # Check whether --with-parfait was given.
2846 if test "${with_parfait+set}" = set; then :
2847 withval
=$with_parfait; do_parfait
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-parfait=$withval"
2854 # Check whether --with-selinux was given.
2855 if test "${with_selinux+set}" = set; then :
2856 withval
=$with_selinux; do_selinux
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-selinux=$withval"
2863 # Check whether --with-make was given.
2864 if test "${with_make+set}" = set; then :
2865 withval
=$with_make; MAKE
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-make=$withval"
2872 # Check whether --with-tar was given.
2873 if test "${with_tar+set}" = set; then :
2874 withval
=$with_tar; TAR
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-tar=$withval"
2881 # Check whether --with-zip was given.
2882 if test "${with_zip+set}" = set; then :
2883 withval
=$with_zip; ZIP
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-zip=$withval"
2891 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2892 if test -f "$ac_dir/install-sh"; then
2894 ac_install_sh
="$ac_aux_dir/install-sh -c"
2896 elif test -f "$ac_dir/install.sh"; then
2898 ac_install_sh
="$ac_aux_dir/install.sh -c"
2900 elif test -f "$ac_dir/shtool"; then
2902 ac_install_sh
="$ac_aux_dir/shtool install -c"
2906 if test -z "$ac_aux_dir"; then
2907 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2910 # These three variables are undocumented and unsupported,
2911 # and are intended to be withdrawn in a future Autoconf release.
2912 # They can cause serious problems if a builder's source tree is in a directory
2913 # whose full name contains unusual characters.
2914 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2915 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2916 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2919 # Make sure we can run config.sub.
2920 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2921 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2924 $as_echo_n "checking build system type... " >&6; }
2925 if ${ac_cv_build+:} false
; then :
2926 $as_echo_n "(cached) " >&6
2928 ac_build_alias
=$build_alias
2929 test "x$ac_build_alias" = x
&&
2930 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2931 test "x$ac_build_alias" = x
&&
2932 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2933 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2934 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2938 $as_echo "$ac_cv_build" >&6; }
2939 case $ac_cv_build in
2941 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2944 ac_save_IFS
=$IFS; IFS
='-'
2950 # Remember, the first character of IFS is used to create $*,
2951 # except with old shells:
2954 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2958 $as_echo_n "checking host system type... " >&6; }
2959 if ${ac_cv_host+:} false
; then :
2960 $as_echo_n "(cached) " >&6
2962 if test "x$host_alias" = x
; then
2963 ac_cv_host
=$ac_cv_build
2965 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2966 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2971 $as_echo "$ac_cv_host" >&6; }
2974 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2977 ac_save_IFS
=$IFS; IFS
='-'
2983 # Remember, the first character of IFS is used to create $*,
2984 # except with old shells:
2987 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2991 $as_echo_n "checking target system type... " >&6; }
2992 if ${ac_cv_target+:} false
; then :
2993 $as_echo_n "(cached) " >&6
2995 if test "x$target_alias" = x
; then
2996 ac_cv_target
=$ac_cv_host
2998 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2999 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3004 $as_echo "$ac_cv_target" >&6; }
3005 case $ac_cv_target in
3007 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3009 target
=$ac_cv_target
3010 ac_save_IFS
=$IFS; IFS
='-'
3016 # Remember, the first character of IFS is used to create $*,
3017 # except with old shells:
3020 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3023 # The aliases save the names the user supplied, while $host etc.
3024 # will get canonicalized.
3025 test -n "$target_alias" &&
3026 test "$program_prefix$program_suffix$program_transform_name" = \
3028 program_prefix
=${target_alias}-
3030 if test -z "$target"
3033 FATAL ERROR: Cannot guess your target, try explicit specification
3034 using --target or mailto: pcp@groups.io to ask.'
3035 rm -rf conftest conftest.
*
3038 target
=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3039 target_os
=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3040 target_os
=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3042 build
=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3043 build_os
=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3044 build_os
=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3047 echo Building on
$build for $target
3048 echo "Build: os=$build_os cpu=$build_cpu"
3049 echo "Target: os=$target_os cpu=$target_cpu"
3051 if test "$cross_compiling" = "yes"; then
3052 if test -f .
/config.
$target_os; then
3053 . .
/config.
$target_os
3057 FATAL ERROR: Cannot perform cross-compilation without a file to source
3058 configuration information from (config.$target_os is missing)"
3059 rm -rf conftest conftest.
*
3066 target_distro
=$target_os
3067 if test $target_os = linux
3070 $as_echo "#define IS_LINUX 1" >>confdefs.h
3072 test -f /etc
/SuSE-release
&& target_distro
=suse
3073 test -f /etc
/fedora-release
&& target_distro
=fedora
3074 test -f /etc
/redhat-release
&& target_distro
=redhat
3075 test -f /etc
/debian_version
&& target_distro
=debian
3076 test -f /etc
/slackware-version
&& target_distro
=slackware
3077 test -f /etc
/gentoo-release
&& target_distro
=gentoo
3078 test -f /etc
/mandriva-release
&& target_distro
=mandriva
3079 test -f /etc
/arch-release
&& target_distro
=arch
3080 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3081 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3082 pcp_ps_all_flags
=-efw
3083 elif test $target_os = darwin
3086 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3088 target_distro
=macosx
3089 version
=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3090 CFLAGS
="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3091 if test $version -ge 106
3094 CFLAGS
="$CFLAGS -arch x86_64"
3097 pcp_platform_paths
='/usr/local/bin'
3098 pcp_ps_all_flags
="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3099 elif test $target_os = mingw
3102 $as_echo "#define IS_MINGW 1" >>confdefs.h
3104 CFLAGS
="-fno-strict-aliasing"
3105 pcp_platform_paths
=''
3106 pcp_ps_all_flags
=-efW
3107 elif test $target_os = solaris
3110 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3112 export CFLAGS_IF_GCC
="-fPIC -fno-strict-aliasing"
3113 export CFLAGS_IF_SUNCC
="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3114 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3115 pcp_ps_all_flags
=-ef
3116 elif test $target_os = aix
3119 $as_echo "#define IS_AIX 1" >>confdefs.h
3121 export CFLAGS
="-qcpluscmt"
3122 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3123 pcp_ps_all_flags
=-ef
3124 elif test $target_os = freebsd ||
test $target_os = kfreebsd
3127 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3129 test -f /etc
/debian_version
&& target_distro
=debian
3130 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3131 if test $target_os = kfreebsd
3133 pcp_ps_all_flags
=-efw
3135 pcp_ps_all_flags
=auxww
3137 pcp_platform_paths
='/usr/bin/X11'
3138 test -d /usr
/local
/bin
&& pcp_platform_paths
="$pcp_platform_paths:/usr/local/bin"
3139 test -d /usr
/bsd
&& pcp_platform_paths
="$pcp_platform_paths:/usr/bsd"
3140 elif test $target_os = gnu
3143 $as_echo "#define IS_GNU 1" >>confdefs.h
3145 test -f /etc
/debian_version
&& target_distro
=debian
3146 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3147 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3148 pcp_ps_all_flags
=-efw
3149 elif test $target_os = netbsdelf
3153 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3155 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3156 pcp_platform_paths
='/usr/pkg/bin'
3157 pcp_ps_all_flags
=auxww
3158 elif test $target_os = openbsd
3162 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3164 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3165 pcp_platform_paths
='/usr/local/bin'
3166 pcp_ps_all_flags
=auxww
3169 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3170 rm -rf conftest conftest.
*
3176 if test "$use_optimization" = no
3178 optimization
="-O0 -g"
3180 optimization
="-O2 -g"
3191 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3194 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
3198 $as_echo_n "(cached) " >&6
3202 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
3205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir
=.
3210 for ac_exec_ext
in '' $ac_executable_extensions; do
3211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
3224 if test -n "$PKG_CONFIG"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3226 $as_echo "$PKG_CONFIG" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3234 if test -z "$ac_cv_path_PKG_CONFIG"; then
3235 ac_pt_PKG_CONFIG
=$PKG_CONFIG
3236 # Extract the first word of "pkg-config", so it can be a program name with args.
3237 set dummy pkg-config
; ac_word
=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
3241 $as_echo_n "(cached) " >&6
3243 case $ac_pt_PKG_CONFIG in
3245 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir
=.
3253 for ac_exec_ext
in '' $ac_executable_extensions; do
3254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
3267 if test -n "$ac_pt_PKG_CONFIG"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3269 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3275 if test "x$ac_pt_PKG_CONFIG" = x
; then
3278 case $cross_compiling:$ac_tool_warned in
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3282 ac_tool_warned
=yes ;;
3284 PKG_CONFIG
=$ac_pt_PKG_CONFIG
3287 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
3291 if test -n "$PKG_CONFIG"; then
3292 _pkg_min_version
=0.9.0
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3294 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3295 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3304 if test -z "$PKG_CONFIG"; then
3305 as_fn_error $?
"cannot find a 'pkg-config' command" "$LINENO" 5
3310 ac_cpp
='$CPP $CPPFLAGS'
3311 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315 for ac_prog
in suncc egcc gcc cc
3317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3318 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false
; then :
3322 $as_echo_n "(cached) " >&6
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC
="$CC" # Let the user override the test.
3327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir
=.
3332 for ac_exec_ext
in '' $ac_executable_extensions; do
3333 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 if test -n "$CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 $as_echo "$CC" >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3354 test -n "$CC" && break
3357 if test -z "$CC"; then
3359 for ac_prog
in suncc egcc gcc cc
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy
$ac_prog; ac_word
=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3366 $as_echo_n "(cached) " >&6
3368 if test -n "$ac_ct_CC"; then
3369 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3375 test -z "$as_dir" && as_dir
=.
3376 for ac_exec_ext
in '' $ac_executable_extensions; do
3377 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_ac_ct_CC
="$ac_prog"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3389 if test -n "$ac_ct_CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3391 $as_echo "$ac_ct_CC" >&6; }
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3398 test -n "$ac_ct_CC" && break
3401 if test "x$ac_ct_CC" = x
; then
3404 case $cross_compiling:$ac_tool_warned in
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned
=yes ;;
3415 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $?
"no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details" "$LINENO" 5; }
3420 # Provide some information about the compiler.
3421 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3424 for ac_option
in --version -v -V -qversion; do
3425 { { ac_try
="$ac_compiler $ac_option >&5"
3427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3434 if test -s conftest.err; then
3436 ... rest of stderr output deleted ...
3437 10q' conftest.err >conftest.er1
3438 cat conftest.er1 >&5
3440 rm -f conftest.er1 conftest.err
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3456 ac_clean_files_save=$ac_clean_files
3457 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3458 # Try to create an executable without -o first, disregard a.out.
3459 # It will help us diagnose broken compilers, and finding out an intuition
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3462 $as_echo_n "checking whether the C compiler works... " >&6; }
3463 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3465 # The possible output files:
3466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3469 for ac_file in $ac_files
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3478 if { { ac_try="$ac_link_default"
3480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3481 *) ac_try_echo
=$ac_try;;
3483 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_link_default") 2>&5
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3492 # so that the user can short-circuit this test for compilers unknown to
3494 for ac_file
in $ac_files ''
3496 test -f "$ac_file" ||
continue
3498 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3501 # We found the default executable, but exeext='' is most
3505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3507 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 # We set ac_cv_exeext here because the later test for it is not
3510 # safe: cross compilers may not add the suffix if given an `-o'
3511 # argument, so we may need to know it at that point already.
3512 # Even if this section looks crufty: it has the advantage of
3519 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3524 if test -z "$ac_file"; then :
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 $as_echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.
$ac_ext >&5
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error
77 "C compiler cannot create executables
3533 See \`config.log' for more details" "$LINENO" 5; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3536 $as_echo "yes" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3539 $as_echo_n "checking for C compiler default output file name... " >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3541 $as_echo "$ac_file" >&6; }
3542 ac_exeext
=$ac_cv_exeext
3544 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3545 ac_clean_files
=$ac_clean_files_save
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3547 $as_echo_n "checking for suffix of executables... " >&6; }
3548 if { { ac_try
="$ac_link"
3550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_link") 2>&5
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }; then :
3559 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3560 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3561 # work properly (i.e., refer to `conftest.exe'), while it won't with
3563 for ac_file
in conftest.exe conftest conftest.
*; do
3564 test -f "$ac_file" ||
continue
3566 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3567 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3576 See \`config.log' for more details" "$LINENO" 5; }
3578 rm -f conftest conftest
$ac_cv_exeext
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3580 $as_echo "$ac_cv_exeext" >&6; }
3582 rm -f conftest.
$ac_ext
3583 EXEEXT
=$ac_cv_exeext
3585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3591 FILE *f = fopen ("conftest.out", "w");
3592 return ferror (f) || fclose (f) != 0;
3598 ac_clean_files
="$ac_clean_files conftest.out"
3599 # Check that the compiler produces executables we can run. If not, either
3600 # the compiler is broken, or we cross compile.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3602 $as_echo_n "checking whether we are cross compiling... " >&6; }
3603 if test "$cross_compiling" != yes; then
3604 { { ac_try
="$ac_link"
3606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_link") 2>&5
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }
3615 if { ac_try='./conftest$ac_cv_exeext'
3616 { { case "(($ac_try" in
3617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3618 *) ac_try_echo
=$ac_try;;
3620 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_try") 2>&5
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; }; then
3628 if test "$cross_compiling" = maybe
; then
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $?
"cannot run C compiled programs.
3634 If you meant to cross compile, use \`--host'.
3635 See \`config.log' for more details" "$LINENO" 5; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3640 $as_echo "$cross_compiling" >&6; }
3642 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3643 ac_clean_files
=$ac_clean_files_save
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645 $as_echo_n "checking for suffix of object files... " >&6; }
3646 if ${ac_cv_objext+:} false
; then :
3647 $as_echo_n "(cached) " >&6
3649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 rm -f conftest.o conftest.obj
3661 if { { ac_try
="$ac_compile"
3663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_compile") 2>&5
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 for ac_file in conftest.o conftest.obj conftest.*; do
3673 test -f "$ac_file" || continue;
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3687 See \
`config.log' for more details" "$LINENO" 5; }
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if ${ac_cv_c_compiler_gnu+:} false; then :
3698 $as_echo_n "(cached) " >&6
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3714 if ac_fn_c_try_compile "$LINENO"; then :
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725 if test $ac_compiler_gnu = yes; then
3730 ac_test_CFLAGS=${CFLAGS+set}
3731 ac_save_CFLAGS=$CFLAGS
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3734 if ${ac_cv_prog_cc_g+:} false; then :
3735 $as_echo_n "(cached) " >&6
3737 ac_save_c_werror_flag=$ac_c_werror_flag
3738 ac_c_werror_flag=yes
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3752 if ac_fn_c_try_compile "$LINENO"; then :
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3783 if ac_fn_c_try_compile "$LINENO"; then :
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794 $as_echo "$ac_cv_prog_cc_g" >&6; }
3795 if test "$ac_test_CFLAGS" = set; then
3796 CFLAGS=$ac_save_CFLAGS
3797 elif test $ac_cv_prog_cc_g = yes; then
3798 if test "$GCC" = yes; then
3804 if test "$GCC" = yes; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3812 if ${ac_cv_prog_cc_c89+:} false; then :
3813 $as_echo_n "(cached) " >&6
3815 ac_cv_prog_cc_c89=no
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3822 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3823 struct buf { int x; };
3824 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3825 static char *e (p, i)
3831 static char *f (char * (*g) (char **, int), char **p, ...)
3836 s = g (p, va_arg (v,int));
3841 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3842 function prototypes and stuff, but not '\xHH' hex character constants.
3843 These don't provoke an error unfortunately, instead are silently treated
3844 as 'x'. The following induces an error, until -std is added to get
3845 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3846 array size at least. It's necessary to write '\x00'==0 to get something
3847 that's true only with -std. */
3848 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3850 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3851 inside strings and character constants. */
3853 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3855 int test (int i, double x);
3856 struct s1 {int (*f) (int a);};
3857 struct s2 {int (*f) (double a);};
3858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3869 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3870 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3872 CC="$ac_save_CC $ac_arg"
3873 if ac_fn_c_try_compile "$LINENO"; then :
3874 ac_cv_prog_cc_c89=$ac_arg
3876 rm -f core conftest.err conftest.$ac_objext
3877 test "x$ac_cv_prog_cc_c89" != "xno" && break
3879 rm -f conftest.$ac_ext
3884 case "x$ac_cv_prog_cc_c89" in
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3887 $as_echo "none needed" >&6; } ;;
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3890 $as_echo "unsupported" >&6; } ;;
3892 CC="$CC $ac_cv_prog_cc_c89"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3894 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3896 if test "x$ac_cv_prog_cc_c89" != xno; then :
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 if test $target_os = solaris
3908 # Extract the first word of "$CC", so it can be a program name with args.
3909 set dummy $CC; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_path_CCPATH+:} false; then :
3913 $as_echo_n "(cached) " >&6
3917 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3939 CCPATH=$ac_cv_path_CCPATH
3940 if test -n "$CCPATH"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3942 $as_echo "$CCPATH" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3950 if test "$GCC" = "yes"
3952 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3954 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3956 if test "$use_64bit" = "no"
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3961 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3966 CFLAGS="$CFLAGS -m64"
3967 LDFLAGS="$LDFLAGS -m64"
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3987 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3989 CFLAGS="-O $PCFLAGS"
3993 if echo "$CFLAGS" | grep stack-protector >/dev/null
3997 # Check whether --enable-ssp was given.
3998 if test "${enable_ssp+set}" = set; then :
3999 enableval=$enable_ssp;
4003 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
4005 save_CFLAGS="$CFLAGS"
4006 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4011 if ac_fn_c_try_compile "$LINENO"; then :
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
4014 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
4015 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
4019 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
4020 CFLAGS="$save_CFLAGS"
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 # Check whether --enable-pie was given.
4031 if test "${enable_pie+set}" = set; then :
4032 enableval=$enable_pie;
4035 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4038 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4039 save_CFLAGS="$CFLAGS"
4040 save_LDFLAGS="$LDFLAGS"
4041 CFLAGS="$CFLAGS $PIECFLAGS"
4042 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4047 if ac_fn_c_try_link "$LINENO"; then :
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4050 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4055 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4060 rm -f core conftest.err conftest.$ac_objext \
4061 conftest$ac_exeext conftest.$ac_ext
4062 CFLAGS="$save_CFLAGS"
4063 LDFLAGS="$save_LDFLAGS"
4069 # Check whether --enable-visibility was given.
4070 if test "${enable_visibility+set}" = set; then :
4071 enableval=$enable_visibility;
4074 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4076 INVISIBILITY="-fvisibility=hidden"
4077 save_CFLAGS="$CFLAGS"
4078 CFLAGS="$CFLAGS -c $INVISIBILITY"
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 int visible () { return 0; }
4083 if ac_fn_c_try_compile "$LINENO"; then :
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4086 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4091 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 CFLAGS="$save_CFLAGS"
4102 ac_cpp='$CXXCPP $CPPFLAGS'
4103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4106 if test -z "$CXX"; then
4107 if test -n "$CCC"; then
4110 if test -n "$ac_tool_prefix"; then
4111 for ac_prog in eg++ g++ c++
4113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_CXX+:} false; then :
4118 $as_echo_n "(cached) " >&6
4120 if test -n "$CXX"; then
4121 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 if test -n "$CXX"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4143 $as_echo "$CXX" >&6; }
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4150 test -n "$CXX" && break
4153 if test -z "$CXX"; then
4155 for ac_prog in eg++ g++ c++
4157 # Extract the first word of "$ac_prog", so it can be a program name with args.
4158 set dummy $ac_prog; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 if test -n "$ac_ct_CXX"; then
4165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_CXX="$ac_prog"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4185 if test -n "$ac_ct_CXX"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4187 $as_echo "$ac_ct_CXX" >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4194 test -n "$ac_ct_CXX" && break
4197 if test "x$ac_ct_CXX" = x; then
4200 case $cross_compiling:$ac_tool_warned in
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4204 ac_tool_warned=yes ;;
4212 # Provide some information about the compiler.
4213 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4216 for ac_option in --version -v -V -qversion; do
4217 { { ac_try="$ac_compiler $ac_option >&5"
4219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4220 *) ac_try_echo
=$ac_try;;
4222 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4226 if test -s conftest.err
; then
4228 ... rest of stderr output deleted ...
4229 10q' conftest.err
>conftest.er1
4230 cat conftest.er1
>&5
4232 rm -f conftest.er1 conftest.err
4233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234 test $ac_status = 0; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4238 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4239 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4240 $as_echo_n "(cached) " >&6
4242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4256 if ac_fn_cxx_try_compile
"$LINENO"; then :
4261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4262 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4266 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4267 if test $ac_compiler_gnu = yes; then
4272 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4273 ac_save_CXXFLAGS
=$CXXFLAGS
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4275 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4276 if ${ac_cv_prog_cxx_g+:} false
; then :
4277 $as_echo_n "(cached) " >&6
4279 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4280 ac_cxx_werror_flag
=yes
4283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4294 if ac_fn_cxx_try_compile
"$LINENO"; then :
4295 ac_cv_prog_cxx_g
=yes
4298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4309 if ac_fn_cxx_try_compile
"$LINENO"; then :
4312 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4325 if ac_fn_cxx_try_compile
"$LINENO"; then :
4326 ac_cv_prog_cxx_g
=yes
4328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4333 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4336 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4337 if test "$ac_test_CXXFLAGS" = set; then
4338 CXXFLAGS
=$ac_save_CXXFLAGS
4339 elif test $ac_cv_prog_cxx_g = yes; then
4340 if test "$GXX" = yes; then
4346 if test "$GXX" = yes; then
4353 ac_cpp
='$CPP $CPPFLAGS'
4354 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4361 $as_echo_n "checking for working C++ compiler... " >&6; }
4363 ac_cpp
='$CXXCPP $CPPFLAGS'
4364 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4375 const char gday[] = "G'day, world\n";
4380 if ac_fn_cxx_try_compile
"$LINENO"; then :
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4382 $as_echo "yes" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4390 ac_cpp
='$CPP $CPPFLAGS'
4391 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4396 # Check whether --enable-shared was given.
4397 if test "${enable_shared+set}" = set; then :
4398 enableval
=$enable_shared; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --disable-shared=$withval"
4404 test -z "$AWK" && for ac_prog
in gawk
awk
4406 # Extract the first word of "$ac_prog", so it can be a program name with args.
4407 set dummy
$ac_prog; ac_word
=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_path_AWK+:} false
; then :
4411 $as_echo_n "(cached) " >&6
4415 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
4418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir
=.
4423 for ac_exec_ext
in '' $ac_executable_extensions; do
4424 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 if test -n "$AWK"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4439 $as_echo "$AWK" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4446 test -n "$AWK" && break
4448 test -n "$AWK" || AWK
="/usr/bin/awk"
4461 if test -z "$SED"; then
4462 # Extract the first word of "sed", so it can be a program name with args.
4463 set dummy
sed; ac_word
=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if ${ac_cv_path_SED+:} false
; then :
4467 $as_echo_n "(cached) " >&6
4471 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
4474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir
=.
4479 for ac_exec_ext
in '' $ac_executable_extensions; do
4480 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="/bin/sed"
4494 if test -n "$SED"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4496 $as_echo "$SED" >&6; }
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4504 if test ! -x "$SED"; then
4505 as_fn_error $?
"cannot find a valid 'sed' command." "$LINENO" 5
4510 if test -z "$ECHO"; then
4511 # Extract the first word of "echo", so it can be a program name with args.
4512 set dummy
echo; ac_word
=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_path_ECHO+:} false
; then :
4516 $as_echo_n "(cached) " >&6
4520 ac_cv_path_ECHO
="$ECHO" # Let the user override the test with a path.
4523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir
=.
4528 for ac_exec_ext
in '' $ac_executable_extensions; do
4529 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_path_ECHO
="$as_dir/$ac_word$ac_exec_ext"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO
="/bin/echo"
4542 ECHO
=$ac_cv_path_ECHO
4543 if test -n "$ECHO"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4545 $as_echo "$ECHO" >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4553 if test ! -x "$ECHO"; then
4554 as_fn_error $?
"cannot find a valid 'echo' command." "$LINENO" 5
4559 if test -z "$FIND"; then
4560 # Extract the first word of "find", so it can be a program name with args.
4561 set dummy
find; ac_word
=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if ${ac_cv_path_FIND+:} false
; then :
4565 $as_echo_n "(cached) " >&6
4569 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
4572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir
=.
4577 for ac_exec_ext
in '' $ac_executable_extensions; do
4578 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4579 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="/usr/bin/find"
4591 FIND
=$ac_cv_path_FIND
4592 if test -n "$FIND"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4594 $as_echo "$FIND" >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4602 if test ! -x "$FIND"; then
4603 as_fn_error $?
"cannot find a valid 'find' command." "$LINENO" 5
4608 if test -z "$WHICH"; then
4609 # Extract the first word of "which", so it can be a program name with args.
4610 set dummy
which; ac_word
=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_path_WHICH+:} false
; then :
4614 $as_echo_n "(cached) " >&6
4618 ac_cv_path_WHICH
="$WHICH" # Let the user override the test with a path.
4621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir
=.
4626 for ac_exec_ext
in '' $ac_executable_extensions; do
4627 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_path_WHICH
="$as_dir/$ac_word$ac_exec_ext"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH
="/usr/bin/which"
4640 WHICH
=$ac_cv_path_WHICH
4641 if test -n "$WHICH"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4643 $as_echo "$WHICH" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4651 if test ! -x "$WHICH"; then
4652 as_fn_error $?
"cannot find a valid 'which' command." "$LINENO" 5
4657 for ac_prog
in flex
lex
4659 # Extract the first word of "$ac_prog", so it can be a program name with args.
4660 set dummy
$ac_prog; ac_word
=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_LEX+:} false
; then :
4664 $as_echo_n "(cached) " >&6
4666 if test -n "$LEX"; then
4667 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir
=.
4674 for ac_exec_ext
in '' $ac_executable_extensions; do
4675 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_LEX
="$ac_prog"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 if test -n "$LEX"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4689 $as_echo "$LEX" >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4696 test -n "$LEX" && break
4698 test -n "$LEX" || LEX
=":"
4700 if test "x$LEX" != "x:"; then
4701 cat >conftest.l
<<_ACEOF
4707 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4708 yyless ((input () != 0)); }
4709 f { unput (yytext[0]); }
4710 . { BEGIN INITIAL; }
4712 #ifdef YYTEXT_POINTER
4713 extern char *yytext;
4718 return ! yylex () + ! yywrap ();
4721 { { ac_try
="$LEX conftest.l"
4723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727 $as_echo "$ac_try_echo"; } >&5
4728 (eval "$LEX conftest.l") 2>&5
4730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731 test $ac_status = 0; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4733 $as_echo_n "checking lex output file root... " >&6; }
4734 if ${ac_cv_prog_lex_root+:} false; then :
4735 $as_echo_n "(cached) " >&6
4738 if test -f lex.yy.c; then
4739 ac_cv_prog_lex_root=lex.yy
4740 elif test -f lexyy.c; then
4741 ac_cv_prog_lex_root=lexyy
4743 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4747 $as_echo "$ac_cv_prog_lex_root" >&6; }
4748 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4750 if test -z "${LEXLIB+set}"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4752 $as_echo_n "checking lex library... " >&6; }
4753 if ${ac_cv_lib_lex+:} false; then :
4754 $as_echo_n "(cached) " >&6
4758 ac_cv_lib_lex='none needed'
4759 for ac_lib in '' -lfl -ll; do
4760 LIBS="$ac_lib $ac_save_LIBS"
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 `cat $LEX_OUTPUT_ROOT.c
`
4765 if ac_fn_c_try_link "$LINENO"; then :
4766 ac_cv_lib_lex=$ac_lib
4768 rm -f core conftest.err conftest.$ac_objext \
4769 conftest$ac_exeext conftest.$ac_ext
4770 test "$ac_cv_lib_lex" != 'none needed' && break
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4776 $as_echo "$ac_cv_lib_lex" >&6; }
4777 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4782 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4783 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 # POSIX says lex can declare yytext either as a pointer or an array; the
4787 # default is implementation-dependent. Figure out which it is, since
4788 # not all implementations provide the %pointer and %array declarations.
4789 ac_cv_prog_lex_yytext_pointer=no
4791 LIBS="$LEXLIB $ac_save_LIBS"
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4795 #define YYTEXT_POINTER 1
4796 `cat $LEX_OUTPUT_ROOT.c
`
4798 if ac_fn_c_try_link "$LINENO"; then :
4799 ac_cv_prog_lex_yytext_pointer=yes
4801 rm -f core conftest.err conftest.$ac_objext \
4802 conftest$ac_exeext conftest.$ac_ext
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4807 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4808 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4810 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4813 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4816 lex=`$echo $LEX |
awk '{print $1}'`
4818 if test ! -x "$lex"; then
4819 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4824 for ac_prog in 'bison -y' byacc
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_YACC+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -n "$YACC"; then
4834 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_YACC="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 YACC=$ac_cv_prog_YACC
4854 if test -n "$YACC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4856 $as_echo "$YACC" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 test -n "$YACC" && break
4865 test -n "$YACC" || YACC="yacc"
4867 yacc=`$echo $YACC |
awk '{print $1}'`
4868 yacc=`$which "$yacc"`
4869 if test ! -x "$yacc"; then
4870 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4876 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4877 if test $target_os = mingw; then
4878 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4880 if test -x $d/sort; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4889 $as_echo "$sort" >&6; }
4894 echo "FATAL ERROR: $sort -n failed!"
4895 rm -rf conftest conftest.*
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4901 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4902 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4904 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4908 $as_echo "neither?" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4912 $as_echo " -n" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4917 $as_echo "backslash-c" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4923 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4924 if ${ac_cv_path_GREP+:} false; then :
4925 $as_echo_n "(cached) " >&6
4927 if test -z "$GREP"; then
4928 ac_path_GREP_found=false
4929 # Loop through the user's path and test for each of PROGNAME-LIST
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4934 test -z "$as_dir" && as_dir=.
4935 for ac_prog in grep ggrep; do
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4938 as_fn_executable_p "$ac_path_GREP" || continue
4939 # Check for GNU ac_path_GREP and select it if it is found.
4940 # Check for GNU $ac_path_GREP
4941 case `"$ac_path_GREP" --version 2>&1` in
4943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4946 $as_echo_n 0123456789 >"conftest.in"
4949 cat "conftest.in" "conftest.in" >"conftest.tmp"
4950 mv "conftest.tmp" "conftest.in"
4951 cp "conftest.in" "conftest.nl"
4952 $as_echo 'GREP' >> "conftest.nl"
4953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4955 as_fn_arith $ac_count + 1 && ac_count=$as_val
4956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4957 # Best one so far, save it but keep looking for a better one
4958 ac_cv_path_GREP="$ac_path_GREP"
4959 ac_path_GREP_max=$ac_count
4961 # 10*(2^10) chars as input seems more than enough
4962 test $ac_count -gt 10 && break
4964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4967 $ac_path_GREP_found && break 3
4972 if test -z "$ac_cv_path_GREP"; then
4973 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4976 ac_cv_path_GREP=$GREP
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4981 $as_echo "$ac_cv_path_GREP" >&6; }
4982 GREP="$ac_cv_path_GREP"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4986 $as_echo_n "checking for egrep... " >&6; }
4987 if ${ac_cv_path_EGREP+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4991 then ac_cv_path_EGREP="$GREP -E"
4993 if test -z "$EGREP"; then
4994 ac_path_EGREP_found=false
4995 # Loop through the user's path and test for each of PROGNAME-LIST
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5000 test -z "$as_dir" && as_dir=.
5001 for ac_prog in egrep; do
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5004 as_fn_executable_p "$ac_path_EGREP" || continue
5005 # Check for GNU ac_path_EGREP and select it if it is found.
5006 # Check for GNU $ac_path_EGREP
5007 case `"$ac_path_EGREP" --version 2>&1` in
5009 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5012 $as_echo_n 0123456789 >"conftest.in"
5015 cat "conftest.in" "conftest.in" >"conftest.tmp"
5016 mv "conftest.tmp" "conftest.in"
5017 cp "conftest.in" "conftest.nl"
5018 $as_echo 'EGREP' >> "conftest.nl"
5019 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5021 as_fn_arith $ac_count + 1 && ac_count=$as_val
5022 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5023 # Best one so far, save it but keep looking for a better one
5024 ac_cv_path_EGREP="$ac_path_EGREP"
5025 ac_path_EGREP_max=$ac_count
5027 # 10*(2^10) chars as input seems more than enough
5028 test $ac_count -gt 10 && break
5030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 $ac_path_EGREP_found && break 3
5038 if test -z "$ac_cv_path_EGREP"; then
5039 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5042 ac_cv_path_EGREP=$EGREP
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5048 $as_echo "$ac_cv_path_EGREP" >&6; }
5049 EGREP="$ac_cv_path_EGREP"
5053 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5056 for ac_prog in dtrace
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_DTRACE+:} false; then :
5063 $as_echo_n "(cached) " >&6
5065 if test -n "$DTRACE"; then
5066 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_DTRACE="$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 DTRACE=$ac_cv_prog_DTRACE
5086 if test -n "$DTRACE"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5088 $as_echo "$DTRACE" >&6; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 test -n "$DTRACE" && break
5098 if test -z "$DTRACE"
5100 if test "$do_probes" = "yes"
5102 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5112 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5113 # On Suns, sometimes $CPP names a directory.
5114 if test -n "$CPP" && test -d "$CPP"; then
5117 if test -z "$CPP"; then
5118 if ${ac_cv_prog_CPP+:} false; then :
5119 $as_echo_n "(cached) " >&6
5121 # Double quotes because CPP needs to be expanded
5122 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5125 for ac_c_preproc_warn_flag in '' yes
5127 # Use a header file that comes with gcc, so configuring glibc
5128 # with a fresh cross-compiler works.
5129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130 # <limits.h> exists even on freestanding compilers.
5131 # On the NeXT, cc -E runs the code through the compiler's parser,
5132 # not just through cpp. "Syntax error" is here to catch this case.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5136 # include <limits.h>
5138 # include <assert.h>
5142 if ac_fn_c_try_cpp "$LINENO"; then :
5145 # Broken: fails on valid input.
5148 rm -f conftest.err conftest.i conftest.$ac_ext
5150 # OK, works on sane cases. Now check whether nonexistent headers
5151 # can be detected and how.
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 #include <ac_nonexistent.h>
5156 if ac_fn_c_try_cpp "$LINENO"; then :
5157 # Broken: success on invalid input.
5160 # Passes both tests.
5164 rm -f conftest.err conftest.i conftest.$ac_ext
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.i conftest.err conftest.
$ac_ext
5169 if $ac_preproc_ok; then :
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5182 $as_echo "$CPP" >&6; }
5184 for ac_c_preproc_warn_flag
in '' yes
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5195 # include <limits.h>
5197 # include <assert.h>
5201 if ac_fn_c_try_cpp
"$LINENO"; then :
5204 # Broken: fails on valid input.
5207 rm -f conftest.err conftest.i conftest.
$ac_ext
5209 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how.
5211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <ac_nonexistent.h>
5215 if ac_fn_c_try_cpp
"$LINENO"; then :
5216 # Broken: success on invalid input.
5219 # Passes both tests.
5223 rm -f conftest.err conftest.i conftest.
$ac_ext
5226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227 rm -f conftest.i conftest.err conftest.
$ac_ext
5228 if $ac_preproc_ok; then :
5231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5233 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5234 See \`config.log' for more details" "$LINENO" 5; }
5238 ac_cpp
='$CPP $CPPFLAGS'
5239 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5245 $as_echo_n "checking for ANSI C header files... " >&6; }
5246 if ${ac_cv_header_stdc+:} false
; then :
5247 $as_echo_n "(cached) " >&6
5249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5264 if ac_fn_c_try_compile
"$LINENO"; then :
5265 ac_cv_header_stdc
=yes
5267 ac_cv_header_stdc
=no
5269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5271 if test $ac_cv_header_stdc = yes; then
5272 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "memchr" >/dev
/null
2>&1; then :
5282 ac_cv_header_stdc
=no
5288 if test $ac_cv_header_stdc = yes; then
5289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 $EGREP "free" >/dev
/null
2>&1; then :
5299 ac_cv_header_stdc
=no
5305 if test $ac_cv_header_stdc = yes; then
5306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5307 if test "$cross_compiling" = yes; then :
5310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5314 #if ((' ' & 0x0FF) == 0x020)
5315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5318 # define ISLOWER(c) \
5319 (('a' <= (c) && (c) <= 'i') \
5320 || ('j' <= (c) && (c) <= 'r') \
5321 || ('s' <= (c) && (c) <= 'z'))
5322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5330 for (i = 0; i < 256; i++)
5331 if (XOR (islower (i), ISLOWER (i))
5332 || toupper (i) != TOUPPER (i))
5337 if ac_fn_c_try_run
"$LINENO"; then :
5340 ac_cv_header_stdc
=no
5342 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5343 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5349 $as_echo "$ac_cv_header_stdc" >&6; }
5350 if test $ac_cv_header_stdc = yes; then
5352 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5357 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5358 inttypes.h stdint.h unistd.h
5360 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5361 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5363 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5364 cat >>confdefs.h
<<_ACEOF
5365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5373 for ac_header
in sys
/sdt.h
5375 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5376 if test "x$ac_cv_header_sys_sdt_h" = xyes
; then :
5377 cat >>confdefs.h
<<_ACEOF
5378 #define HAVE_SYS_SDT_H 1
5381 if $enable_probes = true
5383 if test $target_os = kfreebsd
5386 elif test $target_os = freebsd
5388 rm -f conftest.d conftest.h
5389 cat <<End-of-File >conftest.d
5394 if dtrace
-s conftest.d
-h >/dev
/null
2>&1
5396 if test ! -f conftest.h
5399 if test "$do_probes" = "yes"
5401 as_fn_error $?
"cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5406 if test "$do_probes" = "yes"
5408 as_fn_error $?
"cannot enable static probes - dtrace failed" "$LINENO" 5
5417 if test "$do_probes" = "yes"
5419 as_fn_error $?
"cannot enable static probes - no SDT header" "$LINENO" 5
5427 if test "$enable_probes" = "true"
5430 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5437 if test "x$do_discovery" != "xno"; then :
5439 # on Mac OS X, dns_sd.h
5441 # on Linux, aloha Avahi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5446 $as_echo_n "checking for avahi... " >&6; }
5448 if test -n "$avahi_CFLAGS"; then
5449 pkg_cv_avahi_CFLAGS
="$avahi_CFLAGS"
5450 elif test -n "$PKG_CONFIG"; then
5451 if test -n "$PKG_CONFIG" && \
5452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5453 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5456 test $ac_status = 0; }; then
5457 pkg_cv_avahi_CFLAGS
=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5458 test "x$?" != "x0" && pkg_failed
=yes
5465 if test -n "$avahi_LIBS"; then
5466 pkg_cv_avahi_LIBS
="$avahi_LIBS"
5467 elif test -n "$PKG_CONFIG"; then
5468 if test -n "$PKG_CONFIG" && \
5469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5470 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }; then
5474 pkg_cv_avahi_LIBS
=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5475 test "x$?" != "x0" && pkg_failed
=yes
5485 if test $pkg_failed = yes; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5490 _pkg_short_errors_supported
=yes
5492 _pkg_short_errors_supported
=no
5494 if test $_pkg_short_errors_supported = yes; then
5495 avahi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5497 avahi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5499 # Put the nasty error message in config.log where it belongs
5500 echo "$avahi_PKG_ERRORS" >&5
5503 elif test $pkg_failed = untried
; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5508 avahi_CFLAGS
=$pkg_cv_avahi_CFLAGS
5509 avahi_LIBS
=$pkg_cv_avahi_LIBS
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 $as_echo "yes" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5513 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5514 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false
; then :
5515 $as_echo_n "(cached) " >&6
5517 ac_check_lib_save_LIBS
=$LIBS
5518 LIBS
="-lavahi-client $LIBS"
5519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 /* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
5528 char avahi_client_new ();
5532 return avahi_client_new ();
5537 if ac_fn_c_try_link
"$LINENO"; then :
5538 ac_cv_lib_avahi_client_avahi_client_new
=yes
5540 ac_cv_lib_avahi_client_avahi_client_new
=no
5542 rm -f core conftest.err conftest.
$ac_objext \
5543 conftest
$ac_exeext conftest.
$ac_ext
5544 LIBS
=$ac_check_lib_save_LIBS
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5547 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5548 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes
; then :
5549 lib_for_avahi
="-lavahi-common -lavahi-client"
5556 for ac_header
in avahi-client
/publish.h
5558 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5559 if test "x$ac_cv_header_avahi_client_publish_h" = xyes
; then :
5560 cat >>confdefs.h
<<_ACEOF
5561 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5570 for ac_header
in avahi-common
/alternative.h
5572 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5573 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes
; then :
5574 cat >>confdefs.h
<<_ACEOF
5575 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5585 if test "$enable_avahi" = "true"
5590 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5592 enable_discovery
=true
5595 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5597 as_fn_error $?
"cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5599 if test "$enable_discovery" = "true"
5602 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5610 enable_systemd
=false
5611 if test "x$do_systemd" != "xno"; then :
5616 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5617 pkg_cv_SYSTEMD_SYSTEMUNITDIR
="$SYSTEMD_SYSTEMUNITDIR"
5618 elif test -n "$PKG_CONFIG"; then
5619 if test -n "$PKG_CONFIG" && \
5620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5621 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5624 test $ac_status = 0; }; then
5625 pkg_cv_SYSTEMD_SYSTEMUNITDIR
=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5626 test "x$?" != "x0" && pkg_failed
=yes
5633 SYSTEMD_SYSTEMUNITDIR
=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5635 if test "x$SYSTEMD_SYSTEMUNITDIR" = x
""; then :
5636 enable_systemd
=false
5638 pcp_systemdunit_dir
=$SYSTEMD_SYSTEMUNITDIR
5641 if test -z "$pcp_systemdunit_dir"
5643 if test "$do_systemd" = "yes"
5645 as_fn_error $?
"cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5647 enable_systemd
=false
5655 PACKAGE_VERSION
=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5662 if test -z "$PACKAGE_BUILD_DATE" ; then
5663 PACKAGE_BUILD_DATE
=`date +%Y-%m-%d`
5667 if test -z "$PACKAGE_DISTRIBUTION" ; then
5668 PACKAGE_DISTRIBUTION
=$target_distro
5672 pm_version_current
=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5675 ac_config_headers
="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5677 ac_config_files
="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5679 cat >confcache
<<\_ACEOF
5680 # This file is a shell script that caches the results of configure
5681 # tests run on this system so they can be shared between configure
5682 # scripts and configure runs, see configure's option --config-cache.
5683 # It is not useful on other systems. If it contains results you don't
5684 # want to keep, you may remove or edit it.
5686 # config.status only pays attention to the cache file if you give it
5687 # the --recheck option to rerun configure.
5689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5695 # The following way of writing the cache mishandles newlines in values,
5696 # but we know of no workaround that is simple, portable, and efficient.
5697 # So, we kill variables containing newlines.
5698 # Ultrix sh set writes to stderr and can't be redirected directly,
5699 # and sets the high bit in the cache file unless we assign to the vars.
5701 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5702 eval ac_val
=\$
$ac_var
5706 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5710 _ | IFS | as_nl
) ;; #(
5711 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5712 *) { eval $ac_var=; unset $ac_var;} ;;
5718 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5719 *${as_nl}ac_space
=\
*)
5720 # `set' does not quote correctly, so add quotes: double-quote
5721 # substitution turns \\\\ into \\, and sed turns \\ into \.
5724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5727 # `set' quotes correctly as required by POSIX, so do not add quotes.
5728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5741 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5742 if test -w "$cache_file"; then
5743 if test "x$cache_file" != "x/dev/null"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5745 $as_echo "$as_me: updating cache $cache_file" >&6;}
5746 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5747 cat confcache
>"$cache_file"
5749 case $cache_file in #(
5751 mv -f confcache
"$cache_file"$$
&&
5752 mv -f "$cache_file"$$
"$cache_file" ;; #(
5754 mv -f confcache
"$cache_file" ;;
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5765 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5766 # Let make expand exec_prefix.
5767 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5769 DEFS
=-DHAVE_CONFIG_H
5774 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5775 # 1. Remove the extension, and $U if already installed.
5776 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5777 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5779 # will be set to the directory where LIBOBJS objects are built.
5780 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5781 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5785 LTLIBOBJS
=$ac_ltlibobjs
5789 : "${CONFIG_STATUS=./config.status}"
5791 ac_clean_files_save
=$ac_clean_files
5792 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5798 # Generated by $as_me.
5799 # Run this file to recreate the current configuration.
5800 # Compiler output produced by configure, useful for debugging
5801 # configure, is in config.log if it exists.
5807 SHELL=\${CONFIG_SHELL-$SHELL}
5810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5811 ## -------------------- ##
5812 ## M4sh Initialization. ##
5813 ## -------------------- ##
5815 # Be more Bourne compatible
5816 DUALCASE
=1; export DUALCASE
# for MKS sh
5817 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5821 # is contrary to our usage. Disable this feature.
5822 alias -g '${1+"$@"}'='"$@"'
5823 setopt NO_GLOB_SUBST
5825 case `(set -o) 2>/dev/null` in #(
5837 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5838 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5841 # Prefer a ksh shell builtin over an external printf program on Solaris,
5842 # but without wasting forks for bash or zsh.
5843 if test -z "$BASH_VERSION$ZSH_VERSION" \
5844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5845 as_echo='print
-r --'
5846 as_echo_n='print
-rn --'
5847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5848 as_echo='printf %s
\n'
5849 as_echo_n='printf %s
'
5851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5852 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5853 as_echo_n='/usr
/ucb
/echo -n'
5855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5856 as_echo_n_body='eval
5860 expr "X$arg" : "X\\(.*\\)$as_nl";
5861 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5863 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5865 export as_echo_n_body
5866 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5869 as_echo='sh
-c $as_echo_body as_echo
'
5872 # The user is always right.
5873 if test "${PATH_SEPARATOR+set}" != set; then
5875 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5876 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5883 # We need space, tab and new line, in precisely that order. Quoting is
5884 # there to prevent editors from complaining about space-tab.
5885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5886 # splitting by setting IFS to empty value.)
5889 # Find who we are. Look in the path if we contain no directory separator.
5892 *[\\/]* ) as_myself=$0 ;;
5893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5904 # We did not find ourselves, most probably we were run as `sh COMMAND'
5905 # in which case we are not to be found in the path.
5906 if test "x$as_myself" = x
; then
5909 if test ! -f "$as_myself"; then
5910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5914 # Unset variables that we do not need and which cause bugs (e.g. in
5915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5916 # suppresses any "Segmentation fault" message there. '((' could
5917 # trigger a bug in pdksh 5.2.14.
5918 for as_var
in BASH_ENV ENV MAIL MAILPATH
5919 do eval test x\
${$as_var+set} = xset \
5920 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5933 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5936 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5937 # ----------------------------------------
5938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5940 # script with STATUS, using 1 if that was 0.
5943 as_status
=$1; test $as_status -eq 0 && as_status
=1
5945 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5948 $as_echo "$as_me: error: $2" >&2
5949 as_fn_exit
$as_status
5953 # as_fn_set_status STATUS
5954 # -----------------------
5955 # Set $? to STATUS, without forking.
5959 } # as_fn_set_status
5963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5973 # Portably unset VAR.
5976 { eval $1=; unset $1;}
5978 as_unset
=as_fn_unset
5979 # as_fn_append VAR VALUE
5980 # ----------------------
5981 # Append the text in VALUE to the end of the definition contained in VAR. Take
5982 # advantage of any shell optimizations that allow amortized linear growth over
5983 # repeated appends, instead of the typical quadratic growth present in naive
5985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5986 eval 'as_fn_append ()
5997 # as_fn_arith ARG...
5998 # ------------------
5999 # Perform arithmetic evaluation on the ARGs, and store the result in the
6000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6001 # must be portable across $(()) and expr.
6002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6003 eval 'as_fn_arith ()
6010 as_val
=`expr "$@" || test $? -eq 1`
6015 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6016 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6022 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6023 as_basename
=basename
6028 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6034 as_me
=`$as_basename -- "$0" ||
6035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6036 X"$0" : 'X\(//\)$' \| \
6037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6039 sed '/^.*\/\([^/][^/]*\)\/*$/{
6053 # Avoid depending upon Character Ranges.
6054 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6055 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6056 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6057 as_cr_digits
='0123456789'
6058 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6060 ECHO_C
= ECHO_N
= ECHO_T
=
6061 case `echo -n x` in #(((((
6063 case `echo 'xy\c'` in
6064 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6066 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6073 rm -f conf$$ conf$$.exe conf$$.
file
6074 if test -d conf$$.dir
; then
6075 rm -f conf$$.dir
/conf$$.
file
6078 mkdir conf$$.dir
2>/dev
/null
6080 if (echo >conf$$.
file) 2>/dev
/null
; then
6081 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6083 # ... but there are two gotchas:
6084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6086 # In both cases, we have to default to `cp -pR'.
6087 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6089 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6097 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6098 rmdir conf$$.dir
2>/dev
/null
6103 # Create "$as_dir" as a directory, including parents if necessary.
6108 -*) as_dir
=.
/$as_dir;;
6110 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6114 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6115 *) as_qdir
=$as_dir;;
6117 as_dirs
="'$as_qdir' $as_dirs"
6118 as_dir
=`$as_dirname -- "$as_dir" ||
6119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6120 X"$as_dir" : 'X\(//\)[^/]' \| \
6121 X"$as_dir" : 'X\(//\)$' \| \
6122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6123 $as_echo X"$as_dir" |
6124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6141 test -d "$as_dir" && break
6143 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6144 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6148 if mkdir
-p .
2>/dev
/null
; then
6149 as_mkdir_p
='mkdir -p "$as_dir"'
6151 test -d .
/-p && rmdir .
/-p
6156 # as_fn_executable_p FILE
6157 # -----------------------
6158 # Test if FILE is an executable regular file.
6159 as_fn_executable_p
()
6161 test -f "$1" && test -x "$1"
6162 } # as_fn_executable_p
6164 as_executable_p
=as_fn_executable_p
6166 # Sed expression to map a string onto a valid CPP name.
6167 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6169 # Sed expression to map a string onto a valid variable name.
6170 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6174 ## ----------------------------------- ##
6175 ## Main body of $CONFIG_STATUS script. ##
6176 ## ----------------------------------- ##
6178 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6181 # Save the log message, to keep $0 and so on meaningful, and to
6182 # report actual input values of CONFIG_FILES etc. instead of their
6183 # values after options handling.
6185 This file was extended by $as_me, which was
6186 generated by GNU Autoconf 2.69. Invocation command line was
6188 CONFIG_FILES = $CONFIG_FILES
6189 CONFIG_HEADERS = $CONFIG_HEADERS
6190 CONFIG_LINKS = $CONFIG_LINKS
6191 CONFIG_COMMANDS = $CONFIG_COMMANDS
6194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6199 case $ac_config_files in *"
6200 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6203 case $ac_config_headers in *"
6204 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6209 # Files that config.status was made for.
6210 config_files="$ac_config_files"
6211 config_headers="$ac_config_headers"
6215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6217 \`$as_me' instantiates files and other configuration actions
6218 from templates according to the current configuration. Unless the files
6219 and actions are specified as TAGs, all are instantiated by default.
6221 Usage: $0 [OPTION]... [TAG]...
6223 -h, --help print this help, then exit
6224 -V, --version print version number and configuration settings, then exit
6225 --config print configuration, then exit
6226 -q, --quiet, --silent
6227 do not print progress messages
6228 -d, --debug don't remove temporary files
6229 --recheck update $as_me by reconfiguring in the same conditions
6230 --file=FILE[:TEMPLATE]
6231 instantiate the configuration file FILE
6232 --header=FILE[:TEMPLATE]
6233 instantiate the configuration header FILE
6235 Configuration files:
6238 Configuration headers:
6241 Report bugs to the package provider."
6244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6245 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6248 configured by $0, generated by GNU Autoconf 2.69,
6249 with options \\"\$ac_cs_config\\"
6251 Copyright (C) 2012 Free Software Foundation, Inc.
6252 This config.status script is free software; the Free Software Foundation
6253 gives unlimited permission to copy, distribute and modify it."
6257 test -n "\$AWK" || AWK=awk
6260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6261 # The default lists apply if the user does not specify any file.
6267 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6268 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6272 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6284 # Handling of the options.
6285 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6287 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6288 $as_echo "$ac_cs_version"; exit ;;
6289 --config |
--confi |
--conf |
--con |
--co |
--c )
6290 $as_echo "$ac_cs_config"; exit ;;
6291 --debug |
--debu |
--deb |
--de |
--d |
-d )
6293 --file |
--fil |
--fi |
--f )
6296 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6297 '') as_fn_error $?
"missing file argument" ;;
6299 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6300 ac_need_defaults
=false
;;
6301 --header |
--heade |
--head |
--hea )
6304 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6306 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6307 ac_need_defaults
=false
;;
6309 # Conflict between --help and --header
6310 as_fn_error $?
"ambiguous option: \`$1'
6311 Try \`$0 --help' for more information.";;
6312 --help |
--hel |
-h )
6313 $as_echo "$ac_cs_usage"; exit ;;
6314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6315 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6319 -*) as_fn_error $?
"unrecognized option: \`$1'
6320 Try \`$0 --help' for more information." ;;
6322 *) as_fn_append ac_config_targets
" $1"
6323 ac_need_defaults
=false
;;
6329 ac_configure_extra_args
=
6331 if $ac_cs_silent; then
6333 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6338 if \$ac_cs_recheck; then
6339 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6341 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6342 CONFIG_SHELL='$SHELL'
6348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6353 ## Running $as_me. ##
6359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6364 # Handling of arguments.
6365 for ac_config_target
in $ac_config_targets
6367 case $ac_config_target in
6368 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6369 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6370 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6371 "src/include/pcp/platformsz.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6373 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6378 # If the user did not use the arguments to specify the items to instantiate,
6379 # then the envvar interface is used. Set only those that are not.
6380 # We use the long form for the default assignment because of an extremely
6381 # bizarre bug on SunOS 4.1.3.
6382 if $ac_need_defaults; then
6383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6384 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6387 # Have a temporary directory for convenience. Make it in the build tree
6388 # simply because there is no reason against having it here, and in addition,
6389 # creating and moving files from /tmp can sometimes cause problems.
6390 # Hook for its removal unless debugging.
6391 # Note that there is a small window in which the directory will not be cleaned:
6392 # after its creation but before its name has been assigned to `$tmp'.
6396 trap 'exit_status=$?
6398 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6400 trap 'as_fn_exit 1' 1 2 13 15
6402 # Create a (secure) tmp directory for tmp files.
6405 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6409 tmp
=.
/conf$$
-$RANDOM
6410 (umask 077 && mkdir
"$tmp")
6411 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
6414 # Set up the scripts for CONFIG_FILES section.
6415 # No need to generate them if there are no CONFIG_FILES.
6416 # This happens for instance with `./config.status config.h'.
6417 if test -n "$CONFIG_FILES"; then
6420 ac_cr
=`echo X | tr X '\015'`
6421 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6422 # But we know of no other shell where ac_cr would be empty at this
6423 # point, so we can use a bashism as a fallback.
6424 if test "x$ac_cr" = x
; then
6425 eval ac_cr
=\$
\'\\r
\'
6427 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6428 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6434 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6439 echo "cat >conf$$subs.awk <<_ACEOF" &&
6440 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6443 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6444 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6446 for ac_last_try in false false false false false :; do
6447 . ./conf$$subs.sh ||
6448 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6450 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6451 if test $ac_delim_n = $ac_delim_num; then
6453 elif $ac_last_try; then
6454 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6456 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6462 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
6466 s/^/S["/; s
/!.
*/"]=/
6476 s/\(.\{148\}\)..*/\1/
6478 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6483 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6490 s/\(.\{148\}\)..*/\1/
6492 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6496 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6501 ' <conf$$subs.awk | sed '
6506 ' >>$CONFIG_STATUS || ac_write_fail=1
6507 rm -f conf$$subs.awk
6508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6510 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6511 for (key in S) S_is_set[key] = 1
6517 nfields = split(line, field, "@
")
6519 len = length(field[1])
6520 for (i = 2; i < nfields; i++) {
6522 keylen = length(key)
6523 if (S_is_set[key]) {
6525 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6526 len += length(value) + length(field[++i])
6537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6538 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6539 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6542 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6543 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
6546 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6547 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
6548 # trailing colons and then remove the whole line if VPATH becomes empty
6549 # (actually we leave an empty line to preserve line numbers).
6550 if test "x
$srcdir" = x.; then
6551 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6570 fi # test -n "$CONFIG_FILES"
6572 # Set up the scripts for CONFIG_HEADERS section.
6573 # No need to generate them if there are no CONFIG_HEADERS.
6574 # This happens for instance with `./config.status Makefile'.
6575 if test -n "$CONFIG_HEADERS"; then
6576 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
6580 # Transform confdefs.h into an awk script `defines.awk', embedded as
6581 # here-document in config.status, that substitutes the proper values into
6582 # config.h.in to produce config.h.
6584 # Create a delimiter string that does not exist in confdefs.h, to ease
6585 # handling of long lines.
6587 for ac_last_try in false false :; do
6588 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
6589 if test -z "$ac_tt"; then
6591 elif $ac_last_try; then
6592 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6594 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6598 # For the awk script, D is an array of macro values keyed by name,
6599 # likewise P contains macro parameters if any. Preserve backslash
6600 # newline sequences.
6602 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6604 s/.\{148\}/&'"$ac_delim"'/g
6607 s/^[ ]*#[ ]*define[ ][ ]*/ /
6614 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6616 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6620 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6621 D["\
1"]=" \
3\\\\\\n
"\\/p
6623 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6628 s/.\{148\}/&'"$ac_delim"'/g
6633 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6636 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6638 ' <confdefs.h | sed '
6639 s/'"$ac_delim"'/"\\\
6640 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6643 for (key in D) D_is_set[key] = 1
6646 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6648 split(line, arg, " ")
6649 if (arg[1] == "#") {
6653 defundef
= substr
(arg
[1], 2)
6656 split(mac1
, mac2
, "(") #)
6658 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6659 if (D_is_set
[macro
]) {
6660 # Preserve the white space surrounding the "#".
6661 print prefix
"define", macro P
[macro
] D
[macro
]
6664 # Replace #undef with comments. This is necessary, for example,
6665 # in the case of _POSIX_SOURCE, which is predefined and required
6666 # on some systems where configure will not decide to define it.
6667 if (defundef
== "undef") {
6668 print
"/*", prefix defundef
, macro
, "*/"
6676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6677 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6678 fi # test -n "$CONFIG_HEADERS"
6681 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
6686 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6688 case $ac_mode$ac_tag in
6690 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6691 :[FH
]-) ac_tag
=-:-;;
6692 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6709 -) ac_f
="$ac_tmp/stdin";;
6710 *) # Look for the file first in the build tree, then in the source tree
6711 # (if the path is not absolute). The absolute path cannot be DOS-style,
6712 # because $ac_f cannot contain `:'.
6716 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6718 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6720 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6721 as_fn_append ac_file_inputs
" '$ac_f'"
6724 # Let's still pretend it is `configure' which instantiates (i.e., don't
6725 # use $as_me), people would be surprised to read:
6726 # /* config.h. Generated by config.status. */
6727 configure_input
='Generated from '`
6728 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6730 if test x
"$ac_file" != x-
; then
6731 configure_input
="$ac_file. $configure_input"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6733 $as_echo "$as_me: creating $ac_file" >&6;}
6735 # Neutralize special characters interpreted by sed in replacement strings.
6736 case $configure_input in #(
6737 *\
&* |
*\|
* |
*\\* )
6738 ac_sed_conf_input
=`$as_echo "$configure_input" |
6739 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6740 *) ac_sed_conf_input
=$configure_input;;
6744 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6745 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6750 ac_dir
=`$as_dirname -- "$ac_file" ||
6751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6752 X"$ac_file" : 'X\(//\)[^/]' \| \
6753 X"$ac_file" : 'X\(//\)$' \| \
6754 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6755 $as_echo X"$ac_file" |
6756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6773 as_dir
="$ac_dir"; as_fn_mkdir_p
6777 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6779 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6780 # A ".." for each directory in $ac_dir_suffix.
6781 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6782 case $ac_top_builddir_sub in
6783 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6784 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6787 ac_abs_top_builddir
=$ac_pwd
6788 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6789 # for backward compatibility:
6790 ac_top_builddir
=$ac_top_build_prefix
6793 .
) # We are building in place.
6795 ac_top_srcdir
=$ac_top_builddir_sub
6796 ac_abs_top_srcdir
=$ac_pwd ;;
6797 [\\/]* | ?
:[\\/]* ) # Absolute name.
6798 ac_srcdir
=$srcdir$ac_dir_suffix;
6799 ac_top_srcdir
=$srcdir
6800 ac_abs_top_srcdir
=$srcdir ;;
6802 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6803 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6804 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6806 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6818 # If the template does not know about datarootdir, expand it.
6819 # FIXME: This hack should be removed a few years after 2.60.
6820 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6831 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6832 *datarootdir
*) ac_datarootdir_seen
=yes;;
6833 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6835 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6838 ac_datarootdir_hack='
6839 s&@datadir@&$datadir&g
6840 s&@docdir@&$docdir&g
6841 s&@infodir@&$infodir&g
6842 s&@localedir@&$localedir&g
6843 s&@mandir@&$mandir&g
6844 s&\\\${datarootdir}&$datarootdir&g' ;;
6848 # Neutralize VPATH when `$srcdir' = `.'.
6849 # Shell code in configure.ac might set extrasub.
6850 # FIXME: do we really want to maintain this feature?
6851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6852 ac_sed_extra="$ac_vpsub
6855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6857 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6858 s|@configure_input@|
$ac_sed_conf_input|
;t t
6859 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6860 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6861 s
&@srcdir@
&$ac_srcdir&;t t
6862 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6863 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6864 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6865 s
&@builddir@
&$ac_builddir&;t t
6866 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6867 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6868 $ac_datarootdir_hack
6870 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6871 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6873 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6874 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6875 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6876 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6878 which seems to be undefined. Please make sure it is defined" >&5
6879 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6880 which seems to be undefined. Please make sure it is defined" >&2;}
6882 rm -f "$ac_tmp/stdin"
6884 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6885 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6893 if test x"$ac_file" != x-; then
6895 $as_echo "/* $configure_input */" \
6896 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6897 } >"$ac_tmp/config.h" \
6898 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6899 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6901 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6904 mv "$ac_tmp/config.h" "$ac_file" \
6905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6908 $as_echo "/* $configure_input */" \
6909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6910 || as_fn_error $? "could not create -" "$LINENO" 5
6922 ac_clean_files=$ac_clean_files_save
6924 test $ac_write_fail = 0 ||
6925 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6928 # configure is writing to config.log, and then calls config.status.
6929 # config.status does its own redirection, appending to config.log.
6930 # Unfortunately, on DOS this fails, as config.log is still kept open
6931 # by configure, so config.status won't be able to
write to it
; its
6932 # output is simply discarded. So we exec the FD to /dev/null,
6933 # effectively closing config.log, so it can be properly (re)opened and
6934 # appended to by config.status. When coming back to configure, we
6935 # need to make the FD available again.
6936 if test "$no_create" != yes; then
6938 ac_config_status_args
=
6939 test "$silent" = yes &&
6940 ac_config_status_args
="$ac_config_status_args --quiet"
6942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6945 # would make configure fail if this is the last instruction.
6946 $ac_cs_success || as_fn_exit
1
6948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6956 # Extract the first word of "$ac_prog", so it can be a program name with args.
6957 set dummy
$ac_prog; ac_word
=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_GIT+:} false
; then :
6961 $as_echo_n "(cached) " >&6
6963 if test -n "$GIT"; then
6964 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
6966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir
=.
6971 for ac_exec_ext
in '' $ac_executable_extensions; do
6972 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_GIT
="$ac_prog"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 if test -n "$GIT"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6986 $as_echo "$GIT" >&6; }
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6993 test -n "$GIT" && break
6998 for ac_prog
in python
7000 # Extract the first word of "$ac_prog", so it can be a program name with args.
7001 set dummy
$ac_prog; ac_word
=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_PYTHON+:} false
; then :
7005 $as_echo_n "(cached) " >&6
7007 if test -n "$PYTHON"; then
7008 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
7010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir
=.
7015 for ac_exec_ext
in '' $ac_executable_extensions; do
7016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_PYTHON
="$ac_prog"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 PYTHON
=$ac_cv_prog_PYTHON
7028 if test -n "$PYTHON"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7030 $as_echo "$PYTHON" >&6; }
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7037 test -n "$PYTHON" && break
7039 test -n "$PYTHON" || PYTHON
="python2.7"
7043 for ac_prog
in python3
7045 # Extract the first word of "$ac_prog", so it can be a program name with args.
7046 set dummy
$ac_prog; ac_word
=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_PYTHON3+:} false
; then :
7050 $as_echo_n "(cached) " >&6
7052 if test -n "$PYTHON3"; then
7053 ac_cv_prog_PYTHON3
="$PYTHON3" # Let the user override the test.
7055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir
=.
7060 for ac_exec_ext
in '' $ac_executable_extensions; do
7061 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_PYTHON3
="$ac_prog"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 PYTHON3
=$ac_cv_prog_PYTHON3
7073 if test -n "$PYTHON3"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7075 $as_echo "$PYTHON3" >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7082 test -n "$PYTHON3" && break
7084 test -n "$PYTHON3" || PYTHON3
="python3.4"
7088 enable_python2
=false
7089 if test "x$do_python" != "xno"; then :
7092 if test -z "$PYTHON"
7094 enable_python2
=false
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7097 $as_echo_n "checking Python version... " >&6; }
7098 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 }'`
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7100 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7101 if test "$PY_MAJOR" -lt 2; then
7102 echo WARNING
: Python version
2.6 or later does not seem to be installed.
7103 enable_python2
=false
7105 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7106 echo WARNING
: Python version
2.
$PY_MINOR is too old.
7107 echo Python version
2.6 or later is required
for Python builds.
7108 enable_python2
=false
7110 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}/Python.h
7112 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7113 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7114 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7115 cat >>confdefs.h
<<_ACEOF
7116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7121 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7122 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7123 enable_python2
=false
7133 if test "$do_python" != "check" -a "$enable_python2" != "true"
7135 as_fn_error $?
"cannot enable Python - no supported version found" "$LINENO" 5
7141 enable_python3
=false
7142 if test "x$do_python3" != "xno"; then :
7145 if test -z "$PYTHON3"
7147 enable_python3
=false
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7150 $as_echo_n "checking Python3 version... " >&6; }
7151 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 }'`
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7153 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7154 if test "$PY_MAJOR" -lt 3; then
7155 echo WARNING
: Python version
3.3 or later does not seem to be installed.
7156 enable_python3
=false
7158 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7159 echo WARNING
: Python version
3.
$PY_MINOR is too old.
7160 echo Python version
3.3 or later is required
for Python builds.
7161 enable_python3
=false
7163 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}m
/Python.h
7165 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7167 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7168 cat >>confdefs.h
<<_ACEOF
7169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7174 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7175 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7176 enable_python3
=false
7186 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7188 as_fn_error $?
"cannot enable Python3 - no supported version found" "$LINENO" 5
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7195 $as_echo_n "checking for any python version... " >&6; }
7196 if test "$cross_compiling" = "yes"; then
7198 echo "cross-compile -> \"$ans\"" >&5
7199 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7206 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7207 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }; fi
7210 if test "$enable_python3" = "true"
7212 pcp_python_prog
=$PYTHON3
7213 elif test "$enable_python2" = "true"
7215 pcp_python_prog
=$PYTHON
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7223 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7228 txt
="import jsonpointer"
7230 $pcp_python_prog -c 'import sys;
7231 '"$txt" >>config.log
2>&1
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7235 $as_echo "yes" >&6; }
7236 eval have_python_jsonpointer
=true
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 eval have_python_jsonpointer
=false
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module setuptools" >&5
7245 $as_echo_n "checking for Python module setuptools... " >&6; }
7250 txt
="import setuptools"
7252 $pcp_python_prog -c 'import sys;
7253 '"$txt" >>config.log
2>&1
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7257 $as_echo "yes" >&6; }
7258 eval have_python_setuptools
=true
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 eval have_python_setuptools
=false
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module requests" >&5
7267 $as_echo_n "checking for Python module requests... " >&6; }
7272 txt
="import requests"
7274 $pcp_python_prog -c 'import sys;
7275 '"$txt" >>config.log
2>&1
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7279 $as_echo "yes" >&6; }
7280 eval have_python_requests
=true
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 eval have_python_requests
=false
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7289 $as_echo_n "checking for Python module six... " >&6; }
7296 $pcp_python_prog -c 'import sys;
7297 '"$txt" >>config.log
2>&1
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7302 eval have_python_six
=true
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 eval have_python_six
=false
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7312 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7314 if test "x$do_pmdajson" = "xyes"; then :
7317 if test "x$do_pmdajson" = "xcheck"; then :
7319 $have_python_jsonpointer && $have_python_six && pmda_json
=true
7322 PMDA_JSON
=$pmda_json
7324 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7325 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }; fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module libvirt" >&5
7329 $as_echo_n "checking for Python module libvirt... " >&6; }
7334 txt
="import libvirt"
7336 $pcp_python_prog -c 'import sys;
7337 '"$txt" >>config.log
2>&1
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7342 eval have_python_libvirt
=true
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 eval have_python_libvirt
=false
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy
$ac_prog; ac_word
=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_PERL+:} false
; then :
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$PERL"; then
7361 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir
=.
7368 for ac_exec_ext
in '' $ac_executable_extensions; do
7369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_PERL
="$ac_prog"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 PERL
=$ac_cv_prog_PERL
7381 if test -n "$PERL"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7383 $as_echo "$PERL" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7390 test -n "$PERL" && break
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7396 $as_echo_n "checking for any perl version... " >&6; }
7397 if test "$cross_compiling" = "yes"; then
7399 echo "cross-compile -> \"$ans\"" >&5
7400 elif test -n "$PERL"
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7411 $as_echo "$pcp_perl_prog" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7414 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7416 if test "x$do_pmdasnmp" = "xyes"; then :
7419 if test "x$do_pmdasnmp" = "xcheck"; then :
7421 if test "$have_perl" = true
7423 if $pcp_perl_prog -e "use Net::SNMP" >/dev
/null
2>&1
7430 PMDA_SNMP
=$pmda_snmp
7432 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }; fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7437 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7439 if test "$have_perl" = true
7441 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7443 if $pcp_perl_prog -e "use DBD::mysql" >/dev
/null
2>&1
7449 PMDA_MYSQL
=$pmda_mysql
7451 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7452 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }; fi
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7456 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7457 pmda_postgresql
=false
7458 if test "$have_perl" = true
7460 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7462 if $pcp_perl_prog -e "use DBD::Pg" >/dev
/null
2>&1
7464 pmda_postgresql
=true
7468 PMDA_POSTGRESQL
=$pmda_postgresql
7470 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7471 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }; fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7475 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7477 if test "$have_perl" = true
7479 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7484 PMDA_ORACLE
=$pmda_oracle
7486 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7487 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }; fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7491 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7492 pmda_elasticsearch
=false
7493 if test "$have_perl" = true
7495 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7497 pmda_elasticsearch
=true
7500 PMDA_ELASTICSEARCH
=$pmda_elasticsearch
7502 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7503 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }; fi
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7507 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7509 if test "$have_perl" = true
7511 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7516 PMDA_NGINX
=$pmda_nginx
7518 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }; fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7523 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7525 if test "$have_perl" = true
7527 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7532 PMDA_ACTIVEMQ
=$pmda_activemq
7534 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7535 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }; fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the bind2 PMDA should be included" >&5
7539 $as_echo_n "checking if the bind2 PMDA should be included... " >&6; }
7541 if test "$have_perl" = true
7543 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7545 if $pcp_perl_prog -e "use XML::LibXML" >/dev
/null
2>&1
7547 if $pcp_perl_prog -e "use File::Slurp" >/dev
/null
2>&1
7554 PMDA_BIND2
=$pmda_bind2
7556 if $pmda_bind2; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7557 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }; fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nutcracker PMDA should be included" >&5
7561 $as_echo_n "checking if the nutcracker PMDA should be included... " >&6; }
7562 pmda_nutcracker
=false
7563 if test "$have_perl" = true
7565 if $pcp_perl_prog -e "use YAML::XS" >/dev
/null
2>&1
7567 if $pcp_perl_prog -e "use JSON" >/dev
/null
2>&1
7569 pmda_nutcracker
=true
7573 PMDA_NUTCRACKER
=$pmda_nutcracker
7575 if $pmda_nutcracker; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7576 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }; fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the LIO PMDA should be included" >&5
7580 $as_echo_n "checking if the LIO PMDA should be included... " >&6; }
7582 if test "$have_python" = true
7584 if $pcp_python_prog -c "import rtslib" >/dev
/null
2>&1
7591 if $pmda_lio; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7592 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }; fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the libvirt PMDA should be included" >&5
7596 $as_echo_n "checking if the libvirt PMDA should be included... " >&6; }
7598 if test "$have_python" = true
7600 if $pcp_python_prog -c "import libvirt" >/dev
/null
2>&1
7602 if $pcp_python_prog -c "import lxml" >/dev
/null
2>&1
7608 PMDA_LIBVIRT
=$pmda_libvirt
7610 if $pmda_libvirt; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7611 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }; fi
7617 if test "x$do_qt" != "xno"; then :
7623 for ac_prog
in qmake-qt5 qmake-qt4 qmake
7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy
$ac_prog; ac_word
=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_path_QMAKE+:} false
; then :
7630 $as_echo_n "(cached) " >&6
7634 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
7637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7638 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"
7639 for as_dir
in $as_dummy
7642 test -z "$as_dir" && as_dir
=.
7643 for ac_exec_ext
in '' $ac_executable_extensions; do
7644 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7645 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 QMAKE
=$ac_cv_path_QMAKE
7657 if test -n "$QMAKE"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7659 $as_echo "$QMAKE" >&6; }
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7666 test -n "$QMAKE" && break
7669 test "x$cc_is_gcc" = xyes
-a $target_os = solaris
&& QMAKE
="$QMAKE -spec solaris-g++"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7677 $as_echo_n "checking Qt version... " >&6; }
7678 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 }'`
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7680 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7681 if test "$QT_MAJOR" -lt 4; then
7682 echo WARNING
: Qt version
4.4 or later does not seem to be installed.
7683 echo Cannot proceed with the Qt
$QT_MAJOR installation found.
7686 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7687 echo WARNING
: Qt version
4.
$QT_MINOR is too old.
7688 echo Qt version
4.4 or later is required
for Qt builds.
7693 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7695 as_fn_error $?
"cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7696 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7699 test "$do_qt" != "check" && \
7700 as_fn_error $?
"C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7701 elif test "$do_qt" = "debug"
7713 if test "x$do_qt3d" != "xno"; then :
7715 if test -f /usr
/include
/Coin
3/Inventor
/Qt
/SoQt.h
7717 enable_qt3d
=$enable_qt
7718 elif test -a "$do_qt3d" = "yes"
7720 as_fn_error $?
"cannot enable support for 3D scene graph API" "$LINENO" 5
7728 # Extract the first word of "gmake", so it can be a program name with args.
7729 set dummy gmake
; ac_word
=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_path_MAKE+:} false
; then :
7733 $as_echo_n "(cached) " >&6
7737 ac_cv_path_MAKE
="$MAKE" # Let the user override the test with a path.
7740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7744 test -z "$as_dir" && as_dir
=.
7745 for ac_exec_ext
in '' $ac_executable_extensions; do
7746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7747 ac_cv_path_MAKE
="$as_dir/$ac_word$ac_exec_ext"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 MAKE
=$ac_cv_path_MAKE
7759 if test -n "$MAKE"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7761 $as_echo "$MAKE" >&6; }
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7770 # look elsewhere ...
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7772 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7773 for f
in /usr
/local
/bin
/gmake
/usr
/freeware
/bin
/gmake
/usr
/local
/bin
/make /opt
/sfw
/bin
/gmake nowhere
7781 if test $f = nowhere
7783 # Check if /usr/bin/make is any good
7784 mver
=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7785 if test "$mver" != "GNU Make"
7788 echo "FATAL ERROR: could not find GNU make anywhere"
7789 echo "You need to set \$MAKE as the full path to GNU make "
7790 echo "in the environment."
7791 rm -rf conftest conftest.
*
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7798 $as_echo "$MAKE" >&6; }
7804 if test -z "$CPP"; then
7806 ac_cpp
='$CPP $CPPFLAGS'
7807 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7811 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7812 # On Suns, sometimes $CPP names a directory.
7813 if test -n "$CPP" && test -d "$CPP"; then
7816 if test -z "$CPP"; then
7817 if ${ac_cv_prog_CPP+:} false
; then :
7818 $as_echo_n "(cached) " >&6
7820 # Double quotes because CPP needs to be expanded
7821 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7824 for ac_c_preproc_warn_flag
in '' yes
7826 # Use a header file that comes with gcc, so configuring glibc
7827 # with a fresh cross-compiler works.
7828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7829 # <limits.h> exists even on freestanding compilers.
7830 # On the NeXT, cc -E runs the code through the compiler's parser,
7831 # not just through cpp. "Syntax error" is here to catch this case.
7832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7835 # include <limits.h>
7837 # include <assert.h>
7841 if ac_fn_c_try_cpp
"$LINENO"; then :
7844 # Broken: fails on valid input.
7847 rm -f conftest.err conftest.i conftest.
$ac_ext
7849 # OK, works on sane cases. Now check whether nonexistent headers
7850 # can be detected and how.
7851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #include <ac_nonexistent.h>
7855 if ac_fn_c_try_cpp
"$LINENO"; then :
7856 # Broken: success on invalid input.
7859 # Passes both tests.
7863 rm -f conftest.err conftest.i conftest.
$ac_ext
7866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7867 rm -f conftest.i conftest.err conftest.
$ac_ext
7868 if $ac_preproc_ok; then :
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7881 $as_echo "$CPP" >&6; }
7883 for ac_c_preproc_warn_flag
in '' yes
7885 # Use a header file that comes with gcc, so configuring glibc
7886 # with a fresh cross-compiler works.
7887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7888 # <limits.h> exists even on freestanding compilers.
7889 # On the NeXT, cc -E runs the code through the compiler's parser,
7890 # not just through cpp. "Syntax error" is here to catch this case.
7891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7894 # include <limits.h>
7896 # include <assert.h>
7900 if ac_fn_c_try_cpp
"$LINENO"; then :
7903 # Broken: fails on valid input.
7906 rm -f conftest.err conftest.i conftest.
$ac_ext
7908 # OK, works on sane cases. Now check whether nonexistent headers
7909 # can be detected and how.
7910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 #include <ac_nonexistent.h>
7914 if ac_fn_c_try_cpp
"$LINENO"; then :
7915 # Broken: success on invalid input.
7918 # Passes both tests.
7922 rm -f conftest.err conftest.i conftest.
$ac_ext
7925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7926 rm -f conftest.i conftest.err conftest.
$ac_ext
7927 if $ac_preproc_ok; then :
7930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7932 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7933 See \`config.log' for more details" "$LINENO" 5; }
7937 ac_cpp
='$CPP $CPPFLAGS'
7938 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7946 if test -z "$LD"; then
7947 # Extract the first word of "ld", so it can be a program name with args.
7948 set dummy ld
; ac_word
=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if ${ac_cv_path_LD+:} false
; then :
7952 $as_echo_n "(cached) " >&6
7956 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
7959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7963 test -z "$as_dir" && as_dir
=.
7964 for ac_exec_ext
in '' $ac_executable_extensions; do
7965 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 test -z "$ac_cv_path_LD" && ac_cv_path_LD
="/usr/bin/ld"
7979 if test -n "$LD"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7981 $as_echo "$LD" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7992 if test -z "$PCP_USER_INSTALL" ; then
7993 pcp_user_install
=root
7995 pcp_user_install
="$PCP_USER_INSTALL"
7998 if test -z "$PCP_GROUP_INSTALL" ; then
8001 darwin|freebsd|netbsd|openbsd
)
8002 pcp_group_install
=wheel
8005 pcp_group_install
=root
8009 pcp_group_install
="$PCP_GROUP_INSTALL"
8013 if test -z "$TAR"; then
8014 for ac_prog
in gtar
tar
8016 # Extract the first word of "$ac_prog", so it can be a program name with args.
8017 set dummy
$ac_prog; ac_word
=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if ${ac_cv_path_TAR+:} false
; then :
8021 $as_echo_n "(cached) " >&6
8025 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
8028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8032 test -z "$as_dir" && as_dir
=.
8033 for ac_exec_ext
in '' $ac_executable_extensions; do
8034 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 if test -n "$TAR"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
8049 $as_echo "$TAR" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8056 test -n "$TAR" && break
8058 test -n "$TAR" || TAR
="tar"
8061 if test $target_os = darwin
-a -x /usr
/bin
/gnutar
8068 if test -z "$ZIP"; then
8069 # Extract the first word of "gzip", so it can be a program name with args.
8070 set dummy
gzip; ac_word
=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_path_ZIP+:} false
; then :
8074 $as_echo_n "(cached) " >&6
8078 ac_cv_path_ZIP
="$ZIP" # Let the user override the test with a path.
8081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir
=.
8086 for ac_exec_ext
in '' $ac_executable_extensions; do
8087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_path_ZIP
="$as_dir/$ac_word$ac_exec_ext"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP
="/bin/gzip"
8101 if test -n "$ZIP"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
8103 $as_echo "$ZIP" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8111 test ! -x "$ZIP" && ZIP
=/usr
/local
/bin
/gzip
8112 test ! -x "$ZIP" && ZIP
=/usr
/freeware
/bin
/gzip
8113 test ! -x "$ZIP" && ZIP
=/usr
/bin
/gzip
8115 test -z "$gzip" && gzip=no-gzip
8118 if test -z "$BZIP2"; then
8119 # Extract the first word of "bzip2", so it can be a program name with args.
8120 set dummy
bzip2; ac_word
=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if ${ac_cv_path_BZIP2+:} false
; then :
8124 $as_echo_n "(cached) " >&6
8128 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
8131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8135 test -z "$as_dir" && as_dir
=.
8136 for ac_exec_ext
in '' $ac_executable_extensions; do
8137 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2
="/bin/bzip2"
8150 BZIP2
=$ac_cv_path_BZIP2
8151 if test -n "$BZIP2"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
8153 $as_echo "$BZIP2" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 test ! -x "$BZIP2" && BZIP2
=/usr
/bin
/bzip2
8162 test ! -x "$BZIP2" && BZIP2
=/usr
/local
/bin
/bzip2
8163 test ! -x "$BZIP2" && BZIP2
=/usr
/freeware
/bin
/bzip2
8165 test -z "$bzip2" && bzip2=no-bzip2
8168 if test -z "$LZMA"; then
8169 # Extract the first word of "lzma", so it can be a program name with args.
8170 set dummy lzma
; ac_word
=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_path_LZMA+:} false
; then :
8174 $as_echo_n "(cached) " >&6
8178 ac_cv_path_LZMA
="$LZMA" # Let the user override the test with a path.
8181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir
=.
8186 for ac_exec_ext
in '' $ac_executable_extensions; do
8187 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_path_LZMA
="$as_dir/$ac_word$ac_exec_ext"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA
="/bin/lzma"
8200 LZMA
=$ac_cv_path_LZMA
8201 if test -n "$LZMA"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8203 $as_echo "$LZMA" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8211 test ! -x "$LZMA" && LZMA
=/usr
/bin
/lzma
8212 test ! -x "$LZMA" && LZMA
=/usr
/local
/bin
/lzma
8213 test ! -x "$LZMA" && LZMA
=/usr
/freeware
/bin
/lzma
8215 test -z "$lzma" && lzma
=no-lzma
8218 if test -z "$XZ"; then
8219 # Extract the first word of "xz", so it can be a program name with args.
8220 set dummy xz
; 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_XZ+:} false
; then :
8224 $as_echo_n "(cached) " >&6
8228 ac_cv_path_XZ
="$XZ" # 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_XZ
="$as_dir/$ac_word$ac_exec_ext"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ
="/bin/xz"
8251 if test -n "$XZ"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8253 $as_echo "$XZ" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8261 test ! -x "$XZ" && XZ
=/usr
/bin
/xz
8262 test ! -x "$XZ" && XZ
=/usr
/local
/bin
/xz
8263 test ! -x "$XZ" && XZ
=/usr
/freeware
/bin
/xz
8265 test -z "$xz" && xz
=no-xz
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8269 $as_echo_n "checking for PackageMaker... " >&6; }
8270 if test -z "$PACKAGE_MAKER"
8272 if test $target_os = darwin
8274 if test -x /Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8275 then # local XCode extras install
8276 package_maker
=/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8278 $as_echo " yes (local install)" >&6; }
8279 elif test -x /Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8281 package_maker
=/Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8283 $as_echo " yes (darwin 6.x)" >&6; }
8284 elif test -x /Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8287 $as_echo " yes (darwin 7.x)" >&6; }
8288 package_maker
=/Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8291 $as_echo " not found!" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8293 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo " no" >&6; }
8300 package_maker
="$PACKAGE_MAKER"
8304 if test -z "$HDIUTIL"; then
8305 # Extract the first word of "hdiutil", so it can be a program name with args.
8306 set dummy hdiutil
; ac_word
=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_path_HDIUTIL+:} false
; then :
8310 $as_echo_n "(cached) " >&6
8314 ac_cv_path_HDIUTIL
="$HDIUTIL" # Let the user override the test with a path.
8317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8321 test -z "$as_dir" && as_dir
=.
8322 for ac_exec_ext
in '' $ac_executable_extensions; do
8323 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_path_HDIUTIL
="$as_dir/$ac_word$ac_exec_ext"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 HDIUTIL
=$ac_cv_path_HDIUTIL
8336 if test -n "$HDIUTIL"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8338 $as_echo "$HDIUTIL" >&6; }
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8349 if test -z "$MKINSTALLP"; then
8350 # Extract the first word of "mkinstallp", so it can be a program name with args.
8351 set dummy mkinstallp
; ac_word
=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_path_MKINSTALLP+:} false
; then :
8355 $as_echo_n "(cached) " >&6
8359 ac_cv_path_MKINSTALLP
="$MKINSTALLP" # Let the user override the test with a path.
8362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir
=.
8367 for ac_exec_ext
in '' $ac_executable_extensions; do
8368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_path_MKINSTALLP
="$as_dir/$ac_word$ac_exec_ext"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 MKINSTALLP
=$ac_cv_path_MKINSTALLP
8381 if test -n "$MKINSTALLP"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8383 $as_echo "$MKINSTALLP" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8391 mkinstallp
=$MKINSTALLP
8394 if test -z "$PKGMK"; then
8395 # Extract the first word of "pkgmk", so it can be a program name with args.
8396 set dummy pkgmk
; ac_word
=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_path_PKGMK+:} false
; then :
8400 $as_echo_n "(cached) " >&6
8404 ac_cv_path_PKGMK
="$PKGMK" # Let the user override the test with a path.
8407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir
=.
8412 for ac_exec_ext
in '' $ac_executable_extensions; do
8413 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_path_PKGMK
="$as_dir/$ac_word$ac_exec_ext"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 PKGMK
=$ac_cv_path_PKGMK
8426 if test -n "$PKGMK"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8428 $as_echo "$PKGMK" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8439 if test -z "$DLLTOOL"; then
8440 # Extract the first word of "dlltool", so it can be a program name with args.
8441 set dummy dlltool
; ac_word
=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if ${ac_cv_path_DLLTOOL+:} false
; then :
8445 $as_echo_n "(cached) " >&6
8449 ac_cv_path_DLLTOOL
="$DLLTOOL" # Let the user override the test with a path.
8452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir
=.
8457 for ac_exec_ext
in '' $ac_executable_extensions; do
8458 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8459 ac_cv_path_DLLTOOL
="$as_dir/$ac_word$ac_exec_ext"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 DLLTOOL
=$ac_cv_path_DLLTOOL
8471 if test -n "$DLLTOOL"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8473 $as_echo "$DLLTOOL" >&6; }
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8484 if test -z "$RPMBUILD"; then
8485 # Extract the first word of "rpmbuild", so it can be a program name with args.
8486 set dummy rpmbuild
; ac_word
=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_path_RPMBUILD+:} false
; then :
8490 $as_echo_n "(cached) " >&6
8494 ac_cv_path_RPMBUILD
="$RPMBUILD" # Let the user override the test with a path.
8497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8501 test -z "$as_dir" && as_dir
=.
8502 for ac_exec_ext
in '' $ac_executable_extensions; do
8503 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_path_RPMBUILD
="$as_dir/$ac_word$ac_exec_ext"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 RPMBUILD
=$ac_cv_path_RPMBUILD
8516 if test -n "$RPMBUILD"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8518 $as_echo "$RPMBUILD" >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8526 test $target_distro = slackware
&& RPMBUILD
=''
8530 if test -z "$RPM"; then
8531 # Extract the first word of "rpm", so it can be a program name with args.
8532 set dummy rpm
; ac_word
=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_path_RPM+:} false
; then :
8536 $as_echo_n "(cached) " >&6
8540 ac_cv_path_RPM
="$RPM" # Let the user override the test with a path.
8543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8547 test -z "$as_dir" && as_dir
=.
8548 for ac_exec_ext
in '' $ac_executable_extensions; do
8549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8550 ac_cv_path_RPM
="$as_dir/$ac_word$ac_exec_ext"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 if test -n "$RPM"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8564 $as_echo "$RPM" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8572 test $target_distro = slackware
&& RPM
=''
8576 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8584 if test -z "$POD2MAN"; then
8585 # Extract the first word of "pod2man", so it can be a program name with args.
8586 set dummy pod2man
; ac_word
=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_path_POD2MAN+:} false
; then :
8590 $as_echo_n "(cached) " >&6
8594 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8601 test -z "$as_dir" && as_dir
=.
8602 for ac_exec_ext
in '' $ac_executable_extensions; do
8603 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8604 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 POD2MAN
=$ac_cv_path_POD2MAN
8616 if test -n "$POD2MAN"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8618 $as_echo "$POD2MAN" >&6; }
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8630 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8631 perl
-e "use ExtUtils::MakeMaker" 2>/dev
/null
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8635 $as_echo " yes" >&6; }
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo " no" >&6; }
8640 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8641 echo "You can either install this from your distribution, or"
8642 echo "download from CPAN (Comprehensive Perl Archive Network)."
8643 rm -rf conftest conftest.
*
8647 # Extract the first word of "true", so it can be a program name with args.
8648 set dummy true
; ac_word
=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_path_TRUEPROG+:} false
; then :
8652 $as_echo_n "(cached) " >&6
8656 ac_cv_path_TRUEPROG
="$TRUEPROG" # Let the user override the test with a path.
8659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8663 test -z "$as_dir" && as_dir
=.
8664 for ac_exec_ext
in '' $ac_executable_extensions; do
8665 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8666 ac_cv_path_TRUEPROG
="$as_dir/$ac_word$ac_exec_ext"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 TRUEPROG
=$ac_cv_path_TRUEPROG
8678 if test -n "$TRUEPROG"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8680 $as_echo "$TRUEPROG" >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8688 if test -z "$MAKEDEPEND"; then
8689 # Extract the first word of "makedepend", so it can be a program name with args.
8690 set dummy makedepend
; ac_word
=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_path_MAKEDEPEND+:} false
; then :
8694 $as_echo_n "(cached) " >&6
8698 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
8701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8705 test -z "$as_dir" && as_dir
=.
8706 for ac_exec_ext
in '' $ac_executable_extensions; do
8707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8708 ac_cv_path_MAKEDEPEND
="$as_dir/$ac_word$ac_exec_ext"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUEPROG"
8720 MAKEDEPEND
=$ac_cv_path_MAKEDEPEND
8721 if test -n "$MAKEDEPEND"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8723 $as_echo "$MAKEDEPEND" >&6; }
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8731 makedepend
=$MAKEDEPEND
8734 if test -z "$MD5SUM"; then
8735 # Extract the first word of "md5sum", so it can be a program name with args.
8736 set dummy
md5sum; ac_word
=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if ${ac_cv_path_MD5SUM+:} false
; then :
8740 $as_echo_n "(cached) " >&6
8744 ac_cv_path_MD5SUM
="$MD5SUM" # Let the user override the test with a path.
8747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8751 test -z "$as_dir" && as_dir
=.
8752 for ac_exec_ext
in '' $ac_executable_extensions; do
8753 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_path_MD5SUM
="$as_dir/$ac_word$ac_exec_ext"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM
="$TRUEPROG"
8766 MD5SUM
=$ac_cv_path_MD5SUM
8767 if test -n "$MD5SUM"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8769 $as_echo "$MD5SUM" >&6; }
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8780 if test -z "$DPKG"; then
8781 # Extract the first word of "dpkg", so it can be a program name with args.
8782 set dummy dpkg
; ac_word
=$2
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784 $as_echo_n "checking for $ac_word... " >&6; }
8785 if ${ac_cv_path_DPKG+:} false
; then :
8786 $as_echo_n "(cached) " >&6
8790 ac_cv_path_DPKG
="$DPKG" # Let the user override the test with a path.
8793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8797 test -z "$as_dir" && as_dir
=.
8798 for ac_exec_ext
in '' $ac_executable_extensions; do
8799 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8800 ac_cv_path_DPKG
="$as_dir/$ac_word$ac_exec_ext"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 DPKG
=$ac_cv_path_DPKG
8812 if test -n "$DPKG"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8814 $as_echo "$DPKG" >&6; }
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8825 if test -z "$MAKEPKG"; then
8826 # Extract the first word of "makepkg", so it can be a program name with args.
8827 set dummy makepkg
; 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_MAKEPKG+:} false
; then :
8831 $as_echo_n "(cached) " >&6
8835 ac_cv_path_MAKEPKG
="$MAKEPKG" # 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_MAKEPKG
="$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 MAKEPKG
=$ac_cv_path_MAKEPKG
8857 if test -n "$MAKEPKG"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8859 $as_echo "$MAKEPKG" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8870 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8871 set dummy publican
; ac_word
=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if ${ac_cv_path_PUBLICAN+:} false
; then :
8875 $as_echo_n "(cached) " >&6
8879 ac_cv_path_PUBLICAN
="$PUBLICAN" # Let the user override the test with a path.
8882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8886 test -z "$as_dir" && as_dir
=.
8887 for ac_exec_ext
in '' $ac_executable_extensions; do
8888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8889 ac_cv_path_PUBLICAN
="$as_dir/$ac_word$ac_exec_ext"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 PUBLICAN
=$ac_cv_path_PUBLICAN
8901 if test -n "$PUBLICAN"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8903 $as_echo "$PUBLICAN" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8912 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8913 set dummy dblatex
; ac_word
=$2
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915 $as_echo_n "checking for $ac_word... " >&6; }
8916 if ${ac_cv_path_DBLATEX+:} false
; then :
8917 $as_echo_n "(cached) " >&6
8921 ac_cv_path_DBLATEX
="$DBLATEX" # Let the user override the test with a path.
8924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8928 test -z "$as_dir" && as_dir
=.
8929 for ac_exec_ext
in '' $ac_executable_extensions; do
8930 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_path_DBLATEX
="$as_dir/$ac_word$ac_exec_ext"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 DBLATEX
=$ac_cv_path_DBLATEX
8943 if test -n "$DBLATEX"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8945 $as_echo "$DBLATEX" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8954 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8955 set dummy xmlto
; ac_word
=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if ${ac_cv_path_XMLTO+:} false
; then :
8959 $as_echo_n "(cached) " >&6
8963 ac_cv_path_XMLTO
="$XMLTO" # Let the user override the test with a path.
8966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8970 test -z "$as_dir" && as_dir
=.
8971 for ac_exec_ext
in '' $ac_executable_extensions; do
8972 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8973 ac_cv_path_XMLTO
="$as_dir/$ac_word$ac_exec_ext"
8974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 XMLTO
=$ac_cv_path_XMLTO
8985 if test -n "$XMLTO"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8987 $as_echo "$XMLTO" >&6; }
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8998 if test "$do_books" = "check" -o "$do_books" = "yes"
9000 if test "$BOOK_TOOLCHAIN" != ""
9002 book_toolchain
=$BOOK_TOOLCHAIN
9003 elif test "$DBLATEX" != ""
9005 book_toolchain
=dblatex
9006 elif test "$PUBLICAN" != ""
9008 book_toolchain
=publican
9009 elif test "$XMLTO" != ""
9011 book_toolchain
=xmlto
9012 elif test "$do_books" = "yes"
9014 as_fn_error $?
"cannot enable books build - no toolchain found" "$LINENO" 5
9020 if test "$do_books_brand" != ""
9022 book_brand
=$do_books_brand
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9027 $as_echo_n "checking whether ln -s works... " >&6; }
9029 if test "$LN_S" = "ln -s"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9031 $as_echo "yes" >&6; }
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9034 $as_echo "no, using $LN_S" >&6; }
9037 if test $target_os = mingw
; then
9043 test -f /proc
/stat || mount
/proc
>/dev
/null
2>&1
9046 if test -n "$PROCPS"
9048 pcp_ps_prog
="$PROCPS"
9054 if test $target_os = mingw
9056 pcp_syslog_prog
=pcp-eventlog
9058 pcp_syslog_prog
=logger
9063 if test $target_os = solaris
9065 test -f /usr
/xpg
4/bin
/grep && grep=/usr
/xpg
4/bin
/grep
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
9070 $as_echo_n "checking for /proc ... " >&6; }
9071 if test "$cross_compiling" = "yes"; then
9073 echo "cross-compile -> \"$ans\"" >&5
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9083 $as_echo "yes" >&6; }
9085 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9093 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9094 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9096 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9097 if eval \
${$as_ac_Header+:} false
; then :
9098 $as_echo_n "(cached) " >&6
9100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 #include <sys/types.h>
9114 if ac_fn_c_try_compile
"$LINENO"; then :
9115 eval "$as_ac_Header=yes"
9117 eval "$as_ac_Header=no"
9119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9121 eval ac_res
=\$
$as_ac_Header
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9123 $as_echo "$ac_res" >&6; }
9124 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9125 cat >>confdefs.h
<<_ACEOF
9126 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9129 ac_header_dirent
=$ac_hdr; break
9133 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9134 if test $ac_header_dirent = dirent.h
; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9136 $as_echo_n "checking for library containing opendir... " >&6; }
9137 if ${ac_cv_search_opendir+:} false
; then :
9138 $as_echo_n "(cached) " >&6
9140 ac_func_search_save_LIBS
=$LIBS
9141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9144 /* Override any GCC internal prototype to avoid an error.
9145 Use char because int might match the return type of a GCC
9146 builtin and then its argument prototype would still apply. */
9159 for ac_lib
in '' dir
; do
9160 if test -z "$ac_lib"; then
9161 ac_res
="none required"
9164 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9166 if ac_fn_c_try_link
"$LINENO"; then :
9167 ac_cv_search_opendir
=$ac_res
9169 rm -f core conftest.err conftest.
$ac_objext \
9171 if ${ac_cv_search_opendir+:} false
; then :
9175 if ${ac_cv_search_opendir+:} false
; then :
9178 ac_cv_search_opendir
=no
9181 LIBS
=$ac_func_search_save_LIBS
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9184 $as_echo "$ac_cv_search_opendir" >&6; }
9185 ac_res
=$ac_cv_search_opendir
9186 if test "$ac_res" != no
; then :
9187 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9193 $as_echo_n "checking for library containing opendir... " >&6; }
9194 if ${ac_cv_search_opendir+:} false
; then :
9195 $as_echo_n "(cached) " >&6
9197 ac_func_search_save_LIBS
=$LIBS
9198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9216 for ac_lib
in '' x
; do
9217 if test -z "$ac_lib"; then
9218 ac_res
="none required"
9221 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9223 if ac_fn_c_try_link
"$LINENO"; then :
9224 ac_cv_search_opendir
=$ac_res
9226 rm -f core conftest.err conftest.
$ac_objext \
9228 if ${ac_cv_search_opendir+:} false
; then :
9232 if ${ac_cv_search_opendir+:} false
; then :
9235 ac_cv_search_opendir
=no
9238 LIBS
=$ac_func_search_save_LIBS
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9241 $as_echo "$ac_cv_search_opendir" >&6; }
9242 ac_res
=$ac_cv_search_opendir
9243 if test "$ac_res" != no
; then :
9244 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9251 $as_echo_n "checking for ANSI C header files... " >&6; }
9252 if ${ac_cv_header_stdc+:} false
; then :
9253 $as_echo_n "(cached) " >&6
9255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9270 if ac_fn_c_try_compile
"$LINENO"; then :
9271 ac_cv_header_stdc
=yes
9273 ac_cv_header_stdc
=no
9275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9277 if test $ac_cv_header_stdc = yes; then
9278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9285 $EGREP "memchr" >/dev
/null
2>&1; then :
9288 ac_cv_header_stdc
=no
9294 if test $ac_cv_header_stdc = yes; then
9295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9302 $EGREP "free" >/dev
/null
2>&1; then :
9305 ac_cv_header_stdc
=no
9311 if test $ac_cv_header_stdc = yes; then
9312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9313 if test "$cross_compiling" = yes; then :
9316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9320 #if ((' ' & 0x0FF) == 0x020)
9321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9324 # define ISLOWER(c) \
9325 (('a' <= (c) && (c) <= 'i') \
9326 || ('j' <= (c) && (c) <= 'r') \
9327 || ('s' <= (c) && (c) <= 'z'))
9328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9336 for (i = 0; i < 256; i++)
9337 if (XOR (islower (i), ISLOWER (i))
9338 || toupper (i) != TOUPPER (i))
9343 if ac_fn_c_try_run
"$LINENO"; then :
9346 ac_cv_header_stdc
=no
9348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9355 $as_echo "$ac_cv_header_stdc" >&6; }
9356 if test $ac_cv_header_stdc = yes; then
9358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9363 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9364 if ${ac_cv_header_sys_wait_h+:} false
; then :
9365 $as_echo_n "(cached) " >&6
9367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #include <sys/types.h>
9370 #include <sys/wait.h>
9372 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9375 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9383 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9388 if ac_fn_c_try_compile
"$LINENO"; then :
9389 ac_cv_header_sys_wait_h
=yes
9391 ac_cv_header_sys_wait_h
=no
9393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9396 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9397 if test $ac_cv_header_sys_wait_h = yes; then
9399 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9403 for ac_header
in fcntl.h limits.h malloc.h
strings.h syslog.h
9405 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9406 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9407 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9408 cat >>confdefs.h
<<_ACEOF
9409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9416 for ac_header
in stddef.h sched.h dlfcn.h dl.h
9418 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9420 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9421 cat >>confdefs.h
<<_ACEOF
9422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9429 for ac_header
in sys
/times.h sys
/resource.h sys
/prctl.h
9431 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9432 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9433 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9434 cat >>confdefs.h
<<_ACEOF
9435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9442 for ac_header
in sys
/sysinfo.h sys
/systeminfo.h
9444 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9445 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9446 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9447 cat >>confdefs.h
<<_ACEOF
9448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9455 for ac_header
in endian.h standards.h sys
/byteorder.h
9457 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9458 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9459 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9460 cat >>confdefs.h
<<_ACEOF
9461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 for ac_header
in libgen.h sys
/mman.h sys
/un.h
9470 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9471 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9472 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9473 cat >>confdefs.h
<<_ACEOF
9474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9481 for ac_header
in values.h stdint.h ieeefp.h math.h
9483 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9484 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9485 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9486 cat >>confdefs.h
<<_ACEOF
9487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9494 for ac_header
in pwd.h grp.h regex.h sys
/wait.h
9496 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9497 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9498 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9499 cat >>confdefs.h
<<_ACEOF
9500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9507 for ac_header
in termio.h termios.h sys
/termios.h
9509 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9510 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9511 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9512 cat >>confdefs.h
<<_ACEOF
9513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9520 for ac_header
in sys
/ioctl.h sys
/select.h sys
/socket.h
9522 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9523 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9524 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9525 cat >>confdefs.h
<<_ACEOF
9526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9533 for ac_header
in netdb.h
9535 ac_fn_c_check_header_mongrel
"$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9536 if test "x$ac_cv_header_netdb_h" = xyes
; then :
9537 cat >>confdefs.h
<<_ACEOF
9538 #define HAVE_NETDB_H 1
9545 if test $target_os = darwin
-o $target_os = openbsd
9547 for ac_header
in net
/if.h
9549 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9550 #include <sys/socket.h>
9552 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9553 cat >>confdefs.h
<<_ACEOF
9554 #define HAVE_NET_IF_H 1
9562 for ac_header
in net
/if.h
9564 ac_fn_c_check_header_mongrel
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9565 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9566 cat >>confdefs.h
<<_ACEOF
9567 #define HAVE_NET_IF_H 1
9575 for ac_header
in netinet
/in.h netinet
/tcp.h arpa
/inet.h
9577 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9578 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9579 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9580 cat >>confdefs.h
<<_ACEOF
9581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9588 for ac_header
in windows.h winsock2.h ws2tcpip.h
9590 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9592 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9593 cat >>confdefs.h
<<_ACEOF
9594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9601 for ac_header
in execinfo.h bits
/wordsize.h
9603 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9604 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9605 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9606 cat >>confdefs.h
<<_ACEOF
9607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9614 for ac_header
in iptypes.h
9616 ac_fn_c_check_header_compile
"$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9618 if test "x$ac_cv_header_iptypes_h" = xyes
; then :
9619 cat >>confdefs.h
<<_ACEOF
9620 #define HAVE_IPTYPES_H 1
9627 for ac_header
in iphlpapi.h
9629 ac_fn_c_check_header_compile
"$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9631 if test "x$ac_cv_header_iphlpapi_h" = xyes
; then :
9632 cat >>confdefs.h
<<_ACEOF
9633 #define HAVE_IPHLPAPI_H 1
9640 for ac_header
in fts.h libzfs.h
9642 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9644 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9645 cat >>confdefs.h
<<_ACEOF
9646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9653 for ac_header
in sys
/statvfs.h sys
/statfs.h sys
/mount.h
9655 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9656 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9657 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9658 cat >>confdefs.h
<<_ACEOF
9659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9668 $as_echo_n "checking for sys/endian.h ... " >&6; }
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9672 #include <sys/endian.h>
9683 if ac_fn_c_try_compile
"$LINENO"; then :
9685 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9687 $as_echo "yes" >&6; }
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9695 $as_echo_n "checking for machine/endian.h ... " >&6; }
9696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9699 #include <machine/endian.h>
9710 if ac_fn_c_try_compile
"$LINENO"; then :
9712 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9714 $as_echo "yes" >&6; }
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9722 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9726 #include <standards.h>
9727 #include <sys/endian.h>
9738 if ac_fn_c_try_compile
"$LINENO"; then :
9740 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; }
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9750 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9751 if ${ac_cv_c_const+:} false
; then :
9752 $as_echo_n "(cached) " >&6
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9762 /* Ultrix mips cc rejects this sort of thing. */
9763 typedef int charset[2];
9764 const charset cs = { 0, 0 };
9765 /* SunOS 4.1.1 cc rejects this. */
9766 char const *const *pcpcc;
9768 /* NEC SVR4.0.2 mips cc rejects this. */
9769 struct point {int x, y;};
9770 static struct point const zero = {0,0};
9771 /* AIX XL C 1.02.0.0 rejects this.
9772 It does not let you subtract one const X* pointer from another in
9773 an arm of an if-expression whose if-part is not a constant
9775 const char *g = "string";
9776 pcpcc = &g + (g ? g-g : 0);
9777 /* HPUX 7.0 cc rejects these. */
9779 ppc = (char**) pcpcc;
9780 pcpcc = (char const *const *) ppc;
9781 { /* SCO 3.2v4 cc rejects this sort of thing. */
9784 char const *s = 0 ? (char *) 0 : (char const *) 0;
9789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9791 const int *foo = &x[0];
9794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9795 typedef const int *iptr;
9799 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9801 struct s { int j; const int *ap[3]; } bx;
9802 struct s *b = &bx; b->j = 5;
9804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9808 return !cs[0] && !zero.x;
9815 if ac_fn_c_try_compile
"$LINENO"; then :
9820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9823 $as_echo "$ac_cv_c_const" >&6; }
9824 if test $ac_cv_c_const = no
; then
9826 $as_echo "#define const /**/" >>confdefs.h
9830 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9831 if test "x$ac_cv_type_off_t" = xyes
; then :
9835 cat >>confdefs.h
<<_ACEOF
9836 #define off_t long int
9841 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9842 if test "x$ac_cv_type_pid_t" = xyes
; then :
9846 cat >>confdefs.h
<<_ACEOF
9852 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9853 if test "x$ac_cv_type_size_t" = xyes
; then :
9857 cat >>confdefs.h
<<_ACEOF
9858 #define size_t unsigned int
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9864 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9865 if ${ac_cv_header_time+:} false
; then :
9866 $as_echo_n "(cached) " >&6
9868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 #include <sys/types.h>
9871 #include <sys/time.h>
9877 if ((struct tm *) 0)
9883 if ac_fn_c_try_compile
"$LINENO"; then :
9884 ac_cv_header_time
=yes
9886 ac_cv_header_time
=no
9888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9891 $as_echo "$ac_cv_header_time" >&6; }
9892 if test $ac_cv_header_time = yes; then
9894 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9899 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9900 if ${ac_cv_struct_tm+:} false
; then :
9901 $as_echo_n "(cached) " >&6
9903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905 #include <sys/types.h>
9912 int *p = &tm.tm_sec;
9918 if ac_fn_c_try_compile
"$LINENO"; then :
9919 ac_cv_struct_tm
=time.h
9921 ac_cv_struct_tm
=sys
/time.h
9923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9926 $as_echo "$ac_cv_struct_tm" >&6; }
9927 if test $ac_cv_struct_tm = sys
/time.h
; then
9929 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9934 $as_echo_n "checking for inline... " >&6; }
9935 if ${ac_cv_c_inline+:} false
; then :
9936 $as_echo_n "(cached) " >&6
9939 for ac_kw
in inline __inline__ __inline
; do
9940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9944 static $ac_kw foo_t static_foo () {return 0; }
9945 $ac_kw foo_t foo () {return 0; }
9949 if ac_fn_c_try_compile
"$LINENO"; then :
9950 ac_cv_c_inline
=$ac_kw
9952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9953 test "$ac_cv_c_inline" != no
&& break
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9958 $as_echo "$ac_cv_c_inline" >&6; }
9960 case $ac_cv_c_inline in
9963 case $ac_cv_c_inline in
9965 *) ac_val
=$ac_cv_c_inline;;
9967 cat >>confdefs.h
<<_ACEOF
9969 #define inline $ac_val
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9977 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9978 if ${ac_cv_lib_regex_regcomp+:} false
; then :
9979 $as_echo_n "(cached) " >&6
9981 ac_check_lib_save_LIBS
=$LIBS
9982 LIBS
="-lregex $LIBS"
9983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
10001 if ac_fn_c_try_link
"$LINENO"; then :
10002 ac_cv_lib_regex_regcomp
=yes
10004 ac_cv_lib_regex_regcomp
=no
10006 rm -f core conftest.err conftest.
$ac_objext \
10007 conftest
$ac_exeext conftest.
$ac_ext
10008 LIBS
=$ac_check_lib_save_LIBS
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
10011 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
10012 if test "x$ac_cv_lib_regex_regcomp" = xyes
; then :
10013 cat >>confdefs.h
<<_ACEOF
10014 #define HAVE_LIBREGEX 1
10017 LIBS
="-lregex $LIBS"
10022 if test $ac_cv_lib_regex_regcomp = yes
10024 lib_for_regex
="-lregex"
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
10031 $as_echo_n "checking for ncurses... " >&6; }
10033 if test -n "$ncurses_CFLAGS"; then
10034 pkg_cv_ncurses_CFLAGS
="$ncurses_CFLAGS"
10035 elif test -n "$PKG_CONFIG"; then
10036 if test -n "$PKG_CONFIG" && \
10037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
10038 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
10040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10041 test $ac_status = 0; }; then
10042 pkg_cv_ncurses_CFLAGS
=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
10043 test "x$?" != "x0" && pkg_failed
=yes
10050 if test -n "$ncurses_LIBS"; then
10051 pkg_cv_ncurses_LIBS
="$ncurses_LIBS"
10052 elif test -n "$PKG_CONFIG"; then
10053 if test -n "$PKG_CONFIG" && \
10054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
10055 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
10057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10058 test $ac_status = 0; }; then
10059 pkg_cv_ncurses_LIBS
=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
10060 test "x$?" != "x0" && pkg_failed
=yes
10070 if test $pkg_failed = yes; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10074 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10075 _pkg_short_errors_supported
=yes
10077 _pkg_short_errors_supported
=no
10079 if test $_pkg_short_errors_supported = yes; then
10080 ncurses_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
10082 ncurses_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
10084 # Put the nasty error message in config.log where it belongs
10085 echo "$ncurses_PKG_ERRORS" >&5
10088 elif test $pkg_failed = untried
; then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10090 $as_echo "no" >&6; }
10093 ncurses_CFLAGS
=$pkg_cv_ncurses_CFLAGS
10094 ncurses_LIBS
=$pkg_cv_ncurses_LIBS
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10096 $as_echo "yes" >&6; }
10099 HAVE_NCURSES
=$have_ncurses
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10105 $as_echo_n "checking for SYSTEMD... " >&6; }
10107 if test -n "$SYSTEMD_CFLAGS"; then
10108 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
10109 elif test -n "$PKG_CONFIG"; then
10110 if test -n "$PKG_CONFIG" && \
10111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10112 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10115 test $ac_status = 0; }; then
10116 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
10117 test "x$?" != "x0" && pkg_failed
=yes
10124 if test -n "$SYSTEMD_LIBS"; then
10125 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
10126 elif test -n "$PKG_CONFIG"; then
10127 if test -n "$PKG_CONFIG" && \
10128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10129 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10132 test $ac_status = 0; }; then
10133 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
10134 test "x$?" != "x0" && pkg_failed
=yes
10144 if test $pkg_failed = yes; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10149 _pkg_short_errors_supported
=yes
10151 _pkg_short_errors_supported
=no
10153 if test $_pkg_short_errors_supported = yes; then
10154 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
10156 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
10158 # Put the nasty error message in config.log where it belongs
10159 echo "$SYSTEMD_PKG_ERRORS" >&5
10162 elif test $pkg_failed = untried
; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10167 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
10168 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170 $as_echo "yes" >&6; }
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10180 $as_echo_n "checking for SYSTEMD... " >&6; }
10182 if test -n "$SYSTEMD_CFLAGS"; then
10183 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
10184 elif test -n "$PKG_CONFIG"; then
10185 if test -n "$PKG_CONFIG" && \
10186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10187 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; }; then
10191 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
10192 test "x$?" != "x0" && pkg_failed
=yes
10199 if test -n "$SYSTEMD_LIBS"; then
10200 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
10201 elif test -n "$PKG_CONFIG"; then
10202 if test -n "$PKG_CONFIG" && \
10203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10204 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10207 test $ac_status = 0; }; then
10208 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
10209 test "x$?" != "x0" && pkg_failed
=yes
10219 if test $pkg_failed = yes; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10223 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10224 _pkg_short_errors_supported
=yes
10226 _pkg_short_errors_supported
=no
10228 if test $_pkg_short_errors_supported = yes; then
10229 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10231 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10233 # Put the nasty error message in config.log where it belongs
10234 echo "$SYSTEMD_PKG_ERRORS" >&5
10237 elif test $pkg_failed = untried
; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10242 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
10243 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10245 $as_echo "yes" >&6; }
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
10250 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
10251 PMDA_SYSTEMD
=$pmda_systemd
10253 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10254 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255 $as_echo "no" >&6; }; fi
10257 pmda_infiniband
=false
10258 if test "x$do_infiniband" != "xno"; then :
10260 for ac_header
in infiniband
/umad.h
10262 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10263 if test "x$ac_cv_header_infiniband_umad_h" = xyes
; then :
10264 cat >>confdefs.h
<<_ACEOF
10265 #define HAVE_INFINIBAND_UMAD_H 1
10268 for ac_header
in infiniband
/mad.h
10270 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10271 if test "x$ac_cv_header_infiniband_mad_h" = xyes
; then :
10272 cat >>confdefs.h
<<_ACEOF
10273 #define HAVE_INFINIBAND_MAD_H 1
10275 pmda_infiniband
=true
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10288 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10289 if ${ac_cv_lib_ibmad_madrpc_init+:} false
; then :
10290 $as_echo_n "(cached) " >&6
10292 ac_check_lib_save_LIBS
=$LIBS
10293 LIBS
="-libmad $LIBS"
10294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10303 char madrpc_init ();
10307 return madrpc_init ();
10312 if ac_fn_c_try_link
"$LINENO"; then :
10313 ac_cv_lib_ibmad_madrpc_init
=yes
10315 ac_cv_lib_ibmad_madrpc_init
=no
10317 rm -f core conftest.err conftest.
$ac_objext \
10318 conftest
$ac_exeext conftest.
$ac_ext
10319 LIBS
=$ac_check_lib_save_LIBS
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10322 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10323 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes
; then :
10324 cat >>confdefs.h
<<_ACEOF
10325 #define HAVE_LIBIBMAD 1
10328 LIBS
="-libmad $LIBS"
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10333 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10334 if ${ac_cv_lib_ibumad_umad_init+:} false
; then :
10335 $as_echo_n "(cached) " >&6
10337 ac_check_lib_save_LIBS
=$LIBS
10338 LIBS
="-libumad $LIBS"
10339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10352 return umad_init ();
10357 if ac_fn_c_try_link
"$LINENO"; then :
10358 ac_cv_lib_ibumad_umad_init
=yes
10360 ac_cv_lib_ibumad_umad_init
=no
10362 rm -f core conftest.err conftest.
$ac_objext \
10363 conftest
$ac_exeext conftest.
$ac_ext
10364 LIBS
=$ac_check_lib_save_LIBS
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10367 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10368 if test "x$ac_cv_lib_ibumad_umad_init" = xyes
; then :
10369 cat >>confdefs.h
<<_ACEOF
10370 #define HAVE_LIBIBUMAD 1
10373 LIBS
="-libumad $LIBS"
10377 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10379 IB_LIBS
="-libmad -libumad"
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10382 $as_echo_n "checking for port_performance_query_via... " >&6; }
10383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10392 char port_performance_query_via ();
10396 return port_performance_query_via ();
10401 if ac_fn_c_try_link
"$LINENO"; then :
10403 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10405 have_port_performance_query_via
=true
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407 $as_echo "yes" >&6; }
10409 have_port_performance_query_via
=false
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10413 rm -f core conftest.err conftest.
$ac_objext \
10414 conftest
$ac_exeext conftest.
$ac_ext
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10416 $as_echo_n "checking for pma_query_via... " >&6; }
10417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10420 /* Override any GCC internal prototype to avoid an error.
10421 Use char because int might match the return type of a GCC
10422 builtin and then its argument prototype would still apply. */
10426 char pma_query_via ();
10430 return pma_query_via ();
10435 if ac_fn_c_try_link
"$LINENO"; then :
10437 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10439 have_pma_query_via
=true
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10441 $as_echo "yes" >&6; }
10443 have_pma_query_via
=false
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 $as_echo "no" >&6; }
10447 rm -f core conftest.err conftest.
$ac_objext \
10448 conftest
$ac_exeext conftest.
$ac_ext
10450 if test $have_pma_query_via -o $have_port_performance_query_via
10454 pmda_infiniband
=false
10457 pmda_infiniband
=false
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10464 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10465 PMDA_INFINIBAND
=$pmda_infiniband
10467 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10468 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469 $as_echo "no" >&6; }; fi
10472 if test "x$do_papi" != "xno"; then :
10476 saved_LDFLAGS
="$LDFLAGS"
10477 saved_CFLAGS
="$CFLAGS"
10480 CFLAGS
="$papi_CFLAGS"
10481 LDFLAGS
="$papi_LIBS"
10487 PAPI_ROOTDIR
=$do_papi;
10488 CFLAGS
="-I$PAPI_ROOTDIR/include"
10489 LDFLAGS
="-L$PAPI_ROOTDIR/lib"
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10495 $as_echo_n "checking for papi... " >&6; }
10497 if test -n "$papi_CFLAGS"; then
10498 pkg_cv_papi_CFLAGS
="$papi_CFLAGS"
10499 elif test -n "$PKG_CONFIG"; then
10500 if test -n "$PKG_CONFIG" && \
10501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10502 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505 test $ac_status = 0; }; then
10506 pkg_cv_papi_CFLAGS
=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10507 test "x$?" != "x0" && pkg_failed
=yes
10514 if test -n "$papi_LIBS"; then
10515 pkg_cv_papi_LIBS
="$papi_LIBS"
10516 elif test -n "$PKG_CONFIG"; then
10517 if test -n "$PKG_CONFIG" && \
10518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10519 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10522 test $ac_status = 0; }; then
10523 pkg_cv_papi_LIBS
=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10524 test "x$?" != "x0" && pkg_failed
=yes
10534 if test $pkg_failed = yes; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10539 _pkg_short_errors_supported
=yes
10541 _pkg_short_errors_supported
=no
10543 if test $_pkg_short_errors_supported = yes; then
10544 papi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10546 papi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10548 # Put the nasty error message in config.log where it belongs
10549 echo "$papi_PKG_ERRORS" >&5
10551 as_fn_error $?
"Package requirements ($do_papi) were not met:
10555 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10556 installed software in a non-standard prefix.
10558 Alternatively, you may set the environment variables papi_CFLAGS
10559 and papi_LIBS to avoid the need to call pkg-config.
10560 See the pkg-config man page for more details." "$LINENO" 5
10561 elif test $pkg_failed = untried
; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10566 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
10567 is in your PATH or set the PKG_CONFIG environment variable to the full
10568 path to pkg-config.
10570 Alternatively, you may set the environment variables papi_CFLAGS
10571 and papi_LIBS to avoid the need to call pkg-config.
10572 See the pkg-config man page for more details.
10574 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10575 See \`config.log' for more details" "$LINENO" 5; }
10577 papi_CFLAGS
=$pkg_cv_papi_CFLAGS
10578 papi_LIBS
=$pkg_cv_papi_LIBS
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10580 $as_echo "yes" >&6; }
10582 CFLAGS
="$papi_CFLAGS"
10583 LDFLAGS
="$papi_LIBS"
10588 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10590 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10591 if ${ac_cv_lib_papi_PAPI_library_init+:} false
; then :
10592 $as_echo_n "(cached) " >&6
10594 ac_check_lib_save_LIBS
=$LIBS
10595 LIBS
="-lpapi $LIBS"
10596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10599 /* Override any GCC internal prototype to avoid an error.
10600 Use char because int might match the return type of a GCC
10601 builtin and then its argument prototype would still apply. */
10605 char PAPI_library_init ();
10609 return PAPI_library_init ();
10614 if ac_fn_c_try_link
"$LINENO"; then :
10615 ac_cv_lib_papi_PAPI_library_init
=yes
10617 ac_cv_lib_papi_PAPI_library_init
=no
10619 rm -f core conftest.err conftest.
$ac_objext \
10620 conftest
$ac_exeext conftest.
$ac_ext
10621 LIBS
=$ac_check_lib_save_LIBS
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10624 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10625 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes
; then :
10626 papi_libs
="$LDFLAGS -lpapi"
10631 for ac_header
in papi.h
10633 ac_fn_c_check_header_mongrel
"$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10634 if test "x$ac_cv_header_papi_h" = xyes
; then :
10635 cat >>confdefs.h
<<_ACEOF
10636 #define HAVE_PAPI_H 1
10638 papi_cflags
="$CFLAGS"
10645 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10647 as_fn_error $?
"PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10649 pmda_papi
=$enable_papi
10652 CFLAGS
="$saved_CFLAGS"
10653 LDFLAGS
="$saved_LDFLAGS"
10654 PAPI_CFLAGS
=$papi_cflags
10656 PAPI_LIBS
=$papi_libs
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10661 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10662 PMDA_PAPI
=$pmda_papi
10664 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }; fi
10668 if test "x$pmda_papi" = "xtrue"; then :
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10671 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10672 cat <<End-of-File >conftest.c
10674 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10676 (eval $ac_compile) 2>conftest.out
10677 cat conftest.out
>&5
10678 if test -s conftest.out
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10684 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687 $as_echo "yes" >&6; }
10694 pmda_perfevent
=false
10695 if test "x$do_perfevent" != "xno" ; then :
10697 enable_perfevent
=true
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10701 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10702 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false
; then :
10703 $as_echo_n "(cached) " >&6
10705 ac_check_lib_save_LIBS
=$LIBS
10707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10710 /* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10716 char pfm_get_os_event_encoding ();
10720 return pfm_get_os_event_encoding ();
10725 if ac_fn_c_try_link
"$LINENO"; then :
10726 ac_cv_lib_pfm_pfm_get_os_event_encoding
=yes
10728 ac_cv_lib_pfm_pfm_get_os_event_encoding
=no
10730 rm -f core conftest.err conftest.
$ac_objext \
10731 conftest
$ac_exeext conftest.
$ac_ext
10732 LIBS
=$ac_check_lib_save_LIBS
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10735 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10736 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes
; then :
10739 enable_perfevent
=false
10742 for ac_header
in perfmon
/pfmlib_perf_event.h
10744 ac_fn_c_check_header_mongrel
"$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10745 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes
; then :
10746 cat >>confdefs.h
<<_ACEOF
10747 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10751 enable_perfevent
=false
10756 if test "$do_perfevent" != "check" -a "$enable_perfevent" != "true"
10758 as_fn_error $?
"libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10760 pmda_perfevent
=$enable_perfevent
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10768 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10769 PMDA_PERFEVENT
=$pmda_perfevent
10771 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; }; fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10778 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 #include <rpm/header.h>
10785 (void)HEADERGET_EXT;
10790 if ac_fn_c_try_compile
"$LINENO"; then :
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10792 $as_echo "yes" >&6; }
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10800 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10803 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805 $as_echo "no" >&6; }; fi
10809 for ac_prog
in qshape
10811 # Extract the first word of "$ac_prog", so it can be a program name with args.
10812 set dummy
$ac_prog; ac_word
=$2
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10814 $as_echo_n "checking for $ac_word... " >&6; }
10815 if ${ac_cv_prog_QSHAPE+:} false
; then :
10816 $as_echo_n "(cached) " >&6
10818 if test -n "$QSHAPE"; then
10819 ac_cv_prog_QSHAPE
="$QSHAPE" # Let the user override the test.
10821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10822 as_dummy
="path=$PATH:/usr/sbin"
10823 for as_dir
in $as_dummy
10826 test -z "$as_dir" && as_dir
=.
10827 for ac_exec_ext
in '' $ac_executable_extensions; do
10828 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10829 ac_cv_prog_QSHAPE
="$ac_prog"
10830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839 QSHAPE
=$ac_cv_prog_QSHAPE
10840 if test -n "$QSHAPE"; then
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10842 $as_echo "$QSHAPE" >&6; }
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10849 test -n "$QSHAPE" && break
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10853 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10854 if test -n "$QSHAPE"
10858 for script in /usr
/share
/doc
/packages
/postfix-doc
/auxiliary
/qshape
/qshape.pl
10860 if test -f "$script"
10867 PMDA_POSTFIX
=$pmda_postfix
10869 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10870 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }; fi
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10876 $as_echo_n "checking for libmicrohttpd... " >&6; }
10878 if test -n "$libmicrohttpd_CFLAGS"; then
10879 pkg_cv_libmicrohttpd_CFLAGS
="$libmicrohttpd_CFLAGS"
10880 elif test -n "$PKG_CONFIG"; then
10881 if test -n "$PKG_CONFIG" && \
10882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10883 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10886 test $ac_status = 0; }; then
10887 pkg_cv_libmicrohttpd_CFLAGS
=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10888 test "x$?" != "x0" && pkg_failed
=yes
10895 if test -n "$libmicrohttpd_LIBS"; then
10896 pkg_cv_libmicrohttpd_LIBS
="$libmicrohttpd_LIBS"
10897 elif test -n "$PKG_CONFIG"; then
10898 if test -n "$PKG_CONFIG" && \
10899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10900 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10903 test $ac_status = 0; }; then
10904 pkg_cv_libmicrohttpd_LIBS
=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10905 test "x$?" != "x0" && pkg_failed
=yes
10915 if test $pkg_failed = yes; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10920 _pkg_short_errors_supported
=yes
10922 _pkg_short_errors_supported
=no
10924 if test $_pkg_short_errors_supported = yes; then
10925 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10927 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10929 # Put the nasty error message in config.log where it belongs
10930 echo "$libmicrohttpd_PKG_ERRORS" >&5
10932 have_libmicrohttpd
=false
10933 elif test $pkg_failed = untried
; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10936 have_libmicrohttpd
=false
10938 libmicrohttpd_CFLAGS
=$pkg_cv_libmicrohttpd_CFLAGS
10939 libmicrohttpd_LIBS
=$pkg_cv_libmicrohttpd_LIBS
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10941 $as_echo "yes" >&6; }
10942 have_libmicrohttpd
=true
10944 HAVE_LIBMICROHTTPD
=$have_libmicrohttpd
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10950 $as_echo_n "checking for cairo... " >&6; }
10952 if test -n "$cairo_CFLAGS"; then
10953 pkg_cv_cairo_CFLAGS
="$cairo_CFLAGS"
10954 elif test -n "$PKG_CONFIG"; then
10955 if test -n "$PKG_CONFIG" && \
10956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10957 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10960 test $ac_status = 0; }; then
10961 pkg_cv_cairo_CFLAGS
=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10962 test "x$?" != "x0" && pkg_failed
=yes
10969 if test -n "$cairo_LIBS"; then
10970 pkg_cv_cairo_LIBS
="$cairo_LIBS"
10971 elif test -n "$PKG_CONFIG"; then
10972 if test -n "$PKG_CONFIG" && \
10973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10974 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10977 test $ac_status = 0; }; then
10978 pkg_cv_cairo_LIBS
=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10979 test "x$?" != "x0" && pkg_failed
=yes
10989 if test $pkg_failed = yes; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10993 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10994 _pkg_short_errors_supported
=yes
10996 _pkg_short_errors_supported
=no
10998 if test $_pkg_short_errors_supported = yes; then
10999 cairo_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
11001 cairo_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
11003 # Put the nasty error message in config.log where it belongs
11004 echo "$cairo_PKG_ERRORS" >&5
11007 elif test $pkg_failed = untried
; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11012 cairo_CFLAGS
=$pkg_cv_cairo_CFLAGS
11013 cairo_LIBS
=$pkg_cv_cairo_LIBS
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015 $as_echo "yes" >&6; }
11018 HAVE_CAIRO
=$have_cairo
11021 enable_webapi
=false
11022 if test "x$do_webapi" != "xno"; then :
11026 if test "$have_libmicrohttpd" != "true"
11028 enable_webapi
=false
11029 test "$do_webapi" != "check" && \
11030 as_fn_error $?
"libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
11031 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
11033 enable_webapi
=false
11034 test "$do_webapi" != "check" && \
11035 as_fn_error $?
"C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
11041 enable_manager
=false
11042 if test "x$do_manager" != "xno"; then :
11044 enable_manager
=true
11046 if test "$target_os" = "mingw"
11048 enable_manager
=false
11049 test "$do_manager" != "check" && \
11050 as_fn_error $?
"MinGW build, cannot enable daemon manager" "$LINENO" 5
11051 elif test "x$cxx" = "x"
11053 enable_manager
=false
11054 test "$do_manager" != "check" && \
11055 as_fn_error $?
"C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
11058 $as_echo_n "checking compilation features for daemon manager... " >&6; }
11059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 #ifndef _XOPEN_SOURCE
11062 #define _XOPEN_SOURCE 600
11074 if ac_fn_c_try_compile
"$LINENO"; then :
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076 $as_echo "yes" >&6; }
11078 enable_manager
=false
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11087 enable_selinux
=false
11088 if test "x$do_selinux" != "xno"; then :
11090 if test -f /usr
/share
/selinux
/devel
/Makefile
11092 enable_selinux
=true
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11104 $as_echo_n "checking return type of signal handlers... " >&6; }
11105 if ${ac_cv_type_signal+:} false
; then :
11106 $as_echo_n "(cached) " >&6
11108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11110 #include <sys/types.h>
11111 #include <signal.h>
11116 return *(signal (0, 0)) (0) == 1;
11121 if ac_fn_c_try_compile
"$LINENO"; then :
11122 ac_cv_type_signal
=int
11124 ac_cv_type_signal
=void
11126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11129 $as_echo "$ac_cv_type_signal" >&6; }
11131 cat >>confdefs.h
<<_ACEOF
11132 #define RETSIGTYPE $ac_cv_type_signal
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
11137 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
11138 if ${ac_cv_func_wait3_rusage+:} false
; then :
11139 $as_echo_n "(cached) " >&6
11141 if test "$cross_compiling" = yes; then :
11142 ac_cv_func_wait3_rusage
=no
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146 $ac_includes_default
11147 #include <sys/time.h>
11148 #include <sys/resource.h>
11149 #include <sys/wait.h>
11150 /* HP-UX has wait3 but does not fill in rusage at all. */
11156 /* Use a field that we can force nonzero --
11157 voluntary context switches.
11158 For systems like NeXT and OSF/1 that don't set it,
11159 also use the system CPU time. And page faults (I/O) for Linux. */
11161 r.ru_stime.tv_sec = 0;
11162 r.ru_stime.tv_usec = 0;
11163 r.ru_majflt = r.ru_minflt = 0;
11166 case 0: /* Child. */
11167 sleep(1); /* Give up the CPU. */
11170 case -1: /* What can we do? */
11173 default: /* Parent. */
11175 /* Avoid "text file busy" from rm on fast HP-UX machines. */
11177 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
11178 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
11182 if ac_fn_c_try_run
"$LINENO"; then :
11183 ac_cv_func_wait3_rusage
=yes
11185 ac_cv_func_wait3_rusage
=no
11187 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11188 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
11193 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
11194 if test $ac_cv_func_wait3_rusage = yes; then
11196 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
11200 for ac_func
in vprintf
11202 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
11203 if test "x$ac_cv_func_vprintf" = xyes
; then :
11204 cat >>confdefs.h
<<_ACEOF
11205 #define HAVE_VPRINTF 1
11208 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
11209 if test "x$ac_cv_func__doprnt" = xyes
; then :
11211 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11219 for ac_func
in mktime nanosleep
usleep unsetenv
11221 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11222 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11223 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11224 cat >>confdefs.h
<<_ACEOF
11225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11231 for ac_func
in select socket gethostname getpeerucred getpeereid
11233 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11235 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11236 cat >>confdefs.h
<<_ACEOF
11237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11243 for ac_func
in uname syslog __clone pipe2 fcntl ioctl
11245 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11247 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11248 cat >>confdefs.h
<<_ACEOF
11249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11255 for ac_func
in prctl setlinebuf waitpid atexit
kill
11257 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11258 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11259 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11260 cat >>confdefs.h
<<_ACEOF
11261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11267 for ac_func
in chown fchmod getcwd scandir mkstemp
11269 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11270 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11271 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11272 cat >>confdefs.h
<<_ACEOF
11273 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11279 for ac_func
in brk sbrk posix_memalign memalign valloc
11281 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11282 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11283 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11284 cat >>confdefs.h
<<_ACEOF
11285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11291 for ac_func
in signal sighold sigrelse tcgetattr
11293 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11294 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11295 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11296 cat >>confdefs.h
<<_ACEOF
11297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11303 for ac_func
in regex regcmp regexec regcomp
11305 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11306 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11307 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11308 cat >>confdefs.h
<<_ACEOF
11309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11315 for ac_func
in strtod strtol strtoll strtoull strndup strchrnul
11317 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11318 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11319 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11320 cat >>confdefs.h
<<_ACEOF
11321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11327 for ac_func
in getuid getgid
11329 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11330 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11331 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11332 cat >>confdefs.h
<<_ACEOF
11333 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11339 for ac_func
in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11341 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11342 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11343 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11344 cat >>confdefs.h
<<_ACEOF
11345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11351 for ac_func
in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11353 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11354 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11355 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11356 cat >>confdefs.h
<<_ACEOF
11357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11363 for ac_func
in sysinfo trace_back_stack backtrace
11365 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11366 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11367 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11368 cat >>confdefs.h
<<_ACEOF
11369 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11375 for ac_func
in sendmsg recvmsg setns
11377 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11379 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11380 cat >>confdefs.h
<<_ACEOF
11381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11388 if test $target_os != linux
-a $target_os != freebsd
-a $target_os != kfreebsd
-a $target_os != netbsd
; then
11389 for ac_func
in readdir64
11391 ac_fn_c_check_func
"$LINENO" "readdir64" "ac_cv_func_readdir64"
11392 if test "x$ac_cv_func_readdir64" = xyes
; then :
11393 cat >>confdefs.h
<<_ACEOF
11394 #define HAVE_READDIR64 1
11402 if test $target_os = solaris
11404 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11405 if test "x$ac_cv_type___int32_t" = xyes
; then :
11409 cat >>confdefs.h
<<_ACEOF
11410 #define __int32_t int32_t
11415 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11416 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11420 cat >>confdefs.h
<<_ACEOF
11421 #define __uint32_t uint32_t
11426 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11427 if test "x$ac_cv_type___int64_t" = xyes
; then :
11431 cat >>confdefs.h
<<_ACEOF
11432 #define __int64_t int64_t
11437 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11438 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11442 cat >>confdefs.h
<<_ACEOF
11443 #define __uint64_t uint64_t
11448 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11449 if test "x$ac_cv_type_uint_t" = xyes
; then :
11453 cat >>confdefs.h
<<_ACEOF
11454 #define uint_t u_int32_t
11460 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11461 if test "x$ac_cv_type___int32_t" = xyes
; then :
11465 cat >>confdefs.h
<<_ACEOF
11466 #define __int32_t int
11471 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11472 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11476 cat >>confdefs.h
<<_ACEOF
11477 #define __uint32_t unsigned int
11482 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11483 if test "x$ac_cv_type___int64_t" = xyes
; then :
11487 cat >>confdefs.h
<<_ACEOF
11488 #define __int64_t long long
11493 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11494 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11498 cat >>confdefs.h
<<_ACEOF
11499 #define __uint64_t unsigned long long
11504 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11505 if test "x$ac_cv_type_uint_t" = xyes
; then :
11509 cat >>confdefs.h
<<_ACEOF
11510 #define uint_t unsigned int
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11518 $as_echo_n "checking for __psint_t ... " >&6; }
11519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 #include <sys/types.h>
11523 #include <stdlib.h>
11524 #include <stddef.h>
11534 if ac_fn_c_try_compile
"$LINENO"; then :
11536 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11546 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11550 #include <stddef.h>
11551 #ifdef HAVE_MALLOC_H
11552 #include <malloc.h>
11563 if ac_fn_c_try_compile
"$LINENO"; then :
11565 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11567 $as_echo "yes" >&6; }
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11575 $as_echo_n "checking for uid_t ... " >&6; }
11576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11579 #include <sys/types.h>
11592 if ac_fn_c_try_compile
"$LINENO"; then :
11594 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11596 $as_echo "yes" >&6; }
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11603 $as_echo_n "checking for gid_t ... " >&6; }
11604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11607 #include <sys/types.h>
11620 if ac_fn_c_try_compile
"$LINENO"; then :
11622 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11624 $as_echo "yes" >&6; }
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627 $as_echo "no" >&6; }
11629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11631 $as_echo_n "checking for SID ... " >&6; }
11632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11635 #ifdef HAVE_WINDOWS_H
11636 #include <windows.h>
11647 if ac_fn_c_try_compile
"$LINENO"; then :
11649 $as_echo "#define HAVE_SID 1" >>confdefs.h
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11651 $as_echo "yes" >&6; }
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11659 $as_echo_n "checking for socklen_t ... " >&6; }
11660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11663 #include <sys/types.h>
11664 #ifdef HAVE_SYS_SOCKET_H
11665 #include <sys/socket.h>
11676 if ac_fn_c_try_compile
"$LINENO"; then :
11678 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11680 $as_echo "yes" >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11700 if ac_fn_c_try_compile
"$LINENO"; then :
11702 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 #include <stdlib.h>
11711 #include <unistd.h>
11716 char **x = _environ;
11721 if ac_fn_c_try_link
"$LINENO"; then :
11723 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11726 rm -f core conftest.err conftest.
$ac_objext \
11727 conftest
$ac_exeext conftest.
$ac_ext
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11730 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11734 #ifdef HAVE_SYS_PRCTL_H
11735 #include <sys/prctl.h>
11741 int i = PR_TERMCHILD;
11746 if ac_fn_c_try_compile
"$LINENO"; then :
11748 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750 $as_echo "yes" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11758 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11762 #ifdef HAVE_SYS_PRCTL_H
11763 #include <sys/prctl.h>
11769 int i = PR_SET_PDEATHSIG;
11774 if ac_fn_c_try_compile
"$LINENO"; then :
11776 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11778 $as_echo "yes" >&6; }
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11786 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11787 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
11788 $as_echo_n "(cached) " >&6
11790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11792 #include <sys/types.h>
11793 #include <termios.h>
11799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11800 $EGREP "yes" >/dev
/null
2>&1; then :
11801 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
11803 ac_cv_sys_tiocgwinsz_in_termios_h
=no
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11809 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11811 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11813 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11814 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
11815 $as_echo_n "(cached) " >&6
11817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11819 #include <sys/types.h>
11820 #include <sys/ioctl.h>
11826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11827 $EGREP "yes" >/dev
/null
2>&1; then :
11828 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
11830 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11836 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11838 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11840 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11847 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11848 save_CFLAGS
="$CFLAGS"
11850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11861 if ac_fn_c_try_link
"$LINENO"; then :
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863 $as_echo "yes" >&6; }
11864 rdynamic_flag
=-rdynamic
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11871 rm -f core conftest.err conftest.
$ac_objext \
11872 conftest
$ac_exeext conftest.
$ac_ext
11873 CFLAGS
="$save_CFLAGS"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11878 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11879 cat <<End-of-File >conftest.c
11880 #include <stdlib.h>
11881 #include <unistd.h>
11882 #include <dirent.h>
11884 my_select(const struct dirent *foo) { return 0; }
11885 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11887 (eval $ac_compile) 2>conftest.out
11888 cat conftest.out
>&5
11889 if test -s conftest.out
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11895 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11903 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11904 cat <<End-of-File >conftest.c
11905 #include <stdlib.h>
11906 #include <unistd.h>
11907 #include <dirent.h>
11908 int main() { struct dirent d; d.d_off = 0; }
11910 (eval $ac_compile) 2>conftest.out
11911 cat conftest.out
>&5
11912 if test -s conftest.out
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11918 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11921 $as_echo "yes" >&6; }
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11926 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11927 if test "$cross_compiling" = "yes"; then
11928 ans
=$printf_p_prefix
11929 echo "cross-compile -> \"$ans\"" >&5
11931 cat <<End-of-File >conftest.c
11933 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11935 (eval $ac_compile) 2>&5
11936 (eval $ac_link) 2>&5
11938 echo "./conftest -> \"$ans\"" >&5
11944 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11947 $as_echo "yes" >&6; }
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11954 rm -rf conftest conftest.
*
11958 # need to deal with this sort of cpp output ...
11959 # typedef long pid_t;
11960 # typedef unsigned int pid_t;
11961 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11962 # __extension__ typedef int pid_t;
11968 # typedef ... *pid;
11969 # and chaining of the form
11970 # typedef long __pid_t;
11971 # typedef __pid_t pid_t;
11973 _raw
=`$CPP conftest.c \
11975 -e 's/[ ]__attribute__ ((.*));/;/' \
11976 -e 's/__extension__[ ][ ]*//' \
11978 /bozo/ { print; next }
11979 $1 == "typedef" { printf "%s",$0
11985 if ($0 ~ /{/) depth = 1
11988 wantsemi == 1 { printf " %s",$0
11989 if ($0 ~ /{/) depth++
11991 if ($0 ~ /}/) depth--
11992 if (depth > 0) next
12005 $1 == "typedef" { map[$NF] = ""
12006 for (i = 2; i < NF; i++) {
12010 map[$NF] = map[$NF] " " $i
12012 print $NF " -> " map[$NF] >"conftest.debug"
12015 $2 == "bozo" { t = $1
12016 printf "best guess: %s",t >"conftest.debug"
12017 while (map[t] != "") {
12019 printf " -> %s",t >"conftest.debug"
12021 print "" >"conftest.debug"
12030 unsigned|
'unsigned int')
12036 'long long'|
'long long int')
12037 if test $target_os = mingw
; then
12043 'unsigned long'|
'unsigned long int'|
'long unsigned int')
12046 'unsigned long long'|
'unsigned long long int')
12047 if test $target_os = mingw
; then
12053 *\
*) # pointer to a something
12056 struct\
*) # not much can be done here ...
12061 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
12062 echo "... typedef mapping ..."
12064 rm -rf conftest conftest.
*
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
12071 $as_echo_n "checking printf type for pid_t... " >&6; }
12072 if test "$cross_compiling" = "yes"; then
12073 ans
=$printf_fmt_pid
12074 echo "cross-compile -> \"$ans\"" >&5
12077 cat <<End-of-File >conftest.c
12078 #include <sys/types.h>
12079 #include <unistd.h>
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
12086 $as_echo "$fmt_pid" >&6; }
12088 rm -rf conftest.c conftest.debug
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
12091 $as_echo_n "checking printf type for int64_t ... " >&6; }
12092 if test "$cross_compiling" = "yes"; then
12093 ans
=$printf_fmt_int64
12094 echo "cross-compile -> \"$ans\"" >&5
12096 cat <<End-of-File >conftest.c
12098 #include <stdint.h>
12099 #include <inttypes.h>
12102 printf("\"%s\"\n", __PRI64_PREFIX "d");
12107 (eval $ac_link) 2>&5
12108 if test -x .
/conftest
12111 echo "./conftest -> \"$ans\"" >&5
12115 cat <<End-of-File >conftest.c
12117 #include <stdint.h>
12118 #include <string.h>
12122 int64_t bozo = 0x12345678abcdLL;
12123 sprintf(buf, "%lx", bozo);
12124 if (strcmp(buf, "12345678abcd") == 0)
12125 printf("\"ld\"\n");
12127 sprintf(buf, "%llx", bozo);
12128 if (strcmp(buf, "12345678abcd") == 0)
12129 printf("\"lld\"\n");
12134 (eval $ac_link) 2>&5
12135 if test -x .
/conftest
12138 echo "./conftest -> \"$ans\"" >&5
12144 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
12145 rm -rf conftest conftest.
*
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
12150 $as_echo "\"$fmt_int64\"" >&6; }
12152 fmt_uint64
=`echo $fmt_int64 | sed -e 's/d"/u"/'`
12154 rm -rf conftest.
* conftest
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
12157 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
12158 if test "$cross_compiling" = "yes"; then
12160 echo "cross-compile -> \"$ans\"" >&5
12162 cat <<End-of-File >conftest.c
12164 #include <stdlib.h>
12167 long long int value = -1;
12168 value = strtol("1234567812345678", NULL, 16);
12169 if (value == 0x1234567812345678LL) {
12170 printf("strotol\n");
12173 value = strtoll("1234567812345678", NULL, 16);
12174 if (value == 0x1234567812345678LL) {
12175 printf("strtoll\n");
12181 (eval $ac_compile) 2>&5
12182 (eval $ac_link) 2>&5
12184 echo "./conftest -> \"$ans\"" >&5
12189 $as_echo "#define strtoint64 strtol" >>confdefs.h
12191 $as_echo "#define strtouint64 strtoul" >>confdefs.h
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
12194 $as_echo "strtol" >&6; }
12197 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12199 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
12202 $as_echo "strtoll" >&6; }
12205 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12207 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
12210 $as_echo "assuming strtoll" >&6; }
12213 rm -rf conftest conftest.
*
12215 if test "$do_threads" = "check" -o "$do_threads" = "yes"
12217 for ac_header
in pthread.h
12219 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12220 if test "x$ac_cv_header_pthread_h" = xyes
; then :
12221 cat >>confdefs.h
<<_ACEOF
12222 #define HAVE_PTHREAD_H 1
12227 if test "$do_threads" = "yes"
12229 as_fn_error $?
"cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
12238 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
12239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 #include <pthread.h>
12245 pthread_mutex_t mymutex;
12250 if ac_fn_c_try_compile
"$LINENO"; then :
12252 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254 $as_echo "yes" >&6; }
12257 if test "$do_threads" = "yes"
12259 as_fn_error $?
"cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
12269 $as_echo_n "checking where pthread_create() is defined... " >&6; }
12270 for cand
in "" pthreads pthread
; do
12274 LIBS
=`echo $LIBS -l$cand`
12276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 #include <pthread.h>
12285 pthread_create(NULL, NULL, NULL, NULL);
12291 if ac_fn_c_try_link
"$LINENO"; then :
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12293 $as_echo "lib${cand:-c}" >&6; }
12296 lib_for_pthreads
="$cand"
12298 lib_for_pthreads
="-l$cand"
12303 rm -f core conftest.err conftest.
$ac_objext \
12304 conftest
$ac_exeext conftest.
$ac_ext
12309 if test "$ac_cv_header_pthread_h" = "yes"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12312 $as_echo_n "checking printf type for pthread_t... " >&6; }
12313 cat <<End-of-File >conftest.c
12314 #include <pthread.h>
12318 fmt_pthread
="$_fmt"
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12320 $as_echo "$fmt_pthread" >&6; }
12322 rm -rf conftest.c conftest.debug
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12325 $as_echo_n "checking if compiler supports __thread... " >&6; }
12326 if test $target_os = netbsd
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330 #include <pthread.h>
12331 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12344 if ac_fn_c_try_compile
"$LINENO"; then :
12346 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; }
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12357 #include <pthread.h>
12367 if ac_fn_c_try_compile
"$LINENO"; then :
12369 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12371 $as_echo "yes" >&6; }
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12380 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 #include <pthread.h>
12387 pthread_barrier_t mybarrier;
12392 if ac_fn_c_try_compile
"$LINENO"; then :
12394 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12396 $as_echo "yes" >&6; }
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12406 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12407 if test "$cross_compiling" = "yes"; then
12408 ans
=$sizeof_suseconds_t
12409 echo "cross-compile -> \"$ans\"" >&5
12411 cat <<End-of-File >conftest.c
12412 #include <sys/time.h>
12413 main() { printf("%d", (int)sizeof(suseconds_t)); }
12415 (eval $ac_compile) 2>&5
12416 (eval $ac_link) 2>&5
12418 echo "./conftest -> \"$ans\"" >&5
12419 rm -rf conftest conftest.
*
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12422 $as_echo "$ans" >&6; }
12424 cat >>confdefs.h
<<_ACEOF
12425 #define SIZEOF_SUSECONDS_T $ans
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12430 $as_echo_n "checking sizeof time_t... " >&6; }
12431 if test "$cross_compiling" = "yes"; then
12433 echo "cross-compile -> \"$ans\"" >&5
12435 cat <<End-of-File >conftest.c
12436 #include <sys/time.h>
12437 main() { printf("%d", (int)sizeof(time_t)); }
12439 (eval $ac_compile) 2>&5
12440 (eval $ac_link) 2>&5
12442 echo "./conftest -> \"$ans\"" >&5
12443 rm -rf conftest conftest.
*
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12446 $as_echo "$ans" >&6; }
12448 cat >>confdefs.h
<<_ACEOF
12449 #define SIZEOF_TIME_T $ans
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12454 $as_echo_n "checking sizeof long... " >&6; }
12455 if test "$cross_compiling" = "yes"; then
12457 echo "cross-compile -> \"$ans\"" >&5
12459 cat <<End-of-File >conftest.c
12461 main() { printf("%d", (int)sizeof(long)); }
12463 (eval $ac_compile) 2>&5
12464 (eval $ac_link) 2>&5
12466 echo "./conftest -> \"$ans\"" >&5
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12469 $as_echo "$ans" >&6; }
12470 if test "$ans" = 4; then
12472 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12474 elif test "$ans" = 8; then
12476 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12480 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12481 echo "sizeof(char *) -> $ans"
12482 rm -rf conftest conftest.
*
12485 rm -rf conftest conftest.
*
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12488 $as_echo_n "checking sizeof pointer... " >&6; }
12489 if test "$cross_compiling" = "yes"; then
12490 ans
=$sizeof_pointer
12491 echo "cross-compile -> \"$ans\"" >&5
12493 cat <<End-of-File >conftest.c
12495 main() { printf("%d", (int)sizeof(char *)); }
12497 (eval $ac_compile) 2>&5
12498 (eval $ac_link) 2>&5
12500 echo "./conftest -> \"$ans\"" >&5
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12503 $as_echo "$ans" >&6; }
12504 if test "$ans" = 4; then
12506 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12509 elif test "$ans" = 8; then
12511 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12516 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12517 echo "sizeof(char *) -> $ans"
12518 rm -rf conftest conftest.
*
12521 rm -rf conftest conftest.
*
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12524 $as_echo_n "checking sizeof int... " >&6; }
12525 if test "$cross_compiling" = "yes"; then
12527 echo "cross-compile -> \"$ans\"" >&5
12529 cat <<End-of-File >conftest.c
12531 main() { printf("%d", (int)sizeof(int)); }
12533 (eval $ac_compile) 2>&5
12534 (eval $ac_link) 2>&5
12536 echo "./conftest -> \"$ans\"" >&5
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12539 $as_echo "$ans" >&6; }
12540 if test "$ans" != 4
12543 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12544 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12545 echo " the over-the-wire PDU formats"
12546 rm -rf conftest conftest.
*
12549 rm -rf conftest conftest.
*
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12552 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12553 if test "$cross_compiling" = "yes"; then
12554 ans
=$bit_field_scheme
12555 echo "cross-compile -> \"$ans\"" >&5
12557 cat <<End-of-File >conftest.c
12558 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12559 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12561 (eval $ac_compile) 2>&5
12562 (eval $ac_link) 2>&5
12564 echo "./conftest -> \"$ans\"" >&5
12569 # left-to-right starting from MSB (SGI cc on MIPS), or
12570 # left-to-right ending at LSB
12572 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12578 # right-to-left ending at MSB, or
12579 # right-to-left starting from LSB (gcc in Intel)
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12585 $as_echo "unknown" >&6; }
12586 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12587 rm -f conftest conftest.
*
12591 rm -rf conftest conftest.
*
12593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12596 #include <stdlib.h>
12597 #include <unistd.h>
12604 double y = (double)x;
12610 if ac_fn_c_try_link
"$LINENO"; then :
12612 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12615 rm -f core conftest.err conftest.
$ac_objext \
12616 conftest
$ac_exeext conftest.
$ac_ext
12618 for ac_func
in basename
12620 ac_fn_c_check_func
"$LINENO" "basename" "ac_cv_func_basename"
12621 if test "x$ac_cv_func_basename" = xyes
; then :
12622 cat >>confdefs.h
<<_ACEOF
12623 #define HAVE_BASENAME 1
12629 if test $ac_cv_func_basename = yes
12632 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12635 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12637 lib_for_basename
=""
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12640 $as_echo_n "checking for basename in -lgen... " >&6; }
12641 if ${ac_cv_lib_gen_basename+:} false
; then :
12642 $as_echo_n "(cached) " >&6
12644 ac_check_lib_save_LIBS
=$LIBS
12646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12659 return basename ();
12664 if ac_fn_c_try_link
"$LINENO"; then :
12665 ac_cv_lib_gen_basename
=yes
12667 ac_cv_lib_gen_basename
=no
12669 rm -f core conftest.err conftest.
$ac_objext \
12670 conftest
$ac_exeext conftest.
$ac_ext
12671 LIBS
=$ac_check_lib_save_LIBS
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12674 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12675 if test "x$ac_cv_lib_gen_basename" = xyes
; then :
12676 cat >>confdefs.h
<<_ACEOF
12677 #define HAVE_LIBGEN 1
12684 if test $ac_cv_lib_gen_basename = yes
12687 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12690 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12692 lib_for_basename
="-lgen"
12694 lib_for_basename
="-lpcp"
12699 lib_for_clock_gettime
=
12700 for ac_func
in clock_gettime
12702 ac_fn_c_check_func
"$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12703 if test "x$ac_cv_func_clock_gettime" = xyes
; then :
12704 cat >>confdefs.h
<<_ACEOF
12705 #define HAVE_CLOCK_GETTIME 1
12711 if test $ac_cv_func_clock_gettime = no
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12714 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12715 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
12716 $as_echo_n "(cached) " >&6
12718 ac_check_lib_save_LIBS
=$LIBS
12720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12729 char clock_gettime ();
12733 return clock_gettime ();
12738 if ac_fn_c_try_link
"$LINENO"; then :
12739 ac_cv_lib_rt_clock_gettime
=yes
12741 ac_cv_lib_rt_clock_gettime
=no
12743 rm -f core conftest.err conftest.
$ac_objext \
12744 conftest
$ac_exeext conftest.
$ac_ext
12745 LIBS
=$ac_check_lib_save_LIBS
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12748 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12749 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
12750 cat >>confdefs.h
<<_ACEOF
12751 #define HAVE_LIBRT 1
12758 if test $ac_cv_lib_rt_clock_gettime = yes
12761 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12769 for ac_func
in dlopen
12771 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12772 if test "x$ac_cv_func_dlopen" = xyes
; then :
12773 cat >>confdefs.h
<<_ACEOF
12774 #define HAVE_DLOPEN 1
12780 if test $ac_cv_func_dlopen = no
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12783 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12784 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12785 $as_echo_n "(cached) " >&6
12787 ac_check_lib_save_LIBS
=$LIBS
12789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12807 if ac_fn_c_try_link
"$LINENO"; then :
12808 ac_cv_lib_dl_dlopen
=yes
12810 ac_cv_lib_dl_dlopen
=no
12812 rm -f core conftest.err conftest.
$ac_objext \
12813 conftest
$ac_exeext conftest.
$ac_ext
12814 LIBS
=$ac_check_lib_save_LIBS
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12817 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12818 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12819 cat >>confdefs.h
<<_ACEOF
12820 #define HAVE_LIBDL 1
12827 if test $ac_cv_lib_dl_dlopen = yes
12830 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12832 lib_for_dlopen
=-ldl
12838 for ac_func
in flog10
12840 ac_fn_c_check_func
"$LINENO" "flog10" "ac_cv_func_flog10"
12841 if test "x$ac_cv_func_flog10" = xyes
; then :
12842 cat >>confdefs.h
<<_ACEOF
12843 #define HAVE_FLOG10 1
12849 if test $ac_cv_func_flog10 = no
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12852 $as_echo_n "checking for flog10 in -lm... " >&6; }
12853 if ${ac_cv_lib_m_flog10+:} false
; then :
12854 $as_echo_n "(cached) " >&6
12856 ac_check_lib_save_LIBS
=$LIBS
12858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12876 if ac_fn_c_try_link
"$LINENO"; then :
12877 ac_cv_lib_m_flog10
=yes
12879 ac_cv_lib_m_flog10
=no
12881 rm -f core conftest.err conftest.
$ac_objext \
12882 conftest
$ac_exeext conftest.
$ac_ext
12883 LIBS
=$ac_check_lib_save_LIBS
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12886 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12887 if test "x$ac_cv_lib_m_flog10" = xyes
; then :
12888 cat >>confdefs.h
<<_ACEOF
12889 #define HAVE_LIBM 1
12896 if test $ac_cv_lib_m_flog10 = yes
12899 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12905 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12910 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
12911 if test "x$ac_cv_func_pow" = xyes
; then :
12912 cat >>confdefs.h
<<_ACEOF
12919 if test $ac_cv_func_pow = no
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12922 $as_echo_n "checking for pow in -lm... " >&6; }
12923 if ${ac_cv_lib_m_pow+:} false
; then :
12924 $as_echo_n "(cached) " >&6
12926 ac_check_lib_save_LIBS
=$LIBS
12928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12931 /* Override any GCC internal prototype to avoid an error.
12932 Use char because int might match the return type of a GCC
12933 builtin and then its argument prototype would still apply. */
12946 if ac_fn_c_try_link
"$LINENO"; then :
12947 ac_cv_lib_m_pow
=yes
12951 rm -f core conftest.err conftest.
$ac_objext \
12952 conftest
$ac_exeext conftest.
$ac_ext
12953 LIBS
=$ac_check_lib_save_LIBS
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12956 $as_echo "$ac_cv_lib_m_pow" >&6; }
12957 if test "x$ac_cv_lib_m_pow" = xyes
; then :
12958 cat >>confdefs.h
<<_ACEOF
12959 #define HAVE_LIBM 1
12966 if test $ac_cv_lib_m_pow = yes
12969 $as_echo "#define HAVE_POW 1" >>confdefs.h
12975 $as_echo "#define HAVE_POW 1" >>confdefs.h
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12979 $as_echo_n "checking for fpclassify()... " >&6; }
12980 ac_cv_func_fpclassify
=no
12981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12990 double x = 123.456;
12991 if (fpclassify(x) == FP_NAN) exit(1);
12997 if ac_fn_c_try_link
"$LINENO"; then :
12998 ac_cv_func_fpclassify
=yes
13000 rm -f core conftest.err conftest.
$ac_objext \
13001 conftest
$ac_exeext conftest.
$ac_ext
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
13003 $as_echo "$ac_cv_func_fpclassify" >&6; }
13004 if test $ac_cv_func_fpclassify = no
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
13007 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
13010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13019 double x = 123.456;
13020 if (fpclassify(x) == FP_NAN) exit(1);
13026 if ac_fn_c_try_link
"$LINENO"; then :
13027 ac_cv_func_fpclassify
=yes
13029 rm -f core conftest.err conftest.
$ac_objext \
13030 conftest
$ac_exeext conftest.
$ac_ext
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
13032 $as_echo "$ac_cv_func_fpclassify" >&6; }
13033 if test $ac_cv_func_fpclassify = yes
13039 if test $ac_cv_func_fpclassify = yes
13042 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
13045 for ac_func
in isnan
13047 ac_fn_c_check_func
"$LINENO" "isnan" "ac_cv_func_isnan"
13048 if test "x$ac_cv_func_isnan" = xyes
; then :
13049 cat >>confdefs.h
<<_ACEOF
13050 #define HAVE_ISNAN 1
13056 if test $ac_cv_func_isnan = no
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13059 $as_echo_n "checking for isnan in -lm... " >&6; }
13060 if ${ac_cv_lib_m_isnan+:} false
; then :
13061 $as_echo_n "(cached) " >&6
13063 ac_check_lib_save_LIBS
=$LIBS
13065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13068 /* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13083 if ac_fn_c_try_link
"$LINENO"; then :
13084 ac_cv_lib_m_isnan
=yes
13086 ac_cv_lib_m_isnan
=no
13088 rm -f core conftest.err conftest.
$ac_objext \
13089 conftest
$ac_exeext conftest.
$ac_ext
13090 LIBS
=$ac_check_lib_save_LIBS
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13093 $as_echo "$ac_cv_lib_m_isnan" >&6; }
13094 if test "x$ac_cv_lib_m_isnan" = xyes
; then :
13095 cat >>confdefs.h
<<_ACEOF
13096 #define HAVE_LIBM 1
13103 if test $ac_cv_lib_m_isnan = yes
13106 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13111 for ac_func
in isnanf
13113 ac_fn_c_check_func
"$LINENO" "isnanf" "ac_cv_func_isnanf"
13114 if test "x$ac_cv_func_isnanf" = xyes
; then :
13115 cat >>confdefs.h
<<_ACEOF
13116 #define HAVE_ISNANF 1
13122 if test $ac_cv_func_isnanf = no
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
13125 $as_echo_n "checking for isnanf in -lm... " >&6; }
13126 if ${ac_cv_lib_m_isnanf+:} false
; then :
13127 $as_echo_n "(cached) " >&6
13129 ac_check_lib_save_LIBS
=$LIBS
13131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13149 if ac_fn_c_try_link
"$LINENO"; then :
13150 ac_cv_lib_m_isnanf
=yes
13152 ac_cv_lib_m_isnanf
=no
13154 rm -f core conftest.err conftest.
$ac_objext \
13155 conftest
$ac_exeext conftest.
$ac_ext
13156 LIBS
=$ac_check_lib_save_LIBS
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
13159 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
13160 if test "x$ac_cv_lib_m_isnanf" = xyes
; then :
13161 cat >>confdefs.h
<<_ACEOF
13162 #define HAVE_LIBM 1
13169 if test $ac_cv_lib_m_isnanf = yes
13172 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
13180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13182 #include <signal.h>
13191 if ac_fn_c_try_link
"$LINENO"; then :
13193 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
13196 rm -f core conftest.err conftest.
$ac_objext \
13197 conftest
$ac_exeext conftest.
$ac_ext
13199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 #include <signal.h>
13205 int x = SA_SIGINFO;
13210 if ac_fn_c_try_link
"$LINENO"; then :
13212 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
13215 rm -f core conftest.err conftest.
$ac_objext \
13216 conftest
$ac_exeext conftest.
$ac_ext
13218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220 #include <signal.h>
13229 if ac_fn_c_try_link
"$LINENO"; then :
13231 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
13234 rm -f core conftest.err conftest.
$ac_objext \
13235 conftest
$ac_exeext conftest.
$ac_ext
13237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239 #include <signal.h>
13248 if ac_fn_c_try_link
"$LINENO"; then :
13250 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
13253 rm -f core conftest.err conftest.
$ac_objext \
13254 conftest
$ac_exeext conftest.
$ac_ext
13256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258 #include <signal.h>
13267 if ac_fn_c_try_link
"$LINENO"; then :
13269 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
13272 rm -f core conftest.err conftest.
$ac_objext \
13273 conftest
$ac_exeext conftest.
$ac_ext
13275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13277 #include <sys/wait.h>
13281 typedef void (*SIGRET)(int);
13282 SIGRET x = SIG_IGN;
13288 if ac_fn_c_try_link
"$LINENO"; then :
13290 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13293 rm -f core conftest.err conftest.
$ac_objext \
13294 conftest
$ac_exeext conftest.
$ac_ext
13296 have_stat_type
=false
13297 have_stat_name
=false
13298 if test $have_stat_name = false
13300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 #include <sys/stat.h>
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306 $EGREP "[ ]st_mtimespec" >/dev
/null
2>&1; then :
13307 have_stat_name
=true
;
13309 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13315 if test $have_stat_name = false
-a $target_os != darwin
-a $target_os != linux
-a $target_os != kfreebsd
-a $target_os != netbsd
13317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 #include <sys/stat.h>
13322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13323 $EGREP "[ ]st_mtime" >/dev
/null
2>&1; then :
13324 have_stat_name
=true
;
13326 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13332 if test $have_stat_type = false
13334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 #include <sys/stat.h>
13339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13340 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13341 have_stat_type
=true
;
13343 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13349 if test $have_stat_type = false
13351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 #include <sys/stat.h>
13356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13357 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13358 have_stat_type
=true
;
13360 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13366 if test $have_stat_type = false
13368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370 #include <sys/stat.h>
13373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13374 $EGREP "timespec[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13375 have_stat_type
=true
;
13377 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13383 if test $have_stat_type = false
13385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 #include <sys/stat.h>
13390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13391 $EGREP "time_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13392 have_stat_type
=true
;
13394 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13400 if test $have_stat_type = false
13402 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13403 rm -rf conftest conftest.
*
13408 pcp_etc_dir
=`eval echo $sysconfdir`
13409 pcp_etc_dir
=`eval echo $pcp_etc_dir`
13411 pcp_saslconf_dir
=`eval echo $sysconfdir/sasl2`
13412 pcp_saslconf_dir
=`eval echo $pcp_saslconf_dir`
13414 pcp_sysconf_dir
=`eval echo $sysconfdir/pcp`
13415 pcp_sysconf_dir
=`eval echo $pcp_sysconf_dir`
13417 pcp_pmcdconf_path
=$pcp_sysconf_dir/pmcd
/pmcd.conf
13418 pcp_pmcdrclocal_path
=$pcp_sysconf_dir/pmcd
/rc.
local
13419 pcp_pmcdoptions_path
=$pcp_sysconf_dir/pmcd
/pmcd.options
13420 pcp_pmwebdoptions_path
=$pcp_sysconf_dir/pmwebd
/pmwebd.options
13421 pcp_pmmgroptions_path
=$pcp_sysconf_dir/pmmgr
/pmmgr.options
13422 pcp_pmproxyoptions_path
=$pcp_sysconf_dir/pmproxy
/pmproxy.options
13423 pcp_pmiecontrol_path
=$pcp_sysconf_dir/pmie
/control
13424 pcp_pmsnapcontrol_path
=$pcp_sysconf_dir/pmsnap
/control
13425 pcp_pmloggercontrol_path
=$pcp_sysconf_dir/pmlogger
/control
13436 pcp_share_dir
=`eval echo $datarootdir/pcp`
13437 pcp_share_dir
=`eval echo $pcp_share_dir`
13440 pcp_binadm_dir
=`eval echo $libexecdir/pcp/bin`
13441 pcp_binadm_dir
=`eval echo $pcp_binadm_dir`
13444 pcp_var_dir
=`eval echo $localstatedir/lib/pcp`
13445 pcp_var_dir
=`eval echo $pcp_var_dir`
13449 # Check whether --with-configdir was given.
13450 if test "${with_configdir+set}" = set; then :
13451 withval
=$with_configdir; pcp_config_dir
=$withval
13453 pcp_config_dir
=$pcp_var_dir/config
13457 pcp_pmdas_dir
=$pcp_var_dir/pmdas
13460 pcp_selinux_dir
=$pcp_var_dir/selinux
13463 pcp_lib_dir
=`eval echo $libdir`
13464 pcp_lib_dir
=`eval echo $pcp_lib_dir`
13465 pcp_lib32_dir
=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13470 # Check whether --with-perl_installdirs was given.
13471 if test "${with_perl_installdirs+set}" = set; then :
13472 withval
=$with_perl_installdirs; perl_installdirs
=$withval
13474 perl_installdirs
=vendor
13477 perl_installdirs
=`eval echo $perl_installdirs`
13478 perl_installdirs
=`eval echo $perl_installdirs`
13481 # Check whether --with-perl_install_base was given.
13482 if test "${with_perl_install_base+set}" = set; then :
13483 withval
=$with_perl_install_base; perl_install_base
=$withval
13485 perl_install_base
=$prefix
13488 perl_install_base
=`eval echo $perl_install_base`
13489 perl_install_base
=`eval echo $perl_install_base`
13493 # Check whether --with-python_prefix was given.
13494 if test "${with_python_prefix+set}" = set; then :
13495 withval
=$with_python_prefix; python_prefix
=$withval
13497 python_prefix
=$prefix
13500 python_prefix
=`eval echo $python_prefix`
13501 python_prefix
=`eval echo $python_prefix`
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13505 $as_echo_n "checking for X... " >&6; }
13508 # Check whether --with-x was given.
13509 if test "${with_x+set}" = set; then :
13513 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13514 if test "x$with_x" = xno
; then
13515 # The user explicitly disabled X.
13518 case $x_includes,$x_libraries in #(
13519 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
13520 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
13521 $as_echo_n "(cached) " >&6
13523 # One or both of the vars are not set, and there is no cached value.
13524 ac_x_includes
=no ac_x_libraries
=no
13525 rm -f -r conftest.dir
13526 if mkdir conftest.dir
; then
13528 cat >Imakefile
<<'_ACEOF'
13530 @echo incroot='${INCROOT}'
13532 @echo usrlibdir='${USRLIBDIR}'
13534 @echo libdir='${LIBDIR}'
13536 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13537 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13538 for ac_var
in incroot usrlibdir libdir
; do
13539 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13541 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13542 for ac_extension
in a so sl dylib la dll
; do
13543 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13544 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13545 ac_im_usrlibdir
=$ac_im_libdir; break
13548 # Screen out bogus values from the imake configuration. They are
13549 # bogus both because they are the default anyway, and because
13550 # using them would break gcc on systems where it needs fixed includes.
13551 case $ac_im_incroot in
13552 /usr
/include
) ac_x_includes
= ;;
13553 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13555 case $ac_im_usrlibdir in
13556 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13557 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13561 rm -f -r conftest.dir
13564 # Standard set of common directories for X headers.
13565 # Check X11 before X11Rn because it is often a symlink to the current release.
13579 /usr/local/X11/include
13580 /usr/local/X11R7/include
13581 /usr/local/X11R6/include
13582 /usr/local/X11R5/include
13583 /usr/local/X11R4/include
13585 /usr/local/include/X11
13586 /usr/local/include/X11R7
13587 /usr/local/include/X11R6
13588 /usr/local/include/X11R5
13589 /usr/local/include/X11R4
13593 /usr/XFree86/include/X11
13597 /usr/unsupported/include
13598 /usr/athena/include
13599 /usr/local/x11r5/include
13600 /usr/lpp/Xamples/include
13602 /usr/openwin/include
13603 /usr/openwin/share/include'
13605 if test "$ac_x_includes" = no
; then
13606 # Guess where to find include files, by looking for Xlib.h.
13607 # First, try using that file with no special directory specified.
13608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610 #include <X11/Xlib.h>
13612 if ac_fn_c_try_cpp
"$LINENO"; then :
13613 # We can compile using X headers with no special include directory.
13616 for ac_dir
in $ac_x_header_dirs; do
13617 if test -r "$ac_dir/X11/Xlib.h"; then
13618 ac_x_includes
=$ac_dir
13623 rm -f conftest.err conftest.i conftest.
$ac_ext
13624 fi # $ac_x_includes = no
13626 if test "$ac_x_libraries" = no
; then
13627 # Check for the libraries.
13628 # See if we find them without any special options.
13629 # Don't add to $LIBS permanently.
13632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13634 #include <X11/Xlib.h>
13643 if ac_fn_c_try_link
"$LINENO"; then :
13645 # We can link X programs with no special library path.
13649 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13651 # Don't even attempt the hair of trying to link an X program!
13652 for ac_extension
in a so sl dylib la dll
; do
13653 if test -r "$ac_dir/libX11.$ac_extension"; then
13654 ac_x_libraries
=$ac_dir
13660 rm -f core conftest.err conftest.
$ac_objext \
13661 conftest
$ac_exeext conftest.
$ac_ext
13662 fi # $ac_x_libraries = no
13664 case $ac_x_includes,$ac_x_libraries in #(
13665 no
,* |
*,no |
*\'*)
13666 # Didn't find X, or a directory has "'" in its name.
13667 ac_cv_have_x
="have_x=no";; #(
13669 # Record where we found X for the cache.
13670 ac_cv_have_x
="have_x=yes\
13671 ac_x_includes='$ac_x_includes'\
13672 ac_x_libraries='$ac_x_libraries'"
13678 eval "$ac_cv_have_x"
13681 if test "$have_x" != yes; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13683 $as_echo "$have_x" >&6; }
13686 # If each of the values was on the command line, it overrides each guess.
13687 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13688 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13689 # Update the cache value to reflect the command line values.
13690 ac_cv_have_x
="have_x=yes\
13691 ac_x_includes='$x_includes'\
13692 ac_x_libraries='$x_libraries'"
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13694 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13697 if test "$no_x" = yes; then
13698 # Not all programs may use this symbol, but it does not hurt to define it.
13700 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13702 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
13704 if test -n "$x_includes"; then
13705 X_CFLAGS
="$X_CFLAGS -I$x_includes"
13708 # It would also be nice to do this for all -L options, not just this one.
13709 if test -n "$x_libraries"; then
13710 X_LIBS
="$X_LIBS -L$x_libraries"
13711 # For Solaris; some versions of Sun CC require a space after -R and
13712 # others require no space. Words are not sufficient . . . .
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13714 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13715 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
13716 ac_xsave_c_werror_flag
=$ac_c_werror_flag
13717 ac_c_werror_flag
=yes
13718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13729 if ac_fn_c_try_link
"$LINENO"; then :
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 $as_echo "no" >&6; }
13732 X_LIBS
="$X_LIBS -R$x_libraries"
13734 LIBS
="$ac_xsave_LIBS -R $x_libraries"
13735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13746 if ac_fn_c_try_link
"$LINENO"; then :
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13748 $as_echo "yes" >&6; }
13749 X_LIBS
="$X_LIBS -R $x_libraries"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13752 $as_echo "neither works" >&6; }
13754 rm -f core conftest.err conftest.
$ac_objext \
13755 conftest
$ac_exeext conftest.
$ac_ext
13757 rm -f core conftest.err conftest.
$ac_objext \
13758 conftest
$ac_exeext conftest.
$ac_ext
13759 ac_c_werror_flag
=$ac_xsave_c_werror_flag
13760 LIBS
=$ac_xsave_LIBS
13763 # Check for system-dependent libraries X programs must link with.
13764 # Do this before checking for the system-independent R6 libraries
13765 # (-lICE), since we may need -lsocket or whatever for X linking.
13767 if test "$ISC" = yes; then
13768 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
13770 # Martyn Johnson says this is needed for Ultrix, if the X
13771 # libraries were built with DECnet support. And Karl Berry says
13772 # the Alpha needs dnet_stub (dnet does not exist).
13773 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
13774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13783 char XOpenDisplay ();
13787 return XOpenDisplay ();
13792 if ac_fn_c_try_link
"$LINENO"; then :
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13796 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13797 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
13798 $as_echo_n "(cached) " >&6
13800 ac_check_lib_save_LIBS
=$LIBS
13801 LIBS
="-ldnet $LIBS"
13802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13805 /* Override any GCC internal prototype to avoid an error.
13806 Use char because int might match the return type of a GCC
13807 builtin and then its argument prototype would still apply. */
13815 return dnet_ntoa ();
13820 if ac_fn_c_try_link
"$LINENO"; then :
13821 ac_cv_lib_dnet_dnet_ntoa
=yes
13823 ac_cv_lib_dnet_dnet_ntoa
=no
13825 rm -f core conftest.err conftest.
$ac_objext \
13826 conftest
$ac_exeext conftest.
$ac_ext
13827 LIBS
=$ac_check_lib_save_LIBS
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13830 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13831 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
13832 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
13835 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13837 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13838 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
13839 $as_echo_n "(cached) " >&6
13841 ac_check_lib_save_LIBS
=$LIBS
13842 LIBS
="-ldnet_stub $LIBS"
13843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13846 /* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13856 return dnet_ntoa ();
13861 if ac_fn_c_try_link
"$LINENO"; then :
13862 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
13864 ac_cv_lib_dnet_stub_dnet_ntoa
=no
13866 rm -f core conftest.err conftest.
$ac_objext \
13867 conftest
$ac_exeext conftest.
$ac_ext
13868 LIBS
=$ac_check_lib_save_LIBS
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13871 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13872 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
13873 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
13878 rm -f core conftest.err conftest.
$ac_objext \
13879 conftest
$ac_exeext conftest.
$ac_ext
13880 LIBS
="$ac_xsave_LIBS"
13882 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13883 # to get the SysV transport functions.
13884 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13886 # The nsl library prevents programs from opening the X display
13887 # on Irix 5.2, according to T.E. Dickey.
13888 # The functions gethostbyname, getservbyname, and inet_addr are
13889 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13890 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13891 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
13895 if test $ac_cv_func_gethostbyname = no
; then
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13897 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13898 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
13899 $as_echo_n "(cached) " >&6
13901 ac_check_lib_save_LIBS
=$LIBS
13903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13906 /* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
13912 char gethostbyname ();
13916 return gethostbyname ();
13921 if ac_fn_c_try_link
"$LINENO"; then :
13922 ac_cv_lib_nsl_gethostbyname
=yes
13924 ac_cv_lib_nsl_gethostbyname
=no
13926 rm -f core conftest.err conftest.
$ac_objext \
13927 conftest
$ac_exeext conftest.
$ac_ext
13928 LIBS
=$ac_check_lib_save_LIBS
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13931 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13932 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
13933 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
13936 if test $ac_cv_lib_nsl_gethostbyname = no
; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13938 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13939 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
13940 $as_echo_n "(cached) " >&6
13942 ac_check_lib_save_LIBS
=$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. */
13953 char gethostbyname ();
13957 return gethostbyname ();
13962 if ac_fn_c_try_link
"$LINENO"; then :
13963 ac_cv_lib_bsd_gethostbyname
=yes
13965 ac_cv_lib_bsd_gethostbyname
=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_bsd_gethostbyname" >&5
13972 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13973 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
13974 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
13980 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13981 # socket/setsockopt and other routines are undefined under SCO ODT
13982 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13983 # on later versions), says Simon Leinen: it contains gethostby*
13984 # variants that don't use the name server (or something). -lsocket
13985 # must be given before -lnsl if both are needed. We assume that
13986 # if connect needs -lnsl, so does gethostbyname.
13987 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
13988 if test "x$ac_cv_func_connect" = xyes
; then :
13992 if test $ac_cv_func_connect = no
; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13994 $as_echo_n "checking for connect in -lsocket... " >&6; }
13995 if ${ac_cv_lib_socket_connect+:} false
; then :
13996 $as_echo_n "(cached) " >&6
13998 ac_check_lib_save_LIBS
=$LIBS
13999 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
14000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14003 /* Override any GCC internal prototype to avoid an error.
14004 Use char because int might match the return type of a GCC
14005 builtin and then its argument prototype would still apply. */
14018 if ac_fn_c_try_link
"$LINENO"; then :
14019 ac_cv_lib_socket_connect
=yes
14021 ac_cv_lib_socket_connect
=no
14023 rm -f core conftest.err conftest.
$ac_objext \
14024 conftest
$ac_exeext conftest.
$ac_ext
14025 LIBS
=$ac_check_lib_save_LIBS
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14028 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14029 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
14030 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
14035 # Guillermo Gomez says -lposix is necessary on A/UX.
14036 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
14037 if test "x$ac_cv_func_remove" = xyes
; then :
14041 if test $ac_cv_func_remove = no
; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14043 $as_echo_n "checking for remove in -lposix... " >&6; }
14044 if ${ac_cv_lib_posix_remove+:} false
; then :
14045 $as_echo_n "(cached) " >&6
14047 ac_check_lib_save_LIBS
=$LIBS
14048 LIBS
="-lposix $LIBS"
14049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14052 /* Override any GCC internal prototype to avoid an error.
14053 Use char because int might match the return type of a GCC
14054 builtin and then its argument prototype would still apply. */
14067 if ac_fn_c_try_link
"$LINENO"; then :
14068 ac_cv_lib_posix_remove
=yes
14070 ac_cv_lib_posix_remove
=no
14072 rm -f core conftest.err conftest.
$ac_objext \
14073 conftest
$ac_exeext conftest.
$ac_ext
14074 LIBS
=$ac_check_lib_save_LIBS
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14077 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14078 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
14079 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
14084 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14085 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
14086 if test "x$ac_cv_func_shmat" = xyes
; then :
14090 if test $ac_cv_func_shmat = no
; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14092 $as_echo_n "checking for shmat in -lipc... " >&6; }
14093 if ${ac_cv_lib_ipc_shmat+:} false
; then :
14094 $as_echo_n "(cached) " >&6
14096 ac_check_lib_save_LIBS
=$LIBS
14098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14101 /* Override any GCC internal prototype to avoid an error.
14102 Use char because int might match the return type of a GCC
14103 builtin and then its argument prototype would still apply. */
14116 if ac_fn_c_try_link
"$LINENO"; then :
14117 ac_cv_lib_ipc_shmat
=yes
14119 ac_cv_lib_ipc_shmat
=no
14121 rm -f core conftest.err conftest.
$ac_objext \
14122 conftest
$ac_exeext conftest.
$ac_ext
14123 LIBS
=$ac_check_lib_save_LIBS
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14126 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14127 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
14128 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
14134 # Check for libraries that X11R6 Xt/Xaw programs need.
14135 ac_save_LDFLAGS
=$LDFLAGS
14136 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
14137 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14138 # check for ICE first), but we must link in the order -lSM -lICE or
14139 # we get undefined symbols. So assume we have SM if we have ICE.
14140 # These have to be linked with before -lX11, unlike the other
14141 # libraries we check for below, so use a different variable.
14142 # John Interrante, Karl Berry
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14144 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14145 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
14146 $as_echo_n "(cached) " >&6
14148 ac_check_lib_save_LIBS
=$LIBS
14149 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
14150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14159 char IceConnectionNumber ();
14163 return IceConnectionNumber ();
14168 if ac_fn_c_try_link
"$LINENO"; then :
14169 ac_cv_lib_ICE_IceConnectionNumber
=yes
14171 ac_cv_lib_ICE_IceConnectionNumber
=no
14173 rm -f core conftest.err conftest.
$ac_objext \
14174 conftest
$ac_exeext conftest.
$ac_ext
14175 LIBS
=$ac_check_lib_save_LIBS
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14178 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14179 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
14180 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
14183 LDFLAGS
=$ac_save_LDFLAGS
14187 pcp_x11_incflags
=$X_CFLAGS
14189 pcp_x11_libflags
=$X_LIBS
14191 pcp_x11_extra
=$X_EXTRA_LIBS
14193 pcp_x11_pre
=$X_PRE_LIBS
14196 have_manpages
=false
14197 have_gzipped_manpages
=false
14198 have_bzip2ed_manpages
=false
14199 have_lzmaed_manpages
=false
14200 have_xzed_manpages
=false
14201 need_old_tbl_header
=false
14203 pcp_man_dir
=`eval echo $mandir`
14204 pcp_man_dir
=`eval echo $pcp_man_dir`
14206 for d
in /usr
/man
/usr
/share
/man
$pcp_man_dir
14208 for sd
in man1 sman1
14210 if test -f $d/$sd/man
.1.gz
14212 have_gzipped_manpages
=true
14214 man_header
=`$ZIP -d < $d/$sd/man.1.gz | head -1`
14216 elif test -f $d/$sd/man
.1.bz2
14218 have_bzip2ed_manpages
=true
14220 man_header
=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
14222 elif test -f $d/$sd/man
.1.lzma
14224 have_lzmaed_manpages
=true
14226 man_header
=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
14228 elif test -f $d/$sd/man
.1.xz
14230 have_xzed_manpages
=true
14232 man_header
=`$XZ -d < $d/$sd/man.1.xz | head -1`
14234 elif test -f $d/$sd/man
.1
14236 man_header
=`head -1 $d/$sd/man.1`
14242 if test x
"$man_header" = "x'\\\" t" -o x
"$man_header" = "x'\\\" te" ; then
14243 need_old_tbl_header
=true
14253 pcp_bin_dir
=`eval echo $bindir`
14254 pcp_bin_dir
=`eval echo $pcp_bin_dir`
14257 pcp_sbin_dir
=`eval echo $sbindir`
14258 pcp_sbin_dir
=`eval echo $pcp_sbin_dir`
14261 pcp_inc_dir
=`eval echo $includedir/pcp`
14262 pcp_inc_dir
=`eval echo $pcp_inc_dir`
14265 if test $target_os = linux
; then
14266 pcp_books_dir
=`eval echo $datarootdir/doc/pcp-doc`
14268 pcp_books_dir
=`eval echo $datarootdir/doc/pcp`
14270 pcp_books_dir
=`eval echo $pcp_books_dir`
14271 pcp_html_dir
=`eval echo $pcp_books_dir/html`
14275 if test $target_os = linux
; then
14276 pcp_icons_dir
=`eval echo $datarootdir/pcp-gui/pixmaps`
14278 pcp_icons_dir
=`eval echo $datarootdir/pcp/pixmaps`
14280 pcp_icons_dir
=`eval echo $pcp_icons_dir`
14283 pcp_desktop_dir
=`eval echo $datarootdir/applications`
14284 pcp_desktop_dir
=`eval echo $pcp_desktop_dir`
14288 # Check whether --with-rcdir was given.
14289 if test "${with_rcdir+set}" = set; then :
14290 withval
=$with_rcdir; pcp_rc_dir
=$withval
14295 pcp_rc_dir
="$pcp_share_dir/lib"
14297 pcp_rc_dir
="$pcp_etc_dir/init.d"
14304 # Check whether --with-sysconfigdir was given.
14305 if test "${with_sysconfigdir+set}" = set; then :
14306 withval
=$with_sysconfigdir; pcp_sysconfig_dir
=$withval
14308 pcp_sysconfig_dir
=$pcp_etc_dir/sysconfig
14314 # Check whether --with-logdir was given.
14315 if test "${with_logdir+set}" = set; then :
14316 withval
=$with_logdir; pcp_log_dir
=$withval
14318 pcp_log_dir
=$localstatedir/log
/pcp
14321 pcp_log_dir
=`eval echo $pcp_log_dir`
14322 pcp_log_dir
=`eval echo $pcp_log_dir`
14326 # Check whether --with-rundir was given.
14327 if test "${with_rundir+set}" = set; then :
14328 withval
=$with_rundir; pcp_run_dir
=$withval
14330 pcp_run_dir
=$localstatedir/run
/pcp
14333 pcp_run_dir
=`eval echo $pcp_run_dir`
14334 pcp_run_dir
=`eval echo $pcp_run_dir`
14338 # Check whether --with-tmpdir was given.
14339 if test "${with_tmpdir+set}" = set; then :
14340 withval
=$with_tmpdir; pcp_tmpfile_dir
=$withval
14342 pcp_tmpfile_dir
=$localstatedir/tmp
14345 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
14346 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
14349 pcp_tmp_dir
=`eval echo $pcp_var_dir/tmp`
14353 # Check whether --with-docdir was given.
14354 if test "${with_docdir+set}" = set; then :
14355 withval
=$with_docdir; pcp_doc_dir
=$withval
14357 PACKAGE
=pcp-
${PACKAGE_VERSION}; pcp_doc_dir
=$docdir
14360 pcp_doc_dir
=`eval echo $pcp_doc_dir`
14361 pcp_doc_dir
=`eval echo $pcp_doc_dir`
14365 # Check whether --with-demosdir was given.
14366 if test "${with_demosdir+set}" = set; then :
14367 withval
=$with_demosdir; pcp_demos_dir
=$withval
14369 pcp_demos_dir
=$pcp_share_dir/demos
14374 if test -z "$XCONFIRM"
14376 # Extract the first word of "xconfirm", so it can be a program name with args.
14377 set dummy xconfirm
; ac_word
=$2
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14379 $as_echo_n "checking for $ac_word... " >&6; }
14380 if ${ac_cv_path_ac_xconfirm_prog+:} false
; then :
14381 $as_echo_n "(cached) " >&6
14383 case $ac_xconfirm_prog in
14385 ac_cv_path_ac_xconfirm_prog
="$ac_xconfirm_prog" # Let the user override the test with a path.
14388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14389 for as_dir
in $PATH
14392 test -z "$as_dir" && as_dir
=.
14393 for ac_exec_ext
in '' $ac_executable_extensions; do
14394 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14395 ac_cv_path_ac_xconfirm_prog
="$as_dir/$ac_word$ac_exec_ext"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog
="$pcp_bin_dir/pmconfirm"
14407 ac_xconfirm_prog
=$ac_cv_path_ac_xconfirm_prog
14408 if test -n "$ac_xconfirm_prog"; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14410 $as_echo "$ac_xconfirm_prog" >&6; }
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14413 $as_echo "no" >&6; }
14418 ac_xconfirm_prog
=$XCONFIRM
14422 if test "$ac_cv_header_fcntl_h" = "yes"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14425 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14437 if ac_fn_c_try_compile
"$LINENO"; then :
14439 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14442 $as_echo "yes" >&6; }
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14445 $as_echo "no" >&6; }
14447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14450 if test "$ac_cv_header_libzfs_h" = "yes"
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14453 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 #include <libzfs.h>
14460 libzfs_handle_t *zh;
14461 zpool_handle_t *zp;
14463 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14469 if ac_fn_c_try_compile
"$LINENO"; then :
14471 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14474 $as_echo "yes" >&6; }
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477 $as_echo "no" >&6; }
14479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14482 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 #include <libzfs.h>
14489 libzfs_handle_t *zh;
14490 zpool_handle_t *zp;
14492 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14498 if ac_fn_c_try_compile
"$LINENO"; then :
14500 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14503 $as_echo "yes" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14511 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14515 saved_CFLAGS
="$CFLAGS"
14516 saved_CPPFLAGS
="$CPPFLAGS"
14517 NSS_INC_DIRS
="-I/usr/include/nss -I/usr/include/nss3"
14518 NSPR_INC_DIRS
="-I/usr/include/nspr -I/usr/include/nspr4"
14519 CFLAGS
="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14520 CPPFLAGS
="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14522 for ac_header
in nss
/nss.h
14524 ac_fn_c_check_header_mongrel
"$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14525 if test "x$ac_cv_header_nss_nss_h" = xyes
; then :
14526 cat >>confdefs.h
<<_ACEOF
14527 #define HAVE_NSS_NSS_H 1
14529 NSSCFLAGS
=-I/usr
/include
/nss
14532 for ac_header
in nss
3/nss.h
14534 ac_fn_c_check_header_mongrel
"$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14535 if test "x$ac_cv_header_nss3_nss_h" = xyes
; then :
14536 cat >>confdefs.h
<<_ACEOF
14537 #define HAVE_NSS3_NSS_H 1
14539 NSSCFLAGS
=-I/usr
/include
/nss3
14542 enable_secure
=false
14543 if test "$do_secure" = "yes"
14545 as_fn_error $?
"cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14559 for ac_header
in nspr
/nspr.h
14561 ac_fn_c_check_header_mongrel
"$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14562 if test "x$ac_cv_header_nspr_nspr_h" = xyes
; then :
14563 cat >>confdefs.h
<<_ACEOF
14564 #define HAVE_NSPR_NSPR_H 1
14566 NSPRCFLAGS
=-I/usr
/include
/nspr
14569 for ac_header
in nspr
4/nspr.h
14571 ac_fn_c_check_header_mongrel
"$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14572 if test "x$ac_cv_header_nspr4_nspr_h" = xyes
; then :
14573 cat >>confdefs.h
<<_ACEOF
14574 #define HAVE_NSPR4_NSPR_H 1
14576 NSPRCFLAGS
=-I/usr
/include
/nspr4
14579 enable_secure
=false
14580 if test "$do_secure" = "yes"
14582 as_fn_error $?
"cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14596 for ac_header
in sasl
/sasl.h
14598 ac_fn_c_check_header_mongrel
"$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14599 if test "x$ac_cv_header_sasl_sasl_h" = xyes
; then :
14600 cat >>confdefs.h
<<_ACEOF
14601 #define HAVE_SASL_SASL_H 1
14603 SASLCFLAGS
=-I/usr
/include
/sasl
14606 enable_secure
=false
14607 if test "$do_secure" = "yes"
14609 as_fn_error $?
"cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14619 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14620 if ${ac_cv_lib_sasl2_sasl_server_init+:} false
; then :
14621 $as_echo_n "(cached) " >&6
14623 ac_check_lib_save_LIBS
=$LIBS
14624 LIBS
="-lsasl2 $LIBS"
14625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14628 /* Override any GCC internal prototype to avoid an error.
14629 Use char because int might match the return type of a GCC
14630 builtin and then its argument prototype would still apply. */
14634 char sasl_server_init ();
14638 return sasl_server_init ();
14643 if ac_fn_c_try_link
"$LINENO"; then :
14644 ac_cv_lib_sasl2_sasl_server_init
=yes
14646 ac_cv_lib_sasl2_sasl_server_init
=no
14648 rm -f core conftest.err conftest.
$ac_objext \
14649 conftest
$ac_exeext conftest.
$ac_ext
14650 LIBS
=$ac_check_lib_save_LIBS
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14653 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14654 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes
; then :
14655 lib_for_sasl
="-lsasl2"
14658 enable_secure
=false
14659 if test "$do_secure" = "yes"
14661 as_fn_error $?
"cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14669 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14670 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false
; then :
14671 $as_echo_n "(cached) " >&6
14673 ac_check_lib_save_LIBS
=$LIBS
14675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14678 /* Override any GCC internal prototype to avoid an error.
14679 Use char because int might match the return type of a GCC
14680 builtin and then its argument prototype would still apply. */
14684 char SSL_ImportFD ();
14688 return SSL_ImportFD ();
14693 if ac_fn_c_try_link
"$LINENO"; then :
14694 ac_cv_lib_ssl_SSL_ImportFD
=yes
14696 ac_cv_lib_ssl_SSL_ImportFD
=no
14698 rm -f core conftest.err conftest.
$ac_objext \
14699 conftest
$ac_exeext conftest.
$ac_ext
14700 LIBS
=$ac_check_lib_save_LIBS
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14703 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14704 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes
; then :
14705 lib_for_ssl
="-lssl"
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14709 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14710 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false
; then :
14711 $as_echo_n "(cached) " >&6
14713 ac_check_lib_save_LIBS
=$LIBS
14714 LIBS
="-lssl3 $LIBS"
14715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 /* Override any GCC internal prototype to avoid an error.
14719 Use char because int might match the return type of a GCC
14720 builtin and then its argument prototype would still apply. */
14724 char SSL_ImportFD ();
14728 return SSL_ImportFD ();
14733 if ac_fn_c_try_link
"$LINENO"; then :
14734 ac_cv_lib_ssl3_SSL_ImportFD
=yes
14736 ac_cv_lib_ssl3_SSL_ImportFD
=no
14738 rm -f core conftest.err conftest.
$ac_objext \
14739 conftest
$ac_exeext conftest.
$ac_ext
14740 LIBS
=$ac_check_lib_save_LIBS
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14743 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14744 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes
; then :
14745 lib_for_ssl
="-lssl3"
14748 enable_secure
=false
14749 if test "$do_secure" = "yes"
14751 as_fn_error $?
"cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14762 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14763 if ${ac_cv_lib_nss_NSS_Init+:} false
; then :
14764 $as_echo_n "(cached) " >&6
14766 ac_check_lib_save_LIBS
=$LIBS
14768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14771 /* Override any GCC internal prototype to avoid an error.
14772 Use char because int might match the return type of a GCC
14773 builtin and then its argument prototype would still apply. */
14781 return NSS_Init ();
14786 if ac_fn_c_try_link
"$LINENO"; then :
14787 ac_cv_lib_nss_NSS_Init
=yes
14789 ac_cv_lib_nss_NSS_Init
=no
14791 rm -f core conftest.err conftest.
$ac_objext \
14792 conftest
$ac_exeext conftest.
$ac_ext
14793 LIBS
=$ac_check_lib_save_LIBS
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14796 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14797 if test "x$ac_cv_lib_nss_NSS_Init" = xyes
; then :
14798 lib_for_nss
="-lnss"
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14802 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14803 if ${ac_cv_lib_nss3_NSS_Init+:} false
; then :
14804 $as_echo_n "(cached) " >&6
14806 ac_check_lib_save_LIBS
=$LIBS
14807 LIBS
="-lnss3 $LIBS"
14808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14811 /* Override any GCC internal prototype to avoid an error.
14812 Use char because int might match the return type of a GCC
14813 builtin and then its argument prototype would still apply. */
14821 return NSS_Init ();
14826 if ac_fn_c_try_link
"$LINENO"; then :
14827 ac_cv_lib_nss3_NSS_Init
=yes
14829 ac_cv_lib_nss3_NSS_Init
=no
14831 rm -f core conftest.err conftest.
$ac_objext \
14832 conftest
$ac_exeext conftest.
$ac_ext
14833 LIBS
=$ac_check_lib_save_LIBS
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14836 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14837 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes
; then :
14838 lib_for_nss
="-lnss3"
14841 enable_secure
=false
14842 if test "$do_secure" = "yes"
14844 as_fn_error $?
"cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14855 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14856 if ${ac_cv_lib_nspr_PR_Init+:} false
; then :
14857 $as_echo_n "(cached) " >&6
14859 ac_check_lib_save_LIBS
=$LIBS
14860 LIBS
="-lnspr $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. */
14879 if ac_fn_c_try_link
"$LINENO"; then :
14880 ac_cv_lib_nspr_PR_Init
=yes
14882 ac_cv_lib_nspr_PR_Init
=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_nspr_PR_Init" >&5
14889 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14890 if test "x$ac_cv_lib_nspr_PR_Init" = xyes
; then :
14891 lib_for_nspr
="-lnspr"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14895 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14896 if ${ac_cv_lib_nspr4_PR_Init+:} false
; then :
14897 $as_echo_n "(cached) " >&6
14899 ac_check_lib_save_LIBS
=$LIBS
14900 LIBS
="-lnspr4 $LIBS"
14901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14904 /* Override any GCC internal prototype to avoid an error.
14905 Use char because int might match the return type of a GCC
14906 builtin and then its argument prototype would still apply. */
14919 if ac_fn_c_try_link
"$LINENO"; then :
14920 ac_cv_lib_nspr4_PR_Init
=yes
14922 ac_cv_lib_nspr4_PR_Init
=no
14924 rm -f core conftest.err conftest.
$ac_objext \
14925 conftest
$ac_exeext conftest.
$ac_ext
14926 LIBS
=$ac_check_lib_save_LIBS
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14929 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14930 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes
; then :
14931 lib_for_nspr
="-lnspr4"
14934 enable_secure
=false
14935 if test "$do_secure" = "yes"
14937 as_fn_error $?
"cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14947 if test "$enable_secure" = "true"
14950 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14955 CPPFLAGS
="$saved_CPPFLAGS"
14956 CFLAGS
="$saved_CFLAGS"
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14960 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14961 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false
; then :
14962 $as_echo_n "(cached) " >&6
14964 ac_check_lib_save_LIBS
=$LIBS
14965 LIBS
="-latomic $LIBS"
14966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14969 /* Override any GCC internal prototype to avoid an error.
14970 Use char because int might match the return type of a GCC
14971 builtin and then its argument prototype would still apply. */
14975 char __atomic_fetch_add_4 ();
14979 return __atomic_fetch_add_4 ();
14984 if ac_fn_c_try_link
"$LINENO"; then :
14985 ac_cv_lib_atomic___atomic_fetch_add_4
=yes
14987 ac_cv_lib_atomic___atomic_fetch_add_4
=no
14989 rm -f core conftest.err conftest.
$ac_objext \
14990 conftest
$ac_exeext conftest.
$ac_ext
14991 LIBS
=$ac_check_lib_save_LIBS
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14994 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14995 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes
; then :
14996 lib_for_atomic
="-latomic"
15001 if test -f /usr
/include
/sn
/arsess.h
15003 pcp_mpi_dirs
=libpcp_mpi\ libpcp_mpiread
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
15010 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
15011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15014 #include <sys/types.h>
15015 #ifdef HAVE_SYS_SOCKET_H
15016 #include <sys/socket.h>
15018 #ifdef HAVE_SYS_UN_H
15019 #include <sys/un.h>
15025 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
15030 if ac_fn_c_try_compile
"$LINENO"; then :
15032 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15034 $as_echo "yes" >&6; }
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 $as_echo "no" >&6; }
15039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
15042 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
15043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15046 #include <sys/types.h>
15047 #ifdef HAVE_SYS_SOCKET_H
15048 #include <sys/socket.h>
15050 #ifdef HAVE_SYS_UN_H
15051 #include <sys/un.h>
15057 struct ucred ucred; ucred.uid = 0;
15062 if ac_fn_c_try_compile
"$LINENO"; then :
15064 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15066 $as_echo "yes" >&6; }
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15069 $as_echo "no" >&6; }
15071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
15074 $as_echo_n "checking for struct timespec in time.h... " >&6; }
15075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15083 struct timespec foo;
15088 if ac_fn_c_try_compile
"$LINENO"; then :
15090 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15092 $as_echo "yes" >&6; }
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 $as_echo "no" >&6; }
15097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
15100 $as_echo_n "checking for altzone in time.h... " >&6; }
15101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h. */
15109 time_t az = altzone;
15114 if ac_fn_c_try_compile
"$LINENO"; then :
15116 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15118 $as_echo "yes" >&6; }
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15121 $as_echo "no" >&6; }
15123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
15126 $as_echo_n "checking if strftime knows about %z... " >&6; }
15127 if test "$cross_compiling" = yes; then :
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15137 time_t t = time(NULL);
15138 struct tm * t1 = localtime (&t);
15139 if (strftime (b, 32, "%z", t1) < 3)
15141 if (strcmp(b, "%z") == 0)
15147 if ac_fn_c_try_run
"$LINENO"; then :
15149 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15151 $as_echo "yes" >&6; }
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154 $as_echo "no" >&6; }
15156 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15157 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
15162 $as_echo_n "checking if strerror_r returns char *... " >&6; }
15163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165 #include <string.h>
15169 strerror_r(0, NULL, 0)[0];
15174 if ac_fn_c_try_compile
"$LINENO"; then :
15176 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15178 $as_echo "yes" >&6; }
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181 $as_echo "no" >&6; }
15183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15189 ac_fn_c_check_func
"$LINENO" "readline" "ac_cv_func_readline"
15190 if test "x$ac_cv_func_readline" = xyes
; then :
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15195 $as_echo_n "checking for readline in -lreadline... " >&6; }
15196 if ${ac_cv_lib_readline_readline+:} false
; then :
15197 $as_echo_n "(cached) " >&6
15199 ac_check_lib_save_LIBS
=$LIBS
15200 LIBS
="-lreadline $LIBS"
15201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15204 /* Override any GCC internal prototype to avoid an error.
15205 Use char because int might match the return type of a GCC
15206 builtin and then its argument prototype would still apply. */
15214 return readline ();
15219 if ac_fn_c_try_link
"$LINENO"; then :
15220 ac_cv_lib_readline_readline
=yes
15222 ac_cv_lib_readline_readline
=no
15224 rm -f core conftest.err conftest.
$ac_objext \
15225 conftest
$ac_exeext conftest.
$ac_ext
15226 LIBS
=$ac_check_lib_save_LIBS
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15229 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15230 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
15231 cat >>confdefs.h
<<_ACEOF
15232 #define HAVE_LIBREADLINE 1
15235 LIBS
="-lreadline $LIBS"
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
15240 $as_echo_n "checking for add_history in -lreadline... " >&6; }
15241 if ${ac_cv_lib_readline_add_history+:} false
; then :
15242 $as_echo_n "(cached) " >&6
15244 ac_check_lib_save_LIBS
=$LIBS
15245 LIBS
="-lreadline -lcurses $LIBS"
15246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15249 /* Override any GCC internal prototype to avoid an error.
15250 Use char because int might match the return type of a GCC
15251 builtin and then its argument prototype would still apply. */
15255 char add_history ();
15259 return add_history ();
15264 if ac_fn_c_try_link
"$LINENO"; then :
15265 ac_cv_lib_readline_add_history
=yes
15267 ac_cv_lib_readline_add_history
=no
15269 rm -f core conftest.err conftest.
$ac_objext \
15270 conftest
$ac_exeext conftest.
$ac_ext
15271 LIBS
=$ac_check_lib_save_LIBS
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
15274 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
15275 if test "x$ac_cv_lib_readline_add_history" = xyes
; then :
15276 cat >>confdefs.h
<<_ACEOF
15277 #define HAVE_LIBREADLINE 1
15280 LIBS
="-lreadline $LIBS"
15290 if test $ac_cv_func_readline = yes
15293 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15295 elif test $ac_cv_lib_readline_readline = yes
15298 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15300 lib_for_readline
=-lreadline
15301 elif test $ac_cv_lib_readline_add_history = yes
15304 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15306 lib_for_curses
=-lcurses
15307 lib_for_readline
=-lreadline
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15316 $as_echo_n "checking for zlib... " >&6; }
15318 if test -n "$zlib_CFLAGS"; then
15319 pkg_cv_zlib_CFLAGS
="$zlib_CFLAGS"
15320 elif test -n "$PKG_CONFIG"; then
15321 if test -n "$PKG_CONFIG" && \
15322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15323 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15326 test $ac_status = 0; }; then
15327 pkg_cv_zlib_CFLAGS
=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15328 test "x$?" != "x0" && pkg_failed
=yes
15335 if test -n "$zlib_LIBS"; then
15336 pkg_cv_zlib_LIBS
="$zlib_LIBS"
15337 elif test -n "$PKG_CONFIG"; then
15338 if test -n "$PKG_CONFIG" && \
15339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15340 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15343 test $ac_status = 0; }; then
15344 pkg_cv_zlib_LIBS
=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15345 test "x$?" != "x0" && pkg_failed
=yes
15355 if test $pkg_failed = yes; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15357 $as_echo "no" >&6; }
15359 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15360 _pkg_short_errors_supported
=yes
15362 _pkg_short_errors_supported
=no
15364 if test $_pkg_short_errors_supported = yes; then
15365 zlib_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15367 zlib_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15369 # Put the nasty error message in config.log where it belongs
15370 echo "$zlib_PKG_ERRORS" >&5
15373 elif test $pkg_failed = untried
; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15375 $as_echo "no" >&6; }
15378 zlib_CFLAGS
=$pkg_cv_zlib_CFLAGS
15379 zlib_LIBS
=$pkg_cv_zlib_LIBS
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15381 $as_echo "yes" >&6; }
15384 HAVE_ZLIB
=$have_zlib
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15388 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15393 int test = AI_ADDRCONFIG;
15404 if ac_fn_c_try_compile
"$LINENO"; then :
15406 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15408 $as_echo "yes" >&6; }
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15411 $as_echo "no" >&6; }
15413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15417 if test -f .
/build
/tar
/parfait.
tar.gz
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15420 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15426 if test -f .
/build
/tar
/vector.
tar.gz
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15429 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15435 if test -f .
/build
/tar
/webjs.
tar.gz
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15438 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15446 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"
15448 cat >confcache
<<\_ACEOF
15449 # This file is a shell script that caches the results of configure
15450 # tests run on this system so they can be shared between configure
15451 # scripts and configure runs, see configure's option --config-cache.
15452 # It is not useful on other systems. If it contains results you don't
15453 # want to keep, you may remove or edit it.
15455 # config.status only pays attention to the cache file if you give it
15456 # the --recheck option to rerun configure.
15458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15460 # following values.
15464 # The following way of writing the cache mishandles newlines in values,
15465 # but we know of no workaround that is simple, portable, and efficient.
15466 # So, we kill variables containing newlines.
15467 # Ultrix sh set writes to stderr and can't be redirected directly,
15468 # and sets the high bit in the cache file unless we assign to the vars.
15470 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15471 eval ac_val
=\$
$ac_var
15475 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15476 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15479 _ | IFS | as_nl
) ;; #(
15480 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15481 *) { eval $ac_var=; unset $ac_var;} ;;
15487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15488 *${as_nl}ac_space
=\
*)
15489 # `set' does not quote correctly, so add quotes: double-quote
15490 # substitution turns \\\\ into \\, and sed turns \\ into \.
15493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15496 # `set' quotes correctly as required by POSIX, so do not add quotes.
15497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15510 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15511 if test -w "$cache_file"; then
15512 if test "x$cache_file" != "x/dev/null"; then
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15514 $as_echo "$as_me: updating cache $cache_file" >&6;}
15515 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15516 cat confcache
>"$cache_file"
15518 case $cache_file in #(
15520 mv -f confcache
"$cache_file"$$
&&
15521 mv -f "$cache_file"$$
"$cache_file" ;; #(
15523 mv -f confcache
"$cache_file" ;;
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15529 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15534 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15535 # Let make expand exec_prefix.
15536 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15538 DEFS
=-DHAVE_CONFIG_H
15543 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15544 # 1. Remove the extension, and $U if already installed.
15545 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15546 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15548 # will be set to the directory where LIBOBJS objects are built.
15549 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15550 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15552 LIBOBJS
=$ac_libobjs
15554 LTLIBOBJS
=$ac_ltlibobjs
15558 : "${CONFIG_STATUS=./config.status}"
15560 ac_clean_files_save
=$ac_clean_files
15561 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15563 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15565 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15567 # Generated by $as_me.
15568 # Run this file to recreate the current configuration.
15569 # Compiler output produced by configure, useful for debugging
15570 # configure, is in config.log if it exists.
15573 ac_cs_recheck=false
15576 SHELL=\${CONFIG_SHELL-$SHELL}
15579 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15580 ## -------------------- ##
15581 ## M4sh Initialization. ##
15582 ## -------------------- ##
15584 # Be more Bourne compatible
15585 DUALCASE
=1; export DUALCASE
# for MKS sh
15586 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15589 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15590 # is contrary to our usage. Disable this feature.
15591 alias -g '${1+"$@"}'='"$@"'
15592 setopt NO_GLOB_SUBST
15594 case `(set -o) 2>/dev/null` in #(
15606 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15607 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15610 # Prefer a ksh shell builtin over an external printf program on Solaris,
15611 # but without wasting forks for bash or zsh.
15612 if test -z "$BASH_VERSION$ZSH_VERSION" \
15613 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15614 as_echo='print
-r --'
15615 as_echo_n='print
-rn --'
15616 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15617 as_echo='printf %s
\n'
15618 as_echo_n='printf %s
'
15620 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15621 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15622 as_echo_n='/usr
/ucb
/echo -n'
15624 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15625 as_echo_n_body='eval
15629 expr "X$arg" : "X\\(.*\\)$as_nl";
15630 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15632 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15634 export as_echo_n_body
15635 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15637 export as_echo_body
15638 as_echo='sh
-c $as_echo_body as_echo
'
15641 # The user is always right.
15642 if test "${PATH_SEPARATOR+set}" != set; then
15644 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15645 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15652 # We need space, tab and new line, in precisely that order. Quoting is
15653 # there to prevent editors from complaining about space-tab.
15654 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15655 # splitting by setting IFS to empty value.)
15658 # Find who we are. Look in the path if we contain no directory separator.
15661 *[\\/]* ) as_myself=$0 ;;
15662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663 for as_dir in $PATH
15666 test -z "$as_dir" && as_dir=.
15667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15673 # We did not find ourselves, most probably we were run as `sh COMMAND'
15674 # in which case we are not to be found in the path.
15675 if test "x$as_myself" = x
; then
15678 if test ! -f "$as_myself"; then
15679 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15683 # Unset variables that we do not need and which cause bugs (e.g. in
15684 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15685 # suppresses any "Segmentation fault" message there. '((' could
15686 # trigger a bug in pdksh 5.2.14.
15687 for as_var
in BASH_ENV ENV MAIL MAILPATH
15688 do eval test x\
${$as_var+set} = xset \
15689 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15702 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15705 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15706 # ----------------------------------------
15707 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15708 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15709 # script with STATUS, using 1 if that was 0.
15712 as_status
=$1; test $as_status -eq 0 && as_status
=1
15714 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15715 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15717 $as_echo "$as_me: error: $2" >&2
15718 as_fn_exit
$as_status
15722 # as_fn_set_status STATUS
15723 # -----------------------
15724 # Set $? to STATUS, without forking.
15725 as_fn_set_status
()
15728 } # as_fn_set_status
15730 # as_fn_exit STATUS
15731 # -----------------
15732 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15736 as_fn_set_status
$1
15742 # Portably unset VAR.
15745 { eval $1=; unset $1;}
15747 as_unset
=as_fn_unset
15748 # as_fn_append VAR VALUE
15749 # ----------------------
15750 # Append the text in VALUE to the end of the definition contained in VAR. Take
15751 # advantage of any shell optimizations that allow amortized linear growth over
15752 # repeated appends, instead of the typical quadratic growth present in naive
15754 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15755 eval 'as_fn_append ()
15766 # as_fn_arith ARG...
15767 # ------------------
15768 # Perform arithmetic evaluation on the ARGs, and store the result in the
15769 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15770 # must be portable across $(()) and expr.
15771 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15772 eval 'as_fn_arith ()
15779 as_val
=`expr "$@" || test $? -eq 1`
15784 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15785 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15791 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15792 as_basename
=basename
15797 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15803 as_me
=`$as_basename -- "$0" ||
15804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15805 X"$0" : 'X\(//\)$' \| \
15806 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15808 sed '/^.*\/\([^/][^/]*\)\/*$/{
15822 # Avoid depending upon Character Ranges.
15823 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15824 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15825 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15826 as_cr_digits
='0123456789'
15827 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15829 ECHO_C
= ECHO_N
= ECHO_T
=
15830 case `echo -n x` in #(((((
15832 case `echo 'xy\c'` in
15833 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15835 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15842 rm -f conf$$ conf$$.exe conf$$.
file
15843 if test -d conf$$.dir
; then
15844 rm -f conf$$.dir
/conf$$.
file
15847 mkdir conf$$.dir
2>/dev
/null
15849 if (echo >conf$$.
file) 2>/dev
/null
; then
15850 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15852 # ... but there are two gotchas:
15853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15855 # In both cases, we have to default to `cp -pR'.
15856 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15858 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15866 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15867 rmdir conf$$.dir
2>/dev
/null
15872 # Create "$as_dir" as a directory, including parents if necessary.
15877 -*) as_dir
=.
/$as_dir;;
15879 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15883 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15884 *) as_qdir
=$as_dir;;
15886 as_dirs
="'$as_qdir' $as_dirs"
15887 as_dir
=`$as_dirname -- "$as_dir" ||
15888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15889 X"$as_dir" : 'X\(//\)[^/]' \| \
15890 X"$as_dir" : 'X\(//\)$' \| \
15891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15892 $as_echo X"$as_dir" |
15893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15897 /^X\(\/\/\)[^/].*/{
15910 test -d "$as_dir" && break
15912 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15913 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15917 if mkdir
-p .
2>/dev
/null
; then
15918 as_mkdir_p
='mkdir -p "$as_dir"'
15920 test -d .
/-p && rmdir .
/-p
15925 # as_fn_executable_p FILE
15926 # -----------------------
15927 # Test if FILE is an executable regular file.
15928 as_fn_executable_p
()
15930 test -f "$1" && test -x "$1"
15931 } # as_fn_executable_p
15932 as_test_x
='test -x'
15933 as_executable_p
=as_fn_executable_p
15935 # Sed expression to map a string onto a valid CPP name.
15936 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15938 # Sed expression to map a string onto a valid variable name.
15939 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15943 ## ----------------------------------- ##
15944 ## Main body of $CONFIG_STATUS script. ##
15945 ## ----------------------------------- ##
15947 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15950 # Save the log message, to keep $0 and so on meaningful, and to
15951 # report actual input values of CONFIG_FILES etc. instead of their
15952 # values after options handling.
15954 This file was extended by $as_me, which was
15955 generated by GNU Autoconf 2.69. Invocation command line was
15957 CONFIG_FILES = $CONFIG_FILES
15958 CONFIG_HEADERS = $CONFIG_HEADERS
15959 CONFIG_LINKS = $CONFIG_LINKS
15960 CONFIG_COMMANDS = $CONFIG_COMMANDS
15963 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15968 case $ac_config_files in *"
15969 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15972 case $ac_config_headers in *"
15973 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15978 # Files that config.status was made for.
15979 config_files="$ac_config_files"
15980 config_headers="$ac_config_headers"
15984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15986 \`$as_me' instantiates files and other configuration actions
15987 from templates according to the current configuration. Unless the files
15988 and actions are specified as TAGs, all are instantiated by default.
15990 Usage: $0 [OPTION]... [TAG]...
15992 -h, --help print this help, then exit
15993 -V, --version print version number and configuration settings, then exit
15994 --config print configuration, then exit
15995 -q, --quiet, --silent
15996 do not print progress messages
15997 -d, --debug don't remove temporary files
15998 --recheck update $as_me by reconfiguring in the same conditions
15999 --file=FILE[:TEMPLATE]
16000 instantiate the configuration file FILE
16001 --header=FILE[:TEMPLATE]
16002 instantiate the configuration header FILE
16004 Configuration files:
16007 Configuration headers:
16010 Report bugs to the package provider."
16013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16017 configured by $0, generated by GNU Autoconf 2.69,
16018 with options \\"\$ac_cs_config\\"
16020 Copyright (C) 2012 Free Software Foundation, Inc.
16021 This config.status script is free software; the Free Software Foundation
16022 gives unlimited permission to copy, distribute and modify it."
16026 test -n "\$AWK" || AWK=awk
16029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16030 # The default lists apply if the user does not specify any file.
16036 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16037 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16041 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16053 # Handling of the options.
16054 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16056 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16057 $as_echo "$ac_cs_version"; exit ;;
16058 --config |
--confi |
--conf |
--con |
--co |
--c )
16059 $as_echo "$ac_cs_config"; exit ;;
16060 --debug |
--debu |
--deb |
--de |
--d |
-d )
16062 --file |
--fil |
--fi |
--f )
16065 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16066 '') as_fn_error $?
"missing file argument" ;;
16068 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16069 ac_need_defaults
=false
;;
16070 --header |
--heade |
--head |
--hea )
16073 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16075 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16076 ac_need_defaults
=false
;;
16078 # Conflict between --help and --header
16079 as_fn_error $?
"ambiguous option: \`$1'
16080 Try \`$0 --help' for more information.";;
16081 --help |
--hel |
-h )
16082 $as_echo "$ac_cs_usage"; exit ;;
16083 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16084 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16087 # This is an error.
16088 -*) as_fn_error $?
"unrecognized option: \`$1'
16089 Try \`$0 --help' for more information." ;;
16091 *) as_fn_append ac_config_targets
" $1"
16092 ac_need_defaults
=false
;;
16098 ac_configure_extra_args
=
16100 if $ac_cs_silent; then
16102 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 if \$ac_cs_recheck; then
16108 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16110 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16111 CONFIG_SHELL='$SHELL'
16112 export CONFIG_SHELL
16117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16121 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16122 ## Running $as_me. ##
16128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16133 # Handling of arguments.
16134 for ac_config_target
in $ac_config_targets
16136 case $ac_config_target in
16137 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
16138 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
16139 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
16140 "src/include/pcp/platformsz.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
16141 "src/include/builddefs") CONFIG_FILES
="$CONFIG_FILES src/include/builddefs" ;;
16142 "src/include/pcp.conf") CONFIG_FILES
="$CONFIG_FILES src/include/pcp.conf" ;;
16143 "pcp.lsm") CONFIG_FILES
="$CONFIG_FILES pcp.lsm" ;;
16144 "debian/pcp.preinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.preinst.head" ;;
16145 "debian/pcp.postinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.postinst.head" ;;
16146 "build/tar/preinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/preinstall.head" ;;
16147 "build/tar/postinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/postinstall.head" ;;
16148 "build/GNUlocaldefs") CONFIG_FILES
="$CONFIG_FILES build/GNUlocaldefs" ;;
16149 "build/mac/uninstall-pcp") CONFIG_FILES
="$CONFIG_FILES build/mac/uninstall-pcp" ;;
16151 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16156 # If the user did not use the arguments to specify the items to instantiate,
16157 # then the envvar interface is used. Set only those that are not.
16158 # We use the long form for the default assignment because of an extremely
16159 # bizarre bug on SunOS 4.1.3.
16160 if $ac_need_defaults; then
16161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16165 # Have a temporary directory for convenience. Make it in the build tree
16166 # simply because there is no reason against having it here, and in addition,
16167 # creating and moving files from /tmp can sometimes cause problems.
16168 # Hook for its removal unless debugging.
16169 # Note that there is a small window in which the directory will not be cleaned:
16170 # after its creation but before its name has been assigned to `$tmp'.
16174 trap 'exit_status=$?
16175 : "${ac_tmp:=$tmp}"
16176 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16178 trap 'as_fn_exit 1' 1 2 13 15
16180 # Create a (secure) tmp directory for tmp files.
16183 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16187 tmp
=.
/conf$$
-$RANDOM
16188 (umask 077 && mkdir
"$tmp")
16189 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16192 # Set up the scripts for CONFIG_FILES section.
16193 # No need to generate them if there are no CONFIG_FILES.
16194 # This happens for instance with `./config.status config.h'.
16195 if test -n "$CONFIG_FILES"; then
16198 ac_cr
=`echo X | tr X '\015'`
16199 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16200 # But we know of no other shell where ac_cr would be empty at this
16201 # point, so we can use a bashism as a fallback.
16202 if test "x$ac_cr" = x
; then
16203 eval ac_cr
=\$
\'\\r
\'
16205 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16206 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16209 ac_cs_awk_cr
=$ac_cr
16212 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16217 echo "cat >conf$$subs.awk <<_ACEOF" &&
16218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16220 } >conf$$subs.sh ||
16221 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16224 for ac_last_try in false false false false false :; do
16225 . ./conf$$subs.sh ||
16226 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16228 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16229 if test $ac_delim_n = $ac_delim_num; then
16231 elif $ac_last_try; then
16232 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16234 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16237 rm -f conf$$subs.sh
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16244 s/^/S["/; s
/!.
*/"]=/
16254 s/\(.\{148\}\)..*/\1/
16256 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16261 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16268 s/\(.\{148\}\)..*/\1/
16270 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16274 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16279 ' <conf$$subs.awk | sed '
16284 ' >>$CONFIG_STATUS || ac_write_fail=1
16285 rm -f conf$$subs.awk
16286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16288 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16289 for (key in S) S_is_set[key] = 1
16295 nfields = split(line, field, "@
")
16297 len = length(field[1])
16298 for (i = 2; i < nfields; i++) {
16300 keylen = length(key)
16301 if (S_is_set[key]) {
16303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16304 len += length(value) + length(field[++i])
16315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16316 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16317 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16320 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16321 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16324 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16325 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16326 # trailing colons and then remove the whole line if VPATH becomes empty
16327 # (actually we leave an empty line to preserve line numbers).
16328 if test "x
$srcdir" = x.; then
16329 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16348 fi # test -n "$CONFIG_FILES"
16350 # Set up the scripts for CONFIG_HEADERS section.
16351 # No need to generate them if there are no CONFIG_HEADERS.
16352 # This happens for instance with `./config.status Makefile'.
16353 if test -n "$CONFIG_HEADERS"; then
16354 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16358 # Transform confdefs.h into an awk script `defines.awk', embedded as
16359 # here-document in config.status, that substitutes the proper values into
16360 # config.h.in to produce config.h.
16362 # Create a delimiter string that does not exist in confdefs.h, to ease
16363 # handling of long lines.
16365 for ac_last_try in false false :; do
16366 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16367 if test -z "$ac_tt"; then
16369 elif $ac_last_try; then
16370 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16372 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16376 # For the awk script, D is an array of macro values keyed by name,
16377 # likewise P contains macro parameters if any. Preserve backslash
16378 # newline sequences.
16380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16382 s/.\{148\}/&'"$ac_delim"'/g
16385 s/^[ ]*#[ ]*define[ ][ ]*/ /
16392 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16394 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16399 D["\
1"]=" \
3\\\\\\n
"\\/p
16401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16406 s/.\{148\}/&'"$ac_delim"'/g
16411 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16414 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16416 ' <confdefs.h | sed '
16417 s/'"$ac_delim"'/"\\\
16418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16421 for (key in D) D_is_set[key] = 1
16424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16426 split(line, arg, " ")
16427 if (arg[1] == "#") {
16431 defundef
= substr
(arg
[1], 2)
16434 split(mac1
, mac2
, "(") #)
16436 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16437 if (D_is_set
[macro
]) {
16438 # Preserve the white space surrounding the "#".
16439 print prefix
"define", macro P
[macro
] D
[macro
]
16442 # Replace #undef with comments. This is necessary, for example,
16443 # in the case of _POSIX_SOURCE, which is predefined and required
16444 # on some systems where configure will not decide to define it.
16445 if (defundef
== "undef") {
16446 print
"/*", prefix defundef
, macro
, "*/"
16454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16455 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16456 fi # test -n "$CONFIG_HEADERS"
16459 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
16464 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16466 case $ac_mode$ac_tag in
16468 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16469 :[FH
]-) ac_tag
=-:-;;
16470 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16487 -) ac_f
="$ac_tmp/stdin";;
16488 *) # Look for the file first in the build tree, then in the source tree
16489 # (if the path is not absolute). The absolute path cannot be DOS-style,
16490 # because $ac_f cannot contain `:'.
16494 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16496 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16498 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16499 as_fn_append ac_file_inputs
" '$ac_f'"
16502 # Let's still pretend it is `configure' which instantiates (i.e., don't
16503 # use $as_me), people would be surprised to read:
16504 # /* config.h. Generated by config.status. */
16505 configure_input
='Generated from '`
16506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16508 if test x
"$ac_file" != x-
; then
16509 configure_input
="$ac_file. $configure_input"
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16511 $as_echo "$as_me: creating $ac_file" >&6;}
16513 # Neutralize special characters interpreted by sed in replacement strings.
16514 case $configure_input in #(
16515 *\
&* |
*\|
* |
*\\* )
16516 ac_sed_conf_input
=`$as_echo "$configure_input" |
16517 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16518 *) ac_sed_conf_input
=$configure_input;;
16522 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16523 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16528 ac_dir
=`$as_dirname -- "$ac_file" ||
16529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16530 X"$ac_file" : 'X\(//\)[^/]' \| \
16531 X"$ac_file" : 'X\(//\)$' \| \
16532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16533 $as_echo X"$ac_file" |
16534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16538 /^X\(\/\/\)[^/].*/{
16551 as_dir
="$ac_dir"; as_fn_mkdir_p
16555 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16557 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16558 # A ".." for each directory in $ac_dir_suffix.
16559 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16560 case $ac_top_builddir_sub in
16561 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16562 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16565 ac_abs_top_builddir
=$ac_pwd
16566 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16567 # for backward compatibility:
16568 ac_top_builddir
=$ac_top_build_prefix
16571 .
) # We are building in place.
16573 ac_top_srcdir
=$ac_top_builddir_sub
16574 ac_abs_top_srcdir
=$ac_pwd ;;
16575 [\\/]* | ?
:[\\/]* ) # Absolute name.
16576 ac_srcdir
=$srcdir$ac_dir_suffix;
16577 ac_top_srcdir
=$srcdir
16578 ac_abs_top_srcdir
=$srcdir ;;
16579 *) # Relative name.
16580 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16581 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16582 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16584 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16596 # If the template does not know about datarootdir, expand it.
16597 # FIXME: This hack should be removed a few years after 2.60.
16598 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16609 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16610 *datarootdir
*) ac_datarootdir_seen
=yes;;
16611 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16613 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16616 ac_datarootdir_hack='
16617 s&@datadir@&$datadir&g
16618 s&@docdir@&$docdir&g
16619 s&@infodir@&$infodir&g
16620 s&@localedir@&$localedir&g
16621 s&@mandir@&$mandir&g
16622 s&\\\${datarootdir}&$datarootdir&g' ;;
16626 # Neutralize VPATH when `$srcdir' = `.'.
16627 # Shell code in configure.ac might set extrasub.
16628 # FIXME: do we really want to maintain this feature?
16629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16630 ac_sed_extra="$ac_vpsub
16633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16635 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16636 s|@configure_input@|
$ac_sed_conf_input|
;t t
16637 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16638 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16639 s
&@srcdir@
&$ac_srcdir&;t t
16640 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16641 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16642 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16643 s
&@builddir@
&$ac_builddir&;t t
16644 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16645 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16646 $ac_datarootdir_hack
16648 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16649 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16652 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16654 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16656 which seems to be undefined. Please make sure it is defined" >&5
16657 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16658 which seems to be undefined. Please make sure it is defined" >&2;}
16660 rm -f "$ac_tmp/stdin"
16662 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16663 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16671 if test x"$ac_file" != x-; then
16673 $as_echo "/* $configure_input */" \
16674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16675 } >"$ac_tmp/config.h" \
16676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16677 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16679 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16682 mv "$ac_tmp/config.h" "$ac_file" \
16683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16686 $as_echo "/* $configure_input */" \
16687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16688 || as_fn_error $? "could not create -" "$LINENO" 5
16700 ac_clean_files=$ac_clean_files_save
16702 test $ac_write_fail = 0 ||
16703 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16706 # configure is writing to config.log, and then calls config.status.
16707 # config.status does its own redirection, appending to config.log.
16708 # Unfortunately, on DOS this fails, as config.log is still kept open
16709 # by configure, so config.status won't be able to
write to it
; its
16710 # output is simply discarded. So we exec the FD to /dev/null,
16711 # effectively closing config.log, so it can be properly (re)opened and
16712 # appended to by config.status. When coming back to configure, we
16713 # need to make the FD available again.
16714 if test "$no_create" != yes; then
16716 ac_config_status_args
=
16717 test "$silent" = yes &&
16718 ac_config_status_args
="$ac_config_status_args --quiet"
16720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16723 # would make configure fail if this is the last instruction.
16724 $ac_cs_success || as_fn_exit
1
16726 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16728 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}