spec files - change pmda_remove to use a subshell
[pcp.git] / configure
blob1ffeaa65c0b9b97619a9c5e8f2e81d51d9ae6231
1 #! /bin/sh
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 :
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
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
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
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
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
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 || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
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
156 as_fn_exit 255
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 :
162 emulate sh
163 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
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; }
183 exitcode=0
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || 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 :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
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 :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
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
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
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.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
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
257 exit 255
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."
266 else
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."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
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 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
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
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
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 :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
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.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
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
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
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. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
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).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
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
522 as_ln_s='ln -s'
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 ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
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"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
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
558 exec 6>&1
560 # Name of the host.
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`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="src/include/pcp/pmapi.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='PACKAGE_CONFIGURE
623 have_webjs
624 have_vector
625 HAVE_ZLIB
626 zlib_LIBS
627 zlib_CFLAGS
628 lib_for_curses
629 lib_for_readline
630 pcp_mpi_dirs
631 lib_for_atomic
632 enable_secure
633 lib_for_nspr
634 lib_for_nss
635 lib_for_ssl
636 lib_for_sasl
637 SASLCFLAGS
638 NSPRCFLAGS
639 NSSCFLAGS
640 ac_xconfirm_prog
641 pcp_demos_dir
642 pcp_doc_dir
643 pcp_tmp_dir
644 pcp_tmpfile_dir
645 pcp_run_dir
646 pcp_log_dir
647 pcp_sysconfig_dir
648 pcp_rc_dir
649 pcp_desktop_dir
650 pcp_icons_dir
651 pcp_html_dir
652 pcp_books_dir
653 pcp_inc_dir
654 pcp_sbin_dir
655 pcp_bin_dir
656 need_old_tbl_header
657 have_xzed_manpages
658 have_lzmaed_manpages
659 have_bzip2ed_manpages
660 have_gzipped_manpages
661 pcp_man_dir
662 pcp_x11_pre
663 pcp_x11_extra
664 pcp_x11_libflags
665 pcp_x11_incflags
666 X_EXTRA_LIBS
667 X_LIBS
668 X_PRE_LIBS
669 X_CFLAGS
670 XMKMF
671 python_prefix
672 perl_install_base
673 perl_installdirs
674 pcp_lib32_dir
675 pcp_lib_dir
676 pcp_pmdas_dir
677 pcp_var_dir
678 pcp_binadm_dir
679 pcp_share_dir
680 pcp_pmloggercontrol_path
681 pcp_pmsnapcontrol_path
682 pcp_pmiecontrol_path
683 pcp_pmproxyoptions_path
684 pcp_pmmgroptions_path
685 pcp_pmwebdoptions_path
686 pcp_pmcdrclocal_path
687 pcp_pmcdoptions_path
688 pcp_pmcdconf_path
689 pcp_sysconf_dir
690 pcp_saslconf_dir
691 pcp_etc_dir
692 lib_for_math
693 lib_for_dlopen
694 lib_for_rt
695 lib_for_basename
696 fmt_pthread
697 lib_for_pthreads
698 fmt_int64
699 fmt_pid
700 rdynamic_flag
701 enable_manager
702 enable_webapi
703 HAVE_CAIRO
704 cairo_LIBS
705 cairo_CFLAGS
706 HAVE_LIBMICROHTTPD
707 libmicrohttpd_LIBS
708 libmicrohttpd_CFLAGS
709 PMDA_POSTFIX
710 QSHAPE
711 PMDA_RPM
712 PMDA_PERFEVENT
713 PFM_LIBS
714 PMDA_PAPI
715 PAPI_LIBS
716 PAPI_CFLAGS
717 papi_LIBS
718 papi_CFLAGS
719 PMDA_INFINIBAND
720 IB_LIBS
721 PMDA_SYSTEMD
722 SYSTEMD_LIBS
723 SYSTEMD_CFLAGS
724 HAVE_NCURSES
725 ncurses_LIBS
726 ncurses_CFLAGS
727 lib_for_regex
728 grep
729 pcp_syslog_prog
730 pcp_ps_prog
731 LN_S
732 book_brand
733 book_toolchain
734 xmlto
735 XMLTO
736 dblatex
737 DBLATEX
738 publican
739 PUBLICAN
740 makepkg
741 MAKEPKG
742 dpkg
743 DPKG
744 md5sum
745 MD5SUM
746 makedepend
747 MAKEDEPEND
748 TRUEPROG
749 pod2man
750 POD2MAN
751 rpmprog
754 rpmbuild
755 RPMBUILD
756 dlltool
757 DLLTOOL
758 pkgmk
759 PKGMK
760 mkinstallp
761 MKINSTALLP
762 hdiutil
763 HDIUTIL
764 package_maker
767 lzma
768 LZMA
769 bzip2
770 BZIP2
771 gzip
775 pcp_group_install
776 pcp_user_install
780 make
781 MAKE
782 qmake
783 enable_qt
784 qt_release
785 QMAKE
786 PMDA_ACTIVEMQ
787 PMDA_NGINX
788 PMDA_ELASTICSEARCH
789 PMDA_POSTGRESQL
790 PMDA_MYSQL
791 PMDA_SNMP
792 have_perl
793 pcp_perl_prog
794 PERL
795 PMDA_JSON
796 have_python_six
797 have_python_jsonpointer
798 pcp_python_prog
799 have_python
800 enable_python3
801 enable_python2
802 PYTHON3
803 PYTHON
805 LTLIBOBJS
806 LIBOBJS
807 pm_version_current
808 PACKAGE_DISTRIBUTION
809 PACKAGE_BUILD_DATE
810 PACKAGE_BUILD
811 PACKAGE_REVISION
812 PACKAGE_MINOR
813 PACKAGE_MAJOR
814 enable_systemd
815 pcp_systemdunit_dir
816 SYSTEMD_SYSTEMUNITDIR
817 enable_avahi
818 enable_discovery
819 lib_for_avahi
820 avahi_LIBS
821 avahi_CFLAGS
822 enable_probes
824 DTRACE
825 EGREP
826 GREP
827 echo_c
828 echo_n
829 sort
830 which
831 WHICH
832 echo
833 ECHO
838 yacc
839 YFLAGS
840 YACC
842 LEXLIB
843 LEX_OUTPUT_ROOT
845 enable_shared
847 ac_ct_CXX
848 CXXFLAGS
850 INVISIBILITY
851 PIECFLAGS
852 PIELDFLAGS
853 PLDFLAGS
854 PCFLAGS
855 cflags_abi
856 cc_is_gcc
858 CCPATH
859 OBJEXT
860 EXEEXT
861 ac_ct_CC
862 CPPFLAGS
863 LDFLAGS
864 CFLAGS
866 PKG_CONFIG_LIBDIR
867 PKG_CONFIG_PATH
868 PKG_CONFIG
869 optimization
870 pcp_ps_all_flags
871 pcp_platform_paths
872 cross_compiling
873 target_os
874 target_vendor
875 target_cpu
876 target
877 host_os
878 host_vendor
879 host_cpu
880 host
881 build_os
882 build_vendor
883 build_cpu
884 build
885 pcp_group
886 pcp_user
887 target_alias
888 host_alias
889 build_alias
890 LIBS
891 ECHO_T
892 ECHO_N
893 ECHO_C
894 DEFS
895 mandir
896 localedir
897 libdir
898 psdir
899 pdfdir
900 dvidir
901 htmldir
902 infodir
903 docdir
904 oldincludedir
905 includedir
906 localstatedir
907 sharedstatedir
908 sysconfdir
909 datadir
910 datarootdir
911 libexecdir
912 sbindir
913 bindir
914 program_transform_name
915 prefix
916 exec_prefix
917 PACKAGE_URL
918 PACKAGE_BUGREPORT
919 PACKAGE_STRING
920 PACKAGE_VERSION
921 PACKAGE_TARNAME
922 PACKAGE_NAME
923 PATH_SEPARATOR
924 SHELL'
925 ac_subst_files=''
926 ac_user_opts='
927 enable_option_checking
928 with_64bit
929 with_optimization
930 with_threads
931 with_secure_sockets
932 with_static_probes
933 with_infiniband
934 with_user
935 with_group
936 with_discovery
937 with_systemd
938 with_qt
939 with_python
940 with_python3
941 with_books
942 with_books_brand
943 with_papi
944 with_perfevent
945 with_pmdajson
946 with_manager
947 with_webapi
948 with_webjs
949 with_vector
950 with_make
951 with_tar
952 with_zip
953 enable_ssp
954 enable_pie
955 enable_visibility
956 enable_shared
957 with_configdir
958 with_perl_installdirs
959 with_perl_install_base
960 with_python_prefix
961 with_x
962 with_rcdir
963 with_sysconfigdir
964 with_logdir
965 with_rundir
966 with_tmpdir
967 with_docdir
968 with_demosdir
970 ac_precious_vars='build_alias
971 host_alias
972 target_alias
973 PKG_CONFIG
974 PKG_CONFIG_PATH
975 PKG_CONFIG_LIBDIR
977 CFLAGS
978 LDFLAGS
979 LIBS
980 CPPFLAGS
982 CXXFLAGS
984 YACC
985 YFLAGS
987 avahi_CFLAGS
988 avahi_LIBS
989 SYSTEMD_SYSTEMUNITDIR
990 ncurses_CFLAGS
991 ncurses_LIBS
992 SYSTEMD_CFLAGS
993 SYSTEMD_LIBS
994 papi_CFLAGS
995 papi_LIBS
996 libmicrohttpd_CFLAGS
997 libmicrohttpd_LIBS
998 cairo_CFLAGS
999 cairo_LIBS
1000 XMKMF
1001 zlib_CFLAGS
1002 zlib_LIBS'
1005 # Initialize some variables set by options.
1006 ac_init_help=
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
1013 exec_prefix=NONE
1014 no_create=
1015 no_recursion=
1016 prefix=NONE
1017 program_prefix=NONE
1018 program_suffix=NONE
1019 program_transform_name=s,x,x,
1020 silent=
1021 site=
1022 srcdir=
1023 verbose=
1024 x_includes=NONE
1025 x_libraries=NONE
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'
1045 htmldir='${docdir}'
1046 dvidir='${docdir}'
1047 pdfdir='${docdir}'
1048 psdir='${docdir}'
1049 libdir='${exec_prefix}/lib'
1050 localedir='${datarootdir}/locale'
1051 mandir='${datarootdir}/man'
1053 ac_prev=
1054 ac_dashdash=
1055 for ac_option
1057 # If the previous option needs an argument, assign it.
1058 if test -n "$ac_prev"; then
1059 eval $ac_prev=\$ac_option
1060 ac_prev=
1061 continue
1064 case $ac_option in
1065 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1066 *=) ac_optarg= ;;
1067 *) ac_optarg=yes ;;
1068 esac
1070 # Accept the important Cygnus configure options, so we can diagnose typos.
1072 case $ac_dashdash$ac_option in
1074 ac_dashdash=yes ;;
1076 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1077 ac_prev=bindir ;;
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)
1097 ac_prev=datadir ;;
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"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval enable_$ac_useropt=no ;;
1124 -docdir | --docdir | --docdi | --doc | --do)
1125 ac_prev=docdir ;;
1126 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1127 docdir=$ac_optarg ;;
1129 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1130 ac_prev=dvidir ;;
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"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
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.
1161 with_gas=yes ;;
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)
1176 ac_prev=htmldir ;;
1177 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1178 | --ht=*)
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)
1189 ac_prev=infodir ;;
1190 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1191 infodir=$ac_optarg ;;
1193 -libdir | --libdir | --libdi | --libd)
1194 ac_prev=libdir ;;
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)
1218 ac_prev=mandir ;;
1219 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1220 mandir=$ac_optarg ;;
1222 -nfp | --nfp | --nf)
1223 # Obsolete; use --without-fp.
1224 with_fp=no ;;
1226 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1227 | --no-cr | --no-c | -n)
1228 no_create=yes ;;
1230 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1231 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1232 no_recursion=yes ;;
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)
1244 ac_prev=prefix ;;
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)
1280 ac_prev=pdfdir ;;
1281 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1282 pdfdir=$ac_optarg ;;
1284 -psdir | --psdir | --psdi | --psd | --ps)
1285 ac_prev=psdir ;;
1286 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1287 psdir=$ac_optarg ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1291 silent=yes ;;
1293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1294 ac_prev=sbindir ;;
1295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1296 | --sbi=* | --sb=*)
1297 sbindir=$ac_optarg ;;
1299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1301 | --sharedst | --shareds | --shared | --share | --shar \
1302 | --sha | --sh)
1303 ac_prev=sharedstatedir ;;
1304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1307 | --sha=* | --sh=*)
1308 sharedstatedir=$ac_optarg ;;
1310 -site | --site | --sit)
1311 ac_prev=site ;;
1312 -site=* | --site=* | --sit=*)
1313 site=$ac_optarg ;;
1315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1316 ac_prev=srcdir ;;
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)
1333 verbose=yes ;;
1335 -version | --version | --versio | --versi | --vers | -V)
1336 ac_init_version=: ;;
1338 -with-* | --with-*)
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
1347 "with_$ac_useropt"
1348 "*) ;;
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1351 esac
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
1363 "with_$ac_useropt"
1364 "*) ;;
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1367 esac
1368 eval with_$ac_useropt=no ;;
1370 --x)
1371 # Obsolete; use --with-x.
1372 with_x=yes ;;
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"
1392 *=*)
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'" ;;
1398 esac
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}"
1410 esac
1411 done
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
1420 no) ;;
1421 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1422 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1423 esac
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.
1434 case $ac_val in
1435 */ )
1436 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1437 eval $ac_var=\$ac_val;;
1438 esac
1439 # Be sure to have absolute directory names.
1440 case $ac_val in
1441 [\\/$]* | ?:[\\/]* ) continue;;
1442 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1443 esac
1444 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1445 done
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.
1450 build=$build_alias
1451 host=$host_alias
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
1459 cross_compiling=yes
1463 ac_tool_prefix=
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488 s//\1/
1491 /^X\(\/\/\)[^/].*/{
1492 s//\1/
1495 /^X\(\/\/\)$/{
1496 s//\1/
1499 /^X\(\/\).*/{
1500 s//\1/
1503 s/.*/./; q'`
1504 srcdir=$ac_confdir
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1506 srcdir=..
1508 else
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"
1516 ac_abs_confdir=`(
1517 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1518 pwd)`
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1521 srcdir=.
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.
1526 case $srcdir in
1527 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528 esac
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}
1534 done
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.
1542 cat <<_ACEOF
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.
1552 Configuration:
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
1567 [PREFIX]
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]
1596 _ACEOF
1598 cat <<\_ACEOF
1600 X features:
1601 --x-includes=DIR X include files are in DIR
1602 --x-libraries=DIR X library files are in DIR
1604 System types:
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]
1608 _ACEOF
1611 if test -n "$ac_init_help"; then
1613 cat <<\_ACEOF
1615 Optional Features:
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
1624 Optional Packages:
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
1628 dependent)
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
1636 pcp)
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
1643 is on)
1644 --with-python3 enable support for tools requiring Python3 (default
1645 is on)
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
1649 (default is common)
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
1661 auto discovery)
1662 --with-tar path to GNU compatible tar(1) (default is empty for
1663 auto discovery)
1664 --with-zip path to GNU compatible zip(1) (default is empty for
1665 auto discovery)
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
1682 PKG_CONFIG_PATH
1683 directories to add to pkg-config's search path
1684 PKG_CONFIG_LIBDIR
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',
1697 `yacc'.
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.
1701 CPP C preprocessor
1702 avahi_CFLAGS
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
1707 ncurses_CFLAGS
1708 C compiler flags for ncurses, overriding pkg-config
1709 ncurses_LIBS
1710 linker flags for ncurses, overriding pkg-config
1711 SYSTEMD_CFLAGS
1712 C compiler flags for SYSTEMD, overriding pkg-config
1713 SYSTEMD_LIBS
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
1719 libmicrohttpd_LIBS
1720 linker flags for libmicrohttpd, overriding pkg-config
1721 cairo_CFLAGS
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.
1732 _ACEOF
1733 ac_status=$?
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"; } ||
1741 continue
1742 ac_builddir=.
1744 case "$ac_dir" in
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/ ;;
1753 esac ;;
1754 esac
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
1760 case $srcdir in
1761 .) # We are building in place.
1762 ac_srcdir=.
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 ;;
1769 *) # Relative name.
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 ;;
1773 esac
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
1779 echo &&
1780 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781 elif test -f "$ac_srcdir/configure"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure" --help=recursive
1784 else
1785 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1786 fi || ac_status=$?
1787 cd "$ac_pwd" || { ac_status=$?; break; }
1788 done
1791 test -n "$ac_init_help" && exit $ac_status
1792 if $ac_init_version; then
1793 cat <<\_ACEOF
1794 configure
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.
1800 _ACEOF
1801 exit
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"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
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
1823 ac_status=$?
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 :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=1
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.
1849 ac_fn_c_try_link ()
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"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
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
1861 ac_status=$?
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
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
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"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
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
1907 ac_status=$?
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 :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
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.
1933 ac_fn_c_try_cpp ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_cpp conftest.$ac_ext"
1937 case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
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
1944 ac_status=$?
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
1954 }; then :
1955 ac_retval=0
1956 else
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1960 ac_retval=1
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1965 } # ac_fn_c_try_cpp
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
1971 # accordingly.
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
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 else
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. */
1991 #include <$2>
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_header_compiler=yes
1995 else
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. */
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_c_try_cpp "$LINENO"; then :
2010 ac_header_preproc=yes
2011 else
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 #((
2020 yes:no: )
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;}
2026 no:yes:* )
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;}
2038 esac
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
2043 else
2044 eval "$3=\$ac_header_compiler"
2046 eval ac_res=\$$3
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.
2058 ac_fn_c_try_run ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_link"
2062 case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065 esac
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
2069 ac_status=$?
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;;
2075 esac
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
2079 ac_status=$?
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; }; }; then :
2082 ac_retval=0
2083 else
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
2094 } # ac_fn_c_try_run
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
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 eval "$3=yes"
2115 else
2116 eval "$3=no"
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 eval ac_res=\$$3
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
2138 else
2139 eval "$3=no"
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 if (sizeof ($2))
2147 return 0;
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2157 main ()
2159 if (sizeof (($2)))
2160 return 0;
2162 return 0;
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2167 else
2168 eval "$3=yes"
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 eval ac_res=\$$3
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
2191 else
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. */
2203 #ifdef __STDC__
2204 # include <limits.h>
2205 #else
2206 # include <assert.h>
2207 #endif
2209 #undef $2
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. */
2214 #ifdef __cplusplus
2215 extern "C"
2216 #endif
2217 char $2 ();
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
2222 choke me
2223 #endif
2226 main ()
2228 return $2 ();
2230 return 0;
2232 _ACEOF
2233 if ac_fn_c_try_link "$LINENO"; then :
2234 eval "$3=yes"
2235 else
2236 eval "$3=no"
2238 rm -f core conftest.err conftest.$ac_objext \
2239 conftest$ac_exeext conftest.$ac_ext
2241 eval ac_res=\$$3
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
2254 $ $0 $@
2256 _ACEOF
2257 exec 5>>config.log
2259 cat <<_ASUNAME
2260 ## --------- ##
2261 ## Platform. ##
2262 ## --------- ##
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`
2281 _ASUNAME
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 $as_echo "PATH: $as_dir"
2289 done
2290 IFS=$as_save_IFS
2292 } >&5
2294 cat >&5 <<_ACEOF
2297 ## ----------- ##
2298 ## Core tests. ##
2299 ## ----------- ##
2301 _ACEOF
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.
2309 ac_configure_args=
2310 ac_configure_args0=
2311 ac_configure_args1=
2312 ac_must_keep_next=false
2313 for ac_pass in 1 2
2315 for ac_arg
2317 case $ac_arg in
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)
2321 continue ;;
2322 *\'*)
2323 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 esac
2325 case $ac_pass in
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.
2331 else
2332 case $ac_arg in
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 ;;
2339 esac
2341 -* ) ac_must_keep_next=true ;;
2342 esac
2344 as_fn_append ac_configure_args " '$ac_arg'"
2346 esac
2347 done
2348 done
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.
2360 echo
2362 $as_echo "## ---------------- ##
2363 ## Cache variables. ##
2364 ## ---------------- ##"
2365 echo
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
2370 case $ac_val in #(
2371 *${as_nl}*)
2372 case $ac_var in #(
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;} ;;
2375 esac
2376 case $ac_var in #(
2377 _ | IFS | as_nl) ;; #(
2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379 *) { eval $ac_var=; unset $ac_var;} ;;
2380 esac ;;
2381 esac
2382 done
2383 (set) 2>&1 |
2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
2386 sed -n \
2387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389 ;; #(
2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2393 esac |
2394 sort
2396 echo
2398 $as_echo "## ----------------- ##
2399 ## Output variables. ##
2400 ## ----------------- ##"
2401 echo
2402 for ac_var in $ac_subst_vars
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2412 if test -n "$ac_subst_files"; then
2413 $as_echo "## ------------------- ##
2414 ## File substitutions. ##
2415 ## ------------------- ##"
2416 echo
2417 for ac_var in $ac_subst_files
2419 eval ac_val=\$$ac_var
2420 case $ac_val in
2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 esac
2423 $as_echo "$ac_var='\''$ac_val'\''"
2424 done | sort
2425 echo
2428 if test -s confdefs.h; then
2429 $as_echo "## ----------- ##
2430 ## confdefs.h. ##
2431 ## ----------- ##"
2432 echo
2433 cat confdefs.h
2434 echo
2436 test "$ac_signal" != 0 &&
2437 $as_echo "$as_me: caught signal $ac_signal"
2438 $as_echo "$as_me: exit $exit_status"
2439 } >&5
2440 rm -f core *.core core.conftest.* &&
2441 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442 exit $exit_status
2444 for ac_signal in 1 2 13 15; do
2445 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2446 done
2447 ac_signal=0
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"
2458 _ACEOF
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_STRING "$PACKAGE_STRING"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_URL "$PACKAGE_URL"
2478 _ACEOF
2481 # Let the site file select an alternate cache file if it wants to.
2482 # Prefer an explicitly selected file to automatically selected ones.
2483 ac_site_file1=NONE
2484 ac_site_file2=NONE
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;;
2491 esac
2492 elif test "x$prefix" != xNONE; then
2493 ac_site_file1=$prefix/share/config.site
2494 ac_site_file2=$prefix/etc/config.site
2495 else
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
2506 . "$ac_site_file" \
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; }
2512 done
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;}
2520 case $cache_file in
2521 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522 *) . "./$cache_file";;
2523 esac
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527 $as_echo "$as_me: creating cache $cache_file" >&6;}
2528 >$cache_file
2531 # Check that the precious variables saved in the cache have kept the same
2532 # value.
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
2540 set,)
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=: ;;
2544 ,set)
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=: ;;
2548 ,);;
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=:
2558 else
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;}
2567 fi;;
2568 esac
2569 # Pass precious variables to config.status.
2570 if test "$ac_new_set" = set; then
2571 case $ac_new_val in
2572 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573 *) ac_arg=$ac_var=$ac_new_val ;;
2574 esac
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'" ;;
2578 esac
2580 done
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 ## -------------------- ##
2592 ac_ext=c
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
2600 unset ROOT TOOLROOT
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"
2613 else
2614 use_optimizaton=yes
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"
2622 else
2623 do_threads=check
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"
2631 else
2632 do_secure=check
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"
2640 else
2641 do_probes=check
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"
2649 else
2650 do_infiniband=check
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"
2658 else
2659 pcp_user=pcp
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"
2668 else
2669 pcp_group=pcp
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"
2678 else
2679 do_discovery=check
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"
2687 else
2688 do_systemd=check
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"
2696 else
2697 do_qt=check
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"
2705 else
2706 do_python=check
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"
2714 else
2715 do_python3=check
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"
2723 else
2724 do_books=no
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"
2732 else
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"
2741 else
2742 do_papi=check
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"
2750 else
2751 do_perfevent=check
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"
2759 else
2760 do_pmdajson=check
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"
2768 else
2769 do_manager=check
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"
2777 else
2778 do_webapi=check
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"
2786 else
2787 do_webjs=no
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"
2795 else
2796 do_vector=no
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"
2805 else
2806 MAKE=''
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"
2814 else
2815 TAR=''
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"
2823 else
2824 ZIP=''
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
2835 ac_aux_dir=
2836 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2837 if test -f "$ac_dir/install-sh"; then
2838 ac_aux_dir=$ac_dir
2839 ac_install_sh="$ac_aux_dir/install-sh -c"
2840 break
2841 elif test -f "$ac_dir/install.sh"; then
2842 ac_aux_dir=$ac_dir
2843 ac_install_sh="$ac_aux_dir/install.sh -c"
2844 break
2845 elif test -f "$ac_dir/shtool"; then
2846 ac_aux_dir=$ac_dir
2847 ac_install_sh="$ac_aux_dir/shtool install -c"
2848 break
2850 done
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
2872 else
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
2885 *-*-*) ;;
2886 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2887 esac
2888 build=$ac_cv_build
2889 ac_save_IFS=$IFS; IFS='-'
2890 set x $ac_cv_build
2891 shift
2892 build_cpu=$1
2893 build_vendor=$2
2894 shift; shift
2895 # Remember, the first character of IFS is used to create $*,
2896 # except with old shells:
2897 build_os=$*
2898 IFS=$ac_save_IFS
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
2906 else
2907 if test "x$host_alias" = x; then
2908 ac_cv_host=$ac_cv_build
2909 else
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; }
2917 case $ac_cv_host in
2918 *-*-*) ;;
2919 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2920 esac
2921 host=$ac_cv_host
2922 ac_save_IFS=$IFS; IFS='-'
2923 set x $ac_cv_host
2924 shift
2925 host_cpu=$1
2926 host_vendor=$2
2927 shift; shift
2928 # Remember, the first character of IFS is used to create $*,
2929 # except with old shells:
2930 host_os=$*
2931 IFS=$ac_save_IFS
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
2939 else
2940 if test "x$target_alias" = x; then
2941 ac_cv_target=$ac_cv_host
2942 else
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
2951 *-*-*) ;;
2952 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2953 esac
2954 target=$ac_cv_target
2955 ac_save_IFS=$IFS; IFS='-'
2956 set x $ac_cv_target
2957 shift
2958 target_cpu=$1
2959 target_vendor=$2
2960 shift; shift
2961 # Remember, the first character of IFS is used to create $*,
2962 # except with old shells:
2963 target_os=$*
2964 IFS=$ac_save_IFS
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" = \
2972 NONENONEs,x,x, &&
2973 program_prefix=${target_alias}-
2975 if test -z "$target"
2976 then
2977 echo '
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.*
2981 exit 1
2982 else
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
2999 else
3000 echo
3001 echo "
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.*
3005 exit 1
3011 target_distro=$target_os
3012 if test $target_os = linux
3013 then
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
3028 then
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
3036 then
3037 target_distro=cocoa
3038 CFLAGS="$CFLAGS -arch x86_64"
3040 export CFLAGS
3041 pcp_platform_paths='/usr/local/bin'
3042 pcp_ps_all_flags=auxww
3043 elif test $target_os = mingw
3044 then
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
3052 then
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
3061 then
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
3069 then
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
3076 then
3077 pcp_ps_all_flags=-efw
3078 else
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
3085 then
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
3094 then
3095 target_os=netbsd
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
3102 else
3103 echo
3104 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3105 rm -rf conftest conftest.*
3106 exit 1
3111 if test "$use_optimization" = no
3112 then
3113 optimization="-O0 -g"
3114 else
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
3134 else
3135 case $PKG_CONFIG in
3136 [\\/]* | ?:[\\/]*)
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
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
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
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3156 esac
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; }
3162 else
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
3177 else
3178 case $ac_pt_PKG_CONFIG in
3179 [\\/]* | ?:[\\/]*)
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
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
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
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3199 esac
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; }
3205 else
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
3211 PKG_CONFIG=""
3212 else
3213 case $cross_compiling:$ac_tool_warned in
3214 yes:)
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 ;;
3218 esac
3219 PKG_CONFIG=$ac_pt_PKG_CONFIG
3221 else
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; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 PKG_CONFIG=""
3239 if test -z "$PKG_CONFIG"
3240 then
3241 echo
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.*
3246 exit 1
3249 cflags_abi=
3250 ac_ext=c
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
3264 else
3265 if test -n "$CC"; then
3266 ac_cv_prog_CC="$CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3271 IFS=$as_save_IFS
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
3277 break 2
3279 done
3280 done
3281 IFS=$as_save_IFS
3285 CC=$ac_cv_prog_CC
3286 if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3295 test -n "$CC" && break
3296 done
3298 if test -z "$CC"; then
3299 ac_ct_CC=$CC
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
3308 else
3309 if test -n "$ac_ct_CC"; then
3310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3315 IFS=$as_save_IFS
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
3321 break 2
3323 done
3324 done
3325 IFS=$as_save_IFS
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; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3339 test -n "$ac_ct_CC" && break
3340 done
3342 if test "x$ac_ct_CC" = x; then
3343 CC=""
3344 else
3345 case $cross_compiling:$ac_tool_warned in
3346 yes:)
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 ;;
3350 esac
3351 CC=$ac_ct_CC
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
3363 set X $ac_compile
3364 ac_compiler=$2
3365 for ac_option in --version -v -V -qversion; do
3366 { { ac_try="$ac_compiler $ac_option >&5"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
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
3374 ac_status=$?
3375 if test -s conftest.err; then
3376 sed '10a\
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; }
3384 done
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3390 main ()
3394 return 0;
3396 _ACEOF
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
3401 # of exeext.
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.*"
3409 ac_rmfiles=
3410 for ac_file in $ac_files
3412 case $ac_file in
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3415 esac
3416 done
3417 rm -f $ac_rmfiles
3419 if { { ac_try="$ac_link_default"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
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
3427 ac_status=$?
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
3434 # Autoconf.
3435 for ac_file in $ac_files ''
3437 test -f "$ac_file" || continue
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3441 [ab].out )
3442 # We found the default executable, but exeext='' is most
3443 # certainly right.
3444 break;;
3445 *.* )
3446 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3447 then :; else
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
3454 # actually working.
3455 break;;
3457 break;;
3458 esac
3459 done
3460 test "$ac_cv_exeext" = no && ac_cv_exeext=
3462 else
3463 ac_file=''
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; }
3475 else
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"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
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
3497 ac_status=$?
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
3503 # `rm'.
3504 for ac_file in conftest.exe conftest conftest.*; do
3505 test -f "$ac_file" || continue
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 break;;
3510 * ) break;;
3511 esac
3512 done
3513 else
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
3525 ac_exeext=$EXEEXT
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 #include <stdio.h>
3530 main ()
3532 FILE *f = fopen ("conftest.out", "w");
3533 return ferror (f) || fclose (f) != 0;
3536 return 0;
3538 _ACEOF
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"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
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
3553 ac_status=$?
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;;
3560 esac
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
3564 ac_status=$?
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; }; then
3567 cross_compiling=no
3568 else
3569 if test "$cross_compiling" = maybe; then
3570 cross_compiling=yes
3571 else
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
3589 else
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3594 main ()
3598 return 0;
3600 _ACEOF
3601 rm -f conftest.o conftest.obj
3602 if { { ac_try="$ac_compile"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
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
3610 ac_status=$?
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;
3615 case $ac_file in
3616 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3617 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3618 break;;
3619 esac
3620 done
3621 else
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
3635 ac_objext=$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
3640 else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3645 main ()
3647 #ifndef __GNUC__
3648 choke me
3649 #endif
3652 return 0;
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656 ac_compiler_gnu=yes
3657 else
3658 ac_compiler_gnu=no
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
3667 GCC=yes
3668 else
3669 GCC=
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
3677 else
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3680 ac_cv_prog_cc_g=no
3681 CFLAGS="-g"
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3686 main ()
3690 return 0;
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_g=yes
3695 else
3696 CFLAGS=""
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3701 main ()
3705 return 0;
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3710 else
3711 ac_c_werror_flag=$ac_save_c_werror_flag
3712 CFLAGS="-g"
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3717 main ()
3721 return 0;
3723 _ACEOF
3724 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_cv_prog_cc_g=yes
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
3740 CFLAGS="-g -O2"
3741 else
3742 CFLAGS="-g"
3744 else
3745 if test "$GCC" = yes; then
3746 CFLAGS="-O2"
3747 else
3748 CFLAGS=
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
3755 else
3756 ac_cv_prog_cc_c89=no
3757 ac_save_CC=$CC
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760 #include <stdarg.h>
3761 #include <stdio.h>
3762 struct stat;
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)
3767 char **p;
3768 int i;
3770 return p[i];
3772 static char *f (char * (*g) (char **, int), char **p, ...)
3774 char *s;
3775 va_list v;
3776 va_start (v,p);
3777 s = g (p, va_arg (v,int));
3778 va_end (v);
3779 return s;
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. */
3793 #define FOO(x) 'x'
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);
3800 int argc;
3801 char **argv;
3803 main ()
3805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3807 return 0;
3809 _ACEOF
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
3819 done
3820 rm -f conftest.$ac_ext
3821 CC=$ac_save_CC
3824 # AC_CACHE_VAL
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; } ;;
3829 xno)
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; } ;;
3836 esac
3837 if test "x$ac_cv_prog_cc_c89" != xno; then :
3841 ac_ext=c
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
3848 then
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
3855 else
3856 case $CCPATH in
3857 [\\/]* | ?:[\\/]*)
3858 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3864 IFS=$as_save_IFS
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
3870 break 2
3872 done
3873 done
3874 IFS=$as_save_IFS
3876 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3878 esac
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; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3890 cc=$CCPATH
3891 if test "$GCC" = "yes"
3892 then
3893 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3894 else
3895 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3897 if test "$use_64bit" = "no"
3898 then
3900 else
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; }
3903 case `isainfo -k`
3905 amd64|sparcv9)
3906 cflags_abi=-m64
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; }
3916 esac
3918 else
3919 cc=$CC
3922 cc_is_gcc=$GCC
3925 PCFLAGS="$CFLAGS"
3926 PLDFLAGS=$LDFLAGS
3928 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3929 then
3930 CFLAGS="-O $PCFLAGS"
3934 # Add some security-related gcc flags
3935 if echo "$CFLAGS" | grep stack-protector >/dev/null
3936 then
3938 else
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. */
3951 int something ();
3952 _ACEOF
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"
3958 else
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 :
3980 PIECFLAGS='-fPIE'
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. */
3988 void main () {}
3989 _ACEOF
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;}
3995 else
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;}
3999 PIECFLAGS=""
4000 PIELDFLAGS=""
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; }
4026 _ACEOF
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;}
4032 else
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;}
4036 INVISIBILITY=""
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 CFLAGS="$save_CFLAGS"
4045 ac_ext=cpp
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
4052 CXX=$CCC
4053 else
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
4063 else
4064 if test -n "$CXX"; then
4065 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4070 IFS=$as_save_IFS
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
4076 break 2
4078 done
4079 done
4080 IFS=$as_save_IFS
4084 CXX=$ac_cv_prog_CXX
4085 if test -n "$CXX"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4087 $as_echo "$CXX" >&6; }
4088 else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4094 test -n "$CXX" && break
4095 done
4097 if test -z "$CXX"; then
4098 ac_ct_CXX=$CXX
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
4107 else
4108 if test -n "$ac_ct_CXX"; then
4109 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4114 IFS=$as_save_IFS
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
4120 break 2
4122 done
4123 done
4124 IFS=$as_save_IFS
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; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4138 test -n "$ac_ct_CXX" && break
4139 done
4141 if test "x$ac_ct_CXX" = x; then
4142 CXX="g++"
4143 else
4144 case $cross_compiling:$ac_tool_warned in
4145 yes:)
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 ;;
4149 esac
4150 CXX=$ac_ct_CXX
4156 # Provide some information about the compiler.
4157 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4158 set X $ac_compile
4159 ac_compiler=$2
4160 for ac_option in --version -v -V -qversion; do
4161 { { ac_try="$ac_compiler $ac_option >&5"
4162 case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165 esac
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
4169 ac_status=$?
4170 if test -s conftest.err; then
4171 sed '10a\
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; }
4179 done
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
4185 else
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4190 main ()
4192 #ifndef __GNUC__
4193 choke me
4194 #endif
4197 return 0;
4199 _ACEOF
4200 if ac_fn_cxx_try_compile "$LINENO"; then :
4201 ac_compiler_gnu=yes
4202 else
4203 ac_compiler_gnu=no
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
4212 GXX=yes
4213 else
4214 GXX=
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
4222 else
4223 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4224 ac_cxx_werror_flag=yes
4225 ac_cv_prog_cxx_g=no
4226 CXXFLAGS="-g"
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4231 main ()
4235 return 0;
4237 _ACEOF
4238 if ac_fn_cxx_try_compile "$LINENO"; then :
4239 ac_cv_prog_cxx_g=yes
4240 else
4241 CXXFLAGS=""
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4246 main ()
4250 return 0;
4252 _ACEOF
4253 if ac_fn_cxx_try_compile "$LINENO"; then :
4255 else
4256 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4257 CXXFLAGS="-g"
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4262 main ()
4266 return 0;
4268 _ACEOF
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
4285 CXXFLAGS="-g -O2"
4286 else
4287 CXXFLAGS="-g"
4289 else
4290 if test "$GXX" = yes; then
4291 CXXFLAGS="-O2"
4292 else
4293 CXXFLAGS=
4296 ac_ext=c
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
4302 cxx=$CXX
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4305 $as_echo_n "checking for working C++ compiler... " >&6; }
4306 ac_ext=cpp
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. */
4315 #include <cstdio>
4317 main ()
4319 const char gday[] = "G'day, world\n";
4321 return 0;
4323 _ACEOF
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; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4330 cxx=""
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 ac_ext=c
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
4356 else
4357 if test -n "$LEX"; then
4358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
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
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 LEX=$ac_cv_prog_LEX
4378 if test -n "$LEX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4380 $as_echo "$LEX" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$LEX" && break
4388 done
4389 test -n "$LEX" || LEX=":"
4391 if test "x$LEX" != "x:"; then
4392 cat >conftest.l <<_ACEOF
4394 a { ECHO; }
4395 b { REJECT; }
4396 c { yymore (); }
4397 d { yyless (1); }
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;
4405 #endif
4407 main (void)
4409 return ! yylex () + ! yywrap ();
4411 _ACEOF
4412 { { ac_try="$LEX conftest.l"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
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
4420 ac_status=$?
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
4427 else
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
4433 else
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
4446 else
4448 ac_save_LIBS=$LIBS
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`
4455 _ACEOF
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
4462 done
4463 LIBS=$ac_save_LIBS
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
4476 else
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
4481 ac_save_LIBS=$LIBS
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`
4488 _ACEOF
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
4494 LIBS=$ac_save_LIBS
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
4507 lex=$LEX
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
4517 else
4518 if test -n "$YACC"; then
4519 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
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
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
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; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4548 test -n "$YACC" && break
4549 done
4550 test -n "$YACC" || YACC="yacc"
4552 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"
4560 then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562 $as_echo " yes" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo " no" >&6; }
4566 echo
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.*
4571 exit 1
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"
4578 then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580 $as_echo " yes" >&6; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo " no" >&6; }
4584 echo
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.*
4589 exit 1
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
4601 else
4602 case $AWK in
4603 [\\/]* | ?:[\\/]*)
4604 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
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
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4623 esac
4625 AWK=$ac_cv_path_AWK
4626 if test -n "$AWK"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4628 $as_echo "$AWK" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4635 test -n "$AWK" && break
4636 done
4637 test -n "$AWK" || AWK="/usr/bin/awk"
4640 case "$AWK"
4642 gawk|*/gawk)
4643 awk="$AWK --posix"
4646 awk=$AWK
4648 esac
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
4657 else
4658 case $SED in
4659 [\\/]* | ?:[\\/]*)
4660 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4666 IFS=$as_save_IFS
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
4672 break 2
4674 done
4675 done
4676 IFS=$as_save_IFS
4678 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4680 esac
4682 SED=$ac_cv_path_SED
4683 if test -n "$SED"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4685 $as_echo "$SED" >&6; }
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4693 sed=$SED
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
4702 else
4703 case $ECHO in
4704 [\\/]* | ?:[\\/]*)
4705 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4711 IFS=$as_save_IFS
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
4717 break 2
4719 done
4720 done
4721 IFS=$as_save_IFS
4723 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4725 esac
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; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4738 echo=$ECHO
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
4747 else
4748 case $WHICH in
4749 [\\/]* | ?:[\\/]*)
4750 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4756 IFS=$as_save_IFS
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
4762 break 2
4764 done
4765 done
4766 IFS=$as_save_IFS
4768 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4770 esac
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; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4783 which=$WHICH
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
4792 sort=$d/sort
4793 break
4795 done
4796 else
4797 sort=`which sort`
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4800 $as_echo "$sort" >&6; }
4801 $sort -n </dev/null
4802 if test $? != 0
4803 then
4804 echo
4805 echo "FATAL ERROR: $sort -n failed!"
4806 rm -rf conftest conftest.*
4807 exit 1
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
4814 then
4815 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4816 then
4817 echo_n= echo_c=
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4819 $as_echo "neither?" >&6; }
4820 else
4821 echo_n=-n echo_c=
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4823 $as_echo " -n" >&6; }
4825 else
4826 echo_n= echo_c='\c'
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
4837 else
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
4844 IFS=$as_save_IFS
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
4853 *GNU*)
4854 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4856 ac_count=0
4857 $as_echo_n 0123456789 >"conftest.in"
4858 while :
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
4874 done
4875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4876 esac
4878 $ac_path_GREP_found && break 3
4879 done
4880 done
4881 done
4882 IFS=$as_save_IFS
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
4886 else
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
4900 else
4901 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4902 then ac_cv_path_EGREP="$GREP -E"
4903 else
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
4910 IFS=$as_save_IFS
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
4919 *GNU*)
4920 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4922 ac_count=0
4923 $as_echo_n 0123456789 >"conftest.in"
4924 while :
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
4940 done
4941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4942 esac
4944 $ac_path_EGREP_found && break 3
4945 done
4946 done
4947 done
4948 IFS=$as_save_IFS
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
4952 else
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"
4965 then
4966 enable_probes=true
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
4975 else
4976 if test -n "$DTRACE"; then
4977 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
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
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
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; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5006 test -n "$DTRACE" && break
5007 done
5009 if test -z "$DTRACE"
5010 then
5011 if test "$do_probes" = "yes"
5012 then
5013 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5015 enable_probes=false
5017 ac_ext=c
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
5026 CPP=
5028 if test -z "$CPP"; then
5029 if ${ac_cv_prog_CPP+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 # Double quotes because CPP needs to be expanded
5033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5035 ac_preproc_ok=false
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. */
5046 #ifdef __STDC__
5047 # include <limits.h>
5048 #else
5049 # include <assert.h>
5050 #endif
5051 Syntax error
5052 _ACEOF
5053 if ac_fn_c_try_cpp "$LINENO"; then :
5055 else
5056 # Broken: fails on valid input.
5057 continue
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>
5066 _ACEOF
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5068 # Broken: success on invalid input.
5069 continue
5070 else
5071 # Passes both tests.
5072 ac_preproc_ok=:
5073 break
5075 rm -f conftest.err conftest.i conftest.$ac_ext
5077 done
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 :
5081 break
5084 done
5085 ac_cv_prog_CPP=$CPP
5088 CPP=$ac_cv_prog_CPP
5089 else
5090 ac_cv_prog_CPP=$CPP
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5093 $as_echo "$CPP" >&6; }
5094 ac_preproc_ok=false
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. */
5105 #ifdef __STDC__
5106 # include <limits.h>
5107 #else
5108 # include <assert.h>
5109 #endif
5110 Syntax error
5111 _ACEOF
5112 if ac_fn_c_try_cpp "$LINENO"; then :
5114 else
5115 # Broken: fails on valid input.
5116 continue
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>
5125 _ACEOF
5126 if ac_fn_c_try_cpp "$LINENO"; then :
5127 # Broken: success on invalid input.
5128 continue
5129 else
5130 # Passes both tests.
5131 ac_preproc_ok=:
5132 break
5134 rm -f conftest.err conftest.i conftest.$ac_ext
5136 done
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 :
5141 else
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; }
5148 ac_ext=c
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
5159 else
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 #include <stdlib.h>
5163 #include <stdarg.h>
5164 #include <string.h>
5165 #include <float.h>
5168 main ()
5172 return 0;
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"; then :
5176 ac_cv_header_stdc=yes
5177 else
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. */
5186 #include <string.h>
5188 _ACEOF
5189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190 $EGREP "memchr" >/dev/null 2>&1; then :
5192 else
5193 ac_cv_header_stdc=no
5195 rm -f conftest*
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. */
5203 #include <stdlib.h>
5205 _ACEOF
5206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5207 $EGREP "free" >/dev/null 2>&1; then :
5209 else
5210 ac_cv_header_stdc=no
5212 rm -f conftest*
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 :
5220 else
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 #include <ctype.h>
5224 #include <stdlib.h>
5225 #if ((' ' & 0x0FF) == 0x020)
5226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5228 #else
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))
5234 #endif
5236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5238 main ()
5240 int i;
5241 for (i = 0; i < 256; i++)
5242 if (XOR (islower (i), ISLOWER (i))
5243 || toupper (i) != TOUPPER (i))
5244 return 2;
5245 return 0;
5247 _ACEOF
5248 if ac_fn_c_try_run "$LINENO"; then :
5250 else
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
5270 do :
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
5277 _ACEOF
5281 done
5284 for ac_header in sys/sdt.h
5285 do :
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
5290 _ACEOF
5292 if $enable_probes = true
5293 then
5294 if test $target_os = kfreebsd
5295 then
5296 enable_probes=false
5297 elif test $target_os = freebsd
5298 then
5299 rm -f conftest.d conftest.h
5300 cat <<End-of-File >conftest.d
5301 provider eek {
5302 probe urk(int);
5304 End-of-File
5305 if dtrace -s conftest.d -h >/dev/null 2>&1
5306 then
5307 if test ! -f conftest.h
5308 then
5309 enable_probes=false
5310 if test "$do_probes" = "yes"
5311 then
5312 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5315 else
5316 enable_probes=false
5317 if test "$do_probes" = "yes"
5318 then
5319 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5325 else
5327 enable_probes=false
5328 if test "$do_probes" = "yes"
5329 then
5330 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5335 done
5338 if test "$enable_probes" = "true"
5339 then
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
5353 enable_avahi=true
5355 pkg_failed=no
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
5365 ac_status=$?
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
5370 else
5371 pkg_failed=yes
5373 else
5374 pkg_failed=untried
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
5382 ac_status=$?
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
5387 else
5388 pkg_failed=yes
5390 else
5391 pkg_failed=untried
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
5402 else
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`
5407 else
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
5413 enable_avahi=false
5414 elif test $pkg_failed = untried; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 enable_avahi=false
5418 else
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
5427 else
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. */
5436 #ifdef __cplusplus
5437 extern "C"
5438 #endif
5439 char avahi_client_new ();
5441 main ()
5443 return avahi_client_new ();
5445 return 0;
5447 _ACEOF
5448 if ac_fn_c_try_link "$LINENO"; then :
5449 ac_cv_lib_avahi_client_avahi_client_new=yes
5450 else
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"
5461 else
5462 enable_avahi=false
5467 for ac_header in avahi-client/publish.h
5468 do :
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
5473 _ACEOF
5475 else
5476 enable_avahi=false
5479 done
5481 for ac_header in avahi-common/alternative.h
5482 do :
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
5487 _ACEOF
5489 else
5490 enable_avahi=false
5493 done
5496 if test "$enable_avahi" = "true"
5497 then
5501 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5503 enable_discovery=true
5506 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5507 then
5508 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5510 if test "$enable_discovery" = "true"
5511 then
5513 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5521 enable_systemd=false
5522 if test "x$do_systemd" != "xno"; then :
5524 enable_systemd=true
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
5533 ac_status=$?
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
5538 else
5539 pkg_failed=yes
5541 else
5542 pkg_failed=untried
5544 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5546 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5547 enable_systemd=false
5548 else
5549 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5552 if test -z "$pcp_systemdunit_dir"
5553 then
5554 if test "$do_systemd" = "yes"
5555 then
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([])
5568 . ./VERSION.pcp
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
5605 # following values.
5607 _ACEOF
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
5617 case $ac_val in #(
5618 *${as_nl}*)
5619 case $ac_var in #(
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;} ;;
5622 esac
5623 case $ac_var in #(
5624 _ | IFS | as_nl) ;; #(
5625 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5626 *) { eval $ac_var=; unset $ac_var;} ;;
5627 esac ;;
5628 esac
5629 done
5631 (set) 2>&1 |
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 \.
5636 sed -n \
5637 "s/'/'\\\\''/g;
5638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5639 ;; #(
5641 # `set' quotes correctly as required by POSIX, so do not add quotes.
5642 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5644 esac |
5645 sort
5647 sed '
5648 /^ac_cv_env_/b end
5649 t clear
5650 :clear
5651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5652 t end
5653 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5654 :end' >>confcache
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"
5662 else
5663 case $cache_file in #(
5664 */* | ?:*)
5665 mv -f confcache "$cache_file"$$ &&
5666 mv -f "$cache_file"$$ "$cache_file" ;; #(
5668 mv -f confcache "$cache_file" ;;
5669 esac
5672 else
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;}
5677 rm -f confcache
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
5685 ac_libobjs=
5686 ac_ltlibobjs=
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'
5696 done
5697 LIBOBJS=$ac_libobjs
5699 LTLIBOBJS=$ac_ltlibobjs
5703 : "${CONFIG_STATUS=./config.status}"
5704 ac_write_fail=0
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;}
5709 as_write_fail=0
5710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5711 #! $SHELL
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.
5717 debug=false
5718 ac_cs_recheck=false
5719 ac_cs_silent=false
5721 SHELL=\${CONFIG_SHELL-$SHELL}
5722 export SHELL
5723 _ASEOF
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 :
5732 emulate sh
5733 NULLCMD=:
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
5738 else
5739 case `(set -o) 2>/dev/null` in #(
5740 *posix*) :
5741 set -o posix ;; #(
5742 *) :
5744 esac
5748 as_nl='
5750 export as_nl
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'
5764 else
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'
5768 else
5769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5770 as_echo_n_body='eval
5771 arg=$1;
5772 case $arg in #(
5773 *"$as_nl"*)
5774 expr "X$arg" : "X\\(.*\\)$as_nl";
5775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5776 esac;
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'
5782 export as_echo_body
5783 as_echo='sh -c $as_echo_body as_echo'
5786 # The user is always right.
5787 if test "${PATH_SEPARATOR+set}" != set; then
5788 PATH_SEPARATOR=:
5789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5791 PATH_SEPARATOR=';'
5796 # IFS
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.)
5801 IFS=" "" $as_nl"
5803 # Find who we are. Look in the path if we contain no directory separator.
5804 as_myself=
5805 case $0 in #((
5806 *[\\/]* ) as_myself=$0 ;;
5807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5813 done
5814 IFS=$as_save_IFS
5817 esac
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
5821 as_myself=$0
5823 if test ! -f "$as_myself"; then
5824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5825 exit 1
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 || :
5835 done
5836 PS1='$ '
5837 PS2='> '
5838 PS4='+ '
5840 # NLS nuisances.
5841 LC_ALL=C
5842 export LC_ALL
5843 LANGUAGE=C
5844 export LANGUAGE
5846 # CDPATH.
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.
5855 as_fn_error ()
5857 as_status=$1; test $as_status -eq 0 && as_status=1
5858 if test "$4"; then
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
5864 } # as_fn_error
5867 # as_fn_set_status STATUS
5868 # -----------------------
5869 # Set $? to STATUS, without forking.
5870 as_fn_set_status ()
5872 return $1
5873 } # as_fn_set_status
5875 # as_fn_exit STATUS
5876 # -----------------
5877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5878 as_fn_exit ()
5880 set +e
5881 as_fn_set_status $1
5882 exit $1
5883 } # as_fn_exit
5885 # as_fn_unset VAR
5886 # ---------------
5887 # Portably unset VAR.
5888 as_fn_unset ()
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
5898 # implementations.
5899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5900 eval 'as_fn_append ()
5902 eval $1+=\$2
5904 else
5905 as_fn_append ()
5907 eval $1=\$$1\$2
5909 fi # 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 ()
5919 as_val=$(( $* ))
5921 else
5922 as_fn_arith ()
5924 as_val=`expr "$@" || test $? -eq 1`
5926 fi # as_fn_arith
5929 if expr a : '\(a\)' >/dev/null 2>&1 &&
5930 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5931 as_expr=expr
5932 else
5933 as_expr=false
5936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5937 as_basename=basename
5938 else
5939 as_basename=false
5942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5943 as_dirname=dirname
5944 else
5945 as_dirname=false
5948 as_me=`$as_basename -- "$0" ||
5949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5950 X"$0" : 'X\(//\)$' \| \
5951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5952 $as_echo X/"$0" |
5953 sed '/^.*\/\([^/][^/]*\)\/*$/{
5954 s//\1/
5957 /^X\/\(\/\/\)$/{
5958 s//\1/
5961 /^X\/\(\/\).*/{
5962 s//\1/
5965 s/.*/./; q'`
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 #(((((
5976 -n*)
5977 case `echo 'xy\c'` in
5978 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5979 xy) ECHO_C='\c';;
5980 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5981 ECHO_T=' ';;
5982 esac;;
5984 ECHO_N='-n';;
5985 esac
5987 rm -f conf$$ conf$$.exe conf$$.file
5988 if test -d conf$$.dir; then
5989 rm -f conf$$.dir/conf$$.file
5990 else
5991 rm -f conf$$.dir
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
5996 as_ln_s='ln -s'
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 ||
6002 as_ln_s='cp -pR'
6003 elif ln conf$$.file conf$$ 2>/dev/null; then
6004 as_ln_s=ln
6005 else
6006 as_ln_s='cp -pR'
6008 else
6009 as_ln_s='cp -pR'
6011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6012 rmdir conf$$.dir 2>/dev/null
6015 # as_fn_mkdir_p
6016 # -------------
6017 # Create "$as_dir" as a directory, including parents if necessary.
6018 as_fn_mkdir_p ()
6021 case $as_dir in #(
6022 -*) as_dir=./$as_dir;;
6023 esac
6024 test -d "$as_dir" || eval $as_mkdir_p || {
6025 as_dirs=
6026 while :; do
6027 case $as_dir in #(
6028 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6029 *) as_qdir=$as_dir;;
6030 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6039 s//\1/
6042 /^X\(\/\/\)[^/].*/{
6043 s//\1/
6046 /^X\(\/\/\)$/{
6047 s//\1/
6050 /^X\(\/\).*/{
6051 s//\1/
6054 s/.*/./; q'`
6055 test -d "$as_dir" && break
6056 done
6057 test -z "$as_dirs" || eval "mkdir $as_dirs"
6058 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6061 } # as_fn_mkdir_p
6062 if mkdir -p . 2>/dev/null; then
6063 as_mkdir_p='mkdir -p "$as_dir"'
6064 else
6065 test -d ./-p && rmdir ./-p
6066 as_mkdir_p=false
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
6077 as_test_x='test -x'
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'"
6087 exec 6>&1
6088 ## ----------------------------------- ##
6089 ## Main body of $CONFIG_STATUS script. ##
6090 ## ----------------------------------- ##
6091 _ASEOF
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.
6098 ac_log="
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
6106 $ $0 $@
6108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6111 _ACEOF
6113 case $ac_config_files in *"
6114 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6115 esac
6117 case $ac_config_headers in *"
6118 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6119 esac
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"
6127 _ACEOF
6129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6130 ac_cs_usage="\
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:
6150 $config_files
6152 Configuration headers:
6153 $config_headers
6155 Report bugs to the package provider."
6157 _ACEOF
6158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6159 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6160 ac_cs_version="\\
6161 config.status
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."
6169 ac_pwd='$ac_pwd'
6170 srcdir='$srcdir'
6171 test -n "\$AWK" || AWK=awk
6172 _ACEOF
6174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6175 # The default lists apply if the user does not specify any file.
6176 ac_need_defaults=:
6177 while test $# != 0
6179 case $1 in
6180 --*=?*)
6181 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6182 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6183 ac_shift=:
6185 --*=)
6186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6187 ac_optarg=
6188 ac_shift=:
6191 ac_option=$1
6192 ac_optarg=$2
6193 ac_shift=shift
6195 esac
6197 case $ac_option in
6198 # Handling of the options.
6199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6200 ac_cs_recheck=: ;;
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 )
6206 debug=: ;;
6207 --file | --fil | --fi | --f )
6208 $ac_shift
6209 case $ac_optarg in
6210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6211 '') as_fn_error $? "missing file argument" ;;
6212 esac
6213 as_fn_append CONFIG_FILES " '$ac_optarg'"
6214 ac_need_defaults=false;;
6215 --header | --heade | --head | --hea )
6216 $ac_shift
6217 case $ac_optarg in
6218 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6219 esac
6220 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6221 ac_need_defaults=false;;
6222 --he | --h)
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)
6230 ac_cs_silent=: ;;
6232 # This is an error.
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 ;;
6239 esac
6240 shift
6241 done
6243 ac_configure_extra_args=
6245 if $ac_cs_silent; then
6246 exec 6>/dev/null
6247 ac_configure_extra_args="$ac_configure_extra_args --silent"
6250 _ACEOF
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
6254 shift
6255 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6256 CONFIG_SHELL='$SHELL'
6257 export CONFIG_SHELL
6258 exec "\$@"
6261 _ACEOF
6262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6263 exec 5>>config.log
6265 echo
6266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6267 ## Running $as_me. ##
6268 _ASBOX
6269 $as_echo "$ac_log"
6270 } >&5
6272 _ACEOF
6273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6274 _ACEOF
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;;
6287 esac
6288 done
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'.
6306 $debug ||
6308 tmp= ac_tmp=
6309 trap 'exit_status=$?
6310 : "${ac_tmp:=$tmp}"
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` &&
6319 test -d "$tmp"
6320 } ||
6322 tmp=./conf$$-$RANDOM
6323 (umask 077 && mkdir "$tmp")
6324 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6325 ac_tmp=$tmp
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
6342 ac_cs_awk_cr='\\r'
6343 else
6344 ac_cs_awk_cr=$ac_cr
6347 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6348 _ACEOF
6352 echo "cat >conf$$subs.awk <<_ACEOF" &&
6353 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6354 echo "_ACEOF"
6355 } >conf$$subs.sh ||
6356 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6357 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6358 ac_delim='%!_!# '
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
6365 break
6366 elif $ac_last_try; then
6367 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6368 else
6369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6371 done
6372 rm -f conf$$subs.sh
6374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6375 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6376 _ACEOF
6377 sed -n '
6379 s/^/S["/; s/!.*/"]=/
6382 s/^[^!]*!//
6383 :repl
6384 t repl
6385 s/'"$ac_delim"'$//
6386 t delim
6389 s/\(.\{148\}\)..*/\1/
6390 t more1
6391 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6394 b repl
6395 :more1
6396 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6399 s/.\{148\}//
6400 t nl
6401 :delim
6403 s/\(.\{148\}\)..*/\1/
6404 t more2
6405 s/["\\]/\\&/g; s/^/"/; s/$/"/
6408 :more2
6409 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6412 s/.\{148\}//
6413 t delim
6414 ' <conf$$subs.awk | sed '
6415 /^[^""]/{
6417 s/\n//
6419 ' >>$CONFIG_STATUS || ac_write_fail=1
6420 rm -f conf$$subs.awk
6421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6422 _ACAWK
6423 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6424 for (key in S) S_is_set[key] = 1
6425 FS = "\a"
6429 line = $ 0
6430 nfields = split(line, field, "@")
6431 substed = 0
6432 len = length(field[1])
6433 for (i = 2; i < nfields; i++) {
6434 key = field[i]
6435 keylen = length(key)
6436 if (S_is_set[key]) {
6437 value = S[key]
6438 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6439 len += length(value) + length(field[++i])
6440 substed = 1
6441 } else
6442 len += 1 + keylen
6445 print line
6448 _ACAWK
6449 _ACEOF
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"
6453 else
6455 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6456 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6457 _ACEOF
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[ ]*=[ ]*/{
6466 s///
6467 s/^/:/
6468 s/[ ]*$/:/
6469 s/:\$(srcdir):/:/g
6470 s/:\${srcdir}:/:/g
6471 s/:@srcdir@:/:/g
6472 s/^:*//
6473 s/:*$//
6475 s/\(=[ ]*\).*/\1/
6477 s/\n//
6478 s/^[^=]*=[ ]*$//
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 ||
6490 BEGIN {
6491 _ACEOF
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.
6499 ac_delim='%!_!# '
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
6503 break
6504 elif $ac_last_try; then
6505 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6506 else
6507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6509 done
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]*
6516 sed -n '
6517 s/.\{148\}/&'"$ac_delim"'/g
6518 t rset
6519 :rset
6520 s/^[ ]*#[ ]*define[ ][ ]*/ /
6521 t def
6523 :def
6524 s/\\$//
6525 t bsnl
6526 s/["\\]/\\&/g
6527 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6528 D["\1"]=" \3"/p
6529 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6531 :bsnl
6532 s/["\\]/\\&/g
6533 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6534 D["\1"]=" \3\\\\\\n"\\/p
6535 t cont
6536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6537 t cont
6539 :cont
6541 s/.\{148\}/&'"$ac_delim"'/g
6542 t clear
6543 :clear
6544 s/\\$//
6545 t bsnlc
6546 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6548 :bsnlc
6549 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6550 b cont
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
6557 FS = "\a"
6559 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6560 line = \$ 0
6561 split(line, arg, " ")
6562 if (arg[1] == "#") {
6563 defundef = arg[2]
6564 mac1 = arg[3]
6565 } else {
6566 defundef = substr(arg[1], 2)
6567 mac1 = arg[2]
6569 split(mac1, mac2, "(") #)
6570 macro = mac2[1]
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]
6575 next
6576 } else {
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, "*/"
6582 next
6586 { print }
6587 _ACAWK
6588 _ACEOF
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 "
6595 shift
6596 for ac_tag
6598 case $ac_tag in
6599 :[FHLC]) ac_mode=$ac_tag; continue;;
6600 esac
6601 case $ac_mode$ac_tag in
6602 :[FHL]*:*);;
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;;
6606 esac
6607 ac_save_IFS=$IFS
6608 IFS=:
6609 set x $ac_tag
6610 IFS=$ac_save_IFS
6611 shift
6612 ac_file=$1
6613 shift
6615 case $ac_mode in
6616 :L) ac_source=$1;;
6617 :[FH])
6618 ac_file_inputs=
6619 for ac_f
6621 case $ac_f 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 `:'.
6626 test -f "$ac_f" ||
6627 case $ac_f in
6628 [\\/$]*) false;;
6629 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6630 esac ||
6631 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6632 esac
6633 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6634 as_fn_append ac_file_inputs " '$ac_f'"
6635 done
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'
6642 `' by configure.'
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;;
6654 esac
6656 case $ac_tag in
6657 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6659 esac
6661 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6670 s//\1/
6673 /^X\(\/\/\)[^/].*/{
6674 s//\1/
6677 /^X\(\/\/\)$/{
6678 s//\1/
6681 /^X\(\/\).*/{
6682 s//\1/
6685 s/.*/./; q'`
6686 as_dir="$ac_dir"; as_fn_mkdir_p
6687 ac_builddir=.
6689 case "$ac_dir" in
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/ ;;
6698 esac ;;
6699 esac
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
6705 case $srcdir in
6706 .) # We are building in place.
6707 ac_srcdir=.
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 ;;
6714 *) # Relative name.
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 ;;
6718 esac
6719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6722 case $ac_mode in
6725 # CONFIG_FILE
6728 _ACEOF
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=
6734 ac_sed_dataroot='
6735 /datarootdir/ {
6739 /@datadir@/p
6740 /@docdir@/p
6741 /@infodir@/p
6742 /@localedir@/p
6743 /@mandir@/p'
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;}
6749 _ACEOF
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' ;;
6758 esac
6759 _ACEOF
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
6766 $extrasub
6767 _ACEOF
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"
6796 case $ac_file in
6797 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6798 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6799 esac \
6800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6804 # CONFIG_HEADER
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;}
6815 else
6816 rm -f "$ac_file"
6817 mv "$ac_tmp/config.h" "$ac_file" \
6818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6820 else
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
6828 esac
6830 done # for ac_tag
6833 as_fn_exit 0
6834 _ACEOF
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
6850 ac_cs_success=:
6851 ac_config_status_args=
6852 test "$silent" = yes &&
6853 ac_config_status_args="$ac_config_status_args --quiet"
6854 exec 5>/dev/null
6855 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6856 exec 5>>config.log
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;}
6867 for ac_prog in git
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
6875 else
6876 if test -n "$GIT"; then
6877 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6882 IFS=$as_save_IFS
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
6888 break 2
6890 done
6891 done
6892 IFS=$as_save_IFS
6896 GIT=$ac_cv_prog_GIT
6897 if test -n "$GIT"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6899 $as_echo "$GIT" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6906 test -n "$GIT" && break
6907 done
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
6919 else
6920 if test -n "$PYTHON"; then
6921 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6926 IFS=$as_save_IFS
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
6932 break 2
6934 done
6935 done
6936 IFS=$as_save_IFS
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; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6950 test -n "$PYTHON" && break
6951 done
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
6963 else
6964 if test -n "$PYTHON3"; then
6965 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6970 IFS=$as_save_IFS
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
6976 break 2
6978 done
6979 done
6980 IFS=$as_save_IFS
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; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6994 test -n "$PYTHON3" && break
6995 done
6999 enable_python2=false
7000 if test "x$do_python" != "xno"; then :
7002 enable_python2=true
7003 if test -z "$PYTHON"
7004 then
7005 enable_python2=false
7006 else
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
7023 do :
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
7029 _ACEOF
7031 else
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
7039 done
7043 if test "$do_python" != "check" -a "$enable_python2" != "true"
7044 then
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 :
7054 enable_python3=true
7055 if test -z "$PYTHON3"
7056 then
7057 enable_python3=false
7058 else
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
7075 do :
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
7081 _ACEOF
7083 else
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
7091 done
7095 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7096 then
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
7106 ans=$have_python
7107 echo "cross-compile -> \"$ans\"" >&5
7108 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7109 then
7110 have_python=true
7111 else
7112 have_python=false
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"
7120 then
7121 pcp_python_prog=$PYTHON3
7122 elif test "$enable_python2" = "true"
7123 then
7124 pcp_python_prog=$PYTHON
7125 else
7126 pcp_python_prog=""
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7132 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7133 if test -n ""
7134 then
7135 txt=""
7136 else
7137 txt="import jsonpointer"
7139 $pcp_python_prog -c 'import sys;
7140 '"$txt" >>config.log 2>&1
7141 if test "$?" = 0
7142 then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7145 eval have_python_jsonpointer=true
7146 else
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; }
7155 if test -n ""
7156 then
7157 txt=""
7158 else
7159 txt="import six"
7161 $pcp_python_prog -c 'import sys;
7162 '"$txt" >>config.log 2>&1
7163 if test "$?" = 0
7164 then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7166 $as_echo "yes" >&6; }
7167 eval have_python_six=true
7168 else
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; }
7178 pmda_json=false
7179 if test "x$do_pmdajson" = "xyes"; then :
7180 pmda_json=true
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
7193 for ac_prog in perl
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
7201 else
7202 if test -n "$PERL"; then
7203 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7208 IFS=$as_save_IFS
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
7214 break 2
7216 done
7217 done
7218 IFS=$as_save_IFS
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; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7232 test -n "$PERL" && break
7233 done
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
7240 ans=$have_perl
7241 echo "cross-compile -> \"$ans\"" >&5
7242 elif test -n "$PERL"
7243 then
7244 pcp_perl_prog=$PERL
7245 have_perl=true
7246 else
7247 pcp_perl_prog=""
7248 have_perl=false
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; }
7257 pmda_snmp=false
7258 if test "$have_perl" = true
7259 then
7260 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7261 then
7262 pmda_snmp=true
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; }
7273 pmda_mysql=false
7274 if test "$have_perl" = true
7275 then
7276 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7277 then
7278 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7279 then
7280 pmda_mysql=true
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
7294 then
7295 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7296 then
7297 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7298 then
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
7313 then
7314 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7315 then
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; }
7327 pmda_nginx=false
7328 if test "$have_perl" = true
7329 then
7330 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7331 then
7332 pmda_nginx=true
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; }
7343 pmda_activemq=false
7344 if test "$have_perl" = true
7345 then
7346 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7347 then
7348 pmda_activemq=true
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
7357 qmake=$QMAKE
7358 enable_qt=false
7359 qt_release=release
7360 if test "x$do_qt" != "xno"; then :
7362 enable_qt=true
7364 if test -z "$QMAKE"
7365 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
7374 else
7375 case $QMAKE in
7376 [\\/]* | ?:[\\/]*)
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
7384 IFS=$as_save_IFS
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
7390 break 2
7392 done
7393 done
7394 IFS=$as_save_IFS
7397 esac
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; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7409 test -n "$QMAKE" && break
7410 done
7412 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7414 qmake=$QMAKE
7415 if test -z "$QMAKE"
7416 then
7417 enable_qt=false
7418 else
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.
7427 enable_qt=false
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.
7432 enable_qt=false
7436 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7437 then
7438 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7439 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7440 then
7441 enable_qt=false
7442 test "$do_qt" != "check" && \
7443 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7444 elif test "$do_qt" = "debug"
7445 then
7446 qt_release=debug
7447 enable_qt=true
7455 if test -z "$MAKE"
7456 then
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
7463 else
7464 case $MAKE in
7465 [\\/]* | ?:[\\/]*)
7466 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7472 IFS=$as_save_IFS
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
7478 break 2
7480 done
7481 done
7482 IFS=$as_save_IFS
7485 esac
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; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7497 if test -z "$MAKE"
7498 then
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
7504 if test -x $f
7505 then
7506 MAKE=$f
7507 break
7509 done
7510 if test $f = nowhere
7511 then
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"
7515 then
7516 echo
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.*
7521 exit 1
7522 else
7523 MAKE=/usr/bin/make
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7527 $as_echo "$MAKE" >&6; }
7530 make=$MAKE
7533 if test -z "$CPP"; then
7534 ac_ext=c
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
7543 CPP=
7545 if test -z "$CPP"; then
7546 if ${ac_cv_prog_CPP+:} false; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 # Double quotes because CPP needs to be expanded
7550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7552 ac_preproc_ok=false
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. */
7563 #ifdef __STDC__
7564 # include <limits.h>
7565 #else
7566 # include <assert.h>
7567 #endif
7568 Syntax error
7569 _ACEOF
7570 if ac_fn_c_try_cpp "$LINENO"; then :
7572 else
7573 # Broken: fails on valid input.
7574 continue
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>
7583 _ACEOF
7584 if ac_fn_c_try_cpp "$LINENO"; then :
7585 # Broken: success on invalid input.
7586 continue
7587 else
7588 # Passes both tests.
7589 ac_preproc_ok=:
7590 break
7592 rm -f conftest.err conftest.i conftest.$ac_ext
7594 done
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 :
7598 break
7601 done
7602 ac_cv_prog_CPP=$CPP
7605 CPP=$ac_cv_prog_CPP
7606 else
7607 ac_cv_prog_CPP=$CPP
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7610 $as_echo "$CPP" >&6; }
7611 ac_preproc_ok=false
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. */
7622 #ifdef __STDC__
7623 # include <limits.h>
7624 #else
7625 # include <assert.h>
7626 #endif
7627 Syntax error
7628 _ACEOF
7629 if ac_fn_c_try_cpp "$LINENO"; then :
7631 else
7632 # Broken: fails on valid input.
7633 continue
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>
7642 _ACEOF
7643 if ac_fn_c_try_cpp "$LINENO"; then :
7644 # Broken: success on invalid input.
7645 continue
7646 else
7647 # Passes both tests.
7648 ac_preproc_ok=:
7649 break
7651 rm -f conftest.err conftest.i conftest.$ac_ext
7653 done
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 :
7658 else
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; }
7665 ac_ext=c
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
7672 cpp=$CPP
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
7682 else
7683 case $LD in
7684 [\\/]* | ?:[\\/]*)
7685 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7691 IFS=$as_save_IFS
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
7697 break 2
7699 done
7700 done
7701 IFS=$as_save_IFS
7703 test -z "$ac_cv_path_LD" && ac_cv_path_LD="/usr/bin/ld"
7705 esac
7707 LD=$ac_cv_path_LD
7708 if test -n "$LD"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7710 $as_echo "$LD" >&6; }
7711 else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7718 ld=$LD
7721 if test -z "$PCP_USER_INSTALL" ; then
7722 pcp_user_install=root
7723 else
7724 pcp_user_install="$PCP_USER_INSTALL"
7727 if test -z "$PCP_GROUP_INSTALL" ; then
7728 case "$target_os"
7730 darwin|freebsd|netbsd)
7731 pcp_group_install=wheel
7734 pcp_group_install=root
7736 esac
7737 else
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
7751 else
7752 case $TAR in
7753 [\\/]* | ?:[\\/]*)
7754 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7760 IFS=$as_save_IFS
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
7766 break 2
7768 done
7769 done
7770 IFS=$as_save_IFS
7773 esac
7775 TAR=$ac_cv_path_TAR
7776 if test -n "$TAR"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7778 $as_echo "$TAR" >&6; }
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7785 test -n "$TAR" && break
7786 done
7787 test -n "$TAR" || TAR="tar"
7790 if test $target_os = darwin -a -x /usr/bin/gnutar
7791 then
7792 TAR=/usr/bin/gnutar
7794 tar=$TAR
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
7804 else
7805 case $ZIP in
7806 [\\/]* | ?:[\\/]*)
7807 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7813 IFS=$as_save_IFS
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
7819 break 2
7821 done
7822 done
7823 IFS=$as_save_IFS
7825 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
7827 esac
7829 ZIP=$ac_cv_path_ZIP
7830 if test -n "$ZIP"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7832 $as_echo "$ZIP" >&6; }
7833 else
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
7843 gzip=$ZIP
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
7854 else
7855 case $BZIP2 in
7856 [\\/]* | ?:[\\/]*)
7857 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7863 IFS=$as_save_IFS
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
7869 break 2
7871 done
7872 done
7873 IFS=$as_save_IFS
7875 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
7877 esac
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; }
7883 else
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
7893 bzip2=$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
7904 else
7905 case $LZMA in
7906 [\\/]* | ?:[\\/]*)
7907 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7913 IFS=$as_save_IFS
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
7919 break 2
7921 done
7922 done
7923 IFS=$as_save_IFS
7925 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
7927 esac
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; }
7933 else
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
7943 lzma=$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
7954 else
7955 case $XZ in
7956 [\\/]* | ?:[\\/]*)
7957 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7963 IFS=$as_save_IFS
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
7969 break 2
7971 done
7972 done
7973 IFS=$as_save_IFS
7975 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
7977 esac
7979 XZ=$ac_cv_path_XZ
7980 if test -n "$XZ"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
7982 $as_echo "$XZ" >&6; }
7983 else
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
7993 xz=$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"
8000 then
8001 if test $target_os = darwin
8002 then
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
8009 then # Darwin 6.x
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
8014 then # Darwin 7.x
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
8018 else
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;}
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo " no" >&6; }
8028 else
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
8040 else
8041 case $HDIUTIL in
8042 [\\/]* | ?:[\\/]*)
8043 ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8049 IFS=$as_save_IFS
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
8055 break 2
8057 done
8058 done
8059 IFS=$as_save_IFS
8062 esac
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; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8075 hdiutil=$HDIUTIL
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
8085 else
8086 case $MKINSTALLP in
8087 [\\/]* | ?:[\\/]*)
8088 ac_cv_path_MKINSTALLP="$MKINSTALLP" # Let the user override the test with a path.
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
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
8100 break 2
8102 done
8103 done
8104 IFS=$as_save_IFS
8107 esac
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; }
8113 else
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
8130 else
8131 case $PKGMK in
8132 [\\/]* | ?:[\\/]*)
8133 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8139 IFS=$as_save_IFS
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
8145 break 2
8147 done
8148 done
8149 IFS=$as_save_IFS
8152 esac
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; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8165 pkgmk=$PKGMK
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
8175 else
8176 case $DLLTOOL in
8177 [\\/]* | ?:[\\/]*)
8178 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8184 IFS=$as_save_IFS
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
8190 break 2
8192 done
8193 done
8194 IFS=$as_save_IFS
8197 esac
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; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8210 dlltool=$DLLTOOL
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
8220 else
8221 case $RPMBUILD in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8229 IFS=$as_save_IFS
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
8235 break 2
8237 done
8238 done
8239 IFS=$as_save_IFS
8242 esac
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; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 test $target_distro = slackware && RPMBUILD=''
8256 rpmbuild=$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
8266 else
8267 case $RPM in
8268 [\\/]* | ?:[\\/]*)
8269 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8275 IFS=$as_save_IFS
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
8281 break 2
8283 done
8284 done
8285 IFS=$as_save_IFS
8288 esac
8290 RPM=$ac_cv_path_RPM
8291 if test -n "$RPM"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8293 $as_echo "$RPM" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8301 test $target_distro = slackware && RPM=''
8302 rpm=$RPM
8305 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8306 then
8307 rpmprog=$RPMBUILD
8308 else
8309 rpmprog=$RPM
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
8320 else
8321 case $POD2MAN in
8322 [\\/]* | ?:[\\/]*)
8323 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8329 IFS=$as_save_IFS
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
8335 break 2
8337 done
8338 done
8339 IFS=$as_save_IFS
8342 esac
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; }
8348 else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8355 pod2man=$POD2MAN
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
8361 if test $? -eq 0
8362 then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8364 $as_echo " yes" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo " no" >&6; }
8368 echo
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.*
8373 exit 1
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
8382 else
8383 case $TRUEPROG in
8384 [\\/]* | ?:[\\/]*)
8385 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8391 IFS=$as_save_IFS
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
8397 break 2
8399 done
8400 done
8401 IFS=$as_save_IFS
8404 esac
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; }
8410 else
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
8424 else
8425 case $MAKEDEPEND in
8426 [\\/]* | ?:[\\/]*)
8427 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8433 IFS=$as_save_IFS
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
8439 break 2
8441 done
8442 done
8443 IFS=$as_save_IFS
8445 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8447 esac
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; }
8453 else
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
8470 else
8471 case $MD5SUM in
8472 [\\/]* | ?:[\\/]*)
8473 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8479 IFS=$as_save_IFS
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
8485 break 2
8487 done
8488 done
8489 IFS=$as_save_IFS
8491 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8493 esac
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; }
8499 else
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8506 md5sum=$MD5SUM
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
8516 else
8517 case $DPKG in
8518 [\\/]* | ?:[\\/]*)
8519 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8525 IFS=$as_save_IFS
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
8531 break 2
8533 done
8534 done
8535 IFS=$as_save_IFS
8538 esac
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; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8551 dpkg=$DKPG
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
8561 else
8562 case $MAKEPKG in
8563 [\\/]* | ?:[\\/]*)
8564 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8570 IFS=$as_save_IFS
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
8576 break 2
8578 done
8579 done
8580 IFS=$as_save_IFS
8583 esac
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; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 makepkg=$MAKEPKG
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
8605 else
8606 case $PUBLICAN in
8607 [\\/]* | ?:[\\/]*)
8608 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8614 IFS=$as_save_IFS
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
8620 break 2
8622 done
8623 done
8624 IFS=$as_save_IFS
8627 esac
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; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8639 publican=$PUBLICAN
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
8647 else
8648 case $DBLATEX in
8649 [\\/]* | ?:[\\/]*)
8650 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8656 IFS=$as_save_IFS
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
8662 break 2
8664 done
8665 done
8666 IFS=$as_save_IFS
8669 esac
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; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8681 dblatex=$DBLATEX
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
8689 else
8690 case $XMLTO in
8691 [\\/]* | ?:[\\/]*)
8692 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8698 IFS=$as_save_IFS
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
8704 break 2
8706 done
8707 done
8708 IFS=$as_save_IFS
8711 esac
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; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8723 xmlto=$XMLTO
8726 book_toolchain=""
8727 if test "$do_books" = "check" -o "$do_books" = "yes"
8728 then
8729 if test "$BOOK_TOOLCHAIN" != ""
8730 then
8731 book_toolchain=$BOOK_TOOLCHAIN
8732 elif test "$DBLATEX" != ""
8733 then
8734 book_toolchain=dblatex
8735 elif test "$PUBLICAN" != ""
8736 then
8737 book_toolchain=publican
8738 elif test "$XMLTO" != ""
8739 then
8740 book_toolchain=xmlto
8741 elif test "$do_books" = "yes"
8742 then
8743 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
8748 book_brand="common"
8749 if test "$do_books_brand" != ""
8750 then
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; }
8757 LN_S=$as_ln_s
8758 if test "$LN_S" = "ln -s"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8760 $as_echo "yes" >&6; }
8761 else
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
8767 as_ln_s=/bin/true
8770 if test -d /proc
8771 then
8772 test -f /proc/stat || mount /proc >/dev/null 2>&1
8775 if test -n "$PROCPS"
8776 then
8777 pcp_ps_prog="$PROCPS"
8778 else
8779 pcp_ps_prog=ps
8783 if test $target_os = mingw
8784 then
8785 pcp_syslog_prog=pcp-eventlog
8786 else
8787 pcp_syslog_prog=logger
8791 grep=grep
8792 if test $target_os = solaris
8793 then
8794 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/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
8801 ans=$have_procfs
8802 echo "cross-compile -> \"$ans\"" >&5
8803 elif test -d /proc
8804 then
8805 have_procfs=true
8806 else
8807 have_procfs=false
8809 if $have_procfs
8810 then
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
8816 else
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8821 ac_header_dirent=no
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
8828 else
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 #include <sys/types.h>
8832 #include <$ac_hdr>
8835 main ()
8837 if ((DIR *) 0)
8838 return 0;
8840 return 0;
8842 _ACEOF
8843 if ac_fn_c_try_compile "$LINENO"; then :
8844 eval "$as_ac_Header=yes"
8845 else
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
8856 _ACEOF
8858 ac_header_dirent=$ac_hdr; break
8861 done
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
8868 else
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. */
8876 #ifdef __cplusplus
8877 extern "C"
8878 #endif
8879 char opendir ();
8881 main ()
8883 return opendir ();
8885 return 0;
8887 _ACEOF
8888 for ac_lib in '' dir; do
8889 if test -z "$ac_lib"; then
8890 ac_res="none required"
8891 else
8892 ac_res=-l$ac_lib
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 \
8899 conftest$ac_exeext
8900 if ${ac_cv_search_opendir+:} false; then :
8901 break
8903 done
8904 if ${ac_cv_search_opendir+:} false; then :
8906 else
8907 ac_cv_search_opendir=no
8909 rm conftest.$ac_ext
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"
8920 else
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
8925 else
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. */
8933 #ifdef __cplusplus
8934 extern "C"
8935 #endif
8936 char opendir ();
8938 main ()
8940 return opendir ();
8942 return 0;
8944 _ACEOF
8945 for ac_lib in '' x; do
8946 if test -z "$ac_lib"; then
8947 ac_res="none required"
8948 else
8949 ac_res=-l$ac_lib
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 \
8956 conftest$ac_exeext
8957 if ${ac_cv_search_opendir+:} false; then :
8958 break
8960 done
8961 if ${ac_cv_search_opendir+:} false; then :
8963 else
8964 ac_cv_search_opendir=no
8966 rm conftest.$ac_ext
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
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #include <stdlib.h>
8987 #include <stdarg.h>
8988 #include <string.h>
8989 #include <float.h>
8992 main ()
8996 return 0;
8998 _ACEOF
8999 if ac_fn_c_try_compile "$LINENO"; then :
9000 ac_cv_header_stdc=yes
9001 else
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. */
9010 #include <string.h>
9012 _ACEOF
9013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9014 $EGREP "memchr" >/dev/null 2>&1; then :
9016 else
9017 ac_cv_header_stdc=no
9019 rm -f conftest*
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. */
9027 #include <stdlib.h>
9029 _ACEOF
9030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9031 $EGREP "free" >/dev/null 2>&1; then :
9033 else
9034 ac_cv_header_stdc=no
9036 rm -f conftest*
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 :
9044 else
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h. */
9047 #include <ctype.h>
9048 #include <stdlib.h>
9049 #if ((' ' & 0x0FF) == 0x020)
9050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9052 #else
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))
9058 #endif
9060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9062 main ()
9064 int i;
9065 for (i = 0; i < 256; i++)
9066 if (XOR (islower (i), ISLOWER (i))
9067 || toupper (i) != TOUPPER (i))
9068 return 2;
9069 return 0;
9071 _ACEOF
9072 if ac_fn_c_try_run "$LINENO"; then :
9074 else
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
9095 else
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 #include <sys/types.h>
9099 #include <sys/wait.h>
9100 #ifndef WEXITSTATUS
9101 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9102 #endif
9103 #ifndef WIFEXITED
9104 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9105 #endif
9108 main ()
9110 int s;
9111 wait (&s);
9112 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9114 return 0;
9116 _ACEOF
9117 if ac_fn_c_try_compile "$LINENO"; then :
9118 ac_cv_header_sys_wait_h=yes
9119 else
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
9133 do :
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
9139 _ACEOF
9143 done
9145 for ac_header in unistd.h stddef.h sched.h dlfcn.h dl.h
9146 do :
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
9152 _ACEOF
9156 done
9158 for ac_header in sys/time.h sys/times.h
9159 do :
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
9165 _ACEOF
9169 done
9171 for ac_header in sys/resource.h sys/prctl.h
9172 do :
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
9178 _ACEOF
9182 done
9184 for ac_header in sys/sysinfo.h sys/systeminfo.h
9185 do :
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
9191 _ACEOF
9195 done
9197 for ac_header in endian.h standards.h sys/byteorder.h
9198 do :
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
9204 _ACEOF
9208 done
9210 for ac_header in libgen.h sys/param.h sys/mman.h sys/un.h
9211 do :
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
9217 _ACEOF
9221 done
9223 for ac_header in values.h stdint.h ieeefp.h math.h
9224 do :
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
9230 _ACEOF
9234 done
9236 for ac_header in pwd.h grp.h regex.h sys/wait.h
9237 do :
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
9243 _ACEOF
9247 done
9249 for ac_header in termio.h termios.h sys/termios.h sys/ioctl.h sys/socket.h
9250 do :
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
9256 _ACEOF
9260 done
9262 for ac_header in netdb.h
9263 do :
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
9268 _ACEOF
9272 done
9274 if test $target_os = darwin
9275 then
9276 for ac_header in net/if.h
9277 do :
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
9284 _ACEOF
9288 done
9290 else
9291 for ac_header in net/if.h
9292 do :
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
9297 _ACEOF
9301 done
9304 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9305 do :
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
9311 _ACEOF
9315 done
9317 for ac_header in windows.h winsock2.h ws2tcpip.h
9318 do :
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
9324 _ACEOF
9328 done
9330 for ac_header in execinfo.h bits/wordsize.h
9331 do :
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
9337 _ACEOF
9341 done
9343 for ac_header in iptypes.h
9344 do :
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
9350 _ACEOF
9354 done
9356 for ac_header in iphlpapi.h
9357 do :
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
9363 _ACEOF
9367 done
9369 for ac_header in fts.h libzfs.h
9370 do :
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
9376 _ACEOF
9380 done
9382 for ac_header in sys/statvfs.h sys/statfs.h sys/mount.h
9383 do :
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
9389 _ACEOF
9393 done
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>
9404 main ()
9409 return 0;
9411 _ACEOF
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; }
9417 else
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>
9431 main ()
9436 return 0;
9438 _ACEOF
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; }
9444 else
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>
9459 main ()
9464 return 0;
9466 _ACEOF
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; }
9472 else
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
9482 else
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9487 main ()
9490 #ifndef __cplusplus
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;
9496 char **ppc;
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
9503 expression */
9504 const char *g = "string";
9505 pcpcc = &g + (g ? g-g : 0);
9506 /* HPUX 7.0 cc rejects these. */
9507 ++pcpcc;
9508 ppc = (char**) pcpcc;
9509 pcpcc = (char const *const *) ppc;
9510 { /* SCO 3.2v4 cc rejects this sort of thing. */
9511 char tx;
9512 char *t = &tx;
9513 char const *s = 0 ? (char *) 0 : (char const *) 0;
9515 *t++ = 0;
9516 if (s) return 0;
9518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9519 int x[] = {25, 17};
9520 const int *foo = &x[0];
9521 ++foo;
9523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9524 typedef const int *iptr;
9525 iptr p = 0;
9526 ++p;
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 */
9534 const int foo = 10;
9535 if (!foo) return 0;
9537 return !cs[0] && !zero.x;
9538 #endif
9541 return 0;
9543 _ACEOF
9544 if ac_fn_c_try_compile "$LINENO"; then :
9545 ac_cv_c_const=yes
9546 else
9547 ac_cv_c_const=no
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 :
9562 else
9564 cat >>confdefs.h <<_ACEOF
9565 #define off_t long int
9566 _ACEOF
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 :
9573 else
9575 cat >>confdefs.h <<_ACEOF
9576 #define pid_t int
9577 _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 :
9584 else
9586 cat >>confdefs.h <<_ACEOF
9587 #define size_t unsigned int
9588 _ACEOF
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
9596 else
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 #include <sys/types.h>
9600 #include <sys/time.h>
9601 #include <time.h>
9604 main ()
9606 if ((struct tm *) 0)
9607 return 0;
9609 return 0;
9611 _ACEOF
9612 if ac_fn_c_try_compile "$LINENO"; then :
9613 ac_cv_header_time=yes
9614 else
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
9631 else
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 #include <sys/types.h>
9635 #include <time.h>
9638 main ()
9640 struct tm tm;
9641 int *p = &tm.tm_sec;
9642 return !p;
9644 return 0;
9646 _ACEOF
9647 if ac_fn_c_try_compile "$LINENO"; then :
9648 ac_cv_struct_tm=time.h
9649 else
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
9666 else
9667 ac_cv_c_inline=no
9668 for ac_kw in inline __inline__ __inline; do
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 #ifndef __cplusplus
9672 typedef int foo_t;
9673 static $ac_kw foo_t static_foo () {return 0; }
9674 $ac_kw foo_t foo () {return 0; }
9675 #endif
9677 _ACEOF
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
9683 done
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
9690 inline | yes) ;;
9692 case $ac_cv_c_inline in
9693 no) ac_val=;;
9694 *) ac_val=$ac_cv_c_inline;;
9695 esac
9696 cat >>confdefs.h <<_ACEOF
9697 #ifndef __cplusplus
9698 #define inline $ac_val
9699 #endif
9700 _ACEOF
9702 esac
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
9709 else
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. */
9718 #ifdef __cplusplus
9719 extern "C"
9720 #endif
9721 char regcomp ();
9723 main ()
9725 return regcomp ();
9727 return 0;
9729 _ACEOF
9730 if ac_fn_c_try_link "$LINENO"; then :
9731 ac_cv_lib_regex_regcomp=yes
9732 else
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
9744 _ACEOF
9746 LIBS="-lregex $LIBS"
9750 lib_for_regex=""
9751 if test $ac_cv_lib_regex_regcomp = yes
9752 then
9753 lib_for_regex="-lregex"
9758 pkg_failed=no
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
9768 ac_status=$?
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
9773 else
9774 pkg_failed=yes
9776 else
9777 pkg_failed=untried
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
9785 ac_status=$?
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
9790 else
9791 pkg_failed=yes
9793 else
9794 pkg_failed=untried
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
9805 else
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`
9810 else
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
9816 have_ncurses=false
9817 elif test $pkg_failed = untried; then
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819 $as_echo "no" >&6; }
9820 have_ncurses=false
9821 else
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; }
9826 have_ncurses=true
9828 HAVE_NCURSES=$have_ncurses
9832 pkg_failed=no
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
9842 ac_status=$?
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
9847 else
9848 pkg_failed=yes
9850 else
9851 pkg_failed=untried
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
9859 ac_status=$?
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
9864 else
9865 pkg_failed=yes
9867 else
9868 pkg_failed=untried
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
9879 else
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`
9884 else
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
9890 pmda_systemd=false
9891 elif test $pkg_failed = untried; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894 pmda_systemd=false
9895 else
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; }
9900 pmda_systemd=true
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
9914 do :
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
9919 _ACEOF
9921 for ac_header in infiniband/mad.h
9922 do :
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
9927 _ACEOF
9928 pmda_infiniband=true
9931 done
9936 done
9938 savedLIBS=$LIBS
9939 IB_LIBS=""
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
9944 else
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. */
9953 #ifdef __cplusplus
9954 extern "C"
9955 #endif
9956 char madrpc_init ();
9958 main ()
9960 return madrpc_init ();
9962 return 0;
9964 _ACEOF
9965 if ac_fn_c_try_link "$LINENO"; then :
9966 ac_cv_lib_ibmad_madrpc_init=yes
9967 else
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
9979 _ACEOF
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
9989 else
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. */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 char umad_init ();
10003 main ()
10005 return umad_init ();
10007 return 0;
10009 _ACEOF
10010 if ac_fn_c_try_link "$LINENO"; then :
10011 ac_cv_lib_ibumad_umad_init=yes
10012 else
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
10024 _ACEOF
10026 LIBS="-libumad $LIBS"
10030 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10031 then
10032 IB_LIBS="-libmad -libumad"
10033 LIBS="$IB_LIBS"
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. */
10042 #ifdef __cplusplus
10043 extern "C"
10044 #endif
10045 char port_performance_query_via ();
10047 main ()
10049 return port_performance_query_via ();
10051 return 0;
10053 _ACEOF
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; }
10061 else
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. */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 char pma_query_via ();
10081 main ()
10083 return pma_query_via ();
10085 return 0;
10087 _ACEOF
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; }
10095 else
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
10102 LIBS=$savedLIBS
10103 if test $have_pma_query_via -o $have_port_performance_query_via
10104 then
10106 else
10107 pmda_infiniband=false
10109 else
10110 pmda_infiniband=false
10112 LIBS=$savedLIBS
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
10124 pmda_papi=false
10125 if test "x$do_papi" != "xno"; then :
10127 enable_papi=true
10129 saved_LDFLAGS="$LDFLAGS"
10130 saved_CFLAGS="$CFLAGS"
10131 savedLIBS=$LIBS
10133 CFLAGS="$papi_CFLAGS"
10134 LDFLAGS="$papi_LIBS"
10136 case "$do_papi" in
10137 yes|no|check)
10139 */*)
10140 PAPI_ROOTDIR=$do_papi;
10141 CFLAGS="-I$PAPI_ROOTDIR/include"
10142 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10146 pkg_failed=no
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
10156 ac_status=$?
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
10161 else
10162 pkg_failed=yes
10164 else
10165 pkg_failed=untried
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
10173 ac_status=$?
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
10178 else
10179 pkg_failed=yes
10181 else
10182 pkg_failed=untried
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
10193 else
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`
10198 else
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:
10206 $papi_PKG_ERRORS
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; }
10229 else
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"
10239 esac
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
10246 else
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. */
10255 #ifdef __cplusplus
10256 extern "C"
10257 #endif
10258 char PAPI_library_init ();
10260 main ()
10262 return PAPI_library_init ();
10264 return 0;
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 ac_cv_lib_papi_PAPI_library_init=yes
10269 else
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"
10280 else
10281 enable_papi=false
10284 for ac_header in papi.h
10285 do :
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
10290 _ACEOF
10291 papi_cflags="$CFLAGS"
10292 else
10293 enable_papi=false
10296 done
10298 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10299 then
10300 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10301 else
10302 pmda_papi=$enable_papi
10304 LIBS=$savedLIBS
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
10326 #include <papi.h>
10327 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10328 End-of-File
10329 (eval $ac_compile) 2>conftest.out
10330 cat conftest.out >&5
10331 if test -s conftest.out
10332 then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10335 else
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; }
10343 rm -f conftest.*
10347 pmda_perfevent=false
10348 if test "x$do_perfevent" != "xno" ; then :
10350 enable_perfevent=true
10352 savedLIBS=$LIBS
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
10357 else
10358 ac_check_lib_save_LIBS=$LIBS
10359 LIBS="-lpfm $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. */
10366 #ifdef __cplusplus
10367 extern "C"
10368 #endif
10369 char pfm_get_os_event_encoding ();
10371 main ()
10373 return pfm_get_os_event_encoding ();
10375 return 0;
10377 _ACEOF
10378 if ac_fn_c_try_link "$LINENO"; then :
10379 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10380 else
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 :
10390 pfm_libs="-lpfm"
10391 else
10392 enable_perfevent=false
10395 for ac_header in perfmon/pfmlib_perf_event.h
10396 do :
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
10401 _ACEOF
10403 else
10404 enable_perfevent=false
10407 done
10409 if test "$do_perfevent" != "check" -a "$enable_papi" != "true"
10410 then
10411 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10412 else
10413 pmda_perfevent=$enable_perfevent
10415 LIBS=$savedLIBS
10416 PFM_LIBS=$pfm_libs
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
10428 pmda_rpm=false
10429 savedLIBS=$LIBS
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>
10436 main ()
10438 (void)HEADERGET_EXT;
10440 return 0;
10442 _ACEOF
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; }
10446 pmda_rpm=true
10447 else
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; }
10454 PMDA_RPM=$pmda_rpm
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
10459 LIBS=$savedLIBS
10461 pmda_postfix=false
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
10470 else
10471 if test -n "$QSHAPE"; then
10472 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10473 else
10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475 as_dummy="path=$PATH:/usr/sbin"
10476 for as_dir in $as_dummy
10478 IFS=$as_save_IFS
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
10484 break 2
10486 done
10487 done
10488 IFS=$as_save_IFS
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; }
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10502 test -n "$QSHAPE" && break
10503 done
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"
10508 then
10509 pmda_postfix=true
10510 else
10511 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10513 if test -f "$script"
10514 then
10515 pmda_postfix=true
10516 break
10518 done
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
10527 pkg_failed=no
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
10537 ac_status=$?
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
10542 else
10543 pkg_failed=yes
10545 else
10546 pkg_failed=untried
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
10554 ac_status=$?
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
10559 else
10560 pkg_failed=yes
10562 else
10563 pkg_failed=untried
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
10574 else
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`
10579 else
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
10590 else
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
10601 pkg_failed=no
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
10611 ac_status=$?
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
10616 else
10617 pkg_failed=yes
10619 else
10620 pkg_failed=untried
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
10628 ac_status=$?
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
10633 else
10634 pkg_failed=yes
10636 else
10637 pkg_failed=untried
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
10648 else
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`
10653 else
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
10659 have_cairo=false
10660 elif test $pkg_failed = untried; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10663 have_cairo=false
10664 else
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; }
10669 have_cairo=true
10671 HAVE_CAIRO=$have_cairo
10674 enable_webapi=false
10675 if test "x$do_webapi" != "xno"; then :
10677 enable_webapi=true
10679 if test "$have_libmicrohttpd" != "true"
10680 then
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"
10685 then
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"
10700 then
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"
10705 then
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
10716 #endif
10717 #include <stdio.h>
10720 main ()
10724 return 0;
10726 _ACEOF
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; }
10730 else
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
10744 else
10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10747 #include <sys/types.h>
10748 #include <signal.h>
10751 main ()
10753 return *(signal (0, 0)) (0) == 1;
10755 return 0;
10757 _ACEOF
10758 if ac_fn_c_try_compile "$LINENO"; then :
10759 ac_cv_type_signal=int
10760 else
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
10770 _ACEOF
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
10777 else
10778 if test "$cross_compiling" = yes; then :
10779 ac_cv_func_wait3_rusage=no
10780 else
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. */
10789 main ()
10791 struct rusage r;
10792 int i;
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. */
10797 r.ru_nvcsw = 0;
10798 r.ru_stime.tv_sec = 0;
10799 r.ru_stime.tv_usec = 0;
10800 r.ru_majflt = r.ru_minflt = 0;
10801 switch (fork ())
10803 case 0: /* Child. */
10804 sleep(1); /* Give up the CPU. */
10805 _exit(0);
10806 break;
10807 case -1: /* What can we do? */
10808 _exit(0);
10809 break;
10810 default: /* Parent. */
10811 wait3(&i, 0, &r);
10812 /* Avoid "text file busy" from rm on fast HP-UX machines. */
10813 sleep(2);
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);
10818 _ACEOF
10819 if ac_fn_c_try_run "$LINENO"; then :
10820 ac_cv_func_wait3_rusage=yes
10821 else
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
10838 do :
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
10843 _ACEOF
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
10853 done
10856 for ac_func in mktime nanosleep usleep unsetenv
10857 do :
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
10863 _ACEOF
10866 done
10868 for ac_func in select socket gethostname getpeerucred getpeereid
10869 do :
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
10875 _ACEOF
10878 done
10880 for ac_func in uname syslog __clone pipe2 fcntl ioctl
10881 do :
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
10887 _ACEOF
10890 done
10892 for ac_func in prctl setlinebuf waitpid atexit kill
10893 do :
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
10899 _ACEOF
10902 done
10904 for ac_func in chown fchmod getcwd scandir mkstemp
10905 do :
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
10911 _ACEOF
10914 done
10916 for ac_func in brk sbrk posix_memalign memalign valloc
10917 do :
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
10923 _ACEOF
10926 done
10928 for ac_func in signal sighold sigrelse tcgetattr
10929 do :
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
10935 _ACEOF
10938 done
10940 for ac_func in regex regcmp regexec regcomp
10941 do :
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
10947 _ACEOF
10950 done
10952 for ac_func in strtod strtol strtoll strtoull strndup strchrnul
10953 do :
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
10959 _ACEOF
10962 done
10964 for ac_func in getuid getgid
10965 do :
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
10971 _ACEOF
10974 done
10976 for ac_func in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
10977 do :
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
10983 _ACEOF
10986 done
10988 for ac_func in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
10989 do :
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
10995 _ACEOF
10998 done
11000 for ac_func in sysinfo trace_back_stack backtrace
11001 do :
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
11007 _ACEOF
11010 done
11012 for ac_func in sendmsg recvmsg setns
11013 do :
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
11019 _ACEOF
11022 done
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
11027 do :
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
11032 _ACEOF
11035 done
11039 if test $target_os = solaris
11040 then
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 :
11044 else
11046 cat >>confdefs.h <<_ACEOF
11047 #define __int32_t int32_t
11048 _ACEOF
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 :
11055 else
11057 cat >>confdefs.h <<_ACEOF
11058 #define __uint32_t uint32_t
11059 _ACEOF
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 :
11066 else
11068 cat >>confdefs.h <<_ACEOF
11069 #define __int64_t int64_t
11070 _ACEOF
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 :
11077 else
11079 cat >>confdefs.h <<_ACEOF
11080 #define __uint64_t uint64_t
11081 _ACEOF
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 :
11088 else
11090 cat >>confdefs.h <<_ACEOF
11091 #define uint_t u_int32_t
11092 _ACEOF
11096 else
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 :
11100 else
11102 cat >>confdefs.h <<_ACEOF
11103 #define __int32_t int
11104 _ACEOF
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 :
11111 else
11113 cat >>confdefs.h <<_ACEOF
11114 #define __uint32_t unsigned int
11115 _ACEOF
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 :
11122 else
11124 cat >>confdefs.h <<_ACEOF
11125 #define __int64_t long long
11126 _ACEOF
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 :
11133 else
11135 cat >>confdefs.h <<_ACEOF
11136 #define __uint64_t unsigned long long
11137 _ACEOF
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 :
11144 else
11146 cat >>confdefs.h <<_ACEOF
11147 #define uint_t unsigned int
11148 _ACEOF
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>
11164 main ()
11166 __psint_t psint;
11168 return 0;
11170 _ACEOF
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; }
11176 else
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>
11190 #endif
11193 main ()
11195 ptrdiff_t ptrdiff;
11197 return 0;
11199 _ACEOF
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; }
11205 else
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>
11217 #ifdef HAVE_PWD_H
11218 #include <pwd.h>
11219 #endif
11222 main ()
11224 uid_t uid;
11226 return 0;
11228 _ACEOF
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; }
11234 else
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>
11245 #ifdef HAVE_GRP_H
11246 #include <grp.h>
11247 #endif
11250 main ()
11252 gid_t gid;
11254 return 0;
11256 _ACEOF
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; }
11262 else
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>
11274 #endif
11277 main ()
11279 SID sid;
11281 return 0;
11283 _ACEOF
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; }
11289 else
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>
11303 #endif
11306 main ()
11308 socklen_t len;
11310 return 0;
11312 _ACEOF
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; }
11318 else
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. */
11327 #include <stdio.h>
11330 main ()
11332 long long x = 0LL;
11334 return 0;
11336 _ACEOF
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>
11351 main ()
11353 char **x = _environ;
11355 return 0;
11357 _ACEOF
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>
11373 #endif
11376 main ()
11378 int i = PR_TERMCHILD;
11380 return 0;
11382 _ACEOF
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; }
11388 else
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>
11401 #endif
11404 main ()
11406 int i = PR_SET_PDEATHSIG;
11408 return 0;
11410 _ACEOF
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; }
11416 else
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
11426 else
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429 #include <sys/types.h>
11430 #include <termios.h>
11431 #ifdef TIOCGWINSZ
11433 #endif
11435 _ACEOF
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
11439 else
11440 ac_cv_sys_tiocgwinsz_in_termios_h=no
11442 rm -f conftest*
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
11453 else
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11456 #include <sys/types.h>
11457 #include <sys/ioctl.h>
11458 #ifdef TIOCGWINSZ
11460 #endif
11462 _ACEOF
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
11466 else
11467 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11469 rm -f conftest*
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"
11486 CFLAGS="-rdynamic"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11491 main ()
11495 return 0;
11497 _ACEOF
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
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505 rdynamic_flag=
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>
11520 static int
11521 my_select(const struct dirent *foo) { return 0; }
11522 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11523 End-of-File
11524 (eval $ac_compile) 2>conftest.out
11525 cat conftest.out >&5
11526 if test -s conftest.out
11527 then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 else
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; }
11537 rm -f conftest.*
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; }
11546 End-of-File
11547 (eval $ac_compile) 2>conftest.out
11548 cat conftest.out >&5
11549 if test -s conftest.out
11550 then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11553 else
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; }
11560 rm -f conftest.*
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
11567 else
11568 cat <<End-of-File >conftest.c
11569 #include <stdio.h>
11570 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11571 End-of-File
11572 (eval $ac_compile) 2>&5
11573 (eval $ac_link) 2>&5
11574 ans=`./conftest`
11575 echo "./conftest -> \"$ans\"" >&5
11577 case "$ans"
11579 0x*)
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; }
11590 esac
11591 rm -rf conftest conftest.*
11593 _do_type()
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;
11600 # typedef foo_t
11601 # pid_t;
11602 # typedef struct {
11603 # ....
11604 # } 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 \
11611 | $SED \
11612 -e 's/[ ]__attribute__ ((.*));/;/' \
11613 -e 's/__extension__[ ][ ]*//' \
11614 | $AWK '
11615 /bozo/ { print; next }
11616 $1 == "typedef" { printf "%s",$0
11617 if ($NF ~ /;$/) {
11618 print ""
11619 next
11621 wantsemi = 1
11622 if ($0 ~ /{/) depth = 1
11623 next
11625 wantsemi == 1 { printf " %s",$0
11626 if ($0 ~ /{/) depth++
11627 if (depth) {
11628 if ($0 ~ /}/) depth--
11629 if (depth > 0) next
11631 if ($NF ~ /;$/) {
11632 print ""
11633 wantsemi = 0
11634 next
11636 }' \
11637 | $SED \
11638 -e 's/\*/* /g' \
11639 -e 's/^[ ]*//' \
11640 -e 's/;[ ]*$//' \
11641 | $AWK '
11642 $1 == "typedef" { map[$NF] = ""
11643 for (i = 2; i < NF; i++) {
11644 if (i == 2)
11645 map[$NF] = $i
11646 else
11647 map[$NF] = map[$NF] " " $i
11649 print $NF " -> " map[$NF] >"conftest.debug"
11650 next
11652 $2 == "bozo" { t = $1
11653 printf "best guess: %s",t >"conftest.debug"
11654 while (map[t] != "") {
11655 t = map[t]
11656 printf " -> %s",t >"conftest.debug"
11658 print "" >"conftest.debug"
11659 print t
11660 exit
11662 case "$_raw"
11664 int)
11665 _fmt='"d"'
11667 unsigned|'unsigned int')
11668 _fmt='"u"'
11670 long|'long int')
11671 _fmt='"ld"'
11673 'long long'|'long long int')
11674 if test $target_os = mingw; then
11675 _fmt='"I64d"'
11676 else
11677 _fmt='"lld"'
11680 'unsigned long'|'unsigned long int'|'long unsigned int')
11681 _fmt='"lu"'
11683 'unsigned long long'|'unsigned long long int')
11684 if test $target_os = mingw; then
11685 _fmt='"I64u"'
11686 else
11687 _fmt='"llu"'
11690 *\*) # pointer to a something
11691 _fmt='"p"'
11693 struct\ *) # not much can be done here ...
11694 _fmt='"p"'
11697 echo
11698 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11699 echo "... typedef mapping ..."
11700 cat conftest.debug
11701 rm -rf conftest conftest.*
11702 exit 1
11704 esac
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
11712 fmt_pid="$ans"
11713 else
11714 cat <<End-of-File >conftest.c
11715 #include <sys/types.h>
11716 #include <unistd.h>
11717 pid_t bozo;
11718 End-of-File
11719 _do_type
11720 fmt_pid="$_fmt"
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
11732 else
11733 cat <<End-of-File >conftest.c
11734 #include <stdio.h>
11735 #include <stdint.h>
11736 #include <inttypes.h>
11737 int main()
11739 printf("\"%s\"\n", __PRI64_PREFIX "d");
11740 return(0);
11742 End-of-File
11743 ans=''
11744 (eval $ac_link) 2>&5
11745 if test -x ./conftest
11746 then
11747 ans=`./conftest`
11748 echo "./conftest -> \"$ans\"" >&5
11750 if test -z "$ans"
11751 then
11752 cat <<End-of-File >conftest.c
11753 #include <stdio.h>
11754 #include <stdint.h>
11755 #include <string.h>
11756 int main()
11758 char buf[17];
11759 int64_t bozo = 0x12345678abcdLL;
11760 sprintf(buf, "%lx", bozo);
11761 if (strcmp(buf, "12345678abcd") == 0)
11762 printf("\"ld\"\n");
11763 else {
11764 sprintf(buf, "%llx", bozo);
11765 if (strcmp(buf, "12345678abcd") == 0)
11766 printf("\"lld\"\n");
11768 return(0);
11770 End-of-File
11771 (eval $ac_link) 2>&5
11772 if test -x ./conftest
11773 then
11774 ans=`./conftest`
11775 echo "./conftest -> \"$ans\"" >&5
11779 if test -z "$ans"
11780 then
11781 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
11782 rm -rf conftest conftest.*
11783 exit 1
11785 fmt_int64="$ans"
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
11794 ans=$strtoint64
11795 echo "cross-compile -> \"$ans\"" >&5
11796 else
11797 cat <<End-of-File >conftest.c
11798 #include <stdio.h>
11799 #include <stdlib.h>
11800 main()
11802 long long int value = -1;
11803 value = strtol("1234567812345678", NULL, 16);
11804 if (value == 0x1234567812345678LL) {
11805 printf("strotol\n");
11806 exit(0);
11808 value = strtoll("1234567812345678", NULL, 16);
11809 if (value == 0x1234567812345678LL) {
11810 printf("strtoll\n");
11811 exit(0);
11813 exit(1);
11815 End-of-File
11816 (eval $ac_compile) 2>&5
11817 (eval $ac_link) 2>&5
11818 ans=`./conftest`
11819 echo "./conftest -> \"$ans\"" >&5
11821 case "$ans"
11823 strtol)
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; }
11831 strtoll)
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; }
11847 esac
11848 rm -rf conftest conftest.*
11850 if test "$do_threads" = "check" -o "$do_threads" = "yes"
11851 then
11852 for ac_header in pthread.h
11853 do :
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
11858 _ACEOF
11860 else
11862 if test "$do_threads" = "yes"
11863 then
11864 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
11869 done
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>
11878 main ()
11880 pthread_mutex_t mymutex;
11882 return 0;
11884 _ACEOF
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; }
11890 else
11892 if test "$do_threads" = "yes"
11893 then
11894 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
11895 else
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
11906 savedLIBS=$LIBS
11907 if test -n "$cand"
11908 then
11909 LIBS=`echo $LIBS -l$cand`
11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11914 #include <pthread.h>
11917 main ()
11920 pthread_create(NULL, NULL, NULL, NULL);
11923 return 0;
11925 _ACEOF
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; }
11929 if test -z "$cand"
11930 then
11931 lib_for_pthreads="$cand"
11932 else
11933 lib_for_pthreads="-l$cand"
11935 LIBS=$savedLIBS
11936 break
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 LIBS=$savedLIBS
11941 done
11944 if test "$ac_cv_header_pthread_h" = "yes"
11945 then
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>
11950 pthread_t bozo;
11951 End-of-File
11952 _do_type
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
11962 then
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 )
11967 broken!
11968 #else
11969 __thread int x;
11970 #endif
11972 main ()
11976 return 0;
11978 _ACEOF
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; }
11984 else
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
11989 else
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992 #include <pthread.h>
11993 __thread int x;
11995 main ()
11999 return 0;
12001 _ACEOF
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; }
12007 else
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>
12020 main ()
12022 pthread_barrier_t mybarrier;
12024 return 0;
12026 _ACEOF
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; }
12032 else
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
12043 ans=$sizeof_long
12044 echo "cross-compile -> \"$ans\"" >&5
12045 else
12046 cat <<End-of-File >conftest.c
12047 #include <stdio.h>
12048 main() { printf("%d", (int)sizeof(long)); }
12049 End-of-File
12050 (eval $ac_compile) 2>&5
12051 (eval $ac_link) 2>&5
12052 ans=`./conftest`
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
12065 else
12066 echo
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.*
12070 exit 1
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
12079 else
12080 cat <<End-of-File >conftest.c
12081 #include <stdio.h>
12082 main() { printf("%d", (int)sizeof(char *)); }
12083 End-of-File
12084 (eval $ac_compile) 2>&5
12085 (eval $ac_link) 2>&5
12086 ans=`./conftest`
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
12095 PCP_PTR_SIZE=32
12096 elif test "$ans" = 8; then
12098 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12100 PCP_PTR_SIZE=64
12101 else
12102 echo
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.*
12106 exit 1
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
12113 ans=$sizeof_int
12114 echo "cross-compile -> \"$ans\"" >&5
12115 else
12116 cat <<End-of-File >conftest.c
12117 #include <stdio.h>
12118 main() { printf("%d", (int)sizeof(int)); }
12119 End-of-File
12120 (eval $ac_compile) 2>&5
12121 (eval $ac_link) 2>&5
12122 ans=`./conftest`
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
12128 then
12129 echo
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.*
12134 exit 1
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
12143 else
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); }
12147 End-of-File
12148 (eval $ac_compile) 2>&5
12149 (eval $ac_link) 2>&5
12150 ans=`./conftest`
12151 echo "./conftest -> \"$ans\"" >&5
12153 case "$ans"
12155 1200*|*0012)
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; }
12164 2100*|*0021)
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.*
12175 exit 1
12177 esac
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>
12187 main ()
12190 __uint64_t x = 0;
12191 double y = (double)x;
12194 return 0;
12196 _ACEOF
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
12206 do :
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
12211 _ACEOF
12214 done
12216 if test $ac_cv_func_basename = yes
12217 then
12219 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12222 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12224 lib_for_basename=""
12225 else
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
12230 else
12231 ac_check_lib_save_LIBS=$LIBS
12232 LIBS="-lgen $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. */
12239 #ifdef __cplusplus
12240 extern "C"
12241 #endif
12242 char basename ();
12244 main ()
12246 return basename ();
12248 return 0;
12250 _ACEOF
12251 if ac_fn_c_try_link "$LINENO"; then :
12252 ac_cv_lib_gen_basename=yes
12253 else
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
12265 _ACEOF
12267 LIBS="-lgen $LIBS"
12271 if test $ac_cv_lib_gen_basename = yes
12272 then
12274 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12277 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12279 lib_for_basename="-lgen"
12280 else
12281 lib_for_basename="-lpcp"
12286 lib_for_clock_gettime=
12287 for ac_func in clock_gettime
12288 do :
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
12293 _ACEOF
12296 done
12298 if test $ac_cv_func_clock_gettime = no
12299 then
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
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lrt $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. */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char clock_gettime ();
12318 main ()
12320 return clock_gettime ();
12322 return 0;
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 ac_cv_lib_rt_clock_gettime=yes
12327 else
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
12339 _ACEOF
12341 LIBS="-lrt $LIBS"
12345 if test $ac_cv_lib_rt_clock_gettime = yes
12346 then
12348 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12350 lib_for_rt=-lrt
12355 lib_for_dlopen=
12356 for ac_func in dlopen
12357 do :
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
12362 _ACEOF
12365 done
12367 if test $ac_cv_func_dlopen = no
12368 then
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
12373 else
12374 ac_check_lib_save_LIBS=$LIBS
12375 LIBS="-ldl $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. */
12382 #ifdef __cplusplus
12383 extern "C"
12384 #endif
12385 char dlopen ();
12387 main ()
12389 return dlopen ();
12391 return 0;
12393 _ACEOF
12394 if ac_fn_c_try_link "$LINENO"; then :
12395 ac_cv_lib_dl_dlopen=yes
12396 else
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
12408 _ACEOF
12410 LIBS="-ldl $LIBS"
12414 if test $ac_cv_lib_dl_dlopen = yes
12415 then
12417 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12419 lib_for_dlopen=-ldl
12424 lib_for_math=
12425 for ac_func in flog10
12426 do :
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
12431 _ACEOF
12434 done
12436 if test $ac_cv_func_flog10 = no
12437 then
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
12442 else
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-lm $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. */
12451 #ifdef __cplusplus
12452 extern "C"
12453 #endif
12454 char flog10 ();
12456 main ()
12458 return flog10 ();
12460 return 0;
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464 ac_cv_lib_m_flog10=yes
12465 else
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
12477 _ACEOF
12479 LIBS="-lm $LIBS"
12483 if test $ac_cv_lib_m_flog10 = yes
12484 then
12486 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12488 lib_for_math=-lm
12490 else
12492 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12495 for ac_func in pow
12496 do :
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
12500 #define HAVE_POW 1
12501 _ACEOF
12504 done
12506 if test $ac_cv_func_pow = no
12507 then
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
12512 else
12513 ac_check_lib_save_LIBS=$LIBS
12514 LIBS="-lm $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. */
12521 #ifdef __cplusplus
12522 extern "C"
12523 #endif
12524 char pow ();
12526 main ()
12528 return pow ();
12530 return 0;
12532 _ACEOF
12533 if ac_fn_c_try_link "$LINENO"; then :
12534 ac_cv_lib_m_pow=yes
12535 else
12536 ac_cv_lib_m_pow=no
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
12547 _ACEOF
12549 LIBS="-lm $LIBS"
12553 if test $ac_cv_lib_m_pow = yes
12554 then
12556 $as_echo "#define HAVE_POW 1" >>confdefs.h
12558 lib_for_math=-lm
12560 else
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. */
12571 #include <math.h>
12574 main ()
12577 double x = 123.456;
12578 if (fpclassify(x) == FP_NAN) exit(1);
12581 return 0;
12583 _ACEOF
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
12592 then
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12594 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12595 savedLIBS=$LIBS
12596 LIBS=-lm
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12600 #include <math.h>
12603 main ()
12606 double x = 123.456;
12607 if (fpclassify(x) == FP_NAN) exit(1);
12610 return 0;
12612 _ACEOF
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
12621 then
12622 lib_for_math=-lm
12624 LIBS=$savedLIBS
12626 if test $ac_cv_func_fpclassify = yes
12627 then
12629 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12631 else
12632 for ac_func in isnan
12633 do :
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
12638 _ACEOF
12641 done
12643 if test $ac_cv_func_isnan = no
12644 then
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
12649 else
12650 ac_check_lib_save_LIBS=$LIBS
12651 LIBS="-lm $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. */
12658 #ifdef __cplusplus
12659 extern "C"
12660 #endif
12661 char isnan ();
12663 main ()
12665 return isnan ();
12667 return 0;
12669 _ACEOF
12670 if ac_fn_c_try_link "$LINENO"; then :
12671 ac_cv_lib_m_isnan=yes
12672 else
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
12684 _ACEOF
12686 LIBS="-lm $LIBS"
12690 if test $ac_cv_lib_m_isnan = yes
12691 then
12693 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12695 lib_for_math=-lm
12698 for ac_func in isnanf
12699 do :
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
12704 _ACEOF
12707 done
12709 if test $ac_cv_func_isnanf = no
12710 then
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
12715 else
12716 ac_check_lib_save_LIBS=$LIBS
12717 LIBS="-lm $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. */
12724 #ifdef __cplusplus
12725 extern "C"
12726 #endif
12727 char isnanf ();
12729 main ()
12731 return isnanf ();
12733 return 0;
12735 _ACEOF
12736 if ac_fn_c_try_link "$LINENO"; then :
12737 ac_cv_lib_m_isnanf=yes
12738 else
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
12750 _ACEOF
12752 LIBS="-lm $LIBS"
12756 if test $ac_cv_lib_m_isnanf = yes
12757 then
12759 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
12761 lib_for_math=-lm
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769 #include <signal.h>
12771 main ()
12773 SIG_PF x;
12775 return 0;
12777 _ACEOF
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>
12790 main ()
12792 int x = SA_SIGINFO;
12794 return 0;
12796 _ACEOF
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>
12809 main ()
12811 int x = SIGPIPE;
12813 return 0;
12815 _ACEOF
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>
12828 main ()
12830 int x = SIGHUP;
12832 return 0;
12834 _ACEOF
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>
12847 main ()
12849 int x = SIGBUS;
12851 return 0;
12853 _ACEOF
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>
12866 main ()
12868 typedef void (*SIGRET)(int);
12869 SIGRET x = SIG_IGN;
12872 return 0;
12874 _ACEOF
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
12886 then
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 #include <sys/stat.h>
12891 _ACEOF
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
12899 rm -f conftest*
12902 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
12903 then
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12906 #include <sys/stat.h>
12908 _ACEOF
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
12916 rm -f conftest*
12919 if test $have_stat_type = false
12920 then
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12923 #include <sys/stat.h>
12925 _ACEOF
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
12933 rm -f conftest*
12936 if test $have_stat_type = false
12937 then
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12940 #include <sys/stat.h>
12942 _ACEOF
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
12950 rm -f conftest*
12953 if test $have_stat_type = false
12954 then
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 #include <sys/stat.h>
12959 _ACEOF
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
12967 rm -f conftest*
12970 if test $have_stat_type = false
12971 then
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12974 #include <sys/stat.h>
12976 _ACEOF
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
12984 rm -f conftest*
12987 if test $have_stat_type = false
12988 then
12989 echo 'FATAL ERROR: Cannot determine struct stat time types.'
12990 rm -rf conftest conftest.*
12991 exit 1
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
13039 else
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
13057 else
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
13068 else
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
13080 else
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 :
13094 withval=$with_x;
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.
13100 have_x=disabled
13101 else
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
13106 else
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
13111 cd conftest.dir
13112 cat >Imakefile <<'_ACEOF'
13113 incroot:
13114 @echo incroot='${INCROOT}'
13115 usrlibdir:
13116 @echo usrlibdir='${USRLIBDIR}'
13117 libdir:
13118 @echo libdir='${LIBDIR}'
13119 _ACEOF
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'\`"
13124 done
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
13131 done
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;;
13138 esac
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 ;;
13142 esac
13144 cd ..
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.
13150 ac_x_header_dirs='
13151 /usr/X11/include
13152 /usr/X11R7/include
13153 /usr/X11R6/include
13154 /usr/X11R5/include
13155 /usr/X11R4/include
13157 /usr/include/X11
13158 /usr/include/X11R7
13159 /usr/include/X11R6
13160 /usr/include/X11R5
13161 /usr/include/X11R4
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
13175 /usr/X386/include
13176 /usr/x386/include
13177 /usr/XFree86/include/X11
13179 /usr/include
13180 /usr/local/include
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>
13195 _ACEOF
13196 if ac_fn_c_try_cpp "$LINENO"; then :
13197 # We can compile using X headers with no special include directory.
13198 ac_x_includes=
13199 else
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
13203 break
13205 done
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.
13214 ac_save_LIBS=$LIBS
13215 LIBS="-lX11 $LIBS"
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218 #include <X11/Xlib.h>
13220 main ()
13222 XrmInitialize ()
13224 return 0;
13226 _ACEOF
13227 if ac_fn_c_try_link "$LINENO"; then :
13228 LIBS=$ac_save_LIBS
13229 # We can link X programs with no special library path.
13230 ac_x_libraries=
13231 else
13232 LIBS=$ac_save_LIBS
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
13239 break 2
13241 done
13242 done
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'"
13257 esac
13259 ;; #(
13260 *) have_x=yes;;
13261 esac
13262 eval "$ac_cv_have_x"
13263 fi # $with_x != no
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; }
13268 no_x=yes
13269 else
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=
13287 else
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. */
13306 main ()
13310 return 0;
13312 _ACEOF
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"
13317 else
13318 LIBS="$ac_xsave_LIBS -R $x_libraries"
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13323 main ()
13327 return 0;
13329 _ACEOF
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"
13334 else
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"
13353 else
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. */
13364 #ifdef __cplusplus
13365 extern "C"
13366 #endif
13367 char XOpenDisplay ();
13369 main ()
13371 return XOpenDisplay ();
13373 return 0;
13375 _ACEOF
13376 if ac_fn_c_try_link "$LINENO"; then :
13378 else
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
13383 else
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. */
13392 #ifdef __cplusplus
13393 extern "C"
13394 #endif
13395 char dnet_ntoa ();
13397 main ()
13399 return dnet_ntoa ();
13401 return 0;
13403 _ACEOF
13404 if ac_fn_c_try_link "$LINENO"; then :
13405 ac_cv_lib_dnet_dnet_ntoa=yes
13406 else
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
13424 else
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. */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char dnet_ntoa ();
13438 main ()
13440 return dnet_ntoa ();
13442 return 0;
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13447 else
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)
13469 # needs -lnsl.
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
13484 else
13485 ac_check_lib_save_LIBS=$LIBS
13486 LIBS="-lnsl $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. */
13493 #ifdef __cplusplus
13494 extern "C"
13495 #endif
13496 char gethostbyname ();
13498 main ()
13500 return gethostbyname ();
13502 return 0;
13504 _ACEOF
13505 if ac_fn_c_try_link "$LINENO"; then :
13506 ac_cv_lib_nsl_gethostbyname=yes
13507 else
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
13525 else
13526 ac_check_lib_save_LIBS=$LIBS
13527 LIBS="-lbsd $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. */
13534 #ifdef __cplusplus
13535 extern "C"
13536 #endif
13537 char gethostbyname ();
13539 main ()
13541 return gethostbyname ();
13543 return 0;
13545 _ACEOF
13546 if ac_fn_c_try_link "$LINENO"; then :
13547 ac_cv_lib_bsd_gethostbyname=yes
13548 else
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
13581 else
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. */
13590 #ifdef __cplusplus
13591 extern "C"
13592 #endif
13593 char connect ();
13595 main ()
13597 return connect ();
13599 return 0;
13601 _ACEOF
13602 if ac_fn_c_try_link "$LINENO"; then :
13603 ac_cv_lib_socket_connect=yes
13604 else
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
13630 else
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. */
13639 #ifdef __cplusplus
13640 extern "C"
13641 #endif
13642 char remove ();
13644 main ()
13646 return remove ();
13648 return 0;
13650 _ACEOF
13651 if ac_fn_c_try_link "$LINENO"; then :
13652 ac_cv_lib_posix_remove=yes
13653 else
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
13679 else
13680 ac_check_lib_save_LIBS=$LIBS
13681 LIBS="-lipc $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. */
13688 #ifdef __cplusplus
13689 extern "C"
13690 #endif
13691 char shmat ();
13693 main ()
13695 return shmat ();
13697 return 0;
13699 _ACEOF
13700 if ac_fn_c_try_link "$LINENO"; then :
13701 ac_cv_lib_ipc_shmat=yes
13702 else
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
13731 else
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. */
13740 #ifdef __cplusplus
13741 extern "C"
13742 #endif
13743 char IceConnectionNumber ();
13745 main ()
13747 return IceConnectionNumber ();
13749 return 0;
13751 _ACEOF
13752 if ac_fn_c_try_link "$LINENO"; then :
13753 ac_cv_lib_ICE_IceConnectionNumber=yes
13754 else
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
13785 man_header=
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
13794 then
13795 have_gzipped_manpages=true
13796 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
13797 break
13798 elif test -f $d/$sd/man.1.bz2
13799 then
13800 have_bzip2ed_manpages=true
13801 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
13802 break
13803 elif test -f $d/$sd/man.1.lzma
13804 then
13805 have_lzmaed_manpages=true
13806 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
13807 break
13808 elif test -f $d/$sd/man.1.xz
13809 then
13810 have_xzed_manpages=true
13811 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
13812 break
13813 elif test -f $d/$sd/man.1
13814 then
13815 man_header=`head -1 $d/$sd/man.1`
13816 break
13818 done
13819 done
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`
13844 else
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`
13854 else
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
13868 else
13870 if $enable_systemd
13871 then
13872 pcp_rc_dir="$pcp_share_dir/lib"
13873 else
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
13884 else
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
13894 else
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
13906 else
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
13918 else
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
13933 else
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
13945 else
13946 pcp_demos_dir=$pcp_share_dir/demos
13951 if test -z "$XCONFIRM"
13952 then
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
13959 else
13960 case $ac_xconfirm_prog in
13961 [\\/]* | ?:[\\/]*)
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
13968 IFS=$as_save_IFS
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
13974 break 2
13976 done
13977 done
13978 IFS=$as_save_IFS
13980 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
13982 esac
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; }
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 $as_echo "no" >&6; }
13994 else
13995 ac_xconfirm_prog=$XCONFIRM
13999 if test "$ac_cv_header_fcntl_h" = "yes"
14000 then
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. */
14005 #include <fcntl.h>
14007 main ()
14009 int i = FNDELAY;
14011 return 0;
14013 _ACEOF
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; }
14020 else
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"
14028 then
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>
14035 main ()
14037 libzfs_handle_t *zh;
14038 zpool_handle_t *zp;
14039 nvlist_t *np;
14040 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14043 return 0;
14045 _ACEOF
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; }
14052 else
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>
14064 main ()
14066 libzfs_handle_t *zh;
14067 zpool_handle_t *zp;
14068 nvlist_t *np;
14069 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14072 return 0;
14074 _ACEOF
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; }
14081 else
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"
14089 then
14090 enable_secure=true
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
14100 do :
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
14105 _ACEOF
14106 NSSCFLAGS=-I/usr/include/nss
14107 else
14109 for ac_header in nss3/nss.h
14110 do :
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
14115 _ACEOF
14116 NSSCFLAGS=-I/usr/include/nss3
14117 else
14119 enable_secure=false
14120 if test "$do_secure" = "yes"
14121 then
14122 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14127 done
14132 done
14136 for ac_header in nspr/nspr.h
14137 do :
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
14142 _ACEOF
14143 NSPRCFLAGS=-I/usr/include/nspr
14144 else
14146 for ac_header in nspr4/nspr.h
14147 do :
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
14152 _ACEOF
14153 NSPRCFLAGS=-I/usr/include/nspr4
14154 else
14156 enable_secure=false
14157 if test "$do_secure" = "yes"
14158 then
14159 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14164 done
14169 done
14173 for ac_header in sasl/sasl.h
14174 do :
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
14179 _ACEOF
14180 SASLCFLAGS=-I/usr/include/sasl
14181 else
14183 enable_secure=false
14184 if test "$do_secure" = "yes"
14185 then
14186 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14191 done
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
14199 else
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. */
14208 #ifdef __cplusplus
14209 extern "C"
14210 #endif
14211 char sasl_server_init ();
14213 main ()
14215 return sasl_server_init ();
14217 return 0;
14219 _ACEOF
14220 if ac_fn_c_try_link "$LINENO"; then :
14221 ac_cv_lib_sasl2_sasl_server_init=yes
14222 else
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"
14233 else
14235 enable_secure=false
14236 if test "$do_secure" = "yes"
14237 then
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
14249 else
14250 ac_check_lib_save_LIBS=$LIBS
14251 LIBS="-lssl $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. */
14258 #ifdef __cplusplus
14259 extern "C"
14260 #endif
14261 char SSL_ImportFD ();
14263 main ()
14265 return SSL_ImportFD ();
14267 return 0;
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 ac_cv_lib_ssl_SSL_ImportFD=yes
14272 else
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"
14283 else
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
14289 else
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. */
14298 #ifdef __cplusplus
14299 extern "C"
14300 #endif
14301 char SSL_ImportFD ();
14303 main ()
14305 return SSL_ImportFD ();
14307 return 0;
14309 _ACEOF
14310 if ac_fn_c_try_link "$LINENO"; then :
14311 ac_cv_lib_ssl3_SSL_ImportFD=yes
14312 else
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"
14323 else
14325 enable_secure=false
14326 if test "$do_secure" = "yes"
14327 then
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
14342 else
14343 ac_check_lib_save_LIBS=$LIBS
14344 LIBS="-lnss $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. */
14351 #ifdef __cplusplus
14352 extern "C"
14353 #endif
14354 char NSS_Init ();
14356 main ()
14358 return NSS_Init ();
14360 return 0;
14362 _ACEOF
14363 if ac_fn_c_try_link "$LINENO"; then :
14364 ac_cv_lib_nss_NSS_Init=yes
14365 else
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"
14376 else
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
14382 else
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. */
14391 #ifdef __cplusplus
14392 extern "C"
14393 #endif
14394 char NSS_Init ();
14396 main ()
14398 return NSS_Init ();
14400 return 0;
14402 _ACEOF
14403 if ac_fn_c_try_link "$LINENO"; then :
14404 ac_cv_lib_nss3_NSS_Init=yes
14405 else
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"
14416 else
14418 enable_secure=false
14419 if test "$do_secure" = "yes"
14420 then
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
14435 else
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. */
14444 #ifdef __cplusplus
14445 extern "C"
14446 #endif
14447 char PR_Init ();
14449 main ()
14451 return PR_Init ();
14453 return 0;
14455 _ACEOF
14456 if ac_fn_c_try_link "$LINENO"; then :
14457 ac_cv_lib_nspr_PR_Init=yes
14458 else
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"
14469 else
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
14475 else
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. */
14484 #ifdef __cplusplus
14485 extern "C"
14486 #endif
14487 char PR_Init ();
14489 main ()
14491 return PR_Init ();
14493 return 0;
14495 _ACEOF
14496 if ac_fn_c_try_link "$LINENO"; then :
14497 ac_cv_lib_nspr4_PR_Init=yes
14498 else
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"
14509 else
14511 enable_secure=false
14512 if test "$do_secure" = "yes"
14513 then
14514 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14524 if test "$enable_secure" = "true"
14525 then
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
14540 else
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. */
14549 #ifdef __cplusplus
14550 extern "C"
14551 #endif
14552 char __atomic_fetch_add_4 ();
14554 main ()
14556 return __atomic_fetch_add_4 ();
14558 return 0;
14560 _ACEOF
14561 if ac_fn_c_try_link "$LINENO"; then :
14562 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14563 else
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
14579 then
14580 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
14581 else
14582 pcp_mpi_dirs=
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>
14594 #endif
14595 #ifdef HAVE_SYS_UN_H
14596 #include <sys/un.h>
14597 #endif
14600 main ()
14602 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14604 return 0;
14606 _ACEOF
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; }
14612 else
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>
14626 #endif
14627 #ifdef HAVE_SYS_UN_H
14628 #include <sys/un.h>
14629 #endif
14632 main ()
14634 struct ucred ucred; ucred.uid = 0;
14636 return 0;
14638 _ACEOF
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; }
14644 else
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. */
14655 #include <time.h>
14658 main ()
14660 struct timespec foo;
14662 return 0;
14664 _ACEOF
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; }
14670 else
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. */
14681 #include <time.h>
14684 main ()
14686 time_t az = altzone;
14688 return 0;
14690 _ACEOF
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; }
14696 else
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; }
14707 else
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14711 #include <time.h>
14712 int main () {
14713 char b[32]="";
14714 time_t t = time(NULL);
14715 struct tm * t1 = localtime (&t);
14716 if (strftime (b, 32, "%z", t1) < 3)
14717 return (1);
14718 if (strcmp(b, "%z") == 0)
14719 return(1);
14720 return (0);
14723 _ACEOF
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; }
14729 else
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>
14744 main ()
14746 strerror_r(0, NULL, 0)[0];
14748 return 0;
14750 _ACEOF
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; }
14756 else
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
14762 savedLIBS=$LIBS
14763 LIBS=
14764 lib_for_curses=
14765 lib_for_readline=
14766 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
14767 if test "x$ac_cv_func_readline" = xyes; then :
14769 else
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
14775 else
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. */
14784 #ifdef __cplusplus
14785 extern "C"
14786 #endif
14787 char readline ();
14789 main ()
14791 return readline ();
14793 return 0;
14795 _ACEOF
14796 if ac_fn_c_try_link "$LINENO"; then :
14797 ac_cv_lib_readline_readline=yes
14798 else
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
14810 _ACEOF
14812 LIBS="-lreadline $LIBS"
14814 else
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
14820 else
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. */
14829 #ifdef __cplusplus
14830 extern "C"
14831 #endif
14832 char add_history ();
14834 main ()
14836 return add_history ();
14838 return 0;
14840 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"; then :
14842 ac_cv_lib_readline_add_history=yes
14843 else
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
14855 _ACEOF
14857 LIBS="-lreadline $LIBS"
14867 if test $ac_cv_func_readline = yes
14868 then
14870 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14872 elif test $ac_cv_lib_readline_readline = yes
14873 then
14875 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14877 lib_for_readline=-lreadline
14878 elif test $ac_cv_lib_readline_add_history = yes
14879 then
14881 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14883 lib_for_curses=-lcurses
14884 lib_for_readline=-lreadline
14888 LIBS=$savedLIBS
14891 pkg_failed=no
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
14901 ac_status=$?
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
14906 else
14907 pkg_failed=yes
14909 else
14910 pkg_failed=untried
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
14918 ac_status=$?
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
14923 else
14924 pkg_failed=yes
14926 else
14927 pkg_failed=untried
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
14938 else
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`
14943 else
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
14949 have_zlib=false
14950 elif test $pkg_failed = untried; then
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952 $as_echo "no" >&6; }
14953 have_zlib=false
14954 else
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; }
14959 have_zlib=true
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. */
14969 #include <netdb.h>
14970 int test = AI_ADDRCONFIG;
14973 main ()
14978 return 0;
14980 _ACEOF
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; }
14986 else
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
14993 have_vector=false
14994 if test -f ./build/tar/vector.tar.gz
14995 then
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;}
14998 have_vector=true
15002 have_webjs=false
15003 if test -f ./build/tar/webjs.tar.gz
15004 then
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;}
15007 have_webjs=true
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.
15030 _ACEOF
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
15040 case $ac_val in #(
15041 *${as_nl}*)
15042 case $ac_var in #(
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;} ;;
15045 esac
15046 case $ac_var in #(
15047 _ | IFS | as_nl) ;; #(
15048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15049 *) { eval $ac_var=; unset $ac_var;} ;;
15050 esac ;;
15051 esac
15052 done
15054 (set) 2>&1 |
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 \.
15059 sed -n \
15060 "s/'/'\\\\''/g;
15061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15062 ;; #(
15064 # `set' quotes correctly as required by POSIX, so do not add quotes.
15065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15067 esac |
15068 sort
15070 sed '
15071 /^ac_cv_env_/b end
15072 t clear
15073 :clear
15074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15075 t end
15076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15077 :end' >>confcache
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"
15085 else
15086 case $cache_file in #(
15087 */* | ?:*)
15088 mv -f confcache "$cache_file"$$ &&
15089 mv -f "$cache_file"$$ "$cache_file" ;; #(
15091 mv -f confcache "$cache_file" ;;
15092 esac
15095 else
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;}
15100 rm -f confcache
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
15108 ac_libobjs=
15109 ac_ltlibobjs=
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'
15119 done
15120 LIBOBJS=$ac_libobjs
15122 LTLIBOBJS=$ac_ltlibobjs
15126 : "${CONFIG_STATUS=./config.status}"
15127 ac_write_fail=0
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;}
15132 as_write_fail=0
15133 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15134 #! $SHELL
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.
15140 debug=false
15141 ac_cs_recheck=false
15142 ac_cs_silent=false
15144 SHELL=\${CONFIG_SHELL-$SHELL}
15145 export SHELL
15146 _ASEOF
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 :
15155 emulate sh
15156 NULLCMD=:
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
15161 else
15162 case `(set -o) 2>/dev/null` in #(
15163 *posix*) :
15164 set -o posix ;; #(
15165 *) :
15167 esac
15171 as_nl='
15173 export as_nl
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'
15187 else
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'
15191 else
15192 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15193 as_echo_n_body='eval
15194 arg=$1;
15195 case $arg in #(
15196 *"$as_nl"*)
15197 expr "X$arg" : "X\\(.*\\)$as_nl";
15198 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15199 esac;
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
15211 PATH_SEPARATOR=:
15212 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15213 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15214 PATH_SEPARATOR=';'
15219 # IFS
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.)
15224 IFS=" "" $as_nl"
15226 # Find who we are. Look in the path if we contain no directory separator.
15227 as_myself=
15228 case $0 in #((
15229 *[\\/]* ) as_myself=$0 ;;
15230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15231 for as_dir in $PATH
15233 IFS=$as_save_IFS
15234 test -z "$as_dir" && as_dir=.
15235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15236 done
15237 IFS=$as_save_IFS
15240 esac
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
15244 as_myself=$0
15246 if test ! -f "$as_myself"; then
15247 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15248 exit 1
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 || :
15258 done
15259 PS1='$ '
15260 PS2='> '
15261 PS4='+ '
15263 # NLS nuisances.
15264 LC_ALL=C
15265 export LC_ALL
15266 LANGUAGE=C
15267 export LANGUAGE
15269 # CDPATH.
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.
15278 as_fn_error ()
15280 as_status=$1; test $as_status -eq 0 && as_status=1
15281 if test "$4"; then
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
15287 } # as_fn_error
15290 # as_fn_set_status STATUS
15291 # -----------------------
15292 # Set $? to STATUS, without forking.
15293 as_fn_set_status ()
15295 return $1
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.
15301 as_fn_exit ()
15303 set +e
15304 as_fn_set_status $1
15305 exit $1
15306 } # as_fn_exit
15308 # as_fn_unset VAR
15309 # ---------------
15310 # Portably unset VAR.
15311 as_fn_unset ()
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
15321 # implementations.
15322 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15323 eval 'as_fn_append ()
15325 eval $1+=\$2
15327 else
15328 as_fn_append ()
15330 eval $1=\$$1\$2
15332 fi # 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 ()
15342 as_val=$(( $* ))
15344 else
15345 as_fn_arith ()
15347 as_val=`expr "$@" || test $? -eq 1`
15349 fi # as_fn_arith
15352 if expr a : '\(a\)' >/dev/null 2>&1 &&
15353 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15354 as_expr=expr
15355 else
15356 as_expr=false
15359 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15360 as_basename=basename
15361 else
15362 as_basename=false
15365 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15366 as_dirname=dirname
15367 else
15368 as_dirname=false
15371 as_me=`$as_basename -- "$0" ||
15372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15373 X"$0" : 'X\(//\)$' \| \
15374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15375 $as_echo X/"$0" |
15376 sed '/^.*\/\([^/][^/]*\)\/*$/{
15377 s//\1/
15380 /^X\/\(\/\/\)$/{
15381 s//\1/
15384 /^X\/\(\/\).*/{
15385 s//\1/
15388 s/.*/./; q'`
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 #(((((
15399 -n*)
15400 case `echo 'xy\c'` in
15401 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15402 xy) ECHO_C='\c';;
15403 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15404 ECHO_T=' ';;
15405 esac;;
15407 ECHO_N='-n';;
15408 esac
15410 rm -f conf$$ conf$$.exe conf$$.file
15411 if test -d conf$$.dir; then
15412 rm -f conf$$.dir/conf$$.file
15413 else
15414 rm -f conf$$.dir
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
15419 as_ln_s='ln -s'
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 ||
15425 as_ln_s='cp -pR'
15426 elif ln conf$$.file conf$$ 2>/dev/null; then
15427 as_ln_s=ln
15428 else
15429 as_ln_s='cp -pR'
15431 else
15432 as_ln_s='cp -pR'
15434 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15435 rmdir conf$$.dir 2>/dev/null
15438 # as_fn_mkdir_p
15439 # -------------
15440 # Create "$as_dir" as a directory, including parents if necessary.
15441 as_fn_mkdir_p ()
15444 case $as_dir in #(
15445 -*) as_dir=./$as_dir;;
15446 esac
15447 test -d "$as_dir" || eval $as_mkdir_p || {
15448 as_dirs=
15449 while :; do
15450 case $as_dir in #(
15451 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15452 *) as_qdir=$as_dir;;
15453 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15462 s//\1/
15465 /^X\(\/\/\)[^/].*/{
15466 s//\1/
15469 /^X\(\/\/\)$/{
15470 s//\1/
15473 /^X\(\/\).*/{
15474 s//\1/
15477 s/.*/./; q'`
15478 test -d "$as_dir" && break
15479 done
15480 test -z "$as_dirs" || eval "mkdir $as_dirs"
15481 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15484 } # as_fn_mkdir_p
15485 if mkdir -p . 2>/dev/null; then
15486 as_mkdir_p='mkdir -p "$as_dir"'
15487 else
15488 test -d ./-p && rmdir ./-p
15489 as_mkdir_p=false
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'"
15510 exec 6>&1
15511 ## ----------------------------------- ##
15512 ## Main body of $CONFIG_STATUS script. ##
15513 ## ----------------------------------- ##
15514 _ASEOF
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.
15521 ac_log="
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
15529 $ $0 $@
15531 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15534 _ACEOF
15536 case $ac_config_files in *"
15537 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15538 esac
15540 case $ac_config_headers in *"
15541 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15542 esac
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"
15550 _ACEOF
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553 ac_cs_usage="\
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:
15573 $config_files
15575 Configuration headers:
15576 $config_headers
15578 Report bugs to the package provider."
15580 _ACEOF
15581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15582 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15583 ac_cs_version="\\
15584 config.status
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."
15592 ac_pwd='$ac_pwd'
15593 srcdir='$srcdir'
15594 test -n "\$AWK" || AWK=awk
15595 _ACEOF
15597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15598 # The default lists apply if the user does not specify any file.
15599 ac_need_defaults=:
15600 while test $# != 0
15602 case $1 in
15603 --*=?*)
15604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15605 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15606 ac_shift=:
15608 --*=)
15609 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15610 ac_optarg=
15611 ac_shift=:
15614 ac_option=$1
15615 ac_optarg=$2
15616 ac_shift=shift
15618 esac
15620 case $ac_option in
15621 # Handling of the options.
15622 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15623 ac_cs_recheck=: ;;
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 )
15629 debug=: ;;
15630 --file | --fil | --fi | --f )
15631 $ac_shift
15632 case $ac_optarg in
15633 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15634 '') as_fn_error $? "missing file argument" ;;
15635 esac
15636 as_fn_append CONFIG_FILES " '$ac_optarg'"
15637 ac_need_defaults=false;;
15638 --header | --heade | --head | --hea )
15639 $ac_shift
15640 case $ac_optarg in
15641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15642 esac
15643 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15644 ac_need_defaults=false;;
15645 --he | --h)
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)
15653 ac_cs_silent=: ;;
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 ;;
15662 esac
15663 shift
15664 done
15666 ac_configure_extra_args=
15668 if $ac_cs_silent; then
15669 exec 6>/dev/null
15670 ac_configure_extra_args="$ac_configure_extra_args --silent"
15673 _ACEOF
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
15677 shift
15678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15679 CONFIG_SHELL='$SHELL'
15680 export CONFIG_SHELL
15681 exec "\$@"
15684 _ACEOF
15685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15686 exec 5>>config.log
15688 echo
15689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15690 ## Running $as_me. ##
15691 _ASBOX
15692 $as_echo "$ac_log"
15693 } >&5
15695 _ACEOF
15696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15697 _ACEOF
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;;
15719 esac
15720 done
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'.
15738 $debug ||
15740 tmp= ac_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` &&
15751 test -d "$tmp"
15752 } ||
15754 tmp=./conf$$-$RANDOM
15755 (umask 077 && mkdir "$tmp")
15756 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15757 ac_tmp=$tmp
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
15774 ac_cs_awk_cr='\\r'
15775 else
15776 ac_cs_awk_cr=$ac_cr
15779 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15780 _ACEOF
15784 echo "cat >conf$$subs.awk <<_ACEOF" &&
15785 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15786 echo "_ACEOF"
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 '^'`
15790 ac_delim='%!_!# '
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
15797 break
15798 elif $ac_last_try; then
15799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15800 else
15801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15803 done
15804 rm -f conf$$subs.sh
15806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15807 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15808 _ACEOF
15809 sed -n '
15811 s/^/S["/; s/!.*/"]=/
15814 s/^[^!]*!//
15815 :repl
15816 t repl
15817 s/'"$ac_delim"'$//
15818 t delim
15821 s/\(.\{148\}\)..*/\1/
15822 t more1
15823 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15826 b repl
15827 :more1
15828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15831 s/.\{148\}//
15832 t nl
15833 :delim
15835 s/\(.\{148\}\)..*/\1/
15836 t more2
15837 s/["\\]/\\&/g; s/^/"/; s/$/"/
15840 :more2
15841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15844 s/.\{148\}//
15845 t delim
15846 ' <conf$$subs.awk | sed '
15847 /^[^""]/{
15849 s/\n//
15851 ' >>$CONFIG_STATUS || ac_write_fail=1
15852 rm -f conf$$subs.awk
15853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15854 _ACAWK
15855 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15856 for (key in S) S_is_set[key] = 1
15857 FS = "\a"
15861 line = $ 0
15862 nfields = split(line, field, "@")
15863 substed = 0
15864 len = length(field[1])
15865 for (i = 2; i < nfields; i++) {
15866 key = field[i]
15867 keylen = length(key)
15868 if (S_is_set[key]) {
15869 value = S[key]
15870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15871 len += length(value) + length(field[++i])
15872 substed = 1
15873 } else
15874 len += 1 + keylen
15877 print line
15880 _ACAWK
15881 _ACEOF
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"
15885 else
15887 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15888 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15889 _ACEOF
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[ ]*=[ ]*/{
15898 s///
15899 s/^/:/
15900 s/[ ]*$/:/
15901 s/:\$(srcdir):/:/g
15902 s/:\${srcdir}:/:/g
15903 s/:@srcdir@:/:/g
15904 s/^:*//
15905 s/:*$//
15907 s/\(=[ ]*\).*/\1/
15909 s/\n//
15910 s/^[^=]*=[ ]*$//
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 ||
15922 BEGIN {
15923 _ACEOF
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.
15931 ac_delim='%!_!# '
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
15935 break
15936 elif $ac_last_try; then
15937 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15938 else
15939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15941 done
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]*
15948 sed -n '
15949 s/.\{148\}/&'"$ac_delim"'/g
15950 t rset
15951 :rset
15952 s/^[ ]*#[ ]*define[ ][ ]*/ /
15953 t def
15955 :def
15956 s/\\$//
15957 t bsnl
15958 s/["\\]/\\&/g
15959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15960 D["\1"]=" \3"/p
15961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15963 :bsnl
15964 s/["\\]/\\&/g
15965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15966 D["\1"]=" \3\\\\\\n"\\/p
15967 t cont
15968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15969 t cont
15971 :cont
15973 s/.\{148\}/&'"$ac_delim"'/g
15974 t clear
15975 :clear
15976 s/\\$//
15977 t bsnlc
15978 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15980 :bsnlc
15981 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15982 b cont
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
15989 FS = "\a"
15991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15992 line = \$ 0
15993 split(line, arg, " ")
15994 if (arg[1] == "#") {
15995 defundef = arg[2]
15996 mac1 = arg[3]
15997 } else {
15998 defundef = substr(arg[1], 2)
15999 mac1 = arg[2]
16001 split(mac1, mac2, "(") #)
16002 macro = mac2[1]
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]
16007 next
16008 } else {
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, "*/"
16014 next
16018 { print }
16019 _ACAWK
16020 _ACEOF
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 "
16027 shift
16028 for ac_tag
16030 case $ac_tag in
16031 :[FHLC]) ac_mode=$ac_tag; continue;;
16032 esac
16033 case $ac_mode$ac_tag in
16034 :[FHL]*:*);;
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;;
16038 esac
16039 ac_save_IFS=$IFS
16040 IFS=:
16041 set x $ac_tag
16042 IFS=$ac_save_IFS
16043 shift
16044 ac_file=$1
16045 shift
16047 case $ac_mode in
16048 :L) ac_source=$1;;
16049 :[FH])
16050 ac_file_inputs=
16051 for ac_f
16053 case $ac_f 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 `:'.
16058 test -f "$ac_f" ||
16059 case $ac_f in
16060 [\\/$]*) false;;
16061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16062 esac ||
16063 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16064 esac
16065 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16066 as_fn_append ac_file_inputs " '$ac_f'"
16067 done
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'
16074 `' by configure.'
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;;
16086 esac
16088 case $ac_tag in
16089 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16091 esac
16093 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16102 s//\1/
16105 /^X\(\/\/\)[^/].*/{
16106 s//\1/
16109 /^X\(\/\/\)$/{
16110 s//\1/
16113 /^X\(\/\).*/{
16114 s//\1/
16117 s/.*/./; q'`
16118 as_dir="$ac_dir"; as_fn_mkdir_p
16119 ac_builddir=.
16121 case "$ac_dir" in
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/ ;;
16130 esac ;;
16131 esac
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
16137 case $srcdir in
16138 .) # We are building in place.
16139 ac_srcdir=.
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 ;;
16150 esac
16151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16154 case $ac_mode in
16157 # CONFIG_FILE
16160 _ACEOF
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=
16166 ac_sed_dataroot='
16167 /datarootdir/ {
16171 /@datadir@/p
16172 /@docdir@/p
16173 /@infodir@/p
16174 /@localedir@/p
16175 /@mandir@/p'
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;}
16181 _ACEOF
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' ;;
16190 esac
16191 _ACEOF
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
16198 $extrasub
16199 _ACEOF
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"
16228 case $ac_file in
16229 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16230 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16231 esac \
16232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16236 # CONFIG_HEADER
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;}
16247 else
16248 rm -f "$ac_file"
16249 mv "$ac_tmp/config.h" "$ac_file" \
16250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16252 else
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
16260 esac
16262 done # for ac_tag
16265 as_fn_exit 0
16266 _ACEOF
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
16282 ac_cs_success=:
16283 ac_config_status_args=
16284 test "$silent" = yes &&
16285 ac_config_status_args="$ac_config_status_args --quiet"
16286 exec 5>/dev/null
16287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16288 exec 5>>config.log
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;}