Merge branch 'document-default-timeout' of https://github.com/scotte/pcp into scotte...
[pcp.git] / configure
bloba1d2575ffa2ad2ffdc9f343141f86d45742ad2df
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_parfait
626 HAVE_ZLIB
627 zlib_LIBS
628 zlib_CFLAGS
629 lib_for_curses
630 lib_for_readline
631 pcp_mpi_dirs
632 lib_for_atomic
633 enable_secure
634 lib_for_nspr
635 lib_for_nss
636 lib_for_ssl
637 lib_for_sasl
638 SASLCFLAGS
639 NSPRCFLAGS
640 NSSCFLAGS
641 ac_xconfirm_prog
642 pcp_demos_dir
643 pcp_doc_dir
644 pcp_tmp_dir
645 pcp_tmpfile_dir
646 pcp_run_dir
647 pcp_log_dir
648 pcp_sysconfig_dir
649 pcp_rc_dir
650 pcp_desktop_dir
651 pcp_icons_dir
652 pcp_html_dir
653 pcp_books_dir
654 pcp_inc_dir
655 pcp_sbin_dir
656 pcp_bin_dir
657 need_old_tbl_header
658 have_xzed_manpages
659 have_lzmaed_manpages
660 have_bzip2ed_manpages
661 have_gzipped_manpages
662 pcp_man_dir
663 pcp_x11_pre
664 pcp_x11_extra
665 pcp_x11_libflags
666 pcp_x11_incflags
667 X_EXTRA_LIBS
668 X_LIBS
669 X_PRE_LIBS
670 X_CFLAGS
671 XMKMF
672 python_prefix
673 perl_install_base
674 perl_installdirs
675 pcp_lib32_dir
676 pcp_lib_dir
677 pcp_pmdas_dir
678 pcp_var_dir
679 pcp_binadm_dir
680 pcp_share_dir
681 pcp_pmloggercontrol_path
682 pcp_pmsnapcontrol_path
683 pcp_pmiecontrol_path
684 pcp_pmproxyoptions_path
685 pcp_pmmgroptions_path
686 pcp_pmwebdoptions_path
687 pcp_pmcdrclocal_path
688 pcp_pmcdoptions_path
689 pcp_pmcdconf_path
690 pcp_sysconf_dir
691 pcp_saslconf_dir
692 pcp_etc_dir
693 lib_for_math
694 lib_for_dlopen
695 lib_for_rt
696 lib_for_basename
697 fmt_pthread
698 lib_for_pthreads
699 fmt_int64
700 fmt_pid
701 rdynamic_flag
702 enable_manager
703 enable_webapi
704 HAVE_CAIRO
705 cairo_LIBS
706 cairo_CFLAGS
707 HAVE_LIBMICROHTTPD
708 libmicrohttpd_LIBS
709 libmicrohttpd_CFLAGS
710 PMDA_POSTFIX
711 QSHAPE
712 PMDA_RPM
713 PMDA_PERFEVENT
714 PFM_LIBS
715 PMDA_PAPI
716 PAPI_LIBS
717 PAPI_CFLAGS
718 papi_LIBS
719 papi_CFLAGS
720 PMDA_INFINIBAND
721 IB_LIBS
722 PMDA_SYSTEMD
723 SYSTEMD_LIBS
724 SYSTEMD_CFLAGS
725 HAVE_NCURSES
726 ncurses_LIBS
727 ncurses_CFLAGS
728 lib_for_regex
729 grep
730 pcp_syslog_prog
731 pcp_ps_prog
732 LN_S
733 book_brand
734 book_toolchain
735 xmlto
736 XMLTO
737 dblatex
738 DBLATEX
739 publican
740 PUBLICAN
741 makepkg
742 MAKEPKG
743 dpkg
744 DPKG
745 md5sum
746 MD5SUM
747 makedepend
748 MAKEDEPEND
749 TRUEPROG
750 pod2man
751 POD2MAN
752 rpmprog
755 rpmbuild
756 RPMBUILD
757 dlltool
758 DLLTOOL
759 pkgmk
760 PKGMK
761 mkinstallp
762 MKINSTALLP
763 hdiutil
764 HDIUTIL
765 package_maker
768 lzma
769 LZMA
770 bzip2
771 BZIP2
772 gzip
776 pcp_group_install
777 pcp_user_install
781 make
782 MAKE
783 qmake
784 enable_qt
785 qt_release
786 QMAKE
787 PMDA_ACTIVEMQ
788 PMDA_NGINX
789 PMDA_ELASTICSEARCH
790 PMDA_ORACLE
791 PMDA_POSTGRESQL
792 PMDA_MYSQL
793 PMDA_SNMP
794 have_perl
795 pcp_perl_prog
796 PERL
797 PMDA_JSON
798 have_python_six
799 have_python_jsonpointer
800 pcp_python_prog
801 have_python
802 enable_python3
803 enable_python2
804 PYTHON3
805 PYTHON
807 LTLIBOBJS
808 LIBOBJS
809 pm_version_current
810 PACKAGE_DISTRIBUTION
811 PACKAGE_BUILD_DATE
812 PACKAGE_BUILD
813 PACKAGE_REVISION
814 PACKAGE_MINOR
815 PACKAGE_MAJOR
816 enable_systemd
817 pcp_systemdunit_dir
818 SYSTEMD_SYSTEMUNITDIR
819 enable_avahi
820 enable_discovery
821 lib_for_avahi
822 avahi_LIBS
823 avahi_CFLAGS
824 enable_probes
826 DTRACE
827 EGREP
828 GREP
829 echo_c
830 echo_n
831 sort
832 yacc
833 YFLAGS
834 YACC
836 LEXLIB
837 LEX_OUTPUT_ROOT
839 which
840 WHICH
841 find
842 FIND
843 echo
844 ECHO
849 enable_shared
851 ac_ct_CXX
852 CXXFLAGS
854 INVISIBILITY
855 PIECFLAGS
856 PIELDFLAGS
857 PLDFLAGS
858 PCFLAGS
859 cflags_abi
860 cc_is_gcc
862 CCPATH
863 OBJEXT
864 EXEEXT
865 ac_ct_CC
866 CPPFLAGS
867 LDFLAGS
868 CFLAGS
870 PKG_CONFIG_LIBDIR
871 PKG_CONFIG_PATH
872 PKG_CONFIG
873 optimization
874 pcp_ps_all_flags
875 pcp_platform_paths
876 cross_compiling
877 target_os
878 target_vendor
879 target_cpu
880 target
881 host_os
882 host_vendor
883 host_cpu
884 host
885 build_os
886 build_vendor
887 build_cpu
888 build
889 pcp_group
890 pcp_user
891 target_alias
892 host_alias
893 build_alias
894 LIBS
895 ECHO_T
896 ECHO_N
897 ECHO_C
898 DEFS
899 mandir
900 localedir
901 libdir
902 psdir
903 pdfdir
904 dvidir
905 htmldir
906 infodir
907 docdir
908 oldincludedir
909 includedir
910 localstatedir
911 sharedstatedir
912 sysconfdir
913 datadir
914 datarootdir
915 libexecdir
916 sbindir
917 bindir
918 program_transform_name
919 prefix
920 exec_prefix
921 PACKAGE_URL
922 PACKAGE_BUGREPORT
923 PACKAGE_STRING
924 PACKAGE_VERSION
925 PACKAGE_TARNAME
926 PACKAGE_NAME
927 PATH_SEPARATOR
928 SHELL'
929 ac_subst_files=''
930 ac_user_opts='
931 enable_option_checking
932 with_64bit
933 with_optimization
934 with_threads
935 with_secure_sockets
936 with_static_probes
937 with_infiniband
938 with_user
939 with_group
940 with_discovery
941 with_systemd
942 with_qt
943 with_python
944 with_python3
945 with_books
946 with_books_brand
947 with_papi
948 with_perfevent
949 with_pmdajson
950 with_pmdasnmp
951 with_manager
952 with_webapi
953 with_webjs
954 with_vector
955 with_parfait
956 with_make
957 with_tar
958 with_zip
959 enable_ssp
960 enable_pie
961 enable_visibility
962 enable_shared
963 with_configdir
964 with_perl_installdirs
965 with_perl_install_base
966 with_python_prefix
967 with_x
968 with_rcdir
969 with_sysconfigdir
970 with_logdir
971 with_rundir
972 with_tmpdir
973 with_docdir
974 with_demosdir
976 ac_precious_vars='build_alias
977 host_alias
978 target_alias
979 PKG_CONFIG
980 PKG_CONFIG_PATH
981 PKG_CONFIG_LIBDIR
983 CFLAGS
984 LDFLAGS
985 LIBS
986 CPPFLAGS
988 CXXFLAGS
990 YACC
991 YFLAGS
993 avahi_CFLAGS
994 avahi_LIBS
995 SYSTEMD_SYSTEMUNITDIR
996 ncurses_CFLAGS
997 ncurses_LIBS
998 SYSTEMD_CFLAGS
999 SYSTEMD_LIBS
1000 papi_CFLAGS
1001 papi_LIBS
1002 libmicrohttpd_CFLAGS
1003 libmicrohttpd_LIBS
1004 cairo_CFLAGS
1005 cairo_LIBS
1006 XMKMF
1007 zlib_CFLAGS
1008 zlib_LIBS'
1011 # Initialize some variables set by options.
1012 ac_init_help=
1013 ac_init_version=false
1014 ac_unrecognized_opts=
1015 ac_unrecognized_sep=
1016 # The variables have the same names as the options, with
1017 # dashes changed to underlines.
1018 cache_file=/dev/null
1019 exec_prefix=NONE
1020 no_create=
1021 no_recursion=
1022 prefix=NONE
1023 program_prefix=NONE
1024 program_suffix=NONE
1025 program_transform_name=s,x,x,
1026 silent=
1027 site=
1028 srcdir=
1029 verbose=
1030 x_includes=NONE
1031 x_libraries=NONE
1033 # Installation directory options.
1034 # These are left unexpanded so users can "make install exec_prefix=/foo"
1035 # and all the variables that are supposed to be based on exec_prefix
1036 # by default will actually change.
1037 # Use braces instead of parens because sh, perl, etc. also accept them.
1038 # (The list follows the same order as the GNU Coding Standards.)
1039 bindir='${exec_prefix}/bin'
1040 sbindir='${exec_prefix}/sbin'
1041 libexecdir='${exec_prefix}/libexec'
1042 datarootdir='${prefix}/share'
1043 datadir='${datarootdir}'
1044 sysconfdir='${prefix}/etc'
1045 sharedstatedir='${prefix}/com'
1046 localstatedir='${prefix}/var'
1047 includedir='${prefix}/include'
1048 oldincludedir='/usr/include'
1049 docdir='${datarootdir}/doc/${PACKAGE}'
1050 infodir='${datarootdir}/info'
1051 htmldir='${docdir}'
1052 dvidir='${docdir}'
1053 pdfdir='${docdir}'
1054 psdir='${docdir}'
1055 libdir='${exec_prefix}/lib'
1056 localedir='${datarootdir}/locale'
1057 mandir='${datarootdir}/man'
1059 ac_prev=
1060 ac_dashdash=
1061 for ac_option
1063 # If the previous option needs an argument, assign it.
1064 if test -n "$ac_prev"; then
1065 eval $ac_prev=\$ac_option
1066 ac_prev=
1067 continue
1070 case $ac_option in
1071 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1072 *=) ac_optarg= ;;
1073 *) ac_optarg=yes ;;
1074 esac
1076 # Accept the important Cygnus configure options, so we can diagnose typos.
1078 case $ac_dashdash$ac_option in
1080 ac_dashdash=yes ;;
1082 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1083 ac_prev=bindir ;;
1084 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1085 bindir=$ac_optarg ;;
1087 -build | --build | --buil | --bui | --bu)
1088 ac_prev=build_alias ;;
1089 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1090 build_alias=$ac_optarg ;;
1092 -cache-file | --cache-file | --cache-fil | --cache-fi \
1093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1094 ac_prev=cache_file ;;
1095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1097 cache_file=$ac_optarg ;;
1099 --config-cache | -C)
1100 cache_file=config.cache ;;
1102 -datadir | --datadir | --datadi | --datad)
1103 ac_prev=datadir ;;
1104 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1105 datadir=$ac_optarg ;;
1107 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1108 | --dataroo | --dataro | --datar)
1109 ac_prev=datarootdir ;;
1110 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1111 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1112 datarootdir=$ac_optarg ;;
1114 -disable-* | --disable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid feature name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval enable_$ac_useropt=no ;;
1130 -docdir | --docdir | --docdi | --doc | --do)
1131 ac_prev=docdir ;;
1132 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1133 docdir=$ac_optarg ;;
1135 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1136 ac_prev=dvidir ;;
1137 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1138 dvidir=$ac_optarg ;;
1140 -enable-* | --enable-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid feature name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "enable_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval enable_$ac_useropt=\$ac_optarg ;;
1156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1158 | --exec | --exe | --ex)
1159 ac_prev=exec_prefix ;;
1160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1162 | --exec=* | --exe=* | --ex=*)
1163 exec_prefix=$ac_optarg ;;
1165 -gas | --gas | --ga | --g)
1166 # Obsolete; use --with-gas.
1167 with_gas=yes ;;
1169 -help | --help | --hel | --he | -h)
1170 ac_init_help=long ;;
1171 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1172 ac_init_help=recursive ;;
1173 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1174 ac_init_help=short ;;
1176 -host | --host | --hos | --ho)
1177 ac_prev=host_alias ;;
1178 -host=* | --host=* | --hos=* | --ho=*)
1179 host_alias=$ac_optarg ;;
1181 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1182 ac_prev=htmldir ;;
1183 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1184 | --ht=*)
1185 htmldir=$ac_optarg ;;
1187 -includedir | --includedir | --includedi | --included | --include \
1188 | --includ | --inclu | --incl | --inc)
1189 ac_prev=includedir ;;
1190 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1191 | --includ=* | --inclu=* | --incl=* | --inc=*)
1192 includedir=$ac_optarg ;;
1194 -infodir | --infodir | --infodi | --infod | --info | --inf)
1195 ac_prev=infodir ;;
1196 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1197 infodir=$ac_optarg ;;
1199 -libdir | --libdir | --libdi | --libd)
1200 ac_prev=libdir ;;
1201 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1202 libdir=$ac_optarg ;;
1204 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1205 | --libexe | --libex | --libe)
1206 ac_prev=libexecdir ;;
1207 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1208 | --libexe=* | --libex=* | --libe=*)
1209 libexecdir=$ac_optarg ;;
1211 -localedir | --localedir | --localedi | --localed | --locale)
1212 ac_prev=localedir ;;
1213 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1214 localedir=$ac_optarg ;;
1216 -localstatedir | --localstatedir | --localstatedi | --localstated \
1217 | --localstate | --localstat | --localsta | --localst | --locals)
1218 ac_prev=localstatedir ;;
1219 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1220 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1221 localstatedir=$ac_optarg ;;
1223 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1224 ac_prev=mandir ;;
1225 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1226 mandir=$ac_optarg ;;
1228 -nfp | --nfp | --nf)
1229 # Obsolete; use --without-fp.
1230 with_fp=no ;;
1232 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1233 | --no-cr | --no-c | -n)
1234 no_create=yes ;;
1236 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1237 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1238 no_recursion=yes ;;
1240 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1241 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1242 | --oldin | --oldi | --old | --ol | --o)
1243 ac_prev=oldincludedir ;;
1244 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1245 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1246 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1247 oldincludedir=$ac_optarg ;;
1249 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1250 ac_prev=prefix ;;
1251 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1252 prefix=$ac_optarg ;;
1254 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1255 | --program-pre | --program-pr | --program-p)
1256 ac_prev=program_prefix ;;
1257 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1258 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1259 program_prefix=$ac_optarg ;;
1261 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1262 | --program-suf | --program-su | --program-s)
1263 ac_prev=program_suffix ;;
1264 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1265 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1266 program_suffix=$ac_optarg ;;
1268 -program-transform-name | --program-transform-name \
1269 | --program-transform-nam | --program-transform-na \
1270 | --program-transform-n | --program-transform- \
1271 | --program-transform | --program-transfor \
1272 | --program-transfo | --program-transf \
1273 | --program-trans | --program-tran \
1274 | --progr-tra | --program-tr | --program-t)
1275 ac_prev=program_transform_name ;;
1276 -program-transform-name=* | --program-transform-name=* \
1277 | --program-transform-nam=* | --program-transform-na=* \
1278 | --program-transform-n=* | --program-transform-=* \
1279 | --program-transform=* | --program-transfor=* \
1280 | --program-transfo=* | --program-transf=* \
1281 | --program-trans=* | --program-tran=* \
1282 | --progr-tra=* | --program-tr=* | --program-t=*)
1283 program_transform_name=$ac_optarg ;;
1285 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1286 ac_prev=pdfdir ;;
1287 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1288 pdfdir=$ac_optarg ;;
1290 -psdir | --psdir | --psdi | --psd | --ps)
1291 ac_prev=psdir ;;
1292 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1293 psdir=$ac_optarg ;;
1295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1296 | -silent | --silent | --silen | --sile | --sil)
1297 silent=yes ;;
1299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1300 ac_prev=sbindir ;;
1301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1302 | --sbi=* | --sb=*)
1303 sbindir=$ac_optarg ;;
1305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1307 | --sharedst | --shareds | --shared | --share | --shar \
1308 | --sha | --sh)
1309 ac_prev=sharedstatedir ;;
1310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1313 | --sha=* | --sh=*)
1314 sharedstatedir=$ac_optarg ;;
1316 -site | --site | --sit)
1317 ac_prev=site ;;
1318 -site=* | --site=* | --sit=*)
1319 site=$ac_optarg ;;
1321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1322 ac_prev=srcdir ;;
1323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1324 srcdir=$ac_optarg ;;
1326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1327 | --syscon | --sysco | --sysc | --sys | --sy)
1328 ac_prev=sysconfdir ;;
1329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1331 sysconfdir=$ac_optarg ;;
1333 -target | --target | --targe | --targ | --tar | --ta | --t)
1334 ac_prev=target_alias ;;
1335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1336 target_alias=$ac_optarg ;;
1338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1339 verbose=yes ;;
1341 -version | --version | --versio | --versi | --vers | -V)
1342 ac_init_version=: ;;
1344 -with-* | --with-*)
1345 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 as_fn_error $? "invalid package name: $ac_useropt"
1349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1353 "with_$ac_useropt"
1354 "*) ;;
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1357 esac
1358 eval with_$ac_useropt=\$ac_optarg ;;
1360 -without-* | --without-*)
1361 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364 as_fn_error $? "invalid package name: $ac_useropt"
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1369 "with_$ac_useropt"
1370 "*) ;;
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1373 esac
1374 eval with_$ac_useropt=no ;;
1376 --x)
1377 # Obsolete; use --with-x.
1378 with_x=yes ;;
1380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381 | --x-incl | --x-inc | --x-in | --x-i)
1382 ac_prev=x_includes ;;
1383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385 x_includes=$ac_optarg ;;
1387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389 ac_prev=x_libraries ;;
1390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392 x_libraries=$ac_optarg ;;
1394 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1395 Try \`$0 --help' for more information"
1398 *=*)
1399 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1400 # Reject names that are not valid shell variable names.
1401 case $ac_envvar in #(
1402 '' | [0-9]* | *[!_$as_cr_alnum]* )
1403 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1404 esac
1405 eval $ac_envvar=\$ac_optarg
1406 export $ac_envvar ;;
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1416 esac
1417 done
1419 if test -n "$ac_prev"; then
1420 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421 as_fn_error $? "missing argument to $ac_option"
1424 if test -n "$ac_unrecognized_opts"; then
1425 case $enable_option_checking in
1426 no) ;;
1427 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1428 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429 esac
1432 # Check all directory arguments for consistency.
1433 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434 datadir sysconfdir sharedstatedir localstatedir includedir \
1435 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436 libdir localedir mandir
1438 eval ac_val=\$$ac_var
1439 # Remove trailing slashes.
1440 case $ac_val in
1441 */ )
1442 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443 eval $ac_var=\$ac_val;;
1444 esac
1445 # Be sure to have absolute directory names.
1446 case $ac_val in
1447 [\\/$]* | ?:[\\/]* ) continue;;
1448 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1449 esac
1450 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1451 done
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1456 build=$build_alias
1457 host=$host_alias
1458 target=$target_alias
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x; then
1462 if test "x$build_alias" = x; then
1463 cross_compiling=maybe
1464 elif test "x$build_alias" != "x$host_alias"; then
1465 cross_compiling=yes
1469 ac_tool_prefix=
1470 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1472 test "$silent" = yes && exec 6>/dev/null
1475 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di=`ls -di .` &&
1477 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478 as_fn_error $? "working directory cannot be determined"
1479 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1480 as_fn_error $? "pwd does not report name of working directory"
1483 # Find the source files, if location was not specified.
1484 if test -z "$srcdir"; then
1485 ac_srcdir_defaulted=yes
1486 # Try the directory containing this script, then the parent directory.
1487 ac_confdir=`$as_dirname -- "$as_myself" ||
1488 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1489 X"$as_myself" : 'X\(//\)[^/]' \| \
1490 X"$as_myself" : 'X\(//\)$' \| \
1491 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1492 $as_echo X"$as_myself" |
1493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494 s//\1/
1497 /^X\(\/\/\)[^/].*/{
1498 s//\1/
1501 /^X\(\/\/\)$/{
1502 s//\1/
1505 /^X\(\/\).*/{
1506 s//\1/
1509 s/.*/./; q'`
1510 srcdir=$ac_confdir
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512 srcdir=..
1514 else
1515 ac_srcdir_defaulted=no
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1519 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1521 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 ac_abs_confdir=`(
1523 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1524 pwd)`
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527 srcdir=.
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1532 case $srcdir in
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 esac
1535 for ac_var in $ac_precious_vars; do
1536 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_${ac_var}_value=\$${ac_var}
1538 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540 done
1543 # Report the --help message.
1545 if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1548 cat <<_ACEOF
1549 \`configure' configures this package to adapt to many kinds of systems.
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE. See below for descriptions of some of the useful variables.
1556 Defaults for the options are specified in brackets.
1558 Configuration:
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking ...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1569 Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1573 [PREFIX]
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1580 For better control, use the options below.
1582 Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1598 --htmldir=DIR html documentation [DOCDIR]
1599 --dvidir=DIR dvi documentation [DOCDIR]
1600 --pdfdir=DIR pdf documentation [DOCDIR]
1601 --psdir=DIR ps documentation [DOCDIR]
1602 _ACEOF
1604 cat <<\_ACEOF
1606 X features:
1607 --x-includes=DIR X include files are in DIR
1608 --x-libraries=DIR X library files are in DIR
1610 System types:
1611 --build=BUILD configure for building on BUILD [guessed]
1612 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1613 --target=TARGET configure for building compilers for TARGET [HOST]
1614 _ACEOF
1617 if test -n "$ac_init_help"; then
1619 cat <<\_ACEOF
1621 Optional Features:
1622 --disable-option-checking ignore unrecognized --enable/--with options
1623 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1624 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1625 --disable-ssp disable gcc stack-protector
1626 --disable-pie disable position-independent-executable
1627 --disable-visibility disable gcc symbol visibility
1628 --disable-shared disable core shared libary generation
1630 Optional Packages:
1631 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1632 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1633 --with-64bit turn on 64 bit compilation mode (default is platform
1634 dependent)
1635 --with-optimization enable optimization for C/C++ code (default is yes)
1636 --with-threads enable support for multiple threads (default is on)
1637 --with-secure-sockets enable support for secure sockets (default is on)
1638 --with-static-probes enable support for static probes (default is on)
1639 --with-infiniband enable support for Infiniband metrics (default is
1641 --with-user user account under which daemons run (default is
1642 pcp)
1643 --with-group user group under which daemons run (default is pcp)
1644 --with-discovery enable support for service discovery (default is on)
1645 --with-systemd enable support for systemd services (default is on)
1646 --with-qt enable support for tools requiring Qt (default is
1648 --with-python enable support for tools requiring Python (default
1649 is on)
1650 --with-python3 enable support for tools requiring Python3 (default
1651 is on)
1652 --with-books enable building of the PCP books (default is off)
1653 --with-books-brand=BRAND
1654 choose the docbook brand when building the PCP books
1655 (default is common)
1656 --with-papi[=DIR|=MODULE]
1657 enable performance api counter pmda (default is on)
1658 The optional argument may be a full path of a PAPI
1659 installation prefix, or a pkgconfig module name.
1660 --with-perfevent enable perfevent pmda (default is on)
1661 --with-pmdajson enable JSON pmda (default is on)
1662 --with-pmdasnmp enable SNMP pmda (default is on)
1663 --with-manager enable daemon manager (default is on)
1664 --with-webapi enable REST API daemon (default is on)
1665 --with-webjs enable building of webjs packages (default is off)
1666 --with-vector enable building of vector package (default is off)
1667 --with-parfait enable building of parfait package (default is off)
1668 --with-make path to GNU compatible make(1) (default is empty for
1669 auto discovery)
1670 --with-tar path to GNU compatible tar(1) (default is empty for
1671 auto discovery)
1672 --with-zip path to GNU compatible zip(1) (default is empty for
1673 auto discovery)
1674 --with-configdir configuration directory [LOCALSTATEDIR/pcp/config]
1675 --with-perl_installdirs perl installdirs [vendor]
1676 --with-perl_install_base
1677 perl install_base [PREFIX]
1678 --with-python_prefix python setup.py prefix [PREFIX]
1679 --with-x use the X Window System
1680 --with-rcdir rc directory [SYSCONFDIR/rc.d]
1681 --with-sysconfigdir sysconfig directory [SYSCONFDIR/sysconfig]
1682 --with-logdir log directory [LOCALSTATEDIR/log/pcp]
1683 --with-rundir run directory [LOCALSTATEDIR/run/pcp]
1684 --with-tmpdir tmp directory [LOCALSTATEDIR/tmp]
1685 --with-docdir docs directory [DOCDIR/pcp-VERSION]
1686 --with-demosdir run directory [DATADIR/pcp/demos]
1688 Some influential environment variables:
1689 PKG_CONFIG path to pkg-config utility
1690 PKG_CONFIG_PATH
1691 directories to add to pkg-config's search path
1692 PKG_CONFIG_LIBDIR
1693 path overriding pkg-config's built-in search path
1694 CC C compiler command
1695 CFLAGS C compiler flags
1696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1697 nonstandard directory <lib dir>
1698 LIBS libraries to pass to the linker, e.g. -l<library>
1699 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1700 you have headers in a nonstandard directory <include dir>
1701 CXX C++ compiler command
1702 CXXFLAGS C++ compiler flags
1703 YACC The `Yet Another Compiler Compiler' implementation to use.
1704 Defaults to the first program found out of: `bison -y', `byacc',
1705 `yacc'.
1706 YFLAGS The list of arguments that will be passed by default to $YACC.
1707 This script will default YFLAGS to the empty string to avoid a
1708 default value of `-d' given by some make applications.
1709 CPP C preprocessor
1710 avahi_CFLAGS
1711 C compiler flags for avahi, overriding pkg-config
1712 avahi_LIBS linker flags for avahi, overriding pkg-config
1713 SYSTEMD_SYSTEMUNITDIR
1714 value of systemdsystemunitdir for systemd, overriding pkg-config
1715 ncurses_CFLAGS
1716 C compiler flags for ncurses, overriding pkg-config
1717 ncurses_LIBS
1718 linker flags for ncurses, overriding pkg-config
1719 SYSTEMD_CFLAGS
1720 C compiler flags for SYSTEMD, overriding pkg-config
1721 SYSTEMD_LIBS
1722 linker flags for SYSTEMD, overriding pkg-config
1723 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1724 papi_LIBS linker flags for papi, overriding pkg-config
1725 libmicrohttpd_CFLAGS
1726 C compiler flags for libmicrohttpd, overriding pkg-config
1727 libmicrohttpd_LIBS
1728 linker flags for libmicrohttpd, overriding pkg-config
1729 cairo_CFLAGS
1730 C compiler flags for cairo, overriding pkg-config
1731 cairo_LIBS linker flags for cairo, overriding pkg-config
1732 XMKMF Path to xmkmf, Makefile generator for X Window System
1733 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1734 zlib_LIBS linker flags for zlib, overriding pkg-config
1736 Use these variables to override the choices made by `configure' or to help
1737 it to find libraries and programs with nonstandard names/locations.
1739 Report bugs to the package provider.
1740 _ACEOF
1741 ac_status=$?
1744 if test "$ac_init_help" = "recursive"; then
1745 # If there are subdirs, report their specific --help.
1746 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1747 test -d "$ac_dir" ||
1748 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1749 continue
1750 ac_builddir=.
1752 case "$ac_dir" in
1753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1756 # A ".." for each directory in $ac_dir_suffix.
1757 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1758 case $ac_top_builddir_sub in
1759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1761 esac ;;
1762 esac
1763 ac_abs_top_builddir=$ac_pwd
1764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1765 # for backward compatibility:
1766 ac_top_builddir=$ac_top_build_prefix
1768 case $srcdir in
1769 .) # We are building in place.
1770 ac_srcdir=.
1771 ac_top_srcdir=$ac_top_builddir_sub
1772 ac_abs_top_srcdir=$ac_pwd ;;
1773 [\\/]* | ?:[\\/]* ) # Absolute name.
1774 ac_srcdir=$srcdir$ac_dir_suffix;
1775 ac_top_srcdir=$srcdir
1776 ac_abs_top_srcdir=$srcdir ;;
1777 *) # Relative name.
1778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1779 ac_top_srcdir=$ac_top_build_prefix$srcdir
1780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1781 esac
1782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1784 cd "$ac_dir" || { ac_status=$?; continue; }
1785 # Check for guested configure.
1786 if test -f "$ac_srcdir/configure.gnu"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1789 elif test -f "$ac_srcdir/configure"; then
1790 echo &&
1791 $SHELL "$ac_srcdir/configure" --help=recursive
1792 else
1793 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794 fi || ac_status=$?
1795 cd "$ac_pwd" || { ac_status=$?; break; }
1796 done
1799 test -n "$ac_init_help" && exit $ac_status
1800 if $ac_init_version; then
1801 cat <<\_ACEOF
1802 configure
1803 generated by GNU Autoconf 2.69
1805 Copyright (C) 2012 Free Software Foundation, Inc.
1806 This configure script is free software; the Free Software Foundation
1807 gives unlimited permission to copy, distribute and modify it.
1808 _ACEOF
1809 exit
1812 ## ------------------------ ##
1813 ## Autoconf initialization. ##
1814 ## ------------------------ ##
1816 # ac_fn_c_try_compile LINENO
1817 # --------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext
1823 if { { ac_try="$ac_compile"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1847 ac_retval=1
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_compile
1854 # ac_fn_c_try_link LINENO
1855 # -----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_link ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 rm -f conftest.$ac_objext conftest$ac_exeext
1861 if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>conftest.err
1869 ac_status=$?
1870 if test -s conftest.err; then
1871 grep -v '^ *+' conftest.err >conftest.er1
1872 cat conftest.er1 >&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest$ac_exeext && {
1880 test "$cross_compiling" = yes ||
1881 test -x conftest$ac_exeext
1882 }; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=1
1890 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1891 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1892 # interfere with the next link command; also delete a directory that is
1893 # left behind by Apple's compiler. We do this before executing the actions.
1894 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1898 } # ac_fn_c_try_link
1900 # ac_fn_cxx_try_compile LINENO
1901 # ----------------------------
1902 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_cxx_try_compile ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 rm -f conftest.$ac_objext
1907 if { { ac_try="$ac_compile"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_compile") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_cxx_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest.$ac_objext; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=1
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_cxx_try_compile
1938 # ac_fn_c_try_cpp LINENO
1939 # ----------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_c_try_cpp ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_cpp conftest.$ac_ext"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } > conftest.i && {
1960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 }; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1968 ac_retval=1
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1973 } # ac_fn_c_try_cpp
1975 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1978 # the include files in INCLUDES and setting the cache variable VAR
1979 # accordingly.
1980 ac_fn_c_check_header_mongrel ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if eval \${$3+:} false; then :
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 else
1993 # Is the header compilable?
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1995 $as_echo_n "checking $2 usability... " >&6; }
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_header_compiler=yes
2003 else
2004 ac_header_compiler=no
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2008 $as_echo "$ac_header_compiler" >&6; }
2010 # Is the header present?
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2012 $as_echo_n "checking $2 presence... " >&6; }
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_cpp "$LINENO"; then :
2018 ac_header_preproc=yes
2019 else
2020 ac_header_preproc=no
2022 rm -f conftest.err conftest.i conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2024 $as_echo "$ac_header_preproc" >&6; }
2026 # So? What about this header?
2027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028 yes:no: )
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2030 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 no:yes:* )
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2036 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2038 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2040 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2042 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 esac
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 eval "$3=\$ac_header_compiler"
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_header_mongrel
2062 # ac_fn_c_try_run LINENO
2063 # ----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2066 ac_fn_c_try_run ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if { { ac_try="$ac_link"
2070 case "(($ac_try" in
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2073 esac
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2077 ac_status=$?
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2087 ac_status=$?
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2090 ac_retval=0
2091 else
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2096 ac_retval=$ac_status
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_c_try_run
2104 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2105 # -------------------------------------------------------
2106 # Tests whether HEADER exists and can be compiled using the include files in
2107 # INCLUDES, setting the cache variable VAR accordingly.
2108 ac_fn_c_check_header_compile ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2119 #include <$2>
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 eval "$3=yes"
2123 else
2124 eval "$3=no"
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_header_compile
2135 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2136 # -------------------------------------------
2137 # Tests whether TYPE exists after having included INCLUDES, setting cache
2138 # variable VAR accordingly.
2139 ac_fn_c_check_type ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143 $as_echo_n "checking for $2... " >&6; }
2144 if eval \${$3+:} false; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 eval "$3=no"
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 if (sizeof ($2))
2155 return 0;
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2165 main ()
2167 if (sizeof (($2)))
2168 return 0;
2170 return 0;
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2175 else
2176 eval "$3=yes"
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 } # ac_fn_c_check_type
2189 # ac_fn_c_check_func LINENO FUNC VAR
2190 # ----------------------------------
2191 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2192 ac_fn_c_check_func ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if eval \${$3+:} false; then :
2198 $as_echo_n "(cached) " >&6
2199 else
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2204 #define $2 innocuous_$2
2206 /* System header to define __stub macros and hopefully few prototypes,
2207 which can conflict with char $2 (); below.
2208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2209 <limits.h> exists even on freestanding compilers. */
2211 #ifdef __STDC__
2212 # include <limits.h>
2213 #else
2214 # include <assert.h>
2215 #endif
2217 #undef $2
2219 /* Override any GCC internal prototype to avoid an error.
2220 Use char because int might match the return type of a GCC
2221 builtin and then its argument prototype would still apply. */
2222 #ifdef __cplusplus
2223 extern "C"
2224 #endif
2225 char $2 ();
2226 /* The GNU C library defines this for functions which it implements
2227 to always fail with ENOSYS. Some functions are actually named
2228 something starting with __ and the normal name is an alias. */
2229 #if defined __stub_$2 || defined __stub___$2
2230 choke me
2231 #endif
2234 main ()
2236 return $2 ();
2238 return 0;
2240 _ACEOF
2241 if ac_fn_c_try_link "$LINENO"; then :
2242 eval "$3=yes"
2243 else
2244 eval "$3=no"
2246 rm -f core conftest.err conftest.$ac_objext \
2247 conftest$ac_exeext conftest.$ac_ext
2249 eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 } # ac_fn_c_check_func
2255 cat >config.log <<_ACEOF
2256 This file contains any messages produced by compilers while
2257 running configure, to aid debugging if configure makes a mistake.
2259 It was created by $as_me, which was
2260 generated by GNU Autoconf 2.69. Invocation command line was
2262 $ $0 $@
2264 _ACEOF
2265 exec 5>>config.log
2267 cat <<_ASUNAME
2268 ## --------- ##
2269 ## Platform. ##
2270 ## --------- ##
2272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2289 _ASUNAME
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 $as_echo "PATH: $as_dir"
2297 done
2298 IFS=$as_save_IFS
2300 } >&5
2302 cat >&5 <<_ACEOF
2305 ## ----------- ##
2306 ## Core tests. ##
2307 ## ----------- ##
2309 _ACEOF
2312 # Keep a trace of the command line.
2313 # Strip out --no-create and --no-recursion so they do not pile up.
2314 # Strip out --silent because we don't want to record it for future runs.
2315 # Also quote any args containing shell meta-characters.
2316 # Make two passes to allow for proper duplicate-argument suppression.
2317 ac_configure_args=
2318 ac_configure_args0=
2319 ac_configure_args1=
2320 ac_must_keep_next=false
2321 for ac_pass in 1 2
2323 for ac_arg
2325 case $ac_arg in
2326 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2328 | -silent | --silent | --silen | --sile | --sil)
2329 continue ;;
2330 *\'*)
2331 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 esac
2333 case $ac_pass in
2334 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2336 as_fn_append ac_configure_args1 " '$ac_arg'"
2337 if test $ac_must_keep_next = true; then
2338 ac_must_keep_next=false # Got value, back to normal.
2339 else
2340 case $ac_arg in
2341 *=* | --config-cache | -C | -disable-* | --disable-* \
2342 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2343 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2344 | -with-* | --with-* | -without-* | --without-* | --x)
2345 case "$ac_configure_args0 " in
2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 esac
2349 -* ) ac_must_keep_next=true ;;
2350 esac
2352 as_fn_append ac_configure_args " '$ac_arg'"
2354 esac
2355 done
2356 done
2357 { ac_configure_args0=; unset ac_configure_args0;}
2358 { ac_configure_args1=; unset ac_configure_args1;}
2360 # When interrupted or exit'd, cleanup temporary files, and complete
2361 # config.log. We remove comments because anyway the quotes in there
2362 # would cause problems or look ugly.
2363 # WARNING: Use '\'' to represent an apostrophe within the trap.
2364 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365 trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2368 echo
2370 $as_echo "## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##"
2373 echo
2374 # The following way of writing the cache mishandles newlines in values,
2376 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2377 eval ac_val=\$$ac_var
2378 case $ac_val in #(
2379 *${as_nl}*)
2380 case $ac_var in #(
2381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2383 esac
2384 case $ac_var in #(
2385 _ | IFS | as_nl) ;; #(
2386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2387 *) { eval $ac_var=; unset $ac_var;} ;;
2388 esac ;;
2389 esac
2390 done
2391 (set) 2>&1 |
2392 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2393 *${as_nl}ac_space=\ *)
2394 sed -n \
2395 "s/'\''/'\''\\\\'\'''\''/g;
2396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2397 ;; #(
2399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2401 esac |
2402 sort
2404 echo
2406 $as_echo "## ----------------- ##
2407 ## Output variables. ##
2408 ## ----------------- ##"
2409 echo
2410 for ac_var in $ac_subst_vars
2412 eval ac_val=\$$ac_var
2413 case $ac_val in
2414 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415 esac
2416 $as_echo "$ac_var='\''$ac_val'\''"
2417 done | sort
2418 echo
2420 if test -n "$ac_subst_files"; then
2421 $as_echo "## ------------------- ##
2422 ## File substitutions. ##
2423 ## ------------------- ##"
2424 echo
2425 for ac_var in $ac_subst_files
2427 eval ac_val=\$$ac_var
2428 case $ac_val in
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 esac
2431 $as_echo "$ac_var='\''$ac_val'\''"
2432 done | sort
2433 echo
2436 if test -s confdefs.h; then
2437 $as_echo "## ----------- ##
2438 ## confdefs.h. ##
2439 ## ----------- ##"
2440 echo
2441 cat confdefs.h
2442 echo
2444 test "$ac_signal" != 0 &&
2445 $as_echo "$as_me: caught signal $ac_signal"
2446 $as_echo "$as_me: exit $exit_status"
2447 } >&5
2448 rm -f core *.core core.conftest.* &&
2449 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2450 exit $exit_status
2452 for ac_signal in 1 2 13 15; do
2453 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2454 done
2455 ac_signal=0
2457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2458 rm -f -r conftest* confdefs.h
2460 $as_echo "/* confdefs.h */" > confdefs.h
2462 # Predefined preprocessor variables.
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_NAME "$PACKAGE_NAME"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_STRING "$PACKAGE_STRING"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_URL "$PACKAGE_URL"
2486 _ACEOF
2489 # Let the site file select an alternate cache file if it wants to.
2490 # Prefer an explicitly selected file to automatically selected ones.
2491 ac_site_file1=NONE
2492 ac_site_file2=NONE
2493 if test -n "$CONFIG_SITE"; then
2494 # We do not want a PATH search for config.site.
2495 case $CONFIG_SITE in #((
2496 -*) ac_site_file1=./$CONFIG_SITE;;
2497 */*) ac_site_file1=$CONFIG_SITE;;
2498 *) ac_site_file1=./$CONFIG_SITE;;
2499 esac
2500 elif test "x$prefix" != xNONE; then
2501 ac_site_file1=$prefix/share/config.site
2502 ac_site_file2=$prefix/etc/config.site
2503 else
2504 ac_site_file1=$ac_default_prefix/share/config.site
2505 ac_site_file2=$ac_default_prefix/etc/config.site
2507 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2509 test "x$ac_site_file" = xNONE && continue
2510 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2512 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2513 sed 's/^/| /' "$ac_site_file" >&5
2514 . "$ac_site_file" \
2515 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2517 as_fn_error $? "failed to load site script $ac_site_file
2518 See \`config.log' for more details" "$LINENO" 5; }
2520 done
2522 if test -r "$cache_file"; then
2523 # Some versions of bash will fail to source /dev/null (special files
2524 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2525 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2527 $as_echo "$as_me: loading cache $cache_file" >&6;}
2528 case $cache_file in
2529 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2530 *) . "./$cache_file";;
2531 esac
2533 else
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2535 $as_echo "$as_me: creating cache $cache_file" >&6;}
2536 >$cache_file
2539 # Check that the precious variables saved in the cache have kept the same
2540 # value.
2541 ac_cache_corrupted=false
2542 for ac_var in $ac_precious_vars; do
2543 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2544 eval ac_new_set=\$ac_env_${ac_var}_set
2545 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2546 eval ac_new_val=\$ac_env_${ac_var}_value
2547 case $ac_old_set,$ac_new_set in
2548 set,)
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2550 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2552 ,set)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2554 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,);;
2558 if test "x$ac_old_val" != "x$ac_new_val"; then
2559 # differences in whitespace do not lead to failure.
2560 ac_old_val_w=`echo x $ac_old_val`
2561 ac_new_val_w=`echo x $ac_new_val`
2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2564 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2565 ac_cache_corrupted=:
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2568 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2569 eval $ac_var=\$ac_old_val
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2572 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2574 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2575 fi;;
2576 esac
2577 # Pass precious variables to config.status.
2578 if test "$ac_new_set" = set; then
2579 case $ac_new_val in
2580 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 *) ac_arg=$ac_var=$ac_new_val ;;
2582 esac
2583 case " $ac_configure_args " in
2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2586 esac
2588 done
2589 if $ac_cache_corrupted; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2594 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2596 ## -------------------- ##
2597 ## Main body of script. ##
2598 ## -------------------- ##
2600 ac_ext=c
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609 unset ROOT TOOLROOT
2612 # Check whether --with-64bit was given.
2613 if test "${with_64bit+set}" = set; then :
2614 withval=$with_64bit; use_64bit=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-64bit=$withval"
2619 # Check whether --with-optimization was given.
2620 if test "${with_optimization+set}" = set; then :
2621 withval=$with_optimization; use_optimization=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-optimization=$withval"
2622 else
2623 use_optimizaton=yes
2628 # Check whether --with-threads was given.
2629 if test "${with_threads+set}" = set; then :
2630 withval=$with_threads; do_threads=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-threads=$withval"
2631 else
2632 do_threads=check
2637 # Check whether --with-secure-sockets was given.
2638 if test "${with_secure_sockets+set}" = set; then :
2639 withval=$with_secure_sockets; do_secure=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2640 else
2641 do_secure=check
2646 # Check whether --with-static-probes was given.
2647 if test "${with_static_probes+set}" = set; then :
2648 withval=$with_static_probes; do_probes=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2649 else
2650 do_probes=check
2655 # Check whether --with-infiniband was given.
2656 if test "${with_infiniband+set}" = set; then :
2657 withval=$with_infiniband; do_infiniband=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2658 else
2659 do_infiniband=check
2664 # Check whether --with-user was given.
2665 if test "${with_user+set}" = set; then :
2666 withval=$with_user; pcp_user=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-user-account=$withval"
2667 else
2668 pcp_user=pcp
2674 # Check whether --with-group was given.
2675 if test "${with_group+set}" = set; then :
2676 withval=$with_group; pcp_group=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-group-account=$withval"
2677 else
2678 pcp_group=pcp
2684 # Check whether --with-discovery was given.
2685 if test "${with_discovery+set}" = set; then :
2686 withval=$with_discovery; do_discovery=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-discovery=$withval"
2687 else
2688 do_discovery=check
2693 # Check whether --with-systemd was given.
2694 if test "${with_systemd+set}" = set; then :
2695 withval=$with_systemd; do_systemd=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-systemd=$withval"
2696 else
2697 do_systemd=check
2702 # Check whether --with-qt was given.
2703 if test "${with_qt+set}" = set; then :
2704 withval=$with_qt; do_qt=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt=$withval"
2705 else
2706 do_qt=check
2711 # Check whether --with-python was given.
2712 if test "${with_python+set}" = set; then :
2713 withval=$with_python; do_python=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python=$withval"
2714 else
2715 do_python=check
2720 # Check whether --with-python3 was given.
2721 if test "${with_python3+set}" = set; then :
2722 withval=$with_python3; do_python3=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python3=$withval"
2723 else
2724 do_python3=check
2729 # Check whether --with-books was given.
2730 if test "${with_books+set}" = set; then :
2731 withval=$with_books; do_books=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books=$withval"
2732 else
2733 do_books=no
2738 # Check whether --with-books-brand was given.
2739 if test "${with_books_brand+set}" = set; then :
2740 withval=$with_books_brand; do_books_brand=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2741 else
2742 do_books_brand=common
2747 # Check whether --with-papi was given.
2748 if test "${with_papi+set}" = set; then :
2749 withval=$with_papi; do_papi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-papi=$withval"
2750 else
2751 do_papi=check
2756 # Check whether --with-perfevent was given.
2757 if test "${with_perfevent+set}" = set; then :
2758 withval=$with_perfevent; do_perfevent=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2759 else
2760 do_perfevent=check
2765 # Check whether --with-pmdajson was given.
2766 if test "${with_pmdajson+set}" = set; then :
2767 withval=$with_pmdajson; do_pmdajson=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2768 else
2769 do_pmdajson=check
2774 # Check whether --with-pmdasnmp was given.
2775 if test "${with_pmdasnmp+set}" = set; then :
2776 withval=$with_pmdasnmp; do_pmdasnmp=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2777 else
2778 do_pmdasnmp=check
2783 # Check whether --with-manager was given.
2784 if test "${with_manager+set}" = set; then :
2785 withval=$with_manager; do_manager=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-manager=$withval"
2786 else
2787 do_manager=check
2792 # Check whether --with-webapi was given.
2793 if test "${with_webapi+set}" = set; then :
2794 withval=$with_webapi; do_webapi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webapi=$withval"
2795 else
2796 do_webapi=check
2801 # Check whether --with-webjs was given.
2802 if test "${with_webjs+set}" = set; then :
2803 withval=$with_webjs; do_webjs=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webjs=$withval"
2804 else
2805 do_webjs=no
2810 # Check whether --with-vector was given.
2811 if test "${with_vector+set}" = set; then :
2812 withval=$with_vector; do_vector=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-vector=$withval"
2813 else
2814 do_vector=no
2819 # Check whether --with-parfait was given.
2820 if test "${with_parfait+set}" = set; then :
2821 withval=$with_parfait; do_parfait=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-parfait=$withval"
2822 else
2823 do_parfait=no
2829 # Check whether --with-make was given.
2830 if test "${with_make+set}" = set; then :
2831 withval=$with_make; MAKE=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-make=$withval"
2832 else
2833 MAKE=''
2838 # Check whether --with-tar was given.
2839 if test "${with_tar+set}" = set; then :
2840 withval=$with_tar; TAR=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-tar=$withval"
2841 else
2842 TAR=''
2847 # Check whether --with-zip was given.
2848 if test "${with_zip+set}" = set; then :
2849 withval=$with_zip; ZIP=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-zip=$withval"
2850 else
2851 ZIP=''
2856 # Note: the following environment variables may be
2857 # set to override the defaults.
2859 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2862 ac_aux_dir=
2863 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2864 if test -f "$ac_dir/install-sh"; then
2865 ac_aux_dir=$ac_dir
2866 ac_install_sh="$ac_aux_dir/install-sh -c"
2867 break
2868 elif test -f "$ac_dir/install.sh"; then
2869 ac_aux_dir=$ac_dir
2870 ac_install_sh="$ac_aux_dir/install.sh -c"
2871 break
2872 elif test -f "$ac_dir/shtool"; then
2873 ac_aux_dir=$ac_dir
2874 ac_install_sh="$ac_aux_dir/shtool install -c"
2875 break
2877 done
2878 if test -z "$ac_aux_dir"; then
2879 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2882 # These three variables are undocumented and unsupported,
2883 # and are intended to be withdrawn in a future Autoconf release.
2884 # They can cause serious problems if a builder's source tree is in a directory
2885 # whose full name contains unusual characters.
2886 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2887 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2888 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2891 # Make sure we can run config.sub.
2892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2893 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2896 $as_echo_n "checking build system type... " >&6; }
2897 if ${ac_cv_build+:} false; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 ac_build_alias=$build_alias
2901 test "x$ac_build_alias" = x &&
2902 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2903 test "x$ac_build_alias" = x &&
2904 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2905 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2906 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2910 $as_echo "$ac_cv_build" >&6; }
2911 case $ac_cv_build in
2912 *-*-*) ;;
2913 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2914 esac
2915 build=$ac_cv_build
2916 ac_save_IFS=$IFS; IFS='-'
2917 set x $ac_cv_build
2918 shift
2919 build_cpu=$1
2920 build_vendor=$2
2921 shift; shift
2922 # Remember, the first character of IFS is used to create $*,
2923 # except with old shells:
2924 build_os=$*
2925 IFS=$ac_save_IFS
2926 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2930 $as_echo_n "checking host system type... " >&6; }
2931 if ${ac_cv_host+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 if test "x$host_alias" = x; then
2935 ac_cv_host=$ac_cv_build
2936 else
2937 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2938 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2943 $as_echo "$ac_cv_host" >&6; }
2944 case $ac_cv_host in
2945 *-*-*) ;;
2946 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2947 esac
2948 host=$ac_cv_host
2949 ac_save_IFS=$IFS; IFS='-'
2950 set x $ac_cv_host
2951 shift
2952 host_cpu=$1
2953 host_vendor=$2
2954 shift; shift
2955 # Remember, the first character of IFS is used to create $*,
2956 # except with old shells:
2957 host_os=$*
2958 IFS=$ac_save_IFS
2959 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2963 $as_echo_n "checking target system type... " >&6; }
2964 if ${ac_cv_target+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test "x$target_alias" = x; then
2968 ac_cv_target=$ac_cv_host
2969 else
2970 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2971 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2976 $as_echo "$ac_cv_target" >&6; }
2977 case $ac_cv_target in
2978 *-*-*) ;;
2979 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2980 esac
2981 target=$ac_cv_target
2982 ac_save_IFS=$IFS; IFS='-'
2983 set x $ac_cv_target
2984 shift
2985 target_cpu=$1
2986 target_vendor=$2
2987 shift; shift
2988 # Remember, the first character of IFS is used to create $*,
2989 # except with old shells:
2990 target_os=$*
2991 IFS=$ac_save_IFS
2992 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2995 # The aliases save the names the user supplied, while $host etc.
2996 # will get canonicalized.
2997 test -n "$target_alias" &&
2998 test "$program_prefix$program_suffix$program_transform_name" = \
2999 NONENONEs,x,x, &&
3000 program_prefix=${target_alias}-
3002 if test -z "$target"
3003 then
3004 echo '
3005 FATAL ERROR: Cannot guess your target, try explicit specification
3006 using --target or mailto: pcp@oss.sgi.com to ask.'
3007 rm -rf conftest conftest.*
3008 exit 1
3009 else
3010 target=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3011 target_os=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3012 target_os=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3014 build=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3015 build_os=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3016 build_os=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3019 echo Building on $build for $target
3020 echo "Build: os=$build_os cpu=$build_cpu"
3021 echo "Target: os=$target_os cpu=$target_cpu"
3023 if test "$cross_compiling" = "yes"; then
3024 if test -f ./config.$target_os; then
3025 . ./config.$target_os
3026 else
3027 echo
3028 echo "
3029 FATAL ERROR: Cannot perform cross-compilation without a file to source
3030 configuration information from (config.$target_os is missing)"
3031 rm -rf conftest conftest.*
3032 exit 1
3038 target_distro=$target_os
3039 if test $target_os = linux
3040 then
3042 $as_echo "#define IS_LINUX 1" >>confdefs.h
3044 test -f /etc/SuSE-release && target_distro=suse
3045 test -f /etc/fedora-release && target_distro=fedora
3046 test -f /etc/redhat-release && target_distro=redhat
3047 test -f /etc/debian_version && target_distro=debian
3048 test -f /etc/slackware-version && target_distro=slackware
3049 test -f /etc/gentoo-release && target_distro=gentoo
3050 test -f /etc/mandriva-release && target_distro=mandriva
3051 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3052 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3053 pcp_ps_all_flags=-efw
3054 elif test $target_os = darwin
3055 then
3057 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3059 target_distro=macosx
3060 version=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3061 CFLAGS="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3062 if test $version -ge 106
3063 then
3064 target_distro=cocoa
3065 CFLAGS="$CFLAGS -arch x86_64"
3067 export CFLAGS
3068 pcp_platform_paths='/usr/local/bin'
3069 pcp_ps_all_flags="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3070 elif test $target_os = mingw
3071 then
3073 $as_echo "#define IS_MINGW 1" >>confdefs.h
3075 CFLAGS="-fno-strict-aliasing"
3076 pcp_platform_paths=''
3077 pcp_ps_all_flags=-efW
3078 elif test $target_os = solaris
3079 then
3081 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3083 export CFLAGS_IF_GCC="-fPIC -fno-strict-aliasing"
3084 export CFLAGS_IF_SUNCC="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3085 pcp_platform_paths='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3086 pcp_ps_all_flags=-ef
3087 elif test $target_os = aix
3088 then
3090 $as_echo "#define IS_AIX 1" >>confdefs.h
3092 export CFLAGS="-qcpluscmt"
3093 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3094 pcp_ps_all_flags=-ef
3095 elif test $target_os = freebsd || test $target_os = kfreebsd
3096 then
3098 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3100 test -f /etc/debian_version && target_distro=debian
3101 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3102 if test $target_os = kfreebsd
3103 then
3104 pcp_ps_all_flags=-efw
3105 else
3106 pcp_ps_all_flags=auxww
3108 pcp_platform_paths='/usr/bin/X11'
3109 test -d /usr/local/bin && pcp_platform_paths="$pcp_platform_paths:/usr/local/bin"
3110 test -d /usr/bsd && pcp_platform_paths="$pcp_platform_paths:/usr/bsd"
3111 elif test $target_os = gnu
3112 then
3114 $as_echo "#define IS_GNU 1" >>confdefs.h
3116 test -f /etc/debian_version && target_distro=debian
3117 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3118 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3119 pcp_ps_all_flags=-efw
3120 elif test $target_os = netbsdelf
3121 then
3122 target_os=netbsd
3124 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3126 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3127 pcp_platform_paths='/usr/pkg/bin'
3128 pcp_ps_all_flags=auxww
3129 elif test $target_os = openbsd
3130 then
3131 target_os=openbsd
3133 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3135 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3136 pcp_platform_paths='/usr/local/bin'
3137 pcp_ps_all_flags=auxww
3138 else
3139 echo
3140 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3141 rm -rf conftest conftest.*
3142 exit 1
3147 if test "$use_optimization" = no
3148 then
3149 optimization="-O0 -g"
3150 else
3151 optimization="-O2 -g"
3162 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 case $PKG_CONFIG in
3172 [\\/]* | ?:[\\/]*)
3173 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3187 done
3188 done
3189 IFS=$as_save_IFS
3192 esac
3194 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3195 if test -n "$PKG_CONFIG"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3197 $as_echo "$PKG_CONFIG" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3205 if test -z "$ac_cv_path_PKG_CONFIG"; then
3206 ac_pt_PKG_CONFIG=$PKG_CONFIG
3207 # Extract the first word of "pkg-config", so it can be a program name with args.
3208 set dummy pkg-config; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 case $ac_pt_PKG_CONFIG in
3215 [\\/]* | ?:[\\/]*)
3216 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3230 done
3231 done
3232 IFS=$as_save_IFS
3235 esac
3237 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3238 if test -n "$ac_pt_PKG_CONFIG"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3240 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3246 if test "x$ac_pt_PKG_CONFIG" = x; then
3247 PKG_CONFIG=""
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255 PKG_CONFIG=$ac_pt_PKG_CONFIG
3257 else
3258 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3262 if test -n "$PKG_CONFIG"; then
3263 _pkg_min_version=0.9.0
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3265 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3266 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 PKG_CONFIG=""
3275 if test -z "$PKG_CONFIG"; then
3276 as_fn_error $? "cannot find a 'pkg-config' command" "$LINENO" 5
3279 cflags_abi=
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 if test -n "$ac_tool_prefix"; then
3286 for ac_prog in suncc egcc gcc cc
3288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_CC+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3309 done
3310 done
3311 IFS=$as_save_IFS
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3325 test -n "$CC" && break
3326 done
3328 if test -z "$CC"; then
3329 ac_ct_CC=$CC
3330 for ac_prog in suncc egcc gcc cc
3332 # Extract the first word of "$ac_prog", so it can be a program name with args.
3333 set dummy $ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 if test -n "$ac_ct_CC"; then
3340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_ac_ct_CC="$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3353 done
3354 done
3355 IFS=$as_save_IFS
3359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3360 if test -n "$ac_ct_CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3362 $as_echo "$ac_ct_CC" >&6; }
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3369 test -n "$ac_ct_CC" && break
3370 done
3372 if test "x$ac_ct_CC" = x; then
3373 CC=""
3374 else
3375 case $cross_compiling:$ac_tool_warned in
3376 yes:)
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3379 ac_tool_warned=yes ;;
3380 esac
3381 CC=$ac_ct_CC
3386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error $? "no acceptable C compiler found in \$PATH
3389 See \`config.log' for more details" "$LINENO" 5; }
3391 # Provide some information about the compiler.
3392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3393 set X $ac_compile
3394 ac_compiler=$2
3395 for ac_option in --version -v -V -qversion; do
3396 { { ac_try="$ac_compiler $ac_option >&5"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3404 ac_status=$?
3405 if test -s conftest.err; then
3406 sed '10a\
3407 ... rest of stderr output deleted ...
3408 10q' conftest.err >conftest.er1
3409 cat conftest.er1 >&5
3411 rm -f conftest.er1 conftest.err
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }
3414 done
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3420 main ()
3424 return 0;
3426 _ACEOF
3427 ac_clean_files_save=$ac_clean_files
3428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3429 # Try to create an executable without -o first, disregard a.out.
3430 # It will help us diagnose broken compilers, and finding out an intuition
3431 # of exeext.
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3433 $as_echo_n "checking whether the C compiler works... " >&6; }
3434 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3436 # The possible output files:
3437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3439 ac_rmfiles=
3440 for ac_file in $ac_files
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3445 esac
3446 done
3447 rm -f $ac_rmfiles
3449 if { { ac_try="$ac_link_default"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_link_default") 2>&5
3457 ac_status=$?
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; then :
3460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3463 # so that the user can short-circuit this test for compilers unknown to
3464 # Autoconf.
3465 for ac_file in $ac_files ''
3467 test -f "$ac_file" || continue
3468 case $ac_file in
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3471 [ab].out )
3472 # We found the default executable, but exeext='' is most
3473 # certainly right.
3474 break;;
3475 *.* )
3476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3477 then :; else
3478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3480 # We set ac_cv_exeext here because the later test for it is not
3481 # safe: cross compilers may not add the suffix if given an `-o'
3482 # argument, so we may need to know it at that point already.
3483 # Even if this section looks crufty: it has the advantage of
3484 # actually working.
3485 break;;
3487 break;;
3488 esac
3489 done
3490 test "$ac_cv_exeext" = no && ac_cv_exeext=
3492 else
3493 ac_file=''
3495 if test -z "$ac_file"; then :
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error 77 "C compiler cannot create executables
3504 See \`config.log' for more details" "$LINENO" 5; }
3505 else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3507 $as_echo "yes" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3510 $as_echo_n "checking for C compiler default output file name... " >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3512 $as_echo "$ac_file" >&6; }
3513 ac_exeext=$ac_cv_exeext
3515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3516 ac_clean_files=$ac_clean_files_save
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3518 $as_echo_n "checking for suffix of executables... " >&6; }
3519 if { { ac_try="$ac_link"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_link") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; then :
3530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3531 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3532 # work properly (i.e., refer to `conftest.exe'), while it won't with
3533 # `rm'.
3534 for ac_file in conftest.exe conftest conftest.*; do
3535 test -f "$ac_file" || continue
3536 case $ac_file in
3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539 break;;
3540 * ) break;;
3541 esac
3542 done
3543 else
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3547 See \`config.log' for more details" "$LINENO" 5; }
3549 rm -f conftest conftest$ac_cv_exeext
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3551 $as_echo "$ac_cv_exeext" >&6; }
3553 rm -f conftest.$ac_ext
3554 EXEEXT=$ac_cv_exeext
3555 ac_exeext=$EXEEXT
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3558 #include <stdio.h>
3560 main ()
3562 FILE *f = fopen ("conftest.out", "w");
3563 return ferror (f) || fclose (f) != 0;
3566 return 0;
3568 _ACEOF
3569 ac_clean_files="$ac_clean_files conftest.out"
3570 # Check that the compiler produces executables we can run. If not, either
3571 # the compiler is broken, or we cross compile.
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3573 $as_echo_n "checking whether we are cross compiling... " >&6; }
3574 if test "$cross_compiling" != yes; then
3575 { { ac_try="$ac_link"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_link") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }
3586 if { ac_try='./conftest$ac_cv_exeext'
3587 { { case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_try") 2>&5
3594 ac_status=$?
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; }; then
3597 cross_compiling=no
3598 else
3599 if test "$cross_compiling" = maybe; then
3600 cross_compiling=yes
3601 else
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error $? "cannot run C compiled programs.
3605 If you meant to cross compile, use \`--host'.
3606 See \`config.log' for more details" "$LINENO" 5; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3611 $as_echo "$cross_compiling" >&6; }
3613 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3614 ac_clean_files=$ac_clean_files_save
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3616 $as_echo_n "checking for suffix of object files... " >&6; }
3617 if ${ac_cv_objext+:} false; then :
3618 $as_echo_n "(cached) " >&6
3619 else
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3624 main ()
3628 return 0;
3630 _ACEOF
3631 rm -f conftest.o conftest.obj
3632 if { { ac_try="$ac_compile"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_compile") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; then :
3643 for ac_file in conftest.o conftest.obj conftest.*; do
3644 test -f "$ac_file" || continue;
3645 case $ac_file in
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3648 break;;
3649 esac
3650 done
3651 else
3652 $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error $? "cannot compute suffix of object files: cannot compile
3658 See \`config.log' for more details" "$LINENO" 5; }
3660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3663 $as_echo "$ac_cv_objext" >&6; }
3664 OBJEXT=$ac_cv_objext
3665 ac_objext=$OBJEXT
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3668 if ${ac_cv_c_compiler_gnu+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3675 main ()
3677 #ifndef __GNUC__
3678 choke me
3679 #endif
3682 return 0;
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"; then :
3686 ac_compiler_gnu=yes
3687 else
3688 ac_compiler_gnu=no
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3696 if test $ac_compiler_gnu = yes; then
3697 GCC=yes
3698 else
3699 GCC=
3701 ac_test_CFLAGS=${CFLAGS+set}
3702 ac_save_CFLAGS=$CFLAGS
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3705 if ${ac_cv_prog_cc_g+:} false; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 ac_save_c_werror_flag=$ac_c_werror_flag
3709 ac_c_werror_flag=yes
3710 ac_cv_prog_cc_g=no
3711 CFLAGS="-g"
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3716 main ()
3720 return 0;
3722 _ACEOF
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_prog_cc_g=yes
3725 else
3726 CFLAGS=""
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3731 main ()
3735 return 0;
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3740 else
3741 ac_c_werror_flag=$ac_save_c_werror_flag
3742 CFLAGS="-g"
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3747 main ()
3751 return 0;
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755 ac_cv_prog_cc_g=yes
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ac_c_werror_flag=$ac_save_c_werror_flag
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3765 $as_echo "$ac_cv_prog_cc_g" >&6; }
3766 if test "$ac_test_CFLAGS" = set; then
3767 CFLAGS=$ac_save_CFLAGS
3768 elif test $ac_cv_prog_cc_g = yes; then
3769 if test "$GCC" = yes; then
3770 CFLAGS="-g -O2"
3771 else
3772 CFLAGS="-g"
3774 else
3775 if test "$GCC" = yes; then
3776 CFLAGS="-O2"
3777 else
3778 CFLAGS=
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3783 if ${ac_cv_prog_cc_c89+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 ac_cv_prog_cc_c89=no
3787 ac_save_CC=$CC
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790 #include <stdarg.h>
3791 #include <stdio.h>
3792 struct stat;
3793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3794 struct buf { int x; };
3795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3796 static char *e (p, i)
3797 char **p;
3798 int i;
3800 return p[i];
3802 static char *f (char * (*g) (char **, int), char **p, ...)
3804 char *s;
3805 va_list v;
3806 va_start (v,p);
3807 s = g (p, va_arg (v,int));
3808 va_end (v);
3809 return s;
3812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3813 function prototypes and stuff, but not '\xHH' hex character constants.
3814 These don't provoke an error unfortunately, instead are silently treated
3815 as 'x'. The following induces an error, until -std is added to get
3816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3817 array size at least. It's necessary to write '\x00'==0 to get something
3818 that's true only with -std. */
3819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3822 inside strings and character constants. */
3823 #define FOO(x) 'x'
3824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3826 int test (int i, double x);
3827 struct s1 {int (*f) (int a);};
3828 struct s2 {int (*f) (double a);};
3829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3830 int argc;
3831 char **argv;
3833 main ()
3835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3837 return 0;
3839 _ACEOF
3840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3843 CC="$ac_save_CC $ac_arg"
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_cv_prog_cc_c89=$ac_arg
3847 rm -f core conftest.err conftest.$ac_objext
3848 test "x$ac_cv_prog_cc_c89" != "xno" && break
3849 done
3850 rm -f conftest.$ac_ext
3851 CC=$ac_save_CC
3854 # AC_CACHE_VAL
3855 case "x$ac_cv_prog_cc_c89" in
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858 $as_echo "none needed" >&6; } ;;
3859 xno)
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3861 $as_echo "unsupported" >&6; } ;;
3863 CC="$CC $ac_cv_prog_cc_c89"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3866 esac
3867 if test "x$ac_cv_prog_cc_c89" != xno; then :
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 if test $target_os = solaris
3878 then
3879 # Extract the first word of "$CC", so it can be a program name with args.
3880 set dummy $CC; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_path_CCPATH+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 case $CCPATH in
3887 [\\/]* | ?:[\\/]*)
3888 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3904 IFS=$as_save_IFS
3906 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3908 esac
3910 CCPATH=$ac_cv_path_CCPATH
3911 if test -n "$CCPATH"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3913 $as_echo "$CCPATH" >&6; }
3914 else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3920 cc=$CCPATH
3921 if test "$GCC" = "yes"
3922 then
3923 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3924 else
3925 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3927 if test "$use_64bit" = "no"
3928 then
3930 else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3932 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3933 case `isainfo -k`
3935 amd64|sparcv9)
3936 cflags_abi=-m64
3937 CFLAGS="$CFLAGS -m64"
3938 LDFLAGS="$LDFLAGS -m64"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3946 esac
3948 else
3949 cc=$CC
3952 cc_is_gcc=$GCC
3955 PCFLAGS="$CFLAGS"
3956 PLDFLAGS=$LDFLAGS
3958 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3959 then
3960 CFLAGS="-O $PCFLAGS"
3964 # Add some security-related gcc flags
3965 if echo "$CFLAGS" | grep stack-protector >/dev/null
3966 then
3968 else
3969 # Check whether --enable-ssp was given.
3970 if test "${enable_ssp+set}" = set; then :
3971 enableval=$enable_ssp;
3975 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3977 save_CFLAGS="$CFLAGS"
3978 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3981 int something ();
3982 _ACEOF
3983 if ac_fn_c_try_compile "$LINENO"; then :
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3986 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3987 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3988 else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3991 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3992 CFLAGS="$save_CFLAGS"
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 # Check for even more security-related gcc/linker flags, useful for daemons
4003 # Check whether --enable-pie was given.
4004 if test "${enable_pie+set}" = set; then :
4005 enableval=$enable_pie;
4008 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4010 PIECFLAGS='-fPIE'
4011 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4012 save_CFLAGS="$CFLAGS"
4013 save_LDFLAGS="$LDFLAGS"
4014 CFLAGS="$CFLAGS $PIECFLAGS"
4015 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 void main () {}
4019 _ACEOF
4020 if ac_fn_c_try_link "$LINENO"; then :
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4023 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4025 else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4028 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4029 PIECFLAGS=""
4030 PIELDFLAGS=""
4033 rm -f core conftest.err conftest.$ac_objext \
4034 conftest$ac_exeext conftest.$ac_ext
4035 CFLAGS="$save_CFLAGS"
4036 LDFLAGS="$save_LDFLAGS"
4042 # Check for support for symbol hiding via gcc flags
4043 # Check whether --enable-visibility was given.
4044 if test "${enable_visibility+set}" = set; then :
4045 enableval=$enable_visibility;
4048 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4050 INVISIBILITY="-fvisibility=hidden"
4051 save_CFLAGS="$CFLAGS"
4052 CFLAGS="$CFLAGS -c $INVISIBILITY"
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 int visible () { return 0; }
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"; then :
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4060 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4062 else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4065 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4066 INVISIBILITY=""
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 CFLAGS="$save_CFLAGS"
4075 ac_ext=cpp
4076 ac_cpp='$CXXCPP $CPPFLAGS'
4077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4080 if test -z "$CXX"; then
4081 if test -n "$CCC"; then
4082 CXX=$CCC
4083 else
4084 if test -n "$ac_tool_prefix"; then
4085 for ac_prog in eg++ g++ c++
4087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CXX+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 if test -n "$CXX"; then
4095 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4108 done
4109 done
4110 IFS=$as_save_IFS
4114 CXX=$ac_cv_prog_CXX
4115 if test -n "$CXX"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4117 $as_echo "$CXX" >&6; }
4118 else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4124 test -n "$CXX" && break
4125 done
4127 if test -z "$CXX"; then
4128 ac_ct_CXX=$CXX
4129 for ac_prog in eg++ g++ c++
4131 # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy $ac_prog; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -n "$ac_ct_CXX"; then
4139 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_ac_ct_CXX="$ac_prog"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 break 2
4152 done
4153 done
4154 IFS=$as_save_IFS
4158 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4159 if test -n "$ac_ct_CXX"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4161 $as_echo "$ac_ct_CXX" >&6; }
4162 else
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4168 test -n "$ac_ct_CXX" && break
4169 done
4171 if test "x$ac_ct_CXX" = x; then
4172 CXX="g++"
4173 else
4174 case $cross_compiling:$ac_tool_warned in
4175 yes:)
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178 ac_tool_warned=yes ;;
4179 esac
4180 CXX=$ac_ct_CXX
4186 # Provide some information about the compiler.
4187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4188 set X $ac_compile
4189 ac_compiler=$2
4190 for ac_option in --version -v -V -qversion; do
4191 { { ac_try="$ac_compiler $ac_option >&5"
4192 case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4199 ac_status=$?
4200 if test -s conftest.err; then
4201 sed '10a\
4202 ... rest of stderr output deleted ...
4203 10q' conftest.err >conftest.er1
4204 cat conftest.er1 >&5
4206 rm -f conftest.er1 conftest.err
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }
4209 done
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4212 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4213 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4220 main ()
4222 #ifndef __GNUC__
4223 choke me
4224 #endif
4227 return 0;
4229 _ACEOF
4230 if ac_fn_cxx_try_compile "$LINENO"; then :
4231 ac_compiler_gnu=yes
4232 else
4233 ac_compiler_gnu=no
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4240 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4241 if test $ac_compiler_gnu = yes; then
4242 GXX=yes
4243 else
4244 GXX=
4246 ac_test_CXXFLAGS=${CXXFLAGS+set}
4247 ac_save_CXXFLAGS=$CXXFLAGS
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4249 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4250 if ${ac_cv_prog_cxx_g+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4254 ac_cxx_werror_flag=yes
4255 ac_cv_prog_cxx_g=no
4256 CXXFLAGS="-g"
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4261 main ()
4265 return 0;
4267 _ACEOF
4268 if ac_fn_cxx_try_compile "$LINENO"; then :
4269 ac_cv_prog_cxx_g=yes
4270 else
4271 CXXFLAGS=""
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4276 main ()
4280 return 0;
4282 _ACEOF
4283 if ac_fn_cxx_try_compile "$LINENO"; then :
4285 else
4286 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4287 CXXFLAGS="-g"
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4292 main ()
4296 return 0;
4298 _ACEOF
4299 if ac_fn_cxx_try_compile "$LINENO"; then :
4300 ac_cv_prog_cxx_g=yes
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4310 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4311 if test "$ac_test_CXXFLAGS" = set; then
4312 CXXFLAGS=$ac_save_CXXFLAGS
4313 elif test $ac_cv_prog_cxx_g = yes; then
4314 if test "$GXX" = yes; then
4315 CXXFLAGS="-g -O2"
4316 else
4317 CXXFLAGS="-g"
4319 else
4320 if test "$GXX" = yes; then
4321 CXXFLAGS="-O2"
4322 else
4323 CXXFLAGS=
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 cxx=$CXX
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4335 $as_echo_n "checking for working C++ compiler... " >&6; }
4336 ac_ext=cpp
4337 ac_cpp='$CXXCPP $CPPFLAGS'
4338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <cstdio>
4347 main ()
4349 const char gday[] = "G'day, world\n";
4351 return 0;
4353 _ACEOF
4354 if ac_fn_cxx_try_compile "$LINENO"; then :
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 cxx=""
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370 # Prevent shared libraries from being built for libpcp and other core libraries
4371 # Check whether --enable-shared was given.
4372 if test "${enable_shared+set}" = set; then :
4373 enableval=$enable_shared; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --disable-shared=$withval"
4379 test -z "$AWK" && for ac_prog in gawk awk
4381 # Extract the first word of "$ac_prog", so it can be a program name with args.
4382 set dummy $ac_prog; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_path_AWK+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 case $AWK in
4389 [\\/]* | ?:[\\/]*)
4390 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4406 IFS=$as_save_IFS
4409 esac
4411 AWK=$ac_cv_path_AWK
4412 if test -n "$AWK"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4414 $as_echo "$AWK" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4421 test -n "$AWK" && break
4422 done
4423 test -n "$AWK" || AWK="/usr/bin/awk"
4425 case "$AWK"
4427 gawk|*/gawk)
4428 awk="$AWK --posix"
4431 awk=$AWK
4433 esac
4436 if test -z "$SED"; then
4437 # Extract the first word of "sed", so it can be a program name with args.
4438 set dummy sed; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if ${ac_cv_path_SED+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 case $SED in
4445 [\\/]* | ?:[\\/]*)
4446 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4460 done
4461 done
4462 IFS=$as_save_IFS
4464 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4466 esac
4468 SED=$ac_cv_path_SED
4469 if test -n "$SED"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4471 $as_echo "$SED" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4479 if test ! -x "$SED"; then
4480 as_fn_error $? "cannot find a valid 'sed' command." "$LINENO" 5
4482 sed=$SED
4485 if test -z "$ECHO"; then
4486 # Extract the first word of "echo", so it can be a program name with args.
4487 set dummy echo; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if ${ac_cv_path_ECHO+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 case $ECHO in
4494 [\\/]* | ?:[\\/]*)
4495 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4509 done
4510 done
4511 IFS=$as_save_IFS
4513 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4515 esac
4517 ECHO=$ac_cv_path_ECHO
4518 if test -n "$ECHO"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4520 $as_echo "$ECHO" >&6; }
4521 else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4528 if test ! -x "$ECHO"; then
4529 as_fn_error $? "cannot find a valid 'echo' command." "$LINENO" 5
4531 echo=$ECHO
4534 if test -z "$FIND"; then
4535 # Extract the first word of "find", so it can be a program name with args.
4536 set dummy find; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_path_FIND+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 case $FIND in
4543 [\\/]* | ?:[\\/]*)
4544 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4558 done
4559 done
4560 IFS=$as_save_IFS
4562 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="/usr/bin/find"
4564 esac
4566 FIND=$ac_cv_path_FIND
4567 if test -n "$FIND"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4569 $as_echo "$FIND" >&6; }
4570 else
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4577 if test ! -x "$FIND"; then
4578 as_fn_error $? "cannot find a valid 'find' command." "$LINENO" 5
4580 find=$FIND
4583 if test -z "$WHICH"; then
4584 # Extract the first word of "which", so it can be a program name with args.
4585 set dummy which; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_path_WHICH+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 case $WHICH in
4592 [\\/]* | ?:[\\/]*)
4593 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4607 done
4608 done
4609 IFS=$as_save_IFS
4611 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4613 esac
4615 WHICH=$ac_cv_path_WHICH
4616 if test -n "$WHICH"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4618 $as_echo "$WHICH" >&6; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4626 if test ! -x "$WHICH"; then
4627 as_fn_error $? "cannot find a valid 'which' command." "$LINENO" 5
4629 which=$WHICH
4632 for ac_prog in flex lex
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635 set dummy $ac_prog; ac_word=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_LEX+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if test -n "$LEX"; then
4642 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4643 else
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_LEX="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4655 done
4656 done
4657 IFS=$as_save_IFS
4661 LEX=$ac_cv_prog_LEX
4662 if test -n "$LEX"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4664 $as_echo "$LEX" >&6; }
4665 else
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4671 test -n "$LEX" && break
4672 done
4673 test -n "$LEX" || LEX=":"
4675 if test "x$LEX" != "x:"; then
4676 cat >conftest.l <<_ACEOF
4678 a { ECHO; }
4679 b { REJECT; }
4680 c { yymore (); }
4681 d { yyless (1); }
4682 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4683 yyless ((input () != 0)); }
4684 f { unput (yytext[0]); }
4685 . { BEGIN INITIAL; }
4687 #ifdef YYTEXT_POINTER
4688 extern char *yytext;
4689 #endif
4691 main (void)
4693 return ! yylex () + ! yywrap ();
4695 _ACEOF
4696 { { ac_try="$LEX conftest.l"
4697 case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703 (eval "$LEX conftest.l") 2>&5
4704 ac_status=$?
4705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4706 test $ac_status = 0; }
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4708 $as_echo_n "checking lex output file root... " >&6; }
4709 if ${ac_cv_prog_lex_root+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4713 if test -f lex.yy.c; then
4714 ac_cv_prog_lex_root=lex.yy
4715 elif test -f lexyy.c; then
4716 ac_cv_prog_lex_root=lexyy
4717 else
4718 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4722 $as_echo "$ac_cv_prog_lex_root" >&6; }
4723 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4725 if test -z "${LEXLIB+set}"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4727 $as_echo_n "checking lex library... " >&6; }
4728 if ${ac_cv_lib_lex+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4732 ac_save_LIBS=$LIBS
4733 ac_cv_lib_lex='none needed'
4734 for ac_lib in '' -lfl -ll; do
4735 LIBS="$ac_lib $ac_save_LIBS"
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 `cat $LEX_OUTPUT_ROOT.c`
4739 _ACEOF
4740 if ac_fn_c_try_link "$LINENO"; then :
4741 ac_cv_lib_lex=$ac_lib
4743 rm -f core conftest.err conftest.$ac_objext \
4744 conftest$ac_exeext conftest.$ac_ext
4745 test "$ac_cv_lib_lex" != 'none needed' && break
4746 done
4747 LIBS=$ac_save_LIBS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4751 $as_echo "$ac_cv_lib_lex" >&6; }
4752 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4757 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4758 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 # POSIX says lex can declare yytext either as a pointer or an array; the
4762 # default is implementation-dependent. Figure out which it is, since
4763 # not all implementations provide the %pointer and %array declarations.
4764 ac_cv_prog_lex_yytext_pointer=no
4765 ac_save_LIBS=$LIBS
4766 LIBS="$LEXLIB $ac_save_LIBS"
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4770 #define YYTEXT_POINTER 1
4771 `cat $LEX_OUTPUT_ROOT.c`
4772 _ACEOF
4773 if ac_fn_c_try_link "$LINENO"; then :
4774 ac_cv_prog_lex_yytext_pointer=yes
4776 rm -f core conftest.err conftest.$ac_objext \
4777 conftest$ac_exeext conftest.$ac_ext
4778 LIBS=$ac_save_LIBS
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4782 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4783 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4785 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4788 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4791 lex=`$echo $LEX | awk '{print $1}'`
4792 lex=`$which "$lex"`
4793 if test ! -x "$lex"; then
4794 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4796 lex=$LEX
4799 for ac_prog in 'bison -y' byacc
4801 # Extract the first word of "$ac_prog", so it can be a program name with args.
4802 set dummy $ac_prog; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_YACC+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -n "$YACC"; then
4809 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_YACC="$ac_prog"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4822 done
4823 done
4824 IFS=$as_save_IFS
4828 YACC=$ac_cv_prog_YACC
4829 if test -n "$YACC"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4831 $as_echo "$YACC" >&6; }
4832 else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4838 test -n "$YACC" && break
4839 done
4840 test -n "$YACC" || YACC="yacc"
4842 yacc=`$echo $YACC | awk '{print $1}'`
4843 yacc=`$which "$yacc"`
4844 if test ! -x "$yacc"; then
4845 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4847 yacc=$YACC
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4851 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4852 if test $target_os = mingw; then
4853 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4855 if test -x $d/sort; then
4856 sort=$d/sort
4857 break
4859 done
4860 else
4861 sort=`$which sort`
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4864 $as_echo "$sort" >&6; }
4865 $sort -n </dev/null
4866 if test $? != 0
4867 then
4868 echo
4869 echo "FATAL ERROR: $sort -n failed!"
4870 rm -rf conftest conftest.*
4871 exit 1
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4876 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4877 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4878 then
4879 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4880 then
4881 echo_n= echo_c=
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4883 $as_echo "neither?" >&6; }
4884 else
4885 echo_n=-n echo_c=
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4887 $as_echo " -n" >&6; }
4889 else
4890 echo_n= echo_c='\c'
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4892 $as_echo "backslash-c" >&6; }
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4898 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4899 if ${ac_cv_path_GREP+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -z "$GREP"; then
4903 ac_path_GREP_found=false
4904 # Loop through the user's path and test for each of PROGNAME-LIST
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_prog in grep ggrep; do
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4913 as_fn_executable_p "$ac_path_GREP" || continue
4914 # Check for GNU ac_path_GREP and select it if it is found.
4915 # Check for GNU $ac_path_GREP
4916 case `"$ac_path_GREP" --version 2>&1` in
4917 *GNU*)
4918 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4920 ac_count=0
4921 $as_echo_n 0123456789 >"conftest.in"
4922 while :
4924 cat "conftest.in" "conftest.in" >"conftest.tmp"
4925 mv "conftest.tmp" "conftest.in"
4926 cp "conftest.in" "conftest.nl"
4927 $as_echo 'GREP' >> "conftest.nl"
4928 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4930 as_fn_arith $ac_count + 1 && ac_count=$as_val
4931 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4932 # Best one so far, save it but keep looking for a better one
4933 ac_cv_path_GREP="$ac_path_GREP"
4934 ac_path_GREP_max=$ac_count
4936 # 10*(2^10) chars as input seems more than enough
4937 test $ac_count -gt 10 && break
4938 done
4939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4940 esac
4942 $ac_path_GREP_found && break 3
4943 done
4944 done
4945 done
4946 IFS=$as_save_IFS
4947 if test -z "$ac_cv_path_GREP"; then
4948 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4950 else
4951 ac_cv_path_GREP=$GREP
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4956 $as_echo "$ac_cv_path_GREP" >&6; }
4957 GREP="$ac_cv_path_GREP"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4961 $as_echo_n "checking for egrep... " >&6; }
4962 if ${ac_cv_path_EGREP+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4966 then ac_cv_path_EGREP="$GREP -E"
4967 else
4968 if test -z "$EGREP"; then
4969 ac_path_EGREP_found=false
4970 # Loop through the user's path and test for each of PROGNAME-LIST
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_prog in egrep; do
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4979 as_fn_executable_p "$ac_path_EGREP" || continue
4980 # Check for GNU ac_path_EGREP and select it if it is found.
4981 # Check for GNU $ac_path_EGREP
4982 case `"$ac_path_EGREP" --version 2>&1` in
4983 *GNU*)
4984 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4986 ac_count=0
4987 $as_echo_n 0123456789 >"conftest.in"
4988 while :
4990 cat "conftest.in" "conftest.in" >"conftest.tmp"
4991 mv "conftest.tmp" "conftest.in"
4992 cp "conftest.in" "conftest.nl"
4993 $as_echo 'EGREP' >> "conftest.nl"
4994 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4996 as_fn_arith $ac_count + 1 && ac_count=$as_val
4997 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4998 # Best one so far, save it but keep looking for a better one
4999 ac_cv_path_EGREP="$ac_path_EGREP"
5000 ac_path_EGREP_max=$ac_count
5002 # 10*(2^10) chars as input seems more than enough
5003 test $ac_count -gt 10 && break
5004 done
5005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5006 esac
5008 $ac_path_EGREP_found && break 3
5009 done
5010 done
5011 done
5012 IFS=$as_save_IFS
5013 if test -z "$ac_cv_path_EGREP"; then
5014 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5016 else
5017 ac_cv_path_EGREP=$EGREP
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5023 $as_echo "$ac_cv_path_EGREP" >&6; }
5024 EGREP="$ac_cv_path_EGREP"
5028 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5029 then
5030 enable_probes=true
5031 for ac_prog in dtrace
5033 # Extract the first word of "$ac_prog", so it can be a program name with args.
5034 set dummy $ac_prog; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_prog_DTRACE+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$DTRACE"; then
5041 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_DTRACE="$ac_prog"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5054 done
5055 done
5056 IFS=$as_save_IFS
5060 DTRACE=$ac_cv_prog_DTRACE
5061 if test -n "$DTRACE"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5063 $as_echo "$DTRACE" >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 test -n "$DTRACE" && break
5071 done
5073 if test -z "$DTRACE"
5074 then
5075 if test "$do_probes" = "yes"
5076 then
5077 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5079 enable_probes=false
5081 ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5087 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5088 # On Suns, sometimes $CPP names a directory.
5089 if test -n "$CPP" && test -d "$CPP"; then
5090 CPP=
5092 if test -z "$CPP"; then
5093 if ${ac_cv_prog_CPP+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 # Double quotes because CPP needs to be expanded
5097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5099 ac_preproc_ok=false
5100 for ac_c_preproc_warn_flag in '' yes
5102 # Use a header file that comes with gcc, so configuring glibc
5103 # with a fresh cross-compiler works.
5104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5105 # <limits.h> exists even on freestanding compilers.
5106 # On the NeXT, cc -E runs the code through the compiler's parser,
5107 # not just through cpp. "Syntax error" is here to catch this case.
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110 #ifdef __STDC__
5111 # include <limits.h>
5112 #else
5113 # include <assert.h>
5114 #endif
5115 Syntax error
5116 _ACEOF
5117 if ac_fn_c_try_cpp "$LINENO"; then :
5119 else
5120 # Broken: fails on valid input.
5121 continue
5123 rm -f conftest.err conftest.i conftest.$ac_ext
5125 # OK, works on sane cases. Now check whether nonexistent headers
5126 # can be detected and how.
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129 #include <ac_nonexistent.h>
5130 _ACEOF
5131 if ac_fn_c_try_cpp "$LINENO"; then :
5132 # Broken: success on invalid input.
5133 continue
5134 else
5135 # Passes both tests.
5136 ac_preproc_ok=:
5137 break
5139 rm -f conftest.err conftest.i conftest.$ac_ext
5141 done
5142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5143 rm -f conftest.i conftest.err conftest.$ac_ext
5144 if $ac_preproc_ok; then :
5145 break
5148 done
5149 ac_cv_prog_CPP=$CPP
5152 CPP=$ac_cv_prog_CPP
5153 else
5154 ac_cv_prog_CPP=$CPP
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5157 $as_echo "$CPP" >&6; }
5158 ac_preproc_ok=false
5159 for ac_c_preproc_warn_flag in '' yes
5161 # Use a header file that comes with gcc, so configuring glibc
5162 # with a fresh cross-compiler works.
5163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5164 # <limits.h> exists even on freestanding compilers.
5165 # On the NeXT, cc -E runs the code through the compiler's parser,
5166 # not just through cpp. "Syntax error" is here to catch this case.
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 #ifdef __STDC__
5170 # include <limits.h>
5171 #else
5172 # include <assert.h>
5173 #endif
5174 Syntax error
5175 _ACEOF
5176 if ac_fn_c_try_cpp "$LINENO"; then :
5178 else
5179 # Broken: fails on valid input.
5180 continue
5182 rm -f conftest.err conftest.i conftest.$ac_ext
5184 # OK, works on sane cases. Now check whether nonexistent headers
5185 # can be detected and how.
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 #include <ac_nonexistent.h>
5189 _ACEOF
5190 if ac_fn_c_try_cpp "$LINENO"; then :
5191 # Broken: success on invalid input.
5192 continue
5193 else
5194 # Passes both tests.
5195 ac_preproc_ok=:
5196 break
5198 rm -f conftest.err conftest.i conftest.$ac_ext
5200 done
5201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5202 rm -f conftest.i conftest.err conftest.$ac_ext
5203 if $ac_preproc_ok; then :
5205 else
5206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5208 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5209 See \`config.log' for more details" "$LINENO" 5; }
5212 ac_ext=c
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5220 $as_echo_n "checking for ANSI C header files... " >&6; }
5221 if ${ac_cv_header_stdc+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 #include <stdlib.h>
5227 #include <stdarg.h>
5228 #include <string.h>
5229 #include <float.h>
5232 main ()
5236 return 0;
5238 _ACEOF
5239 if ac_fn_c_try_compile "$LINENO"; then :
5240 ac_cv_header_stdc=yes
5241 else
5242 ac_cv_header_stdc=no
5244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 if test $ac_cv_header_stdc = yes; then
5247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 #include <string.h>
5252 _ACEOF
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254 $EGREP "memchr" >/dev/null 2>&1; then :
5256 else
5257 ac_cv_header_stdc=no
5259 rm -f conftest*
5263 if test $ac_cv_header_stdc = yes; then
5264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 #include <stdlib.h>
5269 _ACEOF
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "free" >/dev/null 2>&1; then :
5273 else
5274 ac_cv_header_stdc=no
5276 rm -f conftest*
5280 if test $ac_cv_header_stdc = yes; then
5281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5282 if test "$cross_compiling" = yes; then :
5284 else
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #include <ctype.h>
5288 #include <stdlib.h>
5289 #if ((' ' & 0x0FF) == 0x020)
5290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5292 #else
5293 # define ISLOWER(c) \
5294 (('a' <= (c) && (c) <= 'i') \
5295 || ('j' <= (c) && (c) <= 'r') \
5296 || ('s' <= (c) && (c) <= 'z'))
5297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5298 #endif
5300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5302 main ()
5304 int i;
5305 for (i = 0; i < 256; i++)
5306 if (XOR (islower (i), ISLOWER (i))
5307 || toupper (i) != TOUPPER (i))
5308 return 2;
5309 return 0;
5311 _ACEOF
5312 if ac_fn_c_try_run "$LINENO"; then :
5314 else
5315 ac_cv_header_stdc=no
5317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5318 conftest.$ac_objext conftest.beam conftest.$ac_ext
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5324 $as_echo "$ac_cv_header_stdc" >&6; }
5325 if test $ac_cv_header_stdc = yes; then
5327 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5331 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5332 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5333 inttypes.h stdint.h unistd.h
5334 do :
5335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5336 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5338 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5339 cat >>confdefs.h <<_ACEOF
5340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5341 _ACEOF
5345 done
5348 for ac_header in sys/sdt.h
5349 do :
5350 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5351 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
5352 cat >>confdefs.h <<_ACEOF
5353 #define HAVE_SYS_SDT_H 1
5354 _ACEOF
5356 if $enable_probes = true
5357 then
5358 if test $target_os = kfreebsd
5359 then
5360 enable_probes=false
5361 elif test $target_os = freebsd
5362 then
5363 rm -f conftest.d conftest.h
5364 cat <<End-of-File >conftest.d
5365 provider eek {
5366 probe urk(int);
5368 End-of-File
5369 if dtrace -s conftest.d -h >/dev/null 2>&1
5370 then
5371 if test ! -f conftest.h
5372 then
5373 enable_probes=false
5374 if test "$do_probes" = "yes"
5375 then
5376 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5379 else
5380 enable_probes=false
5381 if test "$do_probes" = "yes"
5382 then
5383 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5389 else
5391 enable_probes=false
5392 if test "$do_probes" = "yes"
5393 then
5394 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5399 done
5402 if test "$enable_probes" = "true"
5403 then
5405 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5412 if test "x$do_discovery" != "xno"; then :
5414 # on Mac OS X, dns_sd.h
5416 # on Linux, aloha Avahi
5417 enable_avahi=true
5419 pkg_failed=no
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5421 $as_echo_n "checking for avahi... " >&6; }
5423 if test -n "$avahi_CFLAGS"; then
5424 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
5425 elif test -n "$PKG_CONFIG"; then
5426 if test -n "$PKG_CONFIG" && \
5427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5428 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5429 ac_status=$?
5430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5431 test $ac_status = 0; }; then
5432 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5433 test "x$?" != "x0" && pkg_failed=yes
5434 else
5435 pkg_failed=yes
5437 else
5438 pkg_failed=untried
5440 if test -n "$avahi_LIBS"; then
5441 pkg_cv_avahi_LIBS="$avahi_LIBS"
5442 elif test -n "$PKG_CONFIG"; then
5443 if test -n "$PKG_CONFIG" && \
5444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5445 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5446 ac_status=$?
5447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5448 test $ac_status = 0; }; then
5449 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5450 test "x$?" != "x0" && pkg_failed=yes
5451 else
5452 pkg_failed=yes
5454 else
5455 pkg_failed=untried
5460 if test $pkg_failed = yes; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5465 _pkg_short_errors_supported=yes
5466 else
5467 _pkg_short_errors_supported=no
5469 if test $_pkg_short_errors_supported = yes; then
5470 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5471 else
5472 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5474 # Put the nasty error message in config.log where it belongs
5475 echo "$avahi_PKG_ERRORS" >&5
5477 enable_avahi=false
5478 elif test $pkg_failed = untried; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 enable_avahi=false
5482 else
5483 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
5484 avahi_LIBS=$pkg_cv_avahi_LIBS
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5486 $as_echo "yes" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5488 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5489 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 ac_check_lib_save_LIBS=$LIBS
5493 LIBS="-lavahi-client $LIBS"
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5497 /* Override any GCC internal prototype to avoid an error.
5498 Use char because int might match the return type of a GCC
5499 builtin and then its argument prototype would still apply. */
5500 #ifdef __cplusplus
5501 extern "C"
5502 #endif
5503 char avahi_client_new ();
5505 main ()
5507 return avahi_client_new ();
5509 return 0;
5511 _ACEOF
5512 if ac_fn_c_try_link "$LINENO"; then :
5513 ac_cv_lib_avahi_client_avahi_client_new=yes
5514 else
5515 ac_cv_lib_avahi_client_avahi_client_new=no
5517 rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext conftest.$ac_ext
5519 LIBS=$ac_check_lib_save_LIBS
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5522 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5523 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
5524 lib_for_avahi="-lavahi-common -lavahi-client"
5525 else
5526 enable_avahi=false
5531 for ac_header in avahi-client/publish.h
5532 do :
5533 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5534 if test "x$ac_cv_header_avahi_client_publish_h" = xyes; then :
5535 cat >>confdefs.h <<_ACEOF
5536 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5537 _ACEOF
5539 else
5540 enable_avahi=false
5543 done
5545 for ac_header in avahi-common/alternative.h
5546 do :
5547 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5548 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes; then :
5549 cat >>confdefs.h <<_ACEOF
5550 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5551 _ACEOF
5553 else
5554 enable_avahi=false
5557 done
5560 if test "$enable_avahi" = "true"
5561 then
5565 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5567 enable_discovery=true
5570 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5571 then
5572 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5574 if test "$enable_discovery" = "true"
5575 then
5577 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5585 enable_systemd=false
5586 if test "x$do_systemd" != "xno"; then :
5588 enable_systemd=true
5591 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5592 pkg_cv_SYSTEMD_SYSTEMUNITDIR="$SYSTEMD_SYSTEMUNITDIR"
5593 elif test -n "$PKG_CONFIG"; then
5594 if test -n "$PKG_CONFIG" && \
5595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5596 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5599 test $ac_status = 0; }; then
5600 pkg_cv_SYSTEMD_SYSTEMUNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5601 test "x$?" != "x0" && pkg_failed=yes
5602 else
5603 pkg_failed=yes
5605 else
5606 pkg_failed=untried
5608 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5610 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5611 enable_systemd=false
5612 else
5613 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5616 if test -z "$pcp_systemdunit_dir"
5617 then
5618 if test "$do_systemd" = "yes"
5619 then
5620 as_fn_error $? "cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5622 enable_systemd=false
5628 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5629 # targets a build for non-system directories such as /usr/local.
5630 # AC_PREFIX_DEFAULT([])
5632 . ./VERSION.pcp
5633 PACKAGE_VERSION=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5640 if test -z "$PACKAGE_BUILD_DATE" ; then
5641 PACKAGE_BUILD_DATE=`date +%Y-%m-%d`
5645 if test -z "$PACKAGE_DISTRIBUTION" ; then
5646 PACKAGE_DISTRIBUTION=$target_distro
5650 pm_version_current=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5653 ac_config_headers="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5655 ac_config_files="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5657 cat >confcache <<\_ACEOF
5658 # This file is a shell script that caches the results of configure
5659 # tests run on this system so they can be shared between configure
5660 # scripts and configure runs, see configure's option --config-cache.
5661 # It is not useful on other systems. If it contains results you don't
5662 # want to keep, you may remove or edit it.
5664 # config.status only pays attention to the cache file if you give it
5665 # the --recheck option to rerun configure.
5667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5669 # following values.
5671 _ACEOF
5673 # The following way of writing the cache mishandles newlines in values,
5674 # but we know of no workaround that is simple, portable, and efficient.
5675 # So, we kill variables containing newlines.
5676 # Ultrix sh set writes to stderr and can't be redirected directly,
5677 # and sets the high bit in the cache file unless we assign to the vars.
5679 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5680 eval ac_val=\$$ac_var
5681 case $ac_val in #(
5682 *${as_nl}*)
5683 case $ac_var in #(
5684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5686 esac
5687 case $ac_var in #(
5688 _ | IFS | as_nl) ;; #(
5689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5690 *) { eval $ac_var=; unset $ac_var;} ;;
5691 esac ;;
5692 esac
5693 done
5695 (set) 2>&1 |
5696 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5697 *${as_nl}ac_space=\ *)
5698 # `set' does not quote correctly, so add quotes: double-quote
5699 # substitution turns \\\\ into \\, and sed turns \\ into \.
5700 sed -n \
5701 "s/'/'\\\\''/g;
5702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5703 ;; #(
5705 # `set' quotes correctly as required by POSIX, so do not add quotes.
5706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5708 esac |
5709 sort
5711 sed '
5712 /^ac_cv_env_/b end
5713 t clear
5714 :clear
5715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5716 t end
5717 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5718 :end' >>confcache
5719 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5720 if test -w "$cache_file"; then
5721 if test "x$cache_file" != "x/dev/null"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5723 $as_echo "$as_me: updating cache $cache_file" >&6;}
5724 if test ! -f "$cache_file" || test -h "$cache_file"; then
5725 cat confcache >"$cache_file"
5726 else
5727 case $cache_file in #(
5728 */* | ?:*)
5729 mv -f confcache "$cache_file"$$ &&
5730 mv -f "$cache_file"$$ "$cache_file" ;; #(
5732 mv -f confcache "$cache_file" ;;
5733 esac
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5741 rm -f confcache
5743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5744 # Let make expand exec_prefix.
5745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5747 DEFS=-DHAVE_CONFIG_H
5749 ac_libobjs=
5750 ac_ltlibobjs=
5752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5753 # 1. Remove the extension, and $U if already installed.
5754 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5755 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5756 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5757 # will be set to the directory where LIBOBJS objects are built.
5758 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5759 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5760 done
5761 LIBOBJS=$ac_libobjs
5763 LTLIBOBJS=$ac_ltlibobjs
5767 : "${CONFIG_STATUS=./config.status}"
5768 ac_write_fail=0
5769 ac_clean_files_save=$ac_clean_files
5770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5772 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5773 as_write_fail=0
5774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5775 #! $SHELL
5776 # Generated by $as_me.
5777 # Run this file to recreate the current configuration.
5778 # Compiler output produced by configure, useful for debugging
5779 # configure, is in config.log if it exists.
5781 debug=false
5782 ac_cs_recheck=false
5783 ac_cs_silent=false
5785 SHELL=\${CONFIG_SHELL-$SHELL}
5786 export SHELL
5787 _ASEOF
5788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5789 ## -------------------- ##
5790 ## M4sh Initialization. ##
5791 ## -------------------- ##
5793 # Be more Bourne compatible
5794 DUALCASE=1; export DUALCASE # for MKS sh
5795 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5796 emulate sh
5797 NULLCMD=:
5798 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5799 # is contrary to our usage. Disable this feature.
5800 alias -g '${1+"$@"}'='"$@"'
5801 setopt NO_GLOB_SUBST
5802 else
5803 case `(set -o) 2>/dev/null` in #(
5804 *posix*) :
5805 set -o posix ;; #(
5806 *) :
5808 esac
5812 as_nl='
5814 export as_nl
5815 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5816 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5819 # Prefer a ksh shell builtin over an external printf program on Solaris,
5820 # but without wasting forks for bash or zsh.
5821 if test -z "$BASH_VERSION$ZSH_VERSION" \
5822 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5823 as_echo='print -r --'
5824 as_echo_n='print -rn --'
5825 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5826 as_echo='printf %s\n'
5827 as_echo_n='printf %s'
5828 else
5829 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5830 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5831 as_echo_n='/usr/ucb/echo -n'
5832 else
5833 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5834 as_echo_n_body='eval
5835 arg=$1;
5836 case $arg in #(
5837 *"$as_nl"*)
5838 expr "X$arg" : "X\\(.*\\)$as_nl";
5839 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5840 esac;
5841 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5843 export as_echo_n_body
5844 as_echo_n='sh -c $as_echo_n_body as_echo'
5846 export as_echo_body
5847 as_echo='sh -c $as_echo_body as_echo'
5850 # The user is always right.
5851 if test "${PATH_SEPARATOR+set}" != set; then
5852 PATH_SEPARATOR=:
5853 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5854 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5855 PATH_SEPARATOR=';'
5860 # IFS
5861 # We need space, tab and new line, in precisely that order. Quoting is
5862 # there to prevent editors from complaining about space-tab.
5863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5864 # splitting by setting IFS to empty value.)
5865 IFS=" "" $as_nl"
5867 # Find who we are. Look in the path if we contain no directory separator.
5868 as_myself=
5869 case $0 in #((
5870 *[\\/]* ) as_myself=$0 ;;
5871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5877 done
5878 IFS=$as_save_IFS
5881 esac
5882 # We did not find ourselves, most probably we were run as `sh COMMAND'
5883 # in which case we are not to be found in the path.
5884 if test "x$as_myself" = x; then
5885 as_myself=$0
5887 if test ! -f "$as_myself"; then
5888 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5889 exit 1
5892 # Unset variables that we do not need and which cause bugs (e.g. in
5893 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5894 # suppresses any "Segmentation fault" message there. '((' could
5895 # trigger a bug in pdksh 5.2.14.
5896 for as_var in BASH_ENV ENV MAIL MAILPATH
5897 do eval test x\${$as_var+set} = xset \
5898 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5899 done
5900 PS1='$ '
5901 PS2='> '
5902 PS4='+ '
5904 # NLS nuisances.
5905 LC_ALL=C
5906 export LC_ALL
5907 LANGUAGE=C
5908 export LANGUAGE
5910 # CDPATH.
5911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5914 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5915 # ----------------------------------------
5916 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5917 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5918 # script with STATUS, using 1 if that was 0.
5919 as_fn_error ()
5921 as_status=$1; test $as_status -eq 0 && as_status=1
5922 if test "$4"; then
5923 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5924 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5926 $as_echo "$as_me: error: $2" >&2
5927 as_fn_exit $as_status
5928 } # as_fn_error
5931 # as_fn_set_status STATUS
5932 # -----------------------
5933 # Set $? to STATUS, without forking.
5934 as_fn_set_status ()
5936 return $1
5937 } # as_fn_set_status
5939 # as_fn_exit STATUS
5940 # -----------------
5941 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5942 as_fn_exit ()
5944 set +e
5945 as_fn_set_status $1
5946 exit $1
5947 } # as_fn_exit
5949 # as_fn_unset VAR
5950 # ---------------
5951 # Portably unset VAR.
5952 as_fn_unset ()
5954 { eval $1=; unset $1;}
5956 as_unset=as_fn_unset
5957 # as_fn_append VAR VALUE
5958 # ----------------------
5959 # Append the text in VALUE to the end of the definition contained in VAR. Take
5960 # advantage of any shell optimizations that allow amortized linear growth over
5961 # repeated appends, instead of the typical quadratic growth present in naive
5962 # implementations.
5963 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5964 eval 'as_fn_append ()
5966 eval $1+=\$2
5968 else
5969 as_fn_append ()
5971 eval $1=\$$1\$2
5973 fi # as_fn_append
5975 # as_fn_arith ARG...
5976 # ------------------
5977 # Perform arithmetic evaluation on the ARGs, and store the result in the
5978 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5979 # must be portable across $(()) and expr.
5980 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5981 eval 'as_fn_arith ()
5983 as_val=$(( $* ))
5985 else
5986 as_fn_arith ()
5988 as_val=`expr "$@" || test $? -eq 1`
5990 fi # as_fn_arith
5993 if expr a : '\(a\)' >/dev/null 2>&1 &&
5994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5995 as_expr=expr
5996 else
5997 as_expr=false
6000 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6001 as_basename=basename
6002 else
6003 as_basename=false
6006 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6007 as_dirname=dirname
6008 else
6009 as_dirname=false
6012 as_me=`$as_basename -- "$0" ||
6013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6014 X"$0" : 'X\(//\)$' \| \
6015 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6016 $as_echo X/"$0" |
6017 sed '/^.*\/\([^/][^/]*\)\/*$/{
6018 s//\1/
6021 /^X\/\(\/\/\)$/{
6022 s//\1/
6025 /^X\/\(\/\).*/{
6026 s//\1/
6029 s/.*/./; q'`
6031 # Avoid depending upon Character Ranges.
6032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6035 as_cr_digits='0123456789'
6036 as_cr_alnum=$as_cr_Letters$as_cr_digits
6038 ECHO_C= ECHO_N= ECHO_T=
6039 case `echo -n x` in #(((((
6040 -n*)
6041 case `echo 'xy\c'` in
6042 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6043 xy) ECHO_C='\c';;
6044 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6045 ECHO_T=' ';;
6046 esac;;
6048 ECHO_N='-n';;
6049 esac
6051 rm -f conf$$ conf$$.exe conf$$.file
6052 if test -d conf$$.dir; then
6053 rm -f conf$$.dir/conf$$.file
6054 else
6055 rm -f conf$$.dir
6056 mkdir conf$$.dir 2>/dev/null
6058 if (echo >conf$$.file) 2>/dev/null; then
6059 if ln -s conf$$.file conf$$ 2>/dev/null; then
6060 as_ln_s='ln -s'
6061 # ... but there are two gotchas:
6062 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6063 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6064 # In both cases, we have to default to `cp -pR'.
6065 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6066 as_ln_s='cp -pR'
6067 elif ln conf$$.file conf$$ 2>/dev/null; then
6068 as_ln_s=ln
6069 else
6070 as_ln_s='cp -pR'
6072 else
6073 as_ln_s='cp -pR'
6075 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6076 rmdir conf$$.dir 2>/dev/null
6079 # as_fn_mkdir_p
6080 # -------------
6081 # Create "$as_dir" as a directory, including parents if necessary.
6082 as_fn_mkdir_p ()
6085 case $as_dir in #(
6086 -*) as_dir=./$as_dir;;
6087 esac
6088 test -d "$as_dir" || eval $as_mkdir_p || {
6089 as_dirs=
6090 while :; do
6091 case $as_dir in #(
6092 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6093 *) as_qdir=$as_dir;;
6094 esac
6095 as_dirs="'$as_qdir' $as_dirs"
6096 as_dir=`$as_dirname -- "$as_dir" ||
6097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6098 X"$as_dir" : 'X\(//\)[^/]' \| \
6099 X"$as_dir" : 'X\(//\)$' \| \
6100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6101 $as_echo X"$as_dir" |
6102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6103 s//\1/
6106 /^X\(\/\/\)[^/].*/{
6107 s//\1/
6110 /^X\(\/\/\)$/{
6111 s//\1/
6114 /^X\(\/\).*/{
6115 s//\1/
6118 s/.*/./; q'`
6119 test -d "$as_dir" && break
6120 done
6121 test -z "$as_dirs" || eval "mkdir $as_dirs"
6122 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6125 } # as_fn_mkdir_p
6126 if mkdir -p . 2>/dev/null; then
6127 as_mkdir_p='mkdir -p "$as_dir"'
6128 else
6129 test -d ./-p && rmdir ./-p
6130 as_mkdir_p=false
6134 # as_fn_executable_p FILE
6135 # -----------------------
6136 # Test if FILE is an executable regular file.
6137 as_fn_executable_p ()
6139 test -f "$1" && test -x "$1"
6140 } # as_fn_executable_p
6141 as_test_x='test -x'
6142 as_executable_p=as_fn_executable_p
6144 # Sed expression to map a string onto a valid CPP name.
6145 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6147 # Sed expression to map a string onto a valid variable name.
6148 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6151 exec 6>&1
6152 ## ----------------------------------- ##
6153 ## Main body of $CONFIG_STATUS script. ##
6154 ## ----------------------------------- ##
6155 _ASEOF
6156 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6159 # Save the log message, to keep $0 and so on meaningful, and to
6160 # report actual input values of CONFIG_FILES etc. instead of their
6161 # values after options handling.
6162 ac_log="
6163 This file was extended by $as_me, which was
6164 generated by GNU Autoconf 2.69. Invocation command line was
6166 CONFIG_FILES = $CONFIG_FILES
6167 CONFIG_HEADERS = $CONFIG_HEADERS
6168 CONFIG_LINKS = $CONFIG_LINKS
6169 CONFIG_COMMANDS = $CONFIG_COMMANDS
6170 $ $0 $@
6172 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6175 _ACEOF
6177 case $ac_config_files in *"
6178 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6179 esac
6181 case $ac_config_headers in *"
6182 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6183 esac
6186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6187 # Files that config.status was made for.
6188 config_files="$ac_config_files"
6189 config_headers="$ac_config_headers"
6191 _ACEOF
6193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6194 ac_cs_usage="\
6195 \`$as_me' instantiates files and other configuration actions
6196 from templates according to the current configuration. Unless the files
6197 and actions are specified as TAGs, all are instantiated by default.
6199 Usage: $0 [OPTION]... [TAG]...
6201 -h, --help print this help, then exit
6202 -V, --version print version number and configuration settings, then exit
6203 --config print configuration, then exit
6204 -q, --quiet, --silent
6205 do not print progress messages
6206 -d, --debug don't remove temporary files
6207 --recheck update $as_me by reconfiguring in the same conditions
6208 --file=FILE[:TEMPLATE]
6209 instantiate the configuration file FILE
6210 --header=FILE[:TEMPLATE]
6211 instantiate the configuration header FILE
6213 Configuration files:
6214 $config_files
6216 Configuration headers:
6217 $config_headers
6219 Report bugs to the package provider."
6221 _ACEOF
6222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6223 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6224 ac_cs_version="\\
6225 config.status
6226 configured by $0, generated by GNU Autoconf 2.69,
6227 with options \\"\$ac_cs_config\\"
6229 Copyright (C) 2012 Free Software Foundation, Inc.
6230 This config.status script is free software; the Free Software Foundation
6231 gives unlimited permission to copy, distribute and modify it."
6233 ac_pwd='$ac_pwd'
6234 srcdir='$srcdir'
6235 test -n "\$AWK" || AWK=awk
6236 _ACEOF
6238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6239 # The default lists apply if the user does not specify any file.
6240 ac_need_defaults=:
6241 while test $# != 0
6243 case $1 in
6244 --*=?*)
6245 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6246 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6247 ac_shift=:
6249 --*=)
6250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6251 ac_optarg=
6252 ac_shift=:
6255 ac_option=$1
6256 ac_optarg=$2
6257 ac_shift=shift
6259 esac
6261 case $ac_option in
6262 # Handling of the options.
6263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6264 ac_cs_recheck=: ;;
6265 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6266 $as_echo "$ac_cs_version"; exit ;;
6267 --config | --confi | --conf | --con | --co | --c )
6268 $as_echo "$ac_cs_config"; exit ;;
6269 --debug | --debu | --deb | --de | --d | -d )
6270 debug=: ;;
6271 --file | --fil | --fi | --f )
6272 $ac_shift
6273 case $ac_optarg in
6274 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6275 '') as_fn_error $? "missing file argument" ;;
6276 esac
6277 as_fn_append CONFIG_FILES " '$ac_optarg'"
6278 ac_need_defaults=false;;
6279 --header | --heade | --head | --hea )
6280 $ac_shift
6281 case $ac_optarg in
6282 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6283 esac
6284 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6285 ac_need_defaults=false;;
6286 --he | --h)
6287 # Conflict between --help and --header
6288 as_fn_error $? "ambiguous option: \`$1'
6289 Try \`$0 --help' for more information.";;
6290 --help | --hel | -h )
6291 $as_echo "$ac_cs_usage"; exit ;;
6292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6293 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6294 ac_cs_silent=: ;;
6296 # This is an error.
6297 -*) as_fn_error $? "unrecognized option: \`$1'
6298 Try \`$0 --help' for more information." ;;
6300 *) as_fn_append ac_config_targets " $1"
6301 ac_need_defaults=false ;;
6303 esac
6304 shift
6305 done
6307 ac_configure_extra_args=
6309 if $ac_cs_silent; then
6310 exec 6>/dev/null
6311 ac_configure_extra_args="$ac_configure_extra_args --silent"
6314 _ACEOF
6315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6316 if \$ac_cs_recheck; then
6317 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6318 shift
6319 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6320 CONFIG_SHELL='$SHELL'
6321 export CONFIG_SHELL
6322 exec "\$@"
6325 _ACEOF
6326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6327 exec 5>>config.log
6329 echo
6330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6331 ## Running $as_me. ##
6332 _ASBOX
6333 $as_echo "$ac_log"
6334 } >&5
6336 _ACEOF
6337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6338 _ACEOF
6340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6342 # Handling of arguments.
6343 for ac_config_target in $ac_config_targets
6345 case $ac_config_target in
6346 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6347 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6348 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6349 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6351 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6352 esac
6353 done
6356 # If the user did not use the arguments to specify the items to instantiate,
6357 # then the envvar interface is used. Set only those that are not.
6358 # We use the long form for the default assignment because of an extremely
6359 # bizarre bug on SunOS 4.1.3.
6360 if $ac_need_defaults; then
6361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6365 # Have a temporary directory for convenience. Make it in the build tree
6366 # simply because there is no reason against having it here, and in addition,
6367 # creating and moving files from /tmp can sometimes cause problems.
6368 # Hook for its removal unless debugging.
6369 # Note that there is a small window in which the directory will not be cleaned:
6370 # after its creation but before its name has been assigned to `$tmp'.
6371 $debug ||
6373 tmp= ac_tmp=
6374 trap 'exit_status=$?
6375 : "${ac_tmp:=$tmp}"
6376 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6378 trap 'as_fn_exit 1' 1 2 13 15
6380 # Create a (secure) tmp directory for tmp files.
6383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6384 test -d "$tmp"
6385 } ||
6387 tmp=./conf$$-$RANDOM
6388 (umask 077 && mkdir "$tmp")
6389 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6390 ac_tmp=$tmp
6392 # Set up the scripts for CONFIG_FILES section.
6393 # No need to generate them if there are no CONFIG_FILES.
6394 # This happens for instance with `./config.status config.h'.
6395 if test -n "$CONFIG_FILES"; then
6398 ac_cr=`echo X | tr X '\015'`
6399 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6400 # But we know of no other shell where ac_cr would be empty at this
6401 # point, so we can use a bashism as a fallback.
6402 if test "x$ac_cr" = x; then
6403 eval ac_cr=\$\'\\r\'
6405 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6406 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6407 ac_cs_awk_cr='\\r'
6408 else
6409 ac_cs_awk_cr=$ac_cr
6412 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6413 _ACEOF
6417 echo "cat >conf$$subs.awk <<_ACEOF" &&
6418 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6419 echo "_ACEOF"
6420 } >conf$$subs.sh ||
6421 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6422 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6423 ac_delim='%!_!# '
6424 for ac_last_try in false false false false false :; do
6425 . ./conf$$subs.sh ||
6426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6428 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6429 if test $ac_delim_n = $ac_delim_num; then
6430 break
6431 elif $ac_last_try; then
6432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6433 else
6434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6436 done
6437 rm -f conf$$subs.sh
6439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6440 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6441 _ACEOF
6442 sed -n '
6444 s/^/S["/; s/!.*/"]=/
6447 s/^[^!]*!//
6448 :repl
6449 t repl
6450 s/'"$ac_delim"'$//
6451 t delim
6454 s/\(.\{148\}\)..*/\1/
6455 t more1
6456 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6459 b repl
6460 :more1
6461 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6464 s/.\{148\}//
6465 t nl
6466 :delim
6468 s/\(.\{148\}\)..*/\1/
6469 t more2
6470 s/["\\]/\\&/g; s/^/"/; s/$/"/
6473 :more2
6474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6477 s/.\{148\}//
6478 t delim
6479 ' <conf$$subs.awk | sed '
6480 /^[^""]/{
6482 s/\n//
6484 ' >>$CONFIG_STATUS || ac_write_fail=1
6485 rm -f conf$$subs.awk
6486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6487 _ACAWK
6488 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6489 for (key in S) S_is_set[key] = 1
6490 FS = "\a"
6494 line = $ 0
6495 nfields = split(line, field, "@")
6496 substed = 0
6497 len = length(field[1])
6498 for (i = 2; i < nfields; i++) {
6499 key = field[i]
6500 keylen = length(key)
6501 if (S_is_set[key]) {
6502 value = S[key]
6503 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6504 len += length(value) + length(field[++i])
6505 substed = 1
6506 } else
6507 len += 1 + keylen
6510 print line
6513 _ACAWK
6514 _ACEOF
6515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6516 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6517 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6518 else
6520 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6521 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6522 _ACEOF
6524 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6525 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6526 # trailing colons and then remove the whole line if VPATH becomes empty
6527 # (actually we leave an empty line to preserve line numbers).
6528 if test "x$srcdir" = x.; then
6529 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6531 s///
6532 s/^/:/
6533 s/[ ]*$/:/
6534 s/:\$(srcdir):/:/g
6535 s/:\${srcdir}:/:/g
6536 s/:@srcdir@:/:/g
6537 s/^:*//
6538 s/:*$//
6540 s/\(=[ ]*\).*/\1/
6542 s/\n//
6543 s/^[^=]*=[ ]*$//
6547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6548 fi # test -n "$CONFIG_FILES"
6550 # Set up the scripts for CONFIG_HEADERS section.
6551 # No need to generate them if there are no CONFIG_HEADERS.
6552 # This happens for instance with `./config.status Makefile'.
6553 if test -n "$CONFIG_HEADERS"; then
6554 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6555 BEGIN {
6556 _ACEOF
6558 # Transform confdefs.h into an awk script `defines.awk', embedded as
6559 # here-document in config.status, that substitutes the proper values into
6560 # config.h.in to produce config.h.
6562 # Create a delimiter string that does not exist in confdefs.h, to ease
6563 # handling of long lines.
6564 ac_delim='%!_!# '
6565 for ac_last_try in false false :; do
6566 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6567 if test -z "$ac_tt"; then
6568 break
6569 elif $ac_last_try; then
6570 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6571 else
6572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6574 done
6576 # For the awk script, D is an array of macro values keyed by name,
6577 # likewise P contains macro parameters if any. Preserve backslash
6578 # newline sequences.
6580 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6581 sed -n '
6582 s/.\{148\}/&'"$ac_delim"'/g
6583 t rset
6584 :rset
6585 s/^[ ]*#[ ]*define[ ][ ]*/ /
6586 t def
6588 :def
6589 s/\\$//
6590 t bsnl
6591 s/["\\]/\\&/g
6592 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6593 D["\1"]=" \3"/p
6594 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6596 :bsnl
6597 s/["\\]/\\&/g
6598 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6599 D["\1"]=" \3\\\\\\n"\\/p
6600 t cont
6601 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6602 t cont
6604 :cont
6606 s/.\{148\}/&'"$ac_delim"'/g
6607 t clear
6608 :clear
6609 s/\\$//
6610 t bsnlc
6611 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6613 :bsnlc
6614 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6615 b cont
6616 ' <confdefs.h | sed '
6617 s/'"$ac_delim"'/"\\\
6618 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6621 for (key in D) D_is_set[key] = 1
6622 FS = "\a"
6624 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6625 line = \$ 0
6626 split(line, arg, " ")
6627 if (arg[1] == "#") {
6628 defundef = arg[2]
6629 mac1 = arg[3]
6630 } else {
6631 defundef = substr(arg[1], 2)
6632 mac1 = arg[2]
6634 split(mac1, mac2, "(") #)
6635 macro = mac2[1]
6636 prefix = substr(line, 1, index(line, defundef) - 1)
6637 if (D_is_set[macro]) {
6638 # Preserve the white space surrounding the "#".
6639 print prefix "define", macro P[macro] D[macro]
6640 next
6641 } else {
6642 # Replace #undef with comments. This is necessary, for example,
6643 # in the case of _POSIX_SOURCE, which is predefined and required
6644 # on some systems where configure will not decide to define it.
6645 if (defundef == "undef") {
6646 print "/*", prefix defundef, macro, "*/"
6647 next
6651 { print }
6652 _ACAWK
6653 _ACEOF
6654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6655 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6656 fi # test -n "$CONFIG_HEADERS"
6659 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6660 shift
6661 for ac_tag
6663 case $ac_tag in
6664 :[FHLC]) ac_mode=$ac_tag; continue;;
6665 esac
6666 case $ac_mode$ac_tag in
6667 :[FHL]*:*);;
6668 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6669 :[FH]-) ac_tag=-:-;;
6670 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6671 esac
6672 ac_save_IFS=$IFS
6673 IFS=:
6674 set x $ac_tag
6675 IFS=$ac_save_IFS
6676 shift
6677 ac_file=$1
6678 shift
6680 case $ac_mode in
6681 :L) ac_source=$1;;
6682 :[FH])
6683 ac_file_inputs=
6684 for ac_f
6686 case $ac_f in
6687 -) ac_f="$ac_tmp/stdin";;
6688 *) # Look for the file first in the build tree, then in the source tree
6689 # (if the path is not absolute). The absolute path cannot be DOS-style,
6690 # because $ac_f cannot contain `:'.
6691 test -f "$ac_f" ||
6692 case $ac_f in
6693 [\\/$]*) false;;
6694 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6695 esac ||
6696 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6697 esac
6698 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6699 as_fn_append ac_file_inputs " '$ac_f'"
6700 done
6702 # Let's still pretend it is `configure' which instantiates (i.e., don't
6703 # use $as_me), people would be surprised to read:
6704 # /* config.h. Generated by config.status. */
6705 configure_input='Generated from '`
6706 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6707 `' by configure.'
6708 if test x"$ac_file" != x-; then
6709 configure_input="$ac_file. $configure_input"
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6711 $as_echo "$as_me: creating $ac_file" >&6;}
6713 # Neutralize special characters interpreted by sed in replacement strings.
6714 case $configure_input in #(
6715 *\&* | *\|* | *\\* )
6716 ac_sed_conf_input=`$as_echo "$configure_input" |
6717 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6718 *) ac_sed_conf_input=$configure_input;;
6719 esac
6721 case $ac_tag in
6722 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6724 esac
6726 esac
6728 ac_dir=`$as_dirname -- "$ac_file" ||
6729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6730 X"$ac_file" : 'X\(//\)[^/]' \| \
6731 X"$ac_file" : 'X\(//\)$' \| \
6732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6733 $as_echo X"$ac_file" |
6734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6735 s//\1/
6738 /^X\(\/\/\)[^/].*/{
6739 s//\1/
6742 /^X\(\/\/\)$/{
6743 s//\1/
6746 /^X\(\/\).*/{
6747 s//\1/
6750 s/.*/./; q'`
6751 as_dir="$ac_dir"; as_fn_mkdir_p
6752 ac_builddir=.
6754 case "$ac_dir" in
6755 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6757 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6758 # A ".." for each directory in $ac_dir_suffix.
6759 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6760 case $ac_top_builddir_sub in
6761 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6762 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6763 esac ;;
6764 esac
6765 ac_abs_top_builddir=$ac_pwd
6766 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6767 # for backward compatibility:
6768 ac_top_builddir=$ac_top_build_prefix
6770 case $srcdir in
6771 .) # We are building in place.
6772 ac_srcdir=.
6773 ac_top_srcdir=$ac_top_builddir_sub
6774 ac_abs_top_srcdir=$ac_pwd ;;
6775 [\\/]* | ?:[\\/]* ) # Absolute name.
6776 ac_srcdir=$srcdir$ac_dir_suffix;
6777 ac_top_srcdir=$srcdir
6778 ac_abs_top_srcdir=$srcdir ;;
6779 *) # Relative name.
6780 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6781 ac_top_srcdir=$ac_top_build_prefix$srcdir
6782 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6783 esac
6784 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6787 case $ac_mode in
6790 # CONFIG_FILE
6793 _ACEOF
6795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6796 # If the template does not know about datarootdir, expand it.
6797 # FIXME: This hack should be removed a few years after 2.60.
6798 ac_datarootdir_hack=; ac_datarootdir_seen=
6799 ac_sed_dataroot='
6800 /datarootdir/ {
6804 /@datadir@/p
6805 /@docdir@/p
6806 /@infodir@/p
6807 /@localedir@/p
6808 /@mandir@/p'
6809 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6810 *datarootdir*) ac_datarootdir_seen=yes;;
6811 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6813 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6814 _ACEOF
6815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6816 ac_datarootdir_hack='
6817 s&@datadir@&$datadir&g
6818 s&@docdir@&$docdir&g
6819 s&@infodir@&$infodir&g
6820 s&@localedir@&$localedir&g
6821 s&@mandir@&$mandir&g
6822 s&\\\${datarootdir}&$datarootdir&g' ;;
6823 esac
6824 _ACEOF
6826 # Neutralize VPATH when `$srcdir' = `.'.
6827 # Shell code in configure.ac might set extrasub.
6828 # FIXME: do we really want to maintain this feature?
6829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6830 ac_sed_extra="$ac_vpsub
6831 $extrasub
6832 _ACEOF
6833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6836 s|@configure_input@|$ac_sed_conf_input|;t t
6837 s&@top_builddir@&$ac_top_builddir_sub&;t t
6838 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6839 s&@srcdir@&$ac_srcdir&;t t
6840 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6841 s&@top_srcdir@&$ac_top_srcdir&;t t
6842 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6843 s&@builddir@&$ac_builddir&;t t
6844 s&@abs_builddir@&$ac_abs_builddir&;t t
6845 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6846 $ac_datarootdir_hack
6848 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6849 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6851 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6852 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6854 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6856 which seems to be undefined. Please make sure it is defined" >&5
6857 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6858 which seems to be undefined. Please make sure it is defined" >&2;}
6860 rm -f "$ac_tmp/stdin"
6861 case $ac_file in
6862 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6863 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6864 esac \
6865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6869 # CONFIG_HEADER
6871 if test x"$ac_file" != x-; then
6873 $as_echo "/* $configure_input */" \
6874 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6875 } >"$ac_tmp/config.h" \
6876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6877 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6879 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6880 else
6881 rm -f "$ac_file"
6882 mv "$ac_tmp/config.h" "$ac_file" \
6883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6885 else
6886 $as_echo "/* $configure_input */" \
6887 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6888 || as_fn_error $? "could not create -" "$LINENO" 5
6893 esac
6895 done # for ac_tag
6898 as_fn_exit 0
6899 _ACEOF
6900 ac_clean_files=$ac_clean_files_save
6902 test $ac_write_fail = 0 ||
6903 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6906 # configure is writing to config.log, and then calls config.status.
6907 # config.status does its own redirection, appending to config.log.
6908 # Unfortunately, on DOS this fails, as config.log is still kept open
6909 # by configure, so config.status won't be able to write to it; its
6910 # output is simply discarded. So we exec the FD to /dev/null,
6911 # effectively closing config.log, so it can be properly (re)opened and
6912 # appended to by config.status. When coming back to configure, we
6913 # need to make the FD available again.
6914 if test "$no_create" != yes; then
6915 ac_cs_success=:
6916 ac_config_status_args=
6917 test "$silent" = yes &&
6918 ac_config_status_args="$ac_config_status_args --quiet"
6919 exec 5>/dev/null
6920 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6921 exec 5>>config.log
6922 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6923 # would make configure fail if this is the last instruction.
6924 $ac_cs_success || as_fn_exit 1
6926 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6928 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6932 for ac_prog in git
6934 # Extract the first word of "$ac_prog", so it can be a program name with args.
6935 set dummy $ac_prog; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_prog_GIT+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 if test -n "$GIT"; then
6942 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6943 else
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_GIT="$ac_prog"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6955 done
6956 done
6957 IFS=$as_save_IFS
6961 GIT=$ac_cv_prog_GIT
6962 if test -n "$GIT"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6964 $as_echo "$GIT" >&6; }
6965 else
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6971 test -n "$GIT" && break
6972 done
6976 for ac_prog in python
6978 # Extract the first word of "$ac_prog", so it can be a program name with args.
6979 set dummy $ac_prog; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_PYTHON+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$PYTHON"; then
6986 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_PYTHON="$ac_prog"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6999 done
7000 done
7001 IFS=$as_save_IFS
7005 PYTHON=$ac_cv_prog_PYTHON
7006 if test -n "$PYTHON"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7008 $as_echo "$PYTHON" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7015 test -n "$PYTHON" && break
7016 done
7017 test -n "$PYTHON" || PYTHON="python2.7"
7021 for ac_prog in python3
7023 # Extract the first word of "$ac_prog", so it can be a program name with args.
7024 set dummy $ac_prog; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_PYTHON3+:} false; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 if test -n "$PYTHON3"; then
7031 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040 ac_cv_prog_PYTHON3="$ac_prog"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 break 2
7044 done
7045 done
7046 IFS=$as_save_IFS
7050 PYTHON3=$ac_cv_prog_PYTHON3
7051 if test -n "$PYTHON3"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7053 $as_echo "$PYTHON3" >&6; }
7054 else
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7060 test -n "$PYTHON3" && break
7061 done
7062 test -n "$PYTHON3" || PYTHON3="python3.4"
7066 enable_python2=false
7067 if test "x$do_python" != "xno"; then :
7069 enable_python2=true
7070 if test -z "$PYTHON"
7071 then
7072 enable_python2=false
7073 else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7075 $as_echo_n "checking Python version... " >&6; }
7076 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 }'`
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7078 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7079 if test "$PY_MAJOR" -lt 2; then
7080 echo WARNING: Python version 2.6 or later does not seem to be installed.
7081 echo Cannot proceed with the Python $PY_MAJOR installation found.
7082 enable_python2=false
7084 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7085 echo WARNING: Python version 2.$PY_MINOR is too old.
7086 echo Python version 2.6 or later is required for Python builds.
7087 enable_python2=false
7089 for ac_header in python${PY_MAJOR}.${PY_MINOR}/Python.h
7090 do :
7091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7092 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7094 cat >>confdefs.h <<_ACEOF
7095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7096 _ACEOF
7098 else
7100 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7101 echo Cannot proceed with the Python $PY_MAJOR installation found.
7102 enable_python2=false
7106 done
7110 if test "$do_python" != "check" -a "$enable_python2" != "true"
7111 then
7112 as_fn_error $? "cannot enable Python - no supported version found" "$LINENO" 5
7118 enable_python3=false
7119 if test "x$do_python3" != "xno"; then :
7121 enable_python3=true
7122 if test -z "$PYTHON3"
7123 then
7124 enable_python3=false
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7127 $as_echo_n "checking Python3 version... " >&6; }
7128 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 }'`
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7130 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7131 if test "$PY_MAJOR" -lt 3; then
7132 echo WARNING: Python version 3.3 or later does not seem to be installed.
7133 echo Cannot proceed with the Python $PY_MAJOR installation found.
7134 enable_python3=false
7136 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7137 echo WARNING: Python version 3.$PY_MINOR is too old.
7138 echo Python version 3.3 or later is required for Python builds.
7139 enable_python3=false
7141 for ac_header in python${PY_MAJOR}.${PY_MINOR}m/Python.h
7142 do :
7143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7144 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7145 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7146 cat >>confdefs.h <<_ACEOF
7147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7148 _ACEOF
7150 else
7152 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7153 echo Cannot proceed with the Python $PY_MAJOR installation found.
7154 enable_python3=false
7158 done
7162 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7163 then
7164 as_fn_error $? "cannot enable Python3 - no supported version found" "$LINENO" 5
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7171 $as_echo_n "checking for any python version... " >&6; }
7172 if test "$cross_compiling" = "yes"; then
7173 ans=$have_python
7174 echo "cross-compile -> \"$ans\"" >&5
7175 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7176 then
7177 have_python=true
7178 else
7179 have_python=false
7182 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7183 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }; fi
7186 if test "$enable_python3" = "true"
7187 then
7188 pcp_python_prog=$PYTHON3
7189 elif test "$enable_python2" = "true"
7190 then
7191 pcp_python_prog=$PYTHON
7192 else
7193 pcp_python_prog=""
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7199 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7200 if test -n ""
7201 then
7202 txt=""
7203 else
7204 txt="import jsonpointer"
7206 $pcp_python_prog -c 'import sys;
7207 '"$txt" >>config.log 2>&1
7208 if test "$?" = 0
7209 then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7211 $as_echo "yes" >&6; }
7212 eval have_python_jsonpointer=true
7213 else
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7216 eval have_python_jsonpointer=false
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7221 $as_echo_n "checking for Python module six... " >&6; }
7222 if test -n ""
7223 then
7224 txt=""
7225 else
7226 txt="import six"
7228 $pcp_python_prog -c 'import sys;
7229 '"$txt" >>config.log 2>&1
7230 if test "$?" = 0
7231 then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7233 $as_echo "yes" >&6; }
7234 eval have_python_six=true
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 eval have_python_six=false
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7244 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7245 pmda_json=false
7246 if test "x$do_pmdajson" = "xyes"; then :
7247 pmda_json=true
7249 if test "x$do_pmdajson" = "xcheck"; then :
7251 $have_python_jsonpointer && $have_python_six && pmda_json=true
7254 PMDA_JSON=$pmda_json
7256 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7257 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }; fi
7260 for ac_prog in perl
7262 # Extract the first word of "$ac_prog", so it can be a program name with args.
7263 set dummy $ac_prog; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_PERL+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 if test -n "$PERL"; then
7270 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_PERL="$ac_prog"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7283 done
7284 done
7285 IFS=$as_save_IFS
7289 PERL=$ac_cv_prog_PERL
7290 if test -n "$PERL"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7292 $as_echo "$PERL" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7299 test -n "$PERL" && break
7300 done
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7305 $as_echo_n "checking for any perl version... " >&6; }
7306 if test "$cross_compiling" = "yes"; then
7307 ans=$have_perl
7308 echo "cross-compile -> \"$ans\"" >&5
7309 elif test -n "$PERL"
7310 then
7311 pcp_perl_prog=$PERL
7312 have_perl=true
7313 else
7314 pcp_perl_prog=""
7315 have_perl=false
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7320 $as_echo "$pcp_perl_prog" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7323 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7324 pmda_snmp=false
7325 if test "x$do_pmdasnmp" = "xyes"; then :
7326 pmda_snmp=true
7328 if test "x$do_pmdasnmp" = "xcheck"; then :
7330 if test "$have_perl" = true
7331 then
7332 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7333 then
7334 pmda_snmp=true
7339 PMDA_SNMP=$pmda_snmp
7341 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7342 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }; fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7346 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7347 pmda_mysql=false
7348 if test "$have_perl" = true
7349 then
7350 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7351 then
7352 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7353 then
7354 pmda_mysql=true
7358 PMDA_MYSQL=$pmda_mysql
7360 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7361 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }; fi
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7365 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7366 pmda_postgresql=false
7367 if test "$have_perl" = true
7368 then
7369 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7370 then
7371 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7372 then
7373 pmda_postgresql=true
7377 PMDA_POSTGRESQL=$pmda_postgresql
7379 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7380 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }; fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7384 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7385 pmda_oracle=false
7386 if test "$have_perl" = true
7387 then
7388 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7389 then
7390 pmda_oracle=true
7393 PMDA_ORACLE=$pmda_oracle
7395 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7396 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }; fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7400 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7401 pmda_elasticsearch=false
7402 if test "$have_perl" = true
7403 then
7404 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7405 then
7406 pmda_elasticsearch=true
7409 PMDA_ELASTICSEARCH=$pmda_elasticsearch
7411 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7412 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }; fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7416 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7417 pmda_nginx=false
7418 if test "$have_perl" = true
7419 then
7420 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7421 then
7422 pmda_nginx=true
7425 PMDA_NGINX=$pmda_nginx
7427 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7428 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }; fi
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7432 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7433 pmda_activemq=false
7434 if test "$have_perl" = true
7435 then
7436 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7437 then
7438 pmda_activemq=true
7441 PMDA_ACTIVEMQ=$pmda_activemq
7443 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7444 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }; fi
7447 qmake=$QMAKE
7448 enable_qt=false
7449 qt_release=release
7450 if test "x$do_qt" != "xno"; then :
7452 enable_qt=true
7454 if test -z "$QMAKE"
7455 then
7456 for ac_prog in qmake-qt4 qmake
7458 # Extract the first word of "$ac_prog", so it can be a program name with args.
7459 set dummy $ac_prog; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_path_QMAKE+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 case $QMAKE in
7466 [\\/]* | ?:[\\/]*)
7467 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 as_dummy="$QTDIR/bin:/usr/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin:/usr/local/bin"
7472 for as_dir in $as_dummy
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7482 done
7483 done
7484 IFS=$as_save_IFS
7487 esac
7489 QMAKE=$ac_cv_path_QMAKE
7490 if test -n "$QMAKE"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7492 $as_echo "$QMAKE" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7499 test -n "$QMAKE" && break
7500 done
7502 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7504 qmake=$QMAKE
7505 if test -z "$QMAKE"
7506 then
7507 enable_qt=false
7508 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7510 $as_echo_n "checking Qt version... " >&6; }
7511 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 }'`
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7513 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7514 if test "$QT_MAJOR" -lt 4; then
7515 echo WARNING: Qt version 4.4 or later does not seem to be installed.
7516 echo Cannot proceed with the Qt $QT_MAJOR installation found.
7517 enable_qt=false
7519 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7520 echo WARNING: Qt version 4.$QT_MINOR is too old.
7521 echo Qt version 4.4 or later is required for Qt builds.
7522 enable_qt=false
7526 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7527 then
7528 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7529 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7530 then
7531 enable_qt=false
7532 test "$do_qt" != "check" && \
7533 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7534 elif test "$do_qt" = "debug"
7535 then
7536 qt_release=debug
7537 enable_qt=true
7545 if test -z "$MAKE"
7546 then
7547 # Extract the first word of "gmake", so it can be a program name with args.
7548 set dummy gmake; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_path_MAKE+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 case $MAKE in
7555 [\\/]* | ?:[\\/]*)
7556 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7570 done
7571 done
7572 IFS=$as_save_IFS
7575 esac
7577 MAKE=$ac_cv_path_MAKE
7578 if test -n "$MAKE"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7580 $as_echo "$MAKE" >&6; }
7581 else
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7587 if test -z "$MAKE"
7588 then
7589 # look elsewhere ...
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7591 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7592 for f in /usr/local/bin/gmake /usr/freeware/bin/gmake /usr/local/bin/make /opt/sfw/bin/gmake nowhere
7594 if test -x $f
7595 then
7596 MAKE=$f
7597 break
7599 done
7600 if test $f = nowhere
7601 then
7602 # Check if /usr/bin/make is any good
7603 mver=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7604 if test "$mver" != "GNU Make"
7605 then
7606 echo
7607 echo "FATAL ERROR: could not find GNU make anywhere"
7608 echo "You need to set \$MAKE as the full path to GNU make "
7609 echo "in the environment."
7610 rm -rf conftest conftest.*
7611 exit 1
7612 else
7613 MAKE=/usr/bin/make
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7617 $as_echo "$MAKE" >&6; }
7620 make=$MAKE
7623 if test -z "$CPP"; then
7624 ac_ext=c
7625 ac_cpp='$CPP $CPPFLAGS'
7626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7631 # On Suns, sometimes $CPP names a directory.
7632 if test -n "$CPP" && test -d "$CPP"; then
7633 CPP=
7635 if test -z "$CPP"; then
7636 if ${ac_cv_prog_CPP+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 # Double quotes because CPP needs to be expanded
7640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7642 ac_preproc_ok=false
7643 for ac_c_preproc_warn_flag in '' yes
7645 # Use a header file that comes with gcc, so configuring glibc
7646 # with a fresh cross-compiler works.
7647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7648 # <limits.h> exists even on freestanding compilers.
7649 # On the NeXT, cc -E runs the code through the compiler's parser,
7650 # not just through cpp. "Syntax error" is here to catch this case.
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653 #ifdef __STDC__
7654 # include <limits.h>
7655 #else
7656 # include <assert.h>
7657 #endif
7658 Syntax error
7659 _ACEOF
7660 if ac_fn_c_try_cpp "$LINENO"; then :
7662 else
7663 # Broken: fails on valid input.
7664 continue
7666 rm -f conftest.err conftest.i conftest.$ac_ext
7668 # OK, works on sane cases. Now check whether nonexistent headers
7669 # can be detected and how.
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672 #include <ac_nonexistent.h>
7673 _ACEOF
7674 if ac_fn_c_try_cpp "$LINENO"; then :
7675 # Broken: success on invalid input.
7676 continue
7677 else
7678 # Passes both tests.
7679 ac_preproc_ok=:
7680 break
7682 rm -f conftest.err conftest.i conftest.$ac_ext
7684 done
7685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7686 rm -f conftest.i conftest.err conftest.$ac_ext
7687 if $ac_preproc_ok; then :
7688 break
7691 done
7692 ac_cv_prog_CPP=$CPP
7695 CPP=$ac_cv_prog_CPP
7696 else
7697 ac_cv_prog_CPP=$CPP
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7700 $as_echo "$CPP" >&6; }
7701 ac_preproc_ok=false
7702 for ac_c_preproc_warn_flag in '' yes
7704 # Use a header file that comes with gcc, so configuring glibc
7705 # with a fresh cross-compiler works.
7706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7707 # <limits.h> exists even on freestanding compilers.
7708 # On the NeXT, cc -E runs the code through the compiler's parser,
7709 # not just through cpp. "Syntax error" is here to catch this case.
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 #ifdef __STDC__
7713 # include <limits.h>
7714 #else
7715 # include <assert.h>
7716 #endif
7717 Syntax error
7718 _ACEOF
7719 if ac_fn_c_try_cpp "$LINENO"; then :
7721 else
7722 # Broken: fails on valid input.
7723 continue
7725 rm -f conftest.err conftest.i conftest.$ac_ext
7727 # OK, works on sane cases. Now check whether nonexistent headers
7728 # can be detected and how.
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7731 #include <ac_nonexistent.h>
7732 _ACEOF
7733 if ac_fn_c_try_cpp "$LINENO"; then :
7734 # Broken: success on invalid input.
7735 continue
7736 else
7737 # Passes both tests.
7738 ac_preproc_ok=:
7739 break
7741 rm -f conftest.err conftest.i conftest.$ac_ext
7743 done
7744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7745 rm -f conftest.i conftest.err conftest.$ac_ext
7746 if $ac_preproc_ok; then :
7748 else
7749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7751 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7752 See \`config.log' for more details" "$LINENO" 5; }
7755 ac_ext=c
7756 ac_cpp='$CPP $CPPFLAGS'
7757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762 cpp=$CPP
7765 if test -z "$LD"; then
7766 # Extract the first word of "ld", so it can be a program name with args.
7767 set dummy ld; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_path_LD+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 case $LD in
7774 [\\/]* | ?:[\\/]*)
7775 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7789 done
7790 done
7791 IFS=$as_save_IFS
7793 test -z "$ac_cv_path_LD" && ac_cv_path_LD="/usr/bin/ld"
7795 esac
7797 LD=$ac_cv_path_LD
7798 if test -n "$LD"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7800 $as_echo "$LD" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7808 ld=$LD
7811 if test -z "$PCP_USER_INSTALL" ; then
7812 pcp_user_install=root
7813 else
7814 pcp_user_install="$PCP_USER_INSTALL"
7817 if test -z "$PCP_GROUP_INSTALL" ; then
7818 case "$target_os"
7820 darwin|freebsd|netbsd|openbsd)
7821 pcp_group_install=wheel
7824 pcp_group_install=root
7826 esac
7827 else
7828 pcp_group_install="$PCP_GROUP_INSTALL"
7832 if test -z "$TAR"; then
7833 for ac_prog in gtar tar
7835 # Extract the first word of "$ac_prog", so it can be a program name with args.
7836 set dummy $ac_prog; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_path_TAR+:} false; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 case $TAR in
7843 [\\/]* | ?:[\\/]*)
7844 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7858 done
7859 done
7860 IFS=$as_save_IFS
7863 esac
7865 TAR=$ac_cv_path_TAR
7866 if test -n "$TAR"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7868 $as_echo "$TAR" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7875 test -n "$TAR" && break
7876 done
7877 test -n "$TAR" || TAR="tar"
7880 if test $target_os = darwin -a -x /usr/bin/gnutar
7881 then
7882 TAR=/usr/bin/gnutar
7884 tar=$TAR
7887 if test -z "$ZIP"; then
7888 # Extract the first word of "gzip", so it can be a program name with args.
7889 set dummy gzip; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if ${ac_cv_path_ZIP+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 case $ZIP in
7896 [\\/]* | ?:[\\/]*)
7897 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7907 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7911 done
7912 done
7913 IFS=$as_save_IFS
7915 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
7917 esac
7919 ZIP=$ac_cv_path_ZIP
7920 if test -n "$ZIP"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7922 $as_echo "$ZIP" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7930 test ! -x "$ZIP" && ZIP=/usr/local/bin/gzip
7931 test ! -x "$ZIP" && ZIP=/usr/freeware/bin/gzip
7932 test ! -x "$ZIP" && ZIP=/usr/bin/gzip
7933 gzip=$ZIP
7934 test -z "$gzip" && gzip=no-gzip
7937 if test -z "$BZIP2"; then
7938 # Extract the first word of "bzip2", so it can be a program name with args.
7939 set dummy bzip2; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_path_BZIP2+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 case $BZIP2 in
7946 [\\/]* | ?:[\\/]*)
7947 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7961 done
7962 done
7963 IFS=$as_save_IFS
7965 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
7967 esac
7969 BZIP2=$ac_cv_path_BZIP2
7970 if test -n "$BZIP2"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7972 $as_echo "$BZIP2" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7980 test ! -x "$BZIP2" && BZIP2=/usr/bin/bzip2
7981 test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2
7982 test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2
7983 bzip2=$BZIP2
7984 test -z "$bzip2" && bzip2=no-bzip2
7987 if test -z "$LZMA"; then
7988 # Extract the first word of "lzma", so it can be a program name with args.
7989 set dummy lzma; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_path_LZMA+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 case $LZMA in
7996 [\\/]* | ?:[\\/]*)
7997 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007 ac_cv_path_LZMA="$as_dir/$ac_word$ac_exec_ext"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8011 done
8012 done
8013 IFS=$as_save_IFS
8015 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
8017 esac
8019 LZMA=$ac_cv_path_LZMA
8020 if test -n "$LZMA"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8022 $as_echo "$LZMA" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8030 test ! -x "$LZMA" && LZMA=/usr/bin/lzma
8031 test ! -x "$LZMA" && LZMA=/usr/local/bin/lzma
8032 test ! -x "$LZMA" && LZMA=/usr/freeware/bin/lzma
8033 lzma=$LZMA
8034 test -z "$lzma" && lzma=no-lzma
8037 if test -z "$XZ"; then
8038 # Extract the first word of "xz", so it can be a program name with args.
8039 set dummy xz; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_path_XZ+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 case $XZ in
8046 [\\/]* | ?:[\\/]*)
8047 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8061 done
8062 done
8063 IFS=$as_save_IFS
8065 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
8067 esac
8069 XZ=$ac_cv_path_XZ
8070 if test -n "$XZ"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8072 $as_echo "$XZ" >&6; }
8073 else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8080 test ! -x "$XZ" && XZ=/usr/bin/xz
8081 test ! -x "$XZ" && XZ=/usr/local/bin/xz
8082 test ! -x "$XZ" && XZ=/usr/freeware/bin/xz
8083 xz=$XZ
8084 test -z "$xz" && xz=no-xz
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8088 $as_echo_n "checking for PackageMaker... " >&6; }
8089 if test -z "$PACKAGE_MAKER"
8090 then
8091 if test $target_os = darwin
8092 then
8093 if test -x /Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8094 then # local XCode extras install
8095 package_maker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8097 $as_echo " yes (local install)" >&6; }
8098 elif test -x /Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8099 then # Darwin 6.x
8100 package_maker=/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8102 $as_echo " yes (darwin 6.x)" >&6; }
8103 elif test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8104 then # Darwin 7.x
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8106 $as_echo " yes (darwin 7.x)" >&6; }
8107 package_maker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8108 else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8110 $as_echo " not found!" >&6; }
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8112 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo " no" >&6; }
8118 else
8119 package_maker="$PACKAGE_MAKER"
8123 if test -z "$HDIUTIL"; then
8124 # Extract the first word of "hdiutil", so it can be a program name with args.
8125 set dummy hdiutil; 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_HDIUTIL+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 case $HDIUTIL in
8132 [\\/]* | ?:[\\/]*)
8133 ac_cv_path_HDIUTIL="$HDIUTIL" # 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_HDIUTIL="$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 HDIUTIL=$ac_cv_path_HDIUTIL
8155 if test -n "$HDIUTIL"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8157 $as_echo "$HDIUTIL" >&6; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8165 hdiutil=$HDIUTIL
8168 if test -z "$MKINSTALLP"; then
8169 # Extract the first word of "mkinstallp", so it can be a program name with args.
8170 set dummy mkinstallp; 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_MKINSTALLP+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 case $MKINSTALLP in
8177 [\\/]* | ?:[\\/]*)
8178 ac_cv_path_MKINSTALLP="$MKINSTALLP" # 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_MKINSTALLP="$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 MKINSTALLP=$ac_cv_path_MKINSTALLP
8200 if test -n "$MKINSTALLP"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8202 $as_echo "$MKINSTALLP" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8210 mkinstallp=$MKINSTALLP
8213 if test -z "$PKGMK"; then
8214 # Extract the first word of "pkgmk", so it can be a program name with args.
8215 set dummy pkgmk; 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_PKGMK+:} false; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 case $PKGMK in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_PKGMK="$PKGMK" # 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_PKGMK="$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 PKGMK=$ac_cv_path_PKGMK
8245 if test -n "$PKGMK"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8247 $as_echo "$PKGMK" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 pkgmk=$PKGMK
8258 if test -z "$DLLTOOL"; then
8259 # Extract the first word of "dlltool", so it can be a program name with args.
8260 set dummy dlltool; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if ${ac_cv_path_DLLTOOL+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 case $DLLTOOL in
8267 [\\/]* | ?:[\\/]*)
8268 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278 ac_cv_path_DLLTOOL="$as_dir/$ac_word$ac_exec_ext"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8282 done
8283 done
8284 IFS=$as_save_IFS
8287 esac
8289 DLLTOOL=$ac_cv_path_DLLTOOL
8290 if test -n "$DLLTOOL"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8292 $as_echo "$DLLTOOL" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8300 dlltool=$DLLTOOL
8303 if test -z "$RPMBUILD"; then
8304 # Extract the first word of "rpmbuild", so it can be a program name with args.
8305 set dummy rpmbuild; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if ${ac_cv_path_RPMBUILD+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 case $RPMBUILD in
8312 [\\/]* | ?:[\\/]*)
8313 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8327 done
8328 done
8329 IFS=$as_save_IFS
8332 esac
8334 RPMBUILD=$ac_cv_path_RPMBUILD
8335 if test -n "$RPMBUILD"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8337 $as_echo "$RPMBUILD" >&6; }
8338 else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8345 test $target_distro = slackware && RPMBUILD=''
8346 rpmbuild=$RPMBUILD
8349 if test -z "$RPM"; then
8350 # Extract the first word of "rpm", so it can be a program name with args.
8351 set dummy rpm; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_path_RPM+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 case $RPM in
8358 [\\/]* | ?:[\\/]*)
8359 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8373 done
8374 done
8375 IFS=$as_save_IFS
8378 esac
8380 RPM=$ac_cv_path_RPM
8381 if test -n "$RPM"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8383 $as_echo "$RPM" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8391 test $target_distro = slackware && RPM=''
8392 rpm=$RPM
8395 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8396 then
8397 rpmprog=$RPMBUILD
8398 else
8399 rpmprog=$RPM
8403 if test -z "$POD2MAN"; then
8404 # Extract the first word of "pod2man", so it can be a program name with args.
8405 set dummy pod2man; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if ${ac_cv_path_POD2MAN+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 case $POD2MAN in
8412 [\\/]* | ?:[\\/]*)
8413 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8427 done
8428 done
8429 IFS=$as_save_IFS
8432 esac
8434 POD2MAN=$ac_cv_path_POD2MAN
8435 if test -n "$POD2MAN"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8437 $as_echo "$POD2MAN" >&6; }
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8445 pod2man=$POD2MAN
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8449 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8450 perl -e "use ExtUtils::MakeMaker" 2>/dev/null
8451 if test $? -eq 0
8452 then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8454 $as_echo " yes" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo " no" >&6; }
8458 echo
8459 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8460 echo "You can either install this from your distribution, or"
8461 echo "download from CPAN (Comprehensive Perl Archive Network)."
8462 rm -rf conftest conftest.*
8463 exit 1
8466 # Extract the first word of "true", so it can be a program name with args.
8467 set dummy true; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if ${ac_cv_path_TRUEPROG+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 case $TRUEPROG in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_path_TRUEPROG="$as_dir/$ac_word$ac_exec_ext"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8489 done
8490 done
8491 IFS=$as_save_IFS
8494 esac
8496 TRUEPROG=$ac_cv_path_TRUEPROG
8497 if test -n "$TRUEPROG"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8499 $as_echo "$TRUEPROG" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8507 if test -z "$MAKEDEPEND"; then
8508 # Extract the first word of "makedepend", so it can be a program name with args.
8509 set dummy makedepend; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_path_MAKEDEPEND+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 case $MAKEDEPEND in
8516 [\\/]* | ?:[\\/]*)
8517 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 break 2
8531 done
8532 done
8533 IFS=$as_save_IFS
8535 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8537 esac
8539 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
8540 if test -n "$MAKEDEPEND"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8542 $as_echo "$MAKEDEPEND" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8550 makedepend=$MAKEDEPEND
8553 if test -z "$MD5SUM"; then
8554 # Extract the first word of "md5sum", so it can be a program name with args.
8555 set dummy md5sum; ac_word=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if ${ac_cv_path_MD5SUM+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 case $MD5SUM in
8562 [\\/]* | ?:[\\/]*)
8563 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8573 ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 break 2
8577 done
8578 done
8579 IFS=$as_save_IFS
8581 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8583 esac
8585 MD5SUM=$ac_cv_path_MD5SUM
8586 if test -n "$MD5SUM"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8588 $as_echo "$MD5SUM" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 md5sum=$MD5SUM
8599 if test -z "$DPKG"; then
8600 # Extract the first word of "dpkg", so it can be a program name with args.
8601 set dummy dpkg; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if ${ac_cv_path_DPKG+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 case $DPKG in
8608 [\\/]* | ?:[\\/]*)
8609 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8619 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8623 done
8624 done
8625 IFS=$as_save_IFS
8628 esac
8630 DPKG=$ac_cv_path_DPKG
8631 if test -n "$DPKG"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8633 $as_echo "$DPKG" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8641 dpkg=$DKPG
8644 if test -z "$MAKEPKG"; then
8645 # Extract the first word of "makepkg", so it can be a program name with args.
8646 set dummy makepkg; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_path_MAKEPKG+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 case $MAKEPKG in
8653 [\\/]* | ?:[\\/]*)
8654 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664 ac_cv_path_MAKEPKG="$as_dir/$ac_word$ac_exec_ext"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 break 2
8668 done
8669 done
8670 IFS=$as_save_IFS
8673 esac
8675 MAKEPKG=$ac_cv_path_MAKEPKG
8676 if test -n "$MAKEPKG"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8678 $as_echo "$MAKEPKG" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8686 makepkg=$MAKEPKG
8689 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8690 set dummy publican; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_path_PUBLICAN+:} false; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 case $PUBLICAN in
8697 [\\/]* | ?:[\\/]*)
8698 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8708 ac_cv_path_PUBLICAN="$as_dir/$ac_word$ac_exec_ext"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710 break 2
8712 done
8713 done
8714 IFS=$as_save_IFS
8717 esac
8719 PUBLICAN=$ac_cv_path_PUBLICAN
8720 if test -n "$PUBLICAN"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8722 $as_echo "$PUBLICAN" >&6; }
8723 else
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8729 publican=$PUBLICAN
8731 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8732 set dummy dblatex; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if ${ac_cv_path_DBLATEX+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 case $DBLATEX in
8739 [\\/]* | ?:[\\/]*)
8740 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8750 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8759 esac
8761 DBLATEX=$ac_cv_path_DBLATEX
8762 if test -n "$DBLATEX"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8764 $as_echo "$DBLATEX" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8771 dblatex=$DBLATEX
8773 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8774 set dummy xmlto; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_path_XMLTO+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 case $XMLTO in
8781 [\\/]* | ?:[\\/]*)
8782 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8792 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8796 done
8797 done
8798 IFS=$as_save_IFS
8801 esac
8803 XMLTO=$ac_cv_path_XMLTO
8804 if test -n "$XMLTO"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8806 $as_echo "$XMLTO" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8813 xmlto=$XMLTO
8816 book_toolchain=""
8817 if test "$do_books" = "check" -o "$do_books" = "yes"
8818 then
8819 if test "$BOOK_TOOLCHAIN" != ""
8820 then
8821 book_toolchain=$BOOK_TOOLCHAIN
8822 elif test "$DBLATEX" != ""
8823 then
8824 book_toolchain=dblatex
8825 elif test "$PUBLICAN" != ""
8826 then
8827 book_toolchain=publican
8828 elif test "$XMLTO" != ""
8829 then
8830 book_toolchain=xmlto
8831 elif test "$do_books" = "yes"
8832 then
8833 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
8838 book_brand="common"
8839 if test "$do_books_brand" != ""
8840 then
8841 book_brand=$do_books_brand
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8846 $as_echo_n "checking whether ln -s works... " >&6; }
8847 LN_S=$as_ln_s
8848 if test "$LN_S" = "ln -s"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8850 $as_echo "yes" >&6; }
8851 else
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8853 $as_echo "no, using $LN_S" >&6; }
8856 if test $target_os = mingw; then
8857 as_ln_s=/bin/true
8860 if test -d /proc
8861 then
8862 test -f /proc/stat || mount /proc >/dev/null 2>&1
8865 if test -n "$PROCPS"
8866 then
8867 pcp_ps_prog="$PROCPS"
8868 else
8869 pcp_ps_prog=ps
8873 if test $target_os = mingw
8874 then
8875 pcp_syslog_prog=pcp-eventlog
8876 else
8877 pcp_syslog_prog=logger
8881 grep=grep
8882 if test $target_os = solaris
8883 then
8884 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/bin/grep
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8889 $as_echo_n "checking for /proc ... " >&6; }
8890 if test "$cross_compiling" = "yes"; then
8891 ans=$have_procfs
8892 echo "cross-compile -> \"$ans\"" >&5
8893 elif test -d /proc
8894 then
8895 have_procfs=true
8896 else
8897 have_procfs=false
8899 if $have_procfs
8900 then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8902 $as_echo "yes" >&6; }
8904 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8911 ac_header_dirent=no
8912 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8913 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8915 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8916 if eval \${$as_ac_Header+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 #include <sys/types.h>
8922 #include <$ac_hdr>
8925 main ()
8927 if ((DIR *) 0)
8928 return 0;
8930 return 0;
8932 _ACEOF
8933 if ac_fn_c_try_compile "$LINENO"; then :
8934 eval "$as_ac_Header=yes"
8935 else
8936 eval "$as_ac_Header=no"
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8940 eval ac_res=\$$as_ac_Header
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8942 $as_echo "$ac_res" >&6; }
8943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8944 cat >>confdefs.h <<_ACEOF
8945 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8946 _ACEOF
8948 ac_header_dirent=$ac_hdr; break
8951 done
8952 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8953 if test $ac_header_dirent = dirent.h; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8955 $as_echo_n "checking for library containing opendir... " >&6; }
8956 if ${ac_cv_search_opendir+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 ac_func_search_save_LIBS=$LIBS
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8963 /* Override any GCC internal prototype to avoid an error.
8964 Use char because int might match the return type of a GCC
8965 builtin and then its argument prototype would still apply. */
8966 #ifdef __cplusplus
8967 extern "C"
8968 #endif
8969 char opendir ();
8971 main ()
8973 return opendir ();
8975 return 0;
8977 _ACEOF
8978 for ac_lib in '' dir; do
8979 if test -z "$ac_lib"; then
8980 ac_res="none required"
8981 else
8982 ac_res=-l$ac_lib
8983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8985 if ac_fn_c_try_link "$LINENO"; then :
8986 ac_cv_search_opendir=$ac_res
8988 rm -f core conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext
8990 if ${ac_cv_search_opendir+:} false; then :
8991 break
8993 done
8994 if ${ac_cv_search_opendir+:} false; then :
8996 else
8997 ac_cv_search_opendir=no
8999 rm conftest.$ac_ext
9000 LIBS=$ac_func_search_save_LIBS
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9003 $as_echo "$ac_cv_search_opendir" >&6; }
9004 ac_res=$ac_cv_search_opendir
9005 if test "$ac_res" != no; then :
9006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9012 $as_echo_n "checking for library containing opendir... " >&6; }
9013 if ${ac_cv_search_opendir+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 ac_func_search_save_LIBS=$LIBS
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9020 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */
9023 #ifdef __cplusplus
9024 extern "C"
9025 #endif
9026 char opendir ();
9028 main ()
9030 return opendir ();
9032 return 0;
9034 _ACEOF
9035 for ac_lib in '' x; do
9036 if test -z "$ac_lib"; then
9037 ac_res="none required"
9038 else
9039 ac_res=-l$ac_lib
9040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 ac_cv_search_opendir=$ac_res
9045 rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext
9047 if ${ac_cv_search_opendir+:} false; then :
9048 break
9050 done
9051 if ${ac_cv_search_opendir+:} false; then :
9053 else
9054 ac_cv_search_opendir=no
9056 rm conftest.$ac_ext
9057 LIBS=$ac_func_search_save_LIBS
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9060 $as_echo "$ac_cv_search_opendir" >&6; }
9061 ac_res=$ac_cv_search_opendir
9062 if test "$ac_res" != no; then :
9063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9070 $as_echo_n "checking for ANSI C header files... " >&6; }
9071 if ${ac_cv_header_stdc+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #include <stdlib.h>
9077 #include <stdarg.h>
9078 #include <string.h>
9079 #include <float.h>
9082 main ()
9086 return 0;
9088 _ACEOF
9089 if ac_fn_c_try_compile "$LINENO"; then :
9090 ac_cv_header_stdc=yes
9091 else
9092 ac_cv_header_stdc=no
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 if test $ac_cv_header_stdc = yes; then
9097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9100 #include <string.h>
9102 _ACEOF
9103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104 $EGREP "memchr" >/dev/null 2>&1; then :
9106 else
9107 ac_cv_header_stdc=no
9109 rm -f conftest*
9113 if test $ac_cv_header_stdc = yes; then
9114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 #include <stdlib.h>
9119 _ACEOF
9120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9121 $EGREP "free" >/dev/null 2>&1; then :
9123 else
9124 ac_cv_header_stdc=no
9126 rm -f conftest*
9130 if test $ac_cv_header_stdc = yes; then
9131 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9132 if test "$cross_compiling" = yes; then :
9134 else
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137 #include <ctype.h>
9138 #include <stdlib.h>
9139 #if ((' ' & 0x0FF) == 0x020)
9140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9142 #else
9143 # define ISLOWER(c) \
9144 (('a' <= (c) && (c) <= 'i') \
9145 || ('j' <= (c) && (c) <= 'r') \
9146 || ('s' <= (c) && (c) <= 'z'))
9147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9148 #endif
9150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9152 main ()
9154 int i;
9155 for (i = 0; i < 256; i++)
9156 if (XOR (islower (i), ISLOWER (i))
9157 || toupper (i) != TOUPPER (i))
9158 return 2;
9159 return 0;
9161 _ACEOF
9162 if ac_fn_c_try_run "$LINENO"; then :
9164 else
9165 ac_cv_header_stdc=no
9167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9168 conftest.$ac_objext conftest.beam conftest.$ac_ext
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9174 $as_echo "$ac_cv_header_stdc" >&6; }
9175 if test $ac_cv_header_stdc = yes; then
9177 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9182 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9183 if ${ac_cv_header_sys_wait_h+:} false; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #include <sys/types.h>
9189 #include <sys/wait.h>
9190 #ifndef WEXITSTATUS
9191 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9192 #endif
9193 #ifndef WIFEXITED
9194 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9195 #endif
9198 main ()
9200 int s;
9201 wait (&s);
9202 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9204 return 0;
9206 _ACEOF
9207 if ac_fn_c_try_compile "$LINENO"; then :
9208 ac_cv_header_sys_wait_h=yes
9209 else
9210 ac_cv_header_sys_wait_h=no
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9215 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9216 if test $ac_cv_header_sys_wait_h = yes; then
9218 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9222 for ac_header in fcntl.h limits.h malloc.h strings.h syslog.h
9223 do :
9224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9225 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9227 cat >>confdefs.h <<_ACEOF
9228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9229 _ACEOF
9233 done
9235 for ac_header in stddef.h sched.h dlfcn.h dl.h
9236 do :
9237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9238 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9239 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9240 cat >>confdefs.h <<_ACEOF
9241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9242 _ACEOF
9246 done
9248 for ac_header in sys/times.h sys/resource.h sys/prctl.h
9249 do :
9250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9251 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9253 cat >>confdefs.h <<_ACEOF
9254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9255 _ACEOF
9259 done
9261 for ac_header in sys/sysinfo.h sys/systeminfo.h
9262 do :
9263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9264 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9265 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9266 cat >>confdefs.h <<_ACEOF
9267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9268 _ACEOF
9272 done
9274 for ac_header in endian.h standards.h sys/byteorder.h
9275 do :
9276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9279 cat >>confdefs.h <<_ACEOF
9280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9281 _ACEOF
9285 done
9287 for ac_header in libgen.h sys/mman.h sys/un.h
9288 do :
9289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9290 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9292 cat >>confdefs.h <<_ACEOF
9293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9294 _ACEOF
9298 done
9300 for ac_header in values.h stdint.h ieeefp.h math.h
9301 do :
9302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9303 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9304 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9305 cat >>confdefs.h <<_ACEOF
9306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9307 _ACEOF
9311 done
9313 for ac_header in pwd.h grp.h regex.h sys/wait.h
9314 do :
9315 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9316 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9317 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9318 cat >>confdefs.h <<_ACEOF
9319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9320 _ACEOF
9324 done
9326 for ac_header in termio.h termios.h sys/termios.h
9327 do :
9328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9329 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9330 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9331 cat >>confdefs.h <<_ACEOF
9332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9333 _ACEOF
9337 done
9339 for ac_header in sys/ioctl.h sys/select.h sys/socket.h
9340 do :
9341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9342 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9344 cat >>confdefs.h <<_ACEOF
9345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9346 _ACEOF
9350 done
9352 for ac_header in netdb.h
9353 do :
9354 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9355 if test "x$ac_cv_header_netdb_h" = xyes; then :
9356 cat >>confdefs.h <<_ACEOF
9357 #define HAVE_NETDB_H 1
9358 _ACEOF
9362 done
9364 if test $target_os = darwin -o $target_os = openbsd
9365 then
9366 for ac_header in net/if.h
9367 do :
9368 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9369 #include <sys/socket.h>
9371 if test "x$ac_cv_header_net_if_h" = xyes; then :
9372 cat >>confdefs.h <<_ACEOF
9373 #define HAVE_NET_IF_H 1
9374 _ACEOF
9378 done
9380 else
9381 for ac_header in net/if.h
9382 do :
9383 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9384 if test "x$ac_cv_header_net_if_h" = xyes; then :
9385 cat >>confdefs.h <<_ACEOF
9386 #define HAVE_NET_IF_H 1
9387 _ACEOF
9391 done
9394 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9395 do :
9396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9397 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9399 cat >>confdefs.h <<_ACEOF
9400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9401 _ACEOF
9405 done
9407 for ac_header in windows.h winsock2.h ws2tcpip.h
9408 do :
9409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9412 cat >>confdefs.h <<_ACEOF
9413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9414 _ACEOF
9418 done
9420 for ac_header in execinfo.h bits/wordsize.h
9421 do :
9422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9423 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9425 cat >>confdefs.h <<_ACEOF
9426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9427 _ACEOF
9431 done
9433 for ac_header in iptypes.h
9434 do :
9435 ac_fn_c_check_header_compile "$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9437 if test "x$ac_cv_header_iptypes_h" = xyes; then :
9438 cat >>confdefs.h <<_ACEOF
9439 #define HAVE_IPTYPES_H 1
9440 _ACEOF
9444 done
9446 for ac_header in iphlpapi.h
9447 do :
9448 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9450 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
9451 cat >>confdefs.h <<_ACEOF
9452 #define HAVE_IPHLPAPI_H 1
9453 _ACEOF
9457 done
9459 for ac_header in fts.h libzfs.h
9460 do :
9461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9462 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9464 cat >>confdefs.h <<_ACEOF
9465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9466 _ACEOF
9470 done
9472 for ac_header in sys/statvfs.h sys/statfs.h sys/mount.h
9473 do :
9474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9475 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9477 cat >>confdefs.h <<_ACEOF
9478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9479 _ACEOF
9483 done
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9487 $as_echo_n "checking for sys/endian.h ... " >&6; }
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9491 #include <sys/endian.h>
9494 main ()
9499 return 0;
9501 _ACEOF
9502 if ac_fn_c_try_compile "$LINENO"; then :
9504 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9506 $as_echo "yes" >&6; }
9507 else
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9514 $as_echo_n "checking for machine/endian.h ... " >&6; }
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9518 #include <machine/endian.h>
9521 main ()
9526 return 0;
9528 _ACEOF
9529 if ac_fn_c_try_compile "$LINENO"; then :
9531 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9533 $as_echo "yes" >&6; }
9534 else
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9541 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9545 #include <standards.h>
9546 #include <sys/endian.h>
9549 main ()
9554 return 0;
9556 _ACEOF
9557 if ac_fn_c_try_compile "$LINENO"; then :
9559 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9561 $as_echo "yes" >&6; }
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9569 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9570 if ${ac_cv_c_const+:} false; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9577 main ()
9580 #ifndef __cplusplus
9581 /* Ultrix mips cc rejects this sort of thing. */
9582 typedef int charset[2];
9583 const charset cs = { 0, 0 };
9584 /* SunOS 4.1.1 cc rejects this. */
9585 char const *const *pcpcc;
9586 char **ppc;
9587 /* NEC SVR4.0.2 mips cc rejects this. */
9588 struct point {int x, y;};
9589 static struct point const zero = {0,0};
9590 /* AIX XL C 1.02.0.0 rejects this.
9591 It does not let you subtract one const X* pointer from another in
9592 an arm of an if-expression whose if-part is not a constant
9593 expression */
9594 const char *g = "string";
9595 pcpcc = &g + (g ? g-g : 0);
9596 /* HPUX 7.0 cc rejects these. */
9597 ++pcpcc;
9598 ppc = (char**) pcpcc;
9599 pcpcc = (char const *const *) ppc;
9600 { /* SCO 3.2v4 cc rejects this sort of thing. */
9601 char tx;
9602 char *t = &tx;
9603 char const *s = 0 ? (char *) 0 : (char const *) 0;
9605 *t++ = 0;
9606 if (s) return 0;
9608 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9609 int x[] = {25, 17};
9610 const int *foo = &x[0];
9611 ++foo;
9613 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9614 typedef const int *iptr;
9615 iptr p = 0;
9616 ++p;
9618 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9619 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9620 struct s { int j; const int *ap[3]; } bx;
9621 struct s *b = &bx; b->j = 5;
9623 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9624 const int foo = 10;
9625 if (!foo) return 0;
9627 return !cs[0] && !zero.x;
9628 #endif
9631 return 0;
9633 _ACEOF
9634 if ac_fn_c_try_compile "$LINENO"; then :
9635 ac_cv_c_const=yes
9636 else
9637 ac_cv_c_const=no
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9642 $as_echo "$ac_cv_c_const" >&6; }
9643 if test $ac_cv_c_const = no; then
9645 $as_echo "#define const /**/" >>confdefs.h
9649 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9650 if test "x$ac_cv_type_off_t" = xyes; then :
9652 else
9654 cat >>confdefs.h <<_ACEOF
9655 #define off_t long int
9656 _ACEOF
9660 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9661 if test "x$ac_cv_type_pid_t" = xyes; then :
9663 else
9665 cat >>confdefs.h <<_ACEOF
9666 #define pid_t int
9667 _ACEOF
9671 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9672 if test "x$ac_cv_type_size_t" = xyes; then :
9674 else
9676 cat >>confdefs.h <<_ACEOF
9677 #define size_t unsigned int
9678 _ACEOF
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9683 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9684 if ${ac_cv_header_time+:} false; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 #include <sys/types.h>
9690 #include <sys/time.h>
9691 #include <time.h>
9694 main ()
9696 if ((struct tm *) 0)
9697 return 0;
9699 return 0;
9701 _ACEOF
9702 if ac_fn_c_try_compile "$LINENO"; then :
9703 ac_cv_header_time=yes
9704 else
9705 ac_cv_header_time=no
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9710 $as_echo "$ac_cv_header_time" >&6; }
9711 if test $ac_cv_header_time = yes; then
9713 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9718 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9719 if ${ac_cv_struct_tm+:} false; then :
9720 $as_echo_n "(cached) " >&6
9721 else
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9724 #include <sys/types.h>
9725 #include <time.h>
9728 main ()
9730 struct tm tm;
9731 int *p = &tm.tm_sec;
9732 return !p;
9734 return 0;
9736 _ACEOF
9737 if ac_fn_c_try_compile "$LINENO"; then :
9738 ac_cv_struct_tm=time.h
9739 else
9740 ac_cv_struct_tm=sys/time.h
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9745 $as_echo "$ac_cv_struct_tm" >&6; }
9746 if test $ac_cv_struct_tm = sys/time.h; then
9748 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9753 $as_echo_n "checking for inline... " >&6; }
9754 if ${ac_cv_c_inline+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 ac_cv_c_inline=no
9758 for ac_kw in inline __inline__ __inline; do
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761 #ifndef __cplusplus
9762 typedef int foo_t;
9763 static $ac_kw foo_t static_foo () {return 0; }
9764 $ac_kw foo_t foo () {return 0; }
9765 #endif
9767 _ACEOF
9768 if ac_fn_c_try_compile "$LINENO"; then :
9769 ac_cv_c_inline=$ac_kw
9771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9772 test "$ac_cv_c_inline" != no && break
9773 done
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9777 $as_echo "$ac_cv_c_inline" >&6; }
9779 case $ac_cv_c_inline in
9780 inline | yes) ;;
9782 case $ac_cv_c_inline in
9783 no) ac_val=;;
9784 *) ac_val=$ac_cv_c_inline;;
9785 esac
9786 cat >>confdefs.h <<_ACEOF
9787 #ifndef __cplusplus
9788 #define inline $ac_val
9789 #endif
9790 _ACEOF
9792 esac
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9796 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9797 if ${ac_cv_lib_regex_regcomp+:} false; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 ac_check_lib_save_LIBS=$LIBS
9801 LIBS="-lregex $LIBS"
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9808 #ifdef __cplusplus
9809 extern "C"
9810 #endif
9811 char regcomp ();
9813 main ()
9815 return regcomp ();
9817 return 0;
9819 _ACEOF
9820 if ac_fn_c_try_link "$LINENO"; then :
9821 ac_cv_lib_regex_regcomp=yes
9822 else
9823 ac_cv_lib_regex_regcomp=no
9825 rm -f core conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827 LIBS=$ac_check_lib_save_LIBS
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9830 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9831 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
9832 cat >>confdefs.h <<_ACEOF
9833 #define HAVE_LIBREGEX 1
9834 _ACEOF
9836 LIBS="-lregex $LIBS"
9840 lib_for_regex=""
9841 if test $ac_cv_lib_regex_regcomp = yes
9842 then
9843 lib_for_regex="-lregex"
9848 pkg_failed=no
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9850 $as_echo_n "checking for ncurses... " >&6; }
9852 if test -n "$ncurses_CFLAGS"; then
9853 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
9854 elif test -n "$PKG_CONFIG"; then
9855 if test -n "$PKG_CONFIG" && \
9856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9857 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9858 ac_status=$?
9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860 test $ac_status = 0; }; then
9861 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9862 test "x$?" != "x0" && pkg_failed=yes
9863 else
9864 pkg_failed=yes
9866 else
9867 pkg_failed=untried
9869 if test -n "$ncurses_LIBS"; then
9870 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
9871 elif test -n "$PKG_CONFIG"; then
9872 if test -n "$PKG_CONFIG" && \
9873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9874 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9875 ac_status=$?
9876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9877 test $ac_status = 0; }; then
9878 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9879 test "x$?" != "x0" && pkg_failed=yes
9880 else
9881 pkg_failed=yes
9883 else
9884 pkg_failed=untried
9889 if test $pkg_failed = yes; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9894 _pkg_short_errors_supported=yes
9895 else
9896 _pkg_short_errors_supported=no
9898 if test $_pkg_short_errors_supported = yes; then
9899 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9900 else
9901 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9903 # Put the nasty error message in config.log where it belongs
9904 echo "$ncurses_PKG_ERRORS" >&5
9906 have_ncurses=false
9907 elif test $pkg_failed = untried; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9910 have_ncurses=false
9911 else
9912 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
9913 ncurses_LIBS=$pkg_cv_ncurses_LIBS
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9915 $as_echo "yes" >&6; }
9916 have_ncurses=true
9918 HAVE_NCURSES=$have_ncurses
9922 pkg_failed=no
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
9924 $as_echo_n "checking for SYSTEMD... " >&6; }
9926 if test -n "$SYSTEMD_CFLAGS"; then
9927 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
9928 elif test -n "$PKG_CONFIG"; then
9929 if test -n "$PKG_CONFIG" && \
9930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9931 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9932 ac_status=$?
9933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9934 test $ac_status = 0; }; then
9935 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
9936 test "x$?" != "x0" && pkg_failed=yes
9937 else
9938 pkg_failed=yes
9940 else
9941 pkg_failed=untried
9943 if test -n "$SYSTEMD_LIBS"; then
9944 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
9945 elif test -n "$PKG_CONFIG"; then
9946 if test -n "$PKG_CONFIG" && \
9947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9948 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9949 ac_status=$?
9950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9951 test $ac_status = 0; }; then
9952 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
9953 test "x$?" != "x0" && pkg_failed=yes
9954 else
9955 pkg_failed=yes
9957 else
9958 pkg_failed=untried
9963 if test $pkg_failed = yes; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9967 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9968 _pkg_short_errors_supported=yes
9969 else
9970 _pkg_short_errors_supported=no
9972 if test $_pkg_short_errors_supported = yes; then
9973 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9974 else
9975 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9977 # Put the nasty error message in config.log where it belongs
9978 echo "$SYSTEMD_PKG_ERRORS" >&5
9980 pmda_systemd=false
9981 elif test $pkg_failed = untried; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9984 pmda_systemd=false
9985 else
9986 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
9987 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9989 $as_echo "yes" >&6; }
9990 pmda_systemd=true
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
9993 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
9994 PMDA_SYSTEMD=$pmda_systemd
9996 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9997 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }; fi
10000 pmda_infiniband=false
10001 if test "x$do_infiniband" != "xno"; then :
10003 for ac_header in infiniband/umad.h
10004 do :
10005 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10006 if test "x$ac_cv_header_infiniband_umad_h" = xyes; then :
10007 cat >>confdefs.h <<_ACEOF
10008 #define HAVE_INFINIBAND_UMAD_H 1
10009 _ACEOF
10011 for ac_header in infiniband/mad.h
10012 do :
10013 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10014 if test "x$ac_cv_header_infiniband_mad_h" = xyes; then :
10015 cat >>confdefs.h <<_ACEOF
10016 #define HAVE_INFINIBAND_MAD_H 1
10017 _ACEOF
10018 pmda_infiniband=true
10021 done
10026 done
10028 savedLIBS=$LIBS
10029 IB_LIBS=""
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10031 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10032 if ${ac_cv_lib_ibmad_madrpc_init+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 ac_check_lib_save_LIBS=$LIBS
10036 LIBS="-libmad $LIBS"
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10040 /* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 char madrpc_init ();
10048 main ()
10050 return madrpc_init ();
10052 return 0;
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056 ac_cv_lib_ibmad_madrpc_init=yes
10057 else
10058 ac_cv_lib_ibmad_madrpc_init=no
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LIBS=$ac_check_lib_save_LIBS
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10065 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10066 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes; then :
10067 cat >>confdefs.h <<_ACEOF
10068 #define HAVE_LIBIBMAD 1
10069 _ACEOF
10071 LIBS="-libmad $LIBS"
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10076 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10077 if ${ac_cv_lib_ibumad_umad_init+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-libumad $LIBS"
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char umad_init ();
10093 main ()
10095 return umad_init ();
10097 return 0;
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 ac_cv_lib_ibumad_umad_init=yes
10102 else
10103 ac_cv_lib_ibumad_umad_init=no
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10110 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10111 if test "x$ac_cv_lib_ibumad_umad_init" = xyes; then :
10112 cat >>confdefs.h <<_ACEOF
10113 #define HAVE_LIBIBUMAD 1
10114 _ACEOF
10116 LIBS="-libumad $LIBS"
10120 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10121 then
10122 IB_LIBS="-libmad -libumad"
10123 LIBS="$IB_LIBS"
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10125 $as_echo_n "checking for port_performance_query_via... " >&6; }
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 char port_performance_query_via ();
10137 main ()
10139 return port_performance_query_via ();
10141 return 0;
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"; then :
10146 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10148 have_port_performance_query_via=true
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10150 $as_echo "yes" >&6; }
10151 else
10152 have_port_performance_query_via=false
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154 $as_echo "no" >&6; }
10156 rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10159 $as_echo_n "checking for pma_query_via... " >&6; }
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 char pma_query_via ();
10171 main ()
10173 return pma_query_via ();
10175 return 0;
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10180 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10182 have_pma_query_via=true
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10184 $as_echo "yes" >&6; }
10185 else
10186 have_pma_query_via=false
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$savedLIBS
10193 if test $have_pma_query_via -o $have_port_performance_query_via
10194 then
10196 else
10197 pmda_infiniband=false
10199 else
10200 pmda_infiniband=false
10202 LIBS=$savedLIBS
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10207 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10208 PMDA_INFINIBAND=$pmda_infiniband
10210 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10211 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }; fi
10214 pmda_papi=false
10215 if test "x$do_papi" != "xno"; then :
10217 enable_papi=true
10219 saved_LDFLAGS="$LDFLAGS"
10220 saved_CFLAGS="$CFLAGS"
10221 savedLIBS=$LIBS
10223 CFLAGS="$papi_CFLAGS"
10224 LDFLAGS="$papi_LIBS"
10226 case "$do_papi" in
10227 yes|no|check)
10229 */*)
10230 PAPI_ROOTDIR=$do_papi;
10231 CFLAGS="-I$PAPI_ROOTDIR/include"
10232 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10236 pkg_failed=no
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10238 $as_echo_n "checking for papi... " >&6; }
10240 if test -n "$papi_CFLAGS"; then
10241 pkg_cv_papi_CFLAGS="$papi_CFLAGS"
10242 elif test -n "$PKG_CONFIG"; then
10243 if test -n "$PKG_CONFIG" && \
10244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10245 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10246 ac_status=$?
10247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248 test $ac_status = 0; }; then
10249 pkg_cv_papi_CFLAGS=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10250 test "x$?" != "x0" && pkg_failed=yes
10251 else
10252 pkg_failed=yes
10254 else
10255 pkg_failed=untried
10257 if test -n "$papi_LIBS"; then
10258 pkg_cv_papi_LIBS="$papi_LIBS"
10259 elif test -n "$PKG_CONFIG"; then
10260 if test -n "$PKG_CONFIG" && \
10261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10262 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10263 ac_status=$?
10264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10265 test $ac_status = 0; }; then
10266 pkg_cv_papi_LIBS=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10267 test "x$?" != "x0" && pkg_failed=yes
10268 else
10269 pkg_failed=yes
10271 else
10272 pkg_failed=untried
10277 if test $pkg_failed = yes; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10281 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10282 _pkg_short_errors_supported=yes
10283 else
10284 _pkg_short_errors_supported=no
10286 if test $_pkg_short_errors_supported = yes; then
10287 papi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10288 else
10289 papi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10291 # Put the nasty error message in config.log where it belongs
10292 echo "$papi_PKG_ERRORS" >&5
10294 as_fn_error $? "Package requirements ($do_papi) were not met:
10296 $papi_PKG_ERRORS
10298 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10299 installed software in a non-standard prefix.
10301 Alternatively, you may set the environment variables papi_CFLAGS
10302 and papi_LIBS to avoid the need to call pkg-config.
10303 See the pkg-config man page for more details." "$LINENO" 5
10304 elif test $pkg_failed = untried; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10309 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10310 is in your PATH or set the PKG_CONFIG environment variable to the full
10311 path to pkg-config.
10313 Alternatively, you may set the environment variables papi_CFLAGS
10314 and papi_LIBS to avoid the need to call pkg-config.
10315 See the pkg-config man page for more details.
10317 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10318 See \`config.log' for more details" "$LINENO" 5; }
10319 else
10320 papi_CFLAGS=$pkg_cv_papi_CFLAGS
10321 papi_LIBS=$pkg_cv_papi_LIBS
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10323 $as_echo "yes" >&6; }
10325 CFLAGS="$papi_CFLAGS"
10326 LDFLAGS="$papi_LIBS"
10329 esac
10331 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10333 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10334 if ${ac_cv_lib_papi_PAPI_library_init+:} false; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 ac_check_lib_save_LIBS=$LIBS
10338 LIBS="-lpapi $LIBS"
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10345 #ifdef __cplusplus
10346 extern "C"
10347 #endif
10348 char PAPI_library_init ();
10350 main ()
10352 return PAPI_library_init ();
10354 return 0;
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358 ac_cv_lib_papi_PAPI_library_init=yes
10359 else
10360 ac_cv_lib_papi_PAPI_library_init=no
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 LIBS=$ac_check_lib_save_LIBS
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10367 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10368 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes; then :
10369 papi_libs="$LDFLAGS -lpapi"
10370 else
10371 enable_papi=false
10374 for ac_header in papi.h
10375 do :
10376 ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10377 if test "x$ac_cv_header_papi_h" = xyes; then :
10378 cat >>confdefs.h <<_ACEOF
10379 #define HAVE_PAPI_H 1
10380 _ACEOF
10381 papi_cflags="$CFLAGS"
10382 else
10383 enable_papi=false
10386 done
10388 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10389 then
10390 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10391 else
10392 pmda_papi=$enable_papi
10394 LIBS=$savedLIBS
10395 CFLAGS="$saved_CFLAGS"
10396 LDFLAGS="$saved_LDFLAGS"
10397 PAPI_CFLAGS=$papi_cflags
10399 PAPI_LIBS=$papi_libs
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10404 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10405 PMDA_PAPI=$pmda_papi
10407 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10408 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }; fi
10411 if test "x$pmda_papi" = "xtrue"; then :
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10414 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10415 cat <<End-of-File >conftest.c
10416 #include <papi.h>
10417 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10418 End-of-File
10419 (eval $ac_compile) 2>conftest.out
10420 cat conftest.out >&5
10421 if test -s conftest.out
10422 then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10425 else
10427 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430 $as_echo "yes" >&6; }
10433 rm -f conftest.*
10437 pmda_perfevent=false
10438 if test "x$do_perfevent" != "xno" ; then :
10440 enable_perfevent=true
10442 savedLIBS=$LIBS
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10444 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10445 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 ac_check_lib_save_LIBS=$LIBS
10449 LIBS="-lpfm $LIBS"
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10453 /* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10456 #ifdef __cplusplus
10457 extern "C"
10458 #endif
10459 char pfm_get_os_event_encoding ();
10461 main ()
10463 return pfm_get_os_event_encoding ();
10465 return 0;
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10470 else
10471 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
10473 rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10478 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10479 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes; then :
10480 pfm_libs="-lpfm"
10481 else
10482 enable_perfevent=false
10485 for ac_header in perfmon/pfmlib_perf_event.h
10486 do :
10487 ac_fn_c_check_header_mongrel "$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10488 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes; then :
10489 cat >>confdefs.h <<_ACEOF
10490 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10491 _ACEOF
10493 else
10494 enable_perfevent=false
10497 done
10499 if test "$do_perfevent" != "check" -a "$enable_papi" != "true"
10500 then
10501 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10502 else
10503 pmda_perfevent=$enable_perfevent
10505 LIBS=$savedLIBS
10506 PFM_LIBS=$pfm_libs
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10511 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10512 PMDA_PERFEVENT=$pmda_perfevent
10514 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10515 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }; fi
10518 pmda_rpm=false
10519 savedLIBS=$LIBS
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10521 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 #include <rpm/header.h>
10526 main ()
10528 (void)HEADERGET_EXT;
10530 return 0;
10532 _ACEOF
10533 if ac_fn_c_try_compile "$LINENO"; then :
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535 $as_echo "yes" >&6; }
10536 pmda_rpm=true
10537 else
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10543 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10544 PMDA_RPM=$pmda_rpm
10546 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10547 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }; fi
10549 LIBS=$savedLIBS
10551 pmda_postfix=false
10552 for ac_prog in qshape
10554 # Extract the first word of "$ac_prog", so it can be a program name with args.
10555 set dummy $ac_prog; ac_word=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if ${ac_cv_prog_QSHAPE+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 if test -n "$QSHAPE"; then
10562 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10563 else
10564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565 as_dummy="path=$PATH:/usr/sbin"
10566 for as_dir in $as_dummy
10568 IFS=$as_save_IFS
10569 test -z "$as_dir" && as_dir=.
10570 for ac_exec_ext in '' $ac_executable_extensions; do
10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10572 ac_cv_prog_QSHAPE="$ac_prog"
10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10574 break 2
10576 done
10577 done
10578 IFS=$as_save_IFS
10582 QSHAPE=$ac_cv_prog_QSHAPE
10583 if test -n "$QSHAPE"; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10585 $as_echo "$QSHAPE" >&6; }
10586 else
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10592 test -n "$QSHAPE" && break
10593 done
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10596 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10597 if test -n "$QSHAPE"
10598 then
10599 pmda_postfix=true
10600 else
10601 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10603 if test -f "$script"
10604 then
10605 pmda_postfix=true
10606 break
10608 done
10610 PMDA_POSTFIX=$pmda_postfix
10612 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10613 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }; fi
10617 pkg_failed=no
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10619 $as_echo_n "checking for libmicrohttpd... " >&6; }
10621 if test -n "$libmicrohttpd_CFLAGS"; then
10622 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
10623 elif test -n "$PKG_CONFIG"; then
10624 if test -n "$PKG_CONFIG" && \
10625 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10626 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10627 ac_status=$?
10628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10629 test $ac_status = 0; }; then
10630 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10631 test "x$?" != "x0" && pkg_failed=yes
10632 else
10633 pkg_failed=yes
10635 else
10636 pkg_failed=untried
10638 if test -n "$libmicrohttpd_LIBS"; then
10639 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
10640 elif test -n "$PKG_CONFIG"; then
10641 if test -n "$PKG_CONFIG" && \
10642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10643 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10644 ac_status=$?
10645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10646 test $ac_status = 0; }; then
10647 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10648 test "x$?" != "x0" && pkg_failed=yes
10649 else
10650 pkg_failed=yes
10652 else
10653 pkg_failed=untried
10658 if test $pkg_failed = yes; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10662 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10663 _pkg_short_errors_supported=yes
10664 else
10665 _pkg_short_errors_supported=no
10667 if test $_pkg_short_errors_supported = yes; then
10668 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10669 else
10670 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10672 # Put the nasty error message in config.log where it belongs
10673 echo "$libmicrohttpd_PKG_ERRORS" >&5
10675 have_libmicrohttpd=false
10676 elif test $pkg_failed = untried; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10679 have_libmicrohttpd=false
10680 else
10681 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
10682 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10684 $as_echo "yes" >&6; }
10685 have_libmicrohttpd=true
10687 HAVE_LIBMICROHTTPD=$have_libmicrohttpd
10691 pkg_failed=no
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10693 $as_echo_n "checking for cairo... " >&6; }
10695 if test -n "$cairo_CFLAGS"; then
10696 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
10697 elif test -n "$PKG_CONFIG"; then
10698 if test -n "$PKG_CONFIG" && \
10699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10700 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10701 ac_status=$?
10702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10703 test $ac_status = 0; }; then
10704 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10705 test "x$?" != "x0" && pkg_failed=yes
10706 else
10707 pkg_failed=yes
10709 else
10710 pkg_failed=untried
10712 if test -n "$cairo_LIBS"; then
10713 pkg_cv_cairo_LIBS="$cairo_LIBS"
10714 elif test -n "$PKG_CONFIG"; then
10715 if test -n "$PKG_CONFIG" && \
10716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10717 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10718 ac_status=$?
10719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10720 test $ac_status = 0; }; then
10721 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10722 test "x$?" != "x0" && pkg_failed=yes
10723 else
10724 pkg_failed=yes
10726 else
10727 pkg_failed=untried
10732 if test $pkg_failed = yes; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10737 _pkg_short_errors_supported=yes
10738 else
10739 _pkg_short_errors_supported=no
10741 if test $_pkg_short_errors_supported = yes; then
10742 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10743 else
10744 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10746 # Put the nasty error message in config.log where it belongs
10747 echo "$cairo_PKG_ERRORS" >&5
10749 have_cairo=false
10750 elif test $pkg_failed = untried; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10753 have_cairo=false
10754 else
10755 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
10756 cairo_LIBS=$pkg_cv_cairo_LIBS
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10758 $as_echo "yes" >&6; }
10759 have_cairo=true
10761 HAVE_CAIRO=$have_cairo
10764 enable_webapi=false
10765 if test "x$do_webapi" != "xno"; then :
10767 enable_webapi=true
10769 if test "$have_libmicrohttpd" != "true"
10770 then
10771 enable_webapi=false
10772 test "$do_webapi" != "check" && \
10773 as_fn_error $? "libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10774 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10775 then
10776 enable_webapi=false
10777 test "$do_webapi" != "check" && \
10778 as_fn_error $? "C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10784 enable_manager=false
10785 if test "x$do_manager" != "xno"; then :
10787 enable_manager=true
10789 if test "$target_os" = "mingw"
10790 then
10791 enable_manager=false
10792 test "$do_manager" != "check" && \
10793 as_fn_error $? "MinGW build, cannot enable daemon manager" "$LINENO" 5
10794 elif test "x$cxx" = "x"
10795 then
10796 enable_manager=false
10797 test "$do_manager" != "check" && \
10798 as_fn_error $? "C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10801 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #ifndef _XOPEN_SOURCE
10805 #define _XOPEN_SOURCE 600
10806 #endif
10807 #include <stdio.h>
10810 main ()
10814 return 0;
10816 _ACEOF
10817 if ac_fn_c_try_compile "$LINENO"; then :
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10819 $as_echo "yes" >&6; }
10820 else
10821 enable_manager=false
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10831 $as_echo_n "checking return type of signal handlers... " >&6; }
10832 if ${ac_cv_type_signal+:} false; then :
10833 $as_echo_n "(cached) " >&6
10834 else
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 #include <sys/types.h>
10838 #include <signal.h>
10841 main ()
10843 return *(signal (0, 0)) (0) == 1;
10845 return 0;
10847 _ACEOF
10848 if ac_fn_c_try_compile "$LINENO"; then :
10849 ac_cv_type_signal=int
10850 else
10851 ac_cv_type_signal=void
10853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10856 $as_echo "$ac_cv_type_signal" >&6; }
10858 cat >>confdefs.h <<_ACEOF
10859 #define RETSIGTYPE $ac_cv_type_signal
10860 _ACEOF
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
10864 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
10865 if ${ac_cv_func_wait3_rusage+:} false; then :
10866 $as_echo_n "(cached) " >&6
10867 else
10868 if test "$cross_compiling" = yes; then :
10869 ac_cv_func_wait3_rusage=no
10870 else
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10873 $ac_includes_default
10874 #include <sys/time.h>
10875 #include <sys/resource.h>
10876 #include <sys/wait.h>
10877 /* HP-UX has wait3 but does not fill in rusage at all. */
10879 main ()
10881 struct rusage r;
10882 int i;
10883 /* Use a field that we can force nonzero --
10884 voluntary context switches.
10885 For systems like NeXT and OSF/1 that don't set it,
10886 also use the system CPU time. And page faults (I/O) for Linux. */
10887 r.ru_nvcsw = 0;
10888 r.ru_stime.tv_sec = 0;
10889 r.ru_stime.tv_usec = 0;
10890 r.ru_majflt = r.ru_minflt = 0;
10891 switch (fork ())
10893 case 0: /* Child. */
10894 sleep(1); /* Give up the CPU. */
10895 _exit(0);
10896 break;
10897 case -1: /* What can we do? */
10898 _exit(0);
10899 break;
10900 default: /* Parent. */
10901 wait3(&i, 0, &r);
10902 /* Avoid "text file busy" from rm on fast HP-UX machines. */
10903 sleep(2);
10904 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
10905 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
10908 _ACEOF
10909 if ac_fn_c_try_run "$LINENO"; then :
10910 ac_cv_func_wait3_rusage=yes
10911 else
10912 ac_cv_func_wait3_rusage=no
10914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10915 conftest.$ac_objext conftest.beam conftest.$ac_ext
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
10920 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
10921 if test $ac_cv_func_wait3_rusage = yes; then
10923 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
10927 for ac_func in vprintf
10928 do :
10929 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10930 if test "x$ac_cv_func_vprintf" = xyes; then :
10931 cat >>confdefs.h <<_ACEOF
10932 #define HAVE_VPRINTF 1
10933 _ACEOF
10935 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10936 if test "x$ac_cv_func__doprnt" = xyes; then :
10938 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10943 done
10946 for ac_func in mktime nanosleep usleep unsetenv
10947 do :
10948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10950 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10951 cat >>confdefs.h <<_ACEOF
10952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10953 _ACEOF
10956 done
10958 for ac_func in select socket gethostname getpeerucred getpeereid
10959 do :
10960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10961 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10962 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10963 cat >>confdefs.h <<_ACEOF
10964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10965 _ACEOF
10968 done
10970 for ac_func in uname syslog __clone pipe2 fcntl ioctl
10971 do :
10972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10974 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10975 cat >>confdefs.h <<_ACEOF
10976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10977 _ACEOF
10980 done
10982 for ac_func in prctl setlinebuf waitpid atexit kill
10983 do :
10984 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10985 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10986 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10987 cat >>confdefs.h <<_ACEOF
10988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10989 _ACEOF
10992 done
10994 for ac_func in chown fchmod getcwd scandir mkstemp
10995 do :
10996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10998 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10999 cat >>confdefs.h <<_ACEOF
11000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11001 _ACEOF
11004 done
11006 for ac_func in brk sbrk posix_memalign memalign valloc
11007 do :
11008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11011 cat >>confdefs.h <<_ACEOF
11012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11013 _ACEOF
11016 done
11018 for ac_func in signal sighold sigrelse tcgetattr
11019 do :
11020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11022 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11023 cat >>confdefs.h <<_ACEOF
11024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025 _ACEOF
11028 done
11030 for ac_func in regex regcmp regexec regcomp
11031 do :
11032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11033 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11034 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11035 cat >>confdefs.h <<_ACEOF
11036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11037 _ACEOF
11040 done
11042 for ac_func in strtod strtol strtoll strtoull strndup strchrnul
11043 do :
11044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11047 cat >>confdefs.h <<_ACEOF
11048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11049 _ACEOF
11052 done
11054 for ac_func in getuid getgid
11055 do :
11056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11058 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11059 cat >>confdefs.h <<_ACEOF
11060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11064 done
11066 for ac_func in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11067 do :
11068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11070 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11071 cat >>confdefs.h <<_ACEOF
11072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11073 _ACEOF
11076 done
11078 for ac_func in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11079 do :
11080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11082 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11083 cat >>confdefs.h <<_ACEOF
11084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11085 _ACEOF
11088 done
11090 for ac_func in sysinfo trace_back_stack backtrace
11091 do :
11092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11094 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11095 cat >>confdefs.h <<_ACEOF
11096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11097 _ACEOF
11100 done
11102 for ac_func in sendmsg recvmsg setns
11103 do :
11104 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11105 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11106 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11107 cat >>confdefs.h <<_ACEOF
11108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11109 _ACEOF
11112 done
11115 if test $target_os != linux -a $target_os != freebsd -a $target_os != kfreebsd -a $target_os != netbsd; then
11116 for ac_func in readdir64
11117 do :
11118 ac_fn_c_check_func "$LINENO" "readdir64" "ac_cv_func_readdir64"
11119 if test "x$ac_cv_func_readdir64" = xyes; then :
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_READDIR64 1
11122 _ACEOF
11125 done
11129 if test $target_os = solaris
11130 then
11131 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11132 if test "x$ac_cv_type___int32_t" = xyes; then :
11134 else
11136 cat >>confdefs.h <<_ACEOF
11137 #define __int32_t int32_t
11138 _ACEOF
11142 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11143 if test "x$ac_cv_type___uint32_t" = xyes; then :
11145 else
11147 cat >>confdefs.h <<_ACEOF
11148 #define __uint32_t uint32_t
11149 _ACEOF
11153 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11154 if test "x$ac_cv_type___int64_t" = xyes; then :
11156 else
11158 cat >>confdefs.h <<_ACEOF
11159 #define __int64_t int64_t
11160 _ACEOF
11164 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11165 if test "x$ac_cv_type___uint64_t" = xyes; then :
11167 else
11169 cat >>confdefs.h <<_ACEOF
11170 #define __uint64_t uint64_t
11171 _ACEOF
11175 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11176 if test "x$ac_cv_type_uint_t" = xyes; then :
11178 else
11180 cat >>confdefs.h <<_ACEOF
11181 #define uint_t u_int32_t
11182 _ACEOF
11186 else
11187 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11188 if test "x$ac_cv_type___int32_t" = xyes; then :
11190 else
11192 cat >>confdefs.h <<_ACEOF
11193 #define __int32_t int
11194 _ACEOF
11198 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11199 if test "x$ac_cv_type___uint32_t" = xyes; then :
11201 else
11203 cat >>confdefs.h <<_ACEOF
11204 #define __uint32_t unsigned int
11205 _ACEOF
11209 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11210 if test "x$ac_cv_type___int64_t" = xyes; then :
11212 else
11214 cat >>confdefs.h <<_ACEOF
11215 #define __int64_t long long
11216 _ACEOF
11220 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11221 if test "x$ac_cv_type___uint64_t" = xyes; then :
11223 else
11225 cat >>confdefs.h <<_ACEOF
11226 #define __uint64_t unsigned long long
11227 _ACEOF
11231 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11232 if test "x$ac_cv_type_uint_t" = xyes; then :
11234 else
11236 cat >>confdefs.h <<_ACEOF
11237 #define uint_t unsigned int
11238 _ACEOF
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11245 $as_echo_n "checking for __psint_t ... " >&6; }
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11249 #include <sys/types.h>
11250 #include <stdlib.h>
11251 #include <stddef.h>
11254 main ()
11256 __psint_t psint;
11258 return 0;
11260 _ACEOF
11261 if ac_fn_c_try_compile "$LINENO"; then :
11263 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11265 $as_echo "yes" >&6; }
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11273 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11277 #include <stddef.h>
11278 #ifdef HAVE_MALLOC_H
11279 #include <malloc.h>
11280 #endif
11283 main ()
11285 ptrdiff_t ptrdiff;
11287 return 0;
11289 _ACEOF
11290 if ac_fn_c_try_compile "$LINENO"; then :
11292 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294 $as_echo "yes" >&6; }
11295 else
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11302 $as_echo_n "checking for uid_t ... " >&6; }
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 #include <sys/types.h>
11307 #ifdef HAVE_PWD_H
11308 #include <pwd.h>
11309 #endif
11312 main ()
11314 uid_t uid;
11316 return 0;
11318 _ACEOF
11319 if ac_fn_c_try_compile "$LINENO"; then :
11321 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11323 $as_echo "yes" >&6; }
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11330 $as_echo_n "checking for gid_t ... " >&6; }
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11334 #include <sys/types.h>
11335 #ifdef HAVE_GRP_H
11336 #include <grp.h>
11337 #endif
11340 main ()
11342 gid_t gid;
11344 return 0;
11346 _ACEOF
11347 if ac_fn_c_try_compile "$LINENO"; then :
11349 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351 $as_echo "yes" >&6; }
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11358 $as_echo_n "checking for SID ... " >&6; }
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 #ifdef HAVE_WINDOWS_H
11363 #include <windows.h>
11364 #endif
11367 main ()
11369 SID sid;
11371 return 0;
11373 _ACEOF
11374 if ac_fn_c_try_compile "$LINENO"; then :
11376 $as_echo "#define HAVE_SID 1" >>confdefs.h
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11378 $as_echo "yes" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11386 $as_echo_n "checking for socklen_t ... " >&6; }
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11390 #include <sys/types.h>
11391 #ifdef HAVE_SYS_SOCKET_H
11392 #include <sys/socket.h>
11393 #endif
11396 main ()
11398 socklen_t len;
11400 return 0;
11402 _ACEOF
11403 if ac_fn_c_try_compile "$LINENO"; then :
11405 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11407 $as_echo "yes" >&6; }
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11417 #include <stdio.h>
11420 main ()
11422 long long x = 0LL;
11424 return 0;
11426 _ACEOF
11427 if ac_fn_c_try_compile "$LINENO"; then :
11429 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11437 #include <stdlib.h>
11438 #include <unistd.h>
11441 main ()
11443 char **x = _environ;
11445 return 0;
11447 _ACEOF
11448 if ac_fn_c_try_link "$LINENO"; then :
11450 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11453 rm -f core conftest.err conftest.$ac_objext \
11454 conftest$ac_exeext conftest.$ac_ext
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11457 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 #ifdef HAVE_SYS_PRCTL_H
11462 #include <sys/prctl.h>
11463 #endif
11466 main ()
11468 int i = PR_TERMCHILD;
11470 return 0;
11472 _ACEOF
11473 if ac_fn_c_try_compile "$LINENO"; then :
11475 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11477 $as_echo "yes" >&6; }
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11485 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11489 #ifdef HAVE_SYS_PRCTL_H
11490 #include <sys/prctl.h>
11491 #endif
11494 main ()
11496 int i = PR_SET_PDEATHSIG;
11498 return 0;
11500 _ACEOF
11501 if ac_fn_c_try_compile "$LINENO"; then :
11503 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11505 $as_echo "yes" >&6; }
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11513 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11514 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 #include <sys/types.h>
11520 #include <termios.h>
11521 #ifdef TIOCGWINSZ
11523 #endif
11525 _ACEOF
11526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11527 $EGREP "yes" >/dev/null 2>&1; then :
11528 ac_cv_sys_tiocgwinsz_in_termios_h=yes
11529 else
11530 ac_cv_sys_tiocgwinsz_in_termios_h=no
11532 rm -f conftest*
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11536 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11538 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11540 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11541 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546 #include <sys/types.h>
11547 #include <sys/ioctl.h>
11548 #ifdef TIOCGWINSZ
11550 #endif
11552 _ACEOF
11553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11554 $EGREP "yes" >/dev/null 2>&1; then :
11555 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
11556 else
11557 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11559 rm -f conftest*
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11563 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11565 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11567 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11574 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11575 save_CFLAGS="$CFLAGS"
11576 CFLAGS="-rdynamic"
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11581 main ()
11585 return 0;
11587 _ACEOF
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11590 $as_echo "yes" >&6; }
11591 rdynamic_flag=-rdynamic
11592 else
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11595 rdynamic_flag=
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 CFLAGS="$save_CFLAGS"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11605 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11606 cat <<End-of-File >conftest.c
11607 #include <stdlib.h>
11608 #include <unistd.h>
11609 #include <dirent.h>
11610 static int
11611 my_select(const struct dirent *foo) { return 0; }
11612 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11613 End-of-File
11614 (eval $ac_compile) 2>conftest.out
11615 cat conftest.out >&5
11616 if test -s conftest.out
11617 then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11620 else
11622 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625 $as_echo "yes" >&6; }
11627 rm -f conftest.*
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11630 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11631 cat <<End-of-File >conftest.c
11632 #include <stdlib.h>
11633 #include <unistd.h>
11634 #include <dirent.h>
11635 int main() { struct dirent d; d.d_off = 0; }
11636 End-of-File
11637 (eval $ac_compile) 2>conftest.out
11638 cat conftest.out >&5
11639 if test -s conftest.out
11640 then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11643 else
11645 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11650 rm -f conftest.*
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11653 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11654 if test "$cross_compiling" = "yes"; then
11655 ans=$printf_p_prefix
11656 echo "cross-compile -> \"$ans\"" >&5
11657 else
11658 cat <<End-of-File >conftest.c
11659 #include <stdio.h>
11660 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11661 End-of-File
11662 (eval $ac_compile) 2>&5
11663 (eval $ac_link) 2>&5
11664 ans=`./conftest`
11665 echo "./conftest -> \"$ans\"" >&5
11667 case "$ans"
11669 0x*)
11671 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674 $as_echo "yes" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11680 esac
11681 rm -rf conftest conftest.*
11683 _do_type()
11685 # need to deal with this sort of cpp output ...
11686 # typedef long pid_t;
11687 # typedef unsigned int pid_t;
11688 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11689 # __extension__ typedef int pid_t;
11690 # typedef foo_t
11691 # pid_t;
11692 # typedef struct {
11693 # ....
11694 # } pid_t;
11695 # typedef ... *pid;
11696 # and chaining of the form
11697 # typedef long __pid_t;
11698 # typedef __pid_t pid_t;
11700 _raw=`$CPP conftest.c \
11701 | $SED \
11702 -e 's/[ ]__attribute__ ((.*));/;/' \
11703 -e 's/__extension__[ ][ ]*//' \
11704 | $AWK '
11705 /bozo/ { print; next }
11706 $1 == "typedef" { printf "%s",$0
11707 if ($NF ~ /;$/) {
11708 print ""
11709 next
11711 wantsemi = 1
11712 if ($0 ~ /{/) depth = 1
11713 next
11715 wantsemi == 1 { printf " %s",$0
11716 if ($0 ~ /{/) depth++
11717 if (depth) {
11718 if ($0 ~ /}/) depth--
11719 if (depth > 0) next
11721 if ($NF ~ /;$/) {
11722 print ""
11723 wantsemi = 0
11724 next
11726 }' \
11727 | $SED \
11728 -e 's/\*/* /g' \
11729 -e 's/^[ ]*//' \
11730 -e 's/;[ ]*$//' \
11731 | $AWK '
11732 $1 == "typedef" { map[$NF] = ""
11733 for (i = 2; i < NF; i++) {
11734 if (i == 2)
11735 map[$NF] = $i
11736 else
11737 map[$NF] = map[$NF] " " $i
11739 print $NF " -> " map[$NF] >"conftest.debug"
11740 next
11742 $2 == "bozo" { t = $1
11743 printf "best guess: %s",t >"conftest.debug"
11744 while (map[t] != "") {
11745 t = map[t]
11746 printf " -> %s",t >"conftest.debug"
11748 print "" >"conftest.debug"
11749 print t
11750 exit
11752 case "$_raw"
11754 int)
11755 _fmt='"d"'
11757 unsigned|'unsigned int')
11758 _fmt='"u"'
11760 long|'long int')
11761 _fmt='"ld"'
11763 'long long'|'long long int')
11764 if test $target_os = mingw; then
11765 _fmt='"I64d"'
11766 else
11767 _fmt='"lld"'
11770 'unsigned long'|'unsigned long int'|'long unsigned int')
11771 _fmt='"lu"'
11773 'unsigned long long'|'unsigned long long int')
11774 if test $target_os = mingw; then
11775 _fmt='"I64u"'
11776 else
11777 _fmt='"llu"'
11780 *\*) # pointer to a something
11781 _fmt='"p"'
11783 struct\ *) # not much can be done here ...
11784 _fmt='"p"'
11787 echo
11788 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11789 echo "... typedef mapping ..."
11790 cat conftest.debug
11791 rm -rf conftest conftest.*
11792 exit 1
11794 esac
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11798 $as_echo_n "checking printf type for pid_t... " >&6; }
11799 if test "$cross_compiling" = "yes"; then
11800 ans=$printf_fmt_pid
11801 echo "cross-compile -> \"$ans\"" >&5
11802 fmt_pid="$ans"
11803 else
11804 cat <<End-of-File >conftest.c
11805 #include <sys/types.h>
11806 #include <unistd.h>
11807 pid_t bozo;
11808 End-of-File
11809 _do_type
11810 fmt_pid="$_fmt"
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11813 $as_echo "$fmt_pid" >&6; }
11815 rm -rf conftest.c conftest.debug
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11818 $as_echo_n "checking printf type for int64_t ... " >&6; }
11819 if test "$cross_compiling" = "yes"; then
11820 ans=$printf_fmt_int64
11821 echo "cross-compile -> \"$ans\"" >&5
11822 else
11823 cat <<End-of-File >conftest.c
11824 #include <stdio.h>
11825 #include <stdint.h>
11826 #include <inttypes.h>
11827 int main()
11829 printf("\"%s\"\n", __PRI64_PREFIX "d");
11830 return(0);
11832 End-of-File
11833 ans=''
11834 (eval $ac_link) 2>&5
11835 if test -x ./conftest
11836 then
11837 ans=`./conftest`
11838 echo "./conftest -> \"$ans\"" >&5
11840 if test -z "$ans"
11841 then
11842 cat <<End-of-File >conftest.c
11843 #include <stdio.h>
11844 #include <stdint.h>
11845 #include <string.h>
11846 int main()
11848 char buf[17];
11849 int64_t bozo = 0x12345678abcdLL;
11850 sprintf(buf, "%lx", bozo);
11851 if (strcmp(buf, "12345678abcd") == 0)
11852 printf("\"ld\"\n");
11853 else {
11854 sprintf(buf, "%llx", bozo);
11855 if (strcmp(buf, "12345678abcd") == 0)
11856 printf("\"lld\"\n");
11858 return(0);
11860 End-of-File
11861 (eval $ac_link) 2>&5
11862 if test -x ./conftest
11863 then
11864 ans=`./conftest`
11865 echo "./conftest -> \"$ans\"" >&5
11869 if test -z "$ans"
11870 then
11871 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
11872 rm -rf conftest conftest.*
11873 exit 1
11875 fmt_int64="$ans"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
11877 $as_echo "\"$fmt_int64\"" >&6; }
11879 rm -rf conftest.* conftest
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
11882 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
11883 if test "$cross_compiling" = "yes"; then
11884 ans=$strtoint64
11885 echo "cross-compile -> \"$ans\"" >&5
11886 else
11887 cat <<End-of-File >conftest.c
11888 #include <stdio.h>
11889 #include <stdlib.h>
11890 main()
11892 long long int value = -1;
11893 value = strtol("1234567812345678", NULL, 16);
11894 if (value == 0x1234567812345678LL) {
11895 printf("strotol\n");
11896 exit(0);
11898 value = strtoll("1234567812345678", NULL, 16);
11899 if (value == 0x1234567812345678LL) {
11900 printf("strtoll\n");
11901 exit(0);
11903 exit(1);
11905 End-of-File
11906 (eval $ac_compile) 2>&5
11907 (eval $ac_link) 2>&5
11908 ans=`./conftest`
11909 echo "./conftest -> \"$ans\"" >&5
11911 case "$ans"
11913 strtol)
11914 $as_echo "#define strtoint64 strtol" >>confdefs.h
11916 $as_echo "#define strtouint64 strtoul" >>confdefs.h
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
11919 $as_echo "strtol" >&6; }
11921 strtoll)
11922 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11924 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
11927 $as_echo "strtoll" >&6; }
11930 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11932 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
11935 $as_echo "assuming strtoll" >&6; }
11937 esac
11938 rm -rf conftest conftest.*
11940 if test "$do_threads" = "check" -o "$do_threads" = "yes"
11941 then
11942 for ac_header in pthread.h
11943 do :
11944 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11945 if test "x$ac_cv_header_pthread_h" = xyes; then :
11946 cat >>confdefs.h <<_ACEOF
11947 #define HAVE_PTHREAD_H 1
11948 _ACEOF
11950 else
11952 if test "$do_threads" = "yes"
11953 then
11954 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
11959 done
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
11963 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #include <pthread.h>
11968 main ()
11970 pthread_mutex_t mymutex;
11972 return 0;
11974 _ACEOF
11975 if ac_fn_c_try_compile "$LINENO"; then :
11977 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11979 $as_echo "yes" >&6; }
11980 else
11982 if test "$do_threads" = "yes"
11983 then
11984 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
11994 $as_echo_n "checking where pthread_create() is defined... " >&6; }
11995 for cand in "" pthreads pthread ; do
11996 savedLIBS=$LIBS
11997 if test -n "$cand"
11998 then
11999 LIBS=`echo $LIBS -l$cand`
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12004 #include <pthread.h>
12007 main ()
12010 pthread_create(NULL, NULL, NULL, NULL);
12013 return 0;
12015 _ACEOF
12016 if ac_fn_c_try_link "$LINENO"; then :
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12018 $as_echo "lib${cand:-c}" >&6; }
12019 if test -z "$cand"
12020 then
12021 lib_for_pthreads="$cand"
12022 else
12023 lib_for_pthreads="-l$cand"
12025 LIBS=$savedLIBS
12026 break
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$savedLIBS
12031 done
12034 if test "$ac_cv_header_pthread_h" = "yes"
12035 then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12037 $as_echo_n "checking printf type for pthread_t... " >&6; }
12038 cat <<End-of-File >conftest.c
12039 #include <pthread.h>
12040 pthread_t bozo;
12041 End-of-File
12042 _do_type
12043 fmt_pthread="$_fmt"
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12045 $as_echo "$fmt_pthread" >&6; }
12047 rm -rf conftest.c conftest.debug
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12050 $as_echo_n "checking if compiler supports __thread... " >&6; }
12051 if test $target_os = netbsd
12052 then
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055 #include <pthread.h>
12056 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12057 broken!
12058 #else
12059 __thread int x;
12060 #endif
12062 main ()
12066 return 0;
12068 _ACEOF
12069 if ac_fn_c_try_compile "$LINENO"; then :
12071 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073 $as_echo "yes" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 else
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #include <pthread.h>
12083 __thread int x;
12085 main ()
12089 return 0;
12091 _ACEOF
12092 if ac_fn_c_try_compile "$LINENO"; then :
12094 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12096 $as_echo "yes" >&6; }
12097 else
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12105 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108 #include <pthread.h>
12110 main ()
12112 pthread_barrier_t mybarrier;
12114 return 0;
12116 _ACEOF
12117 if ac_fn_c_try_compile "$LINENO"; then :
12119 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12121 $as_echo "yes" >&6; }
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12131 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12132 if test "$cross_compiling" = "yes"; then
12133 ans=$sizeof_suseconds_t
12134 echo "cross-compile -> \"$ans\"" >&5
12135 else
12136 cat <<End-of-File >conftest.c
12137 #include <sys/time.h>
12138 main() { printf("%d", (int)sizeof(suseconds_t)); }
12139 End-of-File
12140 (eval $ac_compile) 2>&5
12141 (eval $ac_link) 2>&5
12142 ans=`./conftest`
12143 echo "./conftest -> \"$ans\"" >&5
12144 rm -rf conftest conftest.*
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12147 $as_echo "$ans" >&6; }
12149 cat >>confdefs.h <<_ACEOF
12150 #define SIZEOF_SUSECONDS_T $ans
12151 _ACEOF
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12155 $as_echo_n "checking sizeof time_t... " >&6; }
12156 if test "$cross_compiling" = "yes"; then
12157 ans=$sizeof_time_t
12158 echo "cross-compile -> \"$ans\"" >&5
12159 else
12160 cat <<End-of-File >conftest.c
12161 #include <sys/time.h>
12162 main() { printf("%d", (int)sizeof(time_t)); }
12163 End-of-File
12164 (eval $ac_compile) 2>&5
12165 (eval $ac_link) 2>&5
12166 ans=`./conftest`
12167 echo "./conftest -> \"$ans\"" >&5
12168 rm -rf conftest conftest.*
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12171 $as_echo "$ans" >&6; }
12173 cat >>confdefs.h <<_ACEOF
12174 #define SIZEOF_TIME_T $ans
12175 _ACEOF
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12179 $as_echo_n "checking sizeof long... " >&6; }
12180 if test "$cross_compiling" = "yes"; then
12181 ans=$sizeof_long
12182 echo "cross-compile -> \"$ans\"" >&5
12183 else
12184 cat <<End-of-File >conftest.c
12185 #include <stdio.h>
12186 main() { printf("%d", (int)sizeof(long)); }
12187 End-of-File
12188 (eval $ac_compile) 2>&5
12189 (eval $ac_link) 2>&5
12190 ans=`./conftest`
12191 echo "./conftest -> \"$ans\"" >&5
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12194 $as_echo "$ans" >&6; }
12195 if test "$ans" = 4; then
12197 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12199 elif test "$ans" = 8; then
12201 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12203 else
12204 echo
12205 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12206 echo "sizeof(char *) -> $ans"
12207 rm -rf conftest conftest.*
12208 exit 1
12210 rm -rf conftest conftest.*
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12213 $as_echo_n "checking sizeof pointer... " >&6; }
12214 if test "$cross_compiling" = "yes"; then
12215 ans=$sizeof_pointer
12216 echo "cross-compile -> \"$ans\"" >&5
12217 else
12218 cat <<End-of-File >conftest.c
12219 #include <stdio.h>
12220 main() { printf("%d", (int)sizeof(char *)); }
12221 End-of-File
12222 (eval $ac_compile) 2>&5
12223 (eval $ac_link) 2>&5
12224 ans=`./conftest`
12225 echo "./conftest -> \"$ans\"" >&5
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12228 $as_echo "$ans" >&6; }
12229 if test "$ans" = 4; then
12231 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12233 PCP_PTR_SIZE=32
12234 elif test "$ans" = 8; then
12236 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12238 PCP_PTR_SIZE=64
12239 else
12240 echo
12241 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12242 echo "sizeof(char *) -> $ans"
12243 rm -rf conftest conftest.*
12244 exit 1
12246 rm -rf conftest conftest.*
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12249 $as_echo_n "checking sizeof int... " >&6; }
12250 if test "$cross_compiling" = "yes"; then
12251 ans=$sizeof_int
12252 echo "cross-compile -> \"$ans\"" >&5
12253 else
12254 cat <<End-of-File >conftest.c
12255 #include <stdio.h>
12256 main() { printf("%d", (int)sizeof(int)); }
12257 End-of-File
12258 (eval $ac_compile) 2>&5
12259 (eval $ac_link) 2>&5
12260 ans=`./conftest`
12261 echo "./conftest -> \"$ans\"" >&5
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12264 $as_echo "$ans" >&6; }
12265 if test "$ans" != 4
12266 then
12267 echo
12268 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12269 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12270 echo " the over-the-wire PDU formats"
12271 rm -rf conftest conftest.*
12272 exit 1
12274 rm -rf conftest conftest.*
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12277 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12278 if test "$cross_compiling" = "yes"; then
12279 ans=$bit_field_scheme
12280 echo "cross-compile -> \"$ans\"" >&5
12281 else
12282 cat <<End-of-File >conftest.c
12283 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12284 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12285 End-of-File
12286 (eval $ac_compile) 2>&5
12287 (eval $ac_link) 2>&5
12288 ans=`./conftest`
12289 echo "./conftest -> \"$ans\"" >&5
12291 case "$ans"
12293 1200*|*0012)
12294 # left-to-right starting from MSB (SGI cc on MIPS), or
12295 # left-to-right ending at LSB
12297 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12300 $as_echo "yes" >&6; }
12302 2100*|*0021)
12303 # right-to-left ending at MSB, or
12304 # right-to-left starting from LSB (gcc in Intel)
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12310 $as_echo "unknown" >&6; }
12311 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12312 rm -f conftest conftest.*
12313 exit 1
12315 esac
12316 rm -rf conftest conftest.*
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 #include <stdlib.h>
12322 #include <unistd.h>
12325 main ()
12328 __uint64_t x = 0;
12329 double y = (double)x;
12332 return 0;
12334 _ACEOF
12335 if ac_fn_c_try_link "$LINENO"; then :
12337 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12340 rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12343 for ac_func in basename
12344 do :
12345 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12346 if test "x$ac_cv_func_basename" = xyes; then :
12347 cat >>confdefs.h <<_ACEOF
12348 #define HAVE_BASENAME 1
12349 _ACEOF
12352 done
12354 if test $ac_cv_func_basename = yes
12355 then
12357 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12360 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12362 lib_for_basename=""
12363 else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12365 $as_echo_n "checking for basename in -lgen... " >&6; }
12366 if ${ac_cv_lib_gen_basename+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 ac_check_lib_save_LIBS=$LIBS
12370 LIBS="-lgen $LIBS"
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 /* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 char basename ();
12382 main ()
12384 return basename ();
12386 return 0;
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 ac_cv_lib_gen_basename=yes
12391 else
12392 ac_cv_lib_gen_basename=no
12394 rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS=$ac_check_lib_save_LIBS
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12399 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12400 if test "x$ac_cv_lib_gen_basename" = xyes; then :
12401 cat >>confdefs.h <<_ACEOF
12402 #define HAVE_LIBGEN 1
12403 _ACEOF
12405 LIBS="-lgen $LIBS"
12409 if test $ac_cv_lib_gen_basename = yes
12410 then
12412 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12415 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12417 lib_for_basename="-lgen"
12418 else
12419 lib_for_basename="-lpcp"
12424 lib_for_clock_gettime=
12425 for ac_func in clock_gettime
12426 do :
12427 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12428 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_CLOCK_GETTIME 1
12431 _ACEOF
12434 done
12436 if test $ac_cv_func_clock_gettime = no
12437 then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12439 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12440 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-lrt $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 clock_gettime ();
12456 main ()
12458 return clock_gettime ();
12460 return 0;
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464 ac_cv_lib_rt_clock_gettime=yes
12465 else
12466 ac_cv_lib_rt_clock_gettime=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_rt_clock_gettime" >&5
12473 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12474 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12475 cat >>confdefs.h <<_ACEOF
12476 #define HAVE_LIBRT 1
12477 _ACEOF
12479 LIBS="-lrt $LIBS"
12483 if test $ac_cv_lib_rt_clock_gettime = yes
12484 then
12486 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12488 lib_for_rt=-lrt
12493 lib_for_dlopen=
12494 for ac_func in dlopen
12495 do :
12496 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12497 if test "x$ac_cv_func_dlopen" = xyes; then :
12498 cat >>confdefs.h <<_ACEOF
12499 #define HAVE_DLOPEN 1
12500 _ACEOF
12503 done
12505 if test $ac_cv_func_dlopen = no
12506 then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12508 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12509 if ${ac_cv_lib_dl_dlopen+:} false; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 ac_check_lib_save_LIBS=$LIBS
12513 LIBS="-ldl $LIBS"
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12520 #ifdef __cplusplus
12521 extern "C"
12522 #endif
12523 char dlopen ();
12525 main ()
12527 return dlopen ();
12529 return 0;
12531 _ACEOF
12532 if ac_fn_c_try_link "$LINENO"; then :
12533 ac_cv_lib_dl_dlopen=yes
12534 else
12535 ac_cv_lib_dl_dlopen=no
12537 rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539 LIBS=$ac_check_lib_save_LIBS
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12542 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12543 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12544 cat >>confdefs.h <<_ACEOF
12545 #define HAVE_LIBDL 1
12546 _ACEOF
12548 LIBS="-ldl $LIBS"
12552 if test $ac_cv_lib_dl_dlopen = yes
12553 then
12555 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12557 lib_for_dlopen=-ldl
12562 lib_for_math=
12563 for ac_func in flog10
12564 do :
12565 ac_fn_c_check_func "$LINENO" "flog10" "ac_cv_func_flog10"
12566 if test "x$ac_cv_func_flog10" = xyes; then :
12567 cat >>confdefs.h <<_ACEOF
12568 #define HAVE_FLOG10 1
12569 _ACEOF
12572 done
12574 if test $ac_cv_func_flog10 = no
12575 then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12577 $as_echo_n "checking for flog10 in -lm... " >&6; }
12578 if ${ac_cv_lib_m_flog10+:} false; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 ac_check_lib_save_LIBS=$LIBS
12582 LIBS="-lm $LIBS"
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12586 /* Override any GCC internal prototype to avoid an error.
12587 Use char because int might match the return type of a GCC
12588 builtin and then its argument prototype would still apply. */
12589 #ifdef __cplusplus
12590 extern "C"
12591 #endif
12592 char flog10 ();
12594 main ()
12596 return flog10 ();
12598 return 0;
12600 _ACEOF
12601 if ac_fn_c_try_link "$LINENO"; then :
12602 ac_cv_lib_m_flog10=yes
12603 else
12604 ac_cv_lib_m_flog10=no
12606 rm -f core conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12608 LIBS=$ac_check_lib_save_LIBS
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12611 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12612 if test "x$ac_cv_lib_m_flog10" = xyes; then :
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_LIBM 1
12615 _ACEOF
12617 LIBS="-lm $LIBS"
12621 if test $ac_cv_lib_m_flog10 = yes
12622 then
12624 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12626 lib_for_math=-lm
12628 else
12630 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12633 for ac_func in pow
12634 do :
12635 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12636 if test "x$ac_cv_func_pow" = xyes; then :
12637 cat >>confdefs.h <<_ACEOF
12638 #define HAVE_POW 1
12639 _ACEOF
12642 done
12644 if test $ac_cv_func_pow = no
12645 then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12647 $as_echo_n "checking for pow in -lm... " >&6; }
12648 if ${ac_cv_lib_m_pow+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 ac_check_lib_save_LIBS=$LIBS
12652 LIBS="-lm $LIBS"
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12656 /* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12659 #ifdef __cplusplus
12660 extern "C"
12661 #endif
12662 char pow ();
12664 main ()
12666 return pow ();
12668 return 0;
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"; then :
12672 ac_cv_lib_m_pow=yes
12673 else
12674 ac_cv_lib_m_pow=no
12676 rm -f core conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12678 LIBS=$ac_check_lib_save_LIBS
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12681 $as_echo "$ac_cv_lib_m_pow" >&6; }
12682 if test "x$ac_cv_lib_m_pow" = xyes; then :
12683 cat >>confdefs.h <<_ACEOF
12684 #define HAVE_LIBM 1
12685 _ACEOF
12687 LIBS="-lm $LIBS"
12691 if test $ac_cv_lib_m_pow = yes
12692 then
12694 $as_echo "#define HAVE_POW 1" >>confdefs.h
12696 lib_for_math=-lm
12698 else
12700 $as_echo "#define HAVE_POW 1" >>confdefs.h
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12704 $as_echo_n "checking for fpclassify()... " >&6; }
12705 ac_cv_func_fpclassify=no
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12709 #include <math.h>
12712 main ()
12715 double x = 123.456;
12716 if (fpclassify(x) == FP_NAN) exit(1);
12719 return 0;
12721 _ACEOF
12722 if ac_fn_c_try_link "$LINENO"; then :
12723 ac_cv_func_fpclassify=yes
12725 rm -f core conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext conftest.$ac_ext
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12728 $as_echo "$ac_cv_func_fpclassify" >&6; }
12729 if test $ac_cv_func_fpclassify = no
12730 then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12732 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12733 savedLIBS=$LIBS
12734 LIBS=-lm
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12738 #include <math.h>
12741 main ()
12744 double x = 123.456;
12745 if (fpclassify(x) == FP_NAN) exit(1);
12748 return 0;
12750 _ACEOF
12751 if ac_fn_c_try_link "$LINENO"; then :
12752 ac_cv_func_fpclassify=yes
12754 rm -f core conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12757 $as_echo "$ac_cv_func_fpclassify" >&6; }
12758 if test $ac_cv_func_fpclassify = yes
12759 then
12760 lib_for_math=-lm
12762 LIBS=$savedLIBS
12764 if test $ac_cv_func_fpclassify = yes
12765 then
12767 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12769 else
12770 for ac_func in isnan
12771 do :
12772 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12773 if test "x$ac_cv_func_isnan" = xyes; then :
12774 cat >>confdefs.h <<_ACEOF
12775 #define HAVE_ISNAN 1
12776 _ACEOF
12779 done
12781 if test $ac_cv_func_isnan = no
12782 then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12784 $as_echo_n "checking for isnan in -lm... " >&6; }
12785 if ${ac_cv_lib_m_isnan+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 ac_check_lib_save_LIBS=$LIBS
12789 LIBS="-lm $LIBS"
12790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12793 /* Override any GCC internal prototype to avoid an error.
12794 Use char because int might match the return type of a GCC
12795 builtin and then its argument prototype would still apply. */
12796 #ifdef __cplusplus
12797 extern "C"
12798 #endif
12799 char isnan ();
12801 main ()
12803 return isnan ();
12805 return 0;
12807 _ACEOF
12808 if ac_fn_c_try_link "$LINENO"; then :
12809 ac_cv_lib_m_isnan=yes
12810 else
12811 ac_cv_lib_m_isnan=no
12813 rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12815 LIBS=$ac_check_lib_save_LIBS
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12818 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12819 if test "x$ac_cv_lib_m_isnan" = xyes; then :
12820 cat >>confdefs.h <<_ACEOF
12821 #define HAVE_LIBM 1
12822 _ACEOF
12824 LIBS="-lm $LIBS"
12828 if test $ac_cv_lib_m_isnan = yes
12829 then
12831 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12833 lib_for_math=-lm
12836 for ac_func in isnanf
12837 do :
12838 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
12839 if test "x$ac_cv_func_isnanf" = xyes; then :
12840 cat >>confdefs.h <<_ACEOF
12841 #define HAVE_ISNANF 1
12842 _ACEOF
12845 done
12847 if test $ac_cv_func_isnanf = no
12848 then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
12850 $as_echo_n "checking for isnanf in -lm... " >&6; }
12851 if ${ac_cv_lib_m_isnanf+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 ac_check_lib_save_LIBS=$LIBS
12855 LIBS="-lm $LIBS"
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char isnanf ();
12867 main ()
12869 return isnanf ();
12871 return 0;
12873 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
12875 ac_cv_lib_m_isnanf=yes
12876 else
12877 ac_cv_lib_m_isnanf=no
12879 rm -f core conftest.err conftest.$ac_objext \
12880 conftest$ac_exeext conftest.$ac_ext
12881 LIBS=$ac_check_lib_save_LIBS
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
12884 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
12885 if test "x$ac_cv_lib_m_isnanf" = xyes; then :
12886 cat >>confdefs.h <<_ACEOF
12887 #define HAVE_LIBM 1
12888 _ACEOF
12890 LIBS="-lm $LIBS"
12894 if test $ac_cv_lib_m_isnanf = yes
12895 then
12897 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
12899 lib_for_math=-lm
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907 #include <signal.h>
12909 main ()
12911 SIG_PF x;
12913 return 0;
12915 _ACEOF
12916 if ac_fn_c_try_link "$LINENO"; then :
12918 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
12921 rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926 #include <signal.h>
12928 main ()
12930 int x = SA_SIGINFO;
12932 return 0;
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"; then :
12937 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12945 #include <signal.h>
12947 main ()
12949 int x = SIGPIPE;
12951 return 0;
12953 _ACEOF
12954 if ac_fn_c_try_link "$LINENO"; then :
12956 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
12959 rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <signal.h>
12966 main ()
12968 int x = SIGHUP;
12970 return 0;
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12975 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12983 #include <signal.h>
12985 main ()
12987 int x = SIGBUS;
12989 return 0;
12991 _ACEOF
12992 if ac_fn_c_try_link "$LINENO"; then :
12994 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002 #include <sys/wait.h>
13004 main ()
13006 typedef void (*SIGRET)(int);
13007 SIGRET x = SIG_IGN;
13010 return 0;
13012 _ACEOF
13013 if ac_fn_c_try_link "$LINENO"; then :
13015 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13018 rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13021 have_stat_type=false
13022 have_stat_name=false
13023 if test $have_stat_name = false
13024 then
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13027 #include <sys/stat.h>
13029 _ACEOF
13030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13031 $EGREP "[ ]st_mtimespec" >/dev/null 2>&1; then :
13032 have_stat_name=true;
13034 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13037 rm -f conftest*
13040 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
13041 then
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044 #include <sys/stat.h>
13046 _ACEOF
13047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13048 $EGREP "[ ]st_mtime" >/dev/null 2>&1; then :
13049 have_stat_name=true;
13051 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13054 rm -f conftest*
13057 if test $have_stat_type = false
13058 then
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 #include <sys/stat.h>
13063 _ACEOF
13064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13065 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13066 have_stat_type=true;
13068 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13071 rm -f conftest*
13074 if test $have_stat_type = false
13075 then
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13078 #include <sys/stat.h>
13080 _ACEOF
13081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13082 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13083 have_stat_type=true;
13085 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13088 rm -f conftest*
13091 if test $have_stat_type = false
13092 then
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 #include <sys/stat.h>
13097 _ACEOF
13098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13099 $EGREP "timespec[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13100 have_stat_type=true;
13102 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13105 rm -f conftest*
13108 if test $have_stat_type = false
13109 then
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 #include <sys/stat.h>
13114 _ACEOF
13115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13116 $EGREP "time_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13117 have_stat_type=true;
13119 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13122 rm -f conftest*
13125 if test $have_stat_type = false
13126 then
13127 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13128 rm -rf conftest conftest.*
13129 exit 1
13133 pcp_etc_dir=`eval echo $sysconfdir`
13134 pcp_etc_dir=`eval echo $pcp_etc_dir`
13136 pcp_saslconf_dir=`eval echo $sysconfdir/sasl2`
13137 pcp_saslconf_dir=`eval echo $pcp_saslconf_dir`
13139 pcp_sysconf_dir=`eval echo $sysconfdir/pcp`
13140 pcp_sysconf_dir=`eval echo $pcp_sysconf_dir`
13142 pcp_pmcdconf_path=$pcp_sysconf_dir/pmcd/pmcd.conf
13143 pcp_pmcdrclocal_path=$pcp_sysconf_dir/pmcd/rc.local
13144 pcp_pmcdoptions_path=$pcp_sysconf_dir/pmcd/pmcd.options
13145 pcp_pmwebdoptions_path=$pcp_sysconf_dir/pmwebd/pmwebd.options
13146 pcp_pmmgroptions_path=$pcp_sysconf_dir/pmmgr/pmmgr.options
13147 pcp_pmproxyoptions_path=$pcp_sysconf_dir/pmproxy/pmproxy.options
13148 pcp_pmiecontrol_path=$pcp_sysconf_dir/pmie/control
13149 pcp_pmsnapcontrol_path=$pcp_sysconf_dir/pmsnap/control
13150 pcp_pmloggercontrol_path=$pcp_sysconf_dir/pmlogger/control
13161 pcp_share_dir=`eval echo $datarootdir/pcp`
13162 pcp_share_dir=`eval echo $pcp_share_dir`
13165 pcp_binadm_dir=`eval echo $libexecdir/pcp/bin`
13166 pcp_binadm_dir=`eval echo $pcp_binadm_dir`
13169 pcp_var_dir=`eval echo $localstatedir/lib/pcp`
13170 pcp_var_dir=`eval echo $pcp_var_dir`
13174 # Check whether --with-configdir was given.
13175 if test "${with_configdir+set}" = set; then :
13176 withval=$with_configdir; pcp_config_dir=$withval
13177 else
13178 pcp_config_dir=$pcp_var_dir/config
13182 pcp_pmdas_dir=$pcp_var_dir/pmdas
13185 pcp_lib_dir=`eval echo $libdir`
13186 pcp_lib_dir=`eval echo $pcp_lib_dir`
13187 pcp_lib32_dir=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13192 # Check whether --with-perl_installdirs was given.
13193 if test "${with_perl_installdirs+set}" = set; then :
13194 withval=$with_perl_installdirs; perl_installdirs=$withval
13195 else
13196 perl_installdirs=vendor
13199 perl_installdirs=`eval echo $perl_installdirs`
13200 perl_installdirs=`eval echo $perl_installdirs`
13203 # Check whether --with-perl_install_base was given.
13204 if test "${with_perl_install_base+set}" = set; then :
13205 withval=$with_perl_install_base; perl_install_base=$withval
13206 else
13207 perl_install_base=$prefix
13210 perl_install_base=`eval echo $perl_install_base`
13211 perl_install_base=`eval echo $perl_install_base`
13215 # Check whether --with-python_prefix was given.
13216 if test "${with_python_prefix+set}" = set; then :
13217 withval=$with_python_prefix; python_prefix=$withval
13218 else
13219 python_prefix=$prefix
13222 python_prefix=`eval echo $python_prefix`
13223 python_prefix=`eval echo $python_prefix`
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13227 $as_echo_n "checking for X... " >&6; }
13230 # Check whether --with-x was given.
13231 if test "${with_x+set}" = set; then :
13232 withval=$with_x;
13235 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13236 if test "x$with_x" = xno; then
13237 # The user explicitly disabled X.
13238 have_x=disabled
13239 else
13240 case $x_includes,$x_libraries in #(
13241 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13242 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 # One or both of the vars are not set, and there is no cached value.
13246 ac_x_includes=no ac_x_libraries=no
13247 rm -f -r conftest.dir
13248 if mkdir conftest.dir; then
13249 cd conftest.dir
13250 cat >Imakefile <<'_ACEOF'
13251 incroot:
13252 @echo incroot='${INCROOT}'
13253 usrlibdir:
13254 @echo usrlibdir='${USRLIBDIR}'
13255 libdir:
13256 @echo libdir='${LIBDIR}'
13257 _ACEOF
13258 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13260 for ac_var in incroot usrlibdir libdir; do
13261 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13262 done
13263 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13264 for ac_extension in a so sl dylib la dll; do
13265 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13266 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13267 ac_im_usrlibdir=$ac_im_libdir; break
13269 done
13270 # Screen out bogus values from the imake configuration. They are
13271 # bogus both because they are the default anyway, and because
13272 # using them would break gcc on systems where it needs fixed includes.
13273 case $ac_im_incroot in
13274 /usr/include) ac_x_includes= ;;
13275 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13276 esac
13277 case $ac_im_usrlibdir in
13278 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13279 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13280 esac
13282 cd ..
13283 rm -f -r conftest.dir
13286 # Standard set of common directories for X headers.
13287 # Check X11 before X11Rn because it is often a symlink to the current release.
13288 ac_x_header_dirs='
13289 /usr/X11/include
13290 /usr/X11R7/include
13291 /usr/X11R6/include
13292 /usr/X11R5/include
13293 /usr/X11R4/include
13295 /usr/include/X11
13296 /usr/include/X11R7
13297 /usr/include/X11R6
13298 /usr/include/X11R5
13299 /usr/include/X11R4
13301 /usr/local/X11/include
13302 /usr/local/X11R7/include
13303 /usr/local/X11R6/include
13304 /usr/local/X11R5/include
13305 /usr/local/X11R4/include
13307 /usr/local/include/X11
13308 /usr/local/include/X11R7
13309 /usr/local/include/X11R6
13310 /usr/local/include/X11R5
13311 /usr/local/include/X11R4
13313 /usr/X386/include
13314 /usr/x386/include
13315 /usr/XFree86/include/X11
13317 /usr/include
13318 /usr/local/include
13319 /usr/unsupported/include
13320 /usr/athena/include
13321 /usr/local/x11r5/include
13322 /usr/lpp/Xamples/include
13324 /usr/openwin/include
13325 /usr/openwin/share/include'
13327 if test "$ac_x_includes" = no; then
13328 # Guess where to find include files, by looking for Xlib.h.
13329 # First, try using that file with no special directory specified.
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13332 #include <X11/Xlib.h>
13333 _ACEOF
13334 if ac_fn_c_try_cpp "$LINENO"; then :
13335 # We can compile using X headers with no special include directory.
13336 ac_x_includes=
13337 else
13338 for ac_dir in $ac_x_header_dirs; do
13339 if test -r "$ac_dir/X11/Xlib.h"; then
13340 ac_x_includes=$ac_dir
13341 break
13343 done
13345 rm -f conftest.err conftest.i conftest.$ac_ext
13346 fi # $ac_x_includes = no
13348 if test "$ac_x_libraries" = no; then
13349 # Check for the libraries.
13350 # See if we find them without any special options.
13351 # Don't add to $LIBS permanently.
13352 ac_save_LIBS=$LIBS
13353 LIBS="-lX11 $LIBS"
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 #include <X11/Xlib.h>
13358 main ()
13360 XrmInitialize ()
13362 return 0;
13364 _ACEOF
13365 if ac_fn_c_try_link "$LINENO"; then :
13366 LIBS=$ac_save_LIBS
13367 # We can link X programs with no special library path.
13368 ac_x_libraries=
13369 else
13370 LIBS=$ac_save_LIBS
13371 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13373 # Don't even attempt the hair of trying to link an X program!
13374 for ac_extension in a so sl dylib la dll; do
13375 if test -r "$ac_dir/libX11.$ac_extension"; then
13376 ac_x_libraries=$ac_dir
13377 break 2
13379 done
13380 done
13382 rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384 fi # $ac_x_libraries = no
13386 case $ac_x_includes,$ac_x_libraries in #(
13387 no,* | *,no | *\'*)
13388 # Didn't find X, or a directory has "'" in its name.
13389 ac_cv_have_x="have_x=no";; #(
13391 # Record where we found X for the cache.
13392 ac_cv_have_x="have_x=yes\
13393 ac_x_includes='$ac_x_includes'\
13394 ac_x_libraries='$ac_x_libraries'"
13395 esac
13397 ;; #(
13398 *) have_x=yes;;
13399 esac
13400 eval "$ac_cv_have_x"
13401 fi # $with_x != no
13403 if test "$have_x" != yes; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13405 $as_echo "$have_x" >&6; }
13406 no_x=yes
13407 else
13408 # If each of the values was on the command line, it overrides each guess.
13409 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13410 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13411 # Update the cache value to reflect the command line values.
13412 ac_cv_have_x="have_x=yes\
13413 ac_x_includes='$x_includes'\
13414 ac_x_libraries='$x_libraries'"
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13416 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13419 if test "$no_x" = yes; then
13420 # Not all programs may use this symbol, but it does not hurt to define it.
13422 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13424 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13425 else
13426 if test -n "$x_includes"; then
13427 X_CFLAGS="$X_CFLAGS -I$x_includes"
13430 # It would also be nice to do this for all -L options, not just this one.
13431 if test -n "$x_libraries"; then
13432 X_LIBS="$X_LIBS -L$x_libraries"
13433 # For Solaris; some versions of Sun CC require a space after -R and
13434 # others require no space. Words are not sufficient . . . .
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13436 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13437 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13438 ac_xsave_c_werror_flag=$ac_c_werror_flag
13439 ac_c_werror_flag=yes
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13444 main ()
13448 return 0;
13450 _ACEOF
13451 if ac_fn_c_try_link "$LINENO"; then :
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13454 X_LIBS="$X_LIBS -R$x_libraries"
13455 else
13456 LIBS="$ac_xsave_LIBS -R $x_libraries"
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13461 main ()
13465 return 0;
13467 _ACEOF
13468 if ac_fn_c_try_link "$LINENO"; then :
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13470 $as_echo "yes" >&6; }
13471 X_LIBS="$X_LIBS -R $x_libraries"
13472 else
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13474 $as_echo "neither works" >&6; }
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13479 rm -f core conftest.err conftest.$ac_objext \
13480 conftest$ac_exeext conftest.$ac_ext
13481 ac_c_werror_flag=$ac_xsave_c_werror_flag
13482 LIBS=$ac_xsave_LIBS
13485 # Check for system-dependent libraries X programs must link with.
13486 # Do this before checking for the system-independent R6 libraries
13487 # (-lICE), since we may need -lsocket or whatever for X linking.
13489 if test "$ISC" = yes; then
13490 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13491 else
13492 # Martyn Johnson says this is needed for Ultrix, if the X
13493 # libraries were built with DECnet support. And Karl Berry says
13494 # the Alpha needs dnet_stub (dnet does not exist).
13495 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13502 #ifdef __cplusplus
13503 extern "C"
13504 #endif
13505 char XOpenDisplay ();
13507 main ()
13509 return XOpenDisplay ();
13511 return 0;
13513 _ACEOF
13514 if ac_fn_c_try_link "$LINENO"; then :
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13518 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13519 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 ac_check_lib_save_LIBS=$LIBS
13523 LIBS="-ldnet $LIBS"
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13527 /* Override any GCC internal prototype to avoid an error.
13528 Use char because int might match the return type of a GCC
13529 builtin and then its argument prototype would still apply. */
13530 #ifdef __cplusplus
13531 extern "C"
13532 #endif
13533 char dnet_ntoa ();
13535 main ()
13537 return dnet_ntoa ();
13539 return 0;
13541 _ACEOF
13542 if ac_fn_c_try_link "$LINENO"; then :
13543 ac_cv_lib_dnet_dnet_ntoa=yes
13544 else
13545 ac_cv_lib_dnet_dnet_ntoa=no
13547 rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13549 LIBS=$ac_check_lib_save_LIBS
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13552 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13553 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13554 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13557 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13559 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13560 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 ac_check_lib_save_LIBS=$LIBS
13564 LIBS="-ldnet_stub $LIBS"
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13568 /* Override any GCC internal prototype to avoid an error.
13569 Use char because int might match the return type of a GCC
13570 builtin and then its argument prototype would still apply. */
13571 #ifdef __cplusplus
13572 extern "C"
13573 #endif
13574 char dnet_ntoa ();
13576 main ()
13578 return dnet_ntoa ();
13580 return 0;
13582 _ACEOF
13583 if ac_fn_c_try_link "$LINENO"; then :
13584 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13585 else
13586 ac_cv_lib_dnet_stub_dnet_ntoa=no
13588 rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590 LIBS=$ac_check_lib_save_LIBS
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13593 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13594 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13600 rm -f core conftest.err conftest.$ac_objext \
13601 conftest$ac_exeext conftest.$ac_ext
13602 LIBS="$ac_xsave_LIBS"
13604 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13605 # to get the SysV transport functions.
13606 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13607 # needs -lnsl.
13608 # The nsl library prevents programs from opening the X display
13609 # on Irix 5.2, according to T.E. Dickey.
13610 # The functions gethostbyname, getservbyname, and inet_addr are
13611 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13612 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13613 if test "x$ac_cv_func_gethostbyname" = xyes; then :
13617 if test $ac_cv_func_gethostbyname = no; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13619 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13620 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 ac_check_lib_save_LIBS=$LIBS
13624 LIBS="-lnsl $LIBS"
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13628 /* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
13631 #ifdef __cplusplus
13632 extern "C"
13633 #endif
13634 char gethostbyname ();
13636 main ()
13638 return gethostbyname ();
13640 return 0;
13642 _ACEOF
13643 if ac_fn_c_try_link "$LINENO"; then :
13644 ac_cv_lib_nsl_gethostbyname=yes
13645 else
13646 ac_cv_lib_nsl_gethostbyname=no
13648 rm -f core conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650 LIBS=$ac_check_lib_save_LIBS
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13653 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13654 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13655 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13658 if test $ac_cv_lib_nsl_gethostbyname = no; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13660 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13661 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 ac_check_lib_save_LIBS=$LIBS
13665 LIBS="-lbsd $LIBS"
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13672 #ifdef __cplusplus
13673 extern "C"
13674 #endif
13675 char gethostbyname ();
13677 main ()
13679 return gethostbyname ();
13681 return 0;
13683 _ACEOF
13684 if ac_fn_c_try_link "$LINENO"; then :
13685 ac_cv_lib_bsd_gethostbyname=yes
13686 else
13687 ac_cv_lib_bsd_gethostbyname=no
13689 rm -f core conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13691 LIBS=$ac_check_lib_save_LIBS
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13694 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13695 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13696 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13702 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13703 # socket/setsockopt and other routines are undefined under SCO ODT
13704 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13705 # on later versions), says Simon Leinen: it contains gethostby*
13706 # variants that don't use the name server (or something). -lsocket
13707 # must be given before -lnsl if both are needed. We assume that
13708 # if connect needs -lnsl, so does gethostbyname.
13709 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13710 if test "x$ac_cv_func_connect" = xyes; then :
13714 if test $ac_cv_func_connect = no; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13716 $as_echo_n "checking for connect in -lsocket... " >&6; }
13717 if ${ac_cv_lib_socket_connect+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 ac_check_lib_save_LIBS=$LIBS
13721 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13725 /* Override any GCC internal prototype to avoid an error.
13726 Use char because int might match the return type of a GCC
13727 builtin and then its argument prototype would still apply. */
13728 #ifdef __cplusplus
13729 extern "C"
13730 #endif
13731 char connect ();
13733 main ()
13735 return connect ();
13737 return 0;
13739 _ACEOF
13740 if ac_fn_c_try_link "$LINENO"; then :
13741 ac_cv_lib_socket_connect=yes
13742 else
13743 ac_cv_lib_socket_connect=no
13745 rm -f core conftest.err conftest.$ac_objext \
13746 conftest$ac_exeext conftest.$ac_ext
13747 LIBS=$ac_check_lib_save_LIBS
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13750 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13751 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13752 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13757 # Guillermo Gomez says -lposix is necessary on A/UX.
13758 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13759 if test "x$ac_cv_func_remove" = xyes; then :
13763 if test $ac_cv_func_remove = no; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13765 $as_echo_n "checking for remove in -lposix... " >&6; }
13766 if ${ac_cv_lib_posix_remove+:} false; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 ac_check_lib_save_LIBS=$LIBS
13770 LIBS="-lposix $LIBS"
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13777 #ifdef __cplusplus
13778 extern "C"
13779 #endif
13780 char remove ();
13782 main ()
13784 return remove ();
13786 return 0;
13788 _ACEOF
13789 if ac_fn_c_try_link "$LINENO"; then :
13790 ac_cv_lib_posix_remove=yes
13791 else
13792 ac_cv_lib_posix_remove=no
13794 rm -f core conftest.err conftest.$ac_objext \
13795 conftest$ac_exeext conftest.$ac_ext
13796 LIBS=$ac_check_lib_save_LIBS
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13799 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13800 if test "x$ac_cv_lib_posix_remove" = xyes; then :
13801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13806 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13807 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13808 if test "x$ac_cv_func_shmat" = xyes; then :
13812 if test $ac_cv_func_shmat = no; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13814 $as_echo_n "checking for shmat in -lipc... " >&6; }
13815 if ${ac_cv_lib_ipc_shmat+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 ac_check_lib_save_LIBS=$LIBS
13819 LIBS="-lipc $LIBS"
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13826 #ifdef __cplusplus
13827 extern "C"
13828 #endif
13829 char shmat ();
13831 main ()
13833 return shmat ();
13835 return 0;
13837 _ACEOF
13838 if ac_fn_c_try_link "$LINENO"; then :
13839 ac_cv_lib_ipc_shmat=yes
13840 else
13841 ac_cv_lib_ipc_shmat=no
13843 rm -f core conftest.err conftest.$ac_objext \
13844 conftest$ac_exeext conftest.$ac_ext
13845 LIBS=$ac_check_lib_save_LIBS
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13848 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13849 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
13850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13856 # Check for libraries that X11R6 Xt/Xaw programs need.
13857 ac_save_LDFLAGS=$LDFLAGS
13858 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13859 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13860 # check for ICE first), but we must link in the order -lSM -lICE or
13861 # we get undefined symbols. So assume we have SM if we have ICE.
13862 # These have to be linked with before -lX11, unlike the other
13863 # libraries we check for below, so use a different variable.
13864 # John Interrante, Karl Berry
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13866 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13867 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 ac_check_lib_save_LIBS=$LIBS
13871 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13875 /* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
13878 #ifdef __cplusplus
13879 extern "C"
13880 #endif
13881 char IceConnectionNumber ();
13883 main ()
13885 return IceConnectionNumber ();
13887 return 0;
13889 _ACEOF
13890 if ac_fn_c_try_link "$LINENO"; then :
13891 ac_cv_lib_ICE_IceConnectionNumber=yes
13892 else
13893 ac_cv_lib_ICE_IceConnectionNumber=no
13895 rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897 LIBS=$ac_check_lib_save_LIBS
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13900 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13901 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
13902 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13905 LDFLAGS=$ac_save_LDFLAGS
13909 pcp_x11_incflags=$X_CFLAGS
13911 pcp_x11_libflags=$X_LIBS
13913 pcp_x11_extra=$X_EXTRA_LIBS
13915 pcp_x11_pre=$X_PRE_LIBS
13918 have_gzipped_manpages=false
13919 have_bzip2ed_manpages=false
13920 have_lzmaed_manpages=false
13921 have_xzed_manpages=false
13922 need_old_tbl_header=false
13923 man_header=
13924 pcp_man_dir=`eval echo $mandir`
13925 pcp_man_dir=`eval echo $pcp_man_dir`
13927 for d in /usr/man /usr/share/man $pcp_man_dir
13929 for sd in man1 sman1
13931 if test -f $d/$sd/man.1.gz
13932 then
13933 have_gzipped_manpages=true
13934 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
13935 break
13936 elif test -f $d/$sd/man.1.bz2
13937 then
13938 have_bzip2ed_manpages=true
13939 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
13940 break
13941 elif test -f $d/$sd/man.1.lzma
13942 then
13943 have_lzmaed_manpages=true
13944 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
13945 break
13946 elif test -f $d/$sd/man.1.xz
13947 then
13948 have_xzed_manpages=true
13949 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
13950 break
13951 elif test -f $d/$sd/man.1
13952 then
13953 man_header=`head -1 $d/$sd/man.1`
13954 break
13956 done
13957 done
13958 if test x"$man_header" = "x'\\\" t" -o x"$man_header" = "x'\\\" te" ; then
13959 need_old_tbl_header=true
13968 pcp_bin_dir=`eval echo $bindir`
13969 pcp_bin_dir=`eval echo $pcp_bin_dir`
13972 pcp_sbin_dir=`eval echo $sbindir`
13973 pcp_sbin_dir=`eval echo $pcp_sbin_dir`
13976 pcp_inc_dir=`eval echo $includedir/pcp`
13977 pcp_inc_dir=`eval echo $pcp_inc_dir`
13980 if test $target_os = linux; then
13981 pcp_books_dir=`eval echo $datarootdir/doc/pcp-doc`
13982 else
13983 pcp_books_dir=`eval echo $datarootdir/doc/pcp`
13985 pcp_books_dir=`eval echo $pcp_books_dir`
13986 pcp_html_dir=`eval echo $pcp_books_dir/html`
13990 if test $target_os = linux; then
13991 pcp_icons_dir=`eval echo $datarootdir/pcp-gui/pixmaps`
13992 else
13993 pcp_icons_dir=`eval echo $datarootdir/pcp/pixmaps`
13995 pcp_icons_dir=`eval echo $pcp_icons_dir`
13998 pcp_desktop_dir=`eval echo $datarootdir/applications`
13999 pcp_desktop_dir=`eval echo $pcp_desktop_dir`
14003 # Check whether --with-rcdir was given.
14004 if test "${with_rcdir+set}" = set; then :
14005 withval=$with_rcdir; pcp_rc_dir=$withval
14006 else
14008 if $enable_systemd
14009 then
14010 pcp_rc_dir="$pcp_share_dir/lib"
14011 else
14012 pcp_rc_dir="$pcp_etc_dir/init.d"
14019 # Check whether --with-sysconfigdir was given.
14020 if test "${with_sysconfigdir+set}" = set; then :
14021 withval=$with_sysconfigdir; pcp_sysconfig_dir=$withval
14022 else
14023 pcp_sysconfig_dir=$pcp_etc_dir/sysconfig
14029 # Check whether --with-logdir was given.
14030 if test "${with_logdir+set}" = set; then :
14031 withval=$with_logdir; pcp_log_dir=$withval
14032 else
14033 pcp_log_dir=$localstatedir/log/pcp
14036 pcp_log_dir=`eval echo $pcp_log_dir`
14037 pcp_log_dir=`eval echo $pcp_log_dir`
14041 # Check whether --with-rundir was given.
14042 if test "${with_rundir+set}" = set; then :
14043 withval=$with_rundir; pcp_run_dir=$withval
14044 else
14045 pcp_run_dir=$localstatedir/run/pcp
14048 pcp_run_dir=`eval echo $pcp_run_dir`
14049 pcp_run_dir=`eval echo $pcp_run_dir`
14053 # Check whether --with-tmpdir was given.
14054 if test "${with_tmpdir+set}" = set; then :
14055 withval=$with_tmpdir; pcp_tmpfile_dir=$withval
14056 else
14057 pcp_tmpfile_dir=$localstatedir/tmp
14060 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14061 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14064 pcp_tmp_dir=`eval echo $pcp_var_dir/tmp`
14068 # Check whether --with-docdir was given.
14069 if test "${with_docdir+set}" = set; then :
14070 withval=$with_docdir; pcp_doc_dir=$withval
14071 else
14072 PACKAGE=pcp-${PACKAGE_VERSION}; pcp_doc_dir=$docdir
14075 pcp_doc_dir=`eval echo $pcp_doc_dir`
14076 pcp_doc_dir=`eval echo $pcp_doc_dir`
14080 # Check whether --with-demosdir was given.
14081 if test "${with_demosdir+set}" = set; then :
14082 withval=$with_demosdir; pcp_demos_dir=$withval
14083 else
14084 pcp_demos_dir=$pcp_share_dir/demos
14089 if test -z "$XCONFIRM"
14090 then
14091 # Extract the first word of "xconfirm", so it can be a program name with args.
14092 set dummy xconfirm; ac_word=$2
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094 $as_echo_n "checking for $ac_word... " >&6; }
14095 if ${ac_cv_path_ac_xconfirm_prog+:} false; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 case $ac_xconfirm_prog in
14099 [\\/]* | ?:[\\/]*)
14100 ac_cv_path_ac_xconfirm_prog="$ac_xconfirm_prog" # Let the user override the test with a path.
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14106 IFS=$as_save_IFS
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14110 ac_cv_path_ac_xconfirm_prog="$as_dir/$ac_word$ac_exec_ext"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 break 2
14114 done
14115 done
14116 IFS=$as_save_IFS
14118 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
14120 esac
14122 ac_xconfirm_prog=$ac_cv_path_ac_xconfirm_prog
14123 if test -n "$ac_xconfirm_prog"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14125 $as_echo "$ac_xconfirm_prog" >&6; }
14126 else
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14132 else
14133 ac_xconfirm_prog=$XCONFIRM
14137 if test "$ac_cv_header_fcntl_h" = "yes"
14138 then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14140 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143 #include <fcntl.h>
14145 main ()
14147 int i = FNDELAY;
14149 return 0;
14151 _ACEOF
14152 if ac_fn_c_try_compile "$LINENO"; then :
14154 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14157 $as_echo "yes" >&6; }
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 if test "$ac_cv_header_libzfs_h" = "yes"
14166 then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14168 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 #include <libzfs.h>
14173 main ()
14175 libzfs_handle_t *zh;
14176 zpool_handle_t *zp;
14177 nvlist_t *np;
14178 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14181 return 0;
14183 _ACEOF
14184 if ac_fn_c_try_compile "$LINENO"; then :
14186 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14189 $as_echo "yes" >&6; }
14190 else
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14192 $as_echo "no" >&6; }
14194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14197 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 #include <libzfs.h>
14202 main ()
14204 libzfs_handle_t *zh;
14205 zpool_handle_t *zp;
14206 nvlist_t *np;
14207 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14210 return 0;
14212 _ACEOF
14213 if ac_fn_c_try_compile "$LINENO"; then :
14215 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14218 $as_echo "yes" >&6; }
14219 else
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14227 then
14228 enable_secure=true
14230 saved_CFLAGS="$CFLAGS"
14231 saved_CPPFLAGS="$CPPFLAGS"
14232 NSS_INC_DIRS="-I/usr/include/nss -I/usr/include/nss3"
14233 NSPR_INC_DIRS="-I/usr/include/nspr -I/usr/include/nspr4"
14234 CFLAGS="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14235 CPPFLAGS="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14237 for ac_header in nss/nss.h
14238 do :
14239 ac_fn_c_check_header_mongrel "$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14240 if test "x$ac_cv_header_nss_nss_h" = xyes; then :
14241 cat >>confdefs.h <<_ACEOF
14242 #define HAVE_NSS_NSS_H 1
14243 _ACEOF
14244 NSSCFLAGS=-I/usr/include/nss
14245 else
14247 for ac_header in nss3/nss.h
14248 do :
14249 ac_fn_c_check_header_mongrel "$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14250 if test "x$ac_cv_header_nss3_nss_h" = xyes; then :
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_NSS3_NSS_H 1
14253 _ACEOF
14254 NSSCFLAGS=-I/usr/include/nss3
14255 else
14257 enable_secure=false
14258 if test "$do_secure" = "yes"
14259 then
14260 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14265 done
14270 done
14274 for ac_header in nspr/nspr.h
14275 do :
14276 ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14277 if test "x$ac_cv_header_nspr_nspr_h" = xyes; then :
14278 cat >>confdefs.h <<_ACEOF
14279 #define HAVE_NSPR_NSPR_H 1
14280 _ACEOF
14281 NSPRCFLAGS=-I/usr/include/nspr
14282 else
14284 for ac_header in nspr4/nspr.h
14285 do :
14286 ac_fn_c_check_header_mongrel "$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14287 if test "x$ac_cv_header_nspr4_nspr_h" = xyes; then :
14288 cat >>confdefs.h <<_ACEOF
14289 #define HAVE_NSPR4_NSPR_H 1
14290 _ACEOF
14291 NSPRCFLAGS=-I/usr/include/nspr4
14292 else
14294 enable_secure=false
14295 if test "$do_secure" = "yes"
14296 then
14297 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14302 done
14307 done
14311 for ac_header in sasl/sasl.h
14312 do :
14313 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14314 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
14315 cat >>confdefs.h <<_ACEOF
14316 #define HAVE_SASL_SASL_H 1
14317 _ACEOF
14318 SASLCFLAGS=-I/usr/include/sasl
14319 else
14321 enable_secure=false
14322 if test "$do_secure" = "yes"
14323 then
14324 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14329 done
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14334 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14335 if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 ac_check_lib_save_LIBS=$LIBS
14339 LIBS="-lsasl2 $LIBS"
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14343 /* Override any GCC internal prototype to avoid an error.
14344 Use char because int might match the return type of a GCC
14345 builtin and then its argument prototype would still apply. */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char sasl_server_init ();
14351 main ()
14353 return sasl_server_init ();
14355 return 0;
14357 _ACEOF
14358 if ac_fn_c_try_link "$LINENO"; then :
14359 ac_cv_lib_sasl2_sasl_server_init=yes
14360 else
14361 ac_cv_lib_sasl2_sasl_server_init=no
14363 rm -f core conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365 LIBS=$ac_check_lib_save_LIBS
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14368 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14369 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
14370 lib_for_sasl="-lsasl2"
14371 else
14373 enable_secure=false
14374 if test "$do_secure" = "yes"
14375 then
14376 as_fn_error $? "cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14384 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14385 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 ac_check_lib_save_LIBS=$LIBS
14389 LIBS="-lssl $LIBS"
14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14393 /* Override any GCC internal prototype to avoid an error.
14394 Use char because int might match the return type of a GCC
14395 builtin and then its argument prototype would still apply. */
14396 #ifdef __cplusplus
14397 extern "C"
14398 #endif
14399 char SSL_ImportFD ();
14401 main ()
14403 return SSL_ImportFD ();
14405 return 0;
14407 _ACEOF
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 ac_cv_lib_ssl_SSL_ImportFD=yes
14410 else
14411 ac_cv_lib_ssl_SSL_ImportFD=no
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LIBS=$ac_check_lib_save_LIBS
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14418 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14419 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes; then :
14420 lib_for_ssl="-lssl"
14421 else
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14424 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14425 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false; then :
14426 $as_echo_n "(cached) " >&6
14427 else
14428 ac_check_lib_save_LIBS=$LIBS
14429 LIBS="-lssl3 $LIBS"
14430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h. */
14433 /* Override any GCC internal prototype to avoid an error.
14434 Use char because int might match the return type of a GCC
14435 builtin and then its argument prototype would still apply. */
14436 #ifdef __cplusplus
14437 extern "C"
14438 #endif
14439 char SSL_ImportFD ();
14441 main ()
14443 return SSL_ImportFD ();
14445 return 0;
14447 _ACEOF
14448 if ac_fn_c_try_link "$LINENO"; then :
14449 ac_cv_lib_ssl3_SSL_ImportFD=yes
14450 else
14451 ac_cv_lib_ssl3_SSL_ImportFD=no
14453 rm -f core conftest.err conftest.$ac_objext \
14454 conftest$ac_exeext conftest.$ac_ext
14455 LIBS=$ac_check_lib_save_LIBS
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14458 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14459 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes; then :
14460 lib_for_ssl="-lssl3"
14461 else
14463 enable_secure=false
14464 if test "$do_secure" = "yes"
14465 then
14466 as_fn_error $? "cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14477 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14478 if ${ac_cv_lib_nss_NSS_Init+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 ac_check_lib_save_LIBS=$LIBS
14482 LIBS="-lnss $LIBS"
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14486 /* Override any GCC internal prototype to avoid an error.
14487 Use char because int might match the return type of a GCC
14488 builtin and then its argument prototype would still apply. */
14489 #ifdef __cplusplus
14490 extern "C"
14491 #endif
14492 char NSS_Init ();
14494 main ()
14496 return NSS_Init ();
14498 return 0;
14500 _ACEOF
14501 if ac_fn_c_try_link "$LINENO"; then :
14502 ac_cv_lib_nss_NSS_Init=yes
14503 else
14504 ac_cv_lib_nss_NSS_Init=no
14506 rm -f core conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
14508 LIBS=$ac_check_lib_save_LIBS
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14511 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14512 if test "x$ac_cv_lib_nss_NSS_Init" = xyes; then :
14513 lib_for_nss="-lnss"
14514 else
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14517 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14518 if ${ac_cv_lib_nss3_NSS_Init+:} false; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 ac_check_lib_save_LIBS=$LIBS
14522 LIBS="-lnss3 $LIBS"
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14526 /* Override any GCC internal prototype to avoid an error.
14527 Use char because int might match the return type of a GCC
14528 builtin and then its argument prototype would still apply. */
14529 #ifdef __cplusplus
14530 extern "C"
14531 #endif
14532 char NSS_Init ();
14534 main ()
14536 return NSS_Init ();
14538 return 0;
14540 _ACEOF
14541 if ac_fn_c_try_link "$LINENO"; then :
14542 ac_cv_lib_nss3_NSS_Init=yes
14543 else
14544 ac_cv_lib_nss3_NSS_Init=no
14546 rm -f core conftest.err conftest.$ac_objext \
14547 conftest$ac_exeext conftest.$ac_ext
14548 LIBS=$ac_check_lib_save_LIBS
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14551 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14552 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes; then :
14553 lib_for_nss="-lnss3"
14554 else
14556 enable_secure=false
14557 if test "$do_secure" = "yes"
14558 then
14559 as_fn_error $? "cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14570 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14571 if ${ac_cv_lib_nspr_PR_Init+:} false; then :
14572 $as_echo_n "(cached) " >&6
14573 else
14574 ac_check_lib_save_LIBS=$LIBS
14575 LIBS="-lnspr $LIBS"
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14579 /* Override any GCC internal prototype to avoid an error.
14580 Use char because int might match the return type of a GCC
14581 builtin and then its argument prototype would still apply. */
14582 #ifdef __cplusplus
14583 extern "C"
14584 #endif
14585 char PR_Init ();
14587 main ()
14589 return PR_Init ();
14591 return 0;
14593 _ACEOF
14594 if ac_fn_c_try_link "$LINENO"; then :
14595 ac_cv_lib_nspr_PR_Init=yes
14596 else
14597 ac_cv_lib_nspr_PR_Init=no
14599 rm -f core conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext conftest.$ac_ext
14601 LIBS=$ac_check_lib_save_LIBS
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14604 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14605 if test "x$ac_cv_lib_nspr_PR_Init" = xyes; then :
14606 lib_for_nspr="-lnspr"
14607 else
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14610 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14611 if ${ac_cv_lib_nspr4_PR_Init+:} false; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 ac_check_lib_save_LIBS=$LIBS
14615 LIBS="-lnspr4 $LIBS"
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14619 /* Override any GCC internal prototype to avoid an error.
14620 Use char because int might match the return type of a GCC
14621 builtin and then its argument prototype would still apply. */
14622 #ifdef __cplusplus
14623 extern "C"
14624 #endif
14625 char PR_Init ();
14627 main ()
14629 return PR_Init ();
14631 return 0;
14633 _ACEOF
14634 if ac_fn_c_try_link "$LINENO"; then :
14635 ac_cv_lib_nspr4_PR_Init=yes
14636 else
14637 ac_cv_lib_nspr4_PR_Init=no
14639 rm -f core conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
14641 LIBS=$ac_check_lib_save_LIBS
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14644 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14645 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes; then :
14646 lib_for_nspr="-lnspr4"
14647 else
14649 enable_secure=false
14650 if test "$do_secure" = "yes"
14651 then
14652 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14662 if test "$enable_secure" = "true"
14663 then
14665 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14670 CPPFLAGS="$saved_CPPFLAGS"
14671 CFLAGS="$saved_CFLAGS"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14675 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14676 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false; then :
14677 $as_echo_n "(cached) " >&6
14678 else
14679 ac_check_lib_save_LIBS=$LIBS
14680 LIBS="-latomic $LIBS"
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14684 /* Override any GCC internal prototype to avoid an error.
14685 Use char because int might match the return type of a GCC
14686 builtin and then its argument prototype would still apply. */
14687 #ifdef __cplusplus
14688 extern "C"
14689 #endif
14690 char __atomic_fetch_add_4 ();
14692 main ()
14694 return __atomic_fetch_add_4 ();
14696 return 0;
14698 _ACEOF
14699 if ac_fn_c_try_link "$LINENO"; then :
14700 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14701 else
14702 ac_cv_lib_atomic___atomic_fetch_add_4=no
14704 rm -f core conftest.err conftest.$ac_objext \
14705 conftest$ac_exeext conftest.$ac_ext
14706 LIBS=$ac_check_lib_save_LIBS
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14709 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14710 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes; then :
14711 lib_for_atomic="-latomic"
14716 if test -f /usr/include/sn/arsess.h
14717 then
14718 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
14719 else
14720 pcp_mpi_dirs=
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14725 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14729 #include <sys/types.h>
14730 #ifdef HAVE_SYS_SOCKET_H
14731 #include <sys/socket.h>
14732 #endif
14733 #ifdef HAVE_SYS_UN_H
14734 #include <sys/un.h>
14735 #endif
14738 main ()
14740 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14742 return 0;
14744 _ACEOF
14745 if ac_fn_c_try_compile "$LINENO"; then :
14747 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14749 $as_echo "yes" >&6; }
14750 else
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14757 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14761 #include <sys/types.h>
14762 #ifdef HAVE_SYS_SOCKET_H
14763 #include <sys/socket.h>
14764 #endif
14765 #ifdef HAVE_SYS_UN_H
14766 #include <sys/un.h>
14767 #endif
14770 main ()
14772 struct ucred ucred; ucred.uid = 0;
14774 return 0;
14776 _ACEOF
14777 if ac_fn_c_try_compile "$LINENO"; then :
14779 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14781 $as_echo "yes" >&6; }
14782 else
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14784 $as_echo "no" >&6; }
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14789 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14793 #include <time.h>
14796 main ()
14798 struct timespec foo;
14800 return 0;
14802 _ACEOF
14803 if ac_fn_c_try_compile "$LINENO"; then :
14805 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14807 $as_echo "yes" >&6; }
14808 else
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 $as_echo "no" >&6; }
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
14815 $as_echo_n "checking for altzone in time.h... " >&6; }
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14819 #include <time.h>
14822 main ()
14824 time_t az = altzone;
14826 return 0;
14828 _ACEOF
14829 if ac_fn_c_try_compile "$LINENO"; then :
14831 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14833 $as_echo "yes" >&6; }
14834 else
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14836 $as_echo "no" >&6; }
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
14841 $as_echo_n "checking if strftime knows about %z... " >&6; }
14842 if test "$cross_compiling" = yes; then :
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844 $as_echo "no" >&6; }
14845 else
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14849 #include <time.h>
14850 int main () {
14851 char b[32]="";
14852 time_t t = time(NULL);
14853 struct tm * t1 = localtime (&t);
14854 if (strftime (b, 32, "%z", t1) < 3)
14855 return (1);
14856 if (strcmp(b, "%z") == 0)
14857 return(1);
14858 return (0);
14861 _ACEOF
14862 if ac_fn_c_try_run "$LINENO"; then :
14864 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14866 $as_echo "yes" >&6; }
14867 else
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869 $as_echo "no" >&6; }
14871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14872 conftest.$ac_objext conftest.beam conftest.$ac_ext
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
14877 $as_echo_n "checking if strerror_r returns char *... " >&6; }
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880 #include <string.h>
14882 main ()
14884 strerror_r(0, NULL, 0)[0];
14886 return 0;
14888 _ACEOF
14889 if ac_fn_c_try_compile "$LINENO"; then :
14891 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14893 $as_echo "yes" >&6; }
14894 else
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 $as_echo "no" >&6; }
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14900 savedLIBS=$LIBS
14901 LIBS=
14902 lib_for_curses=
14903 lib_for_readline=
14904 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
14905 if test "x$ac_cv_func_readline" = xyes; then :
14907 else
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14910 $as_echo_n "checking for readline in -lreadline... " >&6; }
14911 if ${ac_cv_lib_readline_readline+:} false; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 ac_check_lib_save_LIBS=$LIBS
14915 LIBS="-lreadline $LIBS"
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14919 /* Override any GCC internal prototype to avoid an error.
14920 Use char because int might match the return type of a GCC
14921 builtin and then its argument prototype would still apply. */
14922 #ifdef __cplusplus
14923 extern "C"
14924 #endif
14925 char readline ();
14927 main ()
14929 return readline ();
14931 return 0;
14933 _ACEOF
14934 if ac_fn_c_try_link "$LINENO"; then :
14935 ac_cv_lib_readline_readline=yes
14936 else
14937 ac_cv_lib_readline_readline=no
14939 rm -f core conftest.err conftest.$ac_objext \
14940 conftest$ac_exeext conftest.$ac_ext
14941 LIBS=$ac_check_lib_save_LIBS
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14944 $as_echo "$ac_cv_lib_readline_readline" >&6; }
14945 if test "x$ac_cv_lib_readline_readline" = xyes; then :
14946 cat >>confdefs.h <<_ACEOF
14947 #define HAVE_LIBREADLINE 1
14948 _ACEOF
14950 LIBS="-lreadline $LIBS"
14952 else
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
14955 $as_echo_n "checking for add_history in -lreadline... " >&6; }
14956 if ${ac_cv_lib_readline_add_history+:} false; then :
14957 $as_echo_n "(cached) " >&6
14958 else
14959 ac_check_lib_save_LIBS=$LIBS
14960 LIBS="-lreadline -lcurses $LIBS"
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14964 /* Override any GCC internal prototype to avoid an error.
14965 Use char because int might match the return type of a GCC
14966 builtin and then its argument prototype would still apply. */
14967 #ifdef __cplusplus
14968 extern "C"
14969 #endif
14970 char add_history ();
14972 main ()
14974 return add_history ();
14976 return 0;
14978 _ACEOF
14979 if ac_fn_c_try_link "$LINENO"; then :
14980 ac_cv_lib_readline_add_history=yes
14981 else
14982 ac_cv_lib_readline_add_history=no
14984 rm -f core conftest.err conftest.$ac_objext \
14985 conftest$ac_exeext conftest.$ac_ext
14986 LIBS=$ac_check_lib_save_LIBS
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
14989 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
14990 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
14991 cat >>confdefs.h <<_ACEOF
14992 #define HAVE_LIBREADLINE 1
14993 _ACEOF
14995 LIBS="-lreadline $LIBS"
15005 if test $ac_cv_func_readline = yes
15006 then
15008 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15010 elif test $ac_cv_lib_readline_readline = yes
15011 then
15013 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15015 lib_for_readline=-lreadline
15016 elif test $ac_cv_lib_readline_add_history = yes
15017 then
15019 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15021 lib_for_curses=-lcurses
15022 lib_for_readline=-lreadline
15026 LIBS=$savedLIBS
15029 pkg_failed=no
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15031 $as_echo_n "checking for zlib... " >&6; }
15033 if test -n "$zlib_CFLAGS"; then
15034 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
15035 elif test -n "$PKG_CONFIG"; then
15036 if test -n "$PKG_CONFIG" && \
15037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15038 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15039 ac_status=$?
15040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15041 test $ac_status = 0; }; then
15042 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15043 test "x$?" != "x0" && pkg_failed=yes
15044 else
15045 pkg_failed=yes
15047 else
15048 pkg_failed=untried
15050 if test -n "$zlib_LIBS"; then
15051 pkg_cv_zlib_LIBS="$zlib_LIBS"
15052 elif test -n "$PKG_CONFIG"; then
15053 if test -n "$PKG_CONFIG" && \
15054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15055 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15056 ac_status=$?
15057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15058 test $ac_status = 0; }; then
15059 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15060 test "x$?" != "x0" && pkg_failed=yes
15061 else
15062 pkg_failed=yes
15064 else
15065 pkg_failed=untried
15070 if test $pkg_failed = yes; then
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15074 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15075 _pkg_short_errors_supported=yes
15076 else
15077 _pkg_short_errors_supported=no
15079 if test $_pkg_short_errors_supported = yes; then
15080 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15081 else
15082 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15084 # Put the nasty error message in config.log where it belongs
15085 echo "$zlib_PKG_ERRORS" >&5
15087 have_zlib=false
15088 elif test $pkg_failed = untried; then
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15090 $as_echo "no" >&6; }
15091 have_zlib=false
15092 else
15093 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
15094 zlib_LIBS=$pkg_cv_zlib_LIBS
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15096 $as_echo "yes" >&6; }
15097 have_zlib=true
15099 HAVE_ZLIB=$have_zlib
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15103 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15107 #include <netdb.h>
15108 int test = AI_ADDRCONFIG;
15111 main ()
15116 return 0;
15118 _ACEOF
15119 if ac_fn_c_try_compile "$LINENO"; then :
15121 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15123 $as_echo "yes" >&6; }
15124 else
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15126 $as_echo "no" >&6; }
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131 have_parfait=false
15132 if test -f ./build/tar/parfait.tar.gz
15133 then
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15135 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15136 have_parfait=true
15140 have_vector=false
15141 if test -f ./build/tar/vector.tar.gz
15142 then
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15144 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15145 have_vector=true
15149 have_webjs=false
15150 if test -f ./build/tar/webjs.tar.gz
15151 then
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15153 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15154 have_webjs=true
15161 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"
15163 cat >confcache <<\_ACEOF
15164 # This file is a shell script that caches the results of configure
15165 # tests run on this system so they can be shared between configure
15166 # scripts and configure runs, see configure's option --config-cache.
15167 # It is not useful on other systems. If it contains results you don't
15168 # want to keep, you may remove or edit it.
15170 # config.status only pays attention to the cache file if you give it
15171 # the --recheck option to rerun configure.
15173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15175 # following values.
15177 _ACEOF
15179 # The following way of writing the cache mishandles newlines in values,
15180 # but we know of no workaround that is simple, portable, and efficient.
15181 # So, we kill variables containing newlines.
15182 # Ultrix sh set writes to stderr and can't be redirected directly,
15183 # and sets the high bit in the cache file unless we assign to the vars.
15185 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15186 eval ac_val=\$$ac_var
15187 case $ac_val in #(
15188 *${as_nl}*)
15189 case $ac_var in #(
15190 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15191 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15192 esac
15193 case $ac_var in #(
15194 _ | IFS | as_nl) ;; #(
15195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15196 *) { eval $ac_var=; unset $ac_var;} ;;
15197 esac ;;
15198 esac
15199 done
15201 (set) 2>&1 |
15202 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15203 *${as_nl}ac_space=\ *)
15204 # `set' does not quote correctly, so add quotes: double-quote
15205 # substitution turns \\\\ into \\, and sed turns \\ into \.
15206 sed -n \
15207 "s/'/'\\\\''/g;
15208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15209 ;; #(
15211 # `set' quotes correctly as required by POSIX, so do not add quotes.
15212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15214 esac |
15215 sort
15217 sed '
15218 /^ac_cv_env_/b end
15219 t clear
15220 :clear
15221 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15222 t end
15223 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15224 :end' >>confcache
15225 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15226 if test -w "$cache_file"; then
15227 if test "x$cache_file" != "x/dev/null"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15229 $as_echo "$as_me: updating cache $cache_file" >&6;}
15230 if test ! -f "$cache_file" || test -h "$cache_file"; then
15231 cat confcache >"$cache_file"
15232 else
15233 case $cache_file in #(
15234 */* | ?:*)
15235 mv -f confcache "$cache_file"$$ &&
15236 mv -f "$cache_file"$$ "$cache_file" ;; #(
15238 mv -f confcache "$cache_file" ;;
15239 esac
15242 else
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15244 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15247 rm -f confcache
15249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15250 # Let make expand exec_prefix.
15251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15253 DEFS=-DHAVE_CONFIG_H
15255 ac_libobjs=
15256 ac_ltlibobjs=
15258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15259 # 1. Remove the extension, and $U if already installed.
15260 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15261 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15263 # will be set to the directory where LIBOBJS objects are built.
15264 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15265 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15266 done
15267 LIBOBJS=$ac_libobjs
15269 LTLIBOBJS=$ac_ltlibobjs
15273 : "${CONFIG_STATUS=./config.status}"
15274 ac_write_fail=0
15275 ac_clean_files_save=$ac_clean_files
15276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15278 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15279 as_write_fail=0
15280 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15281 #! $SHELL
15282 # Generated by $as_me.
15283 # Run this file to recreate the current configuration.
15284 # Compiler output produced by configure, useful for debugging
15285 # configure, is in config.log if it exists.
15287 debug=false
15288 ac_cs_recheck=false
15289 ac_cs_silent=false
15291 SHELL=\${CONFIG_SHELL-$SHELL}
15292 export SHELL
15293 _ASEOF
15294 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15295 ## -------------------- ##
15296 ## M4sh Initialization. ##
15297 ## -------------------- ##
15299 # Be more Bourne compatible
15300 DUALCASE=1; export DUALCASE # for MKS sh
15301 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15302 emulate sh
15303 NULLCMD=:
15304 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15305 # is contrary to our usage. Disable this feature.
15306 alias -g '${1+"$@"}'='"$@"'
15307 setopt NO_GLOB_SUBST
15308 else
15309 case `(set -o) 2>/dev/null` in #(
15310 *posix*) :
15311 set -o posix ;; #(
15312 *) :
15314 esac
15318 as_nl='
15320 export as_nl
15321 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15322 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15325 # Prefer a ksh shell builtin over an external printf program on Solaris,
15326 # but without wasting forks for bash or zsh.
15327 if test -z "$BASH_VERSION$ZSH_VERSION" \
15328 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15329 as_echo='print -r --'
15330 as_echo_n='print -rn --'
15331 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15332 as_echo='printf %s\n'
15333 as_echo_n='printf %s'
15334 else
15335 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15336 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15337 as_echo_n='/usr/ucb/echo -n'
15338 else
15339 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15340 as_echo_n_body='eval
15341 arg=$1;
15342 case $arg in #(
15343 *"$as_nl"*)
15344 expr "X$arg" : "X\\(.*\\)$as_nl";
15345 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15346 esac;
15347 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15349 export as_echo_n_body
15350 as_echo_n='sh -c $as_echo_n_body as_echo'
15352 export as_echo_body
15353 as_echo='sh -c $as_echo_body as_echo'
15356 # The user is always right.
15357 if test "${PATH_SEPARATOR+set}" != set; then
15358 PATH_SEPARATOR=:
15359 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15360 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15361 PATH_SEPARATOR=';'
15366 # IFS
15367 # We need space, tab and new line, in precisely that order. Quoting is
15368 # there to prevent editors from complaining about space-tab.
15369 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15370 # splitting by setting IFS to empty value.)
15371 IFS=" "" $as_nl"
15373 # Find who we are. Look in the path if we contain no directory separator.
15374 as_myself=
15375 case $0 in #((
15376 *[\\/]* ) as_myself=$0 ;;
15377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15380 IFS=$as_save_IFS
15381 test -z "$as_dir" && as_dir=.
15382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15383 done
15384 IFS=$as_save_IFS
15387 esac
15388 # We did not find ourselves, most probably we were run as `sh COMMAND'
15389 # in which case we are not to be found in the path.
15390 if test "x$as_myself" = x; then
15391 as_myself=$0
15393 if test ! -f "$as_myself"; then
15394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15395 exit 1
15398 # Unset variables that we do not need and which cause bugs (e.g. in
15399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15400 # suppresses any "Segmentation fault" message there. '((' could
15401 # trigger a bug in pdksh 5.2.14.
15402 for as_var in BASH_ENV ENV MAIL MAILPATH
15403 do eval test x\${$as_var+set} = xset \
15404 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15405 done
15406 PS1='$ '
15407 PS2='> '
15408 PS4='+ '
15410 # NLS nuisances.
15411 LC_ALL=C
15412 export LC_ALL
15413 LANGUAGE=C
15414 export LANGUAGE
15416 # CDPATH.
15417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15420 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15421 # ----------------------------------------
15422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15424 # script with STATUS, using 1 if that was 0.
15425 as_fn_error ()
15427 as_status=$1; test $as_status -eq 0 && as_status=1
15428 if test "$4"; then
15429 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15432 $as_echo "$as_me: error: $2" >&2
15433 as_fn_exit $as_status
15434 } # as_fn_error
15437 # as_fn_set_status STATUS
15438 # -----------------------
15439 # Set $? to STATUS, without forking.
15440 as_fn_set_status ()
15442 return $1
15443 } # as_fn_set_status
15445 # as_fn_exit STATUS
15446 # -----------------
15447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15448 as_fn_exit ()
15450 set +e
15451 as_fn_set_status $1
15452 exit $1
15453 } # as_fn_exit
15455 # as_fn_unset VAR
15456 # ---------------
15457 # Portably unset VAR.
15458 as_fn_unset ()
15460 { eval $1=; unset $1;}
15462 as_unset=as_fn_unset
15463 # as_fn_append VAR VALUE
15464 # ----------------------
15465 # Append the text in VALUE to the end of the definition contained in VAR. Take
15466 # advantage of any shell optimizations that allow amortized linear growth over
15467 # repeated appends, instead of the typical quadratic growth present in naive
15468 # implementations.
15469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15470 eval 'as_fn_append ()
15472 eval $1+=\$2
15474 else
15475 as_fn_append ()
15477 eval $1=\$$1\$2
15479 fi # as_fn_append
15481 # as_fn_arith ARG...
15482 # ------------------
15483 # Perform arithmetic evaluation on the ARGs, and store the result in the
15484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15485 # must be portable across $(()) and expr.
15486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15487 eval 'as_fn_arith ()
15489 as_val=$(( $* ))
15491 else
15492 as_fn_arith ()
15494 as_val=`expr "$@" || test $? -eq 1`
15496 fi # as_fn_arith
15499 if expr a : '\(a\)' >/dev/null 2>&1 &&
15500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15501 as_expr=expr
15502 else
15503 as_expr=false
15506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15507 as_basename=basename
15508 else
15509 as_basename=false
15512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15513 as_dirname=dirname
15514 else
15515 as_dirname=false
15518 as_me=`$as_basename -- "$0" ||
15519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15520 X"$0" : 'X\(//\)$' \| \
15521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15522 $as_echo X/"$0" |
15523 sed '/^.*\/\([^/][^/]*\)\/*$/{
15524 s//\1/
15527 /^X\/\(\/\/\)$/{
15528 s//\1/
15531 /^X\/\(\/\).*/{
15532 s//\1/
15535 s/.*/./; q'`
15537 # Avoid depending upon Character Ranges.
15538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15541 as_cr_digits='0123456789'
15542 as_cr_alnum=$as_cr_Letters$as_cr_digits
15544 ECHO_C= ECHO_N= ECHO_T=
15545 case `echo -n x` in #(((((
15546 -n*)
15547 case `echo 'xy\c'` in
15548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15549 xy) ECHO_C='\c';;
15550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15551 ECHO_T=' ';;
15552 esac;;
15554 ECHO_N='-n';;
15555 esac
15557 rm -f conf$$ conf$$.exe conf$$.file
15558 if test -d conf$$.dir; then
15559 rm -f conf$$.dir/conf$$.file
15560 else
15561 rm -f conf$$.dir
15562 mkdir conf$$.dir 2>/dev/null
15564 if (echo >conf$$.file) 2>/dev/null; then
15565 if ln -s conf$$.file conf$$ 2>/dev/null; then
15566 as_ln_s='ln -s'
15567 # ... but there are two gotchas:
15568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15570 # In both cases, we have to default to `cp -pR'.
15571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15572 as_ln_s='cp -pR'
15573 elif ln conf$$.file conf$$ 2>/dev/null; then
15574 as_ln_s=ln
15575 else
15576 as_ln_s='cp -pR'
15578 else
15579 as_ln_s='cp -pR'
15581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15582 rmdir conf$$.dir 2>/dev/null
15585 # as_fn_mkdir_p
15586 # -------------
15587 # Create "$as_dir" as a directory, including parents if necessary.
15588 as_fn_mkdir_p ()
15591 case $as_dir in #(
15592 -*) as_dir=./$as_dir;;
15593 esac
15594 test -d "$as_dir" || eval $as_mkdir_p || {
15595 as_dirs=
15596 while :; do
15597 case $as_dir in #(
15598 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15599 *) as_qdir=$as_dir;;
15600 esac
15601 as_dirs="'$as_qdir' $as_dirs"
15602 as_dir=`$as_dirname -- "$as_dir" ||
15603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15604 X"$as_dir" : 'X\(//\)[^/]' \| \
15605 X"$as_dir" : 'X\(//\)$' \| \
15606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15607 $as_echo X"$as_dir" |
15608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15609 s//\1/
15612 /^X\(\/\/\)[^/].*/{
15613 s//\1/
15616 /^X\(\/\/\)$/{
15617 s//\1/
15620 /^X\(\/\).*/{
15621 s//\1/
15624 s/.*/./; q'`
15625 test -d "$as_dir" && break
15626 done
15627 test -z "$as_dirs" || eval "mkdir $as_dirs"
15628 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15631 } # as_fn_mkdir_p
15632 if mkdir -p . 2>/dev/null; then
15633 as_mkdir_p='mkdir -p "$as_dir"'
15634 else
15635 test -d ./-p && rmdir ./-p
15636 as_mkdir_p=false
15640 # as_fn_executable_p FILE
15641 # -----------------------
15642 # Test if FILE is an executable regular file.
15643 as_fn_executable_p ()
15645 test -f "$1" && test -x "$1"
15646 } # as_fn_executable_p
15647 as_test_x='test -x'
15648 as_executable_p=as_fn_executable_p
15650 # Sed expression to map a string onto a valid CPP name.
15651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15653 # Sed expression to map a string onto a valid variable name.
15654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15657 exec 6>&1
15658 ## ----------------------------------- ##
15659 ## Main body of $CONFIG_STATUS script. ##
15660 ## ----------------------------------- ##
15661 _ASEOF
15662 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15665 # Save the log message, to keep $0 and so on meaningful, and to
15666 # report actual input values of CONFIG_FILES etc. instead of their
15667 # values after options handling.
15668 ac_log="
15669 This file was extended by $as_me, which was
15670 generated by GNU Autoconf 2.69. Invocation command line was
15672 CONFIG_FILES = $CONFIG_FILES
15673 CONFIG_HEADERS = $CONFIG_HEADERS
15674 CONFIG_LINKS = $CONFIG_LINKS
15675 CONFIG_COMMANDS = $CONFIG_COMMANDS
15676 $ $0 $@
15678 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15681 _ACEOF
15683 case $ac_config_files in *"
15684 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15685 esac
15687 case $ac_config_headers in *"
15688 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15689 esac
15692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15693 # Files that config.status was made for.
15694 config_files="$ac_config_files"
15695 config_headers="$ac_config_headers"
15697 _ACEOF
15699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15700 ac_cs_usage="\
15701 \`$as_me' instantiates files and other configuration actions
15702 from templates according to the current configuration. Unless the files
15703 and actions are specified as TAGs, all are instantiated by default.
15705 Usage: $0 [OPTION]... [TAG]...
15707 -h, --help print this help, then exit
15708 -V, --version print version number and configuration settings, then exit
15709 --config print configuration, then exit
15710 -q, --quiet, --silent
15711 do not print progress messages
15712 -d, --debug don't remove temporary files
15713 --recheck update $as_me by reconfiguring in the same conditions
15714 --file=FILE[:TEMPLATE]
15715 instantiate the configuration file FILE
15716 --header=FILE[:TEMPLATE]
15717 instantiate the configuration header FILE
15719 Configuration files:
15720 $config_files
15722 Configuration headers:
15723 $config_headers
15725 Report bugs to the package provider."
15727 _ACEOF
15728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15729 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15730 ac_cs_version="\\
15731 config.status
15732 configured by $0, generated by GNU Autoconf 2.69,
15733 with options \\"\$ac_cs_config\\"
15735 Copyright (C) 2012 Free Software Foundation, Inc.
15736 This config.status script is free software; the Free Software Foundation
15737 gives unlimited permission to copy, distribute and modify it."
15739 ac_pwd='$ac_pwd'
15740 srcdir='$srcdir'
15741 test -n "\$AWK" || AWK=awk
15742 _ACEOF
15744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15745 # The default lists apply if the user does not specify any file.
15746 ac_need_defaults=:
15747 while test $# != 0
15749 case $1 in
15750 --*=?*)
15751 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15752 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15753 ac_shift=:
15755 --*=)
15756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15757 ac_optarg=
15758 ac_shift=:
15761 ac_option=$1
15762 ac_optarg=$2
15763 ac_shift=shift
15765 esac
15767 case $ac_option in
15768 # Handling of the options.
15769 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15770 ac_cs_recheck=: ;;
15771 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15772 $as_echo "$ac_cs_version"; exit ;;
15773 --config | --confi | --conf | --con | --co | --c )
15774 $as_echo "$ac_cs_config"; exit ;;
15775 --debug | --debu | --deb | --de | --d | -d )
15776 debug=: ;;
15777 --file | --fil | --fi | --f )
15778 $ac_shift
15779 case $ac_optarg in
15780 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15781 '') as_fn_error $? "missing file argument" ;;
15782 esac
15783 as_fn_append CONFIG_FILES " '$ac_optarg'"
15784 ac_need_defaults=false;;
15785 --header | --heade | --head | --hea )
15786 $ac_shift
15787 case $ac_optarg in
15788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15789 esac
15790 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15791 ac_need_defaults=false;;
15792 --he | --h)
15793 # Conflict between --help and --header
15794 as_fn_error $? "ambiguous option: \`$1'
15795 Try \`$0 --help' for more information.";;
15796 --help | --hel | -h )
15797 $as_echo "$ac_cs_usage"; exit ;;
15798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15799 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15800 ac_cs_silent=: ;;
15802 # This is an error.
15803 -*) as_fn_error $? "unrecognized option: \`$1'
15804 Try \`$0 --help' for more information." ;;
15806 *) as_fn_append ac_config_targets " $1"
15807 ac_need_defaults=false ;;
15809 esac
15810 shift
15811 done
15813 ac_configure_extra_args=
15815 if $ac_cs_silent; then
15816 exec 6>/dev/null
15817 ac_configure_extra_args="$ac_configure_extra_args --silent"
15820 _ACEOF
15821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15822 if \$ac_cs_recheck; then
15823 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15824 shift
15825 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15826 CONFIG_SHELL='$SHELL'
15827 export CONFIG_SHELL
15828 exec "\$@"
15831 _ACEOF
15832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15833 exec 5>>config.log
15835 echo
15836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15837 ## Running $as_me. ##
15838 _ASBOX
15839 $as_echo "$ac_log"
15840 } >&5
15842 _ACEOF
15843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15844 _ACEOF
15846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15848 # Handling of arguments.
15849 for ac_config_target in $ac_config_targets
15851 case $ac_config_target in
15852 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
15853 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
15854 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
15855 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
15856 "src/include/builddefs") CONFIG_FILES="$CONFIG_FILES src/include/builddefs" ;;
15857 "src/include/pcp.conf") CONFIG_FILES="$CONFIG_FILES src/include/pcp.conf" ;;
15858 "pcp.lsm") CONFIG_FILES="$CONFIG_FILES pcp.lsm" ;;
15859 "debian/pcp.preinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.preinst.head" ;;
15860 "debian/pcp.postinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.postinst.head" ;;
15861 "build/tar/preinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/preinstall.head" ;;
15862 "build/tar/postinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/postinstall.head" ;;
15863 "build/GNUlocaldefs") CONFIG_FILES="$CONFIG_FILES build/GNUlocaldefs" ;;
15864 "build/mac/uninstall-pcp") CONFIG_FILES="$CONFIG_FILES build/mac/uninstall-pcp" ;;
15866 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15867 esac
15868 done
15871 # If the user did not use the arguments to specify the items to instantiate,
15872 # then the envvar interface is used. Set only those that are not.
15873 # We use the long form for the default assignment because of an extremely
15874 # bizarre bug on SunOS 4.1.3.
15875 if $ac_need_defaults; then
15876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15880 # Have a temporary directory for convenience. Make it in the build tree
15881 # simply because there is no reason against having it here, and in addition,
15882 # creating and moving files from /tmp can sometimes cause problems.
15883 # Hook for its removal unless debugging.
15884 # Note that there is a small window in which the directory will not be cleaned:
15885 # after its creation but before its name has been assigned to `$tmp'.
15886 $debug ||
15888 tmp= ac_tmp=
15889 trap 'exit_status=$?
15890 : "${ac_tmp:=$tmp}"
15891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15893 trap 'as_fn_exit 1' 1 2 13 15
15895 # Create a (secure) tmp directory for tmp files.
15898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15899 test -d "$tmp"
15900 } ||
15902 tmp=./conf$$-$RANDOM
15903 (umask 077 && mkdir "$tmp")
15904 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15905 ac_tmp=$tmp
15907 # Set up the scripts for CONFIG_FILES section.
15908 # No need to generate them if there are no CONFIG_FILES.
15909 # This happens for instance with `./config.status config.h'.
15910 if test -n "$CONFIG_FILES"; then
15913 ac_cr=`echo X | tr X '\015'`
15914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15915 # But we know of no other shell where ac_cr would be empty at this
15916 # point, so we can use a bashism as a fallback.
15917 if test "x$ac_cr" = x; then
15918 eval ac_cr=\$\'\\r\'
15920 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15922 ac_cs_awk_cr='\\r'
15923 else
15924 ac_cs_awk_cr=$ac_cr
15927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15928 _ACEOF
15932 echo "cat >conf$$subs.awk <<_ACEOF" &&
15933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15934 echo "_ACEOF"
15935 } >conf$$subs.sh ||
15936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15938 ac_delim='%!_!# '
15939 for ac_last_try in false false false false false :; do
15940 . ./conf$$subs.sh ||
15941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15944 if test $ac_delim_n = $ac_delim_num; then
15945 break
15946 elif $ac_last_try; then
15947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15948 else
15949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15951 done
15952 rm -f conf$$subs.sh
15954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15955 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15956 _ACEOF
15957 sed -n '
15959 s/^/S["/; s/!.*/"]=/
15962 s/^[^!]*!//
15963 :repl
15964 t repl
15965 s/'"$ac_delim"'$//
15966 t delim
15969 s/\(.\{148\}\)..*/\1/
15970 t more1
15971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15974 b repl
15975 :more1
15976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15979 s/.\{148\}//
15980 t nl
15981 :delim
15983 s/\(.\{148\}\)..*/\1/
15984 t more2
15985 s/["\\]/\\&/g; s/^/"/; s/$/"/
15988 :more2
15989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15992 s/.\{148\}//
15993 t delim
15994 ' <conf$$subs.awk | sed '
15995 /^[^""]/{
15997 s/\n//
15999 ' >>$CONFIG_STATUS || ac_write_fail=1
16000 rm -f conf$$subs.awk
16001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16002 _ACAWK
16003 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16004 for (key in S) S_is_set[key] = 1
16005 FS = "\a"
16009 line = $ 0
16010 nfields = split(line, field, "@")
16011 substed = 0
16012 len = length(field[1])
16013 for (i = 2; i < nfields; i++) {
16014 key = field[i]
16015 keylen = length(key)
16016 if (S_is_set[key]) {
16017 value = S[key]
16018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16019 len += length(value) + length(field[++i])
16020 substed = 1
16021 } else
16022 len += 1 + keylen
16025 print line
16028 _ACAWK
16029 _ACEOF
16030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16033 else
16035 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16036 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16037 _ACEOF
16039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16041 # trailing colons and then remove the whole line if VPATH becomes empty
16042 # (actually we leave an empty line to preserve line numbers).
16043 if test "x$srcdir" = x.; then
16044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16046 s///
16047 s/^/:/
16048 s/[ ]*$/:/
16049 s/:\$(srcdir):/:/g
16050 s/:\${srcdir}:/:/g
16051 s/:@srcdir@:/:/g
16052 s/^:*//
16053 s/:*$//
16055 s/\(=[ ]*\).*/\1/
16057 s/\n//
16058 s/^[^=]*=[ ]*$//
16062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063 fi # test -n "$CONFIG_FILES"
16065 # Set up the scripts for CONFIG_HEADERS section.
16066 # No need to generate them if there are no CONFIG_HEADERS.
16067 # This happens for instance with `./config.status Makefile'.
16068 if test -n "$CONFIG_HEADERS"; then
16069 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16070 BEGIN {
16071 _ACEOF
16073 # Transform confdefs.h into an awk script `defines.awk', embedded as
16074 # here-document in config.status, that substitutes the proper values into
16075 # config.h.in to produce config.h.
16077 # Create a delimiter string that does not exist in confdefs.h, to ease
16078 # handling of long lines.
16079 ac_delim='%!_!# '
16080 for ac_last_try in false false :; do
16081 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16082 if test -z "$ac_tt"; then
16083 break
16084 elif $ac_last_try; then
16085 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16086 else
16087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16089 done
16091 # For the awk script, D is an array of macro values keyed by name,
16092 # likewise P contains macro parameters if any. Preserve backslash
16093 # newline sequences.
16095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16096 sed -n '
16097 s/.\{148\}/&'"$ac_delim"'/g
16098 t rset
16099 :rset
16100 s/^[ ]*#[ ]*define[ ][ ]*/ /
16101 t def
16103 :def
16104 s/\\$//
16105 t bsnl
16106 s/["\\]/\\&/g
16107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16108 D["\1"]=" \3"/p
16109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16111 :bsnl
16112 s/["\\]/\\&/g
16113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16114 D["\1"]=" \3\\\\\\n"\\/p
16115 t cont
16116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16117 t cont
16119 :cont
16121 s/.\{148\}/&'"$ac_delim"'/g
16122 t clear
16123 :clear
16124 s/\\$//
16125 t bsnlc
16126 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16128 :bsnlc
16129 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16130 b cont
16131 ' <confdefs.h | sed '
16132 s/'"$ac_delim"'/"\\\
16133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16136 for (key in D) D_is_set[key] = 1
16137 FS = "\a"
16139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16140 line = \$ 0
16141 split(line, arg, " ")
16142 if (arg[1] == "#") {
16143 defundef = arg[2]
16144 mac1 = arg[3]
16145 } else {
16146 defundef = substr(arg[1], 2)
16147 mac1 = arg[2]
16149 split(mac1, mac2, "(") #)
16150 macro = mac2[1]
16151 prefix = substr(line, 1, index(line, defundef) - 1)
16152 if (D_is_set[macro]) {
16153 # Preserve the white space surrounding the "#".
16154 print prefix "define", macro P[macro] D[macro]
16155 next
16156 } else {
16157 # Replace #undef with comments. This is necessary, for example,
16158 # in the case of _POSIX_SOURCE, which is predefined and required
16159 # on some systems where configure will not decide to define it.
16160 if (defundef == "undef") {
16161 print "/*", prefix defundef, macro, "*/"
16162 next
16166 { print }
16167 _ACAWK
16168 _ACEOF
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16170 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16171 fi # test -n "$CONFIG_HEADERS"
16174 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16175 shift
16176 for ac_tag
16178 case $ac_tag in
16179 :[FHLC]) ac_mode=$ac_tag; continue;;
16180 esac
16181 case $ac_mode$ac_tag in
16182 :[FHL]*:*);;
16183 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16184 :[FH]-) ac_tag=-:-;;
16185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16186 esac
16187 ac_save_IFS=$IFS
16188 IFS=:
16189 set x $ac_tag
16190 IFS=$ac_save_IFS
16191 shift
16192 ac_file=$1
16193 shift
16195 case $ac_mode in
16196 :L) ac_source=$1;;
16197 :[FH])
16198 ac_file_inputs=
16199 for ac_f
16201 case $ac_f in
16202 -) ac_f="$ac_tmp/stdin";;
16203 *) # Look for the file first in the build tree, then in the source tree
16204 # (if the path is not absolute). The absolute path cannot be DOS-style,
16205 # because $ac_f cannot contain `:'.
16206 test -f "$ac_f" ||
16207 case $ac_f in
16208 [\\/$]*) false;;
16209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16210 esac ||
16211 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16212 esac
16213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16214 as_fn_append ac_file_inputs " '$ac_f'"
16215 done
16217 # Let's still pretend it is `configure' which instantiates (i.e., don't
16218 # use $as_me), people would be surprised to read:
16219 # /* config.h. Generated by config.status. */
16220 configure_input='Generated from '`
16221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16222 `' by configure.'
16223 if test x"$ac_file" != x-; then
16224 configure_input="$ac_file. $configure_input"
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16226 $as_echo "$as_me: creating $ac_file" >&6;}
16228 # Neutralize special characters interpreted by sed in replacement strings.
16229 case $configure_input in #(
16230 *\&* | *\|* | *\\* )
16231 ac_sed_conf_input=`$as_echo "$configure_input" |
16232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16233 *) ac_sed_conf_input=$configure_input;;
16234 esac
16236 case $ac_tag in
16237 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16239 esac
16241 esac
16243 ac_dir=`$as_dirname -- "$ac_file" ||
16244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16245 X"$ac_file" : 'X\(//\)[^/]' \| \
16246 X"$ac_file" : 'X\(//\)$' \| \
16247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16248 $as_echo X"$ac_file" |
16249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16250 s//\1/
16253 /^X\(\/\/\)[^/].*/{
16254 s//\1/
16257 /^X\(\/\/\)$/{
16258 s//\1/
16261 /^X\(\/\).*/{
16262 s//\1/
16265 s/.*/./; q'`
16266 as_dir="$ac_dir"; as_fn_mkdir_p
16267 ac_builddir=.
16269 case "$ac_dir" in
16270 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16273 # A ".." for each directory in $ac_dir_suffix.
16274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16275 case $ac_top_builddir_sub in
16276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16278 esac ;;
16279 esac
16280 ac_abs_top_builddir=$ac_pwd
16281 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16282 # for backward compatibility:
16283 ac_top_builddir=$ac_top_build_prefix
16285 case $srcdir in
16286 .) # We are building in place.
16287 ac_srcdir=.
16288 ac_top_srcdir=$ac_top_builddir_sub
16289 ac_abs_top_srcdir=$ac_pwd ;;
16290 [\\/]* | ?:[\\/]* ) # Absolute name.
16291 ac_srcdir=$srcdir$ac_dir_suffix;
16292 ac_top_srcdir=$srcdir
16293 ac_abs_top_srcdir=$srcdir ;;
16294 *) # Relative name.
16295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16296 ac_top_srcdir=$ac_top_build_prefix$srcdir
16297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16298 esac
16299 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16302 case $ac_mode in
16305 # CONFIG_FILE
16308 _ACEOF
16310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16311 # If the template does not know about datarootdir, expand it.
16312 # FIXME: This hack should be removed a few years after 2.60.
16313 ac_datarootdir_hack=; ac_datarootdir_seen=
16314 ac_sed_dataroot='
16315 /datarootdir/ {
16319 /@datadir@/p
16320 /@docdir@/p
16321 /@infodir@/p
16322 /@localedir@/p
16323 /@mandir@/p'
16324 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16325 *datarootdir*) ac_datarootdir_seen=yes;;
16326 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16328 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16329 _ACEOF
16330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16331 ac_datarootdir_hack='
16332 s&@datadir@&$datadir&g
16333 s&@docdir@&$docdir&g
16334 s&@infodir@&$infodir&g
16335 s&@localedir@&$localedir&g
16336 s&@mandir@&$mandir&g
16337 s&\\\${datarootdir}&$datarootdir&g' ;;
16338 esac
16339 _ACEOF
16341 # Neutralize VPATH when `$srcdir' = `.'.
16342 # Shell code in configure.ac might set extrasub.
16343 # FIXME: do we really want to maintain this feature?
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345 ac_sed_extra="$ac_vpsub
16346 $extrasub
16347 _ACEOF
16348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16351 s|@configure_input@|$ac_sed_conf_input|;t t
16352 s&@top_builddir@&$ac_top_builddir_sub&;t t
16353 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16354 s&@srcdir@&$ac_srcdir&;t t
16355 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16356 s&@top_srcdir@&$ac_top_srcdir&;t t
16357 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16358 s&@builddir@&$ac_builddir&;t t
16359 s&@abs_builddir@&$ac_abs_builddir&;t t
16360 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16361 $ac_datarootdir_hack
16363 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16364 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16367 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16368 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16369 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16371 which seems to be undefined. Please make sure it is defined" >&5
16372 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16373 which seems to be undefined. Please make sure it is defined" >&2;}
16375 rm -f "$ac_tmp/stdin"
16376 case $ac_file in
16377 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16378 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16379 esac \
16380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16384 # CONFIG_HEADER
16386 if test x"$ac_file" != x-; then
16388 $as_echo "/* $configure_input */" \
16389 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16390 } >"$ac_tmp/config.h" \
16391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16392 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16394 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16395 else
16396 rm -f "$ac_file"
16397 mv "$ac_tmp/config.h" "$ac_file" \
16398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16400 else
16401 $as_echo "/* $configure_input */" \
16402 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16403 || as_fn_error $? "could not create -" "$LINENO" 5
16408 esac
16410 done # for ac_tag
16413 as_fn_exit 0
16414 _ACEOF
16415 ac_clean_files=$ac_clean_files_save
16417 test $ac_write_fail = 0 ||
16418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16421 # configure is writing to config.log, and then calls config.status.
16422 # config.status does its own redirection, appending to config.log.
16423 # Unfortunately, on DOS this fails, as config.log is still kept open
16424 # by configure, so config.status won't be able to write to it; its
16425 # output is simply discarded. So we exec the FD to /dev/null,
16426 # effectively closing config.log, so it can be properly (re)opened and
16427 # appended to by config.status. When coming back to configure, we
16428 # need to make the FD available again.
16429 if test "$no_create" != yes; then
16430 ac_cs_success=:
16431 ac_config_status_args=
16432 test "$silent" = yes &&
16433 ac_config_status_args="$ac_config_status_args --quiet"
16434 exec 5>/dev/null
16435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16436 exec 5>>config.log
16437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16438 # would make configure fail if this is the last instruction.
16439 $ac_cs_success || as_fn_exit 1
16441 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16443 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}