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
797 have_python_jsonpointer
816 SYSTEMD_SYSTEMUNITDIR
914 program_transform_name
927 enable_option_checking
958 with_perl_installdirs
959 with_perl_install_base
970 ac_precious_vars
='build_alias
989 SYSTEMD_SYSTEMUNITDIR
1005 # Initialize some variables set by options.
1007 ac_init_version
=false
1008 ac_unrecognized_opts
=
1009 ac_unrecognized_sep
=
1010 # The variables have the same names as the options, with
1011 # dashes changed to underlines.
1012 cache_file
=/dev
/null
1019 program_transform_name
=s
,x
,x
,
1027 # Installation directory options.
1028 # These are left unexpanded so users can "make install exec_prefix=/foo"
1029 # and all the variables that are supposed to be based on exec_prefix
1030 # by default will actually change.
1031 # Use braces instead of parens because sh, perl, etc. also accept them.
1032 # (The list follows the same order as the GNU Coding Standards.)
1033 bindir
='${exec_prefix}/bin'
1034 sbindir
='${exec_prefix}/sbin'
1035 libexecdir
='${exec_prefix}/libexec'
1036 datarootdir
='${prefix}/share'
1037 datadir
='${datarootdir}'
1038 sysconfdir
='${prefix}/etc'
1039 sharedstatedir
='${prefix}/com'
1040 localstatedir
='${prefix}/var'
1041 includedir
='${prefix}/include'
1042 oldincludedir
='/usr/include'
1043 docdir
='${datarootdir}/doc/${PACKAGE}'
1044 infodir
='${datarootdir}/info'
1049 libdir
='${exec_prefix}/lib'
1050 localedir
='${datarootdir}/locale'
1051 mandir
='${datarootdir}/man'
1057 # If the previous option needs an argument, assign it.
1058 if test -n "$ac_prev"; then
1059 eval $ac_prev=\
$ac_option
1065 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070 # Accept the important Cygnus configure options, so we can diagnose typos.
1072 case $ac_dashdash$ac_option in
1076 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1078 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1079 bindir
=$ac_optarg ;;
1081 -build |
--build |
--buil |
--bui |
--bu)
1082 ac_prev
=build_alias
;;
1083 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1084 build_alias
=$ac_optarg ;;
1086 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1087 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1088 ac_prev
=cache_file
;;
1089 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1090 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1091 cache_file
=$ac_optarg ;;
1093 --config-cache |
-C)
1094 cache_file
=config.cache
;;
1096 -datadir |
--datadir |
--datadi |
--datad)
1098 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1099 datadir
=$ac_optarg ;;
1101 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1102 |
--dataroo |
--dataro |
--datar)
1103 ac_prev
=datarootdir
;;
1104 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1105 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1106 datarootdir
=$ac_optarg ;;
1108 -disable-* |
--disable-*)
1109 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1112 as_fn_error $?
"invalid feature name: $ac_useropt"
1113 ac_useropt_orig
=$ac_useropt
1114 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "enable_
$ac_useropt"
1119 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1120 ac_unrecognized_sep
=', ';;
1122 eval enable_
$ac_useropt=no
;;
1124 -docdir |
--docdir |
--docdi |
--doc |
--do)
1126 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1127 docdir
=$ac_optarg ;;
1129 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1131 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1132 dvidir
=$ac_optarg ;;
1134 -enable-* |
--enable-*)
1135 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1138 as_fn_error $?
"invalid feature name: $ac_useropt"
1139 ac_useropt_orig
=$ac_useropt
1140 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "enable_
$ac_useropt"
1145 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1146 ac_unrecognized_sep
=', ';;
1148 eval enable_
$ac_useropt=\
$ac_optarg ;;
1150 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1151 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1152 |
--exec |
--exe |
--ex)
1153 ac_prev
=exec_prefix
;;
1154 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1155 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1156 |
--exec=* |
--exe=* |
--ex=*)
1157 exec_prefix
=$ac_optarg ;;
1159 -gas |
--gas |
--ga |
--g)
1160 # Obsolete; use --with-gas.
1163 -help |
--help |
--hel |
--he |
-h)
1164 ac_init_help
=long
;;
1165 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1166 ac_init_help
=recursive
;;
1167 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1168 ac_init_help
=short
;;
1170 -host |
--host |
--hos |
--ho)
1171 ac_prev
=host_alias
;;
1172 -host=* |
--host=* |
--hos=* |
--ho=*)
1173 host_alias
=$ac_optarg ;;
1175 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1177 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1179 htmldir
=$ac_optarg ;;
1181 -includedir |
--includedir |
--includedi |
--included |
--include \
1182 |
--includ |
--inclu |
--incl |
--inc)
1183 ac_prev
=includedir
;;
1184 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1185 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1186 includedir
=$ac_optarg ;;
1188 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1190 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1191 infodir
=$ac_optarg ;;
1193 -libdir |
--libdir |
--libdi |
--libd)
1195 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1196 libdir
=$ac_optarg ;;
1198 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1199 |
--libexe |
--libex |
--libe)
1200 ac_prev
=libexecdir
;;
1201 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1202 |
--libexe=* |
--libex=* |
--libe=*)
1203 libexecdir
=$ac_optarg ;;
1205 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1206 ac_prev
=localedir
;;
1207 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1208 localedir
=$ac_optarg ;;
1210 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1211 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1212 ac_prev
=localstatedir
;;
1213 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1214 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1215 localstatedir
=$ac_optarg ;;
1217 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1219 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1220 mandir
=$ac_optarg ;;
1222 -nfp |
--nfp |
--nf)
1223 # Obsolete; use --without-fp.
1226 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1227 |
--no-cr |
--no-c |
-n)
1230 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1231 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1234 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1235 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1236 |
--oldin |
--oldi |
--old |
--ol |
--o)
1237 ac_prev
=oldincludedir
;;
1238 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1239 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1240 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1241 oldincludedir
=$ac_optarg ;;
1243 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1245 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1246 prefix
=$ac_optarg ;;
1248 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1249 |
--program-pre |
--program-pr |
--program-p)
1250 ac_prev
=program_prefix
;;
1251 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1252 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1253 program_prefix
=$ac_optarg ;;
1255 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1256 |
--program-suf |
--program-su |
--program-s)
1257 ac_prev
=program_suffix
;;
1258 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1259 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1260 program_suffix
=$ac_optarg ;;
1262 -program-transform-name |
--program-transform-name \
1263 |
--program-transform-nam |
--program-transform-na \
1264 |
--program-transform-n |
--program-transform- \
1265 |
--program-transform |
--program-transfor \
1266 |
--program-transfo |
--program-transf \
1267 |
--program-trans |
--program-tran \
1268 |
--progr-tra |
--program-tr |
--program-t)
1269 ac_prev
=program_transform_name
;;
1270 -program-transform-name=* |
--program-transform-name=* \
1271 |
--program-transform-nam=* |
--program-transform-na=* \
1272 |
--program-transform-n=* |
--program-transform-=* \
1273 |
--program-transform=* |
--program-transfor=* \
1274 |
--program-transfo=* |
--program-transf=* \
1275 |
--program-trans=* |
--program-tran=* \
1276 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1277 program_transform_name
=$ac_optarg ;;
1279 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1281 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1282 pdfdir
=$ac_optarg ;;
1284 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1286 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1289 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1290 |
-silent |
--silent |
--silen |
--sile |
--sil)
1293 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1295 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1297 sbindir
=$ac_optarg ;;
1299 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1300 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1301 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1303 ac_prev
=sharedstatedir
;;
1304 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1305 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1306 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1308 sharedstatedir
=$ac_optarg ;;
1310 -site |
--site |
--sit)
1312 -site=* |
--site=* |
--sit=*)
1315 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1317 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1318 srcdir
=$ac_optarg ;;
1320 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1321 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1322 ac_prev
=sysconfdir
;;
1323 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1324 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1325 sysconfdir
=$ac_optarg ;;
1327 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1328 ac_prev
=target_alias
;;
1329 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1330 target_alias
=$ac_optarg ;;
1332 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1335 -version |
--version |
--versio |
--versi |
--vers |
-V)
1336 ac_init_version
=: ;;
1339 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1342 as_fn_error $?
"invalid package name: $ac_useropt"
1343 ac_useropt_orig
=$ac_useropt
1344 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1349 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1350 ac_unrecognized_sep
=', ';;
1352 eval with_
$ac_useropt=\
$ac_optarg ;;
1354 -without-* |
--without-*)
1355 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1358 as_fn_error $?
"invalid package name: $ac_useropt"
1359 ac_useropt_orig
=$ac_useropt
1360 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1365 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1366 ac_unrecognized_sep
=', ';;
1368 eval with_
$ac_useropt=no
;;
1371 # Obsolete; use --with-x.
1374 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1375 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1376 ac_prev
=x_includes
;;
1377 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1378 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1379 x_includes
=$ac_optarg ;;
1381 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1382 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1383 ac_prev
=x_libraries
;;
1384 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1385 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1386 x_libraries
=$ac_optarg ;;
1388 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1389 Try \`$0 --help' for more information"
1393 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1394 # Reject names that are not valid shell variable names.
1395 case $ac_envvar in #(
1396 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1397 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1399 eval $ac_envvar=\
$ac_optarg
1400 export $ac_envvar ;;
1403 # FIXME: should be removed in autoconf 3.0.
1404 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1405 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1406 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1407 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1413 if test -n "$ac_prev"; then
1414 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1415 as_fn_error $?
"missing argument to $ac_option"
1418 if test -n "$ac_unrecognized_opts"; then
1419 case $enable_option_checking in
1421 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1422 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1426 # Check all directory arguments for consistency.
1427 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1428 datadir sysconfdir sharedstatedir localstatedir includedir \
1429 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1430 libdir localedir mandir
1432 eval ac_val
=\$
$ac_var
1433 # Remove trailing slashes.
1436 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1437 eval $ac_var=\
$ac_val;;
1439 # Be sure to have absolute directory names.
1441 [\\/$
]* | ?
:[\\/]* ) continue;;
1442 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1444 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1452 target
=$target_alias
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x
; then
1456 if test "x$build_alias" = x
; then
1457 cross_compiling
=maybe
1458 elif test "x$build_alias" != "x$host_alias"; then
1464 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1466 test "$silent" = yes && exec 6>/dev
/null
1469 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1470 ac_ls_di
=`ls -di .` &&
1471 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1472 as_fn_error $?
"working directory cannot be determined"
1473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474 as_fn_error $?
"pwd does not report name of working directory"
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479 ac_srcdir_defaulted
=yes
1480 # Try the directory containing this script, then the parent directory.
1481 ac_confdir
=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483 X"$as_myself" : 'X\(//\)[^/]' \| \
1484 X"$as_myself" : 'X\(//\)$' \| \
1485 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1509 ac_srcdir_defaulted
=no
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1513 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1515 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1527 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 for ac_var
in $ac_precious_vars; do
1530 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1531 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1532 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1533 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1537 # Report the --help message.
1539 if test "$ac_init_help" = "long"; then
1540 # Omit some internal or obsolete options to make the list less imposing.
1541 # This message is too long to be a string in the A/UX 3.1 sh.
1543 \`configure' configures this package to adapt to many kinds of systems.
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE. See below for descriptions of some of the useful variables.
1550 Defaults for the options are specified in brackets.
1553 -h, --help display this help and exit
1554 --help=short display options specific to this package
1555 --help=recursive display the short help of all the included packages
1556 -V, --version display version information and exit
1557 -q, --quiet, --silent do not print \`checking ...' messages
1558 --cache-file=FILE cache test results in FILE [disabled]
1559 -C, --config-cache alias for \`--cache-file=config.cache'
1560 -n, --no-create do not create output files
1561 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1563 Installation directories:
1564 --prefix=PREFIX install architecture-independent files in PREFIX
1565 [$ac_default_prefix]
1566 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1574 For better control, use the options below.
1576 Fine tuning of the installation directories:
1577 --bindir=DIR user executables [EPREFIX/bin]
1578 --sbindir=DIR system admin executables [EPREFIX/sbin]
1579 --libexecdir=DIR program executables [EPREFIX/libexec]
1580 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1581 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1582 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1601 --x-includes=DIR X include files are
in DIR
1602 --x-libraries=DIR X library files are
in DIR
1605 --build=BUILD configure
for building on BUILD
[guessed
]
1606 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1607 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1611 if test -n "$ac_init_help"; then
1616 --disable-option-checking ignore unrecognized
--enable/--with options
1617 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1618 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1619 --disable-ssp disable gcc stack-protector
1620 --disable-pie disable position-independent-executable
1621 --disable-visibility disable gcc symbol visibility
1622 --disable-shared disable core shared libary generation
1625 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1626 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1627 --with-64bit turn on
64 bit compilation mode
(default is platform
1629 --with-optimization enable optimization
for C
/C
++ code
(default is
yes)
1630 --with-threads enable support
for multiple threads
(default is on
)
1631 --with-secure-sockets enable support
for secure sockets
(default is on
)
1632 --with-static-probes enable support
for static probes
(default is on
)
1633 --with-infiniband enable support
for Infiniband metrics
(default is
1635 --with-user user account under
which daemons run
(default is
1637 --with-group user group under
which daemons run
(default is pcp
)
1638 --with-discovery enable support
for service discovery
(default is on
)
1639 --with-systemd enable support
for systemd services
(default is on
)
1640 --with-qt enable support
for tools requiring Qt
(default is
1642 --with-python enable support
for tools requiring Python
(default
1644 --with-python3 enable support
for tools requiring Python3
(default
1646 --with-books enable building of the PCP books
(default is off
)
1647 --with-books-brand=BRAND
1648 choose the docbook brand when building the PCP books
1650 --with-papi[=DIR|
=MODULE
]
1651 enable performance api counter pmda
(default is on
)
1652 The optional argument may be a full path of a PAPI
1653 installation prefix
, or a pkgconfig module name.
1654 --with-perfevent enable perfevent pmda
(default is on
)
1655 --with-pmdajson enable JSON pmda
(default is on
)
1656 --with-manager enable daemon manager
(default is on
)
1657 --with-webapi enable REST API daemon
(default is on
)
1658 --with-webjs enable building of webjs packages
(default is off
)
1659 --with-vector enable building of vector package
(default is off
)
1660 --with-make path to GNU compatible
make(1) (default is empty
for
1662 --with-tar path to GNU compatible
tar(1) (default is empty
for
1664 --with-zip path to GNU compatible
zip(1) (default is empty
for
1666 --with-configdir configuration directory
[LOCALSTATEDIR
/pcp
/config
]
1667 --with-perl_installdirs perl installdirs
[vendor
]
1668 --with-perl_install_base
1669 perl install_base
[PREFIX
]
1670 --with-python_prefix python setup.py prefix
[PREFIX
]
1671 --with-x use the X Window System
1672 --with-rcdir rc directory
[SYSCONFDIR
/rc.d
]
1673 --with-sysconfigdir sysconfig directory
[SYSCONFDIR
/sysconfig
]
1674 --with-logdir log directory
[LOCALSTATEDIR
/log
/pcp
]
1675 --with-rundir run directory
[LOCALSTATEDIR
/run
/pcp
]
1676 --with-tmpdir tmp directory
[LOCALSTATEDIR
/tmp
]
1677 --with-docdir docs directory
[DOCDIR
/pcp-VERSION
]
1678 --with-demosdir run directory
[DATADIR
/pcp
/demos
]
1680 Some influential environment variables
:
1681 PKG_CONFIG path to pkg-config utility
1683 directories to add to pkg-config
's search path
1685 path overriding pkg-config's built-in search path
1686 CC C compiler
command
1687 CFLAGS C compiler flags
1688 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1689 nonstandard directory
<lib dir
>
1690 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1691 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1692 you have headers
in a nonstandard directory
<include dir
>
1693 CXX C
++ compiler
command
1694 CXXFLAGS C
++ compiler flags
1695 YACC The
`Yet Another Compiler Compiler' implementation to use.
1696 Defaults to the first program found out of: `bison
-y', `byacc',
1698 YFLAGS The list of arguments that will be passed by default to $YACC.
1699 This script will default YFLAGS to the empty string to avoid a
1700 default value of `-d' given by some make applications.
1703 C compiler flags for avahi, overriding pkg-config
1704 avahi_LIBS linker flags for avahi, overriding pkg-config
1705 SYSTEMD_SYSTEMUNITDIR
1706 value of systemdsystemunitdir for systemd, overriding pkg-config
1708 C compiler flags for ncurses, overriding pkg-config
1710 linker flags for ncurses, overriding pkg-config
1712 C compiler flags for SYSTEMD, overriding pkg-config
1714 linker flags for SYSTEMD, overriding pkg-config
1715 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1716 papi_LIBS linker flags for papi, overriding pkg-config
1717 libmicrohttpd_CFLAGS
1718 C compiler flags for libmicrohttpd, overriding pkg-config
1720 linker flags for libmicrohttpd, overriding pkg-config
1722 C compiler flags for cairo, overriding pkg-config
1723 cairo_LIBS linker flags for cairo, overriding pkg-config
1724 XMKMF Path to xmkmf, Makefile generator for X Window System
1725 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1726 zlib_LIBS linker flags for zlib, overriding pkg-config
1728 Use these variables to override the choices made by `configure' or to
help
1729 it to
find libraries and programs with nonstandard names
/locations.
1731 Report bugs to the package provider.
1736 if test "$ac_init_help" = "recursive"; then
1737 # If there are subdirs, report their specific --help.
1738 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1739 test -d "$ac_dir" ||
1740 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1745 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1747 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1748 # A ".." for each directory in $ac_dir_suffix.
1749 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1750 case $ac_top_builddir_sub in
1751 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1752 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1755 ac_abs_top_builddir
=$ac_pwd
1756 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1757 # for backward compatibility:
1758 ac_top_builddir
=$ac_top_build_prefix
1761 .
) # We are building in place.
1763 ac_top_srcdir
=$ac_top_builddir_sub
1764 ac_abs_top_srcdir
=$ac_pwd ;;
1765 [\\/]* | ?
:[\\/]* ) # Absolute name.
1766 ac_srcdir
=$srcdir$ac_dir_suffix;
1767 ac_top_srcdir
=$srcdir
1768 ac_abs_top_srcdir
=$srcdir ;;
1770 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1772 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1774 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1776 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1777 # Check for guested configure.
1778 if test -f "$ac_srcdir/configure.gnu"; then
1780 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781 elif test -f "$ac_srcdir/configure"; then
1783 $SHELL "$ac_srcdir/configure" --help=recursive
1785 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1787 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1791 test -n "$ac_init_help" && exit $ac_status
1792 if $ac_init_version; then
1795 generated by GNU Autoconf
2.69
1797 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1798 This configure
script is free software
; the Free Software Foundation
1799 gives unlimited permission to copy
, distribute and modify it.
1804 ## ------------------------ ##
1805 ## Autoconf initialization. ##
1806 ## ------------------------ ##
1808 # ac_fn_c_try_compile LINENO
1809 # --------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_compile
()
1813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1814 rm -f conftest.
$ac_objext
1815 if { { ac_try
="$ac_compile"
1817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_c_try_compile
1846 # ac_fn_c_try_link LINENO
1847 # -----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1856 *) ac_try_echo
=$ac_try;;
1858 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1862 if test -s conftest.err
; then
1863 grep -v '^ *+' conftest.err
>conftest.er1
1864 cat conftest.er1
>&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest
$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 test -x conftest
$ac_exeext
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.
$ac_ext >&5
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status
$ac_retval
1890 } # ac_fn_c_try_link
1892 # ac_fn_cxx_try_compile LINENO
1893 # ----------------------------
1894 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_cxx_try_compile
()
1897 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1898 rm -f conftest.
$ac_objext
1899 if { { ac_try
="$ac_compile"
1901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_compile") 2>conftest.err
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest.$ac_objext; then :
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_cxx_try_compile
1930 # ac_fn_c_try_cpp LINENO
1931 # ----------------------
1932 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_cpp conftest.$ac_ext"
1938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1939 *) ac_try_echo
=$ac_try;;
1941 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945 if test -s conftest.err
; then
1946 grep -v '^ *+' conftest.err
>conftest.er1
1947 cat conftest.er1
>&5
1948 mv -f conftest.er1 conftest.err
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; } > conftest.i
&& {
1952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1953 test ! -s conftest.err
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.
$ac_ext >&5
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status
$ac_retval
1967 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1972 ac_fn_c_check_header_mongrel
()
1974 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1975 if eval \
${$3+:} false
; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \
${$3+:} false
; then :
1979 $as_echo_n "(cached) " >&6
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1993 if ac_fn_c_try_compile
"$LINENO"; then :
1994 ac_header_compiler
=yes
1996 ac_header_compiler
=no
1998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2009 if ac_fn_c_try_cpp
"$LINENO"; then :
2010 ac_header_preproc
=yes
2012 ac_header_preproc
=no
2014 rm -f conftest.err conftest.i conftest.
$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \
${$3+:} false
; then :
2042 $as_echo_n "(cached) " >&6
2044 eval "$3=\$ac_header_compiler"
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_header_mongrel
2054 # ac_fn_c_try_run LINENO
2055 # ----------------------
2056 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2057 # that executables *can* be run.
2060 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2061 if { { ac_try
="$ac_link"
2063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_link") 2>&5
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2072 { { case "(($ac_try" in
2073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2074 *) ac_try_echo
=$ac_try;;
2076 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_try") 2>&5
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; }; }; then :
2084 $as_echo "$as_me: program exited with status $ac_status" >&5
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.
$ac_ext >&5
2088 ac_retval
=$ac_status
2090 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status
$ac_retval
2096 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2097 # -------------------------------------------------------
2098 # Tests whether HEADER exists and can be compiled using the include files in
2099 # INCLUDES, setting the cache variable VAR accordingly.
2100 ac_fn_c_check_header_compile
()
2102 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \
${$3+:} false
; then :
2106 $as_echo_n "(cached) " >&6
2108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2113 if ac_fn_c_try_compile
"$LINENO"; then :
2118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 } # ac_fn_c_check_header_compile
2127 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2128 # -------------------------------------------
2129 # Tests whether TYPE exists after having included INCLUDES, setting cache
2130 # variable VAR accordingly.
2131 ac_fn_c_check_type
()
2133 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135 $as_echo_n "checking for $2... " >&6; }
2136 if eval \
${$3+:} false
; then :
2137 $as_echo_n "(cached) " >&6
2140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2152 if ac_fn_c_try_compile
"$LINENO"; then :
2153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2165 if ac_fn_c_try_compile
"$LINENO"; then :
2170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 } # ac_fn_c_check_type
2181 # ac_fn_c_check_func LINENO FUNC VAR
2182 # ----------------------------------
2183 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2184 ac_fn_c_check_func
()
2186 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if eval \
${$3+:} false
; then :
2190 $as_echo_n "(cached) " >&6
2192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2194 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2196 #define $2 innocuous_$2
2198 /* System header to define __stub macros and hopefully few prototypes,
2199 which can conflict with char $2 (); below.
2200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2201 <limits.h> exists even on freestanding compilers. */
2204 # include <limits.h>
2206 # include <assert.h>
2211 /* Override any GCC internal prototype to avoid an error.
2212 Use char because int might match the return type of a GCC
2213 builtin and then its argument prototype would still apply. */
2218 /* The GNU C library defines this for functions which it implements
2219 to always fail with ENOSYS. Some functions are actually named
2220 something starting with __ and the normal name is an alias. */
2221 #if defined __stub_$2 || defined __stub___$2
2233 if ac_fn_c_try_link
"$LINENO"; then :
2238 rm -f core conftest.err conftest.
$ac_objext \
2239 conftest
$ac_exeext conftest.
$ac_ext
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243 $as_echo "$ac_res" >&6; }
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246 } # ac_fn_c_check_func
2247 cat >config.log
<<_ACEOF
2248 This file contains any messages produced by compilers while
2249 running configure, to aid debugging if configure makes a mistake.
2251 It was created by $as_me, which was
2252 generated by GNU Autoconf 2.69. Invocation command line was
2264 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2265 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2266 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2267 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2268 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2270 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2271 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2273 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2274 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2275 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2276 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2277 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2278 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2279 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir
=.
2288 $as_echo "PATH: $as_dir"
2304 # Keep a trace of the command line.
2305 # Strip out --no-create and --no-recursion so they do not pile up.
2306 # Strip out --silent because we don't want to record it for future runs.
2307 # Also quote any args containing shell meta-characters.
2308 # Make two passes to allow for proper duplicate-argument suppression.
2312 ac_must_keep_next
=false
2318 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2319 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2320 |
-silent |
--silent |
--silen |
--sile |
--sil)
2323 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2328 as_fn_append ac_configure_args1
" '$ac_arg'"
2329 if test $ac_must_keep_next = true
; then
2330 ac_must_keep_next
=false
# Got value, back to normal.
2333 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2334 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2335 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2336 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2337 case "$ac_configure_args0 " in
2338 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341 -* ) ac_must_keep_next
=true
;;
2344 as_fn_append ac_configure_args
" '$ac_arg'"
2349 { ac_configure_args0
=; unset ac_configure_args0
;}
2350 { ac_configure_args1
=; unset ac_configure_args1
;}
2352 # When interrupted or exit'd, cleanup temporary files, and complete
2353 # config.log. We remove comments because anyway the quotes in there
2354 # would cause problems or look ugly.
2355 # WARNING: Use '\'' to represent an apostrophe within the trap.
2356 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2357 trap 'exit_status=$?
2358 # Save into config.log some information that might help in debugging.
2362 $as_echo "## ---------------- ##
2363 ## Cache variables. ##
2364 ## ---------------- ##"
2366 # The following way of writing the cache mishandles newlines in values,
2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369 eval ac_val=\$$ac_var
2373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2377 _ | IFS | as_nl) ;; #(
2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379 *) { eval $ac_var=; unset $ac_var;} ;;
2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
2387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2398 $as_echo "## ----------------- ##
2399 ## Output variables. ##
2400 ## ----------------- ##"
2402 for ac_var in $ac_subst_vars
2404 eval ac_val=\$$ac_var
2406 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408 $as_echo "$ac_var='\''$ac_val'\''"
2412 if test -n "$ac_subst_files"; then
2413 $as_echo "## ------------------- ##
2414 ## File substitutions. ##
2415 ## ------------------- ##"
2417 for ac_var
in $ac_subst_files
2419 eval ac_val
=\$
$ac_var
2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423 $as_echo "$ac_var='\''$ac_val'\''"
2428 if test -s confdefs.h; then
2429 $as_echo "## ----------- ##
2436 test "$ac_signal" != 0 &&
2437 $as_echo "$as_me: caught signal $ac_signal"
2438 $as_echo "$as_me: exit $exit_status"
2440 rm -f core *.core core.conftest.* &&
2441 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2444 for ac_signal
in 1 2 13 15; do
2445 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2450 rm -f -r conftest
* confdefs.h
2452 $as_echo "/* confdefs.h */" > confdefs.h
2454 # Predefined preprocessor variables.
2456 cat >>confdefs.h
<<_ACEOF
2457 #define PACKAGE_NAME "$PACKAGE_NAME"
2460 cat >>confdefs.h
<<_ACEOF
2461 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2464 cat >>confdefs.h
<<_ACEOF
2465 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2468 cat >>confdefs.h
<<_ACEOF
2469 #define PACKAGE_STRING "$PACKAGE_STRING"
2472 cat >>confdefs.h
<<_ACEOF
2473 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2476 cat >>confdefs.h
<<_ACEOF
2477 #define PACKAGE_URL "$PACKAGE_URL"
2481 # Let the site file select an alternate cache file if it wants to.
2482 # Prefer an explicitly selected file to automatically selected ones.
2485 if test -n "$CONFIG_SITE"; then
2486 # We do not want a PATH search for config.site.
2487 case $CONFIG_SITE in #((
2488 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2489 */*) ac_site_file1
=$CONFIG_SITE;;
2490 *) ac_site_file1
=.
/$CONFIG_SITE;;
2492 elif test "x$prefix" != xNONE
; then
2493 ac_site_file1
=$prefix/share
/config.site
2494 ac_site_file2
=$prefix/etc
/config.site
2496 ac_site_file1
=$ac_default_prefix/share
/config.site
2497 ac_site_file2
=$ac_default_prefix/etc
/config.site
2499 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2501 test "x$ac_site_file" = xNONE
&& continue
2502 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2504 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2505 sed 's/^/| /' "$ac_site_file" >&5
2507 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509 as_fn_error $?
"failed to load site script $ac_site_file
2510 See \`config.log' for more details" "$LINENO" 5; }
2514 if test -r "$cache_file"; then
2515 # Some versions of bash will fail to source /dev/null (special files
2516 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2517 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2519 $as_echo "$as_me: loading cache $cache_file" >&6;}
2521 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2522 *) .
"./$cache_file";;
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527 $as_echo "$as_me: creating cache $cache_file" >&6;}
2531 # Check that the precious variables saved in the cache have kept the same
2533 ac_cache_corrupted
=false
2534 for ac_var
in $ac_precious_vars; do
2535 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2536 eval ac_new_set
=\
$ac_env_${ac_var}_set
2537 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2538 eval ac_new_val
=\
$ac_env_${ac_var}_value
2539 case $ac_old_set,$ac_new_set in
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2543 ac_cache_corrupted
=: ;;
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2547 ac_cache_corrupted
=: ;;
2550 if test "x$ac_old_val" != "x$ac_new_val"; then
2551 # differences in whitespace do not lead to failure.
2552 ac_old_val_w
=`echo x $ac_old_val`
2553 ac_new_val_w
=`echo x $ac_new_val`
2554 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557 ac_cache_corrupted
=:
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561 eval $ac_var=\
$ac_old_val
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2564 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2566 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2569 # Pass precious variables to config.status.
2570 if test "$ac_new_set" = set; then
2572 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573 *) ac_arg
=$ac_var=$ac_new_val ;;
2575 case " $ac_configure_args " in
2576 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2577 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2581 if $ac_cache_corrupted; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2586 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2588 ## -------------------- ##
2589 ## Main body of script. ##
2590 ## -------------------- ##
2593 ac_cpp
='$CPP $CPPFLAGS'
2594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2603 # Check whether --with-64bit was given.
2604 if test "${with_64bit+set}" = set; then :
2605 withval
=$with_64bit; use_64bit
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-64bit=$withval"
2610 # Check whether --with-optimization was given.
2611 if test "${with_optimization+set}" = set; then :
2612 withval
=$with_optimization; use_optimization
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-optimization=$withval"
2619 # Check whether --with-threads was given.
2620 if test "${with_threads+set}" = set; then :
2621 withval
=$with_threads; do_threads
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-threads=$withval"
2628 # Check whether --with-secure-sockets was given.
2629 if test "${with_secure_sockets+set}" = set; then :
2630 withval
=$with_secure_sockets; do_secure
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2637 # Check whether --with-static-probes was given.
2638 if test "${with_static_probes+set}" = set; then :
2639 withval
=$with_static_probes; do_probes
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2646 # Check whether --with-infiniband was given.
2647 if test "${with_infiniband+set}" = set; then :
2648 withval
=$with_infiniband; do_infiniband
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2655 # Check whether --with-user was given.
2656 if test "${with_user+set}" = set; then :
2657 withval
=$with_user; pcp_user
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-user-account=$withval"
2665 # Check whether --with-group was given.
2666 if test "${with_group+set}" = set; then :
2667 withval
=$with_group; pcp_group
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-group-account=$withval"
2675 # Check whether --with-discovery was given.
2676 if test "${with_discovery+set}" = set; then :
2677 withval
=$with_discovery; do_discovery
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-discovery=$withval"
2684 # Check whether --with-systemd was given.
2685 if test "${with_systemd+set}" = set; then :
2686 withval
=$with_systemd; do_systemd
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-systemd=$withval"
2693 # Check whether --with-qt was given.
2694 if test "${with_qt+set}" = set; then :
2695 withval
=$with_qt; do_qt
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-qt=$withval"
2702 # Check whether --with-python was given.
2703 if test "${with_python+set}" = set; then :
2704 withval
=$with_python; do_python
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python=$withval"
2711 # Check whether --with-python3 was given.
2712 if test "${with_python3+set}" = set; then :
2713 withval
=$with_python3; do_python3
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python3=$withval"
2720 # Check whether --with-books was given.
2721 if test "${with_books+set}" = set; then :
2722 withval
=$with_books; do_books
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books=$withval"
2729 # Check whether --with-books-brand was given.
2730 if test "${with_books_brand+set}" = set; then :
2731 withval
=$with_books_brand; do_books_brand
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2733 do_books_brand
=common
2738 # Check whether --with-papi was given.
2739 if test "${with_papi+set}" = set; then :
2740 withval
=$with_papi; do_papi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-papi=$withval"
2747 # Check whether --with-perfevent was given.
2748 if test "${with_perfevent+set}" = set; then :
2749 withval
=$with_perfevent; do_perfevent
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2756 # Check whether --with-pmdajson was given.
2757 if test "${with_pmdajson+set}" = set; then :
2758 withval
=$with_pmdajson; do_pmdajson
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2765 # Check whether --with-manager was given.
2766 if test "${with_manager+set}" = set; then :
2767 withval
=$with_manager; do_manager
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-manager=$withval"
2774 # Check whether --with-webapi was given.
2775 if test "${with_webapi+set}" = set; then :
2776 withval
=$with_webapi; do_webapi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webapi=$withval"
2783 # Check whether --with-webjs was given.
2784 if test "${with_webjs+set}" = set; then :
2785 withval
=$with_webjs; do_webjs
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webjs=$withval"
2792 # Check whether --with-vector was given.
2793 if test "${with_vector+set}" = set; then :
2794 withval
=$with_vector; do_vector
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-vector=$withval"
2802 # Check whether --with-make was given.
2803 if test "${with_make+set}" = set; then :
2804 withval
=$with_make; MAKE
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-make=$withval"
2811 # Check whether --with-tar was given.
2812 if test "${with_tar+set}" = set; then :
2813 withval
=$with_tar; TAR
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-tar=$withval"
2820 # Check whether --with-zip was given.
2821 if test "${with_zip+set}" = set; then :
2822 withval
=$with_zip; ZIP
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-zip=$withval"
2829 # Note: the following environment variables may be
2830 # set to override the defaults.
2832 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2836 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2837 if test -f "$ac_dir/install-sh"; then
2839 ac_install_sh
="$ac_aux_dir/install-sh -c"
2841 elif test -f "$ac_dir/install.sh"; then
2843 ac_install_sh
="$ac_aux_dir/install.sh -c"
2845 elif test -f "$ac_dir/shtool"; then
2847 ac_install_sh
="$ac_aux_dir/shtool install -c"
2851 if test -z "$ac_aux_dir"; then
2852 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2855 # These three variables are undocumented and unsupported,
2856 # and are intended to be withdrawn in a future Autoconf release.
2857 # They can cause serious problems if a builder's source tree is in a directory
2858 # whose full name contains unusual characters.
2859 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2860 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2861 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2864 # Make sure we can run config.sub.
2865 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2866 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2869 $as_echo_n "checking build system type... " >&6; }
2870 if ${ac_cv_build+:} false
; then :
2871 $as_echo_n "(cached) " >&6
2873 ac_build_alias
=$build_alias
2874 test "x$ac_build_alias" = x
&&
2875 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2876 test "x$ac_build_alias" = x
&&
2877 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2878 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2879 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2883 $as_echo "$ac_cv_build" >&6; }
2884 case $ac_cv_build in
2886 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2889 ac_save_IFS
=$IFS; IFS
='-'
2895 # Remember, the first character of IFS is used to create $*,
2896 # except with old shells:
2899 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2903 $as_echo_n "checking host system type... " >&6; }
2904 if ${ac_cv_host+:} false
; then :
2905 $as_echo_n "(cached) " >&6
2907 if test "x$host_alias" = x
; then
2908 ac_cv_host
=$ac_cv_build
2910 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2911 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2916 $as_echo "$ac_cv_host" >&6; }
2919 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2922 ac_save_IFS
=$IFS; IFS
='-'
2928 # Remember, the first character of IFS is used to create $*,
2929 # except with old shells:
2932 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2936 $as_echo_n "checking target system type... " >&6; }
2937 if ${ac_cv_target+:} false
; then :
2938 $as_echo_n "(cached) " >&6
2940 if test "x$target_alias" = x
; then
2941 ac_cv_target
=$ac_cv_host
2943 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2944 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2949 $as_echo "$ac_cv_target" >&6; }
2950 case $ac_cv_target in
2952 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2954 target
=$ac_cv_target
2955 ac_save_IFS
=$IFS; IFS
='-'
2961 # Remember, the first character of IFS is used to create $*,
2962 # except with old shells:
2965 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2968 # The aliases save the names the user supplied, while $host etc.
2969 # will get canonicalized.
2970 test -n "$target_alias" &&
2971 test "$program_prefix$program_suffix$program_transform_name" = \
2973 program_prefix
=${target_alias}-
2975 if test -z "$target"
2978 FATAL ERROR: Cannot guess your target, try explicit specification
2979 using --target or mailto: pcp@oss.sgi.com to ask.'
2980 rm -rf conftest conftest.
*
2983 target
=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
2984 target_os
=`echo $target_os | sed 's/solaris2\..*/solaris/'`
2985 target_os
=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
2987 build
=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
2988 build_os
=`echo $build_os | sed 's/solaris2\..*/solaris/'`
2989 build_os
=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
2992 echo Building on
$build for $target
2993 echo "Build: os=$build_os cpu=$build_cpu"
2994 echo "Target: os=$target_os cpu=$target_cpu"
2996 if test "$cross_compiling" = "yes"; then
2997 if test -f .
/config.
$target_os; then
2998 . .
/config.
$target_os
3002 FATAL ERROR: Cannot perform cross-compilation without a file to source
3003 configuration information from (config.$target_os is missing)"
3004 rm -rf conftest conftest.
*
3011 target_distro
=$target_os
3012 if test $target_os = linux
3015 $as_echo "#define IS_LINUX 1" >>confdefs.h
3017 test -f /etc
/SuSE-release
&& target_distro
=suse
3018 test -f /etc
/fedora-release
&& target_distro
=fedora
3019 test -f /etc
/redhat-release
&& target_distro
=redhat
3020 test -f /etc
/debian_version
&& target_distro
=debian
3021 test -f /etc
/slackware-version
&& target_distro
=slackware
3022 test -f /etc
/gentoo-release
&& target_distro
=gentoo
3023 test -f /etc
/mandriva-release
&& target_distro
=mandriva
3024 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3025 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3026 pcp_ps_all_flags
=-efw
3027 elif test $target_os = darwin
3030 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3032 target_distro
=macosx
3033 version
=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3034 CFLAGS
="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3035 if test $version -ge 106
3038 CFLAGS
="$CFLAGS -arch x86_64"
3041 pcp_platform_paths
='/usr/local/bin'
3042 pcp_ps_all_flags
=auxww
3043 elif test $target_os = mingw
3046 $as_echo "#define IS_MINGW 1" >>confdefs.h
3048 CFLAGS
="-fno-strict-aliasing"
3049 pcp_platform_paths
=''
3050 pcp_ps_all_flags
=-efW
3051 elif test $target_os = solaris
3054 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3056 export CFLAGS_IF_GCC
="-fPIC -fno-strict-aliasing"
3057 export CFLAGS_IF_SUNCC
="-fPIC -xalias_level=any"
3058 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3059 pcp_ps_all_flags
=-ef
3060 elif test $target_os = aix
3063 $as_echo "#define IS_AIX 1" >>confdefs.h
3065 export CFLAGS
="-qcpluscmt"
3066 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3067 pcp_ps_all_flags
=-ef
3068 elif test $target_os = freebsd ||
test $target_os = kfreebsd
3071 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3073 test -f /etc
/debian_version
&& target_distro
=debian
3074 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3075 if test $target_os = kfreebsd
3077 pcp_ps_all_flags
=-efw
3079 pcp_ps_all_flags
=auxww
3081 pcp_platform_paths
='/usr/bin/X11'
3082 test -d /usr
/local
/bin
&& pcp_platform_paths
="$pcp_platform_paths:/usr/local/bin"
3083 test -d /usr
/bsd
&& pcp_platform_paths
="$pcp_platform_paths:/usr/bsd"
3084 elif test $target_os = gnu
3087 $as_echo "#define IS_GNU 1" >>confdefs.h
3089 test -f /etc
/debian_version
&& target_distro
=debian
3090 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3091 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3092 pcp_ps_all_flags
=-efw
3093 elif test $target_os = netbsdelf
3097 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3099 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3100 pcp_platform_paths
='/usr/pkg/bin'
3101 pcp_ps_all_flags
=auxww
3104 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3105 rm -rf conftest conftest.
*
3111 if test "$use_optimization" = no
3113 optimization
="-O0 -g"
3115 optimization
="-O2 -g"
3126 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3129 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
3133 $as_echo_n "(cached) " >&6
3137 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir
=.
3145 for ac_exec_ext
in '' $ac_executable_extensions; do
3146 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
3159 if test -n "$PKG_CONFIG"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3161 $as_echo "$PKG_CONFIG" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$ac_cv_path_PKG_CONFIG"; then
3170 ac_pt_PKG_CONFIG
=$PKG_CONFIG
3171 # Extract the first word of "pkg-config", so it can be a program name with args.
3172 set dummy pkg-config
; ac_word
=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
3176 $as_echo_n "(cached) " >&6
3178 case $ac_pt_PKG_CONFIG in
3180 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir
=.
3188 for ac_exec_ext
in '' $ac_executable_extensions; do
3189 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
3202 if test -n "$ac_pt_PKG_CONFIG"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3204 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3210 if test "x$ac_pt_PKG_CONFIG" = x
; then
3213 case $cross_compiling:$ac_tool_warned in
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3217 ac_tool_warned
=yes ;;
3219 PKG_CONFIG
=$ac_pt_PKG_CONFIG
3222 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
3226 if test -n "$PKG_CONFIG"; then
3227 _pkg_min_version
=0.9.0
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3229 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3230 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3232 $as_echo "yes" >&6; }
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3239 if test -z "$PKG_CONFIG"
3242 echo "FATAL ERROR: did not find a pkg-config executable."
3243 echo "You can either set \$PKG_CONFIG as the full path to pkg-config"
3244 echo "in the environment, or install the pkgconfig package."
3245 rm -rf conftest conftest.
*
3251 ac_cpp
='$CPP $CPPFLAGS'
3252 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256 for ac_prog
in suncc gcc cc
3258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3259 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_CC+:} false
; then :
3263 $as_echo_n "(cached) " >&6
3265 if test -n "$CC"; then
3266 ac_cv_prog_CC
="$CC" # Let the user override the test.
3268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir
=.
3273 for ac_exec_ext
in '' $ac_executable_extensions; do
3274 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3295 test -n "$CC" && break
3298 if test -z "$CC"; then
3300 for ac_prog
in suncc gcc cc
3302 # Extract the first word of "$ac_prog", so it can be a program name with args.
3303 set dummy
$ac_prog; ac_word
=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3307 $as_echo_n "(cached) " >&6
3309 if test -n "$ac_ct_CC"; then
3310 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir
=.
3317 for ac_exec_ext
in '' $ac_executable_extensions; do
3318 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3319 ac_cv_prog_ac_ct_CC
="$ac_prog"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3330 if test -n "$ac_ct_CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3332 $as_echo "$ac_ct_CC" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3339 test -n "$ac_ct_CC" && break
3342 if test "x$ac_ct_CC" = x
; then
3345 case $cross_compiling:$ac_tool_warned in
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned
=yes ;;
3356 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $?
"no acceptable C compiler found in \$PATH
3359 See \`config.log' for more details" "$LINENO" 5; }
3361 # Provide some information about the compiler.
3362 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3365 for ac_option
in --version -v -V -qversion; do
3366 { { ac_try
="$ac_compiler $ac_option >&5"
3368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3375 if test -s conftest.err; then
3377 ... rest of stderr output deleted ...
3378 10q' conftest.err >conftest.er1
3379 cat conftest.er1 >&5
3381 rm -f conftest.er1 conftest.err
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3397 ac_clean_files_save=$ac_clean_files
3398 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3399 # Try to create an executable without -o first, disregard a.out.
3400 # It will help us diagnose broken compilers, and finding out an intuition
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3403 $as_echo_n "checking whether the C compiler works... " >&6; }
3404 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3406 # The possible output files:
3407 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3410 for ac_file in $ac_files
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3419 if { { ac_try="$ac_link_default"
3421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3422 *) ac_try_echo
=$ac_try;;
3424 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_link_default") 2>&5
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3431 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3432 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3433 # so that the user can short-circuit this test for compilers unknown to
3435 for ac_file
in $ac_files ''
3437 test -f "$ac_file" ||
continue
3439 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3442 # We found the default executable, but exeext='' is most
3446 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3448 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 # We set ac_cv_exeext here because the later test for it is not
3451 # safe: cross compilers may not add the suffix if given an `-o'
3452 # argument, so we may need to know it at that point already.
3453 # Even if this section looks crufty: it has the advantage of
3460 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3465 if test -z "$ac_file"; then :
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.
$ac_ext >&5
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error
77 "C compiler cannot create executables
3474 See \`config.log' for more details" "$LINENO" 5; }
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477 $as_echo "yes" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3480 $as_echo_n "checking for C compiler default output file name... " >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3482 $as_echo "$ac_file" >&6; }
3483 ac_exeext
=$ac_cv_exeext
3485 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3486 ac_clean_files
=$ac_clean_files_save
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3488 $as_echo_n "checking for suffix of executables... " >&6; }
3489 if { { ac_try
="$ac_link"
3491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_link") 2>&5
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }; then :
3500 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3501 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3502 # work properly (i.e., refer to `conftest.exe'), while it won't with
3504 for ac_file
in conftest.exe conftest conftest.
*; do
3505 test -f "$ac_file" ||
continue
3507 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3508 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3516 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3517 See \`config.log' for more details" "$LINENO" 5; }
3519 rm -f conftest conftest
$ac_cv_exeext
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3521 $as_echo "$ac_cv_exeext" >&6; }
3523 rm -f conftest.
$ac_ext
3524 EXEEXT
=$ac_cv_exeext
3526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3532 FILE *f = fopen ("conftest.out", "w");
3533 return ferror (f) || fclose (f) != 0;
3539 ac_clean_files
="$ac_clean_files conftest.out"
3540 # Check that the compiler produces executables we can run. If not, either
3541 # the compiler is broken, or we cross compile.
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3543 $as_echo_n "checking whether we are cross compiling... " >&6; }
3544 if test "$cross_compiling" != yes; then
3545 { { ac_try
="$ac_link"
3547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_link") 2>&5
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }
3556 if { ac_try='./conftest$ac_cv_exeext'
3557 { { case "(($ac_try" in
3558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3559 *) ac_try_echo
=$ac_try;;
3561 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_try") 2>&5
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; }; then
3569 if test "$cross_compiling" = maybe
; then
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error $?
"cannot run C compiled programs.
3575 If you meant to cross compile, use \`--host'.
3576 See \`config.log' for more details" "$LINENO" 5; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3581 $as_echo "$cross_compiling" >&6; }
3583 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3584 ac_clean_files
=$ac_clean_files_save
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3586 $as_echo_n "checking for suffix of object files... " >&6; }
3587 if ${ac_cv_objext+:} false
; then :
3588 $as_echo_n "(cached) " >&6
3590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3601 rm -f conftest.o conftest.obj
3602 if { { ac_try
="$ac_compile"
3604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_compile") 2>&5
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; then :
3613 for ac_file in conftest.o conftest.obj conftest.*; do
3614 test -f "$ac_file" || continue;
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3622 $as_echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3628 See \
`config.log' for more details" "$LINENO" 5; }
3630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3633 $as_echo "$ac_cv_objext" >&6; }
3634 OBJEXT=$ac_cv_objext
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3637 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3638 if ${ac_cv_c_compiler_gnu+:} false; then :
3639 $as_echo_n "(cached) " >&6
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3655 if ac_fn_c_try_compile "$LINENO"; then :
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3665 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3666 if test $ac_compiler_gnu = yes; then
3671 ac_test_CFLAGS=${CFLAGS+set}
3672 ac_save_CFLAGS=$CFLAGS
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3674 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3675 if ${ac_cv_prog_cc_g+:} false; then :
3676 $as_echo_n "(cached) " >&6
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3693 if ac_fn_c_try_compile "$LINENO"; then :
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3708 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_c_werror_flag=$ac_save_c_werror_flag
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3724 if ac_fn_c_try_compile "$LINENO"; then :
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 ac_c_werror_flag=$ac_save_c_werror_flag
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3735 $as_echo "$ac_cv_prog_cc_g" >&6; }
3736 if test "$ac_test_CFLAGS" = set; then
3737 CFLAGS=$ac_save_CFLAGS
3738 elif test $ac_cv_prog_cc_g = yes; then
3739 if test "$GCC" = yes; then
3745 if test "$GCC" = yes; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3752 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3753 if ${ac_cv_prog_cc_c89+:} false; then :
3754 $as_echo_n "(cached) " >&6
3756 ac_cv_prog_cc_c89=no
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3764 struct buf { int x; };
3765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3766 static char *e (p, i)
3772 static char *f (char * (*g) (char **, int), char **p, ...)
3777 s = g (p, va_arg (v,int));
3782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3783 function prototypes and stuff, but not '\xHH' hex character constants.
3784 These don't provoke an error unfortunately, instead are silently treated
3785 as 'x'. The following induces an error, until -std is added to get
3786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3787 array size at least. It's necessary to write '\x00'==0 to get something
3788 that's true only with -std. */
3789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3792 inside strings and character constants. */
3794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3796 int test (int i, double x);
3797 struct s1 {int (*f) (int a);};
3798 struct s2 {int (*f) (double a);};
3799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3813 CC="$ac_save_CC $ac_arg"
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_prog_cc_c89=$ac_arg
3817 rm -f core conftest.err conftest.$ac_objext
3818 test "x$ac_cv_prog_cc_c89" != "xno" && break
3820 rm -f conftest.$ac_ext
3825 case "x$ac_cv_prog_cc_c89" in
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3828 $as_echo "none needed" >&6; } ;;
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3831 $as_echo "unsupported" >&6; } ;;
3833 CC="$CC $ac_cv_prog_cc_c89"
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3835 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3837 if test "x$ac_cv_prog_cc_c89" != xno; then :
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 if test $target_os = solaris
3849 # Extract the first word of "$CC", so it can be a program name with args.
3850 set dummy $CC; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if ${ac_cv_path_CCPATH+:} false; then :
3854 $as_echo_n "(cached) " >&6
3858 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3880 CCPATH=$ac_cv_path_CCPATH
3881 if test -n "$CCPATH"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3883 $as_echo "$CCPATH" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3891 if test "$GCC" = "yes"
3893 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3895 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3897 if test "$use_64bit" = "no"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3902 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3907 CFLAGS="$CFLAGS -m64"
3908 LDFLAGS="$LDFLAGS -m64"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 $as_echo "yes" >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3928 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3930 CFLAGS="-O $PCFLAGS"
3934 # Add some security-related gcc flags
3935 if echo "$CFLAGS" | grep stack-protector >/dev/null
3939 # Check whether --enable-ssp was given.
3940 if test "${enable_ssp+set}" = set; then :
3941 enableval=$enable_ssp;
3945 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3947 save_CFLAGS="$CFLAGS"
3948 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3953 if ac_fn_c_try_compile "$LINENO"; then :
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3956 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3957 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3961 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3962 CFLAGS="$save_CFLAGS"
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 # Check for even more security-related gcc/linker flags, useful for daemons
3973 # Check whether --enable-pie was given.
3974 if test "${enable_pie+set}" = set; then :
3975 enableval=$enable_pie;
3978 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
3981 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
3982 save_CFLAGS="$CFLAGS"
3983 save_LDFLAGS="$LDFLAGS"
3984 CFLAGS="$CFLAGS $PIECFLAGS"
3985 LDFLAGS="$LDFLAGS $PIELDFLAGS"
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3990 if ac_fn_c_try_link "$LINENO"; then :
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
3993 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
3998 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4003 rm -f core conftest.err conftest.$ac_objext \
4004 conftest$ac_exeext conftest.$ac_ext
4005 CFLAGS="$save_CFLAGS"
4006 LDFLAGS="$save_LDFLAGS"
4012 # Check for support for symbol hiding via gcc flags
4013 # Check whether --enable-visibility was given.
4014 if test "${enable_visibility+set}" = set; then :
4015 enableval=$enable_visibility;
4018 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4020 INVISIBILITY="-fvisibility=hidden"
4021 save_CFLAGS="$CFLAGS"
4022 CFLAGS="$CFLAGS -c $INVISIBILITY"
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 int visible () { return 0; }
4027 if ac_fn_c_try_compile "$LINENO"; then :
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4030 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4035 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 CFLAGS="$save_CFLAGS"
4046 ac_cpp='$CXXCPP $CPPFLAGS'
4047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4050 if test -z "$CXX"; then
4051 if test -n "$CCC"; then
4054 if test -n "$ac_tool_prefix"; then
4055 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_prog_CXX+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 if test -n "$CXX"; then
4065 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 if test -n "$CXX"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4087 $as_echo "$CXX" >&6; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4094 test -n "$CXX" && break
4097 if test -z "$CXX"; then
4099 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4101 # Extract the first word of "$ac_prog", so it can be a program name with args.
4102 set dummy $ac_prog; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4106 $as_echo_n "(cached) " >&6
4108 if test -n "$ac_ct_CXX"; then
4109 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_ac_ct_CXX="$ac_prog"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4129 if test -n "$ac_ct_CXX"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4131 $as_echo "$ac_ct_CXX" >&6; }
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4138 test -n "$ac_ct_CXX" && break
4141 if test "x$ac_ct_CXX" = x; then
4144 case $cross_compiling:$ac_tool_warned in
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4148 ac_tool_warned=yes ;;
4156 # Provide some information about the compiler.
4157 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4160 for ac_option in --version -v -V -qversion; do
4161 { { ac_try="$ac_compiler $ac_option >&5"
4163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4164 *) ac_try_echo
=$ac_try;;
4166 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4167 $as_echo "$ac_try_echo"; } >&5
4168 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4170 if test -s conftest.err
; then
4172 ... rest of stderr output deleted ...
4173 10q' conftest.err
>conftest.er1
4174 cat conftest.er1
>&5
4176 rm -f conftest.er1 conftest.err
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4182 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4183 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4184 $as_echo_n "(cached) " >&6
4186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4200 if ac_fn_cxx_try_compile
"$LINENO"; then :
4205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4206 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4210 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4211 if test $ac_compiler_gnu = yes; then
4216 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4217 ac_save_CXXFLAGS
=$CXXFLAGS
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4219 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4220 if ${ac_cv_prog_cxx_g+:} false
; then :
4221 $as_echo_n "(cached) " >&6
4223 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4224 ac_cxx_werror_flag
=yes
4227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4238 if ac_fn_cxx_try_compile
"$LINENO"; then :
4239 ac_cv_prog_cxx_g
=yes
4242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4253 if ac_fn_cxx_try_compile
"$LINENO"; then :
4256 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4269 if ac_fn_cxx_try_compile
"$LINENO"; then :
4270 ac_cv_prog_cxx_g
=yes
4272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4277 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4280 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4281 if test "$ac_test_CXXFLAGS" = set; then
4282 CXXFLAGS
=$ac_save_CXXFLAGS
4283 elif test $ac_cv_prog_cxx_g = yes; then
4284 if test "$GXX" = yes; then
4290 if test "$GXX" = yes; then
4297 ac_cpp
='$CPP $CPPFLAGS'
4298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4305 $as_echo_n "checking for working C++ compiler... " >&6; }
4307 ac_cpp
='$CXXCPP $CPPFLAGS'
4308 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4319 const char gday[] = "G'day, world\n";
4324 if ac_fn_cxx_try_compile
"$LINENO"; then :
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326 $as_echo "yes" >&6; }
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4334 ac_cpp
='$CPP $CPPFLAGS'
4335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4340 # Prevent shared libraries from being built for libpcp and other core libraries
4341 # Check whether --enable-shared was given.
4342 if test "${enable_shared+set}" = set; then :
4343 enableval
=$enable_shared; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --disable-shared=$withval"
4348 for ac_prog
in flex
lex
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy
$ac_prog; ac_word
=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_LEX+:} false
; then :
4355 $as_echo_n "(cached) " >&6
4357 if test -n "$LEX"; then
4358 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir
=.
4365 for ac_exec_ext
in '' $ac_executable_extensions; do
4366 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4367 ac_cv_prog_LEX
="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 if test -n "$LEX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4380 $as_echo "$LEX" >&6; }
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$LEX" && break
4389 test -n "$LEX" || LEX
=":"
4391 if test "x$LEX" != "x:"; then
4392 cat >conftest.l
<<_ACEOF
4398 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4399 yyless ((input () != 0)); }
4400 f { unput (yytext[0]); }
4401 . { BEGIN INITIAL; }
4403 #ifdef YYTEXT_POINTER
4404 extern char *yytext;
4409 return ! yylex () + ! yywrap ();
4412 { { ac_try
="$LEX conftest.l"
4414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$LEX conftest.l") 2>&5
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4424 $as_echo_n "checking lex output file root... " >&6; }
4425 if ${ac_cv_prog_lex_root+:} false; then :
4426 $as_echo_n "(cached) " >&6
4429 if test -f lex.yy.c; then
4430 ac_cv_prog_lex_root=lex.yy
4431 elif test -f lexyy.c; then
4432 ac_cv_prog_lex_root=lexyy
4434 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4438 $as_echo "$ac_cv_prog_lex_root" >&6; }
4439 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4441 if test -z "${LEXLIB+set}"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4443 $as_echo_n "checking lex library... " >&6; }
4444 if ${ac_cv_lib_lex+:} false; then :
4445 $as_echo_n "(cached) " >&6
4449 ac_cv_lib_lex='none needed'
4450 for ac_lib in '' -lfl -ll; do
4451 LIBS="$ac_lib $ac_save_LIBS"
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454 `cat $LEX_OUTPUT_ROOT.c
`
4456 if ac_fn_c_try_link "$LINENO"; then :
4457 ac_cv_lib_lex=$ac_lib
4459 rm -f core conftest.err conftest.$ac_objext \
4460 conftest$ac_exeext conftest.$ac_ext
4461 test "$ac_cv_lib_lex" != 'none needed' && break
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4467 $as_echo "$ac_cv_lib_lex" >&6; }
4468 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4473 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4474 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 # POSIX says lex can declare yytext either as a pointer or an array; the
4478 # default is implementation-dependent. Figure out which it is, since
4479 # not all implementations provide the %pointer and %array declarations.
4480 ac_cv_prog_lex_yytext_pointer=no
4482 LIBS="$LEXLIB $ac_save_LIBS"
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4486 #define YYTEXT_POINTER 1
4487 `cat $LEX_OUTPUT_ROOT.c
`
4489 if ac_fn_c_try_link "$LINENO"; then :
4490 ac_cv_prog_lex_yytext_pointer=yes
4492 rm -f core conftest.err conftest.$ac_objext \
4493 conftest$ac_exeext conftest.$ac_ext
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4498 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4499 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4501 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4504 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4509 for ac_prog in 'bison -y' byacc
4511 # Extract the first word of "$ac_prog", so it can be a program name with args.
4512 set dummy $ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_YACC+:} false; then :
4516 $as_echo_n "(cached) " >&6
4518 if test -n "$YACC"; then
4519 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_YACC="$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 YACC=$ac_cv_prog_YACC
4539 if test -n "$YACC"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4541 $as_echo "$YACC" >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4548 test -n "$YACC" && break
4550 test -n "$YACC" || YACC="yacc"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if yacc is executable" >&5
4556 $as_echo_n "checking if yacc is executable... " >&6; }
4557 binary=`echo $yacc |
awk '{print $1}'`
4558 binary=`which "$binary"`
4559 if test -x "$binary"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562 $as_echo " yes" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo " no" >&6; }
4567 echo "FATAL ERROR: did not find a valid yacc executable."
4568 echo "You can either set \$YACC as the full path to yacc"
4569 echo "in the environment, or install a yacc/bison package."
4570 rm -rf conftest conftest.*
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lex is executable" >&5
4574 $as_echo_n "checking if lex is executable... " >&6; }
4575 binary=`echo $lex |
awk '{print $1}'`
4576 binary=`which "$binary"`
4577 if test -x "$binary"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580 $as_echo " yes" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo " no" >&6; }
4585 echo "FATAL ERROR: did not find a valid lex executable."
4586 echo "You can either set \$LEX as the full path to lex"
4587 echo "in the environment, or install a lex/flex package."
4588 rm -rf conftest conftest.*
4592 if test -z "$AWK"; then
4593 for ac_prog in gawk awk
4595 # Extract the first word of "$ac_prog", so it can be a program name with args.
4596 set dummy $ac_prog; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_path_AWK+:} false; then :
4600 $as_echo_n "(cached) " >&6
4604 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 if test -n "$AWK"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4628 $as_echo "$AWK" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4635 test -n "$AWK" && break
4637 test -n "$AWK" || AWK="/usr/bin/awk"
4650 if test -z "$SED"; then
4651 # Extract the first word of "sed", so it can be a program name with args.
4652 set dummy sed; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_path_SED+:} false; then :
4656 $as_echo_n "(cached) " >&6
4660 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4683 if test -n "$SED"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4685 $as_echo "$SED" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4695 if test -z "$ECHO"; then
4696 # Extract the first word of "echo", so it can be a program name with args.
4697 set dummy echo; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_path_ECHO+:} false; then :
4701 $as_echo_n "(cached) " >&6
4705 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4727 ECHO=$ac_cv_path_ECHO
4728 if test -n "$ECHO"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4730 $as_echo "$ECHO" >&6; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4740 if test -z "$WHICH"; then
4741 # Extract the first word of "which", so it can be a program name with args.
4742 set dummy which; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if ${ac_cv_path_WHICH+:} false; then :
4746 $as_echo_n "(cached) " >&6
4750 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4772 WHICH=$ac_cv_path_WHICH
4773 if test -n "$WHICH"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4775 $as_echo "$WHICH" >&6; }
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4787 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4788 if test $target_os = mingw; then
4789 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4791 if test -x $d/sort; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4800 $as_echo "$sort" >&6; }
4805 echo "FATAL ERROR: $sort -n failed!"
4806 rm -rf conftest conftest.*
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4812 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4813 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4815 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4819 $as_echo "neither?" >&6; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4823 $as_echo " -n" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4828 $as_echo "backslash-c" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4834 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4835 if ${ac_cv_path_GREP+:} false; then :
4836 $as_echo_n "(cached) " >&6
4838 if test -z "$GREP"; then
4839 ac_path_GREP_found=false
4840 # Loop through the user's path and test for each of PROGNAME-LIST
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4845 test -z "$as_dir" && as_dir=.
4846 for ac_prog in grep ggrep; do
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4849 as_fn_executable_p "$ac_path_GREP" || continue
4850 # Check for GNU ac_path_GREP and select it if it is found.
4851 # Check for GNU $ac_path_GREP
4852 case `"$ac_path_GREP" --version 2>&1` in
4854 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4857 $as_echo_n 0123456789 >"conftest.in"
4860 cat "conftest.in" "conftest.in" >"conftest.tmp"
4861 mv "conftest.tmp" "conftest.in"
4862 cp "conftest.in" "conftest.nl"
4863 $as_echo 'GREP' >> "conftest.nl"
4864 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4866 as_fn_arith $ac_count + 1 && ac_count=$as_val
4867 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4868 # Best one so far, save it but keep looking for a better one
4869 ac_cv_path_GREP="$ac_path_GREP"
4870 ac_path_GREP_max=$ac_count
4872 # 10*(2^10) chars as input seems more than enough
4873 test $ac_count -gt 10 && break
4875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4878 $ac_path_GREP_found && break 3
4883 if test -z "$ac_cv_path_GREP"; then
4884 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4887 ac_cv_path_GREP=$GREP
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4892 $as_echo "$ac_cv_path_GREP" >&6; }
4893 GREP="$ac_cv_path_GREP"
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4897 $as_echo_n "checking for egrep... " >&6; }
4898 if ${ac_cv_path_EGREP+:} false; then :
4899 $as_echo_n "(cached) " >&6
4901 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4902 then ac_cv_path_EGREP="$GREP -E"
4904 if test -z "$EGREP"; then
4905 ac_path_EGREP_found=false
4906 # Loop through the user's path and test for each of PROGNAME-LIST
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4911 test -z "$as_dir" && as_dir=.
4912 for ac_prog in egrep; do
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4915 as_fn_executable_p "$ac_path_EGREP" || continue
4916 # Check for GNU ac_path_EGREP and select it if it is found.
4917 # Check for GNU $ac_path_EGREP
4918 case `"$ac_path_EGREP" --version 2>&1` in
4920 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4923 $as_echo_n 0123456789 >"conftest.in"
4926 cat "conftest.in" "conftest.in" >"conftest.tmp"
4927 mv "conftest.tmp" "conftest.in"
4928 cp "conftest.in" "conftest.nl"
4929 $as_echo 'EGREP' >> "conftest.nl"
4930 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4932 as_fn_arith $ac_count + 1 && ac_count=$as_val
4933 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4934 # Best one so far, save it but keep looking for a better one
4935 ac_cv_path_EGREP="$ac_path_EGREP"
4936 ac_path_EGREP_max=$ac_count
4938 # 10*(2^10) chars as input seems more than enough
4939 test $ac_count -gt 10 && break
4941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4944 $ac_path_EGREP_found && break 3
4949 if test -z "$ac_cv_path_EGREP"; then
4950 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4953 ac_cv_path_EGREP=$EGREP
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4959 $as_echo "$ac_cv_path_EGREP" >&6; }
4960 EGREP="$ac_cv_path_EGREP"
4964 if test "$do_probes" = "check" -o "$do_probes" = "yes"
4967 for ac_prog in dtrace
4969 # Extract the first word of "$ac_prog", so it can be a program name with args.
4970 set dummy $ac_prog; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_DTRACE+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 if test -n "$DTRACE"; then
4977 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_DTRACE="$ac_prog"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 DTRACE=$ac_cv_prog_DTRACE
4997 if test -n "$DTRACE"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
4999 $as_echo "$DTRACE" >&6; }
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5006 test -n "$DTRACE" && break
5009 if test -z "$DTRACE"
5011 if test "$do_probes" = "yes"
5013 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5024 # On Suns, sometimes $CPP names a directory.
5025 if test -n "$CPP" && test -d "$CPP"; then
5028 if test -z "$CPP"; then
5029 if ${ac_cv_prog_CPP+:} false; then :
5030 $as_echo_n "(cached) " >&6
5032 # Double quotes because CPP needs to be expanded
5033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5036 for ac_c_preproc_warn_flag in '' yes
5038 # Use a header file that comes with gcc, so configuring glibc
5039 # with a fresh cross-compiler works.
5040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041 # <limits.h> exists even on freestanding compilers.
5042 # On the NeXT, cc -E runs the code through the compiler's parser,
5043 # not just through cpp. "Syntax error" is here to catch this case.
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5047 # include <limits.h>
5049 # include <assert.h>
5053 if ac_fn_c_try_cpp "$LINENO"; then :
5056 # Broken: fails on valid input.
5059 rm -f conftest.err conftest.i conftest.$ac_ext
5061 # OK, works on sane cases. Now check whether nonexistent headers
5062 # can be detected and how.
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5065 #include <ac_nonexistent.h>
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5068 # Broken: success on invalid input.
5071 # Passes both tests.
5075 rm -f conftest.err conftest.i conftest.$ac_ext
5078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5079 rm -f conftest.i conftest.err conftest.
$ac_ext
5080 if $ac_preproc_ok; then :
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5093 $as_echo "$CPP" >&6; }
5095 for ac_c_preproc_warn_flag
in '' yes
5097 # Use a header file that comes with gcc, so configuring glibc
5098 # with a fresh cross-compiler works.
5099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5100 # <limits.h> exists even on freestanding compilers.
5101 # On the NeXT, cc -E runs the code through the compiler's parser,
5102 # not just through cpp. "Syntax error" is here to catch this case.
5103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5106 # include <limits.h>
5108 # include <assert.h>
5112 if ac_fn_c_try_cpp
"$LINENO"; then :
5115 # Broken: fails on valid input.
5118 rm -f conftest.err conftest.i conftest.
$ac_ext
5120 # OK, works on sane cases. Now check whether nonexistent headers
5121 # can be detected and how.
5122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 #include <ac_nonexistent.h>
5126 if ac_fn_c_try_cpp
"$LINENO"; then :
5127 # Broken: success on invalid input.
5130 # Passes both tests.
5134 rm -f conftest.err conftest.i conftest.
$ac_ext
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.i conftest.err conftest.
$ac_ext
5139 if $ac_preproc_ok; then :
5142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5144 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5145 See \`config.log' for more details" "$LINENO" 5; }
5149 ac_cpp
='$CPP $CPPFLAGS'
5150 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5156 $as_echo_n "checking for ANSI C header files... " >&6; }
5157 if ${ac_cv_header_stdc+:} false
; then :
5158 $as_echo_n "(cached) " >&6
5160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5175 if ac_fn_c_try_compile
"$LINENO"; then :
5176 ac_cv_header_stdc
=yes
5178 ac_cv_header_stdc
=no
5180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5182 if test $ac_cv_header_stdc = yes; then
5183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190 $EGREP "memchr" >/dev
/null
2>&1; then :
5193 ac_cv_header_stdc
=no
5199 if test $ac_cv_header_stdc = yes; then
5200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5207 $EGREP "free" >/dev
/null
2>&1; then :
5210 ac_cv_header_stdc
=no
5216 if test $ac_cv_header_stdc = yes; then
5217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5218 if test "$cross_compiling" = yes; then :
5221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5225 #if ((' ' & 0x0FF) == 0x020)
5226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5229 # define ISLOWER(c) \
5230 (('a' <= (c) && (c) <= 'i') \
5231 || ('j' <= (c) && (c) <= 'r') \
5232 || ('s' <= (c) && (c) <= 'z'))
5233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5241 for (i = 0; i < 256; i++)
5242 if (XOR (islower (i), ISLOWER (i))
5243 || toupper (i) != TOUPPER (i))
5248 if ac_fn_c_try_run
"$LINENO"; then :
5251 ac_cv_header_stdc
=no
5253 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5254 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5260 $as_echo "$ac_cv_header_stdc" >&6; }
5261 if test $ac_cv_header_stdc = yes; then
5263 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5267 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5268 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5269 inttypes.h stdint.h unistd.h
5271 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5272 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5274 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5275 cat >>confdefs.h
<<_ACEOF
5276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5284 for ac_header
in sys
/sdt.h
5286 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5287 if test "x$ac_cv_header_sys_sdt_h" = xyes
; then :
5288 cat >>confdefs.h
<<_ACEOF
5289 #define HAVE_SYS_SDT_H 1
5292 if $enable_probes = true
5294 if test $target_os = kfreebsd
5297 elif test $target_os = freebsd
5299 rm -f conftest.d conftest.h
5300 cat <<End-of-File >conftest.d
5305 if dtrace
-s conftest.d
-h >/dev
/null
2>&1
5307 if test ! -f conftest.h
5310 if test "$do_probes" = "yes"
5312 as_fn_error $?
"cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5317 if test "$do_probes" = "yes"
5319 as_fn_error $?
"cannot enable static probes - dtrace failed" "$LINENO" 5
5328 if test "$do_probes" = "yes"
5330 as_fn_error $?
"cannot enable static probes - no SDT header" "$LINENO" 5
5338 if test "$enable_probes" = "true"
5341 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5348 if test "x$do_discovery" != "xno"; then :
5350 # on Mac OS X, dns_sd.h
5352 # on Linux, aloha Avahi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5357 $as_echo_n "checking for avahi... " >&6; }
5359 if test -n "$avahi_CFLAGS"; then
5360 pkg_cv_avahi_CFLAGS
="$avahi_CFLAGS"
5361 elif test -n "$PKG_CONFIG"; then
5362 if test -n "$PKG_CONFIG" && \
5363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5364 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5367 test $ac_status = 0; }; then
5368 pkg_cv_avahi_CFLAGS
=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5369 test "x$?" != "x0" && pkg_failed
=yes
5376 if test -n "$avahi_LIBS"; then
5377 pkg_cv_avahi_LIBS
="$avahi_LIBS"
5378 elif test -n "$PKG_CONFIG"; then
5379 if test -n "$PKG_CONFIG" && \
5380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5381 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5384 test $ac_status = 0; }; then
5385 pkg_cv_avahi_LIBS
=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5386 test "x$?" != "x0" && pkg_failed
=yes
5396 if test $pkg_failed = yes; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5401 _pkg_short_errors_supported
=yes
5403 _pkg_short_errors_supported
=no
5405 if test $_pkg_short_errors_supported = yes; then
5406 avahi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5408 avahi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5410 # Put the nasty error message in config.log where it belongs
5411 echo "$avahi_PKG_ERRORS" >&5
5414 elif test $pkg_failed = untried
; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5419 avahi_CFLAGS
=$pkg_cv_avahi_CFLAGS
5420 avahi_LIBS
=$pkg_cv_avahi_LIBS
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5422 $as_echo "yes" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5424 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5425 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false
; then :
5426 $as_echo_n "(cached) " >&6
5428 ac_check_lib_save_LIBS
=$LIBS
5429 LIBS
="-lavahi-client $LIBS"
5430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5433 /* Override any GCC internal prototype to avoid an error.
5434 Use char because int might match the return type of a GCC
5435 builtin and then its argument prototype would still apply. */
5439 char avahi_client_new ();
5443 return avahi_client_new ();
5448 if ac_fn_c_try_link
"$LINENO"; then :
5449 ac_cv_lib_avahi_client_avahi_client_new
=yes
5451 ac_cv_lib_avahi_client_avahi_client_new
=no
5453 rm -f core conftest.err conftest.
$ac_objext \
5454 conftest
$ac_exeext conftest.
$ac_ext
5455 LIBS
=$ac_check_lib_save_LIBS
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5458 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5459 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes
; then :
5460 lib_for_avahi
="-lavahi-common -lavahi-client"
5467 for ac_header
in avahi-client
/publish.h
5469 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5470 if test "x$ac_cv_header_avahi_client_publish_h" = xyes
; then :
5471 cat >>confdefs.h
<<_ACEOF
5472 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5481 for ac_header
in avahi-common
/alternative.h
5483 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5484 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes
; then :
5485 cat >>confdefs.h
<<_ACEOF
5486 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5496 if test "$enable_avahi" = "true"
5501 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5503 enable_discovery
=true
5506 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5508 as_fn_error $?
"cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5510 if test "$enable_discovery" = "true"
5513 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5521 enable_systemd
=false
5522 if test "x$do_systemd" != "xno"; then :
5527 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5528 pkg_cv_SYSTEMD_SYSTEMUNITDIR
="$SYSTEMD_SYSTEMUNITDIR"
5529 elif test -n "$PKG_CONFIG"; then
5530 if test -n "$PKG_CONFIG" && \
5531 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5532 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5535 test $ac_status = 0; }; then
5536 pkg_cv_SYSTEMD_SYSTEMUNITDIR
=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5537 test "x$?" != "x0" && pkg_failed
=yes
5544 SYSTEMD_SYSTEMUNITDIR
=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5546 if test "x$SYSTEMD_SYSTEMUNITDIR" = x
""; then :
5547 enable_systemd
=false
5549 pcp_systemdunit_dir
=$SYSTEMD_SYSTEMUNITDIR
5552 if test -z "$pcp_systemdunit_dir"
5554 if test "$do_systemd" = "yes"
5556 as_fn_error $?
"cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5558 enable_systemd
=false
5564 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5565 # targets a build for non-system directories such as /usr/local.
5566 # AC_PREFIX_DEFAULT([])
5569 PACKAGE_VERSION
=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5576 if test -z "$PACKAGE_BUILD_DATE" ; then
5577 PACKAGE_BUILD_DATE
=`date +%Y-%m-%d`
5581 if test -z "$PACKAGE_DISTRIBUTION" ; then
5582 PACKAGE_DISTRIBUTION
=$target_distro
5586 pm_version_current
=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5589 ac_config_headers
="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5591 ac_config_files
="$ac_config_files src/include/pcp/platform_defs.h"
5593 cat >confcache
<<\_ACEOF
5594 # This file is a shell script that caches the results of configure
5595 # tests run on this system so they can be shared between configure
5596 # scripts and configure runs, see configure's option --config-cache.
5597 # It is not useful on other systems. If it contains results you don't
5598 # want to keep, you may remove or edit it.
5600 # config.status only pays attention to the cache file if you give it
5601 # the --recheck option to rerun configure.
5603 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5604 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5609 # The following way of writing the cache mishandles newlines in values,
5610 # but we know of no workaround that is simple, portable, and efficient.
5611 # So, we kill variables containing newlines.
5612 # Ultrix sh set writes to stderr and can't be redirected directly,
5613 # and sets the high bit in the cache file unless we assign to the vars.
5615 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5616 eval ac_val
=\$
$ac_var
5620 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5621 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5624 _ | IFS | as_nl
) ;; #(
5625 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5626 *) { eval $ac_var=; unset $ac_var;} ;;
5632 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5633 *${as_nl}ac_space
=\
*)
5634 # `set' does not quote correctly, so add quotes: double-quote
5635 # substitution turns \\\\ into \\, and sed turns \\ into \.
5638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5641 # `set' quotes correctly as required by POSIX, so do not add quotes.
5642 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5653 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5655 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5656 if test -w "$cache_file"; then
5657 if test "x$cache_file" != "x/dev/null"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5659 $as_echo "$as_me: updating cache $cache_file" >&6;}
5660 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5661 cat confcache
>"$cache_file"
5663 case $cache_file in #(
5665 mv -f confcache
"$cache_file"$$
&&
5666 mv -f "$cache_file"$$
"$cache_file" ;; #(
5668 mv -f confcache
"$cache_file" ;;
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5674 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5679 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5680 # Let make expand exec_prefix.
5681 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5683 DEFS
=-DHAVE_CONFIG_H
5688 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5689 # 1. Remove the extension, and $U if already installed.
5690 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5691 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5693 # will be set to the directory where LIBOBJS objects are built.
5694 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5695 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5699 LTLIBOBJS
=$ac_ltlibobjs
5703 : "${CONFIG_STATUS=./config.status}"
5705 ac_clean_files_save
=$ac_clean_files
5706 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5712 # Generated by $as_me.
5713 # Run this file to recreate the current configuration.
5714 # Compiler output produced by configure, useful for debugging
5715 # configure, is in config.log if it exists.
5721 SHELL=\${CONFIG_SHELL-$SHELL}
5724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5725 ## -------------------- ##
5726 ## M4sh Initialization. ##
5727 ## -------------------- ##
5729 # Be more Bourne compatible
5730 DUALCASE
=1; export DUALCASE
# for MKS sh
5731 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5735 # is contrary to our usage. Disable this feature.
5736 alias -g '${1+"$@"}'='"$@"'
5737 setopt NO_GLOB_SUBST
5739 case `(set -o) 2>/dev/null` in #(
5751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5752 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5755 # Prefer a ksh shell builtin over an external printf program on Solaris,
5756 # but without wasting forks for bash or zsh.
5757 if test -z "$BASH_VERSION$ZSH_VERSION" \
5758 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5759 as_echo='print
-r --'
5760 as_echo_n='print
-rn --'
5761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5762 as_echo='printf %s
\n'
5763 as_echo_n='printf %s
'
5765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5766 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5767 as_echo_n='/usr
/ucb
/echo -n'
5769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5770 as_echo_n_body='eval
5774 expr "X$arg" : "X\\(.*\\)$as_nl";
5775 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5777 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5779 export as_echo_n_body
5780 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5783 as_echo='sh
-c $as_echo_body as_echo
'
5786 # The user is always right.
5787 if test "${PATH_SEPARATOR+set}" != set; then
5789 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5790 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5797 # We need space, tab and new line, in precisely that order. Quoting is
5798 # there to prevent editors from complaining about space-tab.
5799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5800 # splitting by setting IFS to empty value.)
5803 # Find who we are. Look in the path if we contain no directory separator.
5806 *[\\/]* ) as_myself=$0 ;;
5807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir=.
5812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5818 # We did not find ourselves, most probably we were run as `sh COMMAND'
5819 # in which case we are not to be found in the path.
5820 if test "x$as_myself" = x
; then
5823 if test ! -f "$as_myself"; then
5824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5828 # Unset variables that we do not need and which cause bugs (e.g. in
5829 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5830 # suppresses any "Segmentation fault" message there. '((' could
5831 # trigger a bug in pdksh 5.2.14.
5832 for as_var
in BASH_ENV ENV MAIL MAILPATH
5833 do eval test x\
${$as_var+set} = xset \
5834 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5847 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5851 # ----------------------------------------
5852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5854 # script with STATUS, using 1 if that was 0.
5857 as_status
=$1; test $as_status -eq 0 && as_status
=1
5859 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5860 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5862 $as_echo "$as_me: error: $2" >&2
5863 as_fn_exit
$as_status
5867 # as_fn_set_status STATUS
5868 # -----------------------
5869 # Set $? to STATUS, without forking.
5873 } # as_fn_set_status
5877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5887 # Portably unset VAR.
5890 { eval $1=; unset $1;}
5892 as_unset
=as_fn_unset
5893 # as_fn_append VAR VALUE
5894 # ----------------------
5895 # Append the text in VALUE to the end of the definition contained in VAR. Take
5896 # advantage of any shell optimizations that allow amortized linear growth over
5897 # repeated appends, instead of the typical quadratic growth present in naive
5899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5900 eval 'as_fn_append ()
5911 # as_fn_arith ARG...
5912 # ------------------
5913 # Perform arithmetic evaluation on the ARGs, and store the result in the
5914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5915 # must be portable across $(()) and expr.
5916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5917 eval 'as_fn_arith ()
5924 as_val
=`expr "$@" || test $? -eq 1`
5929 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5930 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5936 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5937 as_basename
=basename
5942 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5948 as_me
=`$as_basename -- "$0" ||
5949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5950 X"$0" : 'X\(//\)$' \| \
5951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5953 sed '/^.*\/\([^/][^/]*\)\/*$/{
5967 # Avoid depending upon Character Ranges.
5968 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5969 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5970 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5971 as_cr_digits
='0123456789'
5972 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5974 ECHO_C
= ECHO_N
= ECHO_T
=
5975 case `echo -n x` in #(((((
5977 case `echo 'xy\c'` in
5978 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5980 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5987 rm -f conf$$ conf$$.exe conf$$.
file
5988 if test -d conf$$.dir
; then
5989 rm -f conf$$.dir
/conf$$.
file
5992 mkdir conf$$.dir
2>/dev
/null
5994 if (echo >conf$$.
file) 2>/dev
/null
; then
5995 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5997 # ... but there are two gotchas:
5998 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5999 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6000 # In both cases, we have to default to `cp -pR'.
6001 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6003 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6011 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6012 rmdir conf$$.dir
2>/dev
/null
6017 # Create "$as_dir" as a directory, including parents if necessary.
6022 -*) as_dir
=.
/$as_dir;;
6024 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6028 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6029 *) as_qdir
=$as_dir;;
6031 as_dirs
="'$as_qdir' $as_dirs"
6032 as_dir
=`$as_dirname -- "$as_dir" ||
6033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6034 X"$as_dir" : 'X\(//\)[^/]' \| \
6035 X"$as_dir" : 'X\(//\)$' \| \
6036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6037 $as_echo X"$as_dir" |
6038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6055 test -d "$as_dir" && break
6057 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6058 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6062 if mkdir
-p .
2>/dev
/null
; then
6063 as_mkdir_p
='mkdir -p "$as_dir"'
6065 test -d .
/-p && rmdir .
/-p
6070 # as_fn_executable_p FILE
6071 # -----------------------
6072 # Test if FILE is an executable regular file.
6073 as_fn_executable_p
()
6075 test -f "$1" && test -x "$1"
6076 } # as_fn_executable_p
6078 as_executable_p
=as_fn_executable_p
6080 # Sed expression to map a string onto a valid CPP name.
6081 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6083 # Sed expression to map a string onto a valid variable name.
6084 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6088 ## ----------------------------------- ##
6089 ## Main body of $CONFIG_STATUS script. ##
6090 ## ----------------------------------- ##
6092 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6095 # Save the log message, to keep $0 and so on meaningful, and to
6096 # report actual input values of CONFIG_FILES etc. instead of their
6097 # values after options handling.
6099 This file was extended by $as_me, which was
6100 generated by GNU Autoconf 2.69. Invocation command line was
6102 CONFIG_FILES = $CONFIG_FILES
6103 CONFIG_HEADERS = $CONFIG_HEADERS
6104 CONFIG_LINKS = $CONFIG_LINKS
6105 CONFIG_COMMANDS = $CONFIG_COMMANDS
6108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6113 case $ac_config_files in *"
6114 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6117 case $ac_config_headers in *"
6118 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6123 # Files that config.status was made for.
6124 config_files="$ac_config_files"
6125 config_headers="$ac_config_headers"
6129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6131 \`$as_me' instantiates files and other configuration actions
6132 from templates according to the current configuration. Unless the files
6133 and actions are specified as TAGs, all are instantiated by default.
6135 Usage: $0 [OPTION]... [TAG]...
6137 -h, --help print this help, then exit
6138 -V, --version print version number and configuration settings, then exit
6139 --config print configuration, then exit
6140 -q, --quiet, --silent
6141 do not print progress messages
6142 -d, --debug don't remove temporary files
6143 --recheck update $as_me by reconfiguring in the same conditions
6144 --file=FILE[:TEMPLATE]
6145 instantiate the configuration file FILE
6146 --header=FILE[:TEMPLATE]
6147 instantiate the configuration header FILE
6149 Configuration files:
6152 Configuration headers:
6155 Report bugs to the package provider."
6158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6159 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6162 configured by $0, generated by GNU Autoconf 2.69,
6163 with options \\"\$ac_cs_config\\"
6165 Copyright (C) 2012 Free Software Foundation, Inc.
6166 This config.status script is free software; the Free Software Foundation
6167 gives unlimited permission to copy, distribute and modify it."
6171 test -n "\$AWK" || AWK=awk
6174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6175 # The default lists apply if the user does not specify any file.
6181 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6182 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6186 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6198 # Handling of the options.
6199 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6201 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6202 $as_echo "$ac_cs_version"; exit ;;
6203 --config |
--confi |
--conf |
--con |
--co |
--c )
6204 $as_echo "$ac_cs_config"; exit ;;
6205 --debug |
--debu |
--deb |
--de |
--d |
-d )
6207 --file |
--fil |
--fi |
--f )
6210 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6211 '') as_fn_error $?
"missing file argument" ;;
6213 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6214 ac_need_defaults
=false
;;
6215 --header |
--heade |
--head |
--hea )
6218 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6220 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6221 ac_need_defaults
=false
;;
6223 # Conflict between --help and --header
6224 as_fn_error $?
"ambiguous option: \`$1'
6225 Try \`$0 --help' for more information.";;
6226 --help |
--hel |
-h )
6227 $as_echo "$ac_cs_usage"; exit ;;
6228 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6229 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6233 -*) as_fn_error $?
"unrecognized option: \`$1'
6234 Try \`$0 --help' for more information." ;;
6236 *) as_fn_append ac_config_targets
" $1"
6237 ac_need_defaults
=false
;;
6243 ac_configure_extra_args
=
6245 if $ac_cs_silent; then
6247 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6252 if \$ac_cs_recheck; then
6253 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6255 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6256 CONFIG_SHELL='$SHELL'
6262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6267 ## Running $as_me. ##
6273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6278 # Handling of arguments.
6279 for ac_config_target
in $ac_config_targets
6281 case $ac_config_target in
6282 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6283 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6284 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6286 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6291 # If the user did not use the arguments to specify the items to instantiate,
6292 # then the envvar interface is used. Set only those that are not.
6293 # We use the long form for the default assignment because of an extremely
6294 # bizarre bug on SunOS 4.1.3.
6295 if $ac_need_defaults; then
6296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6297 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6300 # Have a temporary directory for convenience. Make it in the build tree
6301 # simply because there is no reason against having it here, and in addition,
6302 # creating and moving files from /tmp can sometimes cause problems.
6303 # Hook for its removal unless debugging.
6304 # Note that there is a small window in which the directory will not be cleaned:
6305 # after its creation but before its name has been assigned to `$tmp'.
6309 trap 'exit_status=$?
6311 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6313 trap 'as_fn_exit 1' 1 2 13 15
6315 # Create a (secure) tmp directory for tmp files.
6318 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6322 tmp
=.
/conf$$
-$RANDOM
6323 (umask 077 && mkdir
"$tmp")
6324 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
6327 # Set up the scripts for CONFIG_FILES section.
6328 # No need to generate them if there are no CONFIG_FILES.
6329 # This happens for instance with `./config.status config.h'.
6330 if test -n "$CONFIG_FILES"; then
6333 ac_cr
=`echo X | tr X '\015'`
6334 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6335 # But we know of no other shell where ac_cr would be empty at this
6336 # point, so we can use a bashism as a fallback.
6337 if test "x$ac_cr" = x
; then
6338 eval ac_cr
=\$
\'\\r
\'
6340 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6341 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6347 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6352 echo "cat >conf$$subs.awk <<_ACEOF" &&
6353 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6356 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6357 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6359 for ac_last_try in false false false false false :; do
6360 . ./conf$$subs.sh ||
6361 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6363 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6364 if test $ac_delim_n = $ac_delim_num; then
6366 elif $ac_last_try; then
6367 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6369 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6375 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
6379 s/^/S["/; s
/!.
*/"]=/
6389 s/\(.\{148\}\)..*/\1/
6391 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6396 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6403 s/\(.\{148\}\)..*/\1/
6405 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6409 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6414 ' <conf$$subs.awk | sed '
6419 ' >>$CONFIG_STATUS || ac_write_fail=1
6420 rm -f conf$$subs.awk
6421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6423 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6424 for (key in S) S_is_set[key] = 1
6430 nfields = split(line, field, "@
")
6432 len = length(field[1])
6433 for (i = 2; i < nfields; i++) {
6435 keylen = length(key)
6436 if (S_is_set[key]) {
6438 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6439 len += length(value) + length(field[++i])
6450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6451 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6452 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6455 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6456 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
6459 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6460 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
6461 # trailing colons and then remove the whole line if VPATH becomes empty
6462 # (actually we leave an empty line to preserve line numbers).
6463 if test "x
$srcdir" = x.; then
6464 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6483 fi # test -n "$CONFIG_FILES"
6485 # Set up the scripts for CONFIG_HEADERS section.
6486 # No need to generate them if there are no CONFIG_HEADERS.
6487 # This happens for instance with `./config.status Makefile'.
6488 if test -n "$CONFIG_HEADERS"; then
6489 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
6493 # Transform confdefs.h into an awk script `defines.awk', embedded as
6494 # here-document in config.status, that substitutes the proper values into
6495 # config.h.in to produce config.h.
6497 # Create a delimiter string that does not exist in confdefs.h, to ease
6498 # handling of long lines.
6500 for ac_last_try in false false :; do
6501 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
6502 if test -z "$ac_tt"; then
6504 elif $ac_last_try; then
6505 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6507 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6511 # For the awk script, D is an array of macro values keyed by name,
6512 # likewise P contains macro parameters if any. Preserve backslash
6513 # newline sequences.
6515 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6517 s/.\{148\}/&'"$ac_delim"'/g
6520 s/^[ ]*#[ ]*define[ ][ ]*/ /
6527 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6529 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6533 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6534 D["\
1"]=" \
3\\\\\\n
"\\/p
6536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6541 s/.\{148\}/&'"$ac_delim"'/g
6546 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6549 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6551 ' <confdefs.h | sed '
6552 s/'"$ac_delim"'/"\\\
6553 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6556 for (key in D) D_is_set[key] = 1
6559 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6561 split(line, arg, " ")
6562 if (arg[1] == "#") {
6566 defundef
= substr
(arg
[1], 2)
6569 split(mac1
, mac2
, "(") #)
6571 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6572 if (D_is_set
[macro
]) {
6573 # Preserve the white space surrounding the "#".
6574 print prefix
"define", macro P
[macro
] D
[macro
]
6577 # Replace #undef with comments. This is necessary, for example,
6578 # in the case of _POSIX_SOURCE, which is predefined and required
6579 # on some systems where configure will not decide to define it.
6580 if (defundef
== "undef") {
6581 print
"/*", prefix defundef
, macro
, "*/"
6589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6590 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6591 fi # test -n "$CONFIG_HEADERS"
6594 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
6599 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6601 case $ac_mode$ac_tag in
6603 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6604 :[FH
]-) ac_tag
=-:-;;
6605 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6622 -) ac_f
="$ac_tmp/stdin";;
6623 *) # Look for the file first in the build tree, then in the source tree
6624 # (if the path is not absolute). The absolute path cannot be DOS-style,
6625 # because $ac_f cannot contain `:'.
6629 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6631 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6633 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6634 as_fn_append ac_file_inputs
" '$ac_f'"
6637 # Let's still pretend it is `configure' which instantiates (i.e., don't
6638 # use $as_me), people would be surprised to read:
6639 # /* config.h. Generated by config.status. */
6640 configure_input
='Generated from '`
6641 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6643 if test x
"$ac_file" != x-
; then
6644 configure_input
="$ac_file. $configure_input"
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6646 $as_echo "$as_me: creating $ac_file" >&6;}
6648 # Neutralize special characters interpreted by sed in replacement strings.
6649 case $configure_input in #(
6650 *\
&* |
*\|
* |
*\\* )
6651 ac_sed_conf_input
=`$as_echo "$configure_input" |
6652 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6653 *) ac_sed_conf_input
=$configure_input;;
6657 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6658 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6663 ac_dir
=`$as_dirname -- "$ac_file" ||
6664 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6665 X"$ac_file" : 'X\(//\)[^/]' \| \
6666 X"$ac_file" : 'X\(//\)$' \| \
6667 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6668 $as_echo X"$ac_file" |
6669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6686 as_dir
="$ac_dir"; as_fn_mkdir_p
6690 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6692 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6693 # A ".." for each directory in $ac_dir_suffix.
6694 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6695 case $ac_top_builddir_sub in
6696 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6697 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6700 ac_abs_top_builddir
=$ac_pwd
6701 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6702 # for backward compatibility:
6703 ac_top_builddir
=$ac_top_build_prefix
6706 .
) # We are building in place.
6708 ac_top_srcdir
=$ac_top_builddir_sub
6709 ac_abs_top_srcdir
=$ac_pwd ;;
6710 [\\/]* | ?
:[\\/]* ) # Absolute name.
6711 ac_srcdir
=$srcdir$ac_dir_suffix;
6712 ac_top_srcdir
=$srcdir
6713 ac_abs_top_srcdir
=$srcdir ;;
6715 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6716 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6717 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6719 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6731 # If the template does not know about datarootdir, expand it.
6732 # FIXME: This hack should be removed a few years after 2.60.
6733 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6744 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6745 *datarootdir
*) ac_datarootdir_seen
=yes;;
6746 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6748 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6751 ac_datarootdir_hack='
6752 s&@datadir@&$datadir&g
6753 s&@docdir@&$docdir&g
6754 s&@infodir@&$infodir&g
6755 s&@localedir@&$localedir&g
6756 s&@mandir@&$mandir&g
6757 s&\\\${datarootdir}&$datarootdir&g' ;;
6761 # Neutralize VPATH when `$srcdir' = `.'.
6762 # Shell code in configure.ac might set extrasub.
6763 # FIXME: do we really want to maintain this feature?
6764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6765 ac_sed_extra="$ac_vpsub
6768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6770 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6771 s|@configure_input@|
$ac_sed_conf_input|
;t t
6772 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6773 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6774 s
&@srcdir@
&$ac_srcdir&;t t
6775 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6776 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6777 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6778 s
&@builddir@
&$ac_builddir&;t t
6779 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6780 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6781 $ac_datarootdir_hack
6783 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6784 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6786 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6787 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6788 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6789 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6791 which seems to be undefined. Please make sure it is defined" >&5
6792 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6793 which seems to be undefined. Please make sure it is defined" >&2;}
6795 rm -f "$ac_tmp/stdin"
6797 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6798 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6806 if test x"$ac_file" != x-; then
6808 $as_echo "/* $configure_input */" \
6809 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6810 } >"$ac_tmp/config.h" \
6811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6812 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6814 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6817 mv "$ac_tmp/config.h" "$ac_file" \
6818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6821 $as_echo "/* $configure_input */" \
6822 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6823 || as_fn_error $? "could not create -" "$LINENO" 5
6835 ac_clean_files=$ac_clean_files_save
6837 test $ac_write_fail = 0 ||
6838 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6841 # configure is writing to config.log, and then calls config.status.
6842 # config.status does its own redirection, appending to config.log.
6843 # Unfortunately, on DOS this fails, as config.log is still kept open
6844 # by configure, so config.status won't be able to
write to it
; its
6845 # output is simply discarded. So we exec the FD to /dev/null,
6846 # effectively closing config.log, so it can be properly (re)opened and
6847 # appended to by config.status. When coming back to configure, we
6848 # need to make the FD available again.
6849 if test "$no_create" != yes; then
6851 ac_config_status_args
=
6852 test "$silent" = yes &&
6853 ac_config_status_args
="$ac_config_status_args --quiet"
6855 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6857 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6858 # would make configure fail if this is the last instruction.
6859 $ac_cs_success || as_fn_exit
1
6861 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6863 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6869 # Extract the first word of "$ac_prog", so it can be a program name with args.
6870 set dummy
$ac_prog; ac_word
=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_GIT+:} false
; then :
6874 $as_echo_n "(cached) " >&6
6876 if test -n "$GIT"; then
6877 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
6879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6883 test -z "$as_dir" && as_dir
=.
6884 for ac_exec_ext
in '' $ac_executable_extensions; do
6885 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6886 ac_cv_prog_GIT
="$ac_prog"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 if test -n "$GIT"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6899 $as_echo "$GIT" >&6; }
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6906 test -n "$GIT" && break
6911 for ac_prog
in python
6913 # Extract the first word of "$ac_prog", so it can be a program name with args.
6914 set dummy
$ac_prog; ac_word
=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_PYTHON+:} false
; then :
6918 $as_echo_n "(cached) " >&6
6920 if test -n "$PYTHON"; then
6921 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
6923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir
=.
6928 for ac_exec_ext
in '' $ac_executable_extensions; do
6929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_PYTHON
="$ac_prog"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 PYTHON
=$ac_cv_prog_PYTHON
6941 if test -n "$PYTHON"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6943 $as_echo "$PYTHON" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6950 test -n "$PYTHON" && break
6955 for ac_prog
in python3
6957 # Extract the first word of "$ac_prog", so it can be a program name with args.
6958 set dummy
$ac_prog; ac_word
=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_PYTHON3+:} false
; then :
6962 $as_echo_n "(cached) " >&6
6964 if test -n "$PYTHON3"; then
6965 ac_cv_prog_PYTHON3
="$PYTHON3" # Let the user override the test.
6967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6971 test -z "$as_dir" && as_dir
=.
6972 for ac_exec_ext
in '' $ac_executable_extensions; do
6973 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_PYTHON3
="$ac_prog"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 PYTHON3
=$ac_cv_prog_PYTHON3
6985 if test -n "$PYTHON3"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
6987 $as_echo "$PYTHON3" >&6; }
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6994 test -n "$PYTHON3" && break
6999 enable_python2
=false
7000 if test "x$do_python" != "xno"; then :
7003 if test -z "$PYTHON"
7005 enable_python2
=false
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7008 $as_echo_n "checking Python version... " >&6; }
7009 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 }'`
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7011 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7012 if test "$PY_MAJOR" -lt 2; then
7013 echo WARNING
: Python version
2.6 or later does not seem to be installed.
7014 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7015 enable_python2
=false
7017 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7018 echo WARNING
: Python version
2.
$PY_MINOR is too old.
7019 echo Python version
2.6 or later is required
for Python builds.
7020 enable_python2
=false
7022 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}/Python.h
7024 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7025 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7026 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7027 cat >>confdefs.h
<<_ACEOF
7028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7033 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7034 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7035 enable_python2
=false
7043 if test "$do_python" != "check" -a "$enable_python2" != "true"
7045 as_fn_error $?
"cannot enable Python - no supported version found" "$LINENO" 5
7051 enable_python3
=false
7052 if test "x$do_python3" != "xno"; then :
7055 if test -z "$PYTHON3"
7057 enable_python3
=false
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7060 $as_echo_n "checking Python3 version... " >&6; }
7061 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 }'`
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7063 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7064 if test "$PY_MAJOR" -lt 3; then
7065 echo WARNING
: Python version
3.3 or later does not seem to be installed.
7066 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7067 enable_python3
=false
7069 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7070 echo WARNING
: Python version
3.
$PY_MINOR is too old.
7071 echo Python version
3.3 or later is required
for Python builds.
7072 enable_python3
=false
7074 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}m
/Python.h
7076 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7077 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7078 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7079 cat >>confdefs.h
<<_ACEOF
7080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7085 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7086 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7087 enable_python3
=false
7095 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7097 as_fn_error $?
"cannot enable Python3 - no supported version found" "$LINENO" 5
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7104 $as_echo_n "checking for any python version... " >&6; }
7105 if test "$cross_compiling" = "yes"; then
7107 echo "cross-compile -> \"$ans\"" >&5
7108 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7115 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7116 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }; fi
7119 if test "$enable_python3" = "true"
7121 pcp_python_prog
=$PYTHON3
7122 elif test "$enable_python2" = "true"
7124 pcp_python_prog
=$PYTHON
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7132 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7137 txt
="import jsonpointer"
7139 $pcp_python_prog -c 'import sys;
7140 '"$txt" >>config.log
2>&1
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7145 eval have_python_jsonpointer
=true
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 eval have_python_jsonpointer
=false
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7154 $as_echo_n "checking for Python module six... " >&6; }
7161 $pcp_python_prog -c 'import sys;
7162 '"$txt" >>config.log
2>&1
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7166 $as_echo "yes" >&6; }
7167 eval have_python_six
=true
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 eval have_python_six
=false
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7177 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7179 if test "x$do_pmdajson" = "xyes"; then :
7182 if test "x$do_pmdajson" = "xcheck"; then :
7184 $have_python_jsonpointer && $have_python_six && pmda_json
=true
7187 PMDA_JSON
=$pmda_json
7189 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7190 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }; fi
7195 # Extract the first word of "$ac_prog", so it can be a program name with args.
7196 set dummy
$ac_prog; ac_word
=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_PERL+:} false
; then :
7200 $as_echo_n "(cached) " >&6
7202 if test -n "$PERL"; then
7203 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir
=.
7210 for ac_exec_ext
in '' $ac_executable_extensions; do
7211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_PERL
="$ac_prog"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 PERL
=$ac_cv_prog_PERL
7223 if test -n "$PERL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7225 $as_echo "$PERL" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7232 test -n "$PERL" && break
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7238 $as_echo_n "checking for any perl version... " >&6; }
7239 if test "$cross_compiling" = "yes"; then
7241 echo "cross-compile -> \"$ans\"" >&5
7242 elif test -n "$PERL"
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7253 $as_echo "$pcp_perl_prog" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7256 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7258 if test "$have_perl" = true
7260 if $pcp_perl_prog -e "use Net::SNMP" >/dev
/null
2>&1
7265 PMDA_SNMP
=$pmda_snmp
7267 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7268 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }; fi
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7272 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7274 if test "$have_perl" = true
7276 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7278 if $pcp_perl_prog -e "use DBD::mysql" >/dev
/null
2>&1
7284 PMDA_MYSQL
=$pmda_mysql
7286 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7287 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }; fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7291 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7292 pmda_postgresql
=false
7293 if test "$have_perl" = true
7295 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7297 if $pcp_perl_prog -e "use DBD::Pg" >/dev
/null
2>&1
7299 pmda_postgresql
=true
7303 PMDA_POSTGRESQL
=$pmda_postgresql
7305 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7306 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }; fi
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7310 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7311 pmda_elasticsearch
=false
7312 if test "$have_perl" = true
7314 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7316 pmda_elasticsearch
=true
7319 PMDA_ELASTICSEARCH
=$pmda_elasticsearch
7321 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7322 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }; fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7326 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7328 if test "$have_perl" = true
7330 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7335 PMDA_NGINX
=$pmda_nginx
7337 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7338 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }; fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7342 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7344 if test "$have_perl" = true
7346 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7351 PMDA_ACTIVEMQ
=$pmda_activemq
7353 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7354 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }; fi
7360 if test "x$do_qt" != "xno"; then :
7366 for ac_prog
in qmake-qt5 qmake-qt4 qmake
7368 # Extract the first word of "$ac_prog", so it can be a program name with args.
7369 set dummy
$ac_prog; ac_word
=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_path_QMAKE+:} false
; then :
7373 $as_echo_n "(cached) " >&6
7377 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
7380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7381 as_dummy
="$QTDIR/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib/qt5/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin"
7382 for as_dir
in $as_dummy
7385 test -z "$as_dir" && as_dir
=.
7386 for ac_exec_ext
in '' $ac_executable_extensions; do
7387 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7388 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 QMAKE
=$ac_cv_path_QMAKE
7400 if test -n "$QMAKE"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7402 $as_echo "$QMAKE" >&6; }
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7409 test -n "$QMAKE" && break
7412 test "x$cc_is_gcc" = xyes
-a $target_os = solaris
&& QMAKE
="$QMAKE -spec solaris-g++"
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7420 $as_echo_n "checking Qt version... " >&6; }
7421 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 }'`
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7423 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7424 if test "$QT_MAJOR" -lt 4; then
7425 echo WARNING
: Qt version
4.4 or later does not seem to be installed.
7426 echo Cannot proceed with the Qt
$QT_MAJOR installation found.
7429 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7430 echo WARNING
: Qt version
4.
$QT_MINOR is too old.
7431 echo Qt version
4.4 or later is required
for Qt builds.
7436 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7438 as_fn_error $?
"cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7439 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7442 test "$do_qt" != "check" && \
7443 as_fn_error $?
"C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7444 elif test "$do_qt" = "debug"
7457 # Extract the first word of "gmake", so it can be a program name with args.
7458 set dummy gmake
; ac_word
=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if ${ac_cv_path_MAKE+:} false
; then :
7462 $as_echo_n "(cached) " >&6
7466 ac_cv_path_MAKE
="$MAKE" # Let the user override the test with a path.
7469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir
=.
7474 for ac_exec_ext
in '' $ac_executable_extensions; do
7475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_path_MAKE
="$as_dir/$ac_word$ac_exec_ext"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 MAKE
=$ac_cv_path_MAKE
7488 if test -n "$MAKE"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7490 $as_echo "$MAKE" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7499 # look elsewhere ...
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7501 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7502 for f
in /usr
/local
/bin
/gmake
/usr
/freeware
/bin
/gmake
/usr
/local
/bin
/make /opt
/sfw
/bin
/gmake nowhere
7510 if test $f = nowhere
7512 # Check if /usr/bin/make is any good
7513 mver
=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7514 if test "$mver" != "GNU Make"
7517 echo "FATAL ERROR: could not find GNU make anywhere"
7518 echo "You need to set \$MAKE as the full path to GNU make "
7519 echo "in the environment."
7520 rm -rf conftest conftest.
*
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7527 $as_echo "$MAKE" >&6; }
7533 if test -z "$CPP"; then
7535 ac_cpp
='$CPP $CPPFLAGS'
7536 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7540 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7541 # On Suns, sometimes $CPP names a directory.
7542 if test -n "$CPP" && test -d "$CPP"; then
7545 if test -z "$CPP"; then
7546 if ${ac_cv_prog_CPP+:} false
; then :
7547 $as_echo_n "(cached) " >&6
7549 # Double quotes because CPP needs to be expanded
7550 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7553 for ac_c_preproc_warn_flag
in '' yes
7555 # Use a header file that comes with gcc, so configuring glibc
7556 # with a fresh cross-compiler works.
7557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7558 # <limits.h> exists even on freestanding compilers.
7559 # On the NeXT, cc -E runs the code through the compiler's parser,
7560 # not just through cpp. "Syntax error" is here to catch this case.
7561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7564 # include <limits.h>
7566 # include <assert.h>
7570 if ac_fn_c_try_cpp
"$LINENO"; then :
7573 # Broken: fails on valid input.
7576 rm -f conftest.err conftest.i conftest.
$ac_ext
7578 # OK, works on sane cases. Now check whether nonexistent headers
7579 # can be detected and how.
7580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582 #include <ac_nonexistent.h>
7584 if ac_fn_c_try_cpp
"$LINENO"; then :
7585 # Broken: success on invalid input.
7588 # Passes both tests.
7592 rm -f conftest.err conftest.i conftest.
$ac_ext
7595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7596 rm -f conftest.i conftest.err conftest.
$ac_ext
7597 if $ac_preproc_ok; then :
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7610 $as_echo "$CPP" >&6; }
7612 for ac_c_preproc_warn_flag
in '' yes
7614 # Use a header file that comes with gcc, so configuring glibc
7615 # with a fresh cross-compiler works.
7616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7617 # <limits.h> exists even on freestanding compilers.
7618 # On the NeXT, cc -E runs the code through the compiler's parser,
7619 # not just through cpp. "Syntax error" is here to catch this case.
7620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7623 # include <limits.h>
7625 # include <assert.h>
7629 if ac_fn_c_try_cpp
"$LINENO"; then :
7632 # Broken: fails on valid input.
7635 rm -f conftest.err conftest.i conftest.
$ac_ext
7637 # OK, works on sane cases. Now check whether nonexistent headers
7638 # can be detected and how.
7639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 #include <ac_nonexistent.h>
7643 if ac_fn_c_try_cpp
"$LINENO"; then :
7644 # Broken: success on invalid input.
7647 # Passes both tests.
7651 rm -f conftest.err conftest.i conftest.
$ac_ext
7654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7655 rm -f conftest.i conftest.err conftest.
$ac_ext
7656 if $ac_preproc_ok; then :
7659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7661 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7662 See \`config.log' for more details" "$LINENO" 5; }
7666 ac_cpp
='$CPP $CPPFLAGS'
7667 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7675 if test -z "$LD"; then
7676 # Extract the first word of "ld", so it can be a program name with args.
7677 set dummy ld
; ac_word
=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if ${ac_cv_path_LD+:} false
; then :
7681 $as_echo_n "(cached) " >&6
7685 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
7688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir
=.
7693 for ac_exec_ext
in '' $ac_executable_extensions; do
7694 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7695 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 test -z "$ac_cv_path_LD" && ac_cv_path_LD
="/usr/bin/ld"
7708 if test -n "$LD"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7710 $as_echo "$LD" >&6; }
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7721 if test -z "$PCP_USER_INSTALL" ; then
7722 pcp_user_install
=root
7724 pcp_user_install
="$PCP_USER_INSTALL"
7727 if test -z "$PCP_GROUP_INSTALL" ; then
7730 darwin|freebsd|netbsd
)
7731 pcp_group_install
=wheel
7734 pcp_group_install
=root
7738 pcp_group_install
="$PCP_GROUP_INSTALL"
7742 if test -z "$TAR"; then
7743 for ac_prog
in gtar
tar
7745 # Extract the first word of "$ac_prog", so it can be a program name with args.
7746 set dummy
$ac_prog; ac_word
=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_path_TAR+:} false
; then :
7750 $as_echo_n "(cached) " >&6
7754 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7761 test -z "$as_dir" && as_dir
=.
7762 for ac_exec_ext
in '' $ac_executable_extensions; do
7763 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7764 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 if test -n "$TAR"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7778 $as_echo "$TAR" >&6; }
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7785 test -n "$TAR" && break
7787 test -n "$TAR" || TAR
="tar"
7790 if test $target_os = darwin
-a -x /usr
/bin
/gnutar
7797 if test -z "$ZIP"; then
7798 # Extract the first word of "gzip", so it can be a program name with args.
7799 set dummy
gzip; ac_word
=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if ${ac_cv_path_ZIP+:} false
; then :
7803 $as_echo_n "(cached) " >&6
7807 ac_cv_path_ZIP
="$ZIP" # Let the user override the test with a path.
7810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir
=.
7815 for ac_exec_ext
in '' $ac_executable_extensions; do
7816 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7817 ac_cv_path_ZIP
="$as_dir/$ac_word$ac_exec_ext"
7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP
="/bin/gzip"
7830 if test -n "$ZIP"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7832 $as_echo "$ZIP" >&6; }
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7840 test ! -x "$ZIP" && ZIP
=/usr
/local
/bin
/gzip
7841 test ! -x "$ZIP" && ZIP
=/usr
/freeware
/bin
/gzip
7842 test ! -x "$ZIP" && ZIP
=/usr
/bin
/gzip
7844 test -z "$gzip" && gzip=no-gzip
7847 if test -z "$BZIP2"; then
7848 # Extract the first word of "bzip2", so it can be a program name with args.
7849 set dummy
bzip2; ac_word
=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_path_BZIP2+:} false
; then :
7853 $as_echo_n "(cached) " >&6
7857 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7864 test -z "$as_dir" && as_dir
=.
7865 for ac_exec_ext
in '' $ac_executable_extensions; do
7866 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7867 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2
="/bin/bzip2"
7879 BZIP2
=$ac_cv_path_BZIP2
7880 if test -n "$BZIP2"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7882 $as_echo "$BZIP2" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7890 test ! -x "$BZIP2" && BZIP2
=/usr
/bin
/bzip2
7891 test ! -x "$BZIP2" && BZIP2
=/usr
/local
/bin
/bzip2
7892 test ! -x "$BZIP2" && BZIP2
=/usr
/freeware
/bin
/bzip2
7894 test -z "$bzip2" && bzip2=no-bzip2
7897 if test -z "$LZMA"; then
7898 # Extract the first word of "lzma", so it can be a program name with args.
7899 set dummy lzma
; ac_word
=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if ${ac_cv_path_LZMA+:} false
; then :
7903 $as_echo_n "(cached) " >&6
7907 ac_cv_path_LZMA
="$LZMA" # Let the user override the test with a path.
7910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir
=.
7915 for ac_exec_ext
in '' $ac_executable_extensions; do
7916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_path_LZMA
="$as_dir/$ac_word$ac_exec_ext"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA
="/bin/lzma"
7929 LZMA
=$ac_cv_path_LZMA
7930 if test -n "$LZMA"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
7932 $as_echo "$LZMA" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7940 test ! -x "$LZMA" && LZMA
=/usr
/bin
/lzma
7941 test ! -x "$LZMA" && LZMA
=/usr
/local
/bin
/lzma
7942 test ! -x "$LZMA" && LZMA
=/usr
/freeware
/bin
/lzma
7944 test -z "$lzma" && lzma
=no-lzma
7947 if test -z "$XZ"; then
7948 # Extract the first word of "xz", so it can be a program name with args.
7949 set dummy xz
; ac_word
=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_path_XZ+:} false
; then :
7953 $as_echo_n "(cached) " >&6
7957 ac_cv_path_XZ
="$XZ" # Let the user override the test with a path.
7960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir
=.
7965 for ac_exec_ext
in '' $ac_executable_extensions; do
7966 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7967 ac_cv_path_XZ
="$as_dir/$ac_word$ac_exec_ext"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ
="/bin/xz"
7980 if test -n "$XZ"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
7982 $as_echo "$XZ" >&6; }
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7990 test ! -x "$XZ" && XZ
=/usr
/bin
/xz
7991 test ! -x "$XZ" && XZ
=/usr
/local
/bin
/xz
7992 test ! -x "$XZ" && XZ
=/usr
/freeware
/bin
/xz
7994 test -z "$xz" && xz
=no-xz
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
7998 $as_echo_n "checking for PackageMaker... " >&6; }
7999 if test -z "$PACKAGE_MAKER"
8001 if test $target_os = darwin
8003 if test -x /Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8004 then # local XCode extras install
8005 package_maker
=/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8007 $as_echo " yes (local install)" >&6; }
8008 elif test -x /Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8010 package_maker
=/Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8012 $as_echo " yes (darwin 6.x)" >&6; }
8013 elif test -x /Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8016 $as_echo " yes (darwin 7.x)" >&6; }
8017 package_maker
=/Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8020 $as_echo " not found!" >&6; }
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8022 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo " no" >&6; }
8029 package_maker
="$PACKAGE_MAKER"
8033 if test -z "$HDIUTIL"; then
8034 # Extract the first word of "hdiutil", so it can be a program name with args.
8035 set dummy hdiutil
; ac_word
=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if ${ac_cv_path_HDIUTIL+:} false
; then :
8039 $as_echo_n "(cached) " >&6
8043 ac_cv_path_HDIUTIL
="$HDIUTIL" # Let the user override the test with a path.
8046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir
=.
8051 for ac_exec_ext
in '' $ac_executable_extensions; do
8052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_path_HDIUTIL
="$as_dir/$ac_word$ac_exec_ext"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 HDIUTIL
=$ac_cv_path_HDIUTIL
8065 if test -n "$HDIUTIL"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8067 $as_echo "$HDIUTIL" >&6; }
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8078 if test -z "$MKINSTALLP"; then
8079 # Extract the first word of "mkinstallp", so it can be a program name with args.
8080 set dummy mkinstallp
; ac_word
=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if ${ac_cv_path_MKINSTALLP+:} false
; then :
8084 $as_echo_n "(cached) " >&6
8088 ac_cv_path_MKINSTALLP
="$MKINSTALLP" # Let the user override the test with a path.
8091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir
=.
8096 for ac_exec_ext
in '' $ac_executable_extensions; do
8097 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_path_MKINSTALLP
="$as_dir/$ac_word$ac_exec_ext"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 MKINSTALLP
=$ac_cv_path_MKINSTALLP
8110 if test -n "$MKINSTALLP"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8112 $as_echo "$MKINSTALLP" >&6; }
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8120 mkinstallp
=$MKINSTALLP
8123 if test -z "$PKGMK"; then
8124 # Extract the first word of "pkgmk", so it can be a program name with args.
8125 set dummy pkgmk
; ac_word
=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_path_PKGMK+:} false
; then :
8129 $as_echo_n "(cached) " >&6
8133 ac_cv_path_PKGMK
="$PKGMK" # Let the user override the test with a path.
8136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir
=.
8141 for ac_exec_ext
in '' $ac_executable_extensions; do
8142 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_path_PKGMK
="$as_dir/$ac_word$ac_exec_ext"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 PKGMK
=$ac_cv_path_PKGMK
8155 if test -n "$PKGMK"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8157 $as_echo "$PKGMK" >&6; }
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8168 if test -z "$DLLTOOL"; then
8169 # Extract the first word of "dlltool", so it can be a program name with args.
8170 set dummy dlltool
; ac_word
=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_path_DLLTOOL+:} false
; then :
8174 $as_echo_n "(cached) " >&6
8178 ac_cv_path_DLLTOOL
="$DLLTOOL" # Let the user override the test with a path.
8181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir
=.
8186 for ac_exec_ext
in '' $ac_executable_extensions; do
8187 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_path_DLLTOOL
="$as_dir/$ac_word$ac_exec_ext"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 DLLTOOL
=$ac_cv_path_DLLTOOL
8200 if test -n "$DLLTOOL"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8202 $as_echo "$DLLTOOL" >&6; }
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8213 if test -z "$RPMBUILD"; then
8214 # Extract the first word of "rpmbuild", so it can be a program name with args.
8215 set dummy rpmbuild
; ac_word
=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if ${ac_cv_path_RPMBUILD+:} false
; then :
8219 $as_echo_n "(cached) " >&6
8223 ac_cv_path_RPMBUILD
="$RPMBUILD" # Let the user override the test with a path.
8226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir
=.
8231 for ac_exec_ext
in '' $ac_executable_extensions; do
8232 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8233 ac_cv_path_RPMBUILD
="$as_dir/$ac_word$ac_exec_ext"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 RPMBUILD
=$ac_cv_path_RPMBUILD
8245 if test -n "$RPMBUILD"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8247 $as_echo "$RPMBUILD" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 test $target_distro = slackware
&& RPMBUILD
=''
8259 if test -z "$RPM"; then
8260 # Extract the first word of "rpm", so it can be a program name with args.
8261 set dummy rpm
; ac_word
=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if ${ac_cv_path_RPM+:} false
; then :
8265 $as_echo_n "(cached) " >&6
8269 ac_cv_path_RPM
="$RPM" # Let the user override the test with a path.
8272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8276 test -z "$as_dir" && as_dir
=.
8277 for ac_exec_ext
in '' $ac_executable_extensions; do
8278 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8279 ac_cv_path_RPM
="$as_dir/$ac_word$ac_exec_ext"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 if test -n "$RPM"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8293 $as_echo "$RPM" >&6; }
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8301 test $target_distro = slackware
&& RPM
=''
8305 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8313 if test -z "$POD2MAN"; then
8314 # Extract the first word of "pod2man", so it can be a program name with args.
8315 set dummy pod2man
; ac_word
=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_path_POD2MAN+:} false
; then :
8319 $as_echo_n "(cached) " >&6
8323 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8330 test -z "$as_dir" && as_dir
=.
8331 for ac_exec_ext
in '' $ac_executable_extensions; do
8332 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 POD2MAN
=$ac_cv_path_POD2MAN
8345 if test -n "$POD2MAN"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8347 $as_echo "$POD2MAN" >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8359 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8360 perl
-e "use ExtUtils::MakeMaker" 2>/dev
/null
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8364 $as_echo " yes" >&6; }
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo " no" >&6; }
8369 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8370 echo "You can either install this from your distribution, or"
8371 echo "download from CPAN (Comprehensive Perl Archive Network)."
8372 rm -rf conftest conftest.
*
8376 # Extract the first word of "true", so it can be a program name with args.
8377 set dummy true
; ac_word
=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if ${ac_cv_path_TRUEPROG+:} false
; then :
8381 $as_echo_n "(cached) " >&6
8385 ac_cv_path_TRUEPROG
="$TRUEPROG" # Let the user override the test with a path.
8388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8392 test -z "$as_dir" && as_dir
=.
8393 for ac_exec_ext
in '' $ac_executable_extensions; do
8394 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8395 ac_cv_path_TRUEPROG
="$as_dir/$ac_word$ac_exec_ext"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 TRUEPROG
=$ac_cv_path_TRUEPROG
8407 if test -n "$TRUEPROG"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8409 $as_echo "$TRUEPROG" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8417 if test -z "$MAKEDEPEND"; then
8418 # Extract the first word of "makedepend", so it can be a program name with args.
8419 set dummy makedepend
; ac_word
=$2
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 $as_echo_n "checking for $ac_word... " >&6; }
8422 if ${ac_cv_path_MAKEDEPEND+:} false
; then :
8423 $as_echo_n "(cached) " >&6
8427 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
8430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8434 test -z "$as_dir" && as_dir
=.
8435 for ac_exec_ext
in '' $ac_executable_extensions; do
8436 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8437 ac_cv_path_MAKEDEPEND
="$as_dir/$ac_word$ac_exec_ext"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUEPROG"
8449 MAKEDEPEND
=$ac_cv_path_MAKEDEPEND
8450 if test -n "$MAKEDEPEND"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8452 $as_echo "$MAKEDEPEND" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8460 makedepend
=$MAKEDEPEND
8463 if test -z "$MD5SUM"; then
8464 # Extract the first word of "md5sum", so it can be a program name with args.
8465 set dummy
md5sum; ac_word
=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_path_MD5SUM+:} false
; then :
8469 $as_echo_n "(cached) " >&6
8473 ac_cv_path_MD5SUM
="$MD5SUM" # Let the user override the test with a path.
8476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8480 test -z "$as_dir" && as_dir
=.
8481 for ac_exec_ext
in '' $ac_executable_extensions; do
8482 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8483 ac_cv_path_MD5SUM
="$as_dir/$ac_word$ac_exec_ext"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM
="$TRUEPROG"
8495 MD5SUM
=$ac_cv_path_MD5SUM
8496 if test -n "$MD5SUM"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8498 $as_echo "$MD5SUM" >&6; }
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8509 if test -z "$DPKG"; then
8510 # Extract the first word of "dpkg", so it can be a program name with args.
8511 set dummy dpkg
; ac_word
=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if ${ac_cv_path_DPKG+:} false
; then :
8515 $as_echo_n "(cached) " >&6
8519 ac_cv_path_DPKG
="$DPKG" # Let the user override the test with a path.
8522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8526 test -z "$as_dir" && as_dir
=.
8527 for ac_exec_ext
in '' $ac_executable_extensions; do
8528 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_path_DPKG
="$as_dir/$ac_word$ac_exec_ext"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 DPKG
=$ac_cv_path_DPKG
8541 if test -n "$DPKG"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8543 $as_echo "$DPKG" >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8554 if test -z "$MAKEPKG"; then
8555 # Extract the first word of "makepkg", so it can be a program name with args.
8556 set dummy makepkg
; ac_word
=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_path_MAKEPKG+:} false
; then :
8560 $as_echo_n "(cached) " >&6
8564 ac_cv_path_MAKEPKG
="$MAKEPKG" # Let the user override the test with a path.
8567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8571 test -z "$as_dir" && as_dir
=.
8572 for ac_exec_ext
in '' $ac_executable_extensions; do
8573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_path_MAKEPKG
="$as_dir/$ac_word$ac_exec_ext"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 MAKEPKG
=$ac_cv_path_MAKEPKG
8586 if test -n "$MAKEPKG"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8588 $as_echo "$MAKEPKG" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8599 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8600 set dummy publican
; ac_word
=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if ${ac_cv_path_PUBLICAN+:} false
; then :
8604 $as_echo_n "(cached) " >&6
8608 ac_cv_path_PUBLICAN
="$PUBLICAN" # Let the user override the test with a path.
8611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8615 test -z "$as_dir" && as_dir
=.
8616 for ac_exec_ext
in '' $ac_executable_extensions; do
8617 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8618 ac_cv_path_PUBLICAN
="$as_dir/$ac_word$ac_exec_ext"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 PUBLICAN
=$ac_cv_path_PUBLICAN
8630 if test -n "$PUBLICAN"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8632 $as_echo "$PUBLICAN" >&6; }
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8641 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8642 set dummy dblatex
; ac_word
=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if ${ac_cv_path_DBLATEX+:} false
; then :
8646 $as_echo_n "(cached) " >&6
8650 ac_cv_path_DBLATEX
="$DBLATEX" # Let the user override the test with a path.
8653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8657 test -z "$as_dir" && as_dir
=.
8658 for ac_exec_ext
in '' $ac_executable_extensions; do
8659 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8660 ac_cv_path_DBLATEX
="$as_dir/$ac_word$ac_exec_ext"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 DBLATEX
=$ac_cv_path_DBLATEX
8672 if test -n "$DBLATEX"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8674 $as_echo "$DBLATEX" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8683 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8684 set dummy xmlto
; ac_word
=$2
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if ${ac_cv_path_XMLTO+:} false
; then :
8688 $as_echo_n "(cached) " >&6
8692 ac_cv_path_XMLTO
="$XMLTO" # Let the user override the test with a path.
8695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8699 test -z "$as_dir" && as_dir
=.
8700 for ac_exec_ext
in '' $ac_executable_extensions; do
8701 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8702 ac_cv_path_XMLTO
="$as_dir/$ac_word$ac_exec_ext"
8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 XMLTO
=$ac_cv_path_XMLTO
8714 if test -n "$XMLTO"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8716 $as_echo "$XMLTO" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8727 if test "$do_books" = "check" -o "$do_books" = "yes"
8729 if test "$BOOK_TOOLCHAIN" != ""
8731 book_toolchain
=$BOOK_TOOLCHAIN
8732 elif test "$DBLATEX" != ""
8734 book_toolchain
=dblatex
8735 elif test "$PUBLICAN" != ""
8737 book_toolchain
=publican
8738 elif test "$XMLTO" != ""
8740 book_toolchain
=xmlto
8741 elif test "$do_books" = "yes"
8743 as_fn_error $?
"cannot enable books build - no toolchain found" "$LINENO" 5
8749 if test "$do_books_brand" != ""
8751 book_brand
=$do_books_brand
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8756 $as_echo_n "checking whether ln -s works... " >&6; }
8758 if test "$LN_S" = "ln -s"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8760 $as_echo "yes" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8763 $as_echo "no, using $LN_S" >&6; }
8766 if test $target_os = mingw
; then
8772 test -f /proc
/stat || mount
/proc
>/dev
/null
2>&1
8775 if test -n "$PROCPS"
8777 pcp_ps_prog
="$PROCPS"
8783 if test $target_os = mingw
8785 pcp_syslog_prog
=pcp-eventlog
8787 pcp_syslog_prog
=logger
8792 if test $target_os = solaris
8794 test -f /usr
/xpg
4/bin
/grep && grep=/usr
/xpg
4/bin
/grep
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8799 $as_echo_n "checking for /proc ... " >&6; }
8800 if test "$cross_compiling" = "yes"; then
8802 echo "cross-compile -> \"$ans\"" >&5
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8812 $as_echo "yes" >&6; }
8814 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8822 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8823 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8825 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8826 if eval \
${$as_ac_Header+:} false
; then :
8827 $as_echo_n "(cached) " >&6
8829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 #include <sys/types.h>
8843 if ac_fn_c_try_compile
"$LINENO"; then :
8844 eval "$as_ac_Header=yes"
8846 eval "$as_ac_Header=no"
8848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 eval ac_res
=\$
$as_ac_Header
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8852 $as_echo "$ac_res" >&6; }
8853 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8854 cat >>confdefs.h
<<_ACEOF
8855 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8858 ac_header_dirent
=$ac_hdr; break
8862 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8863 if test $ac_header_dirent = dirent.h
; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8865 $as_echo_n "checking for library containing opendir... " >&6; }
8866 if ${ac_cv_search_opendir+:} false
; then :
8867 $as_echo_n "(cached) " >&6
8869 ac_func_search_save_LIBS
=$LIBS
8870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8873 /* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
8888 for ac_lib
in '' dir
; do
8889 if test -z "$ac_lib"; then
8890 ac_res
="none required"
8893 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8895 if ac_fn_c_try_link
"$LINENO"; then :
8896 ac_cv_search_opendir
=$ac_res
8898 rm -f core conftest.err conftest.
$ac_objext \
8900 if ${ac_cv_search_opendir+:} false
; then :
8904 if ${ac_cv_search_opendir+:} false
; then :
8907 ac_cv_search_opendir
=no
8910 LIBS
=$ac_func_search_save_LIBS
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8913 $as_echo "$ac_cv_search_opendir" >&6; }
8914 ac_res
=$ac_cv_search_opendir
8915 if test "$ac_res" != no
; then :
8916 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8922 $as_echo_n "checking for library containing opendir... " >&6; }
8923 if ${ac_cv_search_opendir+:} false
; then :
8924 $as_echo_n "(cached) " >&6
8926 ac_func_search_save_LIBS
=$LIBS
8927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8930 /* Override any GCC internal prototype to avoid an error.
8931 Use char because int might match the return type of a GCC
8932 builtin and then its argument prototype would still apply. */
8945 for ac_lib
in '' x
; do
8946 if test -z "$ac_lib"; then
8947 ac_res
="none required"
8950 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8952 if ac_fn_c_try_link
"$LINENO"; then :
8953 ac_cv_search_opendir
=$ac_res
8955 rm -f core conftest.err conftest.
$ac_objext \
8957 if ${ac_cv_search_opendir+:} false
; then :
8961 if ${ac_cv_search_opendir+:} false
; then :
8964 ac_cv_search_opendir
=no
8967 LIBS
=$ac_func_search_save_LIBS
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8970 $as_echo "$ac_cv_search_opendir" >&6; }
8971 ac_res
=$ac_cv_search_opendir
8972 if test "$ac_res" != no
; then :
8973 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8980 $as_echo_n "checking for ANSI C header files... " >&6; }
8981 if ${ac_cv_header_stdc+:} false
; then :
8982 $as_echo_n "(cached) " >&6
8984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8999 if ac_fn_c_try_compile
"$LINENO"; then :
9000 ac_cv_header_stdc
=yes
9002 ac_cv_header_stdc
=no
9004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9006 if test $ac_cv_header_stdc = yes; then
9007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9014 $EGREP "memchr" >/dev
/null
2>&1; then :
9017 ac_cv_header_stdc
=no
9023 if test $ac_cv_header_stdc = yes; then
9024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9031 $EGREP "free" >/dev
/null
2>&1; then :
9034 ac_cv_header_stdc
=no
9040 if test $ac_cv_header_stdc = yes; then
9041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9042 if test "$cross_compiling" = yes; then :
9045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9049 #if ((' ' & 0x0FF) == 0x020)
9050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9053 # define ISLOWER(c) \
9054 (('a' <= (c) && (c) <= 'i') \
9055 || ('j' <= (c) && (c) <= 'r') \
9056 || ('s' <= (c) && (c) <= 'z'))
9057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9065 for (i = 0; i < 256; i++)
9066 if (XOR (islower (i), ISLOWER (i))
9067 || toupper (i) != TOUPPER (i))
9072 if ac_fn_c_try_run
"$LINENO"; then :
9075 ac_cv_header_stdc
=no
9077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9084 $as_echo "$ac_cv_header_stdc" >&6; }
9085 if test $ac_cv_header_stdc = yes; then
9087 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9092 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9093 if ${ac_cv_header_sys_wait_h+:} false
; then :
9094 $as_echo_n "(cached) " >&6
9096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 #include <sys/types.h>
9099 #include <sys/wait.h>
9101 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9104 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9112 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9117 if ac_fn_c_try_compile
"$LINENO"; then :
9118 ac_cv_header_sys_wait_h
=yes
9120 ac_cv_header_sys_wait_h
=no
9122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9125 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9126 if test $ac_cv_header_sys_wait_h = yes; then
9128 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9132 for ac_header
in fcntl.h limits.h malloc.h
strings.h syslog.h
9134 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9135 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9136 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9137 cat >>confdefs.h
<<_ACEOF
9138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9145 for ac_header
in unistd.h stddef.h sched.h dlfcn.h dl.h
9147 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9148 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9149 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9150 cat >>confdefs.h
<<_ACEOF
9151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9158 for ac_header
in sys
/time.h sys
/times.h
9160 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9161 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9162 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9163 cat >>confdefs.h
<<_ACEOF
9164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9171 for ac_header
in sys
/resource.h sys
/prctl.h
9173 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9174 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9175 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9176 cat >>confdefs.h
<<_ACEOF
9177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184 for ac_header
in sys
/sysinfo.h sys
/systeminfo.h
9186 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9187 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9188 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9189 cat >>confdefs.h
<<_ACEOF
9190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9197 for ac_header
in endian.h standards.h sys
/byteorder.h
9199 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9200 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9201 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9202 cat >>confdefs.h
<<_ACEOF
9203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9210 for ac_header
in libgen.h sys
/param.h sys
/mman.h sys
/un.h
9212 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9213 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9214 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9215 cat >>confdefs.h
<<_ACEOF
9216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9223 for ac_header
in values.h stdint.h ieeefp.h math.h
9225 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9226 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9227 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9228 cat >>confdefs.h
<<_ACEOF
9229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9236 for ac_header
in pwd.h grp.h regex.h sys
/wait.h
9238 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9239 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9240 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9241 cat >>confdefs.h
<<_ACEOF
9242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9249 for ac_header
in termio.h termios.h sys
/termios.h sys
/ioctl.h sys
/socket.h
9251 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9252 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9253 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9254 cat >>confdefs.h
<<_ACEOF
9255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9262 for ac_header
in netdb.h
9264 ac_fn_c_check_header_mongrel
"$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9265 if test "x$ac_cv_header_netdb_h" = xyes
; then :
9266 cat >>confdefs.h
<<_ACEOF
9267 #define HAVE_NETDB_H 1
9274 if test $target_os = darwin
9276 for ac_header
in net
/if.h
9278 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9279 #include <sys/socket.h>
9281 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9282 cat >>confdefs.h
<<_ACEOF
9283 #define HAVE_NET_IF_H 1
9291 for ac_header
in net
/if.h
9293 ac_fn_c_check_header_mongrel
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9294 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9295 cat >>confdefs.h
<<_ACEOF
9296 #define HAVE_NET_IF_H 1
9304 for ac_header
in netinet
/in.h netinet
/tcp.h arpa
/inet.h
9306 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9307 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9308 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9309 cat >>confdefs.h
<<_ACEOF
9310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9317 for ac_header
in windows.h winsock2.h ws2tcpip.h
9319 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9321 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9322 cat >>confdefs.h
<<_ACEOF
9323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9330 for ac_header
in execinfo.h bits
/wordsize.h
9332 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9333 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9334 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9335 cat >>confdefs.h
<<_ACEOF
9336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9343 for ac_header
in iptypes.h
9345 ac_fn_c_check_header_compile
"$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9347 if test "x$ac_cv_header_iptypes_h" = xyes
; then :
9348 cat >>confdefs.h
<<_ACEOF
9349 #define HAVE_IPTYPES_H 1
9356 for ac_header
in iphlpapi.h
9358 ac_fn_c_check_header_compile
"$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9360 if test "x$ac_cv_header_iphlpapi_h" = xyes
; then :
9361 cat >>confdefs.h
<<_ACEOF
9362 #define HAVE_IPHLPAPI_H 1
9369 for ac_header
in fts.h libzfs.h
9371 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9372 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9373 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9374 cat >>confdefs.h
<<_ACEOF
9375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9382 for ac_header
in sys
/statvfs.h sys
/statfs.h sys
/mount.h
9384 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9385 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9386 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9387 cat >>confdefs.h
<<_ACEOF
9388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9397 $as_echo_n "checking for sys/endian.h ... " >&6; }
9398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9401 #include <sys/endian.h>
9412 if ac_fn_c_try_compile
"$LINENO"; then :
9414 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9416 $as_echo "yes" >&6; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9424 $as_echo_n "checking for machine/endian.h ... " >&6; }
9425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9428 #include <machine/endian.h>
9439 if ac_fn_c_try_compile
"$LINENO"; then :
9441 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9443 $as_echo "yes" >&6; }
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446 $as_echo "no" >&6; }
9448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9451 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 #include <standards.h>
9456 #include <sys/endian.h>
9467 if ac_fn_c_try_compile
"$LINENO"; then :
9469 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9471 $as_echo "yes" >&6; }
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 $as_echo "no" >&6; }
9476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9479 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9480 if ${ac_cv_c_const+:} false
; then :
9481 $as_echo_n "(cached) " >&6
9483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9491 /* Ultrix mips cc rejects this sort of thing. */
9492 typedef int charset[2];
9493 const charset cs = { 0, 0 };
9494 /* SunOS 4.1.1 cc rejects this. */
9495 char const *const *pcpcc;
9497 /* NEC SVR4.0.2 mips cc rejects this. */
9498 struct point {int x, y;};
9499 static struct point const zero = {0,0};
9500 /* AIX XL C 1.02.0.0 rejects this.
9501 It does not let you subtract one const X* pointer from another in
9502 an arm of an if-expression whose if-part is not a constant
9504 const char *g = "string";
9505 pcpcc = &g + (g ? g-g : 0);
9506 /* HPUX 7.0 cc rejects these. */
9508 ppc = (char**) pcpcc;
9509 pcpcc = (char const *const *) ppc;
9510 { /* SCO 3.2v4 cc rejects this sort of thing. */
9513 char const *s = 0 ? (char *) 0 : (char const *) 0;
9518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9520 const int *foo = &x[0];
9523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9524 typedef const int *iptr;
9528 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9529 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9530 struct s { int j; const int *ap[3]; } bx;
9531 struct s *b = &bx; b->j = 5;
9533 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9537 return !cs[0] && !zero.x;
9544 if ac_fn_c_try_compile
"$LINENO"; then :
9549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9552 $as_echo "$ac_cv_c_const" >&6; }
9553 if test $ac_cv_c_const = no
; then
9555 $as_echo "#define const /**/" >>confdefs.h
9559 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9560 if test "x$ac_cv_type_off_t" = xyes
; then :
9564 cat >>confdefs.h
<<_ACEOF
9565 #define off_t long int
9570 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9571 if test "x$ac_cv_type_pid_t" = xyes
; then :
9575 cat >>confdefs.h
<<_ACEOF
9581 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9582 if test "x$ac_cv_type_size_t" = xyes
; then :
9586 cat >>confdefs.h
<<_ACEOF
9587 #define size_t unsigned int
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9593 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9594 if ${ac_cv_header_time+:} false
; then :
9595 $as_echo_n "(cached) " >&6
9597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 #include <sys/types.h>
9600 #include <sys/time.h>
9606 if ((struct tm *) 0)
9612 if ac_fn_c_try_compile
"$LINENO"; then :
9613 ac_cv_header_time
=yes
9615 ac_cv_header_time
=no
9617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9620 $as_echo "$ac_cv_header_time" >&6; }
9621 if test $ac_cv_header_time = yes; then
9623 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9628 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9629 if ${ac_cv_struct_tm+:} false
; then :
9630 $as_echo_n "(cached) " >&6
9632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 #include <sys/types.h>
9641 int *p = &tm.tm_sec;
9647 if ac_fn_c_try_compile
"$LINENO"; then :
9648 ac_cv_struct_tm
=time.h
9650 ac_cv_struct_tm
=sys
/time.h
9652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9655 $as_echo "$ac_cv_struct_tm" >&6; }
9656 if test $ac_cv_struct_tm = sys
/time.h
; then
9658 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9663 $as_echo_n "checking for inline... " >&6; }
9664 if ${ac_cv_c_inline+:} false
; then :
9665 $as_echo_n "(cached) " >&6
9668 for ac_kw
in inline __inline__ __inline
; do
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9673 static $ac_kw foo_t static_foo () {return 0; }
9674 $ac_kw foo_t foo () {return 0; }
9678 if ac_fn_c_try_compile
"$LINENO"; then :
9679 ac_cv_c_inline
=$ac_kw
9681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9682 test "$ac_cv_c_inline" != no
&& break
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9687 $as_echo "$ac_cv_c_inline" >&6; }
9689 case $ac_cv_c_inline in
9692 case $ac_cv_c_inline in
9694 *) ac_val
=$ac_cv_c_inline;;
9696 cat >>confdefs.h
<<_ACEOF
9698 #define inline $ac_val
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9706 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9707 if ${ac_cv_lib_regex_regcomp+:} false
; then :
9708 $as_echo_n "(cached) " >&6
9710 ac_check_lib_save_LIBS
=$LIBS
9711 LIBS
="-lregex $LIBS"
9712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9715 /* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
9730 if ac_fn_c_try_link
"$LINENO"; then :
9731 ac_cv_lib_regex_regcomp
=yes
9733 ac_cv_lib_regex_regcomp
=no
9735 rm -f core conftest.err conftest.
$ac_objext \
9736 conftest
$ac_exeext conftest.
$ac_ext
9737 LIBS
=$ac_check_lib_save_LIBS
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9740 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9741 if test "x$ac_cv_lib_regex_regcomp" = xyes
; then :
9742 cat >>confdefs.h
<<_ACEOF
9743 #define HAVE_LIBREGEX 1
9746 LIBS
="-lregex $LIBS"
9751 if test $ac_cv_lib_regex_regcomp = yes
9753 lib_for_regex
="-lregex"
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9760 $as_echo_n "checking for ncurses... " >&6; }
9762 if test -n "$ncurses_CFLAGS"; then
9763 pkg_cv_ncurses_CFLAGS
="$ncurses_CFLAGS"
9764 elif test -n "$PKG_CONFIG"; then
9765 if test -n "$PKG_CONFIG" && \
9766 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9767 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9770 test $ac_status = 0; }; then
9771 pkg_cv_ncurses_CFLAGS
=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9772 test "x$?" != "x0" && pkg_failed
=yes
9779 if test -n "$ncurses_LIBS"; then
9780 pkg_cv_ncurses_LIBS
="$ncurses_LIBS"
9781 elif test -n "$PKG_CONFIG"; then
9782 if test -n "$PKG_CONFIG" && \
9783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9784 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9787 test $ac_status = 0; }; then
9788 pkg_cv_ncurses_LIBS
=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9789 test "x$?" != "x0" && pkg_failed
=yes
9799 if test $pkg_failed = yes; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; }
9803 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9804 _pkg_short_errors_supported
=yes
9806 _pkg_short_errors_supported
=no
9808 if test $_pkg_short_errors_supported = yes; then
9809 ncurses_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9811 ncurses_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9813 # Put the nasty error message in config.log where it belongs
9814 echo "$ncurses_PKG_ERRORS" >&5
9817 elif test $pkg_failed = untried
; then
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 $as_echo "no" >&6; }
9822 ncurses_CFLAGS
=$pkg_cv_ncurses_CFLAGS
9823 ncurses_LIBS
=$pkg_cv_ncurses_LIBS
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9825 $as_echo "yes" >&6; }
9828 HAVE_NCURSES
=$have_ncurses
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
9834 $as_echo_n "checking for SYSTEMD... " >&6; }
9836 if test -n "$SYSTEMD_CFLAGS"; then
9837 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
9838 elif test -n "$PKG_CONFIG"; then
9839 if test -n "$PKG_CONFIG" && \
9840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9841 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844 test $ac_status = 0; }; then
9845 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
9846 test "x$?" != "x0" && pkg_failed
=yes
9853 if test -n "$SYSTEMD_LIBS"; then
9854 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
9855 elif test -n "$PKG_CONFIG"; then
9856 if test -n "$PKG_CONFIG" && \
9857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9858 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9861 test $ac_status = 0; }; then
9862 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
9863 test "x$?" != "x0" && pkg_failed
=yes
9873 if test $pkg_failed = yes; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9878 _pkg_short_errors_supported
=yes
9880 _pkg_short_errors_supported
=no
9882 if test $_pkg_short_errors_supported = yes; then
9883 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9885 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9887 # Put the nasty error message in config.log where it belongs
9888 echo "$SYSTEMD_PKG_ERRORS" >&5
9891 elif test $pkg_failed = untried
; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9896 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
9897 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9899 $as_echo "yes" >&6; }
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
9903 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
9904 PMDA_SYSTEMD
=$pmda_systemd
9906 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9907 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }; fi
9910 pmda_infiniband
=false
9911 if test "x$do_infiniband" != "xno"; then :
9913 for ac_header
in infiniband
/umad.h
9915 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
9916 if test "x$ac_cv_header_infiniband_umad_h" = xyes
; then :
9917 cat >>confdefs.h
<<_ACEOF
9918 #define HAVE_INFINIBAND_UMAD_H 1
9921 for ac_header
in infiniband
/mad.h
9923 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
9924 if test "x$ac_cv_header_infiniband_mad_h" = xyes
; then :
9925 cat >>confdefs.h
<<_ACEOF
9926 #define HAVE_INFINIBAND_MAD_H 1
9928 pmda_infiniband
=true
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
9941 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
9942 if ${ac_cv_lib_ibmad_madrpc_init+:} false
; then :
9943 $as_echo_n "(cached) " >&6
9945 ac_check_lib_save_LIBS
=$LIBS
9946 LIBS
="-libmad $LIBS"
9947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9950 /* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
9956 char madrpc_init ();
9960 return madrpc_init ();
9965 if ac_fn_c_try_link
"$LINENO"; then :
9966 ac_cv_lib_ibmad_madrpc_init
=yes
9968 ac_cv_lib_ibmad_madrpc_init
=no
9970 rm -f core conftest.err conftest.
$ac_objext \
9971 conftest
$ac_exeext conftest.
$ac_ext
9972 LIBS
=$ac_check_lib_save_LIBS
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
9975 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
9976 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes
; then :
9977 cat >>confdefs.h
<<_ACEOF
9978 #define HAVE_LIBIBMAD 1
9981 LIBS
="-libmad $LIBS"
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
9986 $as_echo_n "checking for umad_init in -libumad... " >&6; }
9987 if ${ac_cv_lib_ibumad_umad_init+:} false
; then :
9988 $as_echo_n "(cached) " >&6
9990 ac_check_lib_save_LIBS
=$LIBS
9991 LIBS
="-libumad $LIBS"
9992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9995 /* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
10005 return umad_init ();
10010 if ac_fn_c_try_link
"$LINENO"; then :
10011 ac_cv_lib_ibumad_umad_init
=yes
10013 ac_cv_lib_ibumad_umad_init
=no
10015 rm -f core conftest.err conftest.
$ac_objext \
10016 conftest
$ac_exeext conftest.
$ac_ext
10017 LIBS
=$ac_check_lib_save_LIBS
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10020 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10021 if test "x$ac_cv_lib_ibumad_umad_init" = xyes
; then :
10022 cat >>confdefs.h
<<_ACEOF
10023 #define HAVE_LIBIBUMAD 1
10026 LIBS
="-libumad $LIBS"
10030 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10032 IB_LIBS
="-libmad -libumad"
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10035 $as_echo_n "checking for port_performance_query_via... " >&6; }
10036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10045 char port_performance_query_via ();
10049 return port_performance_query_via ();
10054 if ac_fn_c_try_link
"$LINENO"; then :
10056 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10058 have_port_performance_query_via
=true
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10060 $as_echo "yes" >&6; }
10062 have_port_performance_query_via
=false
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064 $as_echo "no" >&6; }
10066 rm -f core conftest.err conftest.
$ac_objext \
10067 conftest
$ac_exeext conftest.
$ac_ext
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10069 $as_echo_n "checking for pma_query_via... " >&6; }
10070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10073 /* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
10079 char pma_query_via ();
10083 return pma_query_via ();
10088 if ac_fn_c_try_link
"$LINENO"; then :
10090 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10092 have_pma_query_via
=true
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10094 $as_echo "yes" >&6; }
10096 have_pma_query_via
=false
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10100 rm -f core conftest.err conftest.
$ac_objext \
10101 conftest
$ac_exeext conftest.
$ac_ext
10103 if test $have_pma_query_via -o $have_port_performance_query_via
10107 pmda_infiniband
=false
10110 pmda_infiniband
=false
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10117 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10118 PMDA_INFINIBAND
=$pmda_infiniband
10120 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }; fi
10125 if test "x$do_papi" != "xno"; then :
10129 saved_LDFLAGS
="$LDFLAGS"
10130 saved_CFLAGS
="$CFLAGS"
10133 CFLAGS
="$papi_CFLAGS"
10134 LDFLAGS
="$papi_LIBS"
10140 PAPI_ROOTDIR
=$do_papi;
10141 CFLAGS
="-I$PAPI_ROOTDIR/include"
10142 LDFLAGS
="-L$PAPI_ROOTDIR/lib"
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10148 $as_echo_n "checking for papi... " >&6; }
10150 if test -n "$papi_CFLAGS"; then
10151 pkg_cv_papi_CFLAGS
="$papi_CFLAGS"
10152 elif test -n "$PKG_CONFIG"; then
10153 if test -n "$PKG_CONFIG" && \
10154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10155 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10158 test $ac_status = 0; }; then
10159 pkg_cv_papi_CFLAGS
=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10160 test "x$?" != "x0" && pkg_failed
=yes
10167 if test -n "$papi_LIBS"; then
10168 pkg_cv_papi_LIBS
="$papi_LIBS"
10169 elif test -n "$PKG_CONFIG"; then
10170 if test -n "$PKG_CONFIG" && \
10171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10172 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10175 test $ac_status = 0; }; then
10176 pkg_cv_papi_LIBS
=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10177 test "x$?" != "x0" && pkg_failed
=yes
10187 if test $pkg_failed = yes; then
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10192 _pkg_short_errors_supported
=yes
10194 _pkg_short_errors_supported
=no
10196 if test $_pkg_short_errors_supported = yes; then
10197 papi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10199 papi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10201 # Put the nasty error message in config.log where it belongs
10202 echo "$papi_PKG_ERRORS" >&5
10204 as_fn_error $?
"Package requirements ($do_papi) were not met:
10208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10209 installed software in a non-standard prefix.
10211 Alternatively, you may set the environment variables papi_CFLAGS
10212 and papi_LIBS to avoid the need to call pkg-config.
10213 See the pkg-config man page for more details." "$LINENO" 5
10214 elif test $pkg_failed = untried
; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10219 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
10220 is in your PATH or set the PKG_CONFIG environment variable to the full
10221 path to pkg-config.
10223 Alternatively, you may set the environment variables papi_CFLAGS
10224 and papi_LIBS to avoid the need to call pkg-config.
10225 See the pkg-config man page for more details.
10227 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10228 See \`config.log' for more details" "$LINENO" 5; }
10230 papi_CFLAGS
=$pkg_cv_papi_CFLAGS
10231 papi_LIBS
=$pkg_cv_papi_LIBS
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10233 $as_echo "yes" >&6; }
10235 CFLAGS
="$papi_CFLAGS"
10236 LDFLAGS
="$papi_LIBS"
10241 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10243 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10244 if ${ac_cv_lib_papi_PAPI_library_init+:} false
; then :
10245 $as_echo_n "(cached) " >&6
10247 ac_check_lib_save_LIBS
=$LIBS
10248 LIBS
="-lpapi $LIBS"
10249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10258 char PAPI_library_init ();
10262 return PAPI_library_init ();
10267 if ac_fn_c_try_link
"$LINENO"; then :
10268 ac_cv_lib_papi_PAPI_library_init
=yes
10270 ac_cv_lib_papi_PAPI_library_init
=no
10272 rm -f core conftest.err conftest.
$ac_objext \
10273 conftest
$ac_exeext conftest.
$ac_ext
10274 LIBS
=$ac_check_lib_save_LIBS
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10277 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10278 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes
; then :
10279 papi_libs
="$LDFLAGS -lpapi"
10284 for ac_header
in papi.h
10286 ac_fn_c_check_header_mongrel
"$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10287 if test "x$ac_cv_header_papi_h" = xyes
; then :
10288 cat >>confdefs.h
<<_ACEOF
10289 #define HAVE_PAPI_H 1
10291 papi_cflags
="$CFLAGS"
10298 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10300 as_fn_error $?
"PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10302 pmda_papi
=$enable_papi
10305 CFLAGS
="$saved_CFLAGS"
10306 LDFLAGS
="$saved_LDFLAGS"
10307 PAPI_CFLAGS
=$papi_cflags
10309 PAPI_LIBS
=$papi_libs
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10314 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10315 PMDA_PAPI
=$pmda_papi
10317 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10318 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319 $as_echo "no" >&6; }; fi
10321 if test "x$pmda_papi" = "xtrue"; then :
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10324 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10325 cat <<End-of-File >conftest.c
10327 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10329 (eval $ac_compile) 2>conftest.out
10330 cat conftest.out
>&5
10331 if test -s conftest.out
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10337 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10340 $as_echo "yes" >&6; }
10347 pmda_perfevent
=false
10348 if test "x$do_perfevent" != "xno" ; then :
10350 enable_perfevent
=true
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10354 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10355 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false
; then :
10356 $as_echo_n "(cached) " >&6
10358 ac_check_lib_save_LIBS
=$LIBS
10360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10363 /* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10369 char pfm_get_os_event_encoding ();
10373 return pfm_get_os_event_encoding ();
10378 if ac_fn_c_try_link
"$LINENO"; then :
10379 ac_cv_lib_pfm_pfm_get_os_event_encoding
=yes
10381 ac_cv_lib_pfm_pfm_get_os_event_encoding
=no
10383 rm -f core conftest.err conftest.
$ac_objext \
10384 conftest
$ac_exeext conftest.
$ac_ext
10385 LIBS
=$ac_check_lib_save_LIBS
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10388 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10389 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes
; then :
10392 enable_perfevent
=false
10395 for ac_header
in perfmon
/pfmlib_perf_event.h
10397 ac_fn_c_check_header_mongrel
"$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10398 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes
; then :
10399 cat >>confdefs.h
<<_ACEOF
10400 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10404 enable_perfevent
=false
10409 if test "$do_perfevent" != "check" -a "$enable_papi" != "true"
10411 as_fn_error $?
"libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10413 pmda_perfevent
=$enable_perfevent
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10421 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10422 PMDA_PERFEVENT
=$pmda_perfevent
10424 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10425 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 $as_echo "no" >&6; }; fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10431 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10434 #include <rpm/header.h>
10438 (void)HEADERGET_EXT;
10443 if ac_fn_c_try_compile
"$LINENO"; then :
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10445 $as_echo "yes" >&6; }
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10453 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10456 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10457 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }; fi
10462 for ac_prog
in qshape
10464 # Extract the first word of "$ac_prog", so it can be a program name with args.
10465 set dummy
$ac_prog; ac_word
=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if ${ac_cv_prog_QSHAPE+:} false
; then :
10469 $as_echo_n "(cached) " >&6
10471 if test -n "$QSHAPE"; then
10472 ac_cv_prog_QSHAPE
="$QSHAPE" # Let the user override the test.
10474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10475 as_dummy
="path=$PATH:/usr/sbin"
10476 for as_dir
in $as_dummy
10479 test -z "$as_dir" && as_dir
=.
10480 for ac_exec_ext
in '' $ac_executable_extensions; do
10481 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_QSHAPE
="$ac_prog"
10483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 QSHAPE
=$ac_cv_prog_QSHAPE
10493 if test -n "$QSHAPE"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10495 $as_echo "$QSHAPE" >&6; }
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10502 test -n "$QSHAPE" && break
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10506 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10507 if test -n "$QSHAPE"
10511 for script in /usr
/share
/doc
/packages
/postfix-doc
/auxiliary
/qshape
/qshape.pl
10513 if test -f "$script"
10520 PMDA_POSTFIX
=$pmda_postfix
10522 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10523 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524 $as_echo "no" >&6; }; fi
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10529 $as_echo_n "checking for libmicrohttpd... " >&6; }
10531 if test -n "$libmicrohttpd_CFLAGS"; then
10532 pkg_cv_libmicrohttpd_CFLAGS
="$libmicrohttpd_CFLAGS"
10533 elif test -n "$PKG_CONFIG"; then
10534 if test -n "$PKG_CONFIG" && \
10535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10536 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10539 test $ac_status = 0; }; then
10540 pkg_cv_libmicrohttpd_CFLAGS
=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10541 test "x$?" != "x0" && pkg_failed
=yes
10548 if test -n "$libmicrohttpd_LIBS"; then
10549 pkg_cv_libmicrohttpd_LIBS
="$libmicrohttpd_LIBS"
10550 elif test -n "$PKG_CONFIG"; then
10551 if test -n "$PKG_CONFIG" && \
10552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10553 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10556 test $ac_status = 0; }; then
10557 pkg_cv_libmicrohttpd_LIBS
=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10558 test "x$?" != "x0" && pkg_failed
=yes
10568 if test $pkg_failed = yes; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10572 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10573 _pkg_short_errors_supported
=yes
10575 _pkg_short_errors_supported
=no
10577 if test $_pkg_short_errors_supported = yes; then
10578 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10580 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10582 # Put the nasty error message in config.log where it belongs
10583 echo "$libmicrohttpd_PKG_ERRORS" >&5
10585 have_libmicrohttpd
=false
10586 elif test $pkg_failed = untried
; then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10589 have_libmicrohttpd
=false
10591 libmicrohttpd_CFLAGS
=$pkg_cv_libmicrohttpd_CFLAGS
10592 libmicrohttpd_LIBS
=$pkg_cv_libmicrohttpd_LIBS
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10594 $as_echo "yes" >&6; }
10595 have_libmicrohttpd
=true
10597 HAVE_LIBMICROHTTPD
=$have_libmicrohttpd
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10603 $as_echo_n "checking for cairo... " >&6; }
10605 if test -n "$cairo_CFLAGS"; then
10606 pkg_cv_cairo_CFLAGS
="$cairo_CFLAGS"
10607 elif test -n "$PKG_CONFIG"; then
10608 if test -n "$PKG_CONFIG" && \
10609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10610 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10613 test $ac_status = 0; }; then
10614 pkg_cv_cairo_CFLAGS
=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10615 test "x$?" != "x0" && pkg_failed
=yes
10622 if test -n "$cairo_LIBS"; then
10623 pkg_cv_cairo_LIBS
="$cairo_LIBS"
10624 elif test -n "$PKG_CONFIG"; then
10625 if test -n "$PKG_CONFIG" && \
10626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10627 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10630 test $ac_status = 0; }; then
10631 pkg_cv_cairo_LIBS
=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10632 test "x$?" != "x0" && pkg_failed
=yes
10642 if test $pkg_failed = yes; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644 $as_echo "no" >&6; }
10646 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10647 _pkg_short_errors_supported
=yes
10649 _pkg_short_errors_supported
=no
10651 if test $_pkg_short_errors_supported = yes; then
10652 cairo_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10654 cairo_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10656 # Put the nasty error message in config.log where it belongs
10657 echo "$cairo_PKG_ERRORS" >&5
10660 elif test $pkg_failed = untried
; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10665 cairo_CFLAGS
=$pkg_cv_cairo_CFLAGS
10666 cairo_LIBS
=$pkg_cv_cairo_LIBS
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10668 $as_echo "yes" >&6; }
10671 HAVE_CAIRO
=$have_cairo
10674 enable_webapi
=false
10675 if test "x$do_webapi" != "xno"; then :
10679 if test "$have_libmicrohttpd" != "true"
10681 enable_webapi
=false
10682 test "$do_webapi" != "check" && \
10683 as_fn_error $?
"libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10684 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10686 enable_webapi
=false
10687 test "$do_webapi" != "check" && \
10688 as_fn_error $?
"C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10694 enable_manager
=false
10695 if test "x$do_manager" != "xno"; then :
10697 enable_manager
=true
10699 if test "$target_os" = "mingw"
10701 enable_manager
=false
10702 test "$do_manager" != "check" && \
10703 as_fn_error $?
"MinGW build, cannot enable daemon manager" "$LINENO" 5
10704 elif test "x$cxx" = "x"
10706 enable_manager
=false
10707 test "$do_manager" != "check" && \
10708 as_fn_error $?
"C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10711 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714 #ifndef _XOPEN_SOURCE
10715 #define _XOPEN_SOURCE 600
10727 if ac_fn_c_try_compile
"$LINENO"; then :
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729 $as_echo "yes" >&6; }
10731 enable_manager
=false
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10741 $as_echo_n "checking return type of signal handlers... " >&6; }
10742 if ${ac_cv_type_signal+:} false
; then :
10743 $as_echo_n "(cached) " >&6
10745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10747 #include <sys/types.h>
10748 #include <signal.h>
10753 return *(signal (0, 0)) (0) == 1;
10758 if ac_fn_c_try_compile
"$LINENO"; then :
10759 ac_cv_type_signal
=int
10761 ac_cv_type_signal
=void
10763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10766 $as_echo "$ac_cv_type_signal" >&6; }
10768 cat >>confdefs.h
<<_ACEOF
10769 #define RETSIGTYPE $ac_cv_type_signal
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
10774 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
10775 if ${ac_cv_func_wait3_rusage+:} false
; then :
10776 $as_echo_n "(cached) " >&6
10778 if test "$cross_compiling" = yes; then :
10779 ac_cv_func_wait3_rusage
=no
10781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 $ac_includes_default
10784 #include <sys/time.h>
10785 #include <sys/resource.h>
10786 #include <sys/wait.h>
10787 /* HP-UX has wait3 but does not fill in rusage at all. */
10793 /* Use a field that we can force nonzero --
10794 voluntary context switches.
10795 For systems like NeXT and OSF/1 that don't set it,
10796 also use the system CPU time. And page faults (I/O) for Linux. */
10798 r.ru_stime.tv_sec = 0;
10799 r.ru_stime.tv_usec = 0;
10800 r.ru_majflt = r.ru_minflt = 0;
10803 case 0: /* Child. */
10804 sleep(1); /* Give up the CPU. */
10807 case -1: /* What can we do? */
10810 default: /* Parent. */
10812 /* Avoid "text file busy" from rm on fast HP-UX machines. */
10814 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
10815 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
10819 if ac_fn_c_try_run
"$LINENO"; then :
10820 ac_cv_func_wait3_rusage
=yes
10822 ac_cv_func_wait3_rusage
=no
10824 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10825 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
10830 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
10831 if test $ac_cv_func_wait3_rusage = yes; then
10833 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
10837 for ac_func
in vprintf
10839 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
10840 if test "x$ac_cv_func_vprintf" = xyes
; then :
10841 cat >>confdefs.h
<<_ACEOF
10842 #define HAVE_VPRINTF 1
10845 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
10846 if test "x$ac_cv_func__doprnt" = xyes
; then :
10848 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10856 for ac_func
in mktime nanosleep
usleep unsetenv
10858 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10859 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10860 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10861 cat >>confdefs.h
<<_ACEOF
10862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10868 for ac_func
in select socket gethostname getpeerucred getpeereid
10870 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10871 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10872 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10873 cat >>confdefs.h
<<_ACEOF
10874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10880 for ac_func
in uname syslog __clone pipe2 fcntl ioctl
10882 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10883 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10884 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10885 cat >>confdefs.h
<<_ACEOF
10886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10892 for ac_func
in prctl setlinebuf waitpid atexit
kill
10894 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10895 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10896 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10897 cat >>confdefs.h
<<_ACEOF
10898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10904 for ac_func
in chown fchmod getcwd scandir mkstemp
10906 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10907 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10908 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10909 cat >>confdefs.h
<<_ACEOF
10910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10916 for ac_func
in brk sbrk posix_memalign memalign valloc
10918 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10919 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10920 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10921 cat >>confdefs.h
<<_ACEOF
10922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10928 for ac_func
in signal sighold sigrelse tcgetattr
10930 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10931 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10932 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10933 cat >>confdefs.h
<<_ACEOF
10934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10940 for ac_func
in regex regcmp regexec regcomp
10942 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10943 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10944 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10945 cat >>confdefs.h
<<_ACEOF
10946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10952 for ac_func
in strtod strtol strtoll strtoull strndup strchrnul
10954 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10956 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10957 cat >>confdefs.h
<<_ACEOF
10958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10964 for ac_func
in getuid getgid
10966 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10967 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10968 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10969 cat >>confdefs.h
<<_ACEOF
10970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10976 for ac_func
in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
10978 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10979 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10980 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10981 cat >>confdefs.h
<<_ACEOF
10982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10988 for ac_func
in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
10990 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10991 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10992 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10993 cat >>confdefs.h
<<_ACEOF
10994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11000 for ac_func
in sysinfo trace_back_stack backtrace
11002 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11003 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11004 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11005 cat >>confdefs.h
<<_ACEOF
11006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11012 for ac_func
in sendmsg recvmsg setns
11014 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11015 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11016 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11017 cat >>confdefs.h
<<_ACEOF
11018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025 if test $target_os != linux
-a $target_os != freebsd
-a $target_os != kfreebsd
-a $target_os != netbsd
; then
11026 for ac_func
in readdir64
11028 ac_fn_c_check_func
"$LINENO" "readdir64" "ac_cv_func_readdir64"
11029 if test "x$ac_cv_func_readdir64" = xyes
; then :
11030 cat >>confdefs.h
<<_ACEOF
11031 #define HAVE_READDIR64 1
11039 if test $target_os = solaris
11041 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11042 if test "x$ac_cv_type___int32_t" = xyes
; then :
11046 cat >>confdefs.h
<<_ACEOF
11047 #define __int32_t int32_t
11052 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11053 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11057 cat >>confdefs.h
<<_ACEOF
11058 #define __uint32_t uint32_t
11063 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11064 if test "x$ac_cv_type___int64_t" = xyes
; then :
11068 cat >>confdefs.h
<<_ACEOF
11069 #define __int64_t int64_t
11074 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11075 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11079 cat >>confdefs.h
<<_ACEOF
11080 #define __uint64_t uint64_t
11085 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11086 if test "x$ac_cv_type_uint_t" = xyes
; then :
11090 cat >>confdefs.h
<<_ACEOF
11091 #define uint_t u_int32_t
11097 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11098 if test "x$ac_cv_type___int32_t" = xyes
; then :
11102 cat >>confdefs.h
<<_ACEOF
11103 #define __int32_t int
11108 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11109 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11113 cat >>confdefs.h
<<_ACEOF
11114 #define __uint32_t unsigned int
11119 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11120 if test "x$ac_cv_type___int64_t" = xyes
; then :
11124 cat >>confdefs.h
<<_ACEOF
11125 #define __int64_t long long
11130 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11131 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11135 cat >>confdefs.h
<<_ACEOF
11136 #define __uint64_t unsigned long long
11141 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11142 if test "x$ac_cv_type_uint_t" = xyes
; then :
11146 cat >>confdefs.h
<<_ACEOF
11147 #define uint_t unsigned int
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11155 $as_echo_n "checking for __psint_t ... " >&6; }
11156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 #include <sys/types.h>
11160 #include <stdlib.h>
11161 #include <stddef.h>
11171 if ac_fn_c_try_compile
"$LINENO"; then :
11173 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175 $as_echo "yes" >&6; }
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11183 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11187 #include <stddef.h>
11188 #ifdef HAVE_MALLOC_H
11189 #include <malloc.h>
11200 if ac_fn_c_try_compile
"$LINENO"; then :
11202 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11204 $as_echo "yes" >&6; }
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207 $as_echo "no" >&6; }
11209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11212 $as_echo_n "checking for uid_t ... " >&6; }
11213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11216 #include <sys/types.h>
11229 if ac_fn_c_try_compile
"$LINENO"; then :
11231 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11233 $as_echo "yes" >&6; }
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11240 $as_echo_n "checking for gid_t ... " >&6; }
11241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11244 #include <sys/types.h>
11257 if ac_fn_c_try_compile
"$LINENO"; then :
11259 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11261 $as_echo "yes" >&6; }
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264 $as_echo "no" >&6; }
11266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11268 $as_echo_n "checking for SID ... " >&6; }
11269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11272 #ifdef HAVE_WINDOWS_H
11273 #include <windows.h>
11284 if ac_fn_c_try_compile
"$LINENO"; then :
11286 $as_echo "#define HAVE_SID 1" >>confdefs.h
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11288 $as_echo "yes" >&6; }
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11296 $as_echo_n "checking for socklen_t ... " >&6; }
11297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11300 #include <sys/types.h>
11301 #ifdef HAVE_SYS_SOCKET_H
11302 #include <sys/socket.h>
11313 if ac_fn_c_try_compile
"$LINENO"; then :
11315 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11317 $as_echo "yes" >&6; }
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11337 if ac_fn_c_try_compile
"$LINENO"; then :
11339 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 #include <stdlib.h>
11348 #include <unistd.h>
11353 char **x = _environ;
11358 if ac_fn_c_try_link
"$LINENO"; then :
11360 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11363 rm -f core conftest.err conftest.
$ac_objext \
11364 conftest
$ac_exeext conftest.
$ac_ext
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11367 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11371 #ifdef HAVE_SYS_PRCTL_H
11372 #include <sys/prctl.h>
11378 int i = PR_TERMCHILD;
11383 if ac_fn_c_try_compile
"$LINENO"; then :
11385 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11387 $as_echo "yes" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11395 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11399 #ifdef HAVE_SYS_PRCTL_H
11400 #include <sys/prctl.h>
11406 int i = PR_SET_PDEATHSIG;
11411 if ac_fn_c_try_compile
"$LINENO"; then :
11413 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415 $as_echo "yes" >&6; }
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11423 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11424 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
11425 $as_echo_n "(cached) " >&6
11427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429 #include <sys/types.h>
11430 #include <termios.h>
11436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11437 $EGREP "yes" >/dev
/null
2>&1; then :
11438 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
11440 ac_cv_sys_tiocgwinsz_in_termios_h
=no
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11446 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11448 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11450 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11451 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
11452 $as_echo_n "(cached) " >&6
11454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11456 #include <sys/types.h>
11457 #include <sys/ioctl.h>
11463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11464 $EGREP "yes" >/dev
/null
2>&1; then :
11465 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
11467 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11473 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11475 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11477 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11484 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11485 save_CFLAGS
="$CFLAGS"
11487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11498 if ac_fn_c_try_link
"$LINENO"; then :
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11500 $as_echo "yes" >&6; }
11501 rdynamic_flag
=-rdynamic
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11508 rm -f core conftest.err conftest.
$ac_objext \
11509 conftest
$ac_exeext conftest.
$ac_ext
11510 CFLAGS
="$save_CFLAGS"
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11515 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11516 cat <<End-of-File >conftest.c
11517 #include <stdlib.h>
11518 #include <unistd.h>
11519 #include <dirent.h>
11521 my_select(const struct dirent *foo) { return 0; }
11522 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11524 (eval $ac_compile) 2>conftest.out
11525 cat conftest.out
>&5
11526 if test -s conftest.out
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11532 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11535 $as_echo "yes" >&6; }
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11540 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11541 cat <<End-of-File >conftest.c
11542 #include <stdlib.h>
11543 #include <unistd.h>
11544 #include <dirent.h>
11545 int main() { struct dirent d; d.d_off = 0; }
11547 (eval $ac_compile) 2>conftest.out
11548 cat conftest.out
>&5
11549 if test -s conftest.out
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11555 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11558 $as_echo "yes" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11563 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11564 if test "$cross_compiling" = "yes"; then
11565 ans
=$printf_p_prefix
11566 echo "cross-compile -> \"$ans\"" >&5
11568 cat <<End-of-File >conftest.c
11570 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11572 (eval $ac_compile) 2>&5
11573 (eval $ac_link) 2>&5
11575 echo "./conftest -> \"$ans\"" >&5
11581 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11584 $as_echo "yes" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11591 rm -rf conftest conftest.
*
11595 # need to deal with this sort of cpp output ...
11596 # typedef long pid_t;
11597 # typedef unsigned int pid_t;
11598 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11599 # __extension__ typedef int pid_t;
11605 # typedef ... *pid;
11606 # and chaining of the form
11607 # typedef long __pid_t;
11608 # typedef __pid_t pid_t;
11610 _raw
=`$CPP conftest.c \
11612 -e 's/[ ]__attribute__ ((.*));/;/' \
11613 -e 's/__extension__[ ][ ]*//' \
11615 /bozo/ { print; next }
11616 $1 == "typedef" { printf "%s",$0
11622 if ($0 ~ /{/) depth = 1
11625 wantsemi == 1 { printf " %s",$0
11626 if ($0 ~ /{/) depth++
11628 if ($0 ~ /}/) depth--
11629 if (depth > 0) next
11642 $1 == "typedef" { map[$NF] = ""
11643 for (i = 2; i < NF; i++) {
11647 map[$NF] = map[$NF] " " $i
11649 print $NF " -> " map[$NF] >"conftest.debug"
11652 $2 == "bozo" { t = $1
11653 printf "best guess: %s",t >"conftest.debug"
11654 while (map[t] != "") {
11656 printf " -> %s",t >"conftest.debug"
11658 print "" >"conftest.debug"
11667 unsigned|
'unsigned int')
11673 'long long'|
'long long int')
11674 if test $target_os = mingw
; then
11680 'unsigned long'|
'unsigned long int'|
'long unsigned int')
11683 'unsigned long long'|
'unsigned long long int')
11684 if test $target_os = mingw
; then
11690 *\
*) # pointer to a something
11693 struct\
*) # not much can be done here ...
11698 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11699 echo "... typedef mapping ..."
11701 rm -rf conftest conftest.
*
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11708 $as_echo_n "checking printf type for pid_t... " >&6; }
11709 if test "$cross_compiling" = "yes"; then
11710 ans
=$printf_fmt_pid
11711 echo "cross-compile -> \"$ans\"" >&5
11714 cat <<End-of-File >conftest.c
11715 #include <sys/types.h>
11716 #include <unistd.h>
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11723 $as_echo "$fmt_pid" >&6; }
11725 rm -rf conftest.c conftest.debug
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11728 $as_echo_n "checking printf type for int64_t ... " >&6; }
11729 if test "$cross_compiling" = "yes"; then
11730 ans
=$printf_fmt_int64
11731 echo "cross-compile -> \"$ans\"" >&5
11733 cat <<End-of-File >conftest.c
11735 #include <stdint.h>
11736 #include <inttypes.h>
11739 printf("\"%s\"\n", __PRI64_PREFIX "d");
11744 (eval $ac_link) 2>&5
11745 if test -x .
/conftest
11748 echo "./conftest -> \"$ans\"" >&5
11752 cat <<End-of-File >conftest.c
11754 #include <stdint.h>
11755 #include <string.h>
11759 int64_t bozo = 0x12345678abcdLL;
11760 sprintf(buf, "%lx", bozo);
11761 if (strcmp(buf, "12345678abcd") == 0)
11762 printf("\"ld\"\n");
11764 sprintf(buf, "%llx", bozo);
11765 if (strcmp(buf, "12345678abcd") == 0)
11766 printf("\"lld\"\n");
11771 (eval $ac_link) 2>&5
11772 if test -x .
/conftest
11775 echo "./conftest -> \"$ans\"" >&5
11781 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
11782 rm -rf conftest conftest.
*
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
11787 $as_echo "\"$fmt_int64\"" >&6; }
11789 rm -rf conftest.
* conftest
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
11792 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
11793 if test "$cross_compiling" = "yes"; then
11795 echo "cross-compile -> \"$ans\"" >&5
11797 cat <<End-of-File >conftest.c
11799 #include <stdlib.h>
11802 long long int value = -1;
11803 value = strtol("1234567812345678", NULL, 16);
11804 if (value == 0x1234567812345678LL) {
11805 printf("strotol\n");
11808 value = strtoll("1234567812345678", NULL, 16);
11809 if (value == 0x1234567812345678LL) {
11810 printf("strtoll\n");
11816 (eval $ac_compile) 2>&5
11817 (eval $ac_link) 2>&5
11819 echo "./conftest -> \"$ans\"" >&5
11824 $as_echo "#define strtoint64 strtol" >>confdefs.h
11826 $as_echo "#define strtouint64 strtoul" >>confdefs.h
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
11829 $as_echo "strtol" >&6; }
11832 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11834 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
11837 $as_echo "strtoll" >&6; }
11840 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11842 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
11845 $as_echo "assuming strtoll" >&6; }
11848 rm -rf conftest conftest.
*
11850 if test "$do_threads" = "check" -o "$do_threads" = "yes"
11852 for ac_header
in pthread.h
11854 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11855 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11856 cat >>confdefs.h
<<_ACEOF
11857 #define HAVE_PTHREAD_H 1
11862 if test "$do_threads" = "yes"
11864 as_fn_error $?
"cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
11873 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
11874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876 #include <pthread.h>
11880 pthread_mutex_t mymutex;
11885 if ac_fn_c_try_compile
"$LINENO"; then :
11887 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11892 if test "$do_threads" = "yes"
11894 as_fn_error $?
"cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
11904 $as_echo_n "checking where pthread_create() is defined... " >&6; }
11905 for cand
in "" pthreads pthread
; do
11909 LIBS
=`echo $LIBS -l$cand`
11911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11914 #include <pthread.h>
11920 pthread_create(NULL, NULL, NULL, NULL);
11926 if ac_fn_c_try_link
"$LINENO"; then :
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
11928 $as_echo "lib${cand:-c}" >&6; }
11931 lib_for_pthreads
="$cand"
11933 lib_for_pthreads
="-l$cand"
11938 rm -f core conftest.err conftest.
$ac_objext \
11939 conftest
$ac_exeext conftest.
$ac_ext
11944 if test "$ac_cv_header_pthread_h" = "yes"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
11947 $as_echo_n "checking printf type for pthread_t... " >&6; }
11948 cat <<End-of-File >conftest.c
11949 #include <pthread.h>
11953 fmt_pthread
="$_fmt"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
11955 $as_echo "$fmt_pthread" >&6; }
11957 rm -rf conftest.c conftest.debug
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
11960 $as_echo_n "checking if compiler supports __thread... " >&6; }
11961 if test $target_os = netbsd
11963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965 #include <pthread.h>
11966 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
11979 if ac_fn_c_try_compile
"$LINENO"; then :
11981 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983 $as_echo "yes" >&6; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992 #include <pthread.h>
12002 if ac_fn_c_try_compile
"$LINENO"; then :
12004 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12006 $as_echo "yes" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12015 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 #include <pthread.h>
12022 pthread_barrier_t mybarrier;
12027 if ac_fn_c_try_compile
"$LINENO"; then :
12029 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12031 $as_echo "yes" >&6; }
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12041 $as_echo_n "checking sizeof long... " >&6; }
12042 if test "$cross_compiling" = "yes"; then
12044 echo "cross-compile -> \"$ans\"" >&5
12046 cat <<End-of-File >conftest.c
12048 main() { printf("%d", (int)sizeof(long)); }
12050 (eval $ac_compile) 2>&5
12051 (eval $ac_link) 2>&5
12053 echo "./conftest -> \"$ans\"" >&5
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12056 $as_echo "$ans" >&6; }
12057 if test "$ans" = 4; then
12059 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12061 elif test "$ans" = 8; then
12063 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12067 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12068 echo "sizeof(char *) -> $ans"
12069 rm -rf conftest conftest.
*
12072 rm -rf conftest conftest.
*
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12075 $as_echo_n "checking sizeof pointer... " >&6; }
12076 if test "$cross_compiling" = "yes"; then
12077 ans
=$sizeof_pointer
12078 echo "cross-compile -> \"$ans\"" >&5
12080 cat <<End-of-File >conftest.c
12082 main() { printf("%d", (int)sizeof(char *)); }
12084 (eval $ac_compile) 2>&5
12085 (eval $ac_link) 2>&5
12087 echo "./conftest -> \"$ans\"" >&5
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12090 $as_echo "$ans" >&6; }
12091 if test "$ans" = 4; then
12093 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12096 elif test "$ans" = 8; then
12098 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12103 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12104 echo "sizeof(char *) -> $ans"
12105 rm -rf conftest conftest.
*
12108 rm -rf conftest conftest.
*
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12111 $as_echo_n "checking sizeof int... " >&6; }
12112 if test "$cross_compiling" = "yes"; then
12114 echo "cross-compile -> \"$ans\"" >&5
12116 cat <<End-of-File >conftest.c
12118 main() { printf("%d", (int)sizeof(int)); }
12120 (eval $ac_compile) 2>&5
12121 (eval $ac_link) 2>&5
12123 echo "./conftest -> \"$ans\"" >&5
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12126 $as_echo "$ans" >&6; }
12127 if test "$ans" != 4
12130 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12131 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12132 echo " the over-the-wire PDU formats"
12133 rm -rf conftest conftest.
*
12136 rm -rf conftest conftest.
*
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12139 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12140 if test "$cross_compiling" = "yes"; then
12141 ans
=$bit_field_scheme
12142 echo "cross-compile -> \"$ans\"" >&5
12144 cat <<End-of-File >conftest.c
12145 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12146 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12148 (eval $ac_compile) 2>&5
12149 (eval $ac_link) 2>&5
12151 echo "./conftest -> \"$ans\"" >&5
12156 # left-to-right starting from MSB (SGI cc on MIPS), or
12157 # left-to-right ending at LSB
12159 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12162 $as_echo "yes" >&6; }
12165 # right-to-left ending at MSB, or
12166 # right-to-left starting from LSB (gcc in Intel)
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12172 $as_echo "unknown" >&6; }
12173 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12174 rm -f conftest conftest.
*
12178 rm -rf conftest conftest.
*
12180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12183 #include <stdlib.h>
12184 #include <unistd.h>
12191 double y = (double)x;
12197 if ac_fn_c_try_link
"$LINENO"; then :
12199 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12202 rm -f core conftest.err conftest.
$ac_objext \
12203 conftest
$ac_exeext conftest.
$ac_ext
12205 for ac_func
in basename
12207 ac_fn_c_check_func
"$LINENO" "basename" "ac_cv_func_basename"
12208 if test "x$ac_cv_func_basename" = xyes
; then :
12209 cat >>confdefs.h
<<_ACEOF
12210 #define HAVE_BASENAME 1
12216 if test $ac_cv_func_basename = yes
12219 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12222 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12224 lib_for_basename
=""
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12227 $as_echo_n "checking for basename in -lgen... " >&6; }
12228 if ${ac_cv_lib_gen_basename+:} false
; then :
12229 $as_echo_n "(cached) " >&6
12231 ac_check_lib_save_LIBS
=$LIBS
12233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12236 /* Override any GCC internal prototype to avoid an error.
12237 Use char because int might match the return type of a GCC
12238 builtin and then its argument prototype would still apply. */
12246 return basename ();
12251 if ac_fn_c_try_link
"$LINENO"; then :
12252 ac_cv_lib_gen_basename
=yes
12254 ac_cv_lib_gen_basename
=no
12256 rm -f core conftest.err conftest.
$ac_objext \
12257 conftest
$ac_exeext conftest.
$ac_ext
12258 LIBS
=$ac_check_lib_save_LIBS
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12261 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12262 if test "x$ac_cv_lib_gen_basename" = xyes
; then :
12263 cat >>confdefs.h
<<_ACEOF
12264 #define HAVE_LIBGEN 1
12271 if test $ac_cv_lib_gen_basename = yes
12274 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12277 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12279 lib_for_basename
="-lgen"
12281 lib_for_basename
="-lpcp"
12286 lib_for_clock_gettime
=
12287 for ac_func
in clock_gettime
12289 ac_fn_c_check_func
"$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12290 if test "x$ac_cv_func_clock_gettime" = xyes
; then :
12291 cat >>confdefs.h
<<_ACEOF
12292 #define HAVE_CLOCK_GETTIME 1
12298 if test $ac_cv_func_clock_gettime = no
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12301 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12302 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
12303 $as_echo_n "(cached) " >&6
12305 ac_check_lib_save_LIBS
=$LIBS
12307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12316 char clock_gettime ();
12320 return clock_gettime ();
12325 if ac_fn_c_try_link
"$LINENO"; then :
12326 ac_cv_lib_rt_clock_gettime
=yes
12328 ac_cv_lib_rt_clock_gettime
=no
12330 rm -f core conftest.err conftest.
$ac_objext \
12331 conftest
$ac_exeext conftest.
$ac_ext
12332 LIBS
=$ac_check_lib_save_LIBS
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12335 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12336 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
12337 cat >>confdefs.h
<<_ACEOF
12338 #define HAVE_LIBRT 1
12345 if test $ac_cv_lib_rt_clock_gettime = yes
12348 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12356 for ac_func
in dlopen
12358 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12359 if test "x$ac_cv_func_dlopen" = xyes
; then :
12360 cat >>confdefs.h
<<_ACEOF
12361 #define HAVE_DLOPEN 1
12367 if test $ac_cv_func_dlopen = no
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12370 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12371 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12372 $as_echo_n "(cached) " >&6
12374 ac_check_lib_save_LIBS
=$LIBS
12376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12379 /* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12394 if ac_fn_c_try_link
"$LINENO"; then :
12395 ac_cv_lib_dl_dlopen
=yes
12397 ac_cv_lib_dl_dlopen
=no
12399 rm -f core conftest.err conftest.
$ac_objext \
12400 conftest
$ac_exeext conftest.
$ac_ext
12401 LIBS
=$ac_check_lib_save_LIBS
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12404 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12405 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12406 cat >>confdefs.h
<<_ACEOF
12407 #define HAVE_LIBDL 1
12414 if test $ac_cv_lib_dl_dlopen = yes
12417 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12419 lib_for_dlopen
=-ldl
12425 for ac_func
in flog10
12427 ac_fn_c_check_func
"$LINENO" "flog10" "ac_cv_func_flog10"
12428 if test "x$ac_cv_func_flog10" = xyes
; then :
12429 cat >>confdefs.h
<<_ACEOF
12430 #define HAVE_FLOG10 1
12436 if test $ac_cv_func_flog10 = no
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12439 $as_echo_n "checking for flog10 in -lm... " >&6; }
12440 if ${ac_cv_lib_m_flog10+:} false
; then :
12441 $as_echo_n "(cached) " >&6
12443 ac_check_lib_save_LIBS
=$LIBS
12445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12463 if ac_fn_c_try_link
"$LINENO"; then :
12464 ac_cv_lib_m_flog10
=yes
12466 ac_cv_lib_m_flog10
=no
12468 rm -f core conftest.err conftest.
$ac_objext \
12469 conftest
$ac_exeext conftest.
$ac_ext
12470 LIBS
=$ac_check_lib_save_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12473 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12474 if test "x$ac_cv_lib_m_flog10" = xyes
; then :
12475 cat >>confdefs.h
<<_ACEOF
12476 #define HAVE_LIBM 1
12483 if test $ac_cv_lib_m_flog10 = yes
12486 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12492 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12497 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
12498 if test "x$ac_cv_func_pow" = xyes
; then :
12499 cat >>confdefs.h
<<_ACEOF
12506 if test $ac_cv_func_pow = no
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12509 $as_echo_n "checking for pow in -lm... " >&6; }
12510 if ${ac_cv_lib_m_pow+:} false
; then :
12511 $as_echo_n "(cached) " >&6
12513 ac_check_lib_save_LIBS
=$LIBS
12515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12518 /* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
12533 if ac_fn_c_try_link
"$LINENO"; then :
12534 ac_cv_lib_m_pow
=yes
12538 rm -f core conftest.err conftest.
$ac_objext \
12539 conftest
$ac_exeext conftest.
$ac_ext
12540 LIBS
=$ac_check_lib_save_LIBS
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12543 $as_echo "$ac_cv_lib_m_pow" >&6; }
12544 if test "x$ac_cv_lib_m_pow" = xyes
; then :
12545 cat >>confdefs.h
<<_ACEOF
12546 #define HAVE_LIBM 1
12553 if test $ac_cv_lib_m_pow = yes
12556 $as_echo "#define HAVE_POW 1" >>confdefs.h
12562 $as_echo "#define HAVE_POW 1" >>confdefs.h
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12566 $as_echo_n "checking for fpclassify()... " >&6; }
12567 ac_cv_func_fpclassify
=no
12568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12577 double x = 123.456;
12578 if (fpclassify(x) == FP_NAN) exit(1);
12584 if ac_fn_c_try_link
"$LINENO"; then :
12585 ac_cv_func_fpclassify
=yes
12587 rm -f core conftest.err conftest.
$ac_objext \
12588 conftest
$ac_exeext conftest.
$ac_ext
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12590 $as_echo "$ac_cv_func_fpclassify" >&6; }
12591 if test $ac_cv_func_fpclassify = no
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12594 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12606 double x = 123.456;
12607 if (fpclassify(x) == FP_NAN) exit(1);
12613 if ac_fn_c_try_link
"$LINENO"; then :
12614 ac_cv_func_fpclassify
=yes
12616 rm -f core conftest.err conftest.
$ac_objext \
12617 conftest
$ac_exeext conftest.
$ac_ext
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12619 $as_echo "$ac_cv_func_fpclassify" >&6; }
12620 if test $ac_cv_func_fpclassify = yes
12626 if test $ac_cv_func_fpclassify = yes
12629 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12632 for ac_func
in isnan
12634 ac_fn_c_check_func
"$LINENO" "isnan" "ac_cv_func_isnan"
12635 if test "x$ac_cv_func_isnan" = xyes
; then :
12636 cat >>confdefs.h
<<_ACEOF
12637 #define HAVE_ISNAN 1
12643 if test $ac_cv_func_isnan = no
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12646 $as_echo_n "checking for isnan in -lm... " >&6; }
12647 if ${ac_cv_lib_m_isnan+:} false
; then :
12648 $as_echo_n "(cached) " >&6
12650 ac_check_lib_save_LIBS
=$LIBS
12652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h. */
12655 /* Override any GCC internal prototype to avoid an error.
12656 Use char because int might match the return type of a GCC
12657 builtin and then its argument prototype would still apply. */
12670 if ac_fn_c_try_link
"$LINENO"; then :
12671 ac_cv_lib_m_isnan
=yes
12673 ac_cv_lib_m_isnan
=no
12675 rm -f core conftest.err conftest.
$ac_objext \
12676 conftest
$ac_exeext conftest.
$ac_ext
12677 LIBS
=$ac_check_lib_save_LIBS
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12680 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12681 if test "x$ac_cv_lib_m_isnan" = xyes
; then :
12682 cat >>confdefs.h
<<_ACEOF
12683 #define HAVE_LIBM 1
12690 if test $ac_cv_lib_m_isnan = yes
12693 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12698 for ac_func
in isnanf
12700 ac_fn_c_check_func
"$LINENO" "isnanf" "ac_cv_func_isnanf"
12701 if test "x$ac_cv_func_isnanf" = xyes
; then :
12702 cat >>confdefs.h
<<_ACEOF
12703 #define HAVE_ISNANF 1
12709 if test $ac_cv_func_isnanf = no
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
12712 $as_echo_n "checking for isnanf in -lm... " >&6; }
12713 if ${ac_cv_lib_m_isnanf+:} false
; then :
12714 $as_echo_n "(cached) " >&6
12716 ac_check_lib_save_LIBS
=$LIBS
12718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12721 /* Override any GCC internal prototype to avoid an error.
12722 Use char because int might match the return type of a GCC
12723 builtin and then its argument prototype would still apply. */
12736 if ac_fn_c_try_link
"$LINENO"; then :
12737 ac_cv_lib_m_isnanf
=yes
12739 ac_cv_lib_m_isnanf
=no
12741 rm -f core conftest.err conftest.
$ac_objext \
12742 conftest
$ac_exeext conftest.
$ac_ext
12743 LIBS
=$ac_check_lib_save_LIBS
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
12746 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
12747 if test "x$ac_cv_lib_m_isnanf" = xyes
; then :
12748 cat >>confdefs.h
<<_ACEOF
12749 #define HAVE_LIBM 1
12756 if test $ac_cv_lib_m_isnanf = yes
12759 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
12767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769 #include <signal.h>
12778 if ac_fn_c_try_link
"$LINENO"; then :
12780 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
12783 rm -f core conftest.err conftest.
$ac_objext \
12784 conftest
$ac_exeext conftest.
$ac_ext
12786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 #include <signal.h>
12792 int x = SA_SIGINFO;
12797 if ac_fn_c_try_link
"$LINENO"; then :
12799 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
12802 rm -f core conftest.err conftest.
$ac_objext \
12803 conftest
$ac_exeext conftest.
$ac_ext
12805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12807 #include <signal.h>
12816 if ac_fn_c_try_link
"$LINENO"; then :
12818 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
12821 rm -f core conftest.err conftest.
$ac_objext \
12822 conftest
$ac_exeext conftest.
$ac_ext
12824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h. */
12826 #include <signal.h>
12835 if ac_fn_c_try_link
"$LINENO"; then :
12837 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
12840 rm -f core conftest.err conftest.
$ac_objext \
12841 conftest
$ac_exeext conftest.
$ac_ext
12843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845 #include <signal.h>
12854 if ac_fn_c_try_link
"$LINENO"; then :
12856 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
12859 rm -f core conftest.err conftest.
$ac_objext \
12860 conftest
$ac_exeext conftest.
$ac_ext
12862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12864 #include <sys/wait.h>
12868 typedef void (*SIGRET)(int);
12869 SIGRET x = SIG_IGN;
12875 if ac_fn_c_try_link
"$LINENO"; then :
12877 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
12880 rm -f core conftest.err conftest.
$ac_objext \
12881 conftest
$ac_exeext conftest.
$ac_ext
12883 have_stat_type
=false
12884 have_stat_name
=false
12885 if test $have_stat_name = false
12887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 #include <sys/stat.h>
12892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12893 $EGREP "[ ]st_mtimespec" >/dev
/null
2>&1; then :
12894 have_stat_name
=true
;
12896 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
12902 if test $have_stat_name = false
-a $target_os != darwin
-a $target_os != linux
-a $target_os != kfreebsd
-a $target_os != netbsd
12904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906 #include <sys/stat.h>
12909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12910 $EGREP "[ ]st_mtime" >/dev
/null
2>&1; then :
12911 have_stat_name
=true
;
12913 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
12919 if test $have_stat_type = false
12921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12923 #include <sys/stat.h>
12926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12927 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
12928 have_stat_type
=true
;
12930 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
12936 if test $have_stat_type = false
12938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940 #include <sys/stat.h>
12943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12944 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
12945 have_stat_type
=true
;
12947 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
12953 if test $have_stat_type = false
12955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 #include <sys/stat.h>
12960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12961 $EGREP "timespec[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
12962 have_stat_type
=true
;
12964 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
12970 if test $have_stat_type = false
12972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12974 #include <sys/stat.h>
12977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12978 $EGREP "time_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
12979 have_stat_type
=true
;
12981 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
12987 if test $have_stat_type = false
12989 echo 'FATAL ERROR: Cannot determine struct stat time types.'
12990 rm -rf conftest conftest.
*
12995 pcp_etc_dir
=`eval echo $sysconfdir`
12996 pcp_etc_dir
=`eval echo $pcp_etc_dir`
12998 pcp_saslconf_dir
=`eval echo $sysconfdir/sasl2`
12999 pcp_saslconf_dir
=`eval echo $pcp_saslconf_dir`
13001 pcp_sysconf_dir
=`eval echo $sysconfdir/pcp`
13002 pcp_sysconf_dir
=`eval echo $pcp_sysconf_dir`
13004 pcp_pmcdconf_path
=$pcp_sysconf_dir/pmcd
/pmcd.conf
13005 pcp_pmcdrclocal_path
=$pcp_sysconf_dir/pmcd
/rc.
local
13006 pcp_pmcdoptions_path
=$pcp_sysconf_dir/pmcd
/pmcd.options
13007 pcp_pmwebdoptions_path
=$pcp_sysconf_dir/pmwebd
/pmwebd.options
13008 pcp_pmmgroptions_path
=$pcp_sysconf_dir/pmmgr
/pmmgr.options
13009 pcp_pmproxyoptions_path
=$pcp_sysconf_dir/pmproxy
/pmproxy.options
13010 pcp_pmiecontrol_path
=$pcp_sysconf_dir/pmie
/control
13011 pcp_pmsnapcontrol_path
=$pcp_sysconf_dir/pmsnap
/control
13012 pcp_pmloggercontrol_path
=$pcp_sysconf_dir/pmlogger
/control
13023 pcp_share_dir
=`eval echo $datarootdir/pcp`
13024 pcp_share_dir
=`eval echo $pcp_share_dir`
13027 pcp_binadm_dir
=`eval echo $libexecdir/pcp/bin`
13028 pcp_binadm_dir
=`eval echo $pcp_binadm_dir`
13031 pcp_var_dir
=`eval echo $localstatedir/lib/pcp`
13032 pcp_var_dir
=`eval echo $pcp_var_dir`
13036 # Check whether --with-configdir was given.
13037 if test "${with_configdir+set}" = set; then :
13038 withval
=$with_configdir; pcp_config_dir
=$withval
13040 pcp_config_dir
=$pcp_var_dir/config
13044 pcp_pmdas_dir
=$pcp_var_dir/pmdas
13047 pcp_lib_dir
=`eval echo $libdir`
13048 pcp_lib_dir
=`eval echo $pcp_lib_dir`
13049 pcp_lib32_dir
=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13054 # Check whether --with-perl_installdirs was given.
13055 if test "${with_perl_installdirs+set}" = set; then :
13056 withval
=$with_perl_installdirs; perl_installdirs
=$withval
13058 perl_installdirs
=vendor
13061 perl_installdirs
=`eval echo $perl_installdirs`
13062 perl_installdirs
=`eval echo $perl_installdirs`
13065 # Check whether --with-perl_install_base was given.
13066 if test "${with_perl_install_base+set}" = set; then :
13067 withval
=$with_perl_install_base; perl_install_base
=$withval
13069 perl_install_base
=$prefix
13072 perl_install_base
=`eval echo $perl_install_base`
13073 perl_install_base
=`eval echo $perl_install_base`
13077 # Check whether --with-python_prefix was given.
13078 if test "${with_python_prefix+set}" = set; then :
13079 withval
=$with_python_prefix; python_prefix
=$withval
13081 python_prefix
=$prefix
13084 python_prefix
=`eval echo $python_prefix`
13085 python_prefix
=`eval echo $python_prefix`
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13089 $as_echo_n "checking for X... " >&6; }
13092 # Check whether --with-x was given.
13093 if test "${with_x+set}" = set; then :
13097 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13098 if test "x$with_x" = xno
; then
13099 # The user explicitly disabled X.
13102 case $x_includes,$x_libraries in #(
13103 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
13104 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
13105 $as_echo_n "(cached) " >&6
13107 # One or both of the vars are not set, and there is no cached value.
13108 ac_x_includes
=no ac_x_libraries
=no
13109 rm -f -r conftest.dir
13110 if mkdir conftest.dir
; then
13112 cat >Imakefile
<<'_ACEOF'
13114 @echo incroot='${INCROOT}'
13116 @echo usrlibdir='${USRLIBDIR}'
13118 @echo libdir='${LIBDIR}'
13120 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13121 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13122 for ac_var
in incroot usrlibdir libdir
; do
13123 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13125 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13126 for ac_extension
in a so sl dylib la dll
; do
13127 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13128 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13129 ac_im_usrlibdir
=$ac_im_libdir; break
13132 # Screen out bogus values from the imake configuration. They are
13133 # bogus both because they are the default anyway, and because
13134 # using them would break gcc on systems where it needs fixed includes.
13135 case $ac_im_incroot in
13136 /usr
/include
) ac_x_includes
= ;;
13137 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13139 case $ac_im_usrlibdir in
13140 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13141 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13145 rm -f -r conftest.dir
13148 # Standard set of common directories for X headers.
13149 # Check X11 before X11Rn because it is often a symlink to the current release.
13163 /usr/local/X11/include
13164 /usr/local/X11R7/include
13165 /usr/local/X11R6/include
13166 /usr/local/X11R5/include
13167 /usr/local/X11R4/include
13169 /usr/local/include/X11
13170 /usr/local/include/X11R7
13171 /usr/local/include/X11R6
13172 /usr/local/include/X11R5
13173 /usr/local/include/X11R4
13177 /usr/XFree86/include/X11
13181 /usr/unsupported/include
13182 /usr/athena/include
13183 /usr/local/x11r5/include
13184 /usr/lpp/Xamples/include
13186 /usr/openwin/include
13187 /usr/openwin/share/include'
13189 if test "$ac_x_includes" = no
; then
13190 # Guess where to find include files, by looking for Xlib.h.
13191 # First, try using that file with no special directory specified.
13192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194 #include <X11/Xlib.h>
13196 if ac_fn_c_try_cpp
"$LINENO"; then :
13197 # We can compile using X headers with no special include directory.
13200 for ac_dir
in $ac_x_header_dirs; do
13201 if test -r "$ac_dir/X11/Xlib.h"; then
13202 ac_x_includes
=$ac_dir
13207 rm -f conftest.err conftest.i conftest.
$ac_ext
13208 fi # $ac_x_includes = no
13210 if test "$ac_x_libraries" = no
; then
13211 # Check for the libraries.
13212 # See if we find them without any special options.
13213 # Don't add to $LIBS permanently.
13216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 #include <X11/Xlib.h>
13227 if ac_fn_c_try_link
"$LINENO"; then :
13229 # We can link X programs with no special library path.
13233 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13235 # Don't even attempt the hair of trying to link an X program!
13236 for ac_extension
in a so sl dylib la dll
; do
13237 if test -r "$ac_dir/libX11.$ac_extension"; then
13238 ac_x_libraries
=$ac_dir
13244 rm -f core conftest.err conftest.
$ac_objext \
13245 conftest
$ac_exeext conftest.
$ac_ext
13246 fi # $ac_x_libraries = no
13248 case $ac_x_includes,$ac_x_libraries in #(
13249 no
,* |
*,no |
*\'*)
13250 # Didn't find X, or a directory has "'" in its name.
13251 ac_cv_have_x
="have_x=no";; #(
13253 # Record where we found X for the cache.
13254 ac_cv_have_x
="have_x=yes\
13255 ac_x_includes='$ac_x_includes'\
13256 ac_x_libraries='$ac_x_libraries'"
13262 eval "$ac_cv_have_x"
13265 if test "$have_x" != yes; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13267 $as_echo "$have_x" >&6; }
13270 # If each of the values was on the command line, it overrides each guess.
13271 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13272 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13273 # Update the cache value to reflect the command line values.
13274 ac_cv_have_x
="have_x=yes\
13275 ac_x_includes='$x_includes'\
13276 ac_x_libraries='$x_libraries'"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13278 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13281 if test "$no_x" = yes; then
13282 # Not all programs may use this symbol, but it does not hurt to define it.
13284 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13286 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
13288 if test -n "$x_includes"; then
13289 X_CFLAGS
="$X_CFLAGS -I$x_includes"
13292 # It would also be nice to do this for all -L options, not just this one.
13293 if test -n "$x_libraries"; then
13294 X_LIBS
="$X_LIBS -L$x_libraries"
13295 # For Solaris; some versions of Sun CC require a space after -R and
13296 # others require no space. Words are not sufficient . . . .
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13298 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13299 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
13300 ac_xsave_c_werror_flag
=$ac_c_werror_flag
13301 ac_c_werror_flag
=yes
13302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13313 if ac_fn_c_try_link
"$LINENO"; then :
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316 X_LIBS
="$X_LIBS -R$x_libraries"
13318 LIBS
="$ac_xsave_LIBS -R $x_libraries"
13319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13330 if ac_fn_c_try_link
"$LINENO"; then :
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13332 $as_echo "yes" >&6; }
13333 X_LIBS
="$X_LIBS -R $x_libraries"
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13336 $as_echo "neither works" >&6; }
13338 rm -f core conftest.err conftest.
$ac_objext \
13339 conftest
$ac_exeext conftest.
$ac_ext
13341 rm -f core conftest.err conftest.
$ac_objext \
13342 conftest
$ac_exeext conftest.
$ac_ext
13343 ac_c_werror_flag
=$ac_xsave_c_werror_flag
13344 LIBS
=$ac_xsave_LIBS
13347 # Check for system-dependent libraries X programs must link with.
13348 # Do this before checking for the system-independent R6 libraries
13349 # (-lICE), since we may need -lsocket or whatever for X linking.
13351 if test "$ISC" = yes; then
13352 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
13354 # Martyn Johnson says this is needed for Ultrix, if the X
13355 # libraries were built with DECnet support. And Karl Berry says
13356 # the Alpha needs dnet_stub (dnet does not exist).
13357 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
13358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13361 /* Override any GCC internal prototype to avoid an error.
13362 Use char because int might match the return type of a GCC
13363 builtin and then its argument prototype would still apply. */
13367 char XOpenDisplay ();
13371 return XOpenDisplay ();
13376 if ac_fn_c_try_link
"$LINENO"; then :
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13380 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13381 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
13382 $as_echo_n "(cached) " >&6
13384 ac_check_lib_save_LIBS
=$LIBS
13385 LIBS
="-ldnet $LIBS"
13386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13389 /* Override any GCC internal prototype to avoid an error.
13390 Use char because int might match the return type of a GCC
13391 builtin and then its argument prototype would still apply. */
13399 return dnet_ntoa ();
13404 if ac_fn_c_try_link
"$LINENO"; then :
13405 ac_cv_lib_dnet_dnet_ntoa
=yes
13407 ac_cv_lib_dnet_dnet_ntoa
=no
13409 rm -f core conftest.err conftest.
$ac_objext \
13410 conftest
$ac_exeext conftest.
$ac_ext
13411 LIBS
=$ac_check_lib_save_LIBS
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13414 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13415 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
13416 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
13419 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13421 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13422 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
13423 $as_echo_n "(cached) " >&6
13425 ac_check_lib_save_LIBS
=$LIBS
13426 LIBS
="-ldnet_stub $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_stub_dnet_ntoa
=yes
13448 ac_cv_lib_dnet_stub_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_stub_dnet_ntoa" >&5
13455 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13456 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
13457 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
13462 rm -f core conftest.err conftest.
$ac_objext \
13463 conftest
$ac_exeext conftest.
$ac_ext
13464 LIBS
="$ac_xsave_LIBS"
13466 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13467 # to get the SysV transport functions.
13468 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13470 # The nsl library prevents programs from opening the X display
13471 # on Irix 5.2, according to T.E. Dickey.
13472 # The functions gethostbyname, getservbyname, and inet_addr are
13473 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13474 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13475 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
13479 if test $ac_cv_func_gethostbyname = no
; then
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13481 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13482 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
13483 $as_echo_n "(cached) " >&6
13485 ac_check_lib_save_LIBS
=$LIBS
13487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13490 /* Override any GCC internal prototype to avoid an error.
13491 Use char because int might match the return type of a GCC
13492 builtin and then its argument prototype would still apply. */
13496 char gethostbyname ();
13500 return gethostbyname ();
13505 if ac_fn_c_try_link
"$LINENO"; then :
13506 ac_cv_lib_nsl_gethostbyname
=yes
13508 ac_cv_lib_nsl_gethostbyname
=no
13510 rm -f core conftest.err conftest.
$ac_objext \
13511 conftest
$ac_exeext conftest.
$ac_ext
13512 LIBS
=$ac_check_lib_save_LIBS
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13515 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13516 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
13517 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
13520 if test $ac_cv_lib_nsl_gethostbyname = no
; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13522 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13523 if ${ac_cv_lib_bsd_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_bsd_gethostbyname
=yes
13549 ac_cv_lib_bsd_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_bsd_gethostbyname" >&5
13556 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13557 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
13558 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
13564 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13565 # socket/setsockopt and other routines are undefined under SCO ODT
13566 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13567 # on later versions), says Simon Leinen: it contains gethostby*
13568 # variants that don't use the name server (or something). -lsocket
13569 # must be given before -lnsl if both are needed. We assume that
13570 # if connect needs -lnsl, so does gethostbyname.
13571 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
13572 if test "x$ac_cv_func_connect" = xyes
; then :
13576 if test $ac_cv_func_connect = no
; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13578 $as_echo_n "checking for connect in -lsocket... " >&6; }
13579 if ${ac_cv_lib_socket_connect+:} false
; then :
13580 $as_echo_n "(cached) " >&6
13582 ac_check_lib_save_LIBS
=$LIBS
13583 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
13584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13587 /* Override any GCC internal prototype to avoid an error.
13588 Use char because int might match the return type of a GCC
13589 builtin and then its argument prototype would still apply. */
13602 if ac_fn_c_try_link
"$LINENO"; then :
13603 ac_cv_lib_socket_connect
=yes
13605 ac_cv_lib_socket_connect
=no
13607 rm -f core conftest.err conftest.
$ac_objext \
13608 conftest
$ac_exeext conftest.
$ac_ext
13609 LIBS
=$ac_check_lib_save_LIBS
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13612 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13613 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
13614 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
13619 # Guillermo Gomez says -lposix is necessary on A/UX.
13620 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
13621 if test "x$ac_cv_func_remove" = xyes
; then :
13625 if test $ac_cv_func_remove = no
; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13627 $as_echo_n "checking for remove in -lposix... " >&6; }
13628 if ${ac_cv_lib_posix_remove+:} false
; then :
13629 $as_echo_n "(cached) " >&6
13631 ac_check_lib_save_LIBS
=$LIBS
13632 LIBS
="-lposix $LIBS"
13633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13636 /* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply. */
13651 if ac_fn_c_try_link
"$LINENO"; then :
13652 ac_cv_lib_posix_remove
=yes
13654 ac_cv_lib_posix_remove
=no
13656 rm -f core conftest.err conftest.
$ac_objext \
13657 conftest
$ac_exeext conftest.
$ac_ext
13658 LIBS
=$ac_check_lib_save_LIBS
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13661 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13662 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
13663 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
13668 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13669 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
13670 if test "x$ac_cv_func_shmat" = xyes
; then :
13674 if test $ac_cv_func_shmat = no
; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13676 $as_echo_n "checking for shmat in -lipc... " >&6; }
13677 if ${ac_cv_lib_ipc_shmat+:} false
; then :
13678 $as_echo_n "(cached) " >&6
13680 ac_check_lib_save_LIBS
=$LIBS
13682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13700 if ac_fn_c_try_link
"$LINENO"; then :
13701 ac_cv_lib_ipc_shmat
=yes
13703 ac_cv_lib_ipc_shmat
=no
13705 rm -f core conftest.err conftest.
$ac_objext \
13706 conftest
$ac_exeext conftest.
$ac_ext
13707 LIBS
=$ac_check_lib_save_LIBS
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13710 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13711 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
13712 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
13718 # Check for libraries that X11R6 Xt/Xaw programs need.
13719 ac_save_LDFLAGS
=$LDFLAGS
13720 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
13721 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13722 # check for ICE first), but we must link in the order -lSM -lICE or
13723 # we get undefined symbols. So assume we have SM if we have ICE.
13724 # These have to be linked with before -lX11, unlike the other
13725 # libraries we check for below, so use a different variable.
13726 # John Interrante, Karl Berry
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13728 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13729 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
13730 $as_echo_n "(cached) " >&6
13732 ac_check_lib_save_LIBS
=$LIBS
13733 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
13734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13737 /* Override any GCC internal prototype to avoid an error.
13738 Use char because int might match the return type of a GCC
13739 builtin and then its argument prototype would still apply. */
13743 char IceConnectionNumber ();
13747 return IceConnectionNumber ();
13752 if ac_fn_c_try_link
"$LINENO"; then :
13753 ac_cv_lib_ICE_IceConnectionNumber
=yes
13755 ac_cv_lib_ICE_IceConnectionNumber
=no
13757 rm -f core conftest.err conftest.
$ac_objext \
13758 conftest
$ac_exeext conftest.
$ac_ext
13759 LIBS
=$ac_check_lib_save_LIBS
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13762 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13763 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
13764 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
13767 LDFLAGS
=$ac_save_LDFLAGS
13771 pcp_x11_incflags
=$X_CFLAGS
13773 pcp_x11_libflags
=$X_LIBS
13775 pcp_x11_extra
=$X_EXTRA_LIBS
13777 pcp_x11_pre
=$X_PRE_LIBS
13780 have_gzipped_manpages
=false
13781 have_bzip2ed_manpages
=false
13782 have_lzmaed_manpages
=false
13783 have_xzed_manpages
=false
13784 need_old_tbl_header
=false
13786 pcp_man_dir
=`eval echo $mandir`
13787 pcp_man_dir
=`eval echo $pcp_man_dir`
13789 for d
in /usr
/man
/usr
/share
/man
$pcp_man_dir
13791 for sd
in man1 sman1
13793 if test -f $d/$sd/man
.1.gz
13795 have_gzipped_manpages
=true
13796 man_header
=`$ZIP -d < $d/$sd/man.1.gz | head -1`
13798 elif test -f $d/$sd/man
.1.bz2
13800 have_bzip2ed_manpages
=true
13801 man_header
=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
13803 elif test -f $d/$sd/man
.1.lzma
13805 have_lzmaed_manpages
=true
13806 man_header
=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
13808 elif test -f $d/$sd/man
.1.xz
13810 have_xzed_manpages
=true
13811 man_header
=`$XZ -d < $d/$sd/man.1.xz | head -1`
13813 elif test -f $d/$sd/man
.1
13815 man_header
=`head -1 $d/$sd/man.1`
13820 if test x
"$man_header" = "x'\\\" t" -o x
"$man_header" = "x'\\\" te" ; then
13821 need_old_tbl_header
=true
13830 pcp_bin_dir
=`eval echo $bindir`
13831 pcp_bin_dir
=`eval echo $pcp_bin_dir`
13834 pcp_sbin_dir
=`eval echo $sbindir`
13835 pcp_sbin_dir
=`eval echo $pcp_sbin_dir`
13838 pcp_inc_dir
=`eval echo $includedir/pcp`
13839 pcp_inc_dir
=`eval echo $pcp_inc_dir`
13842 if test $target_os = linux
; then
13843 pcp_books_dir
=`eval echo $datarootdir/doc/pcp-doc`
13845 pcp_books_dir
=`eval echo $datarootdir/doc/pcp`
13847 pcp_books_dir
=`eval echo $pcp_books_dir`
13848 pcp_html_dir
=`eval echo $pcp_books_dir/html`
13852 if test $target_os = linux
; then
13853 pcp_icons_dir
=`eval echo $datarootdir/pcp-gui/pixmaps`
13855 pcp_icons_dir
=`eval echo $datarootdir/pcp/pixmaps`
13857 pcp_icons_dir
=`eval echo $pcp_icons_dir`
13860 pcp_desktop_dir
=`eval echo $datarootdir/applications`
13861 pcp_desktop_dir
=`eval echo $pcp_desktop_dir`
13865 # Check whether --with-rcdir was given.
13866 if test "${with_rcdir+set}" = set; then :
13867 withval
=$with_rcdir; pcp_rc_dir
=$withval
13872 pcp_rc_dir
="$pcp_share_dir/lib"
13874 pcp_rc_dir
="$pcp_etc_dir/init.d"
13881 # Check whether --with-sysconfigdir was given.
13882 if test "${with_sysconfigdir+set}" = set; then :
13883 withval
=$with_sysconfigdir; pcp_sysconfig_dir
=$withval
13885 pcp_sysconfig_dir
=$pcp_etc_dir/sysconfig
13891 # Check whether --with-logdir was given.
13892 if test "${with_logdir+set}" = set; then :
13893 withval
=$with_logdir; pcp_log_dir
=$withval
13895 pcp_log_dir
=$localstatedir/log
/pcp
13898 pcp_log_dir
=`eval echo $pcp_log_dir`
13899 pcp_log_dir
=`eval echo $pcp_log_dir`
13903 # Check whether --with-rundir was given.
13904 if test "${with_rundir+set}" = set; then :
13905 withval
=$with_rundir; pcp_run_dir
=$withval
13907 pcp_run_dir
=$localstatedir/run
/pcp
13910 pcp_run_dir
=`eval echo $pcp_run_dir`
13911 pcp_run_dir
=`eval echo $pcp_run_dir`
13915 # Check whether --with-tmpdir was given.
13916 if test "${with_tmpdir+set}" = set; then :
13917 withval
=$with_tmpdir; pcp_tmpfile_dir
=$withval
13919 pcp_tmpfile_dir
=$localstatedir/tmp
13922 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
13923 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
13926 pcp_tmp_dir
=`eval echo $pcp_var_dir/tmp`
13930 # Check whether --with-docdir was given.
13931 if test "${with_docdir+set}" = set; then :
13932 withval
=$with_docdir; pcp_doc_dir
=$withval
13934 PACKAGE
=pcp-
${PACKAGE_VERSION}; pcp_doc_dir
=$docdir
13937 pcp_doc_dir
=`eval echo $pcp_doc_dir`
13938 pcp_doc_dir
=`eval echo $pcp_doc_dir`
13942 # Check whether --with-demosdir was given.
13943 if test "${with_demosdir+set}" = set; then :
13944 withval
=$with_demosdir; pcp_demos_dir
=$withval
13946 pcp_demos_dir
=$pcp_share_dir/demos
13951 if test -z "$XCONFIRM"
13953 # Extract the first word of "xconfirm", so it can be a program name with args.
13954 set dummy xconfirm
; ac_word
=$2
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13956 $as_echo_n "checking for $ac_word... " >&6; }
13957 if ${ac_cv_path_ac_xconfirm_prog+:} false
; then :
13958 $as_echo_n "(cached) " >&6
13960 case $ac_xconfirm_prog in
13962 ac_cv_path_ac_xconfirm_prog
="$ac_xconfirm_prog" # Let the user override the test with a path.
13965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13966 for as_dir
in $PATH
13969 test -z "$as_dir" && as_dir
=.
13970 for ac_exec_ext
in '' $ac_executable_extensions; do
13971 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13972 ac_cv_path_ac_xconfirm_prog
="$as_dir/$ac_word$ac_exec_ext"
13973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog
="$pcp_bin_dir/pmconfirm"
13984 ac_xconfirm_prog
=$ac_cv_path_ac_xconfirm_prog
13985 if test -n "$ac_xconfirm_prog"; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
13987 $as_echo "$ac_xconfirm_prog" >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 $as_echo "no" >&6; }
13995 ac_xconfirm_prog
=$XCONFIRM
13999 if test "$ac_cv_header_fcntl_h" = "yes"
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14002 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14014 if ac_fn_c_try_compile
"$LINENO"; then :
14016 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14019 $as_echo "yes" >&6; }
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14027 if test "$ac_cv_header_libzfs_h" = "yes"
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14030 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033 #include <libzfs.h>
14037 libzfs_handle_t *zh;
14038 zpool_handle_t *zp;
14040 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14046 if ac_fn_c_try_compile
"$LINENO"; then :
14048 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14051 $as_echo "yes" >&6; }
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14059 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 #include <libzfs.h>
14066 libzfs_handle_t *zh;
14067 zpool_handle_t *zp;
14069 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14075 if ac_fn_c_try_compile
"$LINENO"; then :
14077 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14080 $as_echo "yes" >&6; }
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14088 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14092 saved_CFLAGS
="$CFLAGS"
14093 saved_CPPFLAGS
="$CPPFLAGS"
14094 NSS_INC_DIRS
="-I/usr/include/nss -I/usr/include/nss3"
14095 NSPR_INC_DIRS
="-I/usr/include/nspr -I/usr/include/nspr4"
14096 CFLAGS
="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14097 CPPFLAGS
="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14099 for ac_header
in nss
/nss.h
14101 ac_fn_c_check_header_mongrel
"$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14102 if test "x$ac_cv_header_nss_nss_h" = xyes
; then :
14103 cat >>confdefs.h
<<_ACEOF
14104 #define HAVE_NSS_NSS_H 1
14106 NSSCFLAGS
=-I/usr
/include
/nss
14109 for ac_header
in nss
3/nss.h
14111 ac_fn_c_check_header_mongrel
"$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14112 if test "x$ac_cv_header_nss3_nss_h" = xyes
; then :
14113 cat >>confdefs.h
<<_ACEOF
14114 #define HAVE_NSS3_NSS_H 1
14116 NSSCFLAGS
=-I/usr
/include
/nss3
14119 enable_secure
=false
14120 if test "$do_secure" = "yes"
14122 as_fn_error $?
"cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14136 for ac_header
in nspr
/nspr.h
14138 ac_fn_c_check_header_mongrel
"$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14139 if test "x$ac_cv_header_nspr_nspr_h" = xyes
; then :
14140 cat >>confdefs.h
<<_ACEOF
14141 #define HAVE_NSPR_NSPR_H 1
14143 NSPRCFLAGS
=-I/usr
/include
/nspr
14146 for ac_header
in nspr
4/nspr.h
14148 ac_fn_c_check_header_mongrel
"$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14149 if test "x$ac_cv_header_nspr4_nspr_h" = xyes
; then :
14150 cat >>confdefs.h
<<_ACEOF
14151 #define HAVE_NSPR4_NSPR_H 1
14153 NSPRCFLAGS
=-I/usr
/include
/nspr4
14156 enable_secure
=false
14157 if test "$do_secure" = "yes"
14159 as_fn_error $?
"cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14173 for ac_header
in sasl
/sasl.h
14175 ac_fn_c_check_header_mongrel
"$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14176 if test "x$ac_cv_header_sasl_sasl_h" = xyes
; then :
14177 cat >>confdefs.h
<<_ACEOF
14178 #define HAVE_SASL_SASL_H 1
14180 SASLCFLAGS
=-I/usr
/include
/sasl
14183 enable_secure
=false
14184 if test "$do_secure" = "yes"
14186 as_fn_error $?
"cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14196 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14197 if ${ac_cv_lib_sasl2_sasl_server_init+:} false
; then :
14198 $as_echo_n "(cached) " >&6
14200 ac_check_lib_save_LIBS
=$LIBS
14201 LIBS
="-lsasl2 $LIBS"
14202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14205 /* Override any GCC internal prototype to avoid an error.
14206 Use char because int might match the return type of a GCC
14207 builtin and then its argument prototype would still apply. */
14211 char sasl_server_init ();
14215 return sasl_server_init ();
14220 if ac_fn_c_try_link
"$LINENO"; then :
14221 ac_cv_lib_sasl2_sasl_server_init
=yes
14223 ac_cv_lib_sasl2_sasl_server_init
=no
14225 rm -f core conftest.err conftest.
$ac_objext \
14226 conftest
$ac_exeext conftest.
$ac_ext
14227 LIBS
=$ac_check_lib_save_LIBS
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14230 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14231 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes
; then :
14232 lib_for_sasl
="-lsasl2"
14235 enable_secure
=false
14236 if test "$do_secure" = "yes"
14238 as_fn_error $?
"cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14246 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14247 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false
; then :
14248 $as_echo_n "(cached) " >&6
14250 ac_check_lib_save_LIBS
=$LIBS
14252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14255 /* Override any GCC internal prototype to avoid an error.
14256 Use char because int might match the return type of a GCC
14257 builtin and then its argument prototype would still apply. */
14261 char SSL_ImportFD ();
14265 return SSL_ImportFD ();
14270 if ac_fn_c_try_link
"$LINENO"; then :
14271 ac_cv_lib_ssl_SSL_ImportFD
=yes
14273 ac_cv_lib_ssl_SSL_ImportFD
=no
14275 rm -f core conftest.err conftest.
$ac_objext \
14276 conftest
$ac_exeext conftest.
$ac_ext
14277 LIBS
=$ac_check_lib_save_LIBS
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14280 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14281 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes
; then :
14282 lib_for_ssl
="-lssl"
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14286 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14287 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false
; then :
14288 $as_echo_n "(cached) " >&6
14290 ac_check_lib_save_LIBS
=$LIBS
14291 LIBS
="-lssl3 $LIBS"
14292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14301 char SSL_ImportFD ();
14305 return SSL_ImportFD ();
14310 if ac_fn_c_try_link
"$LINENO"; then :
14311 ac_cv_lib_ssl3_SSL_ImportFD
=yes
14313 ac_cv_lib_ssl3_SSL_ImportFD
=no
14315 rm -f core conftest.err conftest.
$ac_objext \
14316 conftest
$ac_exeext conftest.
$ac_ext
14317 LIBS
=$ac_check_lib_save_LIBS
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14320 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14321 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes
; then :
14322 lib_for_ssl
="-lssl3"
14325 enable_secure
=false
14326 if test "$do_secure" = "yes"
14328 as_fn_error $?
"cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14339 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14340 if ${ac_cv_lib_nss_NSS_Init+:} false
; then :
14341 $as_echo_n "(cached) " >&6
14343 ac_check_lib_save_LIBS
=$LIBS
14345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14358 return NSS_Init ();
14363 if ac_fn_c_try_link
"$LINENO"; then :
14364 ac_cv_lib_nss_NSS_Init
=yes
14366 ac_cv_lib_nss_NSS_Init
=no
14368 rm -f core conftest.err conftest.
$ac_objext \
14369 conftest
$ac_exeext conftest.
$ac_ext
14370 LIBS
=$ac_check_lib_save_LIBS
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14373 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14374 if test "x$ac_cv_lib_nss_NSS_Init" = xyes
; then :
14375 lib_for_nss
="-lnss"
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14379 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14380 if ${ac_cv_lib_nss3_NSS_Init+:} false
; then :
14381 $as_echo_n "(cached) " >&6
14383 ac_check_lib_save_LIBS
=$LIBS
14384 LIBS
="-lnss3 $LIBS"
14385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14398 return NSS_Init ();
14403 if ac_fn_c_try_link
"$LINENO"; then :
14404 ac_cv_lib_nss3_NSS_Init
=yes
14406 ac_cv_lib_nss3_NSS_Init
=no
14408 rm -f core conftest.err conftest.
$ac_objext \
14409 conftest
$ac_exeext conftest.
$ac_ext
14410 LIBS
=$ac_check_lib_save_LIBS
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14413 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14414 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes
; then :
14415 lib_for_nss
="-lnss3"
14418 enable_secure
=false
14419 if test "$do_secure" = "yes"
14421 as_fn_error $?
"cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14432 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14433 if ${ac_cv_lib_nspr_PR_Init+:} false
; then :
14434 $as_echo_n "(cached) " >&6
14436 ac_check_lib_save_LIBS
=$LIBS
14437 LIBS
="-lnspr $LIBS"
14438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14441 /* Override any GCC internal prototype to avoid an error.
14442 Use char because int might match the return type of a GCC
14443 builtin and then its argument prototype would still apply. */
14456 if ac_fn_c_try_link
"$LINENO"; then :
14457 ac_cv_lib_nspr_PR_Init
=yes
14459 ac_cv_lib_nspr_PR_Init
=no
14461 rm -f core conftest.err conftest.
$ac_objext \
14462 conftest
$ac_exeext conftest.
$ac_ext
14463 LIBS
=$ac_check_lib_save_LIBS
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14466 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14467 if test "x$ac_cv_lib_nspr_PR_Init" = xyes
; then :
14468 lib_for_nspr
="-lnspr"
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14472 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14473 if ${ac_cv_lib_nspr4_PR_Init+:} false
; then :
14474 $as_echo_n "(cached) " >&6
14476 ac_check_lib_save_LIBS
=$LIBS
14477 LIBS
="-lnspr4 $LIBS"
14478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14481 /* Override any GCC internal prototype to avoid an error.
14482 Use char because int might match the return type of a GCC
14483 builtin and then its argument prototype would still apply. */
14496 if ac_fn_c_try_link
"$LINENO"; then :
14497 ac_cv_lib_nspr4_PR_Init
=yes
14499 ac_cv_lib_nspr4_PR_Init
=no
14501 rm -f core conftest.err conftest.
$ac_objext \
14502 conftest
$ac_exeext conftest.
$ac_ext
14503 LIBS
=$ac_check_lib_save_LIBS
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14506 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14507 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes
; then :
14508 lib_for_nspr
="-lnspr4"
14511 enable_secure
=false
14512 if test "$do_secure" = "yes"
14514 as_fn_error $?
"cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14524 if test "$enable_secure" = "true"
14527 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14532 CPPFLAGS
="$saved_CPPFLAGS"
14533 CFLAGS
="$saved_CFLAGS"
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14537 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14538 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false
; then :
14539 $as_echo_n "(cached) " >&6
14541 ac_check_lib_save_LIBS
=$LIBS
14542 LIBS
="-latomic $LIBS"
14543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14546 /* Override any GCC internal prototype to avoid an error.
14547 Use char because int might match the return type of a GCC
14548 builtin and then its argument prototype would still apply. */
14552 char __atomic_fetch_add_4 ();
14556 return __atomic_fetch_add_4 ();
14561 if ac_fn_c_try_link
"$LINENO"; then :
14562 ac_cv_lib_atomic___atomic_fetch_add_4
=yes
14564 ac_cv_lib_atomic___atomic_fetch_add_4
=no
14566 rm -f core conftest.err conftest.
$ac_objext \
14567 conftest
$ac_exeext conftest.
$ac_ext
14568 LIBS
=$ac_check_lib_save_LIBS
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14571 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14572 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes
; then :
14573 lib_for_atomic
="-latomic"
14578 if test -f /usr
/include
/sn
/arsess.h
14580 pcp_mpi_dirs
=libpcp_mpi\ libpcp_mpiread
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14587 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14591 #include <sys/types.h>
14592 #ifdef HAVE_SYS_SOCKET_H
14593 #include <sys/socket.h>
14595 #ifdef HAVE_SYS_UN_H
14596 #include <sys/un.h>
14602 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14607 if ac_fn_c_try_compile
"$LINENO"; then :
14609 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14611 $as_echo "yes" >&6; }
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614 $as_echo "no" >&6; }
14616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14619 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14623 #include <sys/types.h>
14624 #ifdef HAVE_SYS_SOCKET_H
14625 #include <sys/socket.h>
14627 #ifdef HAVE_SYS_UN_H
14628 #include <sys/un.h>
14634 struct ucred ucred; ucred.uid = 0;
14639 if ac_fn_c_try_compile
"$LINENO"; then :
14641 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14643 $as_echo "yes" >&6; }
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646 $as_echo "no" >&6; }
14648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14651 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14660 struct timespec foo;
14665 if ac_fn_c_try_compile
"$LINENO"; then :
14667 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14669 $as_echo "yes" >&6; }
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672 $as_echo "no" >&6; }
14674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
14677 $as_echo_n "checking for altzone in time.h... " >&6; }
14678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14686 time_t az = altzone;
14691 if ac_fn_c_try_compile
"$LINENO"; then :
14693 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14695 $as_echo "yes" >&6; }
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698 $as_echo "no" >&6; }
14700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
14703 $as_echo_n "checking if strftime knows about %z... " >&6; }
14704 if test "$cross_compiling" = yes; then :
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706 $as_echo "no" >&6; }
14708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14714 time_t t = time(NULL);
14715 struct tm * t1 = localtime (&t);
14716 if (strftime (b, 32, "%z", t1) < 3)
14718 if (strcmp(b, "%z") == 0)
14724 if ac_fn_c_try_run
"$LINENO"; then :
14726 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14728 $as_echo "yes" >&6; }
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731 $as_echo "no" >&6; }
14733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14734 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
14739 $as_echo_n "checking if strerror_r returns char *... " >&6; }
14740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14742 #include <string.h>
14746 strerror_r(0, NULL, 0)[0];
14751 if ac_fn_c_try_compile
"$LINENO"; then :
14753 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14755 $as_echo "yes" >&6; }
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14766 ac_fn_c_check_func
"$LINENO" "readline" "ac_cv_func_readline"
14767 if test "x$ac_cv_func_readline" = xyes
; then :
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14772 $as_echo_n "checking for readline in -lreadline... " >&6; }
14773 if ${ac_cv_lib_readline_readline+:} false
; then :
14774 $as_echo_n "(cached) " >&6
14776 ac_check_lib_save_LIBS
=$LIBS
14777 LIBS
="-lreadline $LIBS"
14778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14781 /* Override any GCC internal prototype to avoid an error.
14782 Use char because int might match the return type of a GCC
14783 builtin and then its argument prototype would still apply. */
14791 return readline ();
14796 if ac_fn_c_try_link
"$LINENO"; then :
14797 ac_cv_lib_readline_readline
=yes
14799 ac_cv_lib_readline_readline
=no
14801 rm -f core conftest.err conftest.
$ac_objext \
14802 conftest
$ac_exeext conftest.
$ac_ext
14803 LIBS
=$ac_check_lib_save_LIBS
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14806 $as_echo "$ac_cv_lib_readline_readline" >&6; }
14807 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
14808 cat >>confdefs.h
<<_ACEOF
14809 #define HAVE_LIBREADLINE 1
14812 LIBS
="-lreadline $LIBS"
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
14817 $as_echo_n "checking for add_history in -lreadline... " >&6; }
14818 if ${ac_cv_lib_readline_add_history+:} false
; then :
14819 $as_echo_n "(cached) " >&6
14821 ac_check_lib_save_LIBS
=$LIBS
14822 LIBS
="-lreadline -lcurses $LIBS"
14823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14826 /* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply. */
14832 char add_history ();
14836 return add_history ();
14841 if ac_fn_c_try_link
"$LINENO"; then :
14842 ac_cv_lib_readline_add_history
=yes
14844 ac_cv_lib_readline_add_history
=no
14846 rm -f core conftest.err conftest.
$ac_objext \
14847 conftest
$ac_exeext conftest.
$ac_ext
14848 LIBS
=$ac_check_lib_save_LIBS
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
14851 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
14852 if test "x$ac_cv_lib_readline_add_history" = xyes
; then :
14853 cat >>confdefs.h
<<_ACEOF
14854 #define HAVE_LIBREADLINE 1
14857 LIBS
="-lreadline $LIBS"
14867 if test $ac_cv_func_readline = yes
14870 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14872 elif test $ac_cv_lib_readline_readline = yes
14875 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14877 lib_for_readline
=-lreadline
14878 elif test $ac_cv_lib_readline_add_history = yes
14881 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14883 lib_for_curses
=-lcurses
14884 lib_for_readline
=-lreadline
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14893 $as_echo_n "checking for zlib... " >&6; }
14895 if test -n "$zlib_CFLAGS"; then
14896 pkg_cv_zlib_CFLAGS
="$zlib_CFLAGS"
14897 elif test -n "$PKG_CONFIG"; then
14898 if test -n "$PKG_CONFIG" && \
14899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
14900 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
14902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14903 test $ac_status = 0; }; then
14904 pkg_cv_zlib_CFLAGS
=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
14905 test "x$?" != "x0" && pkg_failed
=yes
14912 if test -n "$zlib_LIBS"; then
14913 pkg_cv_zlib_LIBS
="$zlib_LIBS"
14914 elif test -n "$PKG_CONFIG"; then
14915 if test -n "$PKG_CONFIG" && \
14916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
14917 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
14919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14920 test $ac_status = 0; }; then
14921 pkg_cv_zlib_LIBS
=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
14922 test "x$?" != "x0" && pkg_failed
=yes
14932 if test $pkg_failed = yes; then
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14934 $as_echo "no" >&6; }
14936 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14937 _pkg_short_errors_supported
=yes
14939 _pkg_short_errors_supported
=no
14941 if test $_pkg_short_errors_supported = yes; then
14942 zlib_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
14944 zlib_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
14946 # Put the nasty error message in config.log where it belongs
14947 echo "$zlib_PKG_ERRORS" >&5
14950 elif test $pkg_failed = untried
; then
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952 $as_echo "no" >&6; }
14955 zlib_CFLAGS
=$pkg_cv_zlib_CFLAGS
14956 zlib_LIBS
=$pkg_cv_zlib_LIBS
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14958 $as_echo "yes" >&6; }
14961 HAVE_ZLIB
=$have_zlib
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
14965 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
14966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14970 int test = AI_ADDRCONFIG;
14981 if ac_fn_c_try_compile
"$LINENO"; then :
14983 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14985 $as_echo "yes" >&6; }
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14988 $as_echo "no" >&6; }
14990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14994 if test -f .
/build
/tar
/vector.
tar.gz
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
14997 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15003 if test -f .
/build
/tar
/webjs.
tar.gz
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15006 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15014 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"
15016 cat >confcache
<<\_ACEOF
15017 # This file is a shell script that caches the results of configure
15018 # tests run on this system so they can be shared between configure
15019 # scripts and configure runs, see configure's option --config-cache.
15020 # It is not useful on other systems. If it contains results you don't
15021 # want to keep, you may remove or edit it.
15023 # config.status only pays attention to the cache file if you give it
15024 # the --recheck option to rerun configure.
15026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15028 # following values.
15032 # The following way of writing the cache mishandles newlines in values,
15033 # but we know of no workaround that is simple, portable, and efficient.
15034 # So, we kill variables containing newlines.
15035 # Ultrix sh set writes to stderr and can't be redirected directly,
15036 # and sets the high bit in the cache file unless we assign to the vars.
15038 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15039 eval ac_val
=\$
$ac_var
15043 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15047 _ | IFS | as_nl
) ;; #(
15048 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15049 *) { eval $ac_var=; unset $ac_var;} ;;
15055 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15056 *${as_nl}ac_space
=\
*)
15057 # `set' does not quote correctly, so add quotes: double-quote
15058 # substitution turns \\\\ into \\, and sed turns \\ into \.
15061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15064 # `set' quotes correctly as required by POSIX, so do not add quotes.
15065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15078 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15079 if test -w "$cache_file"; then
15080 if test "x$cache_file" != "x/dev/null"; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15082 $as_echo "$as_me: updating cache $cache_file" >&6;}
15083 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15084 cat confcache
>"$cache_file"
15086 case $cache_file in #(
15088 mv -f confcache
"$cache_file"$$
&&
15089 mv -f "$cache_file"$$
"$cache_file" ;; #(
15091 mv -f confcache
"$cache_file" ;;
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15097 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15102 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15103 # Let make expand exec_prefix.
15104 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15106 DEFS
=-DHAVE_CONFIG_H
15111 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15112 # 1. Remove the extension, and $U if already installed.
15113 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15114 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15115 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15116 # will be set to the directory where LIBOBJS objects are built.
15117 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15118 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15120 LIBOBJS
=$ac_libobjs
15122 LTLIBOBJS
=$ac_ltlibobjs
15126 : "${CONFIG_STATUS=./config.status}"
15128 ac_clean_files_save
=$ac_clean_files
15129 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15131 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15133 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15135 # Generated by $as_me.
15136 # Run this file to recreate the current configuration.
15137 # Compiler output produced by configure, useful for debugging
15138 # configure, is in config.log if it exists.
15141 ac_cs_recheck=false
15144 SHELL=\${CONFIG_SHELL-$SHELL}
15147 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15148 ## -------------------- ##
15149 ## M4sh Initialization. ##
15150 ## -------------------- ##
15152 # Be more Bourne compatible
15153 DUALCASE
=1; export DUALCASE
# for MKS sh
15154 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15157 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15158 # is contrary to our usage. Disable this feature.
15159 alias -g '${1+"$@"}'='"$@"'
15160 setopt NO_GLOB_SUBST
15162 case `(set -o) 2>/dev/null` in #(
15174 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15175 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15176 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15177 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15178 # Prefer a ksh shell builtin over an external printf program on Solaris,
15179 # but without wasting forks for bash or zsh.
15180 if test -z "$BASH_VERSION$ZSH_VERSION" \
15181 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15182 as_echo='print
-r --'
15183 as_echo_n='print
-rn --'
15184 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15185 as_echo='printf %s
\n'
15186 as_echo_n='printf %s
'
15188 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15189 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15190 as_echo_n='/usr
/ucb
/echo -n'
15192 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15193 as_echo_n_body='eval
15197 expr "X$arg" : "X\\(.*\\)$as_nl";
15198 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15200 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15202 export as_echo_n_body
15203 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15205 export as_echo_body
15206 as_echo='sh
-c $as_echo_body as_echo
'
15209 # The user is always right.
15210 if test "${PATH_SEPARATOR+set}" != set; then
15212 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15213 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15220 # We need space, tab and new line, in precisely that order. Quoting is
15221 # there to prevent editors from complaining about space-tab.
15222 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15223 # splitting by setting IFS to empty value.)
15226 # Find who we are. Look in the path if we contain no directory separator.
15229 *[\\/]* ) as_myself=$0 ;;
15230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15231 for as_dir in $PATH
15234 test -z "$as_dir" && as_dir=.
15235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15241 # We did not find ourselves, most probably we were run as `sh COMMAND'
15242 # in which case we are not to be found in the path.
15243 if test "x$as_myself" = x
; then
15246 if test ! -f "$as_myself"; then
15247 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15251 # Unset variables that we do not need and which cause bugs (e.g. in
15252 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15253 # suppresses any "Segmentation fault" message there. '((' could
15254 # trigger a bug in pdksh 5.2.14.
15255 for as_var
in BASH_ENV ENV MAIL MAILPATH
15256 do eval test x\
${$as_var+set} = xset \
15257 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15270 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15273 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15274 # ----------------------------------------
15275 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15276 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15277 # script with STATUS, using 1 if that was 0.
15280 as_status
=$1; test $as_status -eq 0 && as_status
=1
15282 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15283 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15285 $as_echo "$as_me: error: $2" >&2
15286 as_fn_exit
$as_status
15290 # as_fn_set_status STATUS
15291 # -----------------------
15292 # Set $? to STATUS, without forking.
15293 as_fn_set_status
()
15296 } # as_fn_set_status
15298 # as_fn_exit STATUS
15299 # -----------------
15300 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15304 as_fn_set_status
$1
15310 # Portably unset VAR.
15313 { eval $1=; unset $1;}
15315 as_unset
=as_fn_unset
15316 # as_fn_append VAR VALUE
15317 # ----------------------
15318 # Append the text in VALUE to the end of the definition contained in VAR. Take
15319 # advantage of any shell optimizations that allow amortized linear growth over
15320 # repeated appends, instead of the typical quadratic growth present in naive
15322 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15323 eval 'as_fn_append ()
15334 # as_fn_arith ARG...
15335 # ------------------
15336 # Perform arithmetic evaluation on the ARGs, and store the result in the
15337 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15338 # must be portable across $(()) and expr.
15339 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15340 eval 'as_fn_arith ()
15347 as_val
=`expr "$@" || test $? -eq 1`
15352 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15353 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15359 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15360 as_basename
=basename
15365 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15371 as_me
=`$as_basename -- "$0" ||
15372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15373 X"$0" : 'X\(//\)$' \| \
15374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15376 sed '/^.*\/\([^/][^/]*\)\/*$/{
15390 # Avoid depending upon Character Ranges.
15391 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15392 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15393 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15394 as_cr_digits
='0123456789'
15395 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15397 ECHO_C
= ECHO_N
= ECHO_T
=
15398 case `echo -n x` in #(((((
15400 case `echo 'xy\c'` in
15401 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15403 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15410 rm -f conf$$ conf$$.exe conf$$.
file
15411 if test -d conf$$.dir
; then
15412 rm -f conf$$.dir
/conf$$.
file
15415 mkdir conf$$.dir
2>/dev
/null
15417 if (echo >conf$$.
file) 2>/dev
/null
; then
15418 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15420 # ... but there are two gotchas:
15421 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15422 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15423 # In both cases, we have to default to `cp -pR'.
15424 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15426 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15434 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15435 rmdir conf$$.dir
2>/dev
/null
15440 # Create "$as_dir" as a directory, including parents if necessary.
15445 -*) as_dir
=.
/$as_dir;;
15447 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15451 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15452 *) as_qdir
=$as_dir;;
15454 as_dirs
="'$as_qdir' $as_dirs"
15455 as_dir
=`$as_dirname -- "$as_dir" ||
15456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15457 X"$as_dir" : 'X\(//\)[^/]' \| \
15458 X"$as_dir" : 'X\(//\)$' \| \
15459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15460 $as_echo X"$as_dir" |
15461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15465 /^X\(\/\/\)[^/].*/{
15478 test -d "$as_dir" && break
15480 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15481 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15485 if mkdir
-p .
2>/dev
/null
; then
15486 as_mkdir_p
='mkdir -p "$as_dir"'
15488 test -d .
/-p && rmdir .
/-p
15493 # as_fn_executable_p FILE
15494 # -----------------------
15495 # Test if FILE is an executable regular file.
15496 as_fn_executable_p
()
15498 test -f "$1" && test -x "$1"
15499 } # as_fn_executable_p
15500 as_test_x
='test -x'
15501 as_executable_p
=as_fn_executable_p
15503 # Sed expression to map a string onto a valid CPP name.
15504 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15506 # Sed expression to map a string onto a valid variable name.
15507 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15511 ## ----------------------------------- ##
15512 ## Main body of $CONFIG_STATUS script. ##
15513 ## ----------------------------------- ##
15515 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15518 # Save the log message, to keep $0 and so on meaningful, and to
15519 # report actual input values of CONFIG_FILES etc. instead of their
15520 # values after options handling.
15522 This file was extended by $as_me, which was
15523 generated by GNU Autoconf 2.69. Invocation command line was
15525 CONFIG_FILES = $CONFIG_FILES
15526 CONFIG_HEADERS = $CONFIG_HEADERS
15527 CONFIG_LINKS = $CONFIG_LINKS
15528 CONFIG_COMMANDS = $CONFIG_COMMANDS
15531 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15536 case $ac_config_files in *"
15537 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15540 case $ac_config_headers in *"
15541 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15546 # Files that config.status was made for.
15547 config_files="$ac_config_files"
15548 config_headers="$ac_config_headers"
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15554 \`$as_me' instantiates files and other configuration actions
15555 from templates according to the current configuration. Unless the files
15556 and actions are specified as TAGs, all are instantiated by default.
15558 Usage: $0 [OPTION]... [TAG]...
15560 -h, --help print this help, then exit
15561 -V, --version print version number and configuration settings, then exit
15562 --config print configuration, then exit
15563 -q, --quiet, --silent
15564 do not print progress messages
15565 -d, --debug don't remove temporary files
15566 --recheck update $as_me by reconfiguring in the same conditions
15567 --file=FILE[:TEMPLATE]
15568 instantiate the configuration file FILE
15569 --header=FILE[:TEMPLATE]
15570 instantiate the configuration header FILE
15572 Configuration files:
15575 Configuration headers:
15578 Report bugs to the package provider."
15581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15582 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15585 configured by $0, generated by GNU Autoconf 2.69,
15586 with options \\"\$ac_cs_config\\"
15588 Copyright (C) 2012 Free Software Foundation, Inc.
15589 This config.status script is free software; the Free Software Foundation
15590 gives unlimited permission to copy, distribute and modify it."
15594 test -n "\$AWK" || AWK=awk
15597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15598 # The default lists apply if the user does not specify any file.
15604 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15605 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15609 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15621 # Handling of the options.
15622 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15624 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15625 $as_echo "$ac_cs_version"; exit ;;
15626 --config |
--confi |
--conf |
--con |
--co |
--c )
15627 $as_echo "$ac_cs_config"; exit ;;
15628 --debug |
--debu |
--deb |
--de |
--d |
-d )
15630 --file |
--fil |
--fi |
--f )
15633 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15634 '') as_fn_error $?
"missing file argument" ;;
15636 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15637 ac_need_defaults
=false
;;
15638 --header |
--heade |
--head |
--hea )
15641 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15643 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15644 ac_need_defaults
=false
;;
15646 # Conflict between --help and --header
15647 as_fn_error $?
"ambiguous option: \`$1'
15648 Try \`$0 --help' for more information.";;
15649 --help |
--hel |
-h )
15650 $as_echo "$ac_cs_usage"; exit ;;
15651 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15652 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15655 # This is an error.
15656 -*) as_fn_error $?
"unrecognized option: \`$1'
15657 Try \`$0 --help' for more information." ;;
15659 *) as_fn_append ac_config_targets
" $1"
15660 ac_need_defaults
=false
;;
15666 ac_configure_extra_args
=
15668 if $ac_cs_silent; then
15670 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15675 if \$ac_cs_recheck; then
15676 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15679 CONFIG_SHELL='$SHELL'
15680 export CONFIG_SHELL
15685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15690 ## Running $as_me. ##
15696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15701 # Handling of arguments.
15702 for ac_config_target
in $ac_config_targets
15704 case $ac_config_target in
15705 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
15706 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
15707 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
15708 "src/include/builddefs") CONFIG_FILES
="$CONFIG_FILES src/include/builddefs" ;;
15709 "src/include/pcp.conf") CONFIG_FILES
="$CONFIG_FILES src/include/pcp.conf" ;;
15710 "pcp.lsm") CONFIG_FILES
="$CONFIG_FILES pcp.lsm" ;;
15711 "debian/pcp.preinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.preinst.head" ;;
15712 "debian/pcp.postinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.postinst.head" ;;
15713 "build/tar/preinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/preinstall.head" ;;
15714 "build/tar/postinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/postinstall.head" ;;
15715 "build/GNUlocaldefs") CONFIG_FILES
="$CONFIG_FILES build/GNUlocaldefs" ;;
15716 "build/mac/uninstall-pcp") CONFIG_FILES
="$CONFIG_FILES build/mac/uninstall-pcp" ;;
15718 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15723 # If the user did not use the arguments to specify the items to instantiate,
15724 # then the envvar interface is used. Set only those that are not.
15725 # We use the long form for the default assignment because of an extremely
15726 # bizarre bug on SunOS 4.1.3.
15727 if $ac_need_defaults; then
15728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15732 # Have a temporary directory for convenience. Make it in the build tree
15733 # simply because there is no reason against having it here, and in addition,
15734 # creating and moving files from /tmp can sometimes cause problems.
15735 # Hook for its removal unless debugging.
15736 # Note that there is a small window in which the directory will not be cleaned:
15737 # after its creation but before its name has been assigned to `$tmp'.
15741 trap 'exit_status=$?
15742 : "${ac_tmp:=$tmp}"
15743 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15745 trap 'as_fn_exit 1' 1 2 13 15
15747 # Create a (secure) tmp directory for tmp files.
15750 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15754 tmp
=.
/conf$$
-$RANDOM
15755 (umask 077 && mkdir
"$tmp")
15756 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15759 # Set up the scripts for CONFIG_FILES section.
15760 # No need to generate them if there are no CONFIG_FILES.
15761 # This happens for instance with `./config.status config.h'.
15762 if test -n "$CONFIG_FILES"; then
15765 ac_cr
=`echo X | tr X '\015'`
15766 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15767 # But we know of no other shell where ac_cr would be empty at this
15768 # point, so we can use a bashism as a fallback.
15769 if test "x$ac_cr" = x
; then
15770 eval ac_cr
=\$
\'\\r
\'
15772 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15773 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15776 ac_cs_awk_cr
=$ac_cr
15779 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15784 echo "cat >conf$$subs.awk <<_ACEOF" &&
15785 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15787 } >conf$$subs.sh ||
15788 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15789 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15791 for ac_last_try in false false false false false :; do
15792 . ./conf$$subs.sh ||
15793 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15795 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15796 if test $ac_delim_n = $ac_delim_num; then
15798 elif $ac_last_try; then
15799 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15801 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15804 rm -f conf$$subs.sh
15806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15807 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15811 s/^/S["/; s
/!.
*/"]=/
15821 s/\(.\{148\}\)..*/\1/
15823 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15828 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15835 s/\(.\{148\}\)..*/\1/
15837 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15841 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15846 ' <conf$$subs.awk | sed '
15851 ' >>$CONFIG_STATUS || ac_write_fail=1
15852 rm -f conf$$subs.awk
15853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15855 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15856 for (key in S) S_is_set[key] = 1
15862 nfields = split(line, field, "@
")
15864 len = length(field[1])
15865 for (i = 2; i < nfields; i++) {
15867 keylen = length(key)
15868 if (S_is_set[key]) {
15870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15871 len += length(value) + length(field[++i])
15882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15883 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15884 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15887 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15888 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15891 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15892 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15893 # trailing colons and then remove the whole line if VPATH becomes empty
15894 # (actually we leave an empty line to preserve line numbers).
15895 if test "x
$srcdir" = x.; then
15896 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15915 fi # test -n "$CONFIG_FILES"
15917 # Set up the scripts for CONFIG_HEADERS section.
15918 # No need to generate them if there are no CONFIG_HEADERS.
15919 # This happens for instance with `./config.status Makefile'.
15920 if test -n "$CONFIG_HEADERS"; then
15921 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15925 # Transform confdefs.h into an awk script `defines.awk', embedded as
15926 # here-document in config.status, that substitutes the proper values into
15927 # config.h.in to produce config.h.
15929 # Create a delimiter string that does not exist in confdefs.h, to ease
15930 # handling of long lines.
15932 for ac_last_try in false false :; do
15933 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15934 if test -z "$ac_tt"; then
15936 elif $ac_last_try; then
15937 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15939 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15943 # For the awk script, D is an array of macro values keyed by name,
15944 # likewise P contains macro parameters if any. Preserve backslash
15945 # newline sequences.
15947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15949 s/.\{148\}/&'"$ac_delim"'/g
15952 s/^[ ]*#[ ]*define[ ][ ]*/ /
15959 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15961 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15966 D["\
1"]=" \
3\\\\\\n
"\\/p
15968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15973 s/.\{148\}/&'"$ac_delim"'/g
15978 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15981 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15983 ' <confdefs.h | sed '
15984 s/'"$ac_delim"'/"\\\
15985 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15988 for (key in D) D_is_set[key] = 1
15991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15993 split(line, arg, " ")
15994 if (arg[1] == "#") {
15998 defundef
= substr
(arg
[1], 2)
16001 split(mac1
, mac2
, "(") #)
16003 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16004 if (D_is_set
[macro
]) {
16005 # Preserve the white space surrounding the "#".
16006 print prefix
"define", macro P
[macro
] D
[macro
]
16009 # Replace #undef with comments. This is necessary, for example,
16010 # in the case of _POSIX_SOURCE, which is predefined and required
16011 # on some systems where configure will not decide to define it.
16012 if (defundef
== "undef") {
16013 print
"/*", prefix defundef
, macro
, "*/"
16021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16022 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16023 fi # test -n "$CONFIG_HEADERS"
16026 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
16031 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16033 case $ac_mode$ac_tag in
16035 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16036 :[FH
]-) ac_tag
=-:-;;
16037 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16054 -) ac_f
="$ac_tmp/stdin";;
16055 *) # Look for the file first in the build tree, then in the source tree
16056 # (if the path is not absolute). The absolute path cannot be DOS-style,
16057 # because $ac_f cannot contain `:'.
16061 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16063 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16065 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16066 as_fn_append ac_file_inputs
" '$ac_f'"
16069 # Let's still pretend it is `configure' which instantiates (i.e., don't
16070 # use $as_me), people would be surprised to read:
16071 # /* config.h. Generated by config.status. */
16072 configure_input
='Generated from '`
16073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16075 if test x
"$ac_file" != x-
; then
16076 configure_input
="$ac_file. $configure_input"
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16078 $as_echo "$as_me: creating $ac_file" >&6;}
16080 # Neutralize special characters interpreted by sed in replacement strings.
16081 case $configure_input in #(
16082 *\
&* |
*\|
* |
*\\* )
16083 ac_sed_conf_input
=`$as_echo "$configure_input" |
16084 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16085 *) ac_sed_conf_input
=$configure_input;;
16089 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16090 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16095 ac_dir
=`$as_dirname -- "$ac_file" ||
16096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16097 X"$ac_file" : 'X\(//\)[^/]' \| \
16098 X"$ac_file" : 'X\(//\)$' \| \
16099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16100 $as_echo X"$ac_file" |
16101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16105 /^X\(\/\/\)[^/].*/{
16118 as_dir
="$ac_dir"; as_fn_mkdir_p
16122 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16124 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16125 # A ".." for each directory in $ac_dir_suffix.
16126 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16127 case $ac_top_builddir_sub in
16128 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16129 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16132 ac_abs_top_builddir
=$ac_pwd
16133 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16134 # for backward compatibility:
16135 ac_top_builddir
=$ac_top_build_prefix
16138 .
) # We are building in place.
16140 ac_top_srcdir
=$ac_top_builddir_sub
16141 ac_abs_top_srcdir
=$ac_pwd ;;
16142 [\\/]* | ?
:[\\/]* ) # Absolute name.
16143 ac_srcdir
=$srcdir$ac_dir_suffix;
16144 ac_top_srcdir
=$srcdir
16145 ac_abs_top_srcdir
=$srcdir ;;
16146 *) # Relative name.
16147 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16148 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16149 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16151 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16163 # If the template does not know about datarootdir, expand it.
16164 # FIXME: This hack should be removed a few years after 2.60.
16165 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16176 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16177 *datarootdir
*) ac_datarootdir_seen
=yes;;
16178 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16180 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 ac_datarootdir_hack='
16184 s&@datadir@&$datadir&g
16185 s&@docdir@&$docdir&g
16186 s&@infodir@&$infodir&g
16187 s&@localedir@&$localedir&g
16188 s&@mandir@&$mandir&g
16189 s&\\\${datarootdir}&$datarootdir&g' ;;
16193 # Neutralize VPATH when `$srcdir' = `.'.
16194 # Shell code in configure.ac might set extrasub.
16195 # FIXME: do we really want to maintain this feature?
16196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16197 ac_sed_extra="$ac_vpsub
16200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16202 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16203 s|@configure_input@|
$ac_sed_conf_input|
;t t
16204 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16205 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16206 s
&@srcdir@
&$ac_srcdir&;t t
16207 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16208 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16209 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16210 s
&@builddir@
&$ac_builddir&;t t
16211 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16212 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16213 $ac_datarootdir_hack
16215 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16216 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16218 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16219 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16220 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16221 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16223 which seems to be undefined. Please make sure it is defined" >&5
16224 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16225 which seems to be undefined. Please make sure it is defined" >&2;}
16227 rm -f "$ac_tmp/stdin"
16229 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16230 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16238 if test x"$ac_file" != x-; then
16240 $as_echo "/* $configure_input */" \
16241 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16242 } >"$ac_tmp/config.h" \
16243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16244 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16246 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16249 mv "$ac_tmp/config.h" "$ac_file" \
16250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16253 $as_echo "/* $configure_input */" \
16254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16255 || as_fn_error $? "could not create -" "$LINENO" 5
16267 ac_clean_files=$ac_clean_files_save
16269 test $ac_write_fail = 0 ||
16270 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16273 # configure is writing to config.log, and then calls config.status.
16274 # config.status does its own redirection, appending to config.log.
16275 # Unfortunately, on DOS this fails, as config.log is still kept open
16276 # by configure, so config.status won't be able to
write to it
; its
16277 # output is simply discarded. So we exec the FD to /dev/null,
16278 # effectively closing config.log, so it can be properly (re)opened and
16279 # appended to by config.status. When coming back to configure, we
16280 # need to make the FD available again.
16281 if test "$no_create" != yes; then
16283 ac_config_status_args
=
16284 test "$silent" = yes &&
16285 ac_config_status_args
="$ac_config_status_args --quiet"
16287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16290 # would make configure fail if this is the last instruction.
16291 $ac_cs_success || as_fn_exit
1
16293 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16295 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}