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
659 have_bzip2ed_manpages
660 have_gzipped_manpages
680 pcp_pmloggercontrol_path
681 pcp_pmsnapcontrol_path
683 pcp_pmproxyoptions_path
684 pcp_pmmgroptions_path
685 pcp_pmwebdoptions_path
798 have_python_jsonpointer
817 SYSTEMD_SYSTEMUNITDIR
915 program_transform_name
928 enable_option_checking
959 with_perl_installdirs
960 with_perl_install_base
971 ac_precious_vars
='build_alias
990 SYSTEMD_SYSTEMUNITDIR
1006 # Initialize some variables set by options.
1008 ac_init_version
=false
1009 ac_unrecognized_opts
=
1010 ac_unrecognized_sep
=
1011 # The variables have the same names as the options, with
1012 # dashes changed to underlines.
1013 cache_file
=/dev
/null
1020 program_transform_name
=s
,x
,x
,
1028 # Installation directory options.
1029 # These are left unexpanded so users can "make install exec_prefix=/foo"
1030 # and all the variables that are supposed to be based on exec_prefix
1031 # by default will actually change.
1032 # Use braces instead of parens because sh, perl, etc. also accept them.
1033 # (The list follows the same order as the GNU Coding Standards.)
1034 bindir
='${exec_prefix}/bin'
1035 sbindir
='${exec_prefix}/sbin'
1036 libexecdir
='${exec_prefix}/libexec'
1037 datarootdir
='${prefix}/share'
1038 datadir
='${datarootdir}'
1039 sysconfdir
='${prefix}/etc'
1040 sharedstatedir
='${prefix}/com'
1041 localstatedir
='${prefix}/var'
1042 includedir
='${prefix}/include'
1043 oldincludedir
='/usr/include'
1044 docdir
='${datarootdir}/doc/${PACKAGE}'
1045 infodir
='${datarootdir}/info'
1050 libdir
='${exec_prefix}/lib'
1051 localedir
='${datarootdir}/locale'
1052 mandir
='${datarootdir}/man'
1058 # If the previous option needs an argument, assign it.
1059 if test -n "$ac_prev"; then
1060 eval $ac_prev=\
$ac_option
1066 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071 # Accept the important Cygnus configure options, so we can diagnose typos.
1073 case $ac_dashdash$ac_option in
1077 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1079 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1080 bindir
=$ac_optarg ;;
1082 -build |
--build |
--buil |
--bui |
--bu)
1083 ac_prev
=build_alias
;;
1084 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1085 build_alias
=$ac_optarg ;;
1087 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1088 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1089 ac_prev
=cache_file
;;
1090 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1091 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1092 cache_file
=$ac_optarg ;;
1094 --config-cache |
-C)
1095 cache_file
=config.cache
;;
1097 -datadir |
--datadir |
--datadi |
--datad)
1099 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1100 datadir
=$ac_optarg ;;
1102 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1103 |
--dataroo |
--dataro |
--datar)
1104 ac_prev
=datarootdir
;;
1105 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1106 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1107 datarootdir
=$ac_optarg ;;
1109 -disable-* |
--disable-*)
1110 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1113 as_fn_error $?
"invalid feature name: $ac_useropt"
1114 ac_useropt_orig
=$ac_useropt
1115 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "enable_
$ac_useropt"
1120 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1121 ac_unrecognized_sep
=', ';;
1123 eval enable_
$ac_useropt=no
;;
1125 -docdir |
--docdir |
--docdi |
--doc |
--do)
1127 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1128 docdir
=$ac_optarg ;;
1130 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1132 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1133 dvidir
=$ac_optarg ;;
1135 -enable-* |
--enable-*)
1136 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1139 as_fn_error $?
"invalid feature name: $ac_useropt"
1140 ac_useropt_orig
=$ac_useropt
1141 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "enable_
$ac_useropt"
1146 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1147 ac_unrecognized_sep
=', ';;
1149 eval enable_
$ac_useropt=\
$ac_optarg ;;
1151 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1152 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1153 |
--exec |
--exe |
--ex)
1154 ac_prev
=exec_prefix
;;
1155 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1156 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1157 |
--exec=* |
--exe=* |
--ex=*)
1158 exec_prefix
=$ac_optarg ;;
1160 -gas |
--gas |
--ga |
--g)
1161 # Obsolete; use --with-gas.
1164 -help |
--help |
--hel |
--he |
-h)
1165 ac_init_help
=long
;;
1166 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1167 ac_init_help
=recursive
;;
1168 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1169 ac_init_help
=short
;;
1171 -host |
--host |
--hos |
--ho)
1172 ac_prev
=host_alias
;;
1173 -host=* |
--host=* |
--hos=* |
--ho=*)
1174 host_alias
=$ac_optarg ;;
1176 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1178 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1180 htmldir
=$ac_optarg ;;
1182 -includedir |
--includedir |
--includedi |
--included |
--include \
1183 |
--includ |
--inclu |
--incl |
--inc)
1184 ac_prev
=includedir
;;
1185 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1186 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1187 includedir
=$ac_optarg ;;
1189 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1191 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1192 infodir
=$ac_optarg ;;
1194 -libdir |
--libdir |
--libdi |
--libd)
1196 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1197 libdir
=$ac_optarg ;;
1199 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1200 |
--libexe |
--libex |
--libe)
1201 ac_prev
=libexecdir
;;
1202 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1203 |
--libexe=* |
--libex=* |
--libe=*)
1204 libexecdir
=$ac_optarg ;;
1206 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1207 ac_prev
=localedir
;;
1208 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1209 localedir
=$ac_optarg ;;
1211 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1212 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1213 ac_prev
=localstatedir
;;
1214 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1215 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1216 localstatedir
=$ac_optarg ;;
1218 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1220 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1221 mandir
=$ac_optarg ;;
1223 -nfp |
--nfp |
--nf)
1224 # Obsolete; use --without-fp.
1227 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1228 |
--no-cr |
--no-c |
-n)
1231 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1232 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1235 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1236 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1237 |
--oldin |
--oldi |
--old |
--ol |
--o)
1238 ac_prev
=oldincludedir
;;
1239 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1240 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1241 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1242 oldincludedir
=$ac_optarg ;;
1244 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1246 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1247 prefix
=$ac_optarg ;;
1249 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1250 |
--program-pre |
--program-pr |
--program-p)
1251 ac_prev
=program_prefix
;;
1252 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1253 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1254 program_prefix
=$ac_optarg ;;
1256 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1257 |
--program-suf |
--program-su |
--program-s)
1258 ac_prev
=program_suffix
;;
1259 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1260 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1261 program_suffix
=$ac_optarg ;;
1263 -program-transform-name |
--program-transform-name \
1264 |
--program-transform-nam |
--program-transform-na \
1265 |
--program-transform-n |
--program-transform- \
1266 |
--program-transform |
--program-transfor \
1267 |
--program-transfo |
--program-transf \
1268 |
--program-trans |
--program-tran \
1269 |
--progr-tra |
--program-tr |
--program-t)
1270 ac_prev
=program_transform_name
;;
1271 -program-transform-name=* |
--program-transform-name=* \
1272 |
--program-transform-nam=* |
--program-transform-na=* \
1273 |
--program-transform-n=* |
--program-transform-=* \
1274 |
--program-transform=* |
--program-transfor=* \
1275 |
--program-transfo=* |
--program-transf=* \
1276 |
--program-trans=* |
--program-tran=* \
1277 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1278 program_transform_name
=$ac_optarg ;;
1280 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1282 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1283 pdfdir
=$ac_optarg ;;
1285 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1287 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1290 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1291 |
-silent |
--silent |
--silen |
--sile |
--sil)
1294 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1296 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1298 sbindir
=$ac_optarg ;;
1300 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1301 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1302 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1304 ac_prev
=sharedstatedir
;;
1305 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1306 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1307 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1309 sharedstatedir
=$ac_optarg ;;
1311 -site |
--site |
--sit)
1313 -site=* |
--site=* |
--sit=*)
1316 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1318 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1319 srcdir
=$ac_optarg ;;
1321 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1322 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1323 ac_prev
=sysconfdir
;;
1324 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1325 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1326 sysconfdir
=$ac_optarg ;;
1328 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1329 ac_prev
=target_alias
;;
1330 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1331 target_alias
=$ac_optarg ;;
1333 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1336 -version |
--version |
--versio |
--versi |
--vers |
-V)
1337 ac_init_version
=: ;;
1340 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1343 as_fn_error $?
"invalid package name: $ac_useropt"
1344 ac_useropt_orig
=$ac_useropt
1345 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346 case $ac_user_opts in
1350 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1351 ac_unrecognized_sep
=', ';;
1353 eval with_
$ac_useropt=\
$ac_optarg ;;
1355 -without-* |
--without-*)
1356 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1359 as_fn_error $?
"invalid package name: $ac_useropt"
1360 ac_useropt_orig
=$ac_useropt
1361 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1366 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1367 ac_unrecognized_sep
=', ';;
1369 eval with_
$ac_useropt=no
;;
1372 # Obsolete; use --with-x.
1375 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1376 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1377 ac_prev
=x_includes
;;
1378 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1379 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1380 x_includes
=$ac_optarg ;;
1382 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1383 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1384 ac_prev
=x_libraries
;;
1385 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1386 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1387 x_libraries
=$ac_optarg ;;
1389 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1390 Try \`$0 --help' for more information"
1394 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1395 # Reject names that are not valid shell variable names.
1396 case $ac_envvar in #(
1397 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1398 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1400 eval $ac_envvar=\
$ac_optarg
1401 export $ac_envvar ;;
1404 # FIXME: should be removed in autoconf 3.0.
1405 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1406 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1407 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1408 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1414 if test -n "$ac_prev"; then
1415 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1416 as_fn_error $?
"missing argument to $ac_option"
1419 if test -n "$ac_unrecognized_opts"; then
1420 case $enable_option_checking in
1422 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1423 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1427 # Check all directory arguments for consistency.
1428 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429 datadir sysconfdir sharedstatedir localstatedir includedir \
1430 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431 libdir localedir mandir
1433 eval ac_val
=\$
$ac_var
1434 # Remove trailing slashes.
1437 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1438 eval $ac_var=\
$ac_val;;
1440 # Be sure to have absolute directory names.
1442 [\\/$
]* | ?
:[\\/]* ) continue;;
1443 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1445 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1448 # There might be people who depend on the old broken behavior: `$host'
1449 # used to hold the argument of --host etc.
1450 # FIXME: To remove some day.
1453 target
=$target_alias
1455 # FIXME: To remove some day.
1456 if test "x$host_alias" != x
; then
1457 if test "x$build_alias" = x
; then
1458 cross_compiling
=maybe
1459 elif test "x$build_alias" != "x$host_alias"; then
1465 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1467 test "$silent" = yes && exec 6>/dev
/null
1470 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1471 ac_ls_di
=`ls -di .` &&
1472 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1473 as_fn_error $?
"working directory cannot be determined"
1474 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1475 as_fn_error $?
"pwd does not report name of working directory"
1478 # Find the source files, if location was not specified.
1479 if test -z "$srcdir"; then
1480 ac_srcdir_defaulted
=yes
1481 # Try the directory containing this script, then the parent directory.
1482 ac_confdir
=`$as_dirname -- "$as_myself" ||
1483 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1484 X"$as_myself" : 'X\(//\)[^/]' \| \
1485 X"$as_myself" : 'X\(//\)$' \| \
1486 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1487 $as_echo X"$as_myself" |
1488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1510 ac_srcdir_defaulted
=no
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1513 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1514 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1516 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1518 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1528 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1530 for ac_var
in $ac_precious_vars; do
1531 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1532 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1533 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1534 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1538 # Report the --help message.
1540 if test "$ac_init_help" = "long"; then
1541 # Omit some internal or obsolete options to make the list less imposing.
1542 # This message is too long to be a string in the A/UX 3.1 sh.
1544 \`configure' configures this package to adapt to many kinds of systems.
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE. See below for descriptions of some of the useful variables.
1551 Defaults for the options are specified in brackets.
1554 -h, --help display this help and exit
1555 --help=short display options specific to this package
1556 --help=recursive display the short help of all the included packages
1557 -V, --version display version information and exit
1558 -q, --quiet, --silent do not print \`checking ...' messages
1559 --cache-file=FILE cache test results in FILE [disabled]
1560 -C, --config-cache alias for \`--cache-file=config.cache'
1561 -n, --no-create do not create output files
1562 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1564 Installation directories:
1565 --prefix=PREFIX install architecture-independent files in PREFIX
1566 [$ac_default_prefix]
1567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1575 For better control, use the options below.
1577 Fine tuning of the installation directories:
1578 --bindir=DIR user executables [EPREFIX/bin]
1579 --sbindir=DIR system admin executables [EPREFIX/sbin]
1580 --libexecdir=DIR program executables [EPREFIX/libexec]
1581 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1582 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1583 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1584 --libdir=DIR object code libraries [EPREFIX/lib]
1585 --includedir=DIR C header files [PREFIX/include]
1586 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1587 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1588 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1589 --infodir=DIR info documentation [DATAROOTDIR/info]
1590 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1591 --mandir=DIR man documentation [DATAROOTDIR/man]
1592 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1593 --htmldir=DIR html documentation [DOCDIR]
1594 --dvidir=DIR dvi documentation [DOCDIR]
1595 --pdfdir=DIR pdf documentation [DOCDIR]
1596 --psdir=DIR ps documentation [DOCDIR]
1602 --x-includes=DIR X include files are
in DIR
1603 --x-libraries=DIR X library files are
in DIR
1606 --build=BUILD configure
for building on BUILD
[guessed
]
1607 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1608 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1612 if test -n "$ac_init_help"; then
1617 --disable-option-checking ignore unrecognized
--enable/--with options
1618 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1619 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1620 --disable-ssp disable gcc stack-protector
1621 --disable-pie disable position-independent-executable
1622 --disable-visibility disable gcc symbol visibility
1623 --disable-shared disable core shared libary generation
1626 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1627 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1628 --with-64bit turn on
64 bit compilation mode
(default is platform
1630 --with-optimization enable optimization
for C
/C
++ code
(default is
yes)
1631 --with-threads enable support
for multiple threads
(default is on
)
1632 --with-secure-sockets enable support
for secure sockets
(default is on
)
1633 --with-static-probes enable support
for static probes
(default is on
)
1634 --with-infiniband enable support
for Infiniband metrics
(default is
1636 --with-user user account under
which daemons run
(default is
1638 --with-group user group under
which daemons run
(default is pcp
)
1639 --with-discovery enable support
for service discovery
(default is on
)
1640 --with-systemd enable support
for systemd services
(default is on
)
1641 --with-qt enable support
for tools requiring Qt
(default is
1643 --with-python enable support
for tools requiring Python
(default
1645 --with-python3 enable support
for tools requiring Python3
(default
1647 --with-books enable building of the PCP books
(default is off
)
1648 --with-books-brand=BRAND
1649 choose the docbook brand when building the PCP books
1651 --with-papi[=DIR|
=MODULE
]
1652 enable performance api counter pmda
(default is on
)
1653 The optional argument may be a full path of a PAPI
1654 installation prefix
, or a pkgconfig module name.
1655 --with-perfevent enable perfevent pmda
(default is on
)
1656 --with-pmdajson enable JSON pmda
(default is on
)
1657 --with-manager enable daemon manager
(default is on
)
1658 --with-webapi enable REST API daemon
(default is on
)
1659 --with-webjs enable building of webjs packages
(default is off
)
1660 --with-vector enable building of vector package
(default is off
)
1661 --with-make path to GNU compatible
make(1) (default is empty
for
1663 --with-tar path to GNU compatible
tar(1) (default is empty
for
1665 --with-zip path to GNU compatible
zip(1) (default is empty
for
1667 --with-configdir configuration directory
[LOCALSTATEDIR
/pcp
/config
]
1668 --with-perl_installdirs perl installdirs
[vendor
]
1669 --with-perl_install_base
1670 perl install_base
[PREFIX
]
1671 --with-python_prefix python setup.py prefix
[PREFIX
]
1672 --with-x use the X Window System
1673 --with-rcdir rc directory
[SYSCONFDIR
/rc.d
]
1674 --with-sysconfigdir sysconfig directory
[SYSCONFDIR
/sysconfig
]
1675 --with-logdir log directory
[LOCALSTATEDIR
/log
/pcp
]
1676 --with-rundir run directory
[LOCALSTATEDIR
/run
/pcp
]
1677 --with-tmpdir tmp directory
[LOCALSTATEDIR
/tmp
]
1678 --with-docdir docs directory
[DOCDIR
/pcp-VERSION
]
1679 --with-demosdir run directory
[DATADIR
/pcp
/demos
]
1681 Some influential environment variables
:
1682 PKG_CONFIG path to pkg-config utility
1684 directories to add to pkg-config
's search path
1686 path overriding pkg-config's built-in search path
1687 CC C compiler
command
1688 CFLAGS C compiler flags
1689 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1690 nonstandard directory
<lib dir
>
1691 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1692 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1693 you have headers
in a nonstandard directory
<include dir
>
1694 CXX C
++ compiler
command
1695 CXXFLAGS C
++ compiler flags
1696 YACC The
`Yet Another Compiler Compiler' implementation to use.
1697 Defaults to the first program found out of: `bison
-y', `byacc',
1699 YFLAGS The list of arguments that will be passed by default to $YACC.
1700 This script will default YFLAGS to the empty string to avoid a
1701 default value of `-d' given by some make applications.
1704 C compiler flags for avahi, overriding pkg-config
1705 avahi_LIBS linker flags for avahi, overriding pkg-config
1706 SYSTEMD_SYSTEMUNITDIR
1707 value of systemdsystemunitdir for systemd, overriding pkg-config
1709 C compiler flags for ncurses, overriding pkg-config
1711 linker flags for ncurses, overriding pkg-config
1713 C compiler flags for SYSTEMD, overriding pkg-config
1715 linker flags for SYSTEMD, overriding pkg-config
1716 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1717 papi_LIBS linker flags for papi, overriding pkg-config
1718 libmicrohttpd_CFLAGS
1719 C compiler flags for libmicrohttpd, overriding pkg-config
1721 linker flags for libmicrohttpd, overriding pkg-config
1723 C compiler flags for cairo, overriding pkg-config
1724 cairo_LIBS linker flags for cairo, overriding pkg-config
1725 XMKMF Path to xmkmf, Makefile generator for X Window System
1726 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1727 zlib_LIBS linker flags for zlib, overriding pkg-config
1729 Use these variables to override the choices made by `configure' or to
help
1730 it to
find libraries and programs with nonstandard names
/locations.
1732 Report bugs to the package provider.
1737 if test "$ac_init_help" = "recursive"; then
1738 # If there are subdirs, report their specific --help.
1739 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1740 test -d "$ac_dir" ||
1741 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1746 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1748 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1749 # A ".." for each directory in $ac_dir_suffix.
1750 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1751 case $ac_top_builddir_sub in
1752 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1753 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1756 ac_abs_top_builddir
=$ac_pwd
1757 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1758 # for backward compatibility:
1759 ac_top_builddir
=$ac_top_build_prefix
1762 .
) # We are building in place.
1764 ac_top_srcdir
=$ac_top_builddir_sub
1765 ac_abs_top_srcdir
=$ac_pwd ;;
1766 [\\/]* | ?
:[\\/]* ) # Absolute name.
1767 ac_srcdir
=$srcdir$ac_dir_suffix;
1768 ac_top_srcdir
=$srcdir
1769 ac_abs_top_srcdir
=$srcdir ;;
1771 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1772 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1773 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1775 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1777 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1778 # Check for guested configure.
1779 if test -f "$ac_srcdir/configure.gnu"; then
1781 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1782 elif test -f "$ac_srcdir/configure"; then
1784 $SHELL "$ac_srcdir/configure" --help=recursive
1786 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1788 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1792 test -n "$ac_init_help" && exit $ac_status
1793 if $ac_init_version; then
1796 generated by GNU Autoconf
2.69
1798 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1799 This configure
script is free software
; the Free Software Foundation
1800 gives unlimited permission to copy
, distribute and modify it.
1805 ## ------------------------ ##
1806 ## Autoconf initialization. ##
1807 ## ------------------------ ##
1809 # ac_fn_c_try_compile LINENO
1810 # --------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_compile
()
1814 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1815 rm -f conftest.
$ac_objext
1816 if { { ac_try
="$ac_compile"
1818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1845 } # ac_fn_c_try_compile
1847 # ac_fn_c_try_link LINENO
1848 # -----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1863 if test -s conftest.err
; then
1864 grep -v '^ *+' conftest.err
>conftest.er1
1865 cat conftest.er1
>&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest
$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest
$ac_exeext
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.
$ac_ext >&5
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status
$ac_retval
1891 } # ac_fn_c_try_link
1893 # ac_fn_cxx_try_compile LINENO
1894 # ----------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_compile
()
1898 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1899 rm -f conftest.
$ac_objext
1900 if { { ac_try
="$ac_compile"
1902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_cxx_try_compile
1931 # ac_fn_c_try_cpp LINENO
1932 # ----------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1940 *) ac_try_echo
=$ac_try;;
1942 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1946 if test -s conftest.err
; then
1947 grep -v '^ *+' conftest.err
>conftest.er1
1948 cat conftest.er1
>&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i
&& {
1953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.
$ac_ext >&5
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status
$ac_retval
1968 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1969 # -------------------------------------------------------
1970 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1971 # the include files in INCLUDES and setting the cache variable VAR
1973 ac_fn_c_check_header_mongrel
()
1975 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1976 if eval \
${$3+:} false
; then :
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \
${$3+:} false
; then :
1980 $as_echo_n "(cached) " >&6
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1986 # Is the header compilable?
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1988 $as_echo_n "checking $2 usability... " >&6; }
1989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1994 if ac_fn_c_try_compile
"$LINENO"; then :
1995 ac_header_compiler
=yes
1997 ac_header_compiler
=no
1999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2001 $as_echo "$ac_header_compiler" >&6; }
2003 # Is the header present?
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2005 $as_echo_n "checking $2 presence... " >&6; }
2006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 if ac_fn_c_try_cpp
"$LINENO"; then :
2011 ac_header_preproc
=yes
2013 ac_header_preproc
=no
2015 rm -f conftest.err conftest.i conftest.
$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2017 $as_echo "$ac_header_preproc" >&6; }
2019 # So? What about this header?
2020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2023 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2025 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2029 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2031 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2033 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2035 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \
${$3+:} false
; then :
2043 $as_echo_n "(cached) " >&6
2045 eval "$3=\$ac_header_compiler"
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 } # ac_fn_c_check_header_mongrel
2055 # ac_fn_c_try_run LINENO
2056 # ----------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2058 # that executables *can* be run.
2061 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2062 if { { ac_try
="$ac_link"
2064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>&5
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2073 { { case "(($ac_try" in
2074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2075 *) ac_try_echo
=$ac_try;;
2077 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_try") 2>&5
2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 test $ac_status = 0; }; }; then :
2085 $as_echo "$as_me: program exited with status $ac_status" >&5
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.
$ac_ext >&5
2089 ac_retval
=$ac_status
2091 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status
$ac_retval
2097 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2098 # -------------------------------------------------------
2099 # Tests whether HEADER exists and can be compiled using the include files in
2100 # INCLUDES, setting the cache variable VAR accordingly.
2101 ac_fn_c_check_header_compile
()
2103 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105 $as_echo_n "checking for $2... " >&6; }
2106 if eval \
${$3+:} false
; then :
2107 $as_echo_n "(cached) " >&6
2109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2114 if ac_fn_c_try_compile
"$LINENO"; then :
2119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_header_compile
2128 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2129 # -------------------------------------------
2130 # Tests whether TYPE exists after having included INCLUDES, setting cache
2131 # variable VAR accordingly.
2132 ac_fn_c_check_type
()
2134 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136 $as_echo_n "checking for $2... " >&6; }
2137 if eval \
${$3+:} false
; then :
2138 $as_echo_n "(cached) " >&6
2141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2153 if ac_fn_c_try_compile
"$LINENO"; then :
2154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2166 if ac_fn_c_try_compile
"$LINENO"; then :
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 } # ac_fn_c_check_type
2182 # ac_fn_c_check_func LINENO FUNC VAR
2183 # ----------------------------------
2184 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2185 ac_fn_c_check_func
()
2187 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \
${$3+:} false
; then :
2191 $as_echo_n "(cached) " >&6
2193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2197 #define $2 innocuous_$2
2199 /* System header to define __stub macros and hopefully few prototypes,
2200 which can conflict with char $2 (); below.
2201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2202 <limits.h> exists even on freestanding compilers. */
2205 # include <limits.h>
2207 # include <assert.h>
2212 /* Override any GCC internal prototype to avoid an error.
2213 Use char because int might match the return type of a GCC
2214 builtin and then its argument prototype would still apply. */
2219 /* The GNU C library defines this for functions which it implements
2220 to always fail with ENOSYS. Some functions are actually named
2221 something starting with __ and the normal name is an alias. */
2222 #if defined __stub_$2 || defined __stub___$2
2234 if ac_fn_c_try_link
"$LINENO"; then :
2239 rm -f core conftest.err conftest.
$ac_objext \
2240 conftest
$ac_exeext conftest.
$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247 } # ac_fn_c_check_func
2248 cat >config.log
<<_ACEOF
2249 This file contains any messages produced by compilers while
2250 running configure, to aid debugging if configure makes a mistake.
2252 It was created by $as_me, which was
2253 generated by GNU Autoconf 2.69. Invocation command line was
2265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2274 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2275 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2277 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2278 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2279 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2280 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir
=.
2289 $as_echo "PATH: $as_dir"
2305 # Keep a trace of the command line.
2306 # Strip out --no-create and --no-recursion so they do not pile up.
2307 # Strip out --silent because we don't want to record it for future runs.
2308 # Also quote any args containing shell meta-characters.
2309 # Make two passes to allow for proper duplicate-argument suppression.
2313 ac_must_keep_next
=false
2319 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2321 |
-silent |
--silent |
--silen |
--sile |
--sil)
2324 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2329 as_fn_append ac_configure_args1
" '$ac_arg'"
2330 if test $ac_must_keep_next = true
; then
2331 ac_must_keep_next
=false
# Got value, back to normal.
2334 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2335 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2336 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2337 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2338 case "$ac_configure_args0 " in
2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342 -* ) ac_must_keep_next
=true
;;
2345 as_fn_append ac_configure_args
" '$ac_arg'"
2350 { ac_configure_args0
=; unset ac_configure_args0
;}
2351 { ac_configure_args1
=; unset ac_configure_args1
;}
2353 # When interrupted or exit'd, cleanup temporary files, and complete
2354 # config.log. We remove comments because anyway the quotes in there
2355 # would cause problems or look ugly.
2356 # WARNING: Use '\'' to represent an apostrophe within the trap.
2357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358 trap 'exit_status=$?
2359 # Save into config.log some information that might help in debugging.
2363 $as_echo "## ---------------- ##
2364 ## Cache variables. ##
2365 ## ---------------- ##"
2367 # The following way of writing the cache mishandles newlines in values,
2369 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2370 eval ac_val=\$$ac_var
2374 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2375 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378 _ | IFS | as_nl) ;; #(
2379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2380 *) { eval $ac_var=; unset $ac_var;} ;;
2385 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2386 *${as_nl}ac_space=\ *)
2388 "s/'\''/'\''\\\\'\'''\''/g;
2389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2399 $as_echo "## ----------------- ##
2400 ## Output variables. ##
2401 ## ----------------- ##"
2403 for ac_var in $ac_subst_vars
2405 eval ac_val=\$$ac_var
2407 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 $as_echo "$ac_var='\''$ac_val'\''"
2413 if test -n "$ac_subst_files"; then
2414 $as_echo "## ------------------- ##
2415 ## File substitutions. ##
2416 ## ------------------- ##"
2418 for ac_var
in $ac_subst_files
2420 eval ac_val
=\$
$ac_var
2422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 $as_echo "$ac_var='\''$ac_val'\''"
2429 if test -s confdefs.h; then
2430 $as_echo "## ----------- ##
2437 test "$ac_signal" != 0 &&
2438 $as_echo "$as_me: caught signal $ac_signal"
2439 $as_echo "$as_me: exit $exit_status"
2441 rm -f core *.core core.conftest.* &&
2442 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445 for ac_signal
in 1 2 13 15; do
2446 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2451 rm -f -r conftest
* confdefs.h
2453 $as_echo "/* confdefs.h */" > confdefs.h
2455 # Predefined preprocessor variables.
2457 cat >>confdefs.h
<<_ACEOF
2458 #define PACKAGE_NAME "$PACKAGE_NAME"
2461 cat >>confdefs.h
<<_ACEOF
2462 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2465 cat >>confdefs.h
<<_ACEOF
2466 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2469 cat >>confdefs.h
<<_ACEOF
2470 #define PACKAGE_STRING "$PACKAGE_STRING"
2473 cat >>confdefs.h
<<_ACEOF
2474 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2477 cat >>confdefs.h
<<_ACEOF
2478 #define PACKAGE_URL "$PACKAGE_URL"
2482 # Let the site file select an alternate cache file if it wants to.
2483 # Prefer an explicitly selected file to automatically selected ones.
2486 if test -n "$CONFIG_SITE"; then
2487 # We do not want a PATH search for config.site.
2488 case $CONFIG_SITE in #((
2489 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2490 */*) ac_site_file1
=$CONFIG_SITE;;
2491 *) ac_site_file1
=.
/$CONFIG_SITE;;
2493 elif test "x$prefix" != xNONE
; then
2494 ac_site_file1
=$prefix/share
/config.site
2495 ac_site_file2
=$prefix/etc
/config.site
2497 ac_site_file1
=$ac_default_prefix/share
/config.site
2498 ac_site_file2
=$ac_default_prefix/etc
/config.site
2500 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2502 test "x$ac_site_file" = xNONE
&& continue
2503 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506 sed 's/^/| /' "$ac_site_file" >&5
2508 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 as_fn_error $?
"failed to load site script $ac_site_file
2511 See \`config.log' for more details" "$LINENO" 5; }
2515 if test -r "$cache_file"; then
2516 # Some versions of bash will fail to source /dev/null (special files
2517 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2518 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520 $as_echo "$as_me: loading cache $cache_file" >&6;}
2522 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2523 *) .
"./$cache_file";;
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528 $as_echo "$as_me: creating cache $cache_file" >&6;}
2532 # Check that the precious variables saved in the cache have kept the same
2534 ac_cache_corrupted
=false
2535 for ac_var
in $ac_precious_vars; do
2536 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2537 eval ac_new_set
=\
$ac_env_${ac_var}_set
2538 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2539 eval ac_new_val
=\
$ac_env_${ac_var}_value
2540 case $ac_old_set,$ac_new_set in
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2544 ac_cache_corrupted
=: ;;
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2548 ac_cache_corrupted
=: ;;
2551 if test "x$ac_old_val" != "x$ac_new_val"; then
2552 # differences in whitespace do not lead to failure.
2553 ac_old_val_w
=`echo x $ac_old_val`
2554 ac_new_val_w
=`echo x $ac_new_val`
2555 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2557 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2558 ac_cache_corrupted
=:
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2561 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2562 eval $ac_var=\
$ac_old_val
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2565 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2567 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2570 # Pass precious variables to config.status.
2571 if test "$ac_new_set" = set; then
2573 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574 *) ac_arg
=$ac_var=$ac_new_val ;;
2576 case " $ac_configure_args " in
2577 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2578 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2582 if $ac_cache_corrupted; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2587 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589 ## -------------------- ##
2590 ## Main body of script. ##
2591 ## -------------------- ##
2594 ac_cpp
='$CPP $CPPFLAGS'
2595 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2604 # Check whether --with-64bit was given.
2605 if test "${with_64bit+set}" = set; then :
2606 withval
=$with_64bit; use_64bit
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-64bit=$withval"
2611 # Check whether --with-optimization was given.
2612 if test "${with_optimization+set}" = set; then :
2613 withval
=$with_optimization; use_optimization
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-optimization=$withval"
2620 # Check whether --with-threads was given.
2621 if test "${with_threads+set}" = set; then :
2622 withval
=$with_threads; do_threads
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-threads=$withval"
2629 # Check whether --with-secure-sockets was given.
2630 if test "${with_secure_sockets+set}" = set; then :
2631 withval
=$with_secure_sockets; do_secure
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2638 # Check whether --with-static-probes was given.
2639 if test "${with_static_probes+set}" = set; then :
2640 withval
=$with_static_probes; do_probes
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2647 # Check whether --with-infiniband was given.
2648 if test "${with_infiniband+set}" = set; then :
2649 withval
=$with_infiniband; do_infiniband
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2656 # Check whether --with-user was given.
2657 if test "${with_user+set}" = set; then :
2658 withval
=$with_user; pcp_user
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-user-account=$withval"
2666 # Check whether --with-group was given.
2667 if test "${with_group+set}" = set; then :
2668 withval
=$with_group; pcp_group
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-group-account=$withval"
2676 # Check whether --with-discovery was given.
2677 if test "${with_discovery+set}" = set; then :
2678 withval
=$with_discovery; do_discovery
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-discovery=$withval"
2685 # Check whether --with-systemd was given.
2686 if test "${with_systemd+set}" = set; then :
2687 withval
=$with_systemd; do_systemd
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-systemd=$withval"
2694 # Check whether --with-qt was given.
2695 if test "${with_qt+set}" = set; then :
2696 withval
=$with_qt; do_qt
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-qt=$withval"
2703 # Check whether --with-python was given.
2704 if test "${with_python+set}" = set; then :
2705 withval
=$with_python; do_python
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python=$withval"
2712 # Check whether --with-python3 was given.
2713 if test "${with_python3+set}" = set; then :
2714 withval
=$with_python3; do_python3
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python3=$withval"
2721 # Check whether --with-books was given.
2722 if test "${with_books+set}" = set; then :
2723 withval
=$with_books; do_books
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books=$withval"
2730 # Check whether --with-books-brand was given.
2731 if test "${with_books_brand+set}" = set; then :
2732 withval
=$with_books_brand; do_books_brand
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2734 do_books_brand
=common
2739 # Check whether --with-papi was given.
2740 if test "${with_papi+set}" = set; then :
2741 withval
=$with_papi; do_papi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-papi=$withval"
2748 # Check whether --with-perfevent was given.
2749 if test "${with_perfevent+set}" = set; then :
2750 withval
=$with_perfevent; do_perfevent
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2757 # Check whether --with-pmdajson was given.
2758 if test "${with_pmdajson+set}" = set; then :
2759 withval
=$with_pmdajson; do_pmdajson
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2766 # Check whether --with-manager was given.
2767 if test "${with_manager+set}" = set; then :
2768 withval
=$with_manager; do_manager
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-manager=$withval"
2775 # Check whether --with-webapi was given.
2776 if test "${with_webapi+set}" = set; then :
2777 withval
=$with_webapi; do_webapi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webapi=$withval"
2784 # Check whether --with-webjs was given.
2785 if test "${with_webjs+set}" = set; then :
2786 withval
=$with_webjs; do_webjs
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webjs=$withval"
2793 # Check whether --with-vector was given.
2794 if test "${with_vector+set}" = set; then :
2795 withval
=$with_vector; do_vector
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-vector=$withval"
2803 # Check whether --with-make was given.
2804 if test "${with_make+set}" = set; then :
2805 withval
=$with_make; MAKE
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-make=$withval"
2812 # Check whether --with-tar was given.
2813 if test "${with_tar+set}" = set; then :
2814 withval
=$with_tar; TAR
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-tar=$withval"
2821 # Check whether --with-zip was given.
2822 if test "${with_zip+set}" = set; then :
2823 withval
=$with_zip; ZIP
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-zip=$withval"
2830 # Note: the following environment variables may be
2831 # set to override the defaults.
2833 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2837 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2838 if test -f "$ac_dir/install-sh"; then
2840 ac_install_sh
="$ac_aux_dir/install-sh -c"
2842 elif test -f "$ac_dir/install.sh"; then
2844 ac_install_sh
="$ac_aux_dir/install.sh -c"
2846 elif test -f "$ac_dir/shtool"; then
2848 ac_install_sh
="$ac_aux_dir/shtool install -c"
2852 if test -z "$ac_aux_dir"; then
2853 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2856 # These three variables are undocumented and unsupported,
2857 # and are intended to be withdrawn in a future Autoconf release.
2858 # They can cause serious problems if a builder's source tree is in a directory
2859 # whose full name contains unusual characters.
2860 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2861 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2862 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2865 # Make sure we can run config.sub.
2866 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2867 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2870 $as_echo_n "checking build system type... " >&6; }
2871 if ${ac_cv_build+:} false
; then :
2872 $as_echo_n "(cached) " >&6
2874 ac_build_alias
=$build_alias
2875 test "x$ac_build_alias" = x
&&
2876 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2877 test "x$ac_build_alias" = x
&&
2878 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2879 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2880 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2884 $as_echo "$ac_cv_build" >&6; }
2885 case $ac_cv_build in
2887 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2890 ac_save_IFS
=$IFS; IFS
='-'
2896 # Remember, the first character of IFS is used to create $*,
2897 # except with old shells:
2900 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2904 $as_echo_n "checking host system type... " >&6; }
2905 if ${ac_cv_host+:} false
; then :
2906 $as_echo_n "(cached) " >&6
2908 if test "x$host_alias" = x
; then
2909 ac_cv_host
=$ac_cv_build
2911 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2912 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2917 $as_echo "$ac_cv_host" >&6; }
2920 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2923 ac_save_IFS
=$IFS; IFS
='-'
2929 # Remember, the first character of IFS is used to create $*,
2930 # except with old shells:
2933 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2937 $as_echo_n "checking target system type... " >&6; }
2938 if ${ac_cv_target+:} false
; then :
2939 $as_echo_n "(cached) " >&6
2941 if test "x$target_alias" = x
; then
2942 ac_cv_target
=$ac_cv_host
2944 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2945 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2950 $as_echo "$ac_cv_target" >&6; }
2951 case $ac_cv_target in
2953 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2955 target
=$ac_cv_target
2956 ac_save_IFS
=$IFS; IFS
='-'
2962 # Remember, the first character of IFS is used to create $*,
2963 # except with old shells:
2966 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2969 # The aliases save the names the user supplied, while $host etc.
2970 # will get canonicalized.
2971 test -n "$target_alias" &&
2972 test "$program_prefix$program_suffix$program_transform_name" = \
2974 program_prefix
=${target_alias}-
2976 if test -z "$target"
2979 FATAL ERROR: Cannot guess your target, try explicit specification
2980 using --target or mailto: pcp@oss.sgi.com to ask.'
2981 rm -rf conftest conftest.
*
2984 target
=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
2985 target_os
=`echo $target_os | sed 's/solaris2\..*/solaris/'`
2986 target_os
=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
2988 build
=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
2989 build_os
=`echo $build_os | sed 's/solaris2\..*/solaris/'`
2990 build_os
=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
2993 echo Building on
$build for $target
2994 echo "Build: os=$build_os cpu=$build_cpu"
2995 echo "Target: os=$target_os cpu=$target_cpu"
2997 if test "$cross_compiling" = "yes"; then
2998 if test -f .
/config.
$target_os; then
2999 . .
/config.
$target_os
3003 FATAL ERROR: Cannot perform cross-compilation without a file to source
3004 configuration information from (config.$target_os is missing)"
3005 rm -rf conftest conftest.
*
3012 target_distro
=$target_os
3013 if test $target_os = linux
3016 $as_echo "#define IS_LINUX 1" >>confdefs.h
3018 test -f /etc
/SuSE-release
&& target_distro
=suse
3019 test -f /etc
/fedora-release
&& target_distro
=fedora
3020 test -f /etc
/redhat-release
&& target_distro
=redhat
3021 test -f /etc
/debian_version
&& target_distro
=debian
3022 test -f /etc
/slackware-version
&& target_distro
=slackware
3023 test -f /etc
/gentoo-release
&& target_distro
=gentoo
3024 test -f /etc
/mandriva-release
&& target_distro
=mandriva
3025 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3026 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3027 pcp_ps_all_flags
=-efw
3028 elif test $target_os = darwin
3031 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3033 target_distro
=macosx
3034 version
=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3035 CFLAGS
="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3036 if test $version -ge 106
3039 CFLAGS
="$CFLAGS -arch x86_64"
3042 pcp_platform_paths
='/usr/local/bin'
3043 pcp_ps_all_flags
=auxww
3044 elif test $target_os = mingw
3047 $as_echo "#define IS_MINGW 1" >>confdefs.h
3049 CFLAGS
="-fno-strict-aliasing"
3050 pcp_platform_paths
=''
3051 pcp_ps_all_flags
=-efW
3052 elif test $target_os = solaris
3055 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3057 export CFLAGS_IF_GCC
="-fPIC -fno-strict-aliasing"
3058 export CFLAGS_IF_SUNCC
="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3059 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3060 pcp_ps_all_flags
=-ef
3061 elif test $target_os = aix
3064 $as_echo "#define IS_AIX 1" >>confdefs.h
3066 export CFLAGS
="-qcpluscmt"
3067 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3068 pcp_ps_all_flags
=-ef
3069 elif test $target_os = freebsd ||
test $target_os = kfreebsd
3072 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3074 test -f /etc
/debian_version
&& target_distro
=debian
3075 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3076 if test $target_os = kfreebsd
3078 pcp_ps_all_flags
=-efw
3080 pcp_ps_all_flags
=auxww
3082 pcp_platform_paths
='/usr/bin/X11'
3083 test -d /usr
/local
/bin
&& pcp_platform_paths
="$pcp_platform_paths:/usr/local/bin"
3084 test -d /usr
/bsd
&& pcp_platform_paths
="$pcp_platform_paths:/usr/bsd"
3085 elif test $target_os = gnu
3088 $as_echo "#define IS_GNU 1" >>confdefs.h
3090 test -f /etc
/debian_version
&& target_distro
=debian
3091 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3092 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3093 pcp_ps_all_flags
=-efw
3094 elif test $target_os = netbsdelf
3098 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3100 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3101 pcp_platform_paths
='/usr/pkg/bin'
3102 pcp_ps_all_flags
=auxww
3103 elif test $target_os = openbsd
3107 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3109 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3110 pcp_platform_paths
='/usr/local/bin'
3111 pcp_ps_all_flags
=auxww
3114 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3115 rm -rf conftest conftest.
*
3121 if test "$use_optimization" = no
3123 optimization
="-O0 -g"
3125 optimization
="-O2 -g"
3136 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3139 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
3143 $as_echo_n "(cached) " >&6
3147 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
3150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir
=.
3155 for ac_exec_ext
in '' $ac_executable_extensions; do
3156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
3169 if test -n "$PKG_CONFIG"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3171 $as_echo "$PKG_CONFIG" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3179 if test -z "$ac_cv_path_PKG_CONFIG"; then
3180 ac_pt_PKG_CONFIG
=$PKG_CONFIG
3181 # Extract the first word of "pkg-config", so it can be a program name with args.
3182 set dummy pkg-config
; ac_word
=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
3186 $as_echo_n "(cached) " >&6
3188 case $ac_pt_PKG_CONFIG in
3190 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir
=.
3198 for ac_exec_ext
in '' $ac_executable_extensions; do
3199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
3212 if test -n "$ac_pt_PKG_CONFIG"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3214 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3220 if test "x$ac_pt_PKG_CONFIG" = x
; then
3223 case $cross_compiling:$ac_tool_warned in
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned
=yes ;;
3229 PKG_CONFIG
=$ac_pt_PKG_CONFIG
3232 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
3236 if test -n "$PKG_CONFIG"; then
3237 _pkg_min_version
=0.9.0
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3239 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3240 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242 $as_echo "yes" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3249 if test -z "$PKG_CONFIG"
3252 echo "FATAL ERROR: did not find a pkg-config executable."
3253 echo "You can either set \$PKG_CONFIG as the full path to pkg-config"
3254 echo "in the environment, or install the pkgconfig package."
3255 rm -rf conftest conftest.
*
3261 ac_cpp
='$CPP $CPPFLAGS'
3262 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3265 if test -n "$ac_tool_prefix"; then
3266 for ac_prog
in suncc egcc gcc cc
3268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3269 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_CC+:} false
; then :
3273 $as_echo_n "(cached) " >&6
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC
="$CC" # Let the user override the test.
3278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir
=.
3283 for ac_exec_ext
in '' $ac_executable_extensions; do
3284 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 if test -n "$CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298 $as_echo "$CC" >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3305 test -n "$CC" && break
3308 if test -z "$CC"; then
3310 for ac_prog
in suncc egcc gcc cc
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy
$ac_prog; ac_word
=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3317 $as_echo_n "(cached) " >&6
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir
=.
3327 for ac_exec_ext
in '' $ac_executable_extensions; do
3328 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_CC
="$ac_prog"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3340 if test -n "$ac_ct_CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342 $as_echo "$ac_ct_CC" >&6; }
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3349 test -n "$ac_ct_CC" && break
3352 if test "x$ac_ct_CC" = x
; then
3355 case $cross_compiling:$ac_tool_warned in
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3359 ac_tool_warned
=yes ;;
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error $?
"no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details" "$LINENO" 5; }
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3375 for ac_option
in --version -v -V -qversion; do
3376 { { ac_try
="$ac_compiler $ac_option >&5"
3378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3385 if test -s conftest.err; then
3387 ... rest of stderr output deleted ...
3388 10q' conftest.err >conftest.er1
3389 cat conftest.er1 >&5
3391 rm -f conftest.er1 conftest.err
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 ac_clean_files_save=$ac_clean_files
3408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409 # Try to create an executable without -o first, disregard a.out.
3410 # It will help us diagnose broken compilers, and finding out an intuition
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413 $as_echo_n "checking whether the C compiler works... " >&6; }
3414 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3416 # The possible output files:
3417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3420 for ac_file in $ac_files
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3429 if { { ac_try="$ac_link_default"
3431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3432 *) ac_try_echo
=$ac_try;;
3434 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link_default") 2>&5
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3443 # so that the user can short-circuit this test for compilers unknown to
3445 for ac_file
in $ac_files ''
3447 test -f "$ac_file" ||
continue
3449 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3452 # We found the default executable, but exeext='' is most
3456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3458 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 # We set ac_cv_exeext here because the later test for it is not
3461 # safe: cross compilers may not add the suffix if given an `-o'
3462 # argument, so we may need to know it at that point already.
3463 # Even if this section looks crufty: it has the advantage of
3470 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3475 if test -z "$ac_file"; then :
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.
$ac_ext >&5
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error
77 "C compiler cannot create executables
3484 See \`config.log' for more details" "$LINENO" 5; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 $as_echo "yes" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490 $as_echo_n "checking for C compiler default output file name... " >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3492 $as_echo "$ac_file" >&6; }
3493 ac_exeext
=$ac_cv_exeext
3495 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3496 ac_clean_files
=$ac_clean_files_save
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3498 $as_echo_n "checking for suffix of executables... " >&6; }
3499 if { { ac_try
="$ac_link"
3501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link") 2>&5
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3511 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3512 # work properly (i.e., refer to `conftest.exe'), while it won't with
3514 for ac_file
in conftest.exe conftest conftest.
*; do
3515 test -f "$ac_file" ||
continue
3517 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3518 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3527 See \`config.log' for more details" "$LINENO" 5; }
3529 rm -f conftest conftest
$ac_cv_exeext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3531 $as_echo "$ac_cv_exeext" >&6; }
3533 rm -f conftest.
$ac_ext
3534 EXEEXT
=$ac_cv_exeext
3536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3542 FILE *f = fopen ("conftest.out", "w");
3543 return ferror (f) || fclose (f) != 0;
3549 ac_clean_files
="$ac_clean_files conftest.out"
3550 # Check that the compiler produces executables we can run. If not, either
3551 # the compiler is broken, or we cross compile.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553 $as_echo_n "checking whether we are cross compiling... " >&6; }
3554 if test "$cross_compiling" != yes; then
3555 { { ac_try
="$ac_link"
3557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link") 2>&5
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }
3566 if { ac_try='./conftest$ac_cv_exeext'
3567 { { case "(($ac_try" in
3568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3569 *) ac_try_echo
=$ac_try;;
3571 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_try") 2>&5
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; }; then
3579 if test "$cross_compiling" = maybe
; then
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $?
"cannot run C compiled programs.
3585 If you meant to cross compile, use \`--host'.
3586 See \`config.log' for more details" "$LINENO" 5; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3591 $as_echo "$cross_compiling" >&6; }
3593 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3594 ac_clean_files
=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596 $as_echo_n "checking for suffix of object files... " >&6; }
3597 if ${ac_cv_objext+:} false
; then :
3598 $as_echo_n "(cached) " >&6
3600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 rm -f conftest.o conftest.obj
3612 if { { ac_try
="$ac_compile"
3614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_compile") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 for ac_file in conftest.o conftest.obj conftest.*; do
3624 test -f "$ac_file" || continue;
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3638 See \
`config.log' for more details" "$LINENO" 5; }
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643 $as_echo "$ac_cv_objext" >&6; }
3644 OBJEXT=$ac_cv_objext
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648 if ${ac_cv_c_compiler_gnu+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3665 if ac_fn_c_try_compile "$LINENO"; then :
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if ${ac_cv_prog_cc_g+:} false; then :
3686 $as_echo_n "(cached) " >&6
3688 ac_save_c_werror_flag=$ac_c_werror_flag
3689 ac_c_werror_flag=yes
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3703 if ac_fn_c_try_compile "$LINENO"; then :
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3718 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_c_werror_flag=$ac_save_c_werror_flag
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3734 if ac_fn_c_try_compile "$LINENO"; then :
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_c_werror_flag=$ac_save_c_werror_flag
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745 $as_echo "$ac_cv_prog_cc_g" >&6; }
3746 if test "$ac_test_CFLAGS" = set; then
3747 CFLAGS=$ac_save_CFLAGS
3748 elif test $ac_cv_prog_cc_g = yes; then
3749 if test "$GCC" = yes; then
3755 if test "$GCC" = yes; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763 if ${ac_cv_prog_cc_c89+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 ac_cv_prog_cc_c89=no
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3774 struct buf { int x; };
3775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3776 static char *e (p, i)
3782 static char *f (char * (*g) (char **, int), char **p, ...)
3787 s = g (p, va_arg (v,int));
3792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3793 function prototypes and stuff, but not '\xHH' hex character constants.
3794 These don't provoke an error unfortunately, instead are silently treated
3795 as 'x'. The following induces an error, until -std is added to get
3796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3797 array size at least. It's necessary to write '\x00'==0 to get something
3798 that's true only with -std. */
3799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3802 inside strings and character constants. */
3804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806 int test (int i, double x);
3807 struct s1 {int (*f) (int a);};
3808 struct s2 {int (*f) (double a);};
3809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3815 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823 CC="$ac_save_CC $ac_arg"
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_c89=$ac_arg
3827 rm -f core conftest.err conftest.$ac_objext
3828 test "x$ac_cv_prog_cc_c89" != "xno" && break
3830 rm -f conftest.$ac_ext
3835 case "x$ac_cv_prog_cc_c89" in
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3838 $as_echo "none needed" >&6; } ;;
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3841 $as_echo "unsupported" >&6; } ;;
3843 CC="$CC $ac_cv_prog_cc_c89"
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3847 if test "x$ac_cv_prog_cc_c89" != xno; then :
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 if test $target_os = solaris
3859 # Extract the first word of "$CC", so it can be a program name with args.
3860 set dummy $CC; ac_word=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if ${ac_cv_path_CCPATH+:} false; then :
3864 $as_echo_n "(cached) " >&6
3868 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3890 CCPATH=$ac_cv_path_CCPATH
3891 if test -n "$CCPATH"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3893 $as_echo "$CCPATH" >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3901 if test "$GCC" = "yes"
3903 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3905 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3907 if test "$use_64bit" = "no"
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3912 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3917 CFLAGS="$CFLAGS -m64"
3918 LDFLAGS="$LDFLAGS -m64"
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3938 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3940 CFLAGS="-O $PCFLAGS"
3944 # Add some security-related gcc flags
3945 if echo "$CFLAGS" | grep stack-protector >/dev/null
3949 # Check whether --enable-ssp was given.
3950 if test "${enable_ssp+set}" = set; then :
3951 enableval=$enable_ssp;
3955 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3957 save_CFLAGS="$CFLAGS"
3958 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3963 if ac_fn_c_try_compile "$LINENO"; then :
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3966 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3967 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3971 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3972 CFLAGS="$save_CFLAGS"
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 # Check for even more security-related gcc/linker flags, useful for daemons
3983 # Check whether --enable-pie was given.
3984 if test "${enable_pie+set}" = set; then :
3985 enableval=$enable_pie;
3988 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
3991 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
3992 save_CFLAGS="$CFLAGS"
3993 save_LDFLAGS="$LDFLAGS"
3994 CFLAGS="$CFLAGS $PIECFLAGS"
3995 LDFLAGS="$LDFLAGS $PIELDFLAGS"
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4000 if ac_fn_c_try_link "$LINENO"; then :
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4003 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4008 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4013 rm -f core conftest.err conftest.$ac_objext \
4014 conftest$ac_exeext conftest.$ac_ext
4015 CFLAGS="$save_CFLAGS"
4016 LDFLAGS="$save_LDFLAGS"
4022 # Check for support for symbol hiding via gcc flags
4023 # Check whether --enable-visibility was given.
4024 if test "${enable_visibility+set}" = set; then :
4025 enableval=$enable_visibility;
4028 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4030 INVISIBILITY="-fvisibility=hidden"
4031 save_CFLAGS="$CFLAGS"
4032 CFLAGS="$CFLAGS -c $INVISIBILITY"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035 int visible () { return 0; }
4037 if ac_fn_c_try_compile "$LINENO"; then :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4040 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4045 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 CFLAGS="$save_CFLAGS"
4056 ac_cpp='$CXXCPP $CPPFLAGS'
4057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4060 if test -z "$CXX"; then
4061 if test -n "$CCC"; then
4064 if test -n "$ac_tool_prefix"; then
4065 for ac_prog in eg++ g++ c++
4067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if ${ac_cv_prog_CXX+:} false; then :
4072 $as_echo_n "(cached) " >&6
4074 if test -n "$CXX"; then
4075 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 if test -n "$CXX"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4097 $as_echo "$CXX" >&6; }
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4104 test -n "$CXX" && break
4107 if test -z "$CXX"; then
4109 for ac_prog in eg++ g++ c++
4111 # Extract the first word of "$ac_prog", so it can be a program name with args.
4112 set dummy $ac_prog; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4116 $as_echo_n "(cached) " >&6
4118 if test -n "$ac_ct_CXX"; then
4119 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_CXX="$ac_prog"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4139 if test -n "$ac_ct_CXX"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4141 $as_echo "$ac_ct_CXX" >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4148 test -n "$ac_ct_CXX" && break
4151 if test "x$ac_ct_CXX" = x; then
4154 case $cross_compiling:$ac_tool_warned in
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4158 ac_tool_warned=yes ;;
4166 # Provide some information about the compiler.
4167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4170 for ac_option in --version -v -V -qversion; do
4171 { { ac_try="$ac_compiler $ac_option >&5"
4173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4174 *) ac_try_echo
=$ac_try;;
4176 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 $as_echo "$ac_try_echo"; } >&5
4178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4180 if test -s conftest.err
; then
4182 ... rest of stderr output deleted ...
4183 10q' conftest.err
>conftest.er1
4184 cat conftest.er1
>&5
4186 rm -f conftest.er1 conftest.err
4187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4193 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4194 $as_echo_n "(cached) " >&6
4196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4210 if ac_fn_cxx_try_compile
"$LINENO"; then :
4215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4216 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4220 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4221 if test $ac_compiler_gnu = yes; then
4226 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4227 ac_save_CXXFLAGS
=$CXXFLAGS
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4229 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4230 if ${ac_cv_prog_cxx_g+:} false
; then :
4231 $as_echo_n "(cached) " >&6
4233 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4234 ac_cxx_werror_flag
=yes
4237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4248 if ac_fn_cxx_try_compile
"$LINENO"; then :
4249 ac_cv_prog_cxx_g
=yes
4252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4263 if ac_fn_cxx_try_compile
"$LINENO"; then :
4266 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4279 if ac_fn_cxx_try_compile
"$LINENO"; then :
4280 ac_cv_prog_cxx_g
=yes
4282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4287 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4290 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4291 if test "$ac_test_CXXFLAGS" = set; then
4292 CXXFLAGS
=$ac_save_CXXFLAGS
4293 elif test $ac_cv_prog_cxx_g = yes; then
4294 if test "$GXX" = yes; then
4300 if test "$GXX" = yes; then
4307 ac_cpp
='$CPP $CPPFLAGS'
4308 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4315 $as_echo_n "checking for working C++ compiler... " >&6; }
4317 ac_cpp
='$CXXCPP $CPPFLAGS'
4318 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4329 const char gday[] = "G'day, world\n";
4334 if ac_fn_cxx_try_compile
"$LINENO"; then :
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4336 $as_echo "yes" >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4344 ac_cpp
='$CPP $CPPFLAGS'
4345 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4350 # Prevent shared libraries from being built for libpcp and other core libraries
4351 # Check whether --enable-shared was given.
4352 if test "${enable_shared+set}" = set; then :
4353 enableval
=$enable_shared; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --disable-shared=$withval"
4358 for ac_prog
in flex
lex
4360 # Extract the first word of "$ac_prog", so it can be a program name with args.
4361 set dummy
$ac_prog; ac_word
=$2
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 $as_echo_n "checking for $ac_word... " >&6; }
4364 if ${ac_cv_prog_LEX+:} false
; then :
4365 $as_echo_n "(cached) " >&6
4367 if test -n "$LEX"; then
4368 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4374 test -z "$as_dir" && as_dir
=.
4375 for ac_exec_ext
in '' $ac_executable_extensions; do
4376 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_LEX
="$ac_prog"
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 if test -n "$LEX"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4390 $as_echo "$LEX" >&6; }
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
4397 test -n "$LEX" && break
4399 test -n "$LEX" || LEX
=":"
4401 if test "x$LEX" != "x:"; then
4402 cat >conftest.l
<<_ACEOF
4408 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4409 yyless ((input () != 0)); }
4410 f { unput (yytext[0]); }
4411 . { BEGIN INITIAL; }
4413 #ifdef YYTEXT_POINTER
4414 extern char *yytext;
4419 return ! yylex () + ! yywrap ();
4422 { { ac_try
="$LEX conftest.l"
4424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429 (eval "$LEX conftest.l") 2>&5
4431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432 test $ac_status = 0; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4434 $as_echo_n "checking lex output file root... " >&6; }
4435 if ${ac_cv_prog_lex_root+:} false; then :
4436 $as_echo_n "(cached) " >&6
4439 if test -f lex.yy.c; then
4440 ac_cv_prog_lex_root=lex.yy
4441 elif test -f lexyy.c; then
4442 ac_cv_prog_lex_root=lexyy
4444 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4448 $as_echo "$ac_cv_prog_lex_root" >&6; }
4449 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4451 if test -z "${LEXLIB+set}"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4453 $as_echo_n "checking lex library... " >&6; }
4454 if ${ac_cv_lib_lex+:} false; then :
4455 $as_echo_n "(cached) " >&6
4459 ac_cv_lib_lex='none needed'
4460 for ac_lib in '' -lfl -ll; do
4461 LIBS="$ac_lib $ac_save_LIBS"
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 `cat $LEX_OUTPUT_ROOT.c
`
4466 if ac_fn_c_try_link "$LINENO"; then :
4467 ac_cv_lib_lex=$ac_lib
4469 rm -f core conftest.err conftest.$ac_objext \
4470 conftest$ac_exeext conftest.$ac_ext
4471 test "$ac_cv_lib_lex" != 'none needed' && break
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4477 $as_echo "$ac_cv_lib_lex" >&6; }
4478 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4483 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4484 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 # POSIX says lex can declare yytext either as a pointer or an array; the
4488 # default is implementation-dependent. Figure out which it is, since
4489 # not all implementations provide the %pointer and %array declarations.
4490 ac_cv_prog_lex_yytext_pointer=no
4492 LIBS="$LEXLIB $ac_save_LIBS"
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4496 #define YYTEXT_POINTER 1
4497 `cat $LEX_OUTPUT_ROOT.c
`
4499 if ac_fn_c_try_link "$LINENO"; then :
4500 ac_cv_prog_lex_yytext_pointer=yes
4502 rm -f core conftest.err conftest.$ac_objext \
4503 conftest$ac_exeext conftest.$ac_ext
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4508 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4509 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4511 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4514 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4519 for ac_prog in 'bison -y' byacc
4521 # Extract the first word of "$ac_prog", so it can be a program name with args.
4522 set dummy $ac_prog; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if ${ac_cv_prog_YACC+:} false; then :
4526 $as_echo_n "(cached) " >&6
4528 if test -n "$YACC"; then
4529 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4538 ac_cv_prog_YACC="$ac_prog"
4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 YACC=$ac_cv_prog_YACC
4549 if test -n "$YACC"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4551 $as_echo "$YACC" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4558 test -n "$YACC" && break
4560 test -n "$YACC" || YACC="yacc"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if yacc is executable" >&5
4566 $as_echo_n "checking if yacc is executable... " >&6; }
4567 binary=`echo $yacc |
awk '{print $1}'`
4568 binary=`which "$binary"`
4569 if test -x "$binary"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4572 $as_echo " yes" >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo " no" >&6; }
4577 echo "FATAL ERROR: did not find a valid yacc executable."
4578 echo "You can either set \$YACC as the full path to yacc"
4579 echo "in the environment, or install a yacc/bison package."
4580 rm -rf conftest conftest.*
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lex is executable" >&5
4584 $as_echo_n "checking if lex is executable... " >&6; }
4585 binary=`echo $lex |
awk '{print $1}'`
4586 binary=`which "$binary"`
4587 if test -x "$binary"
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590 $as_echo " yes" >&6; }
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo " no" >&6; }
4595 echo "FATAL ERROR: did not find a valid lex executable."
4596 echo "You can either set \$LEX as the full path to lex"
4597 echo "in the environment, or install a lex/flex package."
4598 rm -rf conftest conftest.*
4602 if test -z "$AWK"; then
4603 for ac_prog in gawk awk
4605 # Extract the first word of "$ac_prog", so it can be a program name with args.
4606 set dummy $ac_prog; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if ${ac_cv_path_AWK+:} false; then :
4610 $as_echo_n "(cached) " >&6
4614 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 if test -n "$AWK"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4638 $as_echo "$AWK" >&6; }
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4645 test -n "$AWK" && break
4647 test -n "$AWK" || AWK="/usr/bin/awk"
4660 if test -z "$SED"; then
4661 # Extract the first word of "sed", so it can be a program name with args.
4662 set dummy sed; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_path_SED+:} false; then :
4666 $as_echo_n "(cached) " >&6
4670 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4693 if test -n "$SED"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4695 $as_echo "$SED" >&6; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4705 if test -z "$ECHO"; then
4706 # Extract the first word of "echo", so it can be a program name with args.
4707 set dummy echo; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_path_ECHO+:} false; then :
4711 $as_echo_n "(cached) " >&6
4715 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4737 ECHO=$ac_cv_path_ECHO
4738 if test -n "$ECHO"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4740 $as_echo "$ECHO" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4750 if test -z "$WHICH"; then
4751 # Extract the first word of "which", so it can be a program name with args.
4752 set dummy which; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_path_WHICH+:} false; then :
4756 $as_echo_n "(cached) " >&6
4760 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4782 WHICH=$ac_cv_path_WHICH
4783 if test -n "$WHICH"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4785 $as_echo "$WHICH" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4797 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4798 if test $target_os = mingw; then
4799 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4801 if test -x $d/sort; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4810 $as_echo "$sort" >&6; }
4815 echo "FATAL ERROR: $sort -n failed!"
4816 rm -rf conftest conftest.*
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4822 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4823 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4825 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4829 $as_echo "neither?" >&6; }
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4833 $as_echo " -n" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4838 $as_echo "backslash-c" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4844 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4845 if ${ac_cv_path_GREP+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -z "$GREP"; then
4849 ac_path_GREP_found=false
4850 # Loop through the user's path and test for each of PROGNAME-LIST
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4855 test -z "$as_dir" && as_dir=.
4856 for ac_prog in grep ggrep; do
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4859 as_fn_executable_p "$ac_path_GREP" || continue
4860 # Check for GNU ac_path_GREP and select it if it is found.
4861 # Check for GNU $ac_path_GREP
4862 case `"$ac_path_GREP" --version 2>&1` in
4864 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4867 $as_echo_n 0123456789 >"conftest.in"
4870 cat "conftest.in" "conftest.in" >"conftest.tmp"
4871 mv "conftest.tmp" "conftest.in"
4872 cp "conftest.in" "conftest.nl"
4873 $as_echo 'GREP' >> "conftest.nl"
4874 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4876 as_fn_arith $ac_count + 1 && ac_count=$as_val
4877 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4878 # Best one so far, save it but keep looking for a better one
4879 ac_cv_path_GREP="$ac_path_GREP"
4880 ac_path_GREP_max=$ac_count
4882 # 10*(2^10) chars as input seems more than enough
4883 test $ac_count -gt 10 && break
4885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4888 $ac_path_GREP_found && break 3
4893 if test -z "$ac_cv_path_GREP"; then
4894 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4897 ac_cv_path_GREP=$GREP
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4902 $as_echo "$ac_cv_path_GREP" >&6; }
4903 GREP="$ac_cv_path_GREP"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4907 $as_echo_n "checking for egrep... " >&6; }
4908 if ${ac_cv_path_EGREP+:} false; then :
4909 $as_echo_n "(cached) " >&6
4911 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4912 then ac_cv_path_EGREP="$GREP -E"
4914 if test -z "$EGREP"; then
4915 ac_path_EGREP_found=false
4916 # Loop through the user's path and test for each of PROGNAME-LIST
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4921 test -z "$as_dir" && as_dir=.
4922 for ac_prog in egrep; do
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4925 as_fn_executable_p "$ac_path_EGREP" || continue
4926 # Check for GNU ac_path_EGREP and select it if it is found.
4927 # Check for GNU $ac_path_EGREP
4928 case `"$ac_path_EGREP" --version 2>&1` in
4930 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4933 $as_echo_n 0123456789 >"conftest.in"
4936 cat "conftest.in" "conftest.in" >"conftest.tmp"
4937 mv "conftest.tmp" "conftest.in"
4938 cp "conftest.in" "conftest.nl"
4939 $as_echo 'EGREP' >> "conftest.nl"
4940 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942 as_fn_arith $ac_count + 1 && ac_count=$as_val
4943 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4944 # Best one so far, save it but keep looking for a better one
4945 ac_cv_path_EGREP="$ac_path_EGREP"
4946 ac_path_EGREP_max=$ac_count
4948 # 10*(2^10) chars as input seems more than enough
4949 test $ac_count -gt 10 && break
4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4954 $ac_path_EGREP_found && break 3
4959 if test -z "$ac_cv_path_EGREP"; then
4960 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4963 ac_cv_path_EGREP=$EGREP
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4969 $as_echo "$ac_cv_path_EGREP" >&6; }
4970 EGREP="$ac_cv_path_EGREP"
4974 if test "$do_probes" = "check" -o "$do_probes" = "yes"
4977 for ac_prog in dtrace
4979 # Extract the first word of "$ac_prog", so it can be a program name with args.
4980 set dummy $ac_prog; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_DTRACE+:} false; then :
4984 $as_echo_n "(cached) " >&6
4986 if test -n "$DTRACE"; then
4987 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_DTRACE="$ac_prog"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 DTRACE=$ac_cv_prog_DTRACE
5007 if test -n "$DTRACE"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5009 $as_echo "$DTRACE" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5016 test -n "$DTRACE" && break
5019 if test -z "$DTRACE"
5021 if test "$do_probes" = "yes"
5023 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5033 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5034 # On Suns, sometimes $CPP names a directory.
5035 if test -n "$CPP" && test -d "$CPP"; then
5038 if test -z "$CPP"; then
5039 if ${ac_cv_prog_CPP+:} false; then :
5040 $as_echo_n "(cached) " >&6
5042 # Double quotes because CPP needs to be expanded
5043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5046 for ac_c_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5057 # include <limits.h>
5059 # include <assert.h>
5063 if ac_fn_c_try_cpp "$LINENO"; then :
5066 # Broken: fails on valid input.
5069 rm -f conftest.err conftest.i conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #include <ac_nonexistent.h>
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078 # Broken: success on invalid input.
5081 # Passes both tests.
5085 rm -f conftest.err conftest.i conftest.$ac_ext
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.i conftest.err conftest.
$ac_ext
5090 if $ac_preproc_ok; then :
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5103 $as_echo "$CPP" >&6; }
5105 for ac_c_preproc_warn_flag
in '' yes
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5116 # include <limits.h>
5118 # include <assert.h>
5122 if ac_fn_c_try_cpp
"$LINENO"; then :
5125 # Broken: fails on valid input.
5128 rm -f conftest.err conftest.i conftest.
$ac_ext
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5136 if ac_fn_c_try_cpp
"$LINENO"; then :
5137 # Broken: success on invalid input.
5140 # Passes both tests.
5144 rm -f conftest.err conftest.i conftest.
$ac_ext
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.i conftest.err conftest.
$ac_ext
5149 if $ac_preproc_ok; then :
5152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5154 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5155 See \`config.log' for more details" "$LINENO" 5; }
5159 ac_cpp
='$CPP $CPPFLAGS'
5160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5166 $as_echo_n "checking for ANSI C header files... " >&6; }
5167 if ${ac_cv_header_stdc+:} false
; then :
5168 $as_echo_n "(cached) " >&6
5170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5185 if ac_fn_c_try_compile
"$LINENO"; then :
5186 ac_cv_header_stdc
=yes
5188 ac_cv_header_stdc
=no
5190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5192 if test $ac_cv_header_stdc = yes; then
5193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200 $EGREP "memchr" >/dev
/null
2>&1; then :
5203 ac_cv_header_stdc
=no
5209 if test $ac_cv_header_stdc = yes; then
5210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5217 $EGREP "free" >/dev
/null
2>&1; then :
5220 ac_cv_header_stdc
=no
5226 if test $ac_cv_header_stdc = yes; then
5227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5228 if test "$cross_compiling" = yes; then :
5231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5235 #if ((' ' & 0x0FF) == 0x020)
5236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5239 # define ISLOWER(c) \
5240 (('a' <= (c) && (c) <= 'i') \
5241 || ('j' <= (c) && (c) <= 'r') \
5242 || ('s' <= (c) && (c) <= 'z'))
5243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5251 for (i = 0; i < 256; i++)
5252 if (XOR (islower (i), ISLOWER (i))
5253 || toupper (i) != TOUPPER (i))
5258 if ac_fn_c_try_run
"$LINENO"; then :
5261 ac_cv_header_stdc
=no
5263 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5264 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5270 $as_echo "$ac_cv_header_stdc" >&6; }
5271 if test $ac_cv_header_stdc = yes; then
5273 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5278 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5279 inttypes.h stdint.h unistd.h
5281 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5282 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5284 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5285 cat >>confdefs.h
<<_ACEOF
5286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5294 for ac_header
in sys
/sdt.h
5296 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5297 if test "x$ac_cv_header_sys_sdt_h" = xyes
; then :
5298 cat >>confdefs.h
<<_ACEOF
5299 #define HAVE_SYS_SDT_H 1
5302 if $enable_probes = true
5304 if test $target_os = kfreebsd
5307 elif test $target_os = freebsd
5309 rm -f conftest.d conftest.h
5310 cat <<End-of-File >conftest.d
5315 if dtrace
-s conftest.d
-h >/dev
/null
2>&1
5317 if test ! -f conftest.h
5320 if test "$do_probes" = "yes"
5322 as_fn_error $?
"cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5327 if test "$do_probes" = "yes"
5329 as_fn_error $?
"cannot enable static probes - dtrace failed" "$LINENO" 5
5338 if test "$do_probes" = "yes"
5340 as_fn_error $?
"cannot enable static probes - no SDT header" "$LINENO" 5
5348 if test "$enable_probes" = "true"
5351 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5358 if test "x$do_discovery" != "xno"; then :
5360 # on Mac OS X, dns_sd.h
5362 # on Linux, aloha Avahi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5367 $as_echo_n "checking for avahi... " >&6; }
5369 if test -n "$avahi_CFLAGS"; then
5370 pkg_cv_avahi_CFLAGS
="$avahi_CFLAGS"
5371 elif test -n "$PKG_CONFIG"; then
5372 if test -n "$PKG_CONFIG" && \
5373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5374 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5377 test $ac_status = 0; }; then
5378 pkg_cv_avahi_CFLAGS
=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5379 test "x$?" != "x0" && pkg_failed
=yes
5386 if test -n "$avahi_LIBS"; then
5387 pkg_cv_avahi_LIBS
="$avahi_LIBS"
5388 elif test -n "$PKG_CONFIG"; then
5389 if test -n "$PKG_CONFIG" && \
5390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5391 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5394 test $ac_status = 0; }; then
5395 pkg_cv_avahi_LIBS
=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5396 test "x$?" != "x0" && pkg_failed
=yes
5406 if test $pkg_failed = yes; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5411 _pkg_short_errors_supported
=yes
5413 _pkg_short_errors_supported
=no
5415 if test $_pkg_short_errors_supported = yes; then
5416 avahi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5418 avahi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5420 # Put the nasty error message in config.log where it belongs
5421 echo "$avahi_PKG_ERRORS" >&5
5424 elif test $pkg_failed = untried
; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5429 avahi_CFLAGS
=$pkg_cv_avahi_CFLAGS
5430 avahi_LIBS
=$pkg_cv_avahi_LIBS
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5432 $as_echo "yes" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5434 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5435 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false
; then :
5436 $as_echo_n "(cached) " >&6
5438 ac_check_lib_save_LIBS
=$LIBS
5439 LIBS
="-lavahi-client $LIBS"
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5443 /* Override any GCC internal prototype to avoid an error.
5444 Use char because int might match the return type of a GCC
5445 builtin and then its argument prototype would still apply. */
5449 char avahi_client_new ();
5453 return avahi_client_new ();
5458 if ac_fn_c_try_link
"$LINENO"; then :
5459 ac_cv_lib_avahi_client_avahi_client_new
=yes
5461 ac_cv_lib_avahi_client_avahi_client_new
=no
5463 rm -f core conftest.err conftest.
$ac_objext \
5464 conftest
$ac_exeext conftest.
$ac_ext
5465 LIBS
=$ac_check_lib_save_LIBS
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5468 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5469 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes
; then :
5470 lib_for_avahi
="-lavahi-common -lavahi-client"
5477 for ac_header
in avahi-client
/publish.h
5479 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5480 if test "x$ac_cv_header_avahi_client_publish_h" = xyes
; then :
5481 cat >>confdefs.h
<<_ACEOF
5482 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5491 for ac_header
in avahi-common
/alternative.h
5493 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5494 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes
; then :
5495 cat >>confdefs.h
<<_ACEOF
5496 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5506 if test "$enable_avahi" = "true"
5511 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5513 enable_discovery
=true
5516 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5518 as_fn_error $?
"cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5520 if test "$enable_discovery" = "true"
5523 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5531 enable_systemd
=false
5532 if test "x$do_systemd" != "xno"; then :
5537 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5538 pkg_cv_SYSTEMD_SYSTEMUNITDIR
="$SYSTEMD_SYSTEMUNITDIR"
5539 elif test -n "$PKG_CONFIG"; then
5540 if test -n "$PKG_CONFIG" && \
5541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5542 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; }; then
5546 pkg_cv_SYSTEMD_SYSTEMUNITDIR
=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5547 test "x$?" != "x0" && pkg_failed
=yes
5554 SYSTEMD_SYSTEMUNITDIR
=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5556 if test "x$SYSTEMD_SYSTEMUNITDIR" = x
""; then :
5557 enable_systemd
=false
5559 pcp_systemdunit_dir
=$SYSTEMD_SYSTEMUNITDIR
5562 if test -z "$pcp_systemdunit_dir"
5564 if test "$do_systemd" = "yes"
5566 as_fn_error $?
"cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5568 enable_systemd
=false
5574 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5575 # targets a build for non-system directories such as /usr/local.
5576 # AC_PREFIX_DEFAULT([])
5579 PACKAGE_VERSION
=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5586 if test -z "$PACKAGE_BUILD_DATE" ; then
5587 PACKAGE_BUILD_DATE
=`date +%Y-%m-%d`
5591 if test -z "$PACKAGE_DISTRIBUTION" ; then
5592 PACKAGE_DISTRIBUTION
=$target_distro
5596 pm_version_current
=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5599 ac_config_headers
="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5601 ac_config_files
="$ac_config_files src/include/pcp/platform_defs.h"
5603 cat >confcache
<<\_ACEOF
5604 # This file is a shell script that caches the results of configure
5605 # tests run on this system so they can be shared between configure
5606 # scripts and configure runs, see configure's option --config-cache.
5607 # It is not useful on other systems. If it contains results you don't
5608 # want to keep, you may remove or edit it.
5610 # config.status only pays attention to the cache file if you give it
5611 # the --recheck option to rerun configure.
5613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5619 # The following way of writing the cache mishandles newlines in values,
5620 # but we know of no workaround that is simple, portable, and efficient.
5621 # So, we kill variables containing newlines.
5622 # Ultrix sh set writes to stderr and can't be redirected directly,
5623 # and sets the high bit in the cache file unless we assign to the vars.
5625 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5626 eval ac_val
=\$
$ac_var
5630 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5631 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5634 _ | IFS | as_nl
) ;; #(
5635 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5636 *) { eval $ac_var=; unset $ac_var;} ;;
5642 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5643 *${as_nl}ac_space
=\
*)
5644 # `set' does not quote correctly, so add quotes: double-quote
5645 # substitution turns \\\\ into \\, and sed turns \\ into \.
5648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5651 # `set' quotes correctly as required by POSIX, so do not add quotes.
5652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5661 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5665 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5666 if test -w "$cache_file"; then
5667 if test "x$cache_file" != "x/dev/null"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5669 $as_echo "$as_me: updating cache $cache_file" >&6;}
5670 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5671 cat confcache
>"$cache_file"
5673 case $cache_file in #(
5675 mv -f confcache
"$cache_file"$$
&&
5676 mv -f "$cache_file"$$
"$cache_file" ;; #(
5678 mv -f confcache
"$cache_file" ;;
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5684 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5689 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5690 # Let make expand exec_prefix.
5691 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5693 DEFS
=-DHAVE_CONFIG_H
5698 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5699 # 1. Remove the extension, and $U if already installed.
5700 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5701 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5703 # will be set to the directory where LIBOBJS objects are built.
5704 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5705 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5709 LTLIBOBJS
=$ac_ltlibobjs
5713 : "${CONFIG_STATUS=./config.status}"
5715 ac_clean_files_save
=$ac_clean_files
5716 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5718 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5720 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5722 # Generated by $as_me.
5723 # Run this file to recreate the current configuration.
5724 # Compiler output produced by configure, useful for debugging
5725 # configure, is in config.log if it exists.
5731 SHELL=\${CONFIG_SHELL-$SHELL}
5734 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5735 ## -------------------- ##
5736 ## M4sh Initialization. ##
5737 ## -------------------- ##
5739 # Be more Bourne compatible
5740 DUALCASE
=1; export DUALCASE
# for MKS sh
5741 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5745 # is contrary to our usage. Disable this feature.
5746 alias -g '${1+"$@"}'='"$@"'
5747 setopt NO_GLOB_SUBST
5749 case `(set -o) 2>/dev/null` in #(
5761 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5762 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5765 # Prefer a ksh shell builtin over an external printf program on Solaris,
5766 # but without wasting forks for bash or zsh.
5767 if test -z "$BASH_VERSION$ZSH_VERSION" \
5768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5769 as_echo='print
-r --'
5770 as_echo_n='print
-rn --'
5771 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5772 as_echo='printf %s
\n'
5773 as_echo_n='printf %s
'
5775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5776 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5777 as_echo_n='/usr
/ucb
/echo -n'
5779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5780 as_echo_n_body='eval
5784 expr "X$arg" : "X\\(.*\\)$as_nl";
5785 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5787 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5789 export as_echo_n_body
5790 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5793 as_echo='sh
-c $as_echo_body as_echo
'
5796 # The user is always right.
5797 if test "${PATH_SEPARATOR+set}" != set; then
5799 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5800 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5807 # We need space, tab and new line, in precisely that order. Quoting is
5808 # there to prevent editors from complaining about space-tab.
5809 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5810 # splitting by setting IFS to empty value.)
5813 # Find who we are. Look in the path if we contain no directory separator.
5816 *[\\/]* ) as_myself=$0 ;;
5817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5828 # We did not find ourselves, most probably we were run as `sh COMMAND'
5829 # in which case we are not to be found in the path.
5830 if test "x$as_myself" = x
; then
5833 if test ! -f "$as_myself"; then
5834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5838 # Unset variables that we do not need and which cause bugs (e.g. in
5839 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5840 # suppresses any "Segmentation fault" message there. '((' could
5841 # trigger a bug in pdksh 5.2.14.
5842 for as_var
in BASH_ENV ENV MAIL MAILPATH
5843 do eval test x\
${$as_var+set} = xset \
5844 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5857 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5860 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5861 # ----------------------------------------
5862 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5863 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5864 # script with STATUS, using 1 if that was 0.
5867 as_status
=$1; test $as_status -eq 0 && as_status
=1
5869 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5870 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5872 $as_echo "$as_me: error: $2" >&2
5873 as_fn_exit
$as_status
5877 # as_fn_set_status STATUS
5878 # -----------------------
5879 # Set $? to STATUS, without forking.
5883 } # as_fn_set_status
5887 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5897 # Portably unset VAR.
5900 { eval $1=; unset $1;}
5902 as_unset
=as_fn_unset
5903 # as_fn_append VAR VALUE
5904 # ----------------------
5905 # Append the text in VALUE to the end of the definition contained in VAR. Take
5906 # advantage of any shell optimizations that allow amortized linear growth over
5907 # repeated appends, instead of the typical quadratic growth present in naive
5909 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5910 eval 'as_fn_append ()
5921 # as_fn_arith ARG...
5922 # ------------------
5923 # Perform arithmetic evaluation on the ARGs, and store the result in the
5924 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5925 # must be portable across $(()) and expr.
5926 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5927 eval 'as_fn_arith ()
5934 as_val
=`expr "$@" || test $? -eq 1`
5939 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5940 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5946 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5947 as_basename
=basename
5952 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5958 as_me
=`$as_basename -- "$0" ||
5959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5960 X"$0" : 'X\(//\)$' \| \
5961 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5963 sed '/^.*\/\([^/][^/]*\)\/*$/{
5977 # Avoid depending upon Character Ranges.
5978 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5979 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5980 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5981 as_cr_digits
='0123456789'
5982 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5984 ECHO_C
= ECHO_N
= ECHO_T
=
5985 case `echo -n x` in #(((((
5987 case `echo 'xy\c'` in
5988 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5990 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5997 rm -f conf$$ conf$$.exe conf$$.
file
5998 if test -d conf$$.dir
; then
5999 rm -f conf$$.dir
/conf$$.
file
6002 mkdir conf$$.dir
2>/dev
/null
6004 if (echo >conf$$.
file) 2>/dev
/null
; then
6005 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6007 # ... but there are two gotchas:
6008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6010 # In both cases, we have to default to `cp -pR'.
6011 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6013 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6021 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6022 rmdir conf$$.dir
2>/dev
/null
6027 # Create "$as_dir" as a directory, including parents if necessary.
6032 -*) as_dir
=.
/$as_dir;;
6034 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6038 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6039 *) as_qdir
=$as_dir;;
6041 as_dirs
="'$as_qdir' $as_dirs"
6042 as_dir
=`$as_dirname -- "$as_dir" ||
6043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6044 X"$as_dir" : 'X\(//\)[^/]' \| \
6045 X"$as_dir" : 'X\(//\)$' \| \
6046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6047 $as_echo X"$as_dir" |
6048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6065 test -d "$as_dir" && break
6067 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6068 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6072 if mkdir
-p .
2>/dev
/null
; then
6073 as_mkdir_p
='mkdir -p "$as_dir"'
6075 test -d .
/-p && rmdir .
/-p
6080 # as_fn_executable_p FILE
6081 # -----------------------
6082 # Test if FILE is an executable regular file.
6083 as_fn_executable_p
()
6085 test -f "$1" && test -x "$1"
6086 } # as_fn_executable_p
6088 as_executable_p
=as_fn_executable_p
6090 # Sed expression to map a string onto a valid CPP name.
6091 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6093 # Sed expression to map a string onto a valid variable name.
6094 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6098 ## ----------------------------------- ##
6099 ## Main body of $CONFIG_STATUS script. ##
6100 ## ----------------------------------- ##
6102 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6105 # Save the log message, to keep $0 and so on meaningful, and to
6106 # report actual input values of CONFIG_FILES etc. instead of their
6107 # values after options handling.
6109 This file was extended by $as_me, which was
6110 generated by GNU Autoconf 2.69. Invocation command line was
6112 CONFIG_FILES = $CONFIG_FILES
6113 CONFIG_HEADERS = $CONFIG_HEADERS
6114 CONFIG_LINKS = $CONFIG_LINKS
6115 CONFIG_COMMANDS = $CONFIG_COMMANDS
6118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6123 case $ac_config_files in *"
6124 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6127 case $ac_config_headers in *"
6128 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6133 # Files that config.status was made for.
6134 config_files="$ac_config_files"
6135 config_headers="$ac_config_headers"
6139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6141 \`$as_me' instantiates files and other configuration actions
6142 from templates according to the current configuration. Unless the files
6143 and actions are specified as TAGs, all are instantiated by default.
6145 Usage: $0 [OPTION]... [TAG]...
6147 -h, --help print this help, then exit
6148 -V, --version print version number and configuration settings, then exit
6149 --config print configuration, then exit
6150 -q, --quiet, --silent
6151 do not print progress messages
6152 -d, --debug don't remove temporary files
6153 --recheck update $as_me by reconfiguring in the same conditions
6154 --file=FILE[:TEMPLATE]
6155 instantiate the configuration file FILE
6156 --header=FILE[:TEMPLATE]
6157 instantiate the configuration header FILE
6159 Configuration files:
6162 Configuration headers:
6165 Report bugs to the package provider."
6168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6169 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6172 configured by $0, generated by GNU Autoconf 2.69,
6173 with options \\"\$ac_cs_config\\"
6175 Copyright (C) 2012 Free Software Foundation, Inc.
6176 This config.status script is free software; the Free Software Foundation
6177 gives unlimited permission to copy, distribute and modify it."
6181 test -n "\$AWK" || AWK=awk
6184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6185 # The default lists apply if the user does not specify any file.
6191 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6192 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6196 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6208 # Handling of the options.
6209 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6211 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6212 $as_echo "$ac_cs_version"; exit ;;
6213 --config |
--confi |
--conf |
--con |
--co |
--c )
6214 $as_echo "$ac_cs_config"; exit ;;
6215 --debug |
--debu |
--deb |
--de |
--d |
-d )
6217 --file |
--fil |
--fi |
--f )
6220 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6221 '') as_fn_error $?
"missing file argument" ;;
6223 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6224 ac_need_defaults
=false
;;
6225 --header |
--heade |
--head |
--hea )
6228 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6230 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6231 ac_need_defaults
=false
;;
6233 # Conflict between --help and --header
6234 as_fn_error $?
"ambiguous option: \`$1'
6235 Try \`$0 --help' for more information.";;
6236 --help |
--hel |
-h )
6237 $as_echo "$ac_cs_usage"; exit ;;
6238 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6239 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6243 -*) as_fn_error $?
"unrecognized option: \`$1'
6244 Try \`$0 --help' for more information." ;;
6246 *) as_fn_append ac_config_targets
" $1"
6247 ac_need_defaults
=false
;;
6253 ac_configure_extra_args
=
6255 if $ac_cs_silent; then
6257 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6262 if \$ac_cs_recheck; then
6263 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6265 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6266 CONFIG_SHELL='$SHELL'
6272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6276 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6277 ## Running $as_me. ##
6283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6288 # Handling of arguments.
6289 for ac_config_target
in $ac_config_targets
6291 case $ac_config_target in
6292 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6293 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6294 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6296 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6301 # If the user did not use the arguments to specify the items to instantiate,
6302 # then the envvar interface is used. Set only those that are not.
6303 # We use the long form for the default assignment because of an extremely
6304 # bizarre bug on SunOS 4.1.3.
6305 if $ac_need_defaults; then
6306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6310 # Have a temporary directory for convenience. Make it in the build tree
6311 # simply because there is no reason against having it here, and in addition,
6312 # creating and moving files from /tmp can sometimes cause problems.
6313 # Hook for its removal unless debugging.
6314 # Note that there is a small window in which the directory will not be cleaned:
6315 # after its creation but before its name has been assigned to `$tmp'.
6319 trap 'exit_status=$?
6321 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6323 trap 'as_fn_exit 1' 1 2 13 15
6325 # Create a (secure) tmp directory for tmp files.
6328 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6332 tmp
=.
/conf$$
-$RANDOM
6333 (umask 077 && mkdir
"$tmp")
6334 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
6337 # Set up the scripts for CONFIG_FILES section.
6338 # No need to generate them if there are no CONFIG_FILES.
6339 # This happens for instance with `./config.status config.h'.
6340 if test -n "$CONFIG_FILES"; then
6343 ac_cr
=`echo X | tr X '\015'`
6344 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6345 # But we know of no other shell where ac_cr would be empty at this
6346 # point, so we can use a bashism as a fallback.
6347 if test "x$ac_cr" = x
; then
6348 eval ac_cr
=\$
\'\\r
\'
6350 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6351 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6357 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6362 echo "cat >conf$$subs.awk <<_ACEOF" &&
6363 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6366 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6367 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6369 for ac_last_try in false false false false false :; do
6370 . ./conf$$subs.sh ||
6371 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6373 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6374 if test $ac_delim_n = $ac_delim_num; then
6376 elif $ac_last_try; then
6377 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6379 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6385 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
6389 s/^/S["/; s
/!.
*/"]=/
6399 s/\(.\{148\}\)..*/\1/
6401 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6406 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6413 s/\(.\{148\}\)..*/\1/
6415 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6419 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6424 ' <conf$$subs.awk | sed '
6429 ' >>$CONFIG_STATUS || ac_write_fail=1
6430 rm -f conf$$subs.awk
6431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6433 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6434 for (key in S) S_is_set[key] = 1
6440 nfields = split(line, field, "@
")
6442 len = length(field[1])
6443 for (i = 2; i < nfields; i++) {
6445 keylen = length(key)
6446 if (S_is_set[key]) {
6448 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6449 len += length(value) + length(field[++i])
6460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6461 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6462 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6465 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6466 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
6469 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6470 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
6471 # trailing colons and then remove the whole line if VPATH becomes empty
6472 # (actually we leave an empty line to preserve line numbers).
6473 if test "x
$srcdir" = x.; then
6474 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6493 fi # test -n "$CONFIG_FILES"
6495 # Set up the scripts for CONFIG_HEADERS section.
6496 # No need to generate them if there are no CONFIG_HEADERS.
6497 # This happens for instance with `./config.status Makefile'.
6498 if test -n "$CONFIG_HEADERS"; then
6499 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
6503 # Transform confdefs.h into an awk script `defines.awk', embedded as
6504 # here-document in config.status, that substitutes the proper values into
6505 # config.h.in to produce config.h.
6507 # Create a delimiter string that does not exist in confdefs.h, to ease
6508 # handling of long lines.
6510 for ac_last_try in false false :; do
6511 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
6512 if test -z "$ac_tt"; then
6514 elif $ac_last_try; then
6515 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6517 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6521 # For the awk script, D is an array of macro values keyed by name,
6522 # likewise P contains macro parameters if any. Preserve backslash
6523 # newline sequences.
6525 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6527 s/.\{148\}/&'"$ac_delim"'/g
6530 s/^[ ]*#[ ]*define[ ][ ]*/ /
6537 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6539 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6544 D["\
1"]=" \
3\\\\\\n
"\\/p
6546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6551 s/.\{148\}/&'"$ac_delim"'/g
6556 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6559 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6561 ' <confdefs.h | sed '
6562 s/'"$ac_delim"'/"\\\
6563 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6566 for (key in D) D_is_set[key] = 1
6569 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6571 split(line, arg, " ")
6572 if (arg[1] == "#") {
6576 defundef
= substr
(arg
[1], 2)
6579 split(mac1
, mac2
, "(") #)
6581 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6582 if (D_is_set
[macro
]) {
6583 # Preserve the white space surrounding the "#".
6584 print prefix
"define", macro P
[macro
] D
[macro
]
6587 # Replace #undef with comments. This is necessary, for example,
6588 # in the case of _POSIX_SOURCE, which is predefined and required
6589 # on some systems where configure will not decide to define it.
6590 if (defundef
== "undef") {
6591 print
"/*", prefix defundef
, macro
, "*/"
6599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6600 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6601 fi # test -n "$CONFIG_HEADERS"
6604 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
6609 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6611 case $ac_mode$ac_tag in
6613 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6614 :[FH
]-) ac_tag
=-:-;;
6615 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6632 -) ac_f
="$ac_tmp/stdin";;
6633 *) # Look for the file first in the build tree, then in the source tree
6634 # (if the path is not absolute). The absolute path cannot be DOS-style,
6635 # because $ac_f cannot contain `:'.
6639 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6641 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6643 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6644 as_fn_append ac_file_inputs
" '$ac_f'"
6647 # Let's still pretend it is `configure' which instantiates (i.e., don't
6648 # use $as_me), people would be surprised to read:
6649 # /* config.h. Generated by config.status. */
6650 configure_input
='Generated from '`
6651 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6653 if test x
"$ac_file" != x-
; then
6654 configure_input
="$ac_file. $configure_input"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6656 $as_echo "$as_me: creating $ac_file" >&6;}
6658 # Neutralize special characters interpreted by sed in replacement strings.
6659 case $configure_input in #(
6660 *\
&* |
*\|
* |
*\\* )
6661 ac_sed_conf_input
=`$as_echo "$configure_input" |
6662 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6663 *) ac_sed_conf_input
=$configure_input;;
6667 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6668 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6673 ac_dir
=`$as_dirname -- "$ac_file" ||
6674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6675 X"$ac_file" : 'X\(//\)[^/]' \| \
6676 X"$ac_file" : 'X\(//\)$' \| \
6677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6678 $as_echo X"$ac_file" |
6679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6696 as_dir
="$ac_dir"; as_fn_mkdir_p
6700 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6702 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6703 # A ".." for each directory in $ac_dir_suffix.
6704 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6705 case $ac_top_builddir_sub in
6706 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6707 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6710 ac_abs_top_builddir
=$ac_pwd
6711 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6712 # for backward compatibility:
6713 ac_top_builddir
=$ac_top_build_prefix
6716 .
) # We are building in place.
6718 ac_top_srcdir
=$ac_top_builddir_sub
6719 ac_abs_top_srcdir
=$ac_pwd ;;
6720 [\\/]* | ?
:[\\/]* ) # Absolute name.
6721 ac_srcdir
=$srcdir$ac_dir_suffix;
6722 ac_top_srcdir
=$srcdir
6723 ac_abs_top_srcdir
=$srcdir ;;
6725 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6726 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6727 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6729 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6741 # If the template does not know about datarootdir, expand it.
6742 # FIXME: This hack should be removed a few years after 2.60.
6743 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6755 *datarootdir
*) ac_datarootdir_seen
=yes;;
6756 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6761 ac_datarootdir_hack='
6762 s&@datadir@&$datadir&g
6763 s&@docdir@&$docdir&g
6764 s&@infodir@&$infodir&g
6765 s&@localedir@&$localedir&g
6766 s&@mandir@&$mandir&g
6767 s&\\\${datarootdir}&$datarootdir&g' ;;
6771 # Neutralize VPATH when `$srcdir' = `.'.
6772 # Shell code in configure.ac might set extrasub.
6773 # FIXME: do we really want to maintain this feature?
6774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6775 ac_sed_extra="$ac_vpsub
6778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6780 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6781 s|@configure_input@|
$ac_sed_conf_input|
;t t
6782 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6783 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6784 s
&@srcdir@
&$ac_srcdir&;t t
6785 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6786 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6787 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6788 s
&@builddir@
&$ac_builddir&;t t
6789 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6790 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6791 $ac_datarootdir_hack
6793 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6794 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6796 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6797 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6798 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6799 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6801 which seems to be undefined. Please make sure it is defined" >&5
6802 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6803 which seems to be undefined. Please make sure it is defined" >&2;}
6805 rm -f "$ac_tmp/stdin"
6807 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6808 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6816 if test x"$ac_file" != x-; then
6818 $as_echo "/* $configure_input */" \
6819 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6820 } >"$ac_tmp/config.h" \
6821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6822 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6824 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6827 mv "$ac_tmp/config.h" "$ac_file" \
6828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6831 $as_echo "/* $configure_input */" \
6832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6833 || as_fn_error $? "could not create -" "$LINENO" 5
6845 ac_clean_files=$ac_clean_files_save
6847 test $ac_write_fail = 0 ||
6848 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6851 # configure is writing to config.log, and then calls config.status.
6852 # config.status does its own redirection, appending to config.log.
6853 # Unfortunately, on DOS this fails, as config.log is still kept open
6854 # by configure, so config.status won't be able to
write to it
; its
6855 # output is simply discarded. So we exec the FD to /dev/null,
6856 # effectively closing config.log, so it can be properly (re)opened and
6857 # appended to by config.status. When coming back to configure, we
6858 # need to make the FD available again.
6859 if test "$no_create" != yes; then
6861 ac_config_status_args
=
6862 test "$silent" = yes &&
6863 ac_config_status_args
="$ac_config_status_args --quiet"
6865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6868 # would make configure fail if this is the last instruction.
6869 $ac_cs_success || as_fn_exit
1
6871 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6873 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6879 # Extract the first word of "$ac_prog", so it can be a program name with args.
6880 set dummy
$ac_prog; ac_word
=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_GIT+:} false
; then :
6884 $as_echo_n "(cached) " >&6
6886 if test -n "$GIT"; then
6887 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
6889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir
=.
6894 for ac_exec_ext
in '' $ac_executable_extensions; do
6895 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_GIT
="$ac_prog"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 if test -n "$GIT"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6909 $as_echo "$GIT" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6916 test -n "$GIT" && break
6921 for ac_prog
in python
6923 # Extract the first word of "$ac_prog", so it can be a program name with args.
6924 set dummy
$ac_prog; ac_word
=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_PYTHON+:} false
; then :
6928 $as_echo_n "(cached) " >&6
6930 if test -n "$PYTHON"; then
6931 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
6933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir
=.
6938 for ac_exec_ext
in '' $ac_executable_extensions; do
6939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_PYTHON
="$ac_prog"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 PYTHON
=$ac_cv_prog_PYTHON
6951 if test -n "$PYTHON"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6953 $as_echo "$PYTHON" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6960 test -n "$PYTHON" && break
6962 test -n "$PYTHON" || PYTHON
="python2.7"
6966 for ac_prog
in python3
6968 # Extract the first word of "$ac_prog", so it can be a program name with args.
6969 set dummy
$ac_prog; ac_word
=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if ${ac_cv_prog_PYTHON3+:} false
; then :
6973 $as_echo_n "(cached) " >&6
6975 if test -n "$PYTHON3"; then
6976 ac_cv_prog_PYTHON3
="$PYTHON3" # Let the user override the test.
6978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir
=.
6983 for ac_exec_ext
in '' $ac_executable_extensions; do
6984 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6985 ac_cv_prog_PYTHON3
="$ac_prog"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 PYTHON3
=$ac_cv_prog_PYTHON3
6996 if test -n "$PYTHON3"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
6998 $as_echo "$PYTHON3" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7005 test -n "$PYTHON3" && break
7007 test -n "$PYTHON3" || PYTHON3
="python3.4"
7011 enable_python2
=false
7012 if test "x$do_python" != "xno"; then :
7015 if test -z "$PYTHON"
7017 enable_python2
=false
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7020 $as_echo_n "checking Python version... " >&6; }
7021 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 }'`
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7023 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7024 if test "$PY_MAJOR" -lt 2; then
7025 echo WARNING
: Python version
2.6 or later does not seem to be installed.
7026 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7027 enable_python2
=false
7029 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7030 echo WARNING
: Python version
2.
$PY_MINOR is too old.
7031 echo Python version
2.6 or later is required
for Python builds.
7032 enable_python2
=false
7034 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}/Python.h
7036 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7037 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7038 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7039 cat >>confdefs.h
<<_ACEOF
7040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7045 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7046 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7047 enable_python2
=false
7055 if test "$do_python" != "check" -a "$enable_python2" != "true"
7057 as_fn_error $?
"cannot enable Python - no supported version found" "$LINENO" 5
7063 enable_python3
=false
7064 if test "x$do_python3" != "xno"; then :
7067 if test -z "$PYTHON3"
7069 enable_python3
=false
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7072 $as_echo_n "checking Python3 version... " >&6; }
7073 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 }'`
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7075 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7076 if test "$PY_MAJOR" -lt 3; then
7077 echo WARNING
: Python version
3.3 or later does not seem to be installed.
7078 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7079 enable_python3
=false
7081 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7082 echo WARNING
: Python version
3.
$PY_MINOR is too old.
7083 echo Python version
3.3 or later is required
for Python builds.
7084 enable_python3
=false
7086 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}m
/Python.h
7088 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7089 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7090 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7091 cat >>confdefs.h
<<_ACEOF
7092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7097 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7098 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7099 enable_python3
=false
7107 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7109 as_fn_error $?
"cannot enable Python3 - no supported version found" "$LINENO" 5
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7116 $as_echo_n "checking for any python version... " >&6; }
7117 if test "$cross_compiling" = "yes"; then
7119 echo "cross-compile -> \"$ans\"" >&5
7120 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7127 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7128 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }; fi
7131 if test "$enable_python3" = "true"
7133 pcp_python_prog
=$PYTHON3
7134 elif test "$enable_python2" = "true"
7136 pcp_python_prog
=$PYTHON
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7144 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7149 txt
="import jsonpointer"
7151 $pcp_python_prog -c 'import sys;
7152 '"$txt" >>config.log
2>&1
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7156 $as_echo "yes" >&6; }
7157 eval have_python_jsonpointer
=true
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 eval have_python_jsonpointer
=false
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7166 $as_echo_n "checking for Python module six... " >&6; }
7173 $pcp_python_prog -c 'import sys;
7174 '"$txt" >>config.log
2>&1
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7178 $as_echo "yes" >&6; }
7179 eval have_python_six
=true
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 eval have_python_six
=false
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7189 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7191 if test "x$do_pmdajson" = "xyes"; then :
7194 if test "x$do_pmdajson" = "xcheck"; then :
7196 $have_python_jsonpointer && $have_python_six && pmda_json
=true
7199 PMDA_JSON
=$pmda_json
7201 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7202 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }; fi
7207 # Extract the first word of "$ac_prog", so it can be a program name with args.
7208 set dummy
$ac_prog; ac_word
=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_PERL+:} false
; then :
7212 $as_echo_n "(cached) " >&6
7214 if test -n "$PERL"; then
7215 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir
=.
7222 for ac_exec_ext
in '' $ac_executable_extensions; do
7223 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_PERL
="$ac_prog"
7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 PERL
=$ac_cv_prog_PERL
7235 if test -n "$PERL"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7237 $as_echo "$PERL" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7244 test -n "$PERL" && break
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7250 $as_echo_n "checking for any perl version... " >&6; }
7251 if test "$cross_compiling" = "yes"; then
7253 echo "cross-compile -> \"$ans\"" >&5
7254 elif test -n "$PERL"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7265 $as_echo "$pcp_perl_prog" >&6; }
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7268 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7270 if test "$have_perl" = true
7272 if $pcp_perl_prog -e "use Net::SNMP" >/dev
/null
2>&1
7277 PMDA_SNMP
=$pmda_snmp
7279 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7280 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }; fi
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7284 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7286 if test "$have_perl" = true
7288 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7290 if $pcp_perl_prog -e "use DBD::mysql" >/dev
/null
2>&1
7296 PMDA_MYSQL
=$pmda_mysql
7298 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7299 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }; fi
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7303 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7304 pmda_postgresql
=false
7305 if test "$have_perl" = true
7307 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7309 if $pcp_perl_prog -e "use DBD::Pg" >/dev
/null
2>&1
7311 pmda_postgresql
=true
7315 PMDA_POSTGRESQL
=$pmda_postgresql
7317 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7318 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }; fi
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7322 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7324 if test "$have_perl" = true
7326 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7331 PMDA_ORACLE
=$pmda_oracle
7333 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7334 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }; fi
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7338 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7339 pmda_elasticsearch
=false
7340 if test "$have_perl" = true
7342 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7344 pmda_elasticsearch
=true
7347 PMDA_ELASTICSEARCH
=$pmda_elasticsearch
7349 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7350 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }; fi
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7354 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7356 if test "$have_perl" = true
7358 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7363 PMDA_NGINX
=$pmda_nginx
7365 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }; fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7370 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7372 if test "$have_perl" = true
7374 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7379 PMDA_ACTIVEMQ
=$pmda_activemq
7381 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7382 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }; fi
7388 if test "x$do_qt" != "xno"; then :
7394 for ac_prog
in qmake-qt4 qmake
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy
$ac_prog; ac_word
=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_path_QMAKE+:} false
; then :
7401 $as_echo_n "(cached) " >&6
7405 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
7408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7409 as_dummy
="$QTDIR/bin:/usr/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin"
7410 for as_dir
in $as_dummy
7413 test -z "$as_dir" && as_dir
=.
7414 for ac_exec_ext
in '' $ac_executable_extensions; do
7415 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 QMAKE
=$ac_cv_path_QMAKE
7428 if test -n "$QMAKE"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7430 $as_echo "$QMAKE" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7437 test -n "$QMAKE" && break
7440 test "x$cc_is_gcc" = xyes
-a $target_os = solaris
&& QMAKE
="$QMAKE -spec solaris-g++"
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7448 $as_echo_n "checking Qt version... " >&6; }
7449 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 }'`
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7451 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7452 if test "$QT_MAJOR" -lt 4; then
7453 echo WARNING
: Qt version
4.4 or later does not seem to be installed.
7454 echo Cannot proceed with the Qt
$QT_MAJOR installation found.
7457 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7458 echo WARNING
: Qt version
4.
$QT_MINOR is too old.
7459 echo Qt version
4.4 or later is required
for Qt builds.
7464 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7466 as_fn_error $?
"cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7467 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7470 test "$do_qt" != "check" && \
7471 as_fn_error $?
"C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7472 elif test "$do_qt" = "debug"
7485 # Extract the first word of "gmake", so it can be a program name with args.
7486 set dummy gmake
; ac_word
=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_path_MAKE+:} false
; then :
7490 $as_echo_n "(cached) " >&6
7494 ac_cv_path_MAKE
="$MAKE" # Let the user override the test with a path.
7497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7501 test -z "$as_dir" && as_dir
=.
7502 for ac_exec_ext
in '' $ac_executable_extensions; do
7503 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_path_MAKE
="$as_dir/$ac_word$ac_exec_ext"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 MAKE
=$ac_cv_path_MAKE
7516 if test -n "$MAKE"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7518 $as_echo "$MAKE" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7527 # look elsewhere ...
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7529 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7530 for f
in /usr
/local
/bin
/gmake
/usr
/freeware
/bin
/gmake
/usr
/local
/bin
/make /opt
/sfw
/bin
/gmake nowhere
7538 if test $f = nowhere
7540 # Check if /usr/bin/make is any good
7541 mver
=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7542 if test "$mver" != "GNU Make"
7545 echo "FATAL ERROR: could not find GNU make anywhere"
7546 echo "You need to set \$MAKE as the full path to GNU make "
7547 echo "in the environment."
7548 rm -rf conftest conftest.
*
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7555 $as_echo "$MAKE" >&6; }
7561 if test -z "$CPP"; then
7563 ac_cpp
='$CPP $CPPFLAGS'
7564 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7568 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7569 # On Suns, sometimes $CPP names a directory.
7570 if test -n "$CPP" && test -d "$CPP"; then
7573 if test -z "$CPP"; then
7574 if ${ac_cv_prog_CPP+:} false
; then :
7575 $as_echo_n "(cached) " >&6
7577 # Double quotes because CPP needs to be expanded
7578 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7581 for ac_c_preproc_warn_flag
in '' yes
7583 # Use a header file that comes with gcc, so configuring glibc
7584 # with a fresh cross-compiler works.
7585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7586 # <limits.h> exists even on freestanding compilers.
7587 # On the NeXT, cc -E runs the code through the compiler's parser,
7588 # not just through cpp. "Syntax error" is here to catch this case.
7589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7592 # include <limits.h>
7594 # include <assert.h>
7598 if ac_fn_c_try_cpp
"$LINENO"; then :
7601 # Broken: fails on valid input.
7604 rm -f conftest.err conftest.i conftest.
$ac_ext
7606 # OK, works on sane cases. Now check whether nonexistent headers
7607 # can be detected and how.
7608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610 #include <ac_nonexistent.h>
7612 if ac_fn_c_try_cpp
"$LINENO"; then :
7613 # Broken: success on invalid input.
7616 # Passes both tests.
7620 rm -f conftest.err conftest.i conftest.
$ac_ext
7623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7624 rm -f conftest.i conftest.err conftest.
$ac_ext
7625 if $ac_preproc_ok; then :
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7638 $as_echo "$CPP" >&6; }
7640 for ac_c_preproc_warn_flag
in '' yes
7642 # Use a header file that comes with gcc, so configuring glibc
7643 # with a fresh cross-compiler works.
7644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7645 # <limits.h> exists even on freestanding compilers.
7646 # On the NeXT, cc -E runs the code through the compiler's parser,
7647 # not just through cpp. "Syntax error" is here to catch this case.
7648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7651 # include <limits.h>
7653 # include <assert.h>
7657 if ac_fn_c_try_cpp
"$LINENO"; then :
7660 # Broken: fails on valid input.
7663 rm -f conftest.err conftest.i conftest.
$ac_ext
7665 # OK, works on sane cases. Now check whether nonexistent headers
7666 # can be detected and how.
7667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 #include <ac_nonexistent.h>
7671 if ac_fn_c_try_cpp
"$LINENO"; then :
7672 # Broken: success on invalid input.
7675 # Passes both tests.
7679 rm -f conftest.err conftest.i conftest.
$ac_ext
7682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7683 rm -f conftest.i conftest.err conftest.
$ac_ext
7684 if $ac_preproc_ok; then :
7687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7689 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7690 See \`config.log' for more details" "$LINENO" 5; }
7694 ac_cpp
='$CPP $CPPFLAGS'
7695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7703 if test -z "$LD"; then
7704 # Extract the first word of "ld", so it can be a program name with args.
7705 set dummy ld
; ac_word
=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_LD+:} false
; then :
7709 $as_echo_n "(cached) " >&6
7713 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
7716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir
=.
7721 for ac_exec_ext
in '' $ac_executable_extensions; do
7722 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 test -z "$ac_cv_path_LD" && ac_cv_path_LD
="/usr/bin/ld"
7736 if test -n "$LD"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7738 $as_echo "$LD" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7749 if test -z "$PCP_USER_INSTALL" ; then
7750 pcp_user_install
=root
7752 pcp_user_install
="$PCP_USER_INSTALL"
7755 if test -z "$PCP_GROUP_INSTALL" ; then
7758 darwin|freebsd|netbsd|openbsd
)
7759 pcp_group_install
=wheel
7762 pcp_group_install
=root
7766 pcp_group_install
="$PCP_GROUP_INSTALL"
7770 if test -z "$TAR"; then
7771 for ac_prog
in gtar
tar
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy
$ac_prog; ac_word
=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_path_TAR+:} false
; then :
7778 $as_echo_n "(cached) " >&6
7782 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir
=.
7790 for ac_exec_ext
in '' $ac_executable_extensions; do
7791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 if test -n "$TAR"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7806 $as_echo "$TAR" >&6; }
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7813 test -n "$TAR" && break
7815 test -n "$TAR" || TAR
="tar"
7818 if test $target_os = darwin
-a -x /usr
/bin
/gnutar
7825 if test -z "$ZIP"; then
7826 # Extract the first word of "gzip", so it can be a program name with args.
7827 set dummy
gzip; ac_word
=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if ${ac_cv_path_ZIP+:} false
; then :
7831 $as_echo_n "(cached) " >&6
7835 ac_cv_path_ZIP
="$ZIP" # Let the user override the test with a path.
7838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir
=.
7843 for ac_exec_ext
in '' $ac_executable_extensions; do
7844 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_path_ZIP
="$as_dir/$ac_word$ac_exec_ext"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP
="/bin/gzip"
7858 if test -n "$ZIP"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7860 $as_echo "$ZIP" >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7868 test ! -x "$ZIP" && ZIP
=/usr
/local
/bin
/gzip
7869 test ! -x "$ZIP" && ZIP
=/usr
/freeware
/bin
/gzip
7870 test ! -x "$ZIP" && ZIP
=/usr
/bin
/gzip
7872 test -z "$gzip" && gzip=no-gzip
7875 if test -z "$BZIP2"; then
7876 # Extract the first word of "bzip2", so it can be a program name with args.
7877 set dummy
bzip2; ac_word
=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if ${ac_cv_path_BZIP2+:} false
; then :
7881 $as_echo_n "(cached) " >&6
7885 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir
=.
7893 for ac_exec_ext
in '' $ac_executable_extensions; do
7894 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2
="/bin/bzip2"
7907 BZIP2
=$ac_cv_path_BZIP2
7908 if test -n "$BZIP2"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7910 $as_echo "$BZIP2" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7918 test ! -x "$BZIP2" && BZIP2
=/usr
/bin
/bzip2
7919 test ! -x "$BZIP2" && BZIP2
=/usr
/local
/bin
/bzip2
7920 test ! -x "$BZIP2" && BZIP2
=/usr
/freeware
/bin
/bzip2
7922 test -z "$bzip2" && bzip2=no-bzip2
7925 if test -z "$LZMA"; then
7926 # Extract the first word of "lzma", so it can be a program name with args.
7927 set dummy lzma
; ac_word
=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_path_LZMA+:} false
; then :
7931 $as_echo_n "(cached) " >&6
7935 ac_cv_path_LZMA
="$LZMA" # Let the user override the test with a path.
7938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir
=.
7943 for ac_exec_ext
in '' $ac_executable_extensions; do
7944 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7945 ac_cv_path_LZMA
="$as_dir/$ac_word$ac_exec_ext"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA
="/bin/lzma"
7957 LZMA
=$ac_cv_path_LZMA
7958 if test -n "$LZMA"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
7960 $as_echo "$LZMA" >&6; }
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7968 test ! -x "$LZMA" && LZMA
=/usr
/bin
/lzma
7969 test ! -x "$LZMA" && LZMA
=/usr
/local
/bin
/lzma
7970 test ! -x "$LZMA" && LZMA
=/usr
/freeware
/bin
/lzma
7972 test -z "$lzma" && lzma
=no-lzma
7975 if test -z "$XZ"; then
7976 # Extract the first word of "xz", so it can be a program name with args.
7977 set dummy xz
; ac_word
=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if ${ac_cv_path_XZ+:} false
; then :
7981 $as_echo_n "(cached) " >&6
7985 ac_cv_path_XZ
="$XZ" # Let the user override the test with a path.
7988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir
=.
7993 for ac_exec_ext
in '' $ac_executable_extensions; do
7994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_path_XZ
="$as_dir/$ac_word$ac_exec_ext"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ
="/bin/xz"
8008 if test -n "$XZ"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8010 $as_echo "$XZ" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8018 test ! -x "$XZ" && XZ
=/usr
/bin
/xz
8019 test ! -x "$XZ" && XZ
=/usr
/local
/bin
/xz
8020 test ! -x "$XZ" && XZ
=/usr
/freeware
/bin
/xz
8022 test -z "$xz" && xz
=no-xz
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8026 $as_echo_n "checking for PackageMaker... " >&6; }
8027 if test -z "$PACKAGE_MAKER"
8029 if test $target_os = darwin
8031 if test -x /Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8032 then # local XCode extras install
8033 package_maker
=/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8035 $as_echo " yes (local install)" >&6; }
8036 elif test -x /Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8038 package_maker
=/Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8040 $as_echo " yes (darwin 6.x)" >&6; }
8041 elif test -x /Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8044 $as_echo " yes (darwin 7.x)" >&6; }
8045 package_maker
=/Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8048 $as_echo " not found!" >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8050 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo " no" >&6; }
8057 package_maker
="$PACKAGE_MAKER"
8061 if test -z "$HDIUTIL"; then
8062 # Extract the first word of "hdiutil", so it can be a program name with args.
8063 set dummy hdiutil
; ac_word
=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if ${ac_cv_path_HDIUTIL+:} false
; then :
8067 $as_echo_n "(cached) " >&6
8071 ac_cv_path_HDIUTIL
="$HDIUTIL" # Let the user override the test with a path.
8074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8078 test -z "$as_dir" && as_dir
=.
8079 for ac_exec_ext
in '' $ac_executable_extensions; do
8080 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8081 ac_cv_path_HDIUTIL
="$as_dir/$ac_word$ac_exec_ext"
8082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 HDIUTIL
=$ac_cv_path_HDIUTIL
8093 if test -n "$HDIUTIL"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8095 $as_echo "$HDIUTIL" >&6; }
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8106 if test -z "$MKINSTALLP"; then
8107 # Extract the first word of "mkinstallp", so it can be a program name with args.
8108 set dummy mkinstallp
; ac_word
=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_path_MKINSTALLP+:} false
; then :
8112 $as_echo_n "(cached) " >&6
8116 ac_cv_path_MKINSTALLP
="$MKINSTALLP" # Let the user override the test with a path.
8119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8123 test -z "$as_dir" && as_dir
=.
8124 for ac_exec_ext
in '' $ac_executable_extensions; do
8125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_path_MKINSTALLP
="$as_dir/$ac_word$ac_exec_ext"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 MKINSTALLP
=$ac_cv_path_MKINSTALLP
8138 if test -n "$MKINSTALLP"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8140 $as_echo "$MKINSTALLP" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8148 mkinstallp
=$MKINSTALLP
8151 if test -z "$PKGMK"; then
8152 # Extract the first word of "pkgmk", so it can be a program name with args.
8153 set dummy pkgmk
; ac_word
=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if ${ac_cv_path_PKGMK+:} false
; then :
8157 $as_echo_n "(cached) " >&6
8161 ac_cv_path_PKGMK
="$PKGMK" # Let the user override the test with a path.
8164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8168 test -z "$as_dir" && as_dir
=.
8169 for ac_exec_ext
in '' $ac_executable_extensions; do
8170 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8171 ac_cv_path_PKGMK
="$as_dir/$ac_word$ac_exec_ext"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 PKGMK
=$ac_cv_path_PKGMK
8183 if test -n "$PKGMK"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8185 $as_echo "$PKGMK" >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8196 if test -z "$DLLTOOL"; then
8197 # Extract the first word of "dlltool", so it can be a program name with args.
8198 set dummy dlltool
; ac_word
=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if ${ac_cv_path_DLLTOOL+:} false
; then :
8202 $as_echo_n "(cached) " >&6
8206 ac_cv_path_DLLTOOL
="$DLLTOOL" # Let the user override the test with a path.
8209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8213 test -z "$as_dir" && as_dir
=.
8214 for ac_exec_ext
in '' $ac_executable_extensions; do
8215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8216 ac_cv_path_DLLTOOL
="$as_dir/$ac_word$ac_exec_ext"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 DLLTOOL
=$ac_cv_path_DLLTOOL
8228 if test -n "$DLLTOOL"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8230 $as_echo "$DLLTOOL" >&6; }
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8241 if test -z "$RPMBUILD"; then
8242 # Extract the first word of "rpmbuild", so it can be a program name with args.
8243 set dummy rpmbuild
; ac_word
=$2
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 $as_echo_n "checking for $ac_word... " >&6; }
8246 if ${ac_cv_path_RPMBUILD+:} false
; then :
8247 $as_echo_n "(cached) " >&6
8251 ac_cv_path_RPMBUILD
="$RPMBUILD" # Let the user override the test with a path.
8254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8258 test -z "$as_dir" && as_dir
=.
8259 for ac_exec_ext
in '' $ac_executable_extensions; do
8260 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8261 ac_cv_path_RPMBUILD
="$as_dir/$ac_word$ac_exec_ext"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 RPMBUILD
=$ac_cv_path_RPMBUILD
8273 if test -n "$RPMBUILD"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8275 $as_echo "$RPMBUILD" >&6; }
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8283 test $target_distro = slackware
&& RPMBUILD
=''
8287 if test -z "$RPM"; then
8288 # Extract the first word of "rpm", so it can be a program name with args.
8289 set dummy rpm
; ac_word
=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_path_RPM+:} false
; then :
8293 $as_echo_n "(cached) " >&6
8297 ac_cv_path_RPM
="$RPM" # Let the user override the test with a path.
8300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8304 test -z "$as_dir" && as_dir
=.
8305 for ac_exec_ext
in '' $ac_executable_extensions; do
8306 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_path_RPM
="$as_dir/$ac_word$ac_exec_ext"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 if test -n "$RPM"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8321 $as_echo "$RPM" >&6; }
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8329 test $target_distro = slackware
&& RPM
=''
8333 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8341 if test -z "$POD2MAN"; then
8342 # Extract the first word of "pod2man", so it can be a program name with args.
8343 set dummy pod2man
; ac_word
=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if ${ac_cv_path_POD2MAN+:} false
; then :
8347 $as_echo_n "(cached) " >&6
8351 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8358 test -z "$as_dir" && as_dir
=.
8359 for ac_exec_ext
in '' $ac_executable_extensions; do
8360 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8361 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 POD2MAN
=$ac_cv_path_POD2MAN
8373 if test -n "$POD2MAN"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8375 $as_echo "$POD2MAN" >&6; }
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8387 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8388 perl
-e "use ExtUtils::MakeMaker" 2>/dev
/null
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8392 $as_echo " yes" >&6; }
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo " no" >&6; }
8397 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8398 echo "You can either install this from your distribution, or"
8399 echo "download from CPAN (Comprehensive Perl Archive Network)."
8400 rm -rf conftest conftest.
*
8404 # Extract the first word of "true", so it can be a program name with args.
8405 set dummy true
; ac_word
=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if ${ac_cv_path_TRUEPROG+:} false
; then :
8409 $as_echo_n "(cached) " >&6
8413 ac_cv_path_TRUEPROG
="$TRUEPROG" # Let the user override the test with a path.
8416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8420 test -z "$as_dir" && as_dir
=.
8421 for ac_exec_ext
in '' $ac_executable_extensions; do
8422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_path_TRUEPROG
="$as_dir/$ac_word$ac_exec_ext"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 TRUEPROG
=$ac_cv_path_TRUEPROG
8435 if test -n "$TRUEPROG"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8437 $as_echo "$TRUEPROG" >&6; }
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8445 if test -z "$MAKEDEPEND"; then
8446 # Extract the first word of "makedepend", so it can be a program name with args.
8447 set dummy makedepend
; ac_word
=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if ${ac_cv_path_MAKEDEPEND+:} false
; then :
8451 $as_echo_n "(cached) " >&6
8455 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
8458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8462 test -z "$as_dir" && as_dir
=.
8463 for ac_exec_ext
in '' $ac_executable_extensions; do
8464 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_path_MAKEDEPEND
="$as_dir/$ac_word$ac_exec_ext"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUEPROG"
8477 MAKEDEPEND
=$ac_cv_path_MAKEDEPEND
8478 if test -n "$MAKEDEPEND"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8480 $as_echo "$MAKEDEPEND" >&6; }
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8488 makedepend
=$MAKEDEPEND
8491 if test -z "$MD5SUM"; then
8492 # Extract the first word of "md5sum", so it can be a program name with args.
8493 set dummy
md5sum; ac_word
=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_path_MD5SUM+:} false
; then :
8497 $as_echo_n "(cached) " >&6
8501 ac_cv_path_MD5SUM
="$MD5SUM" # Let the user override the test with a path.
8504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8508 test -z "$as_dir" && as_dir
=.
8509 for ac_exec_ext
in '' $ac_executable_extensions; do
8510 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_path_MD5SUM
="$as_dir/$ac_word$ac_exec_ext"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM
="$TRUEPROG"
8523 MD5SUM
=$ac_cv_path_MD5SUM
8524 if test -n "$MD5SUM"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8526 $as_echo "$MD5SUM" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8537 if test -z "$DPKG"; then
8538 # Extract the first word of "dpkg", so it can be a program name with args.
8539 set dummy dpkg
; ac_word
=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if ${ac_cv_path_DPKG+:} false
; then :
8543 $as_echo_n "(cached) " >&6
8547 ac_cv_path_DPKG
="$DPKG" # Let the user override the test with a path.
8550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8554 test -z "$as_dir" && as_dir
=.
8555 for ac_exec_ext
in '' $ac_executable_extensions; do
8556 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_path_DPKG
="$as_dir/$ac_word$ac_exec_ext"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 DPKG
=$ac_cv_path_DPKG
8569 if test -n "$DPKG"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8571 $as_echo "$DPKG" >&6; }
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8582 if test -z "$MAKEPKG"; then
8583 # Extract the first word of "makepkg", so it can be a program name with args.
8584 set dummy makepkg
; ac_word
=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_path_MAKEPKG+:} false
; then :
8588 $as_echo_n "(cached) " >&6
8592 ac_cv_path_MAKEPKG
="$MAKEPKG" # Let the user override the test with a path.
8595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8599 test -z "$as_dir" && as_dir
=.
8600 for ac_exec_ext
in '' $ac_executable_extensions; do
8601 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8602 ac_cv_path_MAKEPKG
="$as_dir/$ac_word$ac_exec_ext"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 MAKEPKG
=$ac_cv_path_MAKEPKG
8614 if test -n "$MAKEPKG"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8616 $as_echo "$MAKEPKG" >&6; }
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8627 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8628 set dummy publican
; ac_word
=$2
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630 $as_echo_n "checking for $ac_word... " >&6; }
8631 if ${ac_cv_path_PUBLICAN+:} false
; then :
8632 $as_echo_n "(cached) " >&6
8636 ac_cv_path_PUBLICAN
="$PUBLICAN" # Let the user override the test with a path.
8639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8643 test -z "$as_dir" && as_dir
=.
8644 for ac_exec_ext
in '' $ac_executable_extensions; do
8645 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_path_PUBLICAN
="$as_dir/$ac_word$ac_exec_ext"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 PUBLICAN
=$ac_cv_path_PUBLICAN
8658 if test -n "$PUBLICAN"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8660 $as_echo "$PUBLICAN" >&6; }
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8669 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8670 set dummy dblatex
; ac_word
=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_path_DBLATEX+:} false
; then :
8674 $as_echo_n "(cached) " >&6
8678 ac_cv_path_DBLATEX
="$DBLATEX" # Let the user override the test with a path.
8681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8685 test -z "$as_dir" && as_dir
=.
8686 for ac_exec_ext
in '' $ac_executable_extensions; do
8687 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8688 ac_cv_path_DBLATEX
="$as_dir/$ac_word$ac_exec_ext"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 DBLATEX
=$ac_cv_path_DBLATEX
8700 if test -n "$DBLATEX"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8702 $as_echo "$DBLATEX" >&6; }
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8711 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8712 set dummy xmlto
; ac_word
=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if ${ac_cv_path_XMLTO+:} false
; then :
8716 $as_echo_n "(cached) " >&6
8720 ac_cv_path_XMLTO
="$XMLTO" # Let the user override the test with a path.
8723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8727 test -z "$as_dir" && as_dir
=.
8728 for ac_exec_ext
in '' $ac_executable_extensions; do
8729 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8730 ac_cv_path_XMLTO
="$as_dir/$ac_word$ac_exec_ext"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 XMLTO
=$ac_cv_path_XMLTO
8742 if test -n "$XMLTO"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8744 $as_echo "$XMLTO" >&6; }
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8755 if test "$do_books" = "check" -o "$do_books" = "yes"
8757 if test "$BOOK_TOOLCHAIN" != ""
8759 book_toolchain
=$BOOK_TOOLCHAIN
8760 elif test "$DBLATEX" != ""
8762 book_toolchain
=dblatex
8763 elif test "$PUBLICAN" != ""
8765 book_toolchain
=publican
8766 elif test "$XMLTO" != ""
8768 book_toolchain
=xmlto
8769 elif test "$do_books" = "yes"
8771 as_fn_error $?
"cannot enable books build - no toolchain found" "$LINENO" 5
8777 if test "$do_books_brand" != ""
8779 book_brand
=$do_books_brand
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8784 $as_echo_n "checking whether ln -s works... " >&6; }
8786 if test "$LN_S" = "ln -s"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8788 $as_echo "yes" >&6; }
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8791 $as_echo "no, using $LN_S" >&6; }
8794 if test $target_os = mingw
; then
8800 test -f /proc
/stat || mount
/proc
>/dev
/null
2>&1
8803 if test -n "$PROCPS"
8805 pcp_ps_prog
="$PROCPS"
8811 if test $target_os = mingw
8813 pcp_syslog_prog
=pcp-eventlog
8815 pcp_syslog_prog
=logger
8820 if test $target_os = solaris
8822 test -f /usr
/xpg
4/bin
/grep && grep=/usr
/xpg
4/bin
/grep
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8827 $as_echo_n "checking for /proc ... " >&6; }
8828 if test "$cross_compiling" = "yes"; then
8830 echo "cross-compile -> \"$ans\"" >&5
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8840 $as_echo "yes" >&6; }
8842 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8850 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8851 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8853 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8854 if eval \
${$as_ac_Header+:} false
; then :
8855 $as_echo_n "(cached) " >&6
8857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 #include <sys/types.h>
8871 if ac_fn_c_try_compile
"$LINENO"; then :
8872 eval "$as_ac_Header=yes"
8874 eval "$as_ac_Header=no"
8876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8878 eval ac_res
=\$
$as_ac_Header
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8880 $as_echo "$ac_res" >&6; }
8881 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8882 cat >>confdefs.h
<<_ACEOF
8883 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8886 ac_header_dirent
=$ac_hdr; break
8890 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8891 if test $ac_header_dirent = dirent.h
; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8893 $as_echo_n "checking for library containing opendir... " >&6; }
8894 if ${ac_cv_search_opendir+:} false
; then :
8895 $as_echo_n "(cached) " >&6
8897 ac_func_search_save_LIBS
=$LIBS
8898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8901 /* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8916 for ac_lib
in '' dir
; do
8917 if test -z "$ac_lib"; then
8918 ac_res
="none required"
8921 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8923 if ac_fn_c_try_link
"$LINENO"; then :
8924 ac_cv_search_opendir
=$ac_res
8926 rm -f core conftest.err conftest.
$ac_objext \
8928 if ${ac_cv_search_opendir+:} false
; then :
8932 if ${ac_cv_search_opendir+:} false
; then :
8935 ac_cv_search_opendir
=no
8938 LIBS
=$ac_func_search_save_LIBS
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8941 $as_echo "$ac_cv_search_opendir" >&6; }
8942 ac_res
=$ac_cv_search_opendir
8943 if test "$ac_res" != no
; then :
8944 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8950 $as_echo_n "checking for library containing opendir... " >&6; }
8951 if ${ac_cv_search_opendir+:} false
; then :
8952 $as_echo_n "(cached) " >&6
8954 ac_func_search_save_LIBS
=$LIBS
8955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8958 /* Override any GCC internal prototype to avoid an error.
8959 Use char because int might match the return type of a GCC
8960 builtin and then its argument prototype would still apply. */
8973 for ac_lib
in '' x
; do
8974 if test -z "$ac_lib"; then
8975 ac_res
="none required"
8978 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8980 if ac_fn_c_try_link
"$LINENO"; then :
8981 ac_cv_search_opendir
=$ac_res
8983 rm -f core conftest.err conftest.
$ac_objext \
8985 if ${ac_cv_search_opendir+:} false
; then :
8989 if ${ac_cv_search_opendir+:} false
; then :
8992 ac_cv_search_opendir
=no
8995 LIBS
=$ac_func_search_save_LIBS
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8998 $as_echo "$ac_cv_search_opendir" >&6; }
8999 ac_res
=$ac_cv_search_opendir
9000 if test "$ac_res" != no
; then :
9001 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9008 $as_echo_n "checking for ANSI C header files... " >&6; }
9009 if ${ac_cv_header_stdc+:} false
; then :
9010 $as_echo_n "(cached) " >&6
9012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9027 if ac_fn_c_try_compile
"$LINENO"; then :
9028 ac_cv_header_stdc
=yes
9030 ac_cv_header_stdc
=no
9032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9034 if test $ac_cv_header_stdc = yes; then
9035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042 $EGREP "memchr" >/dev
/null
2>&1; then :
9045 ac_cv_header_stdc
=no
9051 if test $ac_cv_header_stdc = yes; then
9052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h. */
9058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9059 $EGREP "free" >/dev
/null
2>&1; then :
9062 ac_cv_header_stdc
=no
9068 if test $ac_cv_header_stdc = yes; then
9069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9070 if test "$cross_compiling" = yes; then :
9073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9077 #if ((' ' & 0x0FF) == 0x020)
9078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9081 # define ISLOWER(c) \
9082 (('a' <= (c) && (c) <= 'i') \
9083 || ('j' <= (c) && (c) <= 'r') \
9084 || ('s' <= (c) && (c) <= 'z'))
9085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9093 for (i = 0; i < 256; i++)
9094 if (XOR (islower (i), ISLOWER (i))
9095 || toupper (i) != TOUPPER (i))
9100 if ac_fn_c_try_run
"$LINENO"; then :
9103 ac_cv_header_stdc
=no
9105 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9106 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9112 $as_echo "$ac_cv_header_stdc" >&6; }
9113 if test $ac_cv_header_stdc = yes; then
9115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9120 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9121 if ${ac_cv_header_sys_wait_h+:} false
; then :
9122 $as_echo_n "(cached) " >&6
9124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126 #include <sys/types.h>
9127 #include <sys/wait.h>
9129 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9132 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9140 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9145 if ac_fn_c_try_compile
"$LINENO"; then :
9146 ac_cv_header_sys_wait_h
=yes
9148 ac_cv_header_sys_wait_h
=no
9150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9153 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9154 if test $ac_cv_header_sys_wait_h = yes; then
9156 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9160 for ac_header
in fcntl.h limits.h malloc.h
strings.h syslog.h
9162 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9163 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9164 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9165 cat >>confdefs.h
<<_ACEOF
9166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9173 for ac_header
in unistd.h stddef.h stdlib.h sched.h dlfcn.h dl.h
9175 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9176 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9177 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9178 cat >>confdefs.h
<<_ACEOF
9179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9186 for ac_header
in sys
/time.h sys
/times.h
9188 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9190 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9191 cat >>confdefs.h
<<_ACEOF
9192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9199 for ac_header
in sys
/resource.h sys
/prctl.h
9201 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9202 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9203 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9204 cat >>confdefs.h
<<_ACEOF
9205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9212 for ac_header
in sys
/sysinfo.h sys
/systeminfo.h
9214 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9215 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9216 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9217 cat >>confdefs.h
<<_ACEOF
9218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9225 for ac_header
in endian.h standards.h sys
/byteorder.h
9227 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9229 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9230 cat >>confdefs.h
<<_ACEOF
9231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9238 for ac_header
in libgen.h sys
/param.h sys
/mman.h sys
/un.h
9240 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9242 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9243 cat >>confdefs.h
<<_ACEOF
9244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9251 for ac_header
in values.h stdint.h ieeefp.h math.h
9253 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9254 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9255 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9256 cat >>confdefs.h
<<_ACEOF
9257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9264 for ac_header
in pwd.h grp.h regex.h sys
/wait.h
9266 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9267 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9268 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9269 cat >>confdefs.h
<<_ACEOF
9270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9277 for ac_header
in termio.h termios.h sys
/termios.h
9279 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9280 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9281 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9282 cat >>confdefs.h
<<_ACEOF
9283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9290 for ac_header
in sys
/ioctl.h sys
/select.h sys
/socket.h
9292 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9293 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9294 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9295 cat >>confdefs.h
<<_ACEOF
9296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9303 for ac_header
in netdb.h
9305 ac_fn_c_check_header_mongrel
"$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9306 if test "x$ac_cv_header_netdb_h" = xyes
; then :
9307 cat >>confdefs.h
<<_ACEOF
9308 #define HAVE_NETDB_H 1
9315 if test $target_os = darwin
-o $target_os = openbsd
9317 for ac_header
in net
/if.h
9319 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9320 #include <sys/socket.h>
9322 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9323 cat >>confdefs.h
<<_ACEOF
9324 #define HAVE_NET_IF_H 1
9332 for ac_header
in net
/if.h
9334 ac_fn_c_check_header_mongrel
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9335 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9336 cat >>confdefs.h
<<_ACEOF
9337 #define HAVE_NET_IF_H 1
9345 for ac_header
in netinet
/in.h netinet
/tcp.h arpa
/inet.h
9347 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9348 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9349 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9350 cat >>confdefs.h
<<_ACEOF
9351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9358 for ac_header
in windows.h winsock2.h ws2tcpip.h
9360 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9361 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9362 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9363 cat >>confdefs.h
<<_ACEOF
9364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9371 for ac_header
in execinfo.h bits
/wordsize.h
9373 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9374 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9375 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9376 cat >>confdefs.h
<<_ACEOF
9377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9384 for ac_header
in iptypes.h
9386 ac_fn_c_check_header_compile
"$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9388 if test "x$ac_cv_header_iptypes_h" = xyes
; then :
9389 cat >>confdefs.h
<<_ACEOF
9390 #define HAVE_IPTYPES_H 1
9397 for ac_header
in iphlpapi.h
9399 ac_fn_c_check_header_compile
"$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9401 if test "x$ac_cv_header_iphlpapi_h" = xyes
; then :
9402 cat >>confdefs.h
<<_ACEOF
9403 #define HAVE_IPHLPAPI_H 1
9410 for ac_header
in fts.h libzfs.h
9412 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9413 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9414 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9415 cat >>confdefs.h
<<_ACEOF
9416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9423 for ac_header
in sys
/statvfs.h sys
/statfs.h sys
/mount.h
9425 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9426 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9427 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9428 cat >>confdefs.h
<<_ACEOF
9429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9438 $as_echo_n "checking for sys/endian.h ... " >&6; }
9439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9442 #include <sys/endian.h>
9453 if ac_fn_c_try_compile
"$LINENO"; then :
9455 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9457 $as_echo "yes" >&6; }
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9465 $as_echo_n "checking for machine/endian.h ... " >&6; }
9466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9469 #include <machine/endian.h>
9480 if ac_fn_c_try_compile
"$LINENO"; then :
9482 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9484 $as_echo "yes" >&6; }
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9492 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9496 #include <standards.h>
9497 #include <sys/endian.h>
9508 if ac_fn_c_try_compile
"$LINENO"; then :
9510 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9512 $as_echo "yes" >&6; }
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; }
9517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9520 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9521 if ${ac_cv_c_const+:} false
; then :
9522 $as_echo_n "(cached) " >&6
9524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9532 /* Ultrix mips cc rejects this sort of thing. */
9533 typedef int charset[2];
9534 const charset cs = { 0, 0 };
9535 /* SunOS 4.1.1 cc rejects this. */
9536 char const *const *pcpcc;
9538 /* NEC SVR4.0.2 mips cc rejects this. */
9539 struct point {int x, y;};
9540 static struct point const zero = {0,0};
9541 /* AIX XL C 1.02.0.0 rejects this.
9542 It does not let you subtract one const X* pointer from another in
9543 an arm of an if-expression whose if-part is not a constant
9545 const char *g = "string";
9546 pcpcc = &g + (g ? g-g : 0);
9547 /* HPUX 7.0 cc rejects these. */
9549 ppc = (char**) pcpcc;
9550 pcpcc = (char const *const *) ppc;
9551 { /* SCO 3.2v4 cc rejects this sort of thing. */
9554 char const *s = 0 ? (char *) 0 : (char const *) 0;
9559 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9561 const int *foo = &x[0];
9564 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9565 typedef const int *iptr;
9569 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9570 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9571 struct s { int j; const int *ap[3]; } bx;
9572 struct s *b = &bx; b->j = 5;
9574 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9578 return !cs[0] && !zero.x;
9585 if ac_fn_c_try_compile
"$LINENO"; then :
9590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9593 $as_echo "$ac_cv_c_const" >&6; }
9594 if test $ac_cv_c_const = no
; then
9596 $as_echo "#define const /**/" >>confdefs.h
9600 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9601 if test "x$ac_cv_type_off_t" = xyes
; then :
9605 cat >>confdefs.h
<<_ACEOF
9606 #define off_t long int
9611 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9612 if test "x$ac_cv_type_pid_t" = xyes
; then :
9616 cat >>confdefs.h
<<_ACEOF
9622 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9623 if test "x$ac_cv_type_size_t" = xyes
; then :
9627 cat >>confdefs.h
<<_ACEOF
9628 #define size_t unsigned int
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9634 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9635 if ${ac_cv_header_time+:} false
; then :
9636 $as_echo_n "(cached) " >&6
9638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9640 #include <sys/types.h>
9641 #include <sys/time.h>
9647 if ((struct tm *) 0)
9653 if ac_fn_c_try_compile
"$LINENO"; then :
9654 ac_cv_header_time
=yes
9656 ac_cv_header_time
=no
9658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9661 $as_echo "$ac_cv_header_time" >&6; }
9662 if test $ac_cv_header_time = yes; then
9664 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9669 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9670 if ${ac_cv_struct_tm+:} false
; then :
9671 $as_echo_n "(cached) " >&6
9673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 #include <sys/types.h>
9682 int *p = &tm.tm_sec;
9688 if ac_fn_c_try_compile
"$LINENO"; then :
9689 ac_cv_struct_tm
=time.h
9691 ac_cv_struct_tm
=sys
/time.h
9693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9696 $as_echo "$ac_cv_struct_tm" >&6; }
9697 if test $ac_cv_struct_tm = sys
/time.h
; then
9699 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9704 $as_echo_n "checking for inline... " >&6; }
9705 if ${ac_cv_c_inline+:} false
; then :
9706 $as_echo_n "(cached) " >&6
9709 for ac_kw
in inline __inline__ __inline
; do
9710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9714 static $ac_kw foo_t static_foo () {return 0; }
9715 $ac_kw foo_t foo () {return 0; }
9719 if ac_fn_c_try_compile
"$LINENO"; then :
9720 ac_cv_c_inline
=$ac_kw
9722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9723 test "$ac_cv_c_inline" != no
&& break
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9728 $as_echo "$ac_cv_c_inline" >&6; }
9730 case $ac_cv_c_inline in
9733 case $ac_cv_c_inline in
9735 *) ac_val
=$ac_cv_c_inline;;
9737 cat >>confdefs.h
<<_ACEOF
9739 #define inline $ac_val
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9747 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9748 if ${ac_cv_lib_regex_regcomp+:} false
; then :
9749 $as_echo_n "(cached) " >&6
9751 ac_check_lib_save_LIBS
=$LIBS
9752 LIBS
="-lregex $LIBS"
9753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9756 /* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9771 if ac_fn_c_try_link
"$LINENO"; then :
9772 ac_cv_lib_regex_regcomp
=yes
9774 ac_cv_lib_regex_regcomp
=no
9776 rm -f core conftest.err conftest.
$ac_objext \
9777 conftest
$ac_exeext conftest.
$ac_ext
9778 LIBS
=$ac_check_lib_save_LIBS
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9781 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9782 if test "x$ac_cv_lib_regex_regcomp" = xyes
; then :
9783 cat >>confdefs.h
<<_ACEOF
9784 #define HAVE_LIBREGEX 1
9787 LIBS
="-lregex $LIBS"
9792 if test $ac_cv_lib_regex_regcomp = yes
9794 lib_for_regex
="-lregex"
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9801 $as_echo_n "checking for ncurses... " >&6; }
9803 if test -n "$ncurses_CFLAGS"; then
9804 pkg_cv_ncurses_CFLAGS
="$ncurses_CFLAGS"
9805 elif test -n "$PKG_CONFIG"; then
9806 if test -n "$PKG_CONFIG" && \
9807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9808 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9811 test $ac_status = 0; }; then
9812 pkg_cv_ncurses_CFLAGS
=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9813 test "x$?" != "x0" && pkg_failed
=yes
9820 if test -n "$ncurses_LIBS"; then
9821 pkg_cv_ncurses_LIBS
="$ncurses_LIBS"
9822 elif test -n "$PKG_CONFIG"; then
9823 if test -n "$PKG_CONFIG" && \
9824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9825 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9828 test $ac_status = 0; }; then
9829 pkg_cv_ncurses_LIBS
=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9830 test "x$?" != "x0" && pkg_failed
=yes
9840 if test $pkg_failed = yes; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9845 _pkg_short_errors_supported
=yes
9847 _pkg_short_errors_supported
=no
9849 if test $_pkg_short_errors_supported = yes; then
9850 ncurses_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9852 ncurses_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9854 # Put the nasty error message in config.log where it belongs
9855 echo "$ncurses_PKG_ERRORS" >&5
9858 elif test $pkg_failed = untried
; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9863 ncurses_CFLAGS
=$pkg_cv_ncurses_CFLAGS
9864 ncurses_LIBS
=$pkg_cv_ncurses_LIBS
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9866 $as_echo "yes" >&6; }
9869 HAVE_NCURSES
=$have_ncurses
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
9875 $as_echo_n "checking for SYSTEMD... " >&6; }
9877 if test -n "$SYSTEMD_CFLAGS"; then
9878 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
9879 elif test -n "$PKG_CONFIG"; then
9880 if test -n "$PKG_CONFIG" && \
9881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9882 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885 test $ac_status = 0; }; then
9886 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
9887 test "x$?" != "x0" && pkg_failed
=yes
9894 if test -n "$SYSTEMD_LIBS"; then
9895 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
9896 elif test -n "$PKG_CONFIG"; then
9897 if test -n "$PKG_CONFIG" && \
9898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9899 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9902 test $ac_status = 0; }; then
9903 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
9904 test "x$?" != "x0" && pkg_failed
=yes
9914 if test $pkg_failed = yes; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9918 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9919 _pkg_short_errors_supported
=yes
9921 _pkg_short_errors_supported
=no
9923 if test $_pkg_short_errors_supported = yes; then
9924 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9926 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9928 # Put the nasty error message in config.log where it belongs
9929 echo "$SYSTEMD_PKG_ERRORS" >&5
9932 elif test $pkg_failed = untried
; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9937 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
9938 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9940 $as_echo "yes" >&6; }
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
9944 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
9945 PMDA_SYSTEMD
=$pmda_systemd
9947 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9948 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }; fi
9951 pmda_infiniband
=false
9952 if test "x$do_infiniband" != "xno"; then :
9954 for ac_header
in infiniband
/umad.h
9956 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
9957 if test "x$ac_cv_header_infiniband_umad_h" = xyes
; then :
9958 cat >>confdefs.h
<<_ACEOF
9959 #define HAVE_INFINIBAND_UMAD_H 1
9962 for ac_header
in infiniband
/mad.h
9964 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
9965 if test "x$ac_cv_header_infiniband_mad_h" = xyes
; then :
9966 cat >>confdefs.h
<<_ACEOF
9967 #define HAVE_INFINIBAND_MAD_H 1
9969 pmda_infiniband
=true
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
9982 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
9983 if ${ac_cv_lib_ibmad_madrpc_init+:} false
; then :
9984 $as_echo_n "(cached) " >&6
9986 ac_check_lib_save_LIBS
=$LIBS
9987 LIBS
="-libmad $LIBS"
9988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9991 /* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
9997 char madrpc_init ();
10001 return madrpc_init ();
10006 if ac_fn_c_try_link
"$LINENO"; then :
10007 ac_cv_lib_ibmad_madrpc_init
=yes
10009 ac_cv_lib_ibmad_madrpc_init
=no
10011 rm -f core conftest.err conftest.
$ac_objext \
10012 conftest
$ac_exeext conftest.
$ac_ext
10013 LIBS
=$ac_check_lib_save_LIBS
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10016 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10017 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes
; then :
10018 cat >>confdefs.h
<<_ACEOF
10019 #define HAVE_LIBIBMAD 1
10022 LIBS
="-libmad $LIBS"
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10027 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10028 if ${ac_cv_lib_ibumad_umad_init+:} false
; then :
10029 $as_echo_n "(cached) " >&6
10031 ac_check_lib_save_LIBS
=$LIBS
10032 LIBS
="-libumad $LIBS"
10033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10036 /* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
10046 return umad_init ();
10051 if ac_fn_c_try_link
"$LINENO"; then :
10052 ac_cv_lib_ibumad_umad_init
=yes
10054 ac_cv_lib_ibumad_umad_init
=no
10056 rm -f core conftest.err conftest.
$ac_objext \
10057 conftest
$ac_exeext conftest.
$ac_ext
10058 LIBS
=$ac_check_lib_save_LIBS
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10061 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10062 if test "x$ac_cv_lib_ibumad_umad_init" = xyes
; then :
10063 cat >>confdefs.h
<<_ACEOF
10064 #define HAVE_LIBIBUMAD 1
10067 LIBS
="-libumad $LIBS"
10071 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10073 IB_LIBS
="-libmad -libumad"
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10076 $as_echo_n "checking for port_performance_query_via... " >&6; }
10077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10086 char port_performance_query_via ();
10090 return port_performance_query_via ();
10095 if ac_fn_c_try_link
"$LINENO"; then :
10097 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10099 have_port_performance_query_via
=true
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10101 $as_echo "yes" >&6; }
10103 have_port_performance_query_via
=false
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10107 rm -f core conftest.err conftest.
$ac_objext \
10108 conftest
$ac_exeext conftest.
$ac_ext
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10110 $as_echo_n "checking for pma_query_via... " >&6; }
10111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10120 char pma_query_via ();
10124 return pma_query_via ();
10129 if ac_fn_c_try_link
"$LINENO"; then :
10131 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10133 have_pma_query_via
=true
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10135 $as_echo "yes" >&6; }
10137 have_pma_query_via
=false
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139 $as_echo "no" >&6; }
10141 rm -f core conftest.err conftest.
$ac_objext \
10142 conftest
$ac_exeext conftest.
$ac_ext
10144 if test $have_pma_query_via -o $have_port_performance_query_via
10148 pmda_infiniband
=false
10151 pmda_infiniband
=false
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10158 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10159 PMDA_INFINIBAND
=$pmda_infiniband
10161 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10162 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }; fi
10166 if test "x$do_papi" != "xno"; then :
10170 saved_LDFLAGS
="$LDFLAGS"
10171 saved_CFLAGS
="$CFLAGS"
10174 CFLAGS
="$papi_CFLAGS"
10175 LDFLAGS
="$papi_LIBS"
10181 PAPI_ROOTDIR
=$do_papi;
10182 CFLAGS
="-I$PAPI_ROOTDIR/include"
10183 LDFLAGS
="-L$PAPI_ROOTDIR/lib"
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10189 $as_echo_n "checking for papi... " >&6; }
10191 if test -n "$papi_CFLAGS"; then
10192 pkg_cv_papi_CFLAGS
="$papi_CFLAGS"
10193 elif test -n "$PKG_CONFIG"; then
10194 if test -n "$PKG_CONFIG" && \
10195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10196 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199 test $ac_status = 0; }; then
10200 pkg_cv_papi_CFLAGS
=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10201 test "x$?" != "x0" && pkg_failed
=yes
10208 if test -n "$papi_LIBS"; then
10209 pkg_cv_papi_LIBS
="$papi_LIBS"
10210 elif test -n "$PKG_CONFIG"; then
10211 if test -n "$PKG_CONFIG" && \
10212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10213 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; }; then
10217 pkg_cv_papi_LIBS
=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10218 test "x$?" != "x0" && pkg_failed
=yes
10228 if test $pkg_failed = yes; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10233 _pkg_short_errors_supported
=yes
10235 _pkg_short_errors_supported
=no
10237 if test $_pkg_short_errors_supported = yes; then
10238 papi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10240 papi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10242 # Put the nasty error message in config.log where it belongs
10243 echo "$papi_PKG_ERRORS" >&5
10245 as_fn_error $?
"Package requirements ($do_papi) were not met:
10249 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10250 installed software in a non-standard prefix.
10252 Alternatively, you may set the environment variables papi_CFLAGS
10253 and papi_LIBS to avoid the need to call pkg-config.
10254 See the pkg-config man page for more details." "$LINENO" 5
10255 elif test $pkg_failed = untried
; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257 $as_echo "no" >&6; }
10258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10260 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
10261 is in your PATH or set the PKG_CONFIG environment variable to the full
10262 path to pkg-config.
10264 Alternatively, you may set the environment variables papi_CFLAGS
10265 and papi_LIBS to avoid the need to call pkg-config.
10266 See the pkg-config man page for more details.
10268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10269 See \`config.log' for more details" "$LINENO" 5; }
10271 papi_CFLAGS
=$pkg_cv_papi_CFLAGS
10272 papi_LIBS
=$pkg_cv_papi_LIBS
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10274 $as_echo "yes" >&6; }
10276 CFLAGS
="$papi_CFLAGS"
10277 LDFLAGS
="$papi_LIBS"
10282 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10284 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10285 if ${ac_cv_lib_papi_PAPI_library_init+:} false
; then :
10286 $as_echo_n "(cached) " >&6
10288 ac_check_lib_save_LIBS
=$LIBS
10289 LIBS
="-lpapi $LIBS"
10290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10299 char PAPI_library_init ();
10303 return PAPI_library_init ();
10308 if ac_fn_c_try_link
"$LINENO"; then :
10309 ac_cv_lib_papi_PAPI_library_init
=yes
10311 ac_cv_lib_papi_PAPI_library_init
=no
10313 rm -f core conftest.err conftest.
$ac_objext \
10314 conftest
$ac_exeext conftest.
$ac_ext
10315 LIBS
=$ac_check_lib_save_LIBS
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10318 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10319 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes
; then :
10320 papi_libs
="$LDFLAGS -lpapi"
10325 for ac_header
in papi.h
10327 ac_fn_c_check_header_mongrel
"$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10328 if test "x$ac_cv_header_papi_h" = xyes
; then :
10329 cat >>confdefs.h
<<_ACEOF
10330 #define HAVE_PAPI_H 1
10332 papi_cflags
="$CFLAGS"
10339 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10341 as_fn_error $?
"PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10343 pmda_papi
=$enable_papi
10346 CFLAGS
="$saved_CFLAGS"
10347 LDFLAGS
="$saved_LDFLAGS"
10348 PAPI_CFLAGS
=$papi_cflags
10350 PAPI_LIBS
=$papi_libs
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10355 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10356 PMDA_PAPI
=$pmda_papi
10358 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10359 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }; fi
10362 if test "x$pmda_papi" = "xtrue"; then :
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10365 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10366 cat <<End-of-File >conftest.c
10368 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10370 (eval $ac_compile) 2>conftest.out
10371 cat conftest.out
>&5
10372 if test -s conftest.out
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10378 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10381 $as_echo "yes" >&6; }
10388 pmda_perfevent
=false
10389 if test "x$do_perfevent" != "xno" ; then :
10391 enable_perfevent
=true
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10395 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10396 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false
; then :
10397 $as_echo_n "(cached) " >&6
10399 ac_check_lib_save_LIBS
=$LIBS
10401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10404 /* Override any GCC internal prototype to avoid an error.
10405 Use char because int might match the return type of a GCC
10406 builtin and then its argument prototype would still apply. */
10410 char pfm_get_os_event_encoding ();
10414 return pfm_get_os_event_encoding ();
10419 if ac_fn_c_try_link
"$LINENO"; then :
10420 ac_cv_lib_pfm_pfm_get_os_event_encoding
=yes
10422 ac_cv_lib_pfm_pfm_get_os_event_encoding
=no
10424 rm -f core conftest.err conftest.
$ac_objext \
10425 conftest
$ac_exeext conftest.
$ac_ext
10426 LIBS
=$ac_check_lib_save_LIBS
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10429 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10430 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes
; then :
10433 enable_perfevent
=false
10436 for ac_header
in perfmon
/pfmlib_perf_event.h
10438 ac_fn_c_check_header_mongrel
"$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10439 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes
; then :
10440 cat >>confdefs.h
<<_ACEOF
10441 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10445 enable_perfevent
=false
10450 if test "$do_perfevent" != "check" -a "$enable_papi" != "true"
10452 as_fn_error $?
"libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10454 pmda_perfevent
=$enable_perfevent
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10462 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10463 PMDA_PERFEVENT
=$pmda_perfevent
10465 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10466 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }; fi
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10472 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 #include <rpm/header.h>
10479 (void)HEADERGET_EXT;
10484 if ac_fn_c_try_compile
"$LINENO"; then :
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10486 $as_echo "yes" >&6; }
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10494 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10497 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10498 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; }; fi
10503 for ac_prog
in qshape
10505 # Extract the first word of "$ac_prog", so it can be a program name with args.
10506 set dummy
$ac_prog; ac_word
=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_prog_QSHAPE+:} false
; then :
10510 $as_echo_n "(cached) " >&6
10512 if test -n "$QSHAPE"; then
10513 ac_cv_prog_QSHAPE
="$QSHAPE" # Let the user override the test.
10515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10516 as_dummy
="path=$PATH:/usr/sbin"
10517 for as_dir
in $as_dummy
10520 test -z "$as_dir" && as_dir
=.
10521 for ac_exec_ext
in '' $ac_executable_extensions; do
10522 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10523 ac_cv_prog_QSHAPE
="$ac_prog"
10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 QSHAPE
=$ac_cv_prog_QSHAPE
10534 if test -n "$QSHAPE"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10536 $as_echo "$QSHAPE" >&6; }
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10543 test -n "$QSHAPE" && break
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10547 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10548 if test -n "$QSHAPE"
10552 for script in /usr
/share
/doc
/packages
/postfix-doc
/auxiliary
/qshape
/qshape.pl
10554 if test -f "$script"
10561 PMDA_POSTFIX
=$pmda_postfix
10563 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10564 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565 $as_echo "no" >&6; }; fi
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10570 $as_echo_n "checking for libmicrohttpd... " >&6; }
10572 if test -n "$libmicrohttpd_CFLAGS"; then
10573 pkg_cv_libmicrohttpd_CFLAGS
="$libmicrohttpd_CFLAGS"
10574 elif test -n "$PKG_CONFIG"; then
10575 if test -n "$PKG_CONFIG" && \
10576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10577 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10580 test $ac_status = 0; }; then
10581 pkg_cv_libmicrohttpd_CFLAGS
=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10582 test "x$?" != "x0" && pkg_failed
=yes
10589 if test -n "$libmicrohttpd_LIBS"; then
10590 pkg_cv_libmicrohttpd_LIBS
="$libmicrohttpd_LIBS"
10591 elif test -n "$PKG_CONFIG"; then
10592 if test -n "$PKG_CONFIG" && \
10593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10594 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10597 test $ac_status = 0; }; then
10598 pkg_cv_libmicrohttpd_LIBS
=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10599 test "x$?" != "x0" && pkg_failed
=yes
10609 if test $pkg_failed = yes; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10613 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10614 _pkg_short_errors_supported
=yes
10616 _pkg_short_errors_supported
=no
10618 if test $_pkg_short_errors_supported = yes; then
10619 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10621 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10623 # Put the nasty error message in config.log where it belongs
10624 echo "$libmicrohttpd_PKG_ERRORS" >&5
10626 have_libmicrohttpd
=false
10627 elif test $pkg_failed = untried
; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629 $as_echo "no" >&6; }
10630 have_libmicrohttpd
=false
10632 libmicrohttpd_CFLAGS
=$pkg_cv_libmicrohttpd_CFLAGS
10633 libmicrohttpd_LIBS
=$pkg_cv_libmicrohttpd_LIBS
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10635 $as_echo "yes" >&6; }
10636 have_libmicrohttpd
=true
10638 HAVE_LIBMICROHTTPD
=$have_libmicrohttpd
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10644 $as_echo_n "checking for cairo... " >&6; }
10646 if test -n "$cairo_CFLAGS"; then
10647 pkg_cv_cairo_CFLAGS
="$cairo_CFLAGS"
10648 elif test -n "$PKG_CONFIG"; then
10649 if test -n "$PKG_CONFIG" && \
10650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10651 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10654 test $ac_status = 0; }; then
10655 pkg_cv_cairo_CFLAGS
=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10656 test "x$?" != "x0" && pkg_failed
=yes
10663 if test -n "$cairo_LIBS"; then
10664 pkg_cv_cairo_LIBS
="$cairo_LIBS"
10665 elif test -n "$PKG_CONFIG"; then
10666 if test -n "$PKG_CONFIG" && \
10667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10668 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10671 test $ac_status = 0; }; then
10672 pkg_cv_cairo_LIBS
=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10673 test "x$?" != "x0" && pkg_failed
=yes
10683 if test $pkg_failed = yes; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10688 _pkg_short_errors_supported
=yes
10690 _pkg_short_errors_supported
=no
10692 if test $_pkg_short_errors_supported = yes; then
10693 cairo_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10695 cairo_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10697 # Put the nasty error message in config.log where it belongs
10698 echo "$cairo_PKG_ERRORS" >&5
10701 elif test $pkg_failed = untried
; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10706 cairo_CFLAGS
=$pkg_cv_cairo_CFLAGS
10707 cairo_LIBS
=$pkg_cv_cairo_LIBS
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10709 $as_echo "yes" >&6; }
10712 HAVE_CAIRO
=$have_cairo
10715 enable_webapi
=false
10716 if test "x$do_webapi" != "xno"; then :
10720 if test "$have_libmicrohttpd" != "true"
10722 enable_webapi
=false
10723 test "$do_webapi" != "check" && \
10724 as_fn_error $?
"libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10725 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10727 enable_webapi
=false
10728 test "$do_webapi" != "check" && \
10729 as_fn_error $?
"C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10735 enable_manager
=false
10736 if test "x$do_manager" != "xno"; then :
10738 enable_manager
=true
10740 if test "$target_os" = "mingw"
10742 enable_manager
=false
10743 test "$do_manager" != "check" && \
10744 as_fn_error $?
"MinGW build, cannot enable daemon manager" "$LINENO" 5
10745 elif test "x$cxx" = "x"
10747 enable_manager
=false
10748 test "$do_manager" != "check" && \
10749 as_fn_error $?
"C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10752 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755 #ifndef _XOPEN_SOURCE
10756 #define _XOPEN_SOURCE 600
10768 if ac_fn_c_try_compile
"$LINENO"; then :
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10770 $as_echo "yes" >&6; }
10772 enable_manager
=false
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10782 $as_echo_n "checking return type of signal handlers... " >&6; }
10783 if ${ac_cv_type_signal+:} false
; then :
10784 $as_echo_n "(cached) " >&6
10786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 #include <sys/types.h>
10789 #include <signal.h>
10794 return *(signal (0, 0)) (0) == 1;
10799 if ac_fn_c_try_compile
"$LINENO"; then :
10800 ac_cv_type_signal
=int
10802 ac_cv_type_signal
=void
10804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10807 $as_echo "$ac_cv_type_signal" >&6; }
10809 cat >>confdefs.h
<<_ACEOF
10810 #define RETSIGTYPE $ac_cv_type_signal
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
10815 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
10816 if ${ac_cv_func_wait3_rusage+:} false
; then :
10817 $as_echo_n "(cached) " >&6
10819 if test "$cross_compiling" = yes; then :
10820 ac_cv_func_wait3_rusage
=no
10822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 $ac_includes_default
10825 #include <sys/time.h>
10826 #include <sys/resource.h>
10827 #include <sys/wait.h>
10828 /* HP-UX has wait3 but does not fill in rusage at all. */
10834 /* Use a field that we can force nonzero --
10835 voluntary context switches.
10836 For systems like NeXT and OSF/1 that don't set it,
10837 also use the system CPU time. And page faults (I/O) for Linux. */
10839 r.ru_stime.tv_sec = 0;
10840 r.ru_stime.tv_usec = 0;
10841 r.ru_majflt = r.ru_minflt = 0;
10844 case 0: /* Child. */
10845 sleep(1); /* Give up the CPU. */
10848 case -1: /* What can we do? */
10851 default: /* Parent. */
10853 /* Avoid "text file busy" from rm on fast HP-UX machines. */
10855 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
10856 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
10860 if ac_fn_c_try_run
"$LINENO"; then :
10861 ac_cv_func_wait3_rusage
=yes
10863 ac_cv_func_wait3_rusage
=no
10865 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10866 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
10871 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
10872 if test $ac_cv_func_wait3_rusage = yes; then
10874 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
10878 for ac_func
in vprintf
10880 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
10881 if test "x$ac_cv_func_vprintf" = xyes
; then :
10882 cat >>confdefs.h
<<_ACEOF
10883 #define HAVE_VPRINTF 1
10886 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
10887 if test "x$ac_cv_func__doprnt" = xyes
; then :
10889 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10897 for ac_func
in mktime nanosleep
usleep unsetenv
10899 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10900 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10901 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10902 cat >>confdefs.h
<<_ACEOF
10903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10909 for ac_func
in select socket gethostname getpeerucred getpeereid
10911 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10912 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10913 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10914 cat >>confdefs.h
<<_ACEOF
10915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10921 for ac_func
in uname syslog __clone pipe2 fcntl ioctl
10923 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10925 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10926 cat >>confdefs.h
<<_ACEOF
10927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10933 for ac_func
in prctl setlinebuf waitpid atexit
kill
10935 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10936 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10937 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10938 cat >>confdefs.h
<<_ACEOF
10939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10945 for ac_func
in chown fchmod getcwd scandir mkstemp
10947 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10948 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10949 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10950 cat >>confdefs.h
<<_ACEOF
10951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10957 for ac_func
in brk sbrk posix_memalign memalign valloc
10959 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10961 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10962 cat >>confdefs.h
<<_ACEOF
10963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10969 for ac_func
in signal sighold sigrelse tcgetattr
10971 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10972 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10973 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10974 cat >>confdefs.h
<<_ACEOF
10975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10981 for ac_func
in regex regcmp regexec regcomp
10983 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10984 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10985 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10986 cat >>confdefs.h
<<_ACEOF
10987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10993 for ac_func
in strtod strtol strtoll strtoull strndup strchrnul
10995 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10996 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10997 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10998 cat >>confdefs.h
<<_ACEOF
10999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11005 for ac_func
in getuid getgid
11007 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11008 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11009 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11010 cat >>confdefs.h
<<_ACEOF
11011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11017 for ac_func
in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11019 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11020 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11021 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11022 cat >>confdefs.h
<<_ACEOF
11023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11029 for ac_func
in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11031 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11032 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11033 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11034 cat >>confdefs.h
<<_ACEOF
11035 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11041 for ac_func
in sysinfo trace_back_stack backtrace
11043 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11044 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11045 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11046 cat >>confdefs.h
<<_ACEOF
11047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11053 for ac_func
in sendmsg recvmsg setns
11055 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11056 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11057 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11058 cat >>confdefs.h
<<_ACEOF
11059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11066 if test $target_os != linux
-a $target_os != freebsd
-a $target_os != kfreebsd
-a $target_os != netbsd
; then
11067 for ac_func
in readdir64
11069 ac_fn_c_check_func
"$LINENO" "readdir64" "ac_cv_func_readdir64"
11070 if test "x$ac_cv_func_readdir64" = xyes
; then :
11071 cat >>confdefs.h
<<_ACEOF
11072 #define HAVE_READDIR64 1
11080 if test $target_os = solaris
11082 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11083 if test "x$ac_cv_type___int32_t" = xyes
; then :
11087 cat >>confdefs.h
<<_ACEOF
11088 #define __int32_t int32_t
11093 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11094 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11098 cat >>confdefs.h
<<_ACEOF
11099 #define __uint32_t uint32_t
11104 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11105 if test "x$ac_cv_type___int64_t" = xyes
; then :
11109 cat >>confdefs.h
<<_ACEOF
11110 #define __int64_t int64_t
11115 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11116 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11120 cat >>confdefs.h
<<_ACEOF
11121 #define __uint64_t uint64_t
11126 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11127 if test "x$ac_cv_type_uint_t" = xyes
; then :
11131 cat >>confdefs.h
<<_ACEOF
11132 #define uint_t u_int32_t
11138 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11139 if test "x$ac_cv_type___int32_t" = xyes
; then :
11143 cat >>confdefs.h
<<_ACEOF
11144 #define __int32_t int
11149 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11150 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11154 cat >>confdefs.h
<<_ACEOF
11155 #define __uint32_t unsigned int
11160 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11161 if test "x$ac_cv_type___int64_t" = xyes
; then :
11165 cat >>confdefs.h
<<_ACEOF
11166 #define __int64_t long long
11171 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11172 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11176 cat >>confdefs.h
<<_ACEOF
11177 #define __uint64_t unsigned long long
11182 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11183 if test "x$ac_cv_type_uint_t" = xyes
; then :
11187 cat >>confdefs.h
<<_ACEOF
11188 #define uint_t unsigned int
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11196 $as_echo_n "checking for __psint_t ... " >&6; }
11197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 #include <sys/types.h>
11201 #include <stdlib.h>
11202 #include <stddef.h>
11212 if ac_fn_c_try_compile
"$LINENO"; then :
11214 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11216 $as_echo "yes" >&6; }
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11224 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11228 #include <stddef.h>
11229 #ifdef HAVE_MALLOC_H
11230 #include <malloc.h>
11241 if ac_fn_c_try_compile
"$LINENO"; then :
11243 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245 $as_echo "yes" >&6; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11253 $as_echo_n "checking for uid_t ... " >&6; }
11254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 #include <sys/types.h>
11270 if ac_fn_c_try_compile
"$LINENO"; then :
11272 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11274 $as_echo "yes" >&6; }
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11281 $as_echo_n "checking for gid_t ... " >&6; }
11282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11285 #include <sys/types.h>
11298 if ac_fn_c_try_compile
"$LINENO"; then :
11300 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11309 $as_echo_n "checking for SID ... " >&6; }
11310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11313 #ifdef HAVE_WINDOWS_H
11314 #include <windows.h>
11325 if ac_fn_c_try_compile
"$LINENO"; then :
11327 $as_echo "#define HAVE_SID 1" >>confdefs.h
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11329 $as_echo "yes" >&6; }
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11337 $as_echo_n "checking for socklen_t ... " >&6; }
11338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11341 #include <sys/types.h>
11342 #ifdef HAVE_SYS_SOCKET_H
11343 #include <sys/socket.h>
11354 if ac_fn_c_try_compile
"$LINENO"; then :
11356 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11358 $as_echo "yes" >&6; }
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11378 if ac_fn_c_try_compile
"$LINENO"; then :
11380 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 #include <stdlib.h>
11389 #include <unistd.h>
11394 char **x = _environ;
11399 if ac_fn_c_try_link
"$LINENO"; then :
11401 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11404 rm -f core conftest.err conftest.
$ac_objext \
11405 conftest
$ac_exeext conftest.
$ac_ext
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11408 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11412 #ifdef HAVE_SYS_PRCTL_H
11413 #include <sys/prctl.h>
11419 int i = PR_TERMCHILD;
11424 if ac_fn_c_try_compile
"$LINENO"; then :
11426 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 $as_echo "yes" >&6; }
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11436 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11440 #ifdef HAVE_SYS_PRCTL_H
11441 #include <sys/prctl.h>
11447 int i = PR_SET_PDEATHSIG;
11452 if ac_fn_c_try_compile
"$LINENO"; then :
11454 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456 $as_echo "yes" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11464 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11465 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
11466 $as_echo_n "(cached) " >&6
11468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11470 #include <sys/types.h>
11471 #include <termios.h>
11477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11478 $EGREP "yes" >/dev
/null
2>&1; then :
11479 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
11481 ac_cv_sys_tiocgwinsz_in_termios_h
=no
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11487 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11489 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11491 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11492 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
11493 $as_echo_n "(cached) " >&6
11495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11497 #include <sys/types.h>
11498 #include <sys/ioctl.h>
11504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11505 $EGREP "yes" >/dev
/null
2>&1; then :
11506 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
11508 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11514 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11516 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11518 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11525 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11526 save_CFLAGS
="$CFLAGS"
11528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11539 if ac_fn_c_try_link
"$LINENO"; then :
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541 $as_echo "yes" >&6; }
11542 rdynamic_flag
=-rdynamic
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11549 rm -f core conftest.err conftest.
$ac_objext \
11550 conftest
$ac_exeext conftest.
$ac_ext
11551 CFLAGS
="$save_CFLAGS"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11556 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11557 cat <<End-of-File >conftest.c
11558 #include <stdlib.h>
11559 #include <unistd.h>
11560 #include <dirent.h>
11562 my_select(const struct dirent *foo) { return 0; }
11563 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11565 (eval $ac_compile) 2>conftest.out
11566 cat conftest.out
>&5
11567 if test -s conftest.out
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11573 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11576 $as_echo "yes" >&6; }
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11581 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11582 cat <<End-of-File >conftest.c
11583 #include <stdlib.h>
11584 #include <unistd.h>
11585 #include <dirent.h>
11586 int main() { struct dirent d; d.d_off = 0; }
11588 (eval $ac_compile) 2>conftest.out
11589 cat conftest.out
>&5
11590 if test -s conftest.out
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11596 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599 $as_echo "yes" >&6; }
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11604 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11605 if test "$cross_compiling" = "yes"; then
11606 ans
=$printf_p_prefix
11607 echo "cross-compile -> \"$ans\"" >&5
11609 cat <<End-of-File >conftest.c
11611 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11613 (eval $ac_compile) 2>&5
11614 (eval $ac_link) 2>&5
11616 echo "./conftest -> \"$ans\"" >&5
11622 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625 $as_echo "yes" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11632 rm -rf conftest conftest.
*
11636 # need to deal with this sort of cpp output ...
11637 # typedef long pid_t;
11638 # typedef unsigned int pid_t;
11639 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11640 # __extension__ typedef int pid_t;
11646 # typedef ... *pid;
11647 # and chaining of the form
11648 # typedef long __pid_t;
11649 # typedef __pid_t pid_t;
11651 _raw
=`$CPP conftest.c \
11653 -e 's/[ ]__attribute__ ((.*));/;/' \
11654 -e 's/__extension__[ ][ ]*//' \
11656 /bozo/ { print; next }
11657 $1 == "typedef" { printf "%s",$0
11663 if ($0 ~ /{/) depth = 1
11666 wantsemi == 1 { printf " %s",$0
11667 if ($0 ~ /{/) depth++
11669 if ($0 ~ /}/) depth--
11670 if (depth > 0) next
11683 $1 == "typedef" { map[$NF] = ""
11684 for (i = 2; i < NF; i++) {
11688 map[$NF] = map[$NF] " " $i
11690 print $NF " -> " map[$NF] >"conftest.debug"
11693 $2 == "bozo" { t = $1
11694 printf "best guess: %s",t >"conftest.debug"
11695 while (map[t] != "") {
11697 printf " -> %s",t >"conftest.debug"
11699 print "" >"conftest.debug"
11708 unsigned|
'unsigned int')
11714 'long long'|
'long long int')
11715 if test $target_os = mingw
; then
11721 'unsigned long'|
'unsigned long int'|
'long unsigned int')
11724 'unsigned long long'|
'unsigned long long int')
11725 if test $target_os = mingw
; then
11731 *\
*) # pointer to a something
11734 struct\
*) # not much can be done here ...
11739 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11740 echo "... typedef mapping ..."
11742 rm -rf conftest conftest.
*
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11749 $as_echo_n "checking printf type for pid_t... " >&6; }
11750 if test "$cross_compiling" = "yes"; then
11751 ans
=$printf_fmt_pid
11752 echo "cross-compile -> \"$ans\"" >&5
11755 cat <<End-of-File >conftest.c
11756 #include <sys/types.h>
11757 #include <unistd.h>
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11764 $as_echo "$fmt_pid" >&6; }
11766 rm -rf conftest.c conftest.debug
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11769 $as_echo_n "checking printf type for int64_t ... " >&6; }
11770 if test "$cross_compiling" = "yes"; then
11771 ans
=$printf_fmt_int64
11772 echo "cross-compile -> \"$ans\"" >&5
11774 cat <<End-of-File >conftest.c
11776 #include <stdint.h>
11777 #include <inttypes.h>
11780 printf("\"%s\"\n", __PRI64_PREFIX "d");
11785 (eval $ac_link) 2>&5
11786 if test -x .
/conftest
11789 echo "./conftest -> \"$ans\"" >&5
11793 cat <<End-of-File >conftest.c
11795 #include <stdint.h>
11796 #include <string.h>
11800 int64_t bozo = 0x12345678abcdLL;
11801 sprintf(buf, "%lx", bozo);
11802 if (strcmp(buf, "12345678abcd") == 0)
11803 printf("\"ld\"\n");
11805 sprintf(buf, "%llx", bozo);
11806 if (strcmp(buf, "12345678abcd") == 0)
11807 printf("\"lld\"\n");
11812 (eval $ac_link) 2>&5
11813 if test -x .
/conftest
11816 echo "./conftest -> \"$ans\"" >&5
11822 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
11823 rm -rf conftest conftest.
*
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
11828 $as_echo "\"$fmt_int64\"" >&6; }
11830 rm -rf conftest.
* conftest
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
11833 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
11834 if test "$cross_compiling" = "yes"; then
11836 echo "cross-compile -> \"$ans\"" >&5
11838 cat <<End-of-File >conftest.c
11840 #include <stdlib.h>
11843 long long int value = -1;
11844 value = strtol("1234567812345678", NULL, 16);
11845 if (value == 0x1234567812345678LL) {
11846 printf("strotol\n");
11849 value = strtoll("1234567812345678", NULL, 16);
11850 if (value == 0x1234567812345678LL) {
11851 printf("strtoll\n");
11857 (eval $ac_compile) 2>&5
11858 (eval $ac_link) 2>&5
11860 echo "./conftest -> \"$ans\"" >&5
11865 $as_echo "#define strtoint64 strtol" >>confdefs.h
11867 $as_echo "#define strtouint64 strtoul" >>confdefs.h
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
11870 $as_echo "strtol" >&6; }
11873 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11875 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
11878 $as_echo "strtoll" >&6; }
11881 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11883 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
11886 $as_echo "assuming strtoll" >&6; }
11889 rm -rf conftest conftest.
*
11891 if test "$do_threads" = "check" -o "$do_threads" = "yes"
11893 for ac_header
in pthread.h
11895 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11896 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11897 cat >>confdefs.h
<<_ACEOF
11898 #define HAVE_PTHREAD_H 1
11903 if test "$do_threads" = "yes"
11905 as_fn_error $?
"cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
11914 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
11915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11917 #include <pthread.h>
11921 pthread_mutex_t mymutex;
11926 if ac_fn_c_try_compile
"$LINENO"; then :
11928 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; }
11933 if test "$do_threads" = "yes"
11935 as_fn_error $?
"cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
11945 $as_echo_n "checking where pthread_create() is defined... " >&6; }
11946 for cand
in "" pthreads pthread
; do
11950 LIBS
=`echo $LIBS -l$cand`
11952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11955 #include <pthread.h>
11961 pthread_create(NULL, NULL, NULL, NULL);
11967 if ac_fn_c_try_link
"$LINENO"; then :
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
11969 $as_echo "lib${cand:-c}" >&6; }
11972 lib_for_pthreads
="$cand"
11974 lib_for_pthreads
="-l$cand"
11979 rm -f core conftest.err conftest.
$ac_objext \
11980 conftest
$ac_exeext conftest.
$ac_ext
11985 if test "$ac_cv_header_pthread_h" = "yes"
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
11988 $as_echo_n "checking printf type for pthread_t... " >&6; }
11989 cat <<End-of-File >conftest.c
11990 #include <pthread.h>
11994 fmt_pthread
="$_fmt"
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
11996 $as_echo "$fmt_pthread" >&6; }
11998 rm -rf conftest.c conftest.debug
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12001 $as_echo_n "checking if compiler supports __thread... " >&6; }
12002 if test $target_os = netbsd
12004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12006 #include <pthread.h>
12007 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12020 if ac_fn_c_try_compile
"$LINENO"; then :
12022 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12024 $as_echo "yes" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12033 #include <pthread.h>
12043 if ac_fn_c_try_compile
"$LINENO"; then :
12045 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12047 $as_echo "yes" >&6; }
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12056 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <pthread.h>
12063 pthread_barrier_t mybarrier;
12068 if ac_fn_c_try_compile
"$LINENO"; then :
12070 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; }
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12082 $as_echo_n "checking sizeof long... " >&6; }
12083 if test "$cross_compiling" = "yes"; then
12085 echo "cross-compile -> \"$ans\"" >&5
12087 cat <<End-of-File >conftest.c
12089 main() { printf("%d", (int)sizeof(long)); }
12091 (eval $ac_compile) 2>&5
12092 (eval $ac_link) 2>&5
12094 echo "./conftest -> \"$ans\"" >&5
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12097 $as_echo "$ans" >&6; }
12098 if test "$ans" = 4; then
12100 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12102 elif test "$ans" = 8; then
12104 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12108 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12109 echo "sizeof(char *) -> $ans"
12110 rm -rf conftest conftest.
*
12113 rm -rf conftest conftest.
*
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12116 $as_echo_n "checking sizeof pointer... " >&6; }
12117 if test "$cross_compiling" = "yes"; then
12118 ans
=$sizeof_pointer
12119 echo "cross-compile -> \"$ans\"" >&5
12121 cat <<End-of-File >conftest.c
12123 main() { printf("%d", (int)sizeof(char *)); }
12125 (eval $ac_compile) 2>&5
12126 (eval $ac_link) 2>&5
12128 echo "./conftest -> \"$ans\"" >&5
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12131 $as_echo "$ans" >&6; }
12132 if test "$ans" = 4; then
12134 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12137 elif test "$ans" = 8; then
12139 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12144 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12145 echo "sizeof(char *) -> $ans"
12146 rm -rf conftest conftest.
*
12149 rm -rf conftest conftest.
*
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12152 $as_echo_n "checking sizeof int... " >&6; }
12153 if test "$cross_compiling" = "yes"; then
12155 echo "cross-compile -> \"$ans\"" >&5
12157 cat <<End-of-File >conftest.c
12159 main() { printf("%d", (int)sizeof(int)); }
12161 (eval $ac_compile) 2>&5
12162 (eval $ac_link) 2>&5
12164 echo "./conftest -> \"$ans\"" >&5
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12167 $as_echo "$ans" >&6; }
12168 if test "$ans" != 4
12171 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12172 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12173 echo " the over-the-wire PDU formats"
12174 rm -rf conftest conftest.
*
12177 rm -rf conftest conftest.
*
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12180 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12181 if test "$cross_compiling" = "yes"; then
12182 ans
=$bit_field_scheme
12183 echo "cross-compile -> \"$ans\"" >&5
12185 cat <<End-of-File >conftest.c
12186 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12187 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12189 (eval $ac_compile) 2>&5
12190 (eval $ac_link) 2>&5
12192 echo "./conftest -> \"$ans\"" >&5
12197 # left-to-right starting from MSB (SGI cc on MIPS), or
12198 # left-to-right ending at LSB
12200 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12203 $as_echo "yes" >&6; }
12206 # right-to-left ending at MSB, or
12207 # right-to-left starting from LSB (gcc in Intel)
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12213 $as_echo "unknown" >&6; }
12214 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12215 rm -f conftest conftest.
*
12219 rm -rf conftest conftest.
*
12221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12224 #include <stdlib.h>
12225 #include <unistd.h>
12232 double y = (double)x;
12238 if ac_fn_c_try_link
"$LINENO"; then :
12240 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12243 rm -f core conftest.err conftest.
$ac_objext \
12244 conftest
$ac_exeext conftest.
$ac_ext
12246 for ac_func
in basename
12248 ac_fn_c_check_func
"$LINENO" "basename" "ac_cv_func_basename"
12249 if test "x$ac_cv_func_basename" = xyes
; then :
12250 cat >>confdefs.h
<<_ACEOF
12251 #define HAVE_BASENAME 1
12257 if test $ac_cv_func_basename = yes
12260 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12263 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12265 lib_for_basename
=""
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12268 $as_echo_n "checking for basename in -lgen... " >&6; }
12269 if ${ac_cv_lib_gen_basename+:} false
; then :
12270 $as_echo_n "(cached) " >&6
12272 ac_check_lib_save_LIBS
=$LIBS
12274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12287 return basename ();
12292 if ac_fn_c_try_link
"$LINENO"; then :
12293 ac_cv_lib_gen_basename
=yes
12295 ac_cv_lib_gen_basename
=no
12297 rm -f core conftest.err conftest.
$ac_objext \
12298 conftest
$ac_exeext conftest.
$ac_ext
12299 LIBS
=$ac_check_lib_save_LIBS
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12302 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12303 if test "x$ac_cv_lib_gen_basename" = xyes
; then :
12304 cat >>confdefs.h
<<_ACEOF
12305 #define HAVE_LIBGEN 1
12312 if test $ac_cv_lib_gen_basename = yes
12315 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12318 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12320 lib_for_basename
="-lgen"
12322 lib_for_basename
="-lpcp"
12327 lib_for_clock_gettime
=
12328 for ac_func
in clock_gettime
12330 ac_fn_c_check_func
"$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12331 if test "x$ac_cv_func_clock_gettime" = xyes
; then :
12332 cat >>confdefs.h
<<_ACEOF
12333 #define HAVE_CLOCK_GETTIME 1
12339 if test $ac_cv_func_clock_gettime = no
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12342 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12343 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
12344 $as_echo_n "(cached) " >&6
12346 ac_check_lib_save_LIBS
=$LIBS
12348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12351 /* Override any GCC internal prototype to avoid an error.
12352 Use char because int might match the return type of a GCC
12353 builtin and then its argument prototype would still apply. */
12357 char clock_gettime ();
12361 return clock_gettime ();
12366 if ac_fn_c_try_link
"$LINENO"; then :
12367 ac_cv_lib_rt_clock_gettime
=yes
12369 ac_cv_lib_rt_clock_gettime
=no
12371 rm -f core conftest.err conftest.
$ac_objext \
12372 conftest
$ac_exeext conftest.
$ac_ext
12373 LIBS
=$ac_check_lib_save_LIBS
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12376 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12377 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
12378 cat >>confdefs.h
<<_ACEOF
12379 #define HAVE_LIBRT 1
12386 if test $ac_cv_lib_rt_clock_gettime = yes
12389 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12397 for ac_func
in dlopen
12399 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12400 if test "x$ac_cv_func_dlopen" = xyes
; then :
12401 cat >>confdefs.h
<<_ACEOF
12402 #define HAVE_DLOPEN 1
12408 if test $ac_cv_func_dlopen = no
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12411 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12412 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12413 $as_echo_n "(cached) " >&6
12415 ac_check_lib_save_LIBS
=$LIBS
12417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12420 /* Override any GCC internal prototype to avoid an error.
12421 Use char because int might match the return type of a GCC
12422 builtin and then its argument prototype would still apply. */
12435 if ac_fn_c_try_link
"$LINENO"; then :
12436 ac_cv_lib_dl_dlopen
=yes
12438 ac_cv_lib_dl_dlopen
=no
12440 rm -f core conftest.err conftest.
$ac_objext \
12441 conftest
$ac_exeext conftest.
$ac_ext
12442 LIBS
=$ac_check_lib_save_LIBS
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12445 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12446 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12447 cat >>confdefs.h
<<_ACEOF
12448 #define HAVE_LIBDL 1
12455 if test $ac_cv_lib_dl_dlopen = yes
12458 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12460 lib_for_dlopen
=-ldl
12466 for ac_func
in flog10
12468 ac_fn_c_check_func
"$LINENO" "flog10" "ac_cv_func_flog10"
12469 if test "x$ac_cv_func_flog10" = xyes
; then :
12470 cat >>confdefs.h
<<_ACEOF
12471 #define HAVE_FLOG10 1
12477 if test $ac_cv_func_flog10 = no
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12480 $as_echo_n "checking for flog10 in -lm... " >&6; }
12481 if ${ac_cv_lib_m_flog10+:} false
; then :
12482 $as_echo_n "(cached) " >&6
12484 ac_check_lib_save_LIBS
=$LIBS
12486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12489 /* Override any GCC internal prototype to avoid an error.
12490 Use char because int might match the return type of a GCC
12491 builtin and then its argument prototype would still apply. */
12504 if ac_fn_c_try_link
"$LINENO"; then :
12505 ac_cv_lib_m_flog10
=yes
12507 ac_cv_lib_m_flog10
=no
12509 rm -f core conftest.err conftest.
$ac_objext \
12510 conftest
$ac_exeext conftest.
$ac_ext
12511 LIBS
=$ac_check_lib_save_LIBS
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12514 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12515 if test "x$ac_cv_lib_m_flog10" = xyes
; then :
12516 cat >>confdefs.h
<<_ACEOF
12517 #define HAVE_LIBM 1
12524 if test $ac_cv_lib_m_flog10 = yes
12527 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12533 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12538 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
12539 if test "x$ac_cv_func_pow" = xyes
; then :
12540 cat >>confdefs.h
<<_ACEOF
12547 if test $ac_cv_func_pow = no
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12550 $as_echo_n "checking for pow in -lm... " >&6; }
12551 if ${ac_cv_lib_m_pow+:} false
; then :
12552 $as_echo_n "(cached) " >&6
12554 ac_check_lib_save_LIBS
=$LIBS
12556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12574 if ac_fn_c_try_link
"$LINENO"; then :
12575 ac_cv_lib_m_pow
=yes
12579 rm -f core conftest.err conftest.
$ac_objext \
12580 conftest
$ac_exeext conftest.
$ac_ext
12581 LIBS
=$ac_check_lib_save_LIBS
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12584 $as_echo "$ac_cv_lib_m_pow" >&6; }
12585 if test "x$ac_cv_lib_m_pow" = xyes
; then :
12586 cat >>confdefs.h
<<_ACEOF
12587 #define HAVE_LIBM 1
12594 if test $ac_cv_lib_m_pow = yes
12597 $as_echo "#define HAVE_POW 1" >>confdefs.h
12603 $as_echo "#define HAVE_POW 1" >>confdefs.h
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12607 $as_echo_n "checking for fpclassify()... " >&6; }
12608 ac_cv_func_fpclassify
=no
12609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12618 double x = 123.456;
12619 if (fpclassify(x) == FP_NAN) exit(1);
12625 if ac_fn_c_try_link
"$LINENO"; then :
12626 ac_cv_func_fpclassify
=yes
12628 rm -f core conftest.err conftest.
$ac_objext \
12629 conftest
$ac_exeext conftest.
$ac_ext
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12631 $as_echo "$ac_cv_func_fpclassify" >&6; }
12632 if test $ac_cv_func_fpclassify = no
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12635 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12647 double x = 123.456;
12648 if (fpclassify(x) == FP_NAN) exit(1);
12654 if ac_fn_c_try_link
"$LINENO"; then :
12655 ac_cv_func_fpclassify
=yes
12657 rm -f core conftest.err conftest.
$ac_objext \
12658 conftest
$ac_exeext conftest.
$ac_ext
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12660 $as_echo "$ac_cv_func_fpclassify" >&6; }
12661 if test $ac_cv_func_fpclassify = yes
12667 if test $ac_cv_func_fpclassify = yes
12670 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12673 for ac_func
in isnan
12675 ac_fn_c_check_func
"$LINENO" "isnan" "ac_cv_func_isnan"
12676 if test "x$ac_cv_func_isnan" = xyes
; then :
12677 cat >>confdefs.h
<<_ACEOF
12678 #define HAVE_ISNAN 1
12684 if test $ac_cv_func_isnan = no
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12687 $as_echo_n "checking for isnan in -lm... " >&6; }
12688 if ${ac_cv_lib_m_isnan+:} false
; then :
12689 $as_echo_n "(cached) " >&6
12691 ac_check_lib_save_LIBS
=$LIBS
12693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12711 if ac_fn_c_try_link
"$LINENO"; then :
12712 ac_cv_lib_m_isnan
=yes
12714 ac_cv_lib_m_isnan
=no
12716 rm -f core conftest.err conftest.
$ac_objext \
12717 conftest
$ac_exeext conftest.
$ac_ext
12718 LIBS
=$ac_check_lib_save_LIBS
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12721 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12722 if test "x$ac_cv_lib_m_isnan" = xyes
; then :
12723 cat >>confdefs.h
<<_ACEOF
12724 #define HAVE_LIBM 1
12731 if test $ac_cv_lib_m_isnan = yes
12734 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12739 for ac_func
in isnanf
12741 ac_fn_c_check_func
"$LINENO" "isnanf" "ac_cv_func_isnanf"
12742 if test "x$ac_cv_func_isnanf" = xyes
; then :
12743 cat >>confdefs.h
<<_ACEOF
12744 #define HAVE_ISNANF 1
12750 if test $ac_cv_func_isnanf = no
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
12753 $as_echo_n "checking for isnanf in -lm... " >&6; }
12754 if ${ac_cv_lib_m_isnanf+:} false
; then :
12755 $as_echo_n "(cached) " >&6
12757 ac_check_lib_save_LIBS
=$LIBS
12759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12762 /* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12777 if ac_fn_c_try_link
"$LINENO"; then :
12778 ac_cv_lib_m_isnanf
=yes
12780 ac_cv_lib_m_isnanf
=no
12782 rm -f core conftest.err conftest.
$ac_objext \
12783 conftest
$ac_exeext conftest.
$ac_ext
12784 LIBS
=$ac_check_lib_save_LIBS
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
12787 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
12788 if test "x$ac_cv_lib_m_isnanf" = xyes
; then :
12789 cat >>confdefs.h
<<_ACEOF
12790 #define HAVE_LIBM 1
12797 if test $ac_cv_lib_m_isnanf = yes
12800 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
12808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #include <signal.h>
12819 if ac_fn_c_try_link
"$LINENO"; then :
12821 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
12824 rm -f core conftest.err conftest.
$ac_objext \
12825 conftest
$ac_exeext conftest.
$ac_ext
12827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829 #include <signal.h>
12833 int x = SA_SIGINFO;
12838 if ac_fn_c_try_link
"$LINENO"; then :
12840 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
12843 rm -f core conftest.err conftest.
$ac_objext \
12844 conftest
$ac_exeext conftest.
$ac_ext
12846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848 #include <signal.h>
12857 if ac_fn_c_try_link
"$LINENO"; then :
12859 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
12862 rm -f core conftest.err conftest.
$ac_objext \
12863 conftest
$ac_exeext conftest.
$ac_ext
12865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 #include <signal.h>
12876 if ac_fn_c_try_link
"$LINENO"; then :
12878 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
12881 rm -f core conftest.err conftest.
$ac_objext \
12882 conftest
$ac_exeext conftest.
$ac_ext
12884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12886 #include <signal.h>
12895 if ac_fn_c_try_link
"$LINENO"; then :
12897 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
12900 rm -f core conftest.err conftest.
$ac_objext \
12901 conftest
$ac_exeext conftest.
$ac_ext
12903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905 #include <sys/wait.h>
12909 typedef void (*SIGRET)(int);
12910 SIGRET x = SIG_IGN;
12916 if ac_fn_c_try_link
"$LINENO"; then :
12918 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
12921 rm -f core conftest.err conftest.
$ac_objext \
12922 conftest
$ac_exeext conftest.
$ac_ext
12924 have_stat_type
=false
12925 have_stat_name
=false
12926 if test $have_stat_name = false
12928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930 #include <sys/stat.h>
12933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12934 $EGREP "[ ]st_mtimespec" >/dev
/null
2>&1; then :
12935 have_stat_name
=true
;
12937 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
12943 if test $have_stat_name = false
-a $target_os != darwin
-a $target_os != linux
-a $target_os != kfreebsd
-a $target_os != netbsd
12945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12947 #include <sys/stat.h>
12950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12951 $EGREP "[ ]st_mtime" >/dev
/null
2>&1; then :
12952 have_stat_name
=true
;
12954 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
12960 if test $have_stat_type = false
12962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <sys/stat.h>
12967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12968 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
12969 have_stat_type
=true
;
12971 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
12977 if test $have_stat_type = false
12979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 #include <sys/stat.h>
12984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12985 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
12986 have_stat_type
=true
;
12988 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
12994 if test $have_stat_type = false
12996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 #include <sys/stat.h>
13001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13002 $EGREP "timespec[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13003 have_stat_type
=true
;
13005 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13011 if test $have_stat_type = false
13013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015 #include <sys/stat.h>
13018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13019 $EGREP "time_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13020 have_stat_type
=true
;
13022 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13028 if test $have_stat_type = false
13030 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13031 rm -rf conftest conftest.
*
13036 pcp_etc_dir
=`eval echo $sysconfdir`
13037 pcp_etc_dir
=`eval echo $pcp_etc_dir`
13039 pcp_saslconf_dir
=`eval echo $sysconfdir/sasl2`
13040 pcp_saslconf_dir
=`eval echo $pcp_saslconf_dir`
13042 pcp_sysconf_dir
=`eval echo $sysconfdir/pcp`
13043 pcp_sysconf_dir
=`eval echo $pcp_sysconf_dir`
13045 pcp_pmcdconf_path
=$pcp_sysconf_dir/pmcd
/pmcd.conf
13046 pcp_pmcdrclocal_path
=$pcp_sysconf_dir/pmcd
/rc.
local
13047 pcp_pmcdoptions_path
=$pcp_sysconf_dir/pmcd
/pmcd.options
13048 pcp_pmwebdoptions_path
=$pcp_sysconf_dir/pmwebd
/pmwebd.options
13049 pcp_pmmgroptions_path
=$pcp_sysconf_dir/pmmgr
/pmmgr.options
13050 pcp_pmproxyoptions_path
=$pcp_sysconf_dir/pmproxy
/pmproxy.options
13051 pcp_pmiecontrol_path
=$pcp_sysconf_dir/pmie
/control
13052 pcp_pmsnapcontrol_path
=$pcp_sysconf_dir/pmsnap
/control
13053 pcp_pmloggercontrol_path
=$pcp_sysconf_dir/pmlogger
/control
13064 pcp_share_dir
=`eval echo $datarootdir/pcp`
13065 pcp_share_dir
=`eval echo $pcp_share_dir`
13068 pcp_binadm_dir
=`eval echo $libexecdir/pcp/bin`
13069 pcp_binadm_dir
=`eval echo $pcp_binadm_dir`
13072 pcp_var_dir
=`eval echo $localstatedir/lib/pcp`
13073 pcp_var_dir
=`eval echo $pcp_var_dir`
13077 # Check whether --with-configdir was given.
13078 if test "${with_configdir+set}" = set; then :
13079 withval
=$with_configdir; pcp_config_dir
=$withval
13081 pcp_config_dir
=$pcp_var_dir/config
13085 pcp_pmdas_dir
=$pcp_var_dir/pmdas
13088 pcp_lib_dir
=`eval echo $libdir`
13089 pcp_lib_dir
=`eval echo $pcp_lib_dir`
13090 pcp_lib32_dir
=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13095 # Check whether --with-perl_installdirs was given.
13096 if test "${with_perl_installdirs+set}" = set; then :
13097 withval
=$with_perl_installdirs; perl_installdirs
=$withval
13099 perl_installdirs
=vendor
13102 perl_installdirs
=`eval echo $perl_installdirs`
13103 perl_installdirs
=`eval echo $perl_installdirs`
13106 # Check whether --with-perl_install_base was given.
13107 if test "${with_perl_install_base+set}" = set; then :
13108 withval
=$with_perl_install_base; perl_install_base
=$withval
13110 perl_install_base
=$prefix
13113 perl_install_base
=`eval echo $perl_install_base`
13114 perl_install_base
=`eval echo $perl_install_base`
13118 # Check whether --with-python_prefix was given.
13119 if test "${with_python_prefix+set}" = set; then :
13120 withval
=$with_python_prefix; python_prefix
=$withval
13122 python_prefix
=$prefix
13125 python_prefix
=`eval echo $python_prefix`
13126 python_prefix
=`eval echo $python_prefix`
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13130 $as_echo_n "checking for X... " >&6; }
13133 # Check whether --with-x was given.
13134 if test "${with_x+set}" = set; then :
13138 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13139 if test "x$with_x" = xno
; then
13140 # The user explicitly disabled X.
13143 case $x_includes,$x_libraries in #(
13144 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
13145 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
13146 $as_echo_n "(cached) " >&6
13148 # One or both of the vars are not set, and there is no cached value.
13149 ac_x_includes
=no ac_x_libraries
=no
13150 rm -f -r conftest.dir
13151 if mkdir conftest.dir
; then
13153 cat >Imakefile
<<'_ACEOF'
13155 @echo incroot='${INCROOT}'
13157 @echo usrlibdir='${USRLIBDIR}'
13159 @echo libdir='${LIBDIR}'
13161 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13162 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13163 for ac_var
in incroot usrlibdir libdir
; do
13164 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13166 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13167 for ac_extension
in a so sl dylib la dll
; do
13168 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13169 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13170 ac_im_usrlibdir
=$ac_im_libdir; break
13173 # Screen out bogus values from the imake configuration. They are
13174 # bogus both because they are the default anyway, and because
13175 # using them would break gcc on systems where it needs fixed includes.
13176 case $ac_im_incroot in
13177 /usr
/include
) ac_x_includes
= ;;
13178 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13180 case $ac_im_usrlibdir in
13181 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13182 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13186 rm -f -r conftest.dir
13189 # Standard set of common directories for X headers.
13190 # Check X11 before X11Rn because it is often a symlink to the current release.
13204 /usr/local/X11/include
13205 /usr/local/X11R7/include
13206 /usr/local/X11R6/include
13207 /usr/local/X11R5/include
13208 /usr/local/X11R4/include
13210 /usr/local/include/X11
13211 /usr/local/include/X11R7
13212 /usr/local/include/X11R6
13213 /usr/local/include/X11R5
13214 /usr/local/include/X11R4
13218 /usr/XFree86/include/X11
13222 /usr/unsupported/include
13223 /usr/athena/include
13224 /usr/local/x11r5/include
13225 /usr/lpp/Xamples/include
13227 /usr/openwin/include
13228 /usr/openwin/share/include'
13230 if test "$ac_x_includes" = no
; then
13231 # Guess where to find include files, by looking for Xlib.h.
13232 # First, try using that file with no special directory specified.
13233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235 #include <X11/Xlib.h>
13237 if ac_fn_c_try_cpp
"$LINENO"; then :
13238 # We can compile using X headers with no special include directory.
13241 for ac_dir
in $ac_x_header_dirs; do
13242 if test -r "$ac_dir/X11/Xlib.h"; then
13243 ac_x_includes
=$ac_dir
13248 rm -f conftest.err conftest.i conftest.
$ac_ext
13249 fi # $ac_x_includes = no
13251 if test "$ac_x_libraries" = no
; then
13252 # Check for the libraries.
13253 # See if we find them without any special options.
13254 # Don't add to $LIBS permanently.
13257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 #include <X11/Xlib.h>
13268 if ac_fn_c_try_link
"$LINENO"; then :
13270 # We can link X programs with no special library path.
13274 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13276 # Don't even attempt the hair of trying to link an X program!
13277 for ac_extension
in a so sl dylib la dll
; do
13278 if test -r "$ac_dir/libX11.$ac_extension"; then
13279 ac_x_libraries
=$ac_dir
13285 rm -f core conftest.err conftest.
$ac_objext \
13286 conftest
$ac_exeext conftest.
$ac_ext
13287 fi # $ac_x_libraries = no
13289 case $ac_x_includes,$ac_x_libraries in #(
13290 no
,* |
*,no |
*\'*)
13291 # Didn't find X, or a directory has "'" in its name.
13292 ac_cv_have_x
="have_x=no";; #(
13294 # Record where we found X for the cache.
13295 ac_cv_have_x
="have_x=yes\
13296 ac_x_includes='$ac_x_includes'\
13297 ac_x_libraries='$ac_x_libraries'"
13303 eval "$ac_cv_have_x"
13306 if test "$have_x" != yes; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13308 $as_echo "$have_x" >&6; }
13311 # If each of the values was on the command line, it overrides each guess.
13312 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13313 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13314 # Update the cache value to reflect the command line values.
13315 ac_cv_have_x
="have_x=yes\
13316 ac_x_includes='$x_includes'\
13317 ac_x_libraries='$x_libraries'"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13319 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13322 if test "$no_x" = yes; then
13323 # Not all programs may use this symbol, but it does not hurt to define it.
13325 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13327 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
13329 if test -n "$x_includes"; then
13330 X_CFLAGS
="$X_CFLAGS -I$x_includes"
13333 # It would also be nice to do this for all -L options, not just this one.
13334 if test -n "$x_libraries"; then
13335 X_LIBS
="$X_LIBS -L$x_libraries"
13336 # For Solaris; some versions of Sun CC require a space after -R and
13337 # others require no space. Words are not sufficient . . . .
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13339 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13340 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
13341 ac_xsave_c_werror_flag
=$ac_c_werror_flag
13342 ac_c_werror_flag
=yes
13343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13354 if ac_fn_c_try_link
"$LINENO"; then :
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357 X_LIBS
="$X_LIBS -R$x_libraries"
13359 LIBS
="$ac_xsave_LIBS -R $x_libraries"
13360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13371 if ac_fn_c_try_link
"$LINENO"; then :
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373 $as_echo "yes" >&6; }
13374 X_LIBS
="$X_LIBS -R $x_libraries"
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13377 $as_echo "neither works" >&6; }
13379 rm -f core conftest.err conftest.
$ac_objext \
13380 conftest
$ac_exeext conftest.
$ac_ext
13382 rm -f core conftest.err conftest.
$ac_objext \
13383 conftest
$ac_exeext conftest.
$ac_ext
13384 ac_c_werror_flag
=$ac_xsave_c_werror_flag
13385 LIBS
=$ac_xsave_LIBS
13388 # Check for system-dependent libraries X programs must link with.
13389 # Do this before checking for the system-independent R6 libraries
13390 # (-lICE), since we may need -lsocket or whatever for X linking.
13392 if test "$ISC" = yes; then
13393 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
13395 # Martyn Johnson says this is needed for Ultrix, if the X
13396 # libraries were built with DECnet support. And Karl Berry says
13397 # the Alpha needs dnet_stub (dnet does not exist).
13398 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
13399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13402 /* Override any GCC internal prototype to avoid an error.
13403 Use char because int might match the return type of a GCC
13404 builtin and then its argument prototype would still apply. */
13408 char XOpenDisplay ();
13412 return XOpenDisplay ();
13417 if ac_fn_c_try_link
"$LINENO"; then :
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13421 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13422 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
13423 $as_echo_n "(cached) " >&6
13425 ac_check_lib_save_LIBS
=$LIBS
13426 LIBS
="-ldnet $LIBS"
13427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13440 return dnet_ntoa ();
13445 if ac_fn_c_try_link
"$LINENO"; then :
13446 ac_cv_lib_dnet_dnet_ntoa
=yes
13448 ac_cv_lib_dnet_dnet_ntoa
=no
13450 rm -f core conftest.err conftest.
$ac_objext \
13451 conftest
$ac_exeext conftest.
$ac_ext
13452 LIBS
=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13455 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13456 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
13457 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
13460 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13462 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13463 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
13464 $as_echo_n "(cached) " >&6
13466 ac_check_lib_save_LIBS
=$LIBS
13467 LIBS
="-ldnet_stub $LIBS"
13468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13471 /* Override any GCC internal prototype to avoid an error.
13472 Use char because int might match the return type of a GCC
13473 builtin and then its argument prototype would still apply. */
13481 return dnet_ntoa ();
13486 if ac_fn_c_try_link
"$LINENO"; then :
13487 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
13489 ac_cv_lib_dnet_stub_dnet_ntoa
=no
13491 rm -f core conftest.err conftest.
$ac_objext \
13492 conftest
$ac_exeext conftest.
$ac_ext
13493 LIBS
=$ac_check_lib_save_LIBS
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13496 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13497 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
13498 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
13503 rm -f core conftest.err conftest.
$ac_objext \
13504 conftest
$ac_exeext conftest.
$ac_ext
13505 LIBS
="$ac_xsave_LIBS"
13507 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13508 # to get the SysV transport functions.
13509 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13511 # The nsl library prevents programs from opening the X display
13512 # on Irix 5.2, according to T.E. Dickey.
13513 # The functions gethostbyname, getservbyname, and inet_addr are
13514 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13515 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13516 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
13520 if test $ac_cv_func_gethostbyname = no
; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13522 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13523 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
13524 $as_echo_n "(cached) " >&6
13526 ac_check_lib_save_LIBS
=$LIBS
13528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13531 /* Override any GCC internal prototype to avoid an error.
13532 Use char because int might match the return type of a GCC
13533 builtin and then its argument prototype would still apply. */
13537 char gethostbyname ();
13541 return gethostbyname ();
13546 if ac_fn_c_try_link
"$LINENO"; then :
13547 ac_cv_lib_nsl_gethostbyname
=yes
13549 ac_cv_lib_nsl_gethostbyname
=no
13551 rm -f core conftest.err conftest.
$ac_objext \
13552 conftest
$ac_exeext conftest.
$ac_ext
13553 LIBS
=$ac_check_lib_save_LIBS
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13556 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13557 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
13558 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
13561 if test $ac_cv_lib_nsl_gethostbyname = no
; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13563 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13564 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
13565 $as_echo_n "(cached) " >&6
13567 ac_check_lib_save_LIBS
=$LIBS
13569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13572 /* Override any GCC internal prototype to avoid an error.
13573 Use char because int might match the return type of a GCC
13574 builtin and then its argument prototype would still apply. */
13578 char gethostbyname ();
13582 return gethostbyname ();
13587 if ac_fn_c_try_link
"$LINENO"; then :
13588 ac_cv_lib_bsd_gethostbyname
=yes
13590 ac_cv_lib_bsd_gethostbyname
=no
13592 rm -f core conftest.err conftest.
$ac_objext \
13593 conftest
$ac_exeext conftest.
$ac_ext
13594 LIBS
=$ac_check_lib_save_LIBS
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13597 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13598 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
13599 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
13605 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13606 # socket/setsockopt and other routines are undefined under SCO ODT
13607 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13608 # on later versions), says Simon Leinen: it contains gethostby*
13609 # variants that don't use the name server (or something). -lsocket
13610 # must be given before -lnsl if both are needed. We assume that
13611 # if connect needs -lnsl, so does gethostbyname.
13612 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
13613 if test "x$ac_cv_func_connect" = xyes
; then :
13617 if test $ac_cv_func_connect = no
; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13619 $as_echo_n "checking for connect in -lsocket... " >&6; }
13620 if ${ac_cv_lib_socket_connect+:} false
; then :
13621 $as_echo_n "(cached) " >&6
13623 ac_check_lib_save_LIBS
=$LIBS
13624 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
13625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13628 /* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
13643 if ac_fn_c_try_link
"$LINENO"; then :
13644 ac_cv_lib_socket_connect
=yes
13646 ac_cv_lib_socket_connect
=no
13648 rm -f core conftest.err conftest.
$ac_objext \
13649 conftest
$ac_exeext conftest.
$ac_ext
13650 LIBS
=$ac_check_lib_save_LIBS
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13653 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13654 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
13655 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
13660 # Guillermo Gomez says -lposix is necessary on A/UX.
13661 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
13662 if test "x$ac_cv_func_remove" = xyes
; then :
13666 if test $ac_cv_func_remove = no
; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13668 $as_echo_n "checking for remove in -lposix... " >&6; }
13669 if ${ac_cv_lib_posix_remove+:} false
; then :
13670 $as_echo_n "(cached) " >&6
13672 ac_check_lib_save_LIBS
=$LIBS
13673 LIBS
="-lposix $LIBS"
13674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13677 /* Override any GCC internal prototype to avoid an error.
13678 Use char because int might match the return type of a GCC
13679 builtin and then its argument prototype would still apply. */
13692 if ac_fn_c_try_link
"$LINENO"; then :
13693 ac_cv_lib_posix_remove
=yes
13695 ac_cv_lib_posix_remove
=no
13697 rm -f core conftest.err conftest.
$ac_objext \
13698 conftest
$ac_exeext conftest.
$ac_ext
13699 LIBS
=$ac_check_lib_save_LIBS
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13702 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13703 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
13704 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
13709 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13710 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
13711 if test "x$ac_cv_func_shmat" = xyes
; then :
13715 if test $ac_cv_func_shmat = no
; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13717 $as_echo_n "checking for shmat in -lipc... " >&6; }
13718 if ${ac_cv_lib_ipc_shmat+:} false
; then :
13719 $as_echo_n "(cached) " >&6
13721 ac_check_lib_save_LIBS
=$LIBS
13723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13726 /* Override any GCC internal prototype to avoid an error.
13727 Use char because int might match the return type of a GCC
13728 builtin and then its argument prototype would still apply. */
13741 if ac_fn_c_try_link
"$LINENO"; then :
13742 ac_cv_lib_ipc_shmat
=yes
13744 ac_cv_lib_ipc_shmat
=no
13746 rm -f core conftest.err conftest.
$ac_objext \
13747 conftest
$ac_exeext conftest.
$ac_ext
13748 LIBS
=$ac_check_lib_save_LIBS
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13751 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13752 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
13753 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
13759 # Check for libraries that X11R6 Xt/Xaw programs need.
13760 ac_save_LDFLAGS
=$LDFLAGS
13761 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
13762 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13763 # check for ICE first), but we must link in the order -lSM -lICE or
13764 # we get undefined symbols. So assume we have SM if we have ICE.
13765 # These have to be linked with before -lX11, unlike the other
13766 # libraries we check for below, so use a different variable.
13767 # John Interrante, Karl Berry
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13769 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13770 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
13771 $as_echo_n "(cached) " >&6
13773 ac_check_lib_save_LIBS
=$LIBS
13774 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
13775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13778 /* Override any GCC internal prototype to avoid an error.
13779 Use char because int might match the return type of a GCC
13780 builtin and then its argument prototype would still apply. */
13784 char IceConnectionNumber ();
13788 return IceConnectionNumber ();
13793 if ac_fn_c_try_link
"$LINENO"; then :
13794 ac_cv_lib_ICE_IceConnectionNumber
=yes
13796 ac_cv_lib_ICE_IceConnectionNumber
=no
13798 rm -f core conftest.err conftest.
$ac_objext \
13799 conftest
$ac_exeext conftest.
$ac_ext
13800 LIBS
=$ac_check_lib_save_LIBS
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13803 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13804 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
13805 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
13808 LDFLAGS
=$ac_save_LDFLAGS
13812 pcp_x11_incflags
=$X_CFLAGS
13814 pcp_x11_libflags
=$X_LIBS
13816 pcp_x11_extra
=$X_EXTRA_LIBS
13818 pcp_x11_pre
=$X_PRE_LIBS
13821 have_gzipped_manpages
=false
13822 have_bzip2ed_manpages
=false
13823 have_lzmaed_manpages
=false
13824 have_xzed_manpages
=false
13825 need_old_tbl_header
=false
13827 pcp_man_dir
=`eval echo $mandir`
13828 pcp_man_dir
=`eval echo $pcp_man_dir`
13830 for d
in /usr
/man
/usr
/share
/man
$pcp_man_dir
13832 for sd
in man1 sman1
13834 if test -f $d/$sd/man
.1.gz
13836 have_gzipped_manpages
=true
13837 man_header
=`$ZIP -d < $d/$sd/man.1.gz | head -1`
13839 elif test -f $d/$sd/man
.1.bz2
13841 have_bzip2ed_manpages
=true
13842 man_header
=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
13844 elif test -f $d/$sd/man
.1.lzma
13846 have_lzmaed_manpages
=true
13847 man_header
=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
13849 elif test -f $d/$sd/man
.1.xz
13851 have_xzed_manpages
=true
13852 man_header
=`$XZ -d < $d/$sd/man.1.xz | head -1`
13854 elif test -f $d/$sd/man
.1
13856 man_header
=`head -1 $d/$sd/man.1`
13861 if test x
"$man_header" = "x'\\\" t" -o x
"$man_header" = "x'\\\" te" ; then
13862 need_old_tbl_header
=true
13871 pcp_bin_dir
=`eval echo $bindir`
13872 pcp_bin_dir
=`eval echo $pcp_bin_dir`
13875 pcp_sbin_dir
=`eval echo $sbindir`
13876 pcp_sbin_dir
=`eval echo $pcp_sbin_dir`
13879 pcp_inc_dir
=`eval echo $includedir/pcp`
13880 pcp_inc_dir
=`eval echo $pcp_inc_dir`
13883 if test $target_os = linux
; then
13884 pcp_books_dir
=`eval echo $datarootdir/doc/pcp-doc`
13886 pcp_books_dir
=`eval echo $datarootdir/doc/pcp`
13888 pcp_books_dir
=`eval echo $pcp_books_dir`
13889 pcp_html_dir
=`eval echo $pcp_books_dir/html`
13893 if test $target_os = linux
; then
13894 pcp_icons_dir
=`eval echo $datarootdir/pcp-gui/pixmaps`
13896 pcp_icons_dir
=`eval echo $datarootdir/pcp/pixmaps`
13898 pcp_icons_dir
=`eval echo $pcp_icons_dir`
13901 pcp_desktop_dir
=`eval echo $datarootdir/applications`
13902 pcp_desktop_dir
=`eval echo $pcp_desktop_dir`
13906 # Check whether --with-rcdir was given.
13907 if test "${with_rcdir+set}" = set; then :
13908 withval
=$with_rcdir; pcp_rc_dir
=$withval
13913 pcp_rc_dir
="$pcp_share_dir/lib"
13915 pcp_rc_dir
="$pcp_etc_dir/init.d"
13922 # Check whether --with-sysconfigdir was given.
13923 if test "${with_sysconfigdir+set}" = set; then :
13924 withval
=$with_sysconfigdir; pcp_sysconfig_dir
=$withval
13926 pcp_sysconfig_dir
=$pcp_etc_dir/sysconfig
13932 # Check whether --with-logdir was given.
13933 if test "${with_logdir+set}" = set; then :
13934 withval
=$with_logdir; pcp_log_dir
=$withval
13936 pcp_log_dir
=$localstatedir/log
/pcp
13939 pcp_log_dir
=`eval echo $pcp_log_dir`
13940 pcp_log_dir
=`eval echo $pcp_log_dir`
13944 # Check whether --with-rundir was given.
13945 if test "${with_rundir+set}" = set; then :
13946 withval
=$with_rundir; pcp_run_dir
=$withval
13948 pcp_run_dir
=$localstatedir/run
/pcp
13951 pcp_run_dir
=`eval echo $pcp_run_dir`
13952 pcp_run_dir
=`eval echo $pcp_run_dir`
13956 # Check whether --with-tmpdir was given.
13957 if test "${with_tmpdir+set}" = set; then :
13958 withval
=$with_tmpdir; pcp_tmpfile_dir
=$withval
13960 pcp_tmpfile_dir
=$localstatedir/tmp
13963 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
13964 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
13967 pcp_tmp_dir
=`eval echo $pcp_var_dir/tmp`
13971 # Check whether --with-docdir was given.
13972 if test "${with_docdir+set}" = set; then :
13973 withval
=$with_docdir; pcp_doc_dir
=$withval
13975 PACKAGE
=pcp-
${PACKAGE_VERSION}; pcp_doc_dir
=$docdir
13978 pcp_doc_dir
=`eval echo $pcp_doc_dir`
13979 pcp_doc_dir
=`eval echo $pcp_doc_dir`
13983 # Check whether --with-demosdir was given.
13984 if test "${with_demosdir+set}" = set; then :
13985 withval
=$with_demosdir; pcp_demos_dir
=$withval
13987 pcp_demos_dir
=$pcp_share_dir/demos
13992 if test -z "$XCONFIRM"
13994 # Extract the first word of "xconfirm", so it can be a program name with args.
13995 set dummy xconfirm
; ac_word
=$2
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13997 $as_echo_n "checking for $ac_word... " >&6; }
13998 if ${ac_cv_path_ac_xconfirm_prog+:} false
; then :
13999 $as_echo_n "(cached) " >&6
14001 case $ac_xconfirm_prog in
14003 ac_cv_path_ac_xconfirm_prog
="$ac_xconfirm_prog" # Let the user override the test with a path.
14006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14007 for as_dir
in $PATH
14010 test -z "$as_dir" && as_dir
=.
14011 for ac_exec_ext
in '' $ac_executable_extensions; do
14012 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14013 ac_cv_path_ac_xconfirm_prog
="$as_dir/$ac_word$ac_exec_ext"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14021 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog
="$pcp_bin_dir/pmconfirm"
14025 ac_xconfirm_prog
=$ac_cv_path_ac_xconfirm_prog
14026 if test -n "$ac_xconfirm_prog"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14028 $as_echo "$ac_xconfirm_prog" >&6; }
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14036 ac_xconfirm_prog
=$XCONFIRM
14040 if test "$ac_cv_header_fcntl_h" = "yes"
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14043 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14055 if ac_fn_c_try_compile
"$LINENO"; then :
14057 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14060 $as_echo "yes" >&6; }
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14063 $as_echo "no" >&6; }
14065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14068 if test "$ac_cv_header_libzfs_h" = "yes"
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14071 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14074 #include <libzfs.h>
14078 libzfs_handle_t *zh;
14079 zpool_handle_t *zp;
14081 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14087 if ac_fn_c_try_compile
"$LINENO"; then :
14089 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14092 $as_echo "yes" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14100 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103 #include <libzfs.h>
14107 libzfs_handle_t *zh;
14108 zpool_handle_t *zp;
14110 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14116 if ac_fn_c_try_compile
"$LINENO"; then :
14118 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14121 $as_echo "yes" >&6; }
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14129 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14133 saved_CFLAGS
="$CFLAGS"
14134 saved_CPPFLAGS
="$CPPFLAGS"
14135 NSS_INC_DIRS
="-I/usr/include/nss -I/usr/include/nss3"
14136 NSPR_INC_DIRS
="-I/usr/include/nspr -I/usr/include/nspr4"
14137 CFLAGS
="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14138 CPPFLAGS
="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14140 for ac_header
in nss
/nss.h
14142 ac_fn_c_check_header_mongrel
"$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14143 if test "x$ac_cv_header_nss_nss_h" = xyes
; then :
14144 cat >>confdefs.h
<<_ACEOF
14145 #define HAVE_NSS_NSS_H 1
14147 NSSCFLAGS
=-I/usr
/include
/nss
14150 for ac_header
in nss
3/nss.h
14152 ac_fn_c_check_header_mongrel
"$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14153 if test "x$ac_cv_header_nss3_nss_h" = xyes
; then :
14154 cat >>confdefs.h
<<_ACEOF
14155 #define HAVE_NSS3_NSS_H 1
14157 NSSCFLAGS
=-I/usr
/include
/nss3
14160 enable_secure
=false
14161 if test "$do_secure" = "yes"
14163 as_fn_error $?
"cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14177 for ac_header
in nspr
/nspr.h
14179 ac_fn_c_check_header_mongrel
"$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14180 if test "x$ac_cv_header_nspr_nspr_h" = xyes
; then :
14181 cat >>confdefs.h
<<_ACEOF
14182 #define HAVE_NSPR_NSPR_H 1
14184 NSPRCFLAGS
=-I/usr
/include
/nspr
14187 for ac_header
in nspr
4/nspr.h
14189 ac_fn_c_check_header_mongrel
"$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14190 if test "x$ac_cv_header_nspr4_nspr_h" = xyes
; then :
14191 cat >>confdefs.h
<<_ACEOF
14192 #define HAVE_NSPR4_NSPR_H 1
14194 NSPRCFLAGS
=-I/usr
/include
/nspr4
14197 enable_secure
=false
14198 if test "$do_secure" = "yes"
14200 as_fn_error $?
"cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14214 for ac_header
in sasl
/sasl.h
14216 ac_fn_c_check_header_mongrel
"$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14217 if test "x$ac_cv_header_sasl_sasl_h" = xyes
; then :
14218 cat >>confdefs.h
<<_ACEOF
14219 #define HAVE_SASL_SASL_H 1
14221 SASLCFLAGS
=-I/usr
/include
/sasl
14224 enable_secure
=false
14225 if test "$do_secure" = "yes"
14227 as_fn_error $?
"cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14237 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14238 if ${ac_cv_lib_sasl2_sasl_server_init+:} false
; then :
14239 $as_echo_n "(cached) " >&6
14241 ac_check_lib_save_LIBS
=$LIBS
14242 LIBS
="-lsasl2 $LIBS"
14243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14252 char sasl_server_init ();
14256 return sasl_server_init ();
14261 if ac_fn_c_try_link
"$LINENO"; then :
14262 ac_cv_lib_sasl2_sasl_server_init
=yes
14264 ac_cv_lib_sasl2_sasl_server_init
=no
14266 rm -f core conftest.err conftest.
$ac_objext \
14267 conftest
$ac_exeext conftest.
$ac_ext
14268 LIBS
=$ac_check_lib_save_LIBS
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14271 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14272 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes
; then :
14273 lib_for_sasl
="-lsasl2"
14276 enable_secure
=false
14277 if test "$do_secure" = "yes"
14279 as_fn_error $?
"cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14287 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14288 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false
; then :
14289 $as_echo_n "(cached) " >&6
14291 ac_check_lib_save_LIBS
=$LIBS
14293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14296 /* Override any GCC internal prototype to avoid an error.
14297 Use char because int might match the return type of a GCC
14298 builtin and then its argument prototype would still apply. */
14302 char SSL_ImportFD ();
14306 return SSL_ImportFD ();
14311 if ac_fn_c_try_link
"$LINENO"; then :
14312 ac_cv_lib_ssl_SSL_ImportFD
=yes
14314 ac_cv_lib_ssl_SSL_ImportFD
=no
14316 rm -f core conftest.err conftest.
$ac_objext \
14317 conftest
$ac_exeext conftest.
$ac_ext
14318 LIBS
=$ac_check_lib_save_LIBS
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14321 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14322 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes
; then :
14323 lib_for_ssl
="-lssl"
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14327 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14328 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false
; then :
14329 $as_echo_n "(cached) " >&6
14331 ac_check_lib_save_LIBS
=$LIBS
14332 LIBS
="-lssl3 $LIBS"
14333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14336 /* Override any GCC internal prototype to avoid an error.
14337 Use char because int might match the return type of a GCC
14338 builtin and then its argument prototype would still apply. */
14342 char SSL_ImportFD ();
14346 return SSL_ImportFD ();
14351 if ac_fn_c_try_link
"$LINENO"; then :
14352 ac_cv_lib_ssl3_SSL_ImportFD
=yes
14354 ac_cv_lib_ssl3_SSL_ImportFD
=no
14356 rm -f core conftest.err conftest.
$ac_objext \
14357 conftest
$ac_exeext conftest.
$ac_ext
14358 LIBS
=$ac_check_lib_save_LIBS
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14361 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14362 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes
; then :
14363 lib_for_ssl
="-lssl3"
14366 enable_secure
=false
14367 if test "$do_secure" = "yes"
14369 as_fn_error $?
"cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14380 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14381 if ${ac_cv_lib_nss_NSS_Init+:} false
; then :
14382 $as_echo_n "(cached) " >&6
14384 ac_check_lib_save_LIBS
=$LIBS
14386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14389 /* Override any GCC internal prototype to avoid an error.
14390 Use char because int might match the return type of a GCC
14391 builtin and then its argument prototype would still apply. */
14399 return NSS_Init ();
14404 if ac_fn_c_try_link
"$LINENO"; then :
14405 ac_cv_lib_nss_NSS_Init
=yes
14407 ac_cv_lib_nss_NSS_Init
=no
14409 rm -f core conftest.err conftest.
$ac_objext \
14410 conftest
$ac_exeext conftest.
$ac_ext
14411 LIBS
=$ac_check_lib_save_LIBS
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14414 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14415 if test "x$ac_cv_lib_nss_NSS_Init" = xyes
; then :
14416 lib_for_nss
="-lnss"
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14420 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14421 if ${ac_cv_lib_nss3_NSS_Init+:} false
; then :
14422 $as_echo_n "(cached) " >&6
14424 ac_check_lib_save_LIBS
=$LIBS
14425 LIBS
="-lnss3 $LIBS"
14426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14429 /* Override any GCC internal prototype to avoid an error.
14430 Use char because int might match the return type of a GCC
14431 builtin and then its argument prototype would still apply. */
14439 return NSS_Init ();
14444 if ac_fn_c_try_link
"$LINENO"; then :
14445 ac_cv_lib_nss3_NSS_Init
=yes
14447 ac_cv_lib_nss3_NSS_Init
=no
14449 rm -f core conftest.err conftest.
$ac_objext \
14450 conftest
$ac_exeext conftest.
$ac_ext
14451 LIBS
=$ac_check_lib_save_LIBS
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14454 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14455 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes
; then :
14456 lib_for_nss
="-lnss3"
14459 enable_secure
=false
14460 if test "$do_secure" = "yes"
14462 as_fn_error $?
"cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14473 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14474 if ${ac_cv_lib_nspr_PR_Init+:} false
; then :
14475 $as_echo_n "(cached) " >&6
14477 ac_check_lib_save_LIBS
=$LIBS
14478 LIBS
="-lnspr $LIBS"
14479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14482 /* Override any GCC internal prototype to avoid an error.
14483 Use char because int might match the return type of a GCC
14484 builtin and then its argument prototype would still apply. */
14497 if ac_fn_c_try_link
"$LINENO"; then :
14498 ac_cv_lib_nspr_PR_Init
=yes
14500 ac_cv_lib_nspr_PR_Init
=no
14502 rm -f core conftest.err conftest.
$ac_objext \
14503 conftest
$ac_exeext conftest.
$ac_ext
14504 LIBS
=$ac_check_lib_save_LIBS
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14507 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14508 if test "x$ac_cv_lib_nspr_PR_Init" = xyes
; then :
14509 lib_for_nspr
="-lnspr"
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14513 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14514 if ${ac_cv_lib_nspr4_PR_Init+:} false
; then :
14515 $as_echo_n "(cached) " >&6
14517 ac_check_lib_save_LIBS
=$LIBS
14518 LIBS
="-lnspr4 $LIBS"
14519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14522 /* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14537 if ac_fn_c_try_link
"$LINENO"; then :
14538 ac_cv_lib_nspr4_PR_Init
=yes
14540 ac_cv_lib_nspr4_PR_Init
=no
14542 rm -f core conftest.err conftest.
$ac_objext \
14543 conftest
$ac_exeext conftest.
$ac_ext
14544 LIBS
=$ac_check_lib_save_LIBS
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14547 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14548 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes
; then :
14549 lib_for_nspr
="-lnspr4"
14552 enable_secure
=false
14553 if test "$do_secure" = "yes"
14555 as_fn_error $?
"cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14565 if test "$enable_secure" = "true"
14568 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14573 CPPFLAGS
="$saved_CPPFLAGS"
14574 CFLAGS
="$saved_CFLAGS"
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14578 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14579 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false
; then :
14580 $as_echo_n "(cached) " >&6
14582 ac_check_lib_save_LIBS
=$LIBS
14583 LIBS
="-latomic $LIBS"
14584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14587 /* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14593 char __atomic_fetch_add_4 ();
14597 return __atomic_fetch_add_4 ();
14602 if ac_fn_c_try_link
"$LINENO"; then :
14603 ac_cv_lib_atomic___atomic_fetch_add_4
=yes
14605 ac_cv_lib_atomic___atomic_fetch_add_4
=no
14607 rm -f core conftest.err conftest.
$ac_objext \
14608 conftest
$ac_exeext conftest.
$ac_ext
14609 LIBS
=$ac_check_lib_save_LIBS
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14612 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14613 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes
; then :
14614 lib_for_atomic
="-latomic"
14619 if test -f /usr
/include
/sn
/arsess.h
14621 pcp_mpi_dirs
=libpcp_mpi\ libpcp_mpiread
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14628 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14632 #include <sys/types.h>
14633 #ifdef HAVE_SYS_SOCKET_H
14634 #include <sys/socket.h>
14636 #ifdef HAVE_SYS_UN_H
14637 #include <sys/un.h>
14643 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14648 if ac_fn_c_try_compile
"$LINENO"; then :
14650 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 $as_echo "yes" >&6; }
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }
14657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14660 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14664 #include <sys/types.h>
14665 #ifdef HAVE_SYS_SOCKET_H
14666 #include <sys/socket.h>
14668 #ifdef HAVE_SYS_UN_H
14669 #include <sys/un.h>
14675 struct ucred ucred; ucred.uid = 0;
14680 if ac_fn_c_try_compile
"$LINENO"; then :
14682 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14684 $as_echo "yes" >&6; }
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14687 $as_echo "no" >&6; }
14689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14692 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14701 struct timespec foo;
14706 if ac_fn_c_try_compile
"$LINENO"; then :
14708 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14710 $as_echo "yes" >&6; }
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
14718 $as_echo_n "checking for altzone in time.h... " >&6; }
14719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14727 time_t az = altzone;
14732 if ac_fn_c_try_compile
"$LINENO"; then :
14734 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14736 $as_echo "yes" >&6; }
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14739 $as_echo "no" >&6; }
14741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
14744 $as_echo_n "checking if strftime knows about %z... " >&6; }
14745 if test "$cross_compiling" = yes; then :
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14755 time_t t = time(NULL);
14756 struct tm * t1 = localtime (&t);
14757 if (strftime (b, 32, "%z", t1) < 3)
14759 if (strcmp(b, "%z") == 0)
14765 if ac_fn_c_try_run
"$LINENO"; then :
14767 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14769 $as_echo "yes" >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14774 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14775 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
14780 $as_echo_n "checking if strerror_r returns char *... " >&6; }
14781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14783 #include <string.h>
14787 strerror_r(0, NULL, 0)[0];
14792 if ac_fn_c_try_compile
"$LINENO"; then :
14794 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14796 $as_echo "yes" >&6; }
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799 $as_echo "no" >&6; }
14801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14807 ac_fn_c_check_func
"$LINENO" "readline" "ac_cv_func_readline"
14808 if test "x$ac_cv_func_readline" = xyes
; then :
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14813 $as_echo_n "checking for readline in -lreadline... " >&6; }
14814 if ${ac_cv_lib_readline_readline+:} false
; then :
14815 $as_echo_n "(cached) " >&6
14817 ac_check_lib_save_LIBS
=$LIBS
14818 LIBS
="-lreadline $LIBS"
14819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14832 return readline ();
14837 if ac_fn_c_try_link
"$LINENO"; then :
14838 ac_cv_lib_readline_readline
=yes
14840 ac_cv_lib_readline_readline
=no
14842 rm -f core conftest.err conftest.
$ac_objext \
14843 conftest
$ac_exeext conftest.
$ac_ext
14844 LIBS
=$ac_check_lib_save_LIBS
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14847 $as_echo "$ac_cv_lib_readline_readline" >&6; }
14848 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
14849 cat >>confdefs.h
<<_ACEOF
14850 #define HAVE_LIBREADLINE 1
14853 LIBS
="-lreadline $LIBS"
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
14858 $as_echo_n "checking for add_history in -lreadline... " >&6; }
14859 if ${ac_cv_lib_readline_add_history+:} false
; then :
14860 $as_echo_n "(cached) " >&6
14862 ac_check_lib_save_LIBS
=$LIBS
14863 LIBS
="-lreadline -lcurses $LIBS"
14864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14867 /* Override any GCC internal prototype to avoid an error.
14868 Use char because int might match the return type of a GCC
14869 builtin and then its argument prototype would still apply. */
14873 char add_history ();
14877 return add_history ();
14882 if ac_fn_c_try_link
"$LINENO"; then :
14883 ac_cv_lib_readline_add_history
=yes
14885 ac_cv_lib_readline_add_history
=no
14887 rm -f core conftest.err conftest.
$ac_objext \
14888 conftest
$ac_exeext conftest.
$ac_ext
14889 LIBS
=$ac_check_lib_save_LIBS
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
14892 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
14893 if test "x$ac_cv_lib_readline_add_history" = xyes
; then :
14894 cat >>confdefs.h
<<_ACEOF
14895 #define HAVE_LIBREADLINE 1
14898 LIBS
="-lreadline $LIBS"
14908 if test $ac_cv_func_readline = yes
14911 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14913 elif test $ac_cv_lib_readline_readline = yes
14916 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14918 lib_for_readline
=-lreadline
14919 elif test $ac_cv_lib_readline_add_history = yes
14922 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14924 lib_for_curses
=-lcurses
14925 lib_for_readline
=-lreadline
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14934 $as_echo_n "checking for zlib... " >&6; }
14936 if test -n "$zlib_CFLAGS"; then
14937 pkg_cv_zlib_CFLAGS
="$zlib_CFLAGS"
14938 elif test -n "$PKG_CONFIG"; then
14939 if test -n "$PKG_CONFIG" && \
14940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
14941 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
14943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14944 test $ac_status = 0; }; then
14945 pkg_cv_zlib_CFLAGS
=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
14946 test "x$?" != "x0" && pkg_failed
=yes
14953 if test -n "$zlib_LIBS"; then
14954 pkg_cv_zlib_LIBS
="$zlib_LIBS"
14955 elif test -n "$PKG_CONFIG"; then
14956 if test -n "$PKG_CONFIG" && \
14957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
14958 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
14960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14961 test $ac_status = 0; }; then
14962 pkg_cv_zlib_LIBS
=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
14963 test "x$?" != "x0" && pkg_failed
=yes
14973 if test $pkg_failed = yes; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975 $as_echo "no" >&6; }
14977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14978 _pkg_short_errors_supported
=yes
14980 _pkg_short_errors_supported
=no
14982 if test $_pkg_short_errors_supported = yes; then
14983 zlib_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
14985 zlib_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
14987 # Put the nasty error message in config.log where it belongs
14988 echo "$zlib_PKG_ERRORS" >&5
14991 elif test $pkg_failed = untried
; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 $as_echo "no" >&6; }
14996 zlib_CFLAGS
=$pkg_cv_zlib_CFLAGS
14997 zlib_LIBS
=$pkg_cv_zlib_LIBS
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14999 $as_echo "yes" >&6; }
15002 HAVE_ZLIB
=$have_zlib
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15006 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15011 int test = AI_ADDRCONFIG;
15022 if ac_fn_c_try_compile
"$LINENO"; then :
15024 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15026 $as_echo "yes" >&6; }
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 $as_echo "no" >&6; }
15031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15035 if test -f .
/build
/tar
/vector.
tar.gz
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15038 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15044 if test -f .
/build
/tar
/webjs.
tar.gz
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15047 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15055 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"
15057 cat >confcache
<<\_ACEOF
15058 # This file is a shell script that caches the results of configure
15059 # tests run on this system so they can be shared between configure
15060 # scripts and configure runs, see configure's option --config-cache.
15061 # It is not useful on other systems. If it contains results you don't
15062 # want to keep, you may remove or edit it.
15064 # config.status only pays attention to the cache file if you give it
15065 # the --recheck option to rerun configure.
15067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15069 # following values.
15073 # The following way of writing the cache mishandles newlines in values,
15074 # but we know of no workaround that is simple, portable, and efficient.
15075 # So, we kill variables containing newlines.
15076 # Ultrix sh set writes to stderr and can't be redirected directly,
15077 # and sets the high bit in the cache file unless we assign to the vars.
15079 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15080 eval ac_val
=\$
$ac_var
15084 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15088 _ | IFS | as_nl
) ;; #(
15089 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15090 *) { eval $ac_var=; unset $ac_var;} ;;
15096 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15097 *${as_nl}ac_space
=\
*)
15098 # `set' does not quote correctly, so add quotes: double-quote
15099 # substitution turns \\\\ into \\, and sed turns \\ into \.
15102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15105 # `set' quotes correctly as required by POSIX, so do not add quotes.
15106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15115 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15117 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15119 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15120 if test -w "$cache_file"; then
15121 if test "x$cache_file" != "x/dev/null"; then
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15123 $as_echo "$as_me: updating cache $cache_file" >&6;}
15124 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15125 cat confcache
>"$cache_file"
15127 case $cache_file in #(
15129 mv -f confcache
"$cache_file"$$
&&
15130 mv -f "$cache_file"$$
"$cache_file" ;; #(
15132 mv -f confcache
"$cache_file" ;;
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15138 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15143 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15144 # Let make expand exec_prefix.
15145 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15147 DEFS
=-DHAVE_CONFIG_H
15152 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15153 # 1. Remove the extension, and $U if already installed.
15154 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15155 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15156 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15157 # will be set to the directory where LIBOBJS objects are built.
15158 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15159 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15161 LIBOBJS
=$ac_libobjs
15163 LTLIBOBJS
=$ac_ltlibobjs
15167 : "${CONFIG_STATUS=./config.status}"
15169 ac_clean_files_save
=$ac_clean_files
15170 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15172 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15174 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15176 # Generated by $as_me.
15177 # Run this file to recreate the current configuration.
15178 # Compiler output produced by configure, useful for debugging
15179 # configure, is in config.log if it exists.
15182 ac_cs_recheck=false
15185 SHELL=\${CONFIG_SHELL-$SHELL}
15188 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15189 ## -------------------- ##
15190 ## M4sh Initialization. ##
15191 ## -------------------- ##
15193 # Be more Bourne compatible
15194 DUALCASE
=1; export DUALCASE
# for MKS sh
15195 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15198 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15199 # is contrary to our usage. Disable this feature.
15200 alias -g '${1+"$@"}'='"$@"'
15201 setopt NO_GLOB_SUBST
15203 case `(set -o) 2>/dev/null` in #(
15215 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15216 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15217 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15219 # Prefer a ksh shell builtin over an external printf program on Solaris,
15220 # but without wasting forks for bash or zsh.
15221 if test -z "$BASH_VERSION$ZSH_VERSION" \
15222 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15223 as_echo='print
-r --'
15224 as_echo_n='print
-rn --'
15225 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15226 as_echo='printf %s
\n'
15227 as_echo_n='printf %s
'
15229 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15230 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15231 as_echo_n='/usr
/ucb
/echo -n'
15233 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15234 as_echo_n_body='eval
15238 expr "X$arg" : "X\\(.*\\)$as_nl";
15239 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15241 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15243 export as_echo_n_body
15244 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15246 export as_echo_body
15247 as_echo='sh
-c $as_echo_body as_echo
'
15250 # The user is always right.
15251 if test "${PATH_SEPARATOR+set}" != set; then
15253 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15254 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15261 # We need space, tab and new line, in precisely that order. Quoting is
15262 # there to prevent editors from complaining about space-tab.
15263 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15264 # splitting by setting IFS to empty value.)
15267 # Find who we are. Look in the path if we contain no directory separator.
15270 *[\\/]* ) as_myself=$0 ;;
15271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272 for as_dir in $PATH
15275 test -z "$as_dir" && as_dir=.
15276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15282 # We did not find ourselves, most probably we were run as `sh COMMAND'
15283 # in which case we are not to be found in the path.
15284 if test "x$as_myself" = x
; then
15287 if test ! -f "$as_myself"; then
15288 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15292 # Unset variables that we do not need and which cause bugs (e.g. in
15293 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15294 # suppresses any "Segmentation fault" message there. '((' could
15295 # trigger a bug in pdksh 5.2.14.
15296 for as_var
in BASH_ENV ENV MAIL MAILPATH
15297 do eval test x\
${$as_var+set} = xset \
15298 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15311 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15314 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15315 # ----------------------------------------
15316 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15317 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15318 # script with STATUS, using 1 if that was 0.
15321 as_status
=$1; test $as_status -eq 0 && as_status
=1
15323 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15324 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15326 $as_echo "$as_me: error: $2" >&2
15327 as_fn_exit
$as_status
15331 # as_fn_set_status STATUS
15332 # -----------------------
15333 # Set $? to STATUS, without forking.
15334 as_fn_set_status
()
15337 } # as_fn_set_status
15339 # as_fn_exit STATUS
15340 # -----------------
15341 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15345 as_fn_set_status
$1
15351 # Portably unset VAR.
15354 { eval $1=; unset $1;}
15356 as_unset
=as_fn_unset
15357 # as_fn_append VAR VALUE
15358 # ----------------------
15359 # Append the text in VALUE to the end of the definition contained in VAR. Take
15360 # advantage of any shell optimizations that allow amortized linear growth over
15361 # repeated appends, instead of the typical quadratic growth present in naive
15363 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15364 eval 'as_fn_append ()
15375 # as_fn_arith ARG...
15376 # ------------------
15377 # Perform arithmetic evaluation on the ARGs, and store the result in the
15378 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15379 # must be portable across $(()) and expr.
15380 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15381 eval 'as_fn_arith ()
15388 as_val
=`expr "$@" || test $? -eq 1`
15393 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15394 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15400 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15401 as_basename
=basename
15406 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15412 as_me
=`$as_basename -- "$0" ||
15413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15414 X"$0" : 'X\(//\)$' \| \
15415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15417 sed '/^.*\/\([^/][^/]*\)\/*$/{
15431 # Avoid depending upon Character Ranges.
15432 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15433 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15434 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15435 as_cr_digits
='0123456789'
15436 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15438 ECHO_C
= ECHO_N
= ECHO_T
=
15439 case `echo -n x` in #(((((
15441 case `echo 'xy\c'` in
15442 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15444 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15451 rm -f conf$$ conf$$.exe conf$$.
file
15452 if test -d conf$$.dir
; then
15453 rm -f conf$$.dir
/conf$$.
file
15456 mkdir conf$$.dir
2>/dev
/null
15458 if (echo >conf$$.
file) 2>/dev
/null
; then
15459 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15461 # ... but there are two gotchas:
15462 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15463 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15464 # In both cases, we have to default to `cp -pR'.
15465 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15467 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15475 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15476 rmdir conf$$.dir
2>/dev
/null
15481 # Create "$as_dir" as a directory, including parents if necessary.
15486 -*) as_dir
=.
/$as_dir;;
15488 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15492 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15493 *) as_qdir
=$as_dir;;
15495 as_dirs
="'$as_qdir' $as_dirs"
15496 as_dir
=`$as_dirname -- "$as_dir" ||
15497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15498 X"$as_dir" : 'X\(//\)[^/]' \| \
15499 X"$as_dir" : 'X\(//\)$' \| \
15500 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15501 $as_echo X"$as_dir" |
15502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15506 /^X\(\/\/\)[^/].*/{
15519 test -d "$as_dir" && break
15521 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15522 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15526 if mkdir
-p .
2>/dev
/null
; then
15527 as_mkdir_p
='mkdir -p "$as_dir"'
15529 test -d .
/-p && rmdir .
/-p
15534 # as_fn_executable_p FILE
15535 # -----------------------
15536 # Test if FILE is an executable regular file.
15537 as_fn_executable_p
()
15539 test -f "$1" && test -x "$1"
15540 } # as_fn_executable_p
15541 as_test_x
='test -x'
15542 as_executable_p
=as_fn_executable_p
15544 # Sed expression to map a string onto a valid CPP name.
15545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15547 # Sed expression to map a string onto a valid variable name.
15548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15552 ## ----------------------------------- ##
15553 ## Main body of $CONFIG_STATUS script. ##
15554 ## ----------------------------------- ##
15556 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15559 # Save the log message, to keep $0 and so on meaningful, and to
15560 # report actual input values of CONFIG_FILES etc. instead of their
15561 # values after options handling.
15563 This file was extended by $as_me, which was
15564 generated by GNU Autoconf 2.69. Invocation command line was
15566 CONFIG_FILES = $CONFIG_FILES
15567 CONFIG_HEADERS = $CONFIG_HEADERS
15568 CONFIG_LINKS = $CONFIG_LINKS
15569 CONFIG_COMMANDS = $CONFIG_COMMANDS
15572 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15577 case $ac_config_files in *"
15578 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15581 case $ac_config_headers in *"
15582 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587 # Files that config.status was made for.
15588 config_files="$ac_config_files"
15589 config_headers="$ac_config_headers"
15593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15595 \`$as_me' instantiates files and other configuration actions
15596 from templates according to the current configuration. Unless the files
15597 and actions are specified as TAGs, all are instantiated by default.
15599 Usage: $0 [OPTION]... [TAG]...
15601 -h, --help print this help, then exit
15602 -V, --version print version number and configuration settings, then exit
15603 --config print configuration, then exit
15604 -q, --quiet, --silent
15605 do not print progress messages
15606 -d, --debug don't remove temporary files
15607 --recheck update $as_me by reconfiguring in the same conditions
15608 --file=FILE[:TEMPLATE]
15609 instantiate the configuration file FILE
15610 --header=FILE[:TEMPLATE]
15611 instantiate the configuration header FILE
15613 Configuration files:
15616 Configuration headers:
15619 Report bugs to the package provider."
15622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15623 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15626 configured by $0, generated by GNU Autoconf 2.69,
15627 with options \\"\$ac_cs_config\\"
15629 Copyright (C) 2012 Free Software Foundation, Inc.
15630 This config.status script is free software; the Free Software Foundation
15631 gives unlimited permission to copy, distribute and modify it."
15635 test -n "\$AWK" || AWK=awk
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15639 # The default lists apply if the user does not specify any file.
15645 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15646 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15650 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15662 # Handling of the options.
15663 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15665 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15666 $as_echo "$ac_cs_version"; exit ;;
15667 --config |
--confi |
--conf |
--con |
--co |
--c )
15668 $as_echo "$ac_cs_config"; exit ;;
15669 --debug |
--debu |
--deb |
--de |
--d |
-d )
15671 --file |
--fil |
--fi |
--f )
15674 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15675 '') as_fn_error $?
"missing file argument" ;;
15677 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15678 ac_need_defaults
=false
;;
15679 --header |
--heade |
--head |
--hea )
15682 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15684 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15685 ac_need_defaults
=false
;;
15687 # Conflict between --help and --header
15688 as_fn_error $?
"ambiguous option: \`$1'
15689 Try \`$0 --help' for more information.";;
15690 --help |
--hel |
-h )
15691 $as_echo "$ac_cs_usage"; exit ;;
15692 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15693 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15696 # This is an error.
15697 -*) as_fn_error $?
"unrecognized option: \`$1'
15698 Try \`$0 --help' for more information." ;;
15700 *) as_fn_append ac_config_targets
" $1"
15701 ac_need_defaults
=false
;;
15707 ac_configure_extra_args
=
15709 if $ac_cs_silent; then
15711 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15716 if \$ac_cs_recheck; then
15717 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15719 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15720 CONFIG_SHELL='$SHELL'
15721 export CONFIG_SHELL
15726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15731 ## Running $as_me. ##
15737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15742 # Handling of arguments.
15743 for ac_config_target
in $ac_config_targets
15745 case $ac_config_target in
15746 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
15747 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
15748 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
15749 "src/include/builddefs") CONFIG_FILES
="$CONFIG_FILES src/include/builddefs" ;;
15750 "src/include/pcp.conf") CONFIG_FILES
="$CONFIG_FILES src/include/pcp.conf" ;;
15751 "pcp.lsm") CONFIG_FILES
="$CONFIG_FILES pcp.lsm" ;;
15752 "debian/pcp.preinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.preinst.head" ;;
15753 "debian/pcp.postinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.postinst.head" ;;
15754 "build/tar/preinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/preinstall.head" ;;
15755 "build/tar/postinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/postinstall.head" ;;
15756 "build/GNUlocaldefs") CONFIG_FILES
="$CONFIG_FILES build/GNUlocaldefs" ;;
15757 "build/mac/uninstall-pcp") CONFIG_FILES
="$CONFIG_FILES build/mac/uninstall-pcp" ;;
15759 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15764 # If the user did not use the arguments to specify the items to instantiate,
15765 # then the envvar interface is used. Set only those that are not.
15766 # We use the long form for the default assignment because of an extremely
15767 # bizarre bug on SunOS 4.1.3.
15768 if $ac_need_defaults; then
15769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15773 # Have a temporary directory for convenience. Make it in the build tree
15774 # simply because there is no reason against having it here, and in addition,
15775 # creating and moving files from /tmp can sometimes cause problems.
15776 # Hook for its removal unless debugging.
15777 # Note that there is a small window in which the directory will not be cleaned:
15778 # after its creation but before its name has been assigned to `$tmp'.
15782 trap 'exit_status=$?
15783 : "${ac_tmp:=$tmp}"
15784 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15786 trap 'as_fn_exit 1' 1 2 13 15
15788 # Create a (secure) tmp directory for tmp files.
15791 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15795 tmp
=.
/conf$$
-$RANDOM
15796 (umask 077 && mkdir
"$tmp")
15797 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15800 # Set up the scripts for CONFIG_FILES section.
15801 # No need to generate them if there are no CONFIG_FILES.
15802 # This happens for instance with `./config.status config.h'.
15803 if test -n "$CONFIG_FILES"; then
15806 ac_cr
=`echo X | tr X '\015'`
15807 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15808 # But we know of no other shell where ac_cr would be empty at this
15809 # point, so we can use a bashism as a fallback.
15810 if test "x$ac_cr" = x
; then
15811 eval ac_cr
=\$
\'\\r
\'
15813 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15814 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15817 ac_cs_awk_cr
=$ac_cr
15820 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15825 echo "cat >conf$$subs.awk <<_ACEOF" &&
15826 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15828 } >conf$$subs.sh ||
15829 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15830 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15832 for ac_last_try in false false false false false :; do
15833 . ./conf$$subs.sh ||
15834 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15836 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15837 if test $ac_delim_n = $ac_delim_num; then
15839 elif $ac_last_try; then
15840 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15842 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15845 rm -f conf$$subs.sh
15847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15848 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15852 s/^/S["/; s
/!.
*/"]=/
15862 s/\(.\{148\}\)..*/\1/
15864 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15869 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15876 s/\(.\{148\}\)..*/\1/
15878 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15882 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15887 ' <conf$$subs.awk | sed '
15892 ' >>$CONFIG_STATUS || ac_write_fail=1
15893 rm -f conf$$subs.awk
15894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15896 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15897 for (key in S) S_is_set[key] = 1
15903 nfields = split(line, field, "@
")
15905 len = length(field[1])
15906 for (i = 2; i < nfields; i++) {
15908 keylen = length(key)
15909 if (S_is_set[key]) {
15911 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15912 len += length(value) + length(field[++i])
15923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15925 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15928 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15929 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15932 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15933 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15934 # trailing colons and then remove the whole line if VPATH becomes empty
15935 # (actually we leave an empty line to preserve line numbers).
15936 if test "x
$srcdir" = x.; then
15937 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956 fi # test -n "$CONFIG_FILES"
15958 # Set up the scripts for CONFIG_HEADERS section.
15959 # No need to generate them if there are no CONFIG_HEADERS.
15960 # This happens for instance with `./config.status Makefile'.
15961 if test -n "$CONFIG_HEADERS"; then
15962 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15966 # Transform confdefs.h into an awk script `defines.awk', embedded as
15967 # here-document in config.status, that substitutes the proper values into
15968 # config.h.in to produce config.h.
15970 # Create a delimiter string that does not exist in confdefs.h, to ease
15971 # handling of long lines.
15973 for ac_last_try in false false :; do
15974 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15975 if test -z "$ac_tt"; then
15977 elif $ac_last_try; then
15978 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15980 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15984 # For the awk script, D is an array of macro values keyed by name,
15985 # likewise P contains macro parameters if any. Preserve backslash
15986 # newline sequences.
15988 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15990 s/.\{148\}/&'"$ac_delim"'/g
15993 s/^[ ]*#[ ]*define[ ][ ]*/ /
16000 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16002 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16007 D["\
1"]=" \
3\\\\\\n
"\\/p
16009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16014 s/.\{148\}/&'"$ac_delim"'/g
16019 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16022 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16024 ' <confdefs.h | sed '
16025 s/'"$ac_delim"'/"\\\
16026 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16029 for (key in D) D_is_set[key] = 1
16032 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16034 split(line, arg, " ")
16035 if (arg[1] == "#") {
16039 defundef
= substr
(arg
[1], 2)
16042 split(mac1
, mac2
, "(") #)
16044 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16045 if (D_is_set
[macro
]) {
16046 # Preserve the white space surrounding the "#".
16047 print prefix
"define", macro P
[macro
] D
[macro
]
16050 # Replace #undef with comments. This is necessary, for example,
16051 # in the case of _POSIX_SOURCE, which is predefined and required
16052 # on some systems where configure will not decide to define it.
16053 if (defundef
== "undef") {
16054 print
"/*", prefix defundef
, macro
, "*/"
16062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16063 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16064 fi # test -n "$CONFIG_HEADERS"
16067 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
16072 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16074 case $ac_mode$ac_tag in
16076 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16077 :[FH
]-) ac_tag
=-:-;;
16078 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16095 -) ac_f
="$ac_tmp/stdin";;
16096 *) # Look for the file first in the build tree, then in the source tree
16097 # (if the path is not absolute). The absolute path cannot be DOS-style,
16098 # because $ac_f cannot contain `:'.
16102 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16104 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16106 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16107 as_fn_append ac_file_inputs
" '$ac_f'"
16110 # Let's still pretend it is `configure' which instantiates (i.e., don't
16111 # use $as_me), people would be surprised to read:
16112 # /* config.h. Generated by config.status. */
16113 configure_input
='Generated from '`
16114 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16116 if test x
"$ac_file" != x-
; then
16117 configure_input
="$ac_file. $configure_input"
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16119 $as_echo "$as_me: creating $ac_file" >&6;}
16121 # Neutralize special characters interpreted by sed in replacement strings.
16122 case $configure_input in #(
16123 *\
&* |
*\|
* |
*\\* )
16124 ac_sed_conf_input
=`$as_echo "$configure_input" |
16125 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16126 *) ac_sed_conf_input
=$configure_input;;
16130 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16131 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16136 ac_dir
=`$as_dirname -- "$ac_file" ||
16137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16138 X"$ac_file" : 'X\(//\)[^/]' \| \
16139 X"$ac_file" : 'X\(//\)$' \| \
16140 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16141 $as_echo X"$ac_file" |
16142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16146 /^X\(\/\/\)[^/].*/{
16159 as_dir
="$ac_dir"; as_fn_mkdir_p
16163 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16165 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16166 # A ".." for each directory in $ac_dir_suffix.
16167 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16168 case $ac_top_builddir_sub in
16169 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16170 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16173 ac_abs_top_builddir
=$ac_pwd
16174 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16175 # for backward compatibility:
16176 ac_top_builddir
=$ac_top_build_prefix
16179 .
) # We are building in place.
16181 ac_top_srcdir
=$ac_top_builddir_sub
16182 ac_abs_top_srcdir
=$ac_pwd ;;
16183 [\\/]* | ?
:[\\/]* ) # Absolute name.
16184 ac_srcdir
=$srcdir$ac_dir_suffix;
16185 ac_top_srcdir
=$srcdir
16186 ac_abs_top_srcdir
=$srcdir ;;
16187 *) # Relative name.
16188 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16189 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16190 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16192 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16204 # If the template does not know about datarootdir, expand it.
16205 # FIXME: This hack should be removed a few years after 2.60.
16206 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16217 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16218 *datarootdir
*) ac_datarootdir_seen
=yes;;
16219 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16221 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224 ac_datarootdir_hack='
16225 s&@datadir@&$datadir&g
16226 s&@docdir@&$docdir&g
16227 s&@infodir@&$infodir&g
16228 s&@localedir@&$localedir&g
16229 s&@mandir@&$mandir&g
16230 s&\\\${datarootdir}&$datarootdir&g' ;;
16234 # Neutralize VPATH when `$srcdir' = `.'.
16235 # Shell code in configure.ac might set extrasub.
16236 # FIXME: do we really want to maintain this feature?
16237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16238 ac_sed_extra="$ac_vpsub
16241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16243 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16244 s|@configure_input@|
$ac_sed_conf_input|
;t t
16245 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16246 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16247 s
&@srcdir@
&$ac_srcdir&;t t
16248 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16249 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16250 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16251 s
&@builddir@
&$ac_builddir&;t t
16252 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16253 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16254 $ac_datarootdir_hack
16256 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16257 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16259 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16260 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16262 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16264 which seems to be undefined. Please make sure it is defined" >&5
16265 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16266 which seems to be undefined. Please make sure it is defined" >&2;}
16268 rm -f "$ac_tmp/stdin"
16270 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16271 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16279 if test x"$ac_file" != x-; then
16281 $as_echo "/* $configure_input */" \
16282 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16283 } >"$ac_tmp/config.h" \
16284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16285 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16287 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16290 mv "$ac_tmp/config.h" "$ac_file" \
16291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16294 $as_echo "/* $configure_input */" \
16295 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16296 || as_fn_error $? "could not create -" "$LINENO" 5
16308 ac_clean_files=$ac_clean_files_save
16310 test $ac_write_fail = 0 ||
16311 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16314 # configure is writing to config.log, and then calls config.status.
16315 # config.status does its own redirection, appending to config.log.
16316 # Unfortunately, on DOS this fails, as config.log is still kept open
16317 # by configure, so config.status won't be able to
write to it
; its
16318 # output is simply discarded. So we exec the FD to /dev/null,
16319 # effectively closing config.log, so it can be properly (re)opened and
16320 # appended to by config.status. When coming back to configure, we
16321 # need to make the FD available again.
16322 if test "$no_create" != yes; then
16324 ac_config_status_args
=
16325 test "$silent" = yes &&
16326 ac_config_status_args
="$ac_config_status_args --quiet"
16328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16331 # would make configure fail if this is the last instruction.
16332 $ac_cs_success || as_fn_exit
1
16334 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16336 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}