pmdadocker - rework json interface for callback approach
[pcp.git] / configure
blob77146a6e6743c63ebdd8d7ae1131a055c4735a4d
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 have_manpages
663 pcp_man_dir
664 pcp_x11_pre
665 pcp_x11_extra
666 pcp_x11_libflags
667 pcp_x11_incflags
668 X_EXTRA_LIBS
669 X_LIBS
670 X_PRE_LIBS
671 X_CFLAGS
672 XMKMF
673 python_prefix
674 perl_install_base
675 perl_installdirs
676 pcp_lib32_dir
677 pcp_lib_dir
678 pcp_pmdas_dir
679 pcp_var_dir
680 pcp_binadm_dir
681 pcp_share_dir
682 pcp_pmloggercontrol_path
683 pcp_pmsnapcontrol_path
684 pcp_pmiecontrol_path
685 pcp_pmproxyoptions_path
686 pcp_pmmgroptions_path
687 pcp_pmwebdoptions_path
688 pcp_pmcdrclocal_path
689 pcp_pmcdoptions_path
690 pcp_pmcdconf_path
691 pcp_sysconf_dir
692 pcp_saslconf_dir
693 pcp_etc_dir
694 lib_for_math
695 lib_for_dlopen
696 lib_for_rt
697 lib_for_basename
698 fmt_pthread
699 lib_for_pthreads
700 fmt_uint64
701 fmt_int64
702 fmt_pid
703 rdynamic_flag
704 enable_manager
705 enable_webapi
706 HAVE_CAIRO
707 cairo_LIBS
708 cairo_CFLAGS
709 HAVE_LIBMICROHTTPD
710 libmicrohttpd_LIBS
711 libmicrohttpd_CFLAGS
712 PMDA_POSTFIX
713 QSHAPE
714 PMDA_RPM
715 PMDA_PERFEVENT
716 PFM_LIBS
717 PMDA_PAPI
718 PAPI_LIBS
719 PAPI_CFLAGS
720 papi_LIBS
721 papi_CFLAGS
722 PMDA_INFINIBAND
723 IB_LIBS
724 PMDA_SYSTEMD
725 SYSTEMD_LIBS
726 SYSTEMD_CFLAGS
727 HAVE_NCURSES
728 ncurses_LIBS
729 ncurses_CFLAGS
730 lib_for_regex
731 grep
732 pcp_syslog_prog
733 pcp_ps_prog
734 LN_S
735 book_brand
736 book_toolchain
737 xmlto
738 XMLTO
739 dblatex
740 DBLATEX
741 publican
742 PUBLICAN
743 makepkg
744 MAKEPKG
745 dpkg
746 DPKG
747 md5sum
748 MD5SUM
749 makedepend
750 MAKEDEPEND
751 TRUEPROG
752 pod2man
753 POD2MAN
754 rpmprog
757 rpmbuild
758 RPMBUILD
759 dlltool
760 DLLTOOL
761 pkgmk
762 PKGMK
763 mkinstallp
764 MKINSTALLP
765 hdiutil
766 HDIUTIL
767 package_maker
770 lzma
771 LZMA
772 bzip2
773 BZIP2
774 gzip
778 pcp_group_install
779 pcp_user_install
783 make
784 MAKE
785 enable_qt3d
786 qmake
787 enable_qt
788 qt_release
789 QMAKE
790 PMDA_LIBVIRT
791 PMDA_ACTIVEMQ
792 PMDA_NGINX
793 PMDA_ELASTICSEARCH
794 PMDA_ORACLE
795 PMDA_POSTGRESQL
796 PMDA_MYSQL
797 PMDA_SNMP
798 have_perl
799 pcp_perl_prog
800 PERL
801 have_python_libvirt
802 PMDA_JSON
803 have_python_six
804 have_python_requests
805 have_python_setuptools
806 have_python_jsonpointer
807 pcp_python_prog
808 have_python
809 enable_python3
810 enable_python2
811 PYTHON3
812 PYTHON
814 LTLIBOBJS
815 LIBOBJS
816 pm_version_current
817 PACKAGE_DISTRIBUTION
818 PACKAGE_BUILD_DATE
819 PACKAGE_BUILD
820 PACKAGE_REVISION
821 PACKAGE_MINOR
822 PACKAGE_MAJOR
823 enable_systemd
824 pcp_systemdunit_dir
825 SYSTEMD_SYSTEMUNITDIR
826 enable_avahi
827 enable_discovery
828 lib_for_avahi
829 avahi_LIBS
830 avahi_CFLAGS
831 enable_probes
833 DTRACE
834 EGREP
835 GREP
836 echo_c
837 echo_n
838 sort
839 yacc
840 YFLAGS
841 YACC
843 LEXLIB
844 LEX_OUTPUT_ROOT
846 which
847 WHICH
848 find
849 FIND
850 echo
851 ECHO
856 enable_shared
858 ac_ct_CXX
859 CXXFLAGS
861 INVISIBILITY
862 PIECFLAGS
863 PIELDFLAGS
864 PLDFLAGS
865 PCFLAGS
866 cflags_abi
867 cc_is_gcc
869 CCPATH
870 OBJEXT
871 EXEEXT
872 ac_ct_CC
873 CPPFLAGS
874 LDFLAGS
875 CFLAGS
877 PKG_CONFIG_LIBDIR
878 PKG_CONFIG_PATH
879 PKG_CONFIG
880 optimization
881 pcp_ps_all_flags
882 pcp_platform_paths
883 cross_compiling
884 target_os
885 target_vendor
886 target_cpu
887 target
888 host_os
889 host_vendor
890 host_cpu
891 host
892 build_os
893 build_vendor
894 build_cpu
895 build
896 pcp_group
897 pcp_user
898 target_alias
899 host_alias
900 build_alias
901 LIBS
902 ECHO_T
903 ECHO_N
904 ECHO_C
905 DEFS
906 mandir
907 localedir
908 libdir
909 psdir
910 pdfdir
911 dvidir
912 htmldir
913 infodir
914 docdir
915 oldincludedir
916 includedir
917 localstatedir
918 sharedstatedir
919 sysconfdir
920 datadir
921 datarootdir
922 libexecdir
923 sbindir
924 bindir
925 program_transform_name
926 prefix
927 exec_prefix
928 PACKAGE_URL
929 PACKAGE_BUGREPORT
930 PACKAGE_STRING
931 PACKAGE_VERSION
932 PACKAGE_TARNAME
933 PACKAGE_NAME
934 PATH_SEPARATOR
935 SHELL'
936 ac_subst_files=''
937 ac_user_opts='
938 enable_option_checking
939 with_64bit
940 with_optimization
941 with_threads
942 with_secure_sockets
943 with_static_probes
944 with_infiniband
945 with_user
946 with_group
947 with_discovery
948 with_systemd
949 with_qt
950 with_qt3d
951 with_python
952 with_python3
953 with_books
954 with_books_brand
955 with_papi
956 with_perfevent
957 with_pmdajson
958 with_pmdasnmp
959 with_manager
960 with_webapi
961 with_webjs
962 with_vector
963 with_parfait
964 with_make
965 with_tar
966 with_zip
967 enable_ssp
968 enable_pie
969 enable_visibility
970 enable_shared
971 with_configdir
972 with_perl_installdirs
973 with_perl_install_base
974 with_python_prefix
975 with_x
976 with_rcdir
977 with_sysconfigdir
978 with_logdir
979 with_rundir
980 with_tmpdir
981 with_docdir
982 with_demosdir
984 ac_precious_vars='build_alias
985 host_alias
986 target_alias
987 PKG_CONFIG
988 PKG_CONFIG_PATH
989 PKG_CONFIG_LIBDIR
991 CFLAGS
992 LDFLAGS
993 LIBS
994 CPPFLAGS
996 CXXFLAGS
998 YACC
999 YFLAGS
1001 avahi_CFLAGS
1002 avahi_LIBS
1003 SYSTEMD_SYSTEMUNITDIR
1004 ncurses_CFLAGS
1005 ncurses_LIBS
1006 SYSTEMD_CFLAGS
1007 SYSTEMD_LIBS
1008 papi_CFLAGS
1009 papi_LIBS
1010 libmicrohttpd_CFLAGS
1011 libmicrohttpd_LIBS
1012 cairo_CFLAGS
1013 cairo_LIBS
1014 XMKMF
1015 zlib_CFLAGS
1016 zlib_LIBS'
1019 # Initialize some variables set by options.
1020 ac_init_help=
1021 ac_init_version=false
1022 ac_unrecognized_opts=
1023 ac_unrecognized_sep=
1024 # The variables have the same names as the options, with
1025 # dashes changed to underlines.
1026 cache_file=/dev/null
1027 exec_prefix=NONE
1028 no_create=
1029 no_recursion=
1030 prefix=NONE
1031 program_prefix=NONE
1032 program_suffix=NONE
1033 program_transform_name=s,x,x,
1034 silent=
1035 site=
1036 srcdir=
1037 verbose=
1038 x_includes=NONE
1039 x_libraries=NONE
1041 # Installation directory options.
1042 # These are left unexpanded so users can "make install exec_prefix=/foo"
1043 # and all the variables that are supposed to be based on exec_prefix
1044 # by default will actually change.
1045 # Use braces instead of parens because sh, perl, etc. also accept them.
1046 # (The list follows the same order as the GNU Coding Standards.)
1047 bindir='${exec_prefix}/bin'
1048 sbindir='${exec_prefix}/sbin'
1049 libexecdir='${exec_prefix}/libexec'
1050 datarootdir='${prefix}/share'
1051 datadir='${datarootdir}'
1052 sysconfdir='${prefix}/etc'
1053 sharedstatedir='${prefix}/com'
1054 localstatedir='${prefix}/var'
1055 includedir='${prefix}/include'
1056 oldincludedir='/usr/include'
1057 docdir='${datarootdir}/doc/${PACKAGE}'
1058 infodir='${datarootdir}/info'
1059 htmldir='${docdir}'
1060 dvidir='${docdir}'
1061 pdfdir='${docdir}'
1062 psdir='${docdir}'
1063 libdir='${exec_prefix}/lib'
1064 localedir='${datarootdir}/locale'
1065 mandir='${datarootdir}/man'
1067 ac_prev=
1068 ac_dashdash=
1069 for ac_option
1071 # If the previous option needs an argument, assign it.
1072 if test -n "$ac_prev"; then
1073 eval $ac_prev=\$ac_option
1074 ac_prev=
1075 continue
1078 case $ac_option in
1079 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1080 *=) ac_optarg= ;;
1081 *) ac_optarg=yes ;;
1082 esac
1084 # Accept the important Cygnus configure options, so we can diagnose typos.
1086 case $ac_dashdash$ac_option in
1088 ac_dashdash=yes ;;
1090 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1091 ac_prev=bindir ;;
1092 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1093 bindir=$ac_optarg ;;
1095 -build | --build | --buil | --bui | --bu)
1096 ac_prev=build_alias ;;
1097 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1098 build_alias=$ac_optarg ;;
1100 -cache-file | --cache-file | --cache-fil | --cache-fi \
1101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1102 ac_prev=cache_file ;;
1103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1105 cache_file=$ac_optarg ;;
1107 --config-cache | -C)
1108 cache_file=config.cache ;;
1110 -datadir | --datadir | --datadi | --datad)
1111 ac_prev=datadir ;;
1112 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1113 datadir=$ac_optarg ;;
1115 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1116 | --dataroo | --dataro | --datar)
1117 ac_prev=datarootdir ;;
1118 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1119 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1120 datarootdir=$ac_optarg ;;
1122 -disable-* | --disable-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid feature name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval enable_$ac_useropt=no ;;
1138 -docdir | --docdir | --docdi | --doc | --do)
1139 ac_prev=docdir ;;
1140 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1141 docdir=$ac_optarg ;;
1143 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1144 ac_prev=dvidir ;;
1145 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1146 dvidir=$ac_optarg ;;
1148 -enable-* | --enable-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid feature name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1157 "enable_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval enable_$ac_useropt=\$ac_optarg ;;
1164 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1165 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1166 | --exec | --exe | --ex)
1167 ac_prev=exec_prefix ;;
1168 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1169 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1170 | --exec=* | --exe=* | --ex=*)
1171 exec_prefix=$ac_optarg ;;
1173 -gas | --gas | --ga | --g)
1174 # Obsolete; use --with-gas.
1175 with_gas=yes ;;
1177 -help | --help | --hel | --he | -h)
1178 ac_init_help=long ;;
1179 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1180 ac_init_help=recursive ;;
1181 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1182 ac_init_help=short ;;
1184 -host | --host | --hos | --ho)
1185 ac_prev=host_alias ;;
1186 -host=* | --host=* | --hos=* | --ho=*)
1187 host_alias=$ac_optarg ;;
1189 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1190 ac_prev=htmldir ;;
1191 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1192 | --ht=*)
1193 htmldir=$ac_optarg ;;
1195 -includedir | --includedir | --includedi | --included | --include \
1196 | --includ | --inclu | --incl | --inc)
1197 ac_prev=includedir ;;
1198 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1199 | --includ=* | --inclu=* | --incl=* | --inc=*)
1200 includedir=$ac_optarg ;;
1202 -infodir | --infodir | --infodi | --infod | --info | --inf)
1203 ac_prev=infodir ;;
1204 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1205 infodir=$ac_optarg ;;
1207 -libdir | --libdir | --libdi | --libd)
1208 ac_prev=libdir ;;
1209 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1210 libdir=$ac_optarg ;;
1212 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1213 | --libexe | --libex | --libe)
1214 ac_prev=libexecdir ;;
1215 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1216 | --libexe=* | --libex=* | --libe=*)
1217 libexecdir=$ac_optarg ;;
1219 -localedir | --localedir | --localedi | --localed | --locale)
1220 ac_prev=localedir ;;
1221 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1222 localedir=$ac_optarg ;;
1224 -localstatedir | --localstatedir | --localstatedi | --localstated \
1225 | --localstate | --localstat | --localsta | --localst | --locals)
1226 ac_prev=localstatedir ;;
1227 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1228 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1229 localstatedir=$ac_optarg ;;
1231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1232 ac_prev=mandir ;;
1233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1234 mandir=$ac_optarg ;;
1236 -nfp | --nfp | --nf)
1237 # Obsolete; use --without-fp.
1238 with_fp=no ;;
1240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1241 | --no-cr | --no-c | -n)
1242 no_create=yes ;;
1244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1246 no_recursion=yes ;;
1248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1250 | --oldin | --oldi | --old | --ol | --o)
1251 ac_prev=oldincludedir ;;
1252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1255 oldincludedir=$ac_optarg ;;
1257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1258 ac_prev=prefix ;;
1259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1260 prefix=$ac_optarg ;;
1262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1263 | --program-pre | --program-pr | --program-p)
1264 ac_prev=program_prefix ;;
1265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1267 program_prefix=$ac_optarg ;;
1269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1270 | --program-suf | --program-su | --program-s)
1271 ac_prev=program_suffix ;;
1272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1274 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1284 -program-transform-name=* | --program-transform-name=* \
1285 | --program-transform-nam=* | --program-transform-na=* \
1286 | --program-transform-n=* | --program-transform-=* \
1287 | --program-transform=* | --program-transfor=* \
1288 | --program-transfo=* | --program-transf=* \
1289 | --program-trans=* | --program-tran=* \
1290 | --progr-tra=* | --program-tr=* | --program-t=*)
1291 program_transform_name=$ac_optarg ;;
1293 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1294 ac_prev=pdfdir ;;
1295 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1296 pdfdir=$ac_optarg ;;
1298 -psdir | --psdir | --psdi | --psd | --ps)
1299 ac_prev=psdir ;;
1300 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1301 psdir=$ac_optarg ;;
1303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1304 | -silent | --silent | --silen | --sile | --sil)
1305 silent=yes ;;
1307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1308 ac_prev=sbindir ;;
1309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1310 | --sbi=* | --sb=*)
1311 sbindir=$ac_optarg ;;
1313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1315 | --sharedst | --shareds | --shared | --share | --shar \
1316 | --sha | --sh)
1317 ac_prev=sharedstatedir ;;
1318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1321 | --sha=* | --sh=*)
1322 sharedstatedir=$ac_optarg ;;
1324 -site | --site | --sit)
1325 ac_prev=site ;;
1326 -site=* | --site=* | --sit=*)
1327 site=$ac_optarg ;;
1329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1330 ac_prev=srcdir ;;
1331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1332 srcdir=$ac_optarg ;;
1334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1335 | --syscon | --sysco | --sysc | --sys | --sy)
1336 ac_prev=sysconfdir ;;
1337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1339 sysconfdir=$ac_optarg ;;
1341 -target | --target | --targe | --targ | --tar | --ta | --t)
1342 ac_prev=target_alias ;;
1343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1344 target_alias=$ac_optarg ;;
1346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1347 verbose=yes ;;
1349 -version | --version | --versio | --versi | --vers | -V)
1350 ac_init_version=: ;;
1352 -with-* | --with-*)
1353 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 as_fn_error $? "invalid package name: $ac_useropt"
1357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1361 "with_$ac_useropt"
1362 "*) ;;
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1365 esac
1366 eval with_$ac_useropt=\$ac_optarg ;;
1368 -without-* | --without-*)
1369 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1370 # Reject names that are not valid shell variable names.
1371 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1372 as_fn_error $? "invalid package name: $ac_useropt"
1373 ac_useropt_orig=$ac_useropt
1374 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1375 case $ac_user_opts in
1377 "with_$ac_useropt"
1378 "*) ;;
1379 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1380 ac_unrecognized_sep=', ';;
1381 esac
1382 eval with_$ac_useropt=no ;;
1384 --x)
1385 # Obsolete; use --with-x.
1386 with_x=yes ;;
1388 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1389 | --x-incl | --x-inc | --x-in | --x-i)
1390 ac_prev=x_includes ;;
1391 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1392 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1393 x_includes=$ac_optarg ;;
1395 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1396 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1397 ac_prev=x_libraries ;;
1398 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1399 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1400 x_libraries=$ac_optarg ;;
1402 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1403 Try \`$0 --help' for more information"
1406 *=*)
1407 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1408 # Reject names that are not valid shell variable names.
1409 case $ac_envvar in #(
1410 '' | [0-9]* | *[!_$as_cr_alnum]* )
1411 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1412 esac
1413 eval $ac_envvar=\$ac_optarg
1414 export $ac_envvar ;;
1417 # FIXME: should be removed in autoconf 3.0.
1418 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1419 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1420 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1421 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1424 esac
1425 done
1427 if test -n "$ac_prev"; then
1428 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1429 as_fn_error $? "missing argument to $ac_option"
1432 if test -n "$ac_unrecognized_opts"; then
1433 case $enable_option_checking in
1434 no) ;;
1435 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1436 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1437 esac
1440 # Check all directory arguments for consistency.
1441 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1442 datadir sysconfdir sharedstatedir localstatedir includedir \
1443 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1444 libdir localedir mandir
1446 eval ac_val=\$$ac_var
1447 # Remove trailing slashes.
1448 case $ac_val in
1449 */ )
1450 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1451 eval $ac_var=\$ac_val;;
1452 esac
1453 # Be sure to have absolute directory names.
1454 case $ac_val in
1455 [\\/$]* | ?:[\\/]* ) continue;;
1456 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457 esac
1458 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1459 done
1461 # There might be people who depend on the old broken behavior: `$host'
1462 # used to hold the argument of --host etc.
1463 # FIXME: To remove some day.
1464 build=$build_alias
1465 host=$host_alias
1466 target=$target_alias
1468 # FIXME: To remove some day.
1469 if test "x$host_alias" != x; then
1470 if test "x$build_alias" = x; then
1471 cross_compiling=maybe
1472 elif test "x$build_alias" != "x$host_alias"; then
1473 cross_compiling=yes
1477 ac_tool_prefix=
1478 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1480 test "$silent" = yes && exec 6>/dev/null
1483 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1484 ac_ls_di=`ls -di .` &&
1485 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1486 as_fn_error $? "working directory cannot be determined"
1487 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1488 as_fn_error $? "pwd does not report name of working directory"
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493 ac_srcdir_defaulted=yes
1494 # Try the directory containing this script, then the parent directory.
1495 ac_confdir=`$as_dirname -- "$as_myself" ||
1496 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497 X"$as_myself" : 'X\(//\)[^/]' \| \
1498 X"$as_myself" : 'X\(//\)$' \| \
1499 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1500 $as_echo X"$as_myself" |
1501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502 s//\1/
1505 /^X\(\/\/\)[^/].*/{
1506 s//\1/
1509 /^X\(\/\/\)$/{
1510 s//\1/
1513 /^X\(\/\).*/{
1514 s//\1/
1517 s/.*/./; q'`
1518 srcdir=$ac_confdir
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 srcdir=..
1522 else
1523 ac_srcdir_defaulted=no
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1527 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1529 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1530 ac_abs_confdir=`(
1531 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1532 pwd)`
1533 # When building in place, set srcdir=.
1534 if test "$ac_abs_confdir" = "$ac_pwd"; then
1535 srcdir=.
1537 # Remove unnecessary trailing slashes from srcdir.
1538 # Double slashes in file names in object file debugging info
1539 # mess up M-x gdb in Emacs.
1540 case $srcdir in
1541 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1542 esac
1543 for ac_var in $ac_precious_vars; do
1544 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1545 eval ac_env_${ac_var}_value=\$${ac_var}
1546 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1547 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1548 done
1551 # Report the --help message.
1553 if test "$ac_init_help" = "long"; then
1554 # Omit some internal or obsolete options to make the list less imposing.
1555 # This message is too long to be a string in the A/UX 3.1 sh.
1556 cat <<_ACEOF
1557 \`configure' configures this package to adapt to many kinds of systems.
1559 Usage: $0 [OPTION]... [VAR=VALUE]...
1561 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1562 VAR=VALUE. See below for descriptions of some of the useful variables.
1564 Defaults for the options are specified in brackets.
1566 Configuration:
1567 -h, --help display this help and exit
1568 --help=short display options specific to this package
1569 --help=recursive display the short help of all the included packages
1570 -V, --version display version information and exit
1571 -q, --quiet, --silent do not print \`checking ...' messages
1572 --cache-file=FILE cache test results in FILE [disabled]
1573 -C, --config-cache alias for \`--cache-file=config.cache'
1574 -n, --no-create do not create output files
1575 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1577 Installation directories:
1578 --prefix=PREFIX install architecture-independent files in PREFIX
1579 [$ac_default_prefix]
1580 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1581 [PREFIX]
1583 By default, \`make install' will install all the files in
1584 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1585 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1586 for instance \`--prefix=\$HOME'.
1588 For better control, use the options below.
1590 Fine tuning of the installation directories:
1591 --bindir=DIR user executables [EPREFIX/bin]
1592 --sbindir=DIR system admin executables [EPREFIX/sbin]
1593 --libexecdir=DIR program executables [EPREFIX/libexec]
1594 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1595 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1596 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1597 --libdir=DIR object code libraries [EPREFIX/lib]
1598 --includedir=DIR C header files [PREFIX/include]
1599 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1600 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1601 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1602 --infodir=DIR info documentation [DATAROOTDIR/info]
1603 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1604 --mandir=DIR man documentation [DATAROOTDIR/man]
1605 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1606 --htmldir=DIR html documentation [DOCDIR]
1607 --dvidir=DIR dvi documentation [DOCDIR]
1608 --pdfdir=DIR pdf documentation [DOCDIR]
1609 --psdir=DIR ps documentation [DOCDIR]
1610 _ACEOF
1612 cat <<\_ACEOF
1614 X features:
1615 --x-includes=DIR X include files are in DIR
1616 --x-libraries=DIR X library files are in DIR
1618 System types:
1619 --build=BUILD configure for building on BUILD [guessed]
1620 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1621 --target=TARGET configure for building compilers for TARGET [HOST]
1622 _ACEOF
1625 if test -n "$ac_init_help"; then
1627 cat <<\_ACEOF
1629 Optional Features:
1630 --disable-option-checking ignore unrecognized --enable/--with options
1631 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1632 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1633 --disable-ssp disable gcc stack-protector
1634 --disable-pie disable position-independent-executable
1635 --disable-visibility disable gcc symbol visibility
1636 --disable-shared disable core shared libary generation
1638 Optional Packages:
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-64bit turn on 64 bit compilation mode (default is platform
1642 dependent)
1643 --with-optimization enable optimization for C/C++ code (default is yes)
1644 --with-threads enable support for multiple threads (default is on)
1645 --with-secure-sockets enable support for secure sockets (default is on)
1646 --with-static-probes enable support for static probes (default is on)
1647 --with-infiniband enable support for Infiniband metrics (default is
1649 --with-user user account under which daemons run (default is
1650 pcp)
1651 --with-group user group under which daemons run (default is pcp)
1652 --with-discovery enable support for service discovery (default is on)
1653 --with-systemd enable support for systemd services (default is on)
1654 --with-qt enable support for tools requiring Qt (default is
1656 --with-qt3d enable support for 3D scene graph API (default is
1658 --with-python enable support for tools requiring Python (default
1659 is on)
1660 --with-python3 enable support for tools requiring Python3 (default
1661 is on)
1662 --with-books enable building of the PCP books (default is off)
1663 --with-books-brand=BRAND
1664 choose the docbook brand when building the PCP books
1665 (default is common)
1666 --with-papi[=DIR|=MODULE]
1667 enable performance api counter pmda (default is on)
1668 The optional argument may be a full path of a PAPI
1669 installation prefix, or a pkgconfig module name.
1670 --with-perfevent enable perfevent pmda (default is on)
1671 --with-pmdajson enable JSON pmda (default is on)
1672 --with-pmdasnmp enable SNMP pmda (default is on)
1673 --with-manager enable daemon manager (default is on)
1674 --with-webapi enable REST API daemon (default is on)
1675 --with-webjs enable building of webjs packages (default is off)
1676 --with-vector enable building of vector package (default is off)
1677 --with-parfait enable building of parfait package (default is off)
1678 --with-make path to GNU compatible make(1) (default is empty for
1679 auto discovery)
1680 --with-tar path to GNU compatible tar(1) (default is empty for
1681 auto discovery)
1682 --with-zip path to GNU compatible zip(1) (default is empty for
1683 auto discovery)
1684 --with-configdir configuration directory [LOCALSTATEDIR/pcp/config]
1685 --with-perl_installdirs perl installdirs [vendor]
1686 --with-perl_install_base
1687 perl install_base [PREFIX]
1688 --with-python_prefix python setup.py prefix [PREFIX]
1689 --with-x use the X Window System
1690 --with-rcdir rc directory [SYSCONFDIR/rc.d]
1691 --with-sysconfigdir sysconfig directory [SYSCONFDIR/sysconfig]
1692 --with-logdir log directory [LOCALSTATEDIR/log/pcp]
1693 --with-rundir run directory [LOCALSTATEDIR/run/pcp]
1694 --with-tmpdir tmp directory [LOCALSTATEDIR/tmp]
1695 --with-docdir docs directory [DOCDIR/pcp-VERSION]
1696 --with-demosdir run directory [DATADIR/pcp/demos]
1698 Some influential environment variables:
1699 PKG_CONFIG path to pkg-config utility
1700 PKG_CONFIG_PATH
1701 directories to add to pkg-config's search path
1702 PKG_CONFIG_LIBDIR
1703 path overriding pkg-config's built-in search path
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1713 YACC The `Yet Another Compiler Compiler' implementation to use.
1714 Defaults to the first program found out of: `bison -y', `byacc',
1715 `yacc'.
1716 YFLAGS The list of arguments that will be passed by default to $YACC.
1717 This script will default YFLAGS to the empty string to avoid a
1718 default value of `-d' given by some make applications.
1719 CPP C preprocessor
1720 avahi_CFLAGS
1721 C compiler flags for avahi, overriding pkg-config
1722 avahi_LIBS linker flags for avahi, overriding pkg-config
1723 SYSTEMD_SYSTEMUNITDIR
1724 value of systemdsystemunitdir for systemd, overriding pkg-config
1725 ncurses_CFLAGS
1726 C compiler flags for ncurses, overriding pkg-config
1727 ncurses_LIBS
1728 linker flags for ncurses, overriding pkg-config
1729 SYSTEMD_CFLAGS
1730 C compiler flags for SYSTEMD, overriding pkg-config
1731 SYSTEMD_LIBS
1732 linker flags for SYSTEMD, overriding pkg-config
1733 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1734 papi_LIBS linker flags for papi, overriding pkg-config
1735 libmicrohttpd_CFLAGS
1736 C compiler flags for libmicrohttpd, overriding pkg-config
1737 libmicrohttpd_LIBS
1738 linker flags for libmicrohttpd, overriding pkg-config
1739 cairo_CFLAGS
1740 C compiler flags for cairo, overriding pkg-config
1741 cairo_LIBS linker flags for cairo, overriding pkg-config
1742 XMKMF Path to xmkmf, Makefile generator for X Window System
1743 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1744 zlib_LIBS linker flags for zlib, overriding pkg-config
1746 Use these variables to override the choices made by `configure' or to help
1747 it to find libraries and programs with nonstandard names/locations.
1749 Report bugs to the package provider.
1750 _ACEOF
1751 ac_status=$?
1754 if test "$ac_init_help" = "recursive"; then
1755 # If there are subdirs, report their specific --help.
1756 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1757 test -d "$ac_dir" ||
1758 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1759 continue
1760 ac_builddir=.
1762 case "$ac_dir" in
1763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1766 # A ".." for each directory in $ac_dir_suffix.
1767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1768 case $ac_top_builddir_sub in
1769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1771 esac ;;
1772 esac
1773 ac_abs_top_builddir=$ac_pwd
1774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1775 # for backward compatibility:
1776 ac_top_builddir=$ac_top_build_prefix
1778 case $srcdir in
1779 .) # We are building in place.
1780 ac_srcdir=.
1781 ac_top_srcdir=$ac_top_builddir_sub
1782 ac_abs_top_srcdir=$ac_pwd ;;
1783 [\\/]* | ?:[\\/]* ) # Absolute name.
1784 ac_srcdir=$srcdir$ac_dir_suffix;
1785 ac_top_srcdir=$srcdir
1786 ac_abs_top_srcdir=$srcdir ;;
1787 *) # Relative name.
1788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1789 ac_top_srcdir=$ac_top_build_prefix$srcdir
1790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1791 esac
1792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1794 cd "$ac_dir" || { ac_status=$?; continue; }
1795 # Check for guested configure.
1796 if test -f "$ac_srcdir/configure.gnu"; then
1797 echo &&
1798 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1799 elif test -f "$ac_srcdir/configure"; then
1800 echo &&
1801 $SHELL "$ac_srcdir/configure" --help=recursive
1802 else
1803 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1804 fi || ac_status=$?
1805 cd "$ac_pwd" || { ac_status=$?; break; }
1806 done
1809 test -n "$ac_init_help" && exit $ac_status
1810 if $ac_init_version; then
1811 cat <<\_ACEOF
1812 configure
1813 generated by GNU Autoconf 2.69
1815 Copyright (C) 2012 Free Software Foundation, Inc.
1816 This configure script is free software; the Free Software Foundation
1817 gives unlimited permission to copy, distribute and modify it.
1818 _ACEOF
1819 exit
1822 ## ------------------------ ##
1823 ## Autoconf initialization. ##
1824 ## ------------------------ ##
1826 # ac_fn_c_try_compile LINENO
1827 # --------------------------
1828 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_compile ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext
1833 if { { ac_try="$ac_compile"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_compile") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest.$ac_objext; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 ac_retval=1
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1862 } # ac_fn_c_try_compile
1864 # ac_fn_c_try_link LINENO
1865 # -----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 ac_fn_c_try_link ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 rm -f conftest.$ac_objext conftest$ac_exeext
1871 if { { ac_try="$ac_link"
1872 case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>conftest.err
1879 ac_status=$?
1880 if test -s conftest.err; then
1881 grep -v '^ *+' conftest.err >conftest.er1
1882 cat conftest.er1 >&5
1883 mv -f conftest.er1 conftest.err
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && {
1887 test -z "$ac_c_werror_flag" ||
1888 test ! -s conftest.err
1889 } && test -s conftest$ac_exeext && {
1890 test "$cross_compiling" = yes ||
1891 test -x conftest$ac_exeext
1892 }; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=1
1900 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902 # interfere with the next link command; also delete a directory that is
1903 # left behind by Apple's compiler. We do this before executing the actions.
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1908 } # ac_fn_c_try_link
1910 # ac_fn_cxx_try_compile LINENO
1911 # ----------------------------
1912 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_cxx_try_compile ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext
1917 if { { ac_try="$ac_compile"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_compile") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_cxx_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest.$ac_objext; then :
1936 ac_retval=0
1937 else
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1941 ac_retval=1
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 as_fn_set_status $ac_retval
1946 } # ac_fn_cxx_try_compile
1948 # ac_fn_c_try_cpp LINENO
1949 # ----------------------
1950 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_c_try_cpp ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_cpp conftest.$ac_ext"
1955 case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } > conftest.i && {
1970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1971 test ! -s conftest.err
1972 }; then :
1973 ac_retval=0
1974 else
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1978 ac_retval=1
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 as_fn_set_status $ac_retval
1983 } # ac_fn_c_try_cpp
1985 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1988 # the include files in INCLUDES and setting the cache variable VAR
1989 # accordingly.
1990 ac_fn_c_check_header_mongrel ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if eval \${$3+:} false; then :
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 else
2003 # Is the header compilable?
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2005 $as_echo_n "checking $2 usability... " >&6; }
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2009 #include <$2>
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_header_compiler=yes
2013 else
2014 ac_header_compiler=no
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2018 $as_echo "$ac_header_compiler" >&6; }
2020 # Is the header present?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2022 $as_echo_n "checking $2 presence... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_cpp "$LINENO"; then :
2028 ac_header_preproc=yes
2029 else
2030 ac_header_preproc=no
2032 rm -f conftest.err conftest.i conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2034 $as_echo "$ac_header_preproc" >&6; }
2036 # So? What about this header?
2037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2038 yes:no: )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2040 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 no:yes:* )
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2046 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2048 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2050 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2052 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 esac
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2061 else
2062 eval "$3=\$ac_header_compiler"
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070 } # ac_fn_c_check_header_mongrel
2072 # ac_fn_c_try_run LINENO
2073 # ----------------------
2074 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2075 # that executables *can* be run.
2076 ac_fn_c_try_run ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if { { ac_try="$ac_link"
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_link") 2>&5
2087 ac_status=$?
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2090 { { case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093 esac
2094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095 $as_echo "$ac_try_echo"; } >&5
2096 (eval "$ac_try") 2>&5
2097 ac_status=$?
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; }; }; then :
2100 ac_retval=0
2101 else
2102 $as_echo "$as_me: program exited with status $ac_status" >&5
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2106 ac_retval=$ac_status
2108 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 as_fn_set_status $ac_retval
2112 } # ac_fn_c_try_run
2114 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2115 # -------------------------------------------------------
2116 # Tests whether HEADER exists and can be compiled using the include files in
2117 # INCLUDES, setting the cache variable VAR accordingly.
2118 ac_fn_c_check_header_compile ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2129 #include <$2>
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 eval "$3=yes"
2133 else
2134 eval "$3=no"
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 eval ac_res=\$$3
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2140 $as_echo "$ac_res" >&6; }
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143 } # ac_fn_c_check_header_compile
2145 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2146 # -------------------------------------------
2147 # Tests whether TYPE exists after having included INCLUDES, setting cache
2148 # variable VAR accordingly.
2149 ac_fn_c_check_type ()
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2153 $as_echo_n "checking for $2... " >&6; }
2154 if eval \${$3+:} false; then :
2155 $as_echo_n "(cached) " >&6
2156 else
2157 eval "$3=no"
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main ()
2164 if (sizeof ($2))
2165 return 0;
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2175 main ()
2177 if (sizeof (($2)))
2178 return 0;
2180 return 0;
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2185 else
2186 eval "$3=yes"
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197 } # ac_fn_c_check_type
2199 # ac_fn_c_check_func LINENO FUNC VAR
2200 # ----------------------------------
2201 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2202 ac_fn_c_check_func ()
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206 $as_echo_n "checking for $2... " >&6; }
2207 if eval \${$3+:} false; then :
2208 $as_echo_n "(cached) " >&6
2209 else
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2214 #define $2 innocuous_$2
2216 /* System header to define __stub macros and hopefully few prototypes,
2217 which can conflict with char $2 (); below.
2218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2219 <limits.h> exists even on freestanding compilers. */
2221 #ifdef __STDC__
2222 # include <limits.h>
2223 #else
2224 # include <assert.h>
2225 #endif
2227 #undef $2
2229 /* Override any GCC internal prototype to avoid an error.
2230 Use char because int might match the return type of a GCC
2231 builtin and then its argument prototype would still apply. */
2232 #ifdef __cplusplus
2233 extern "C"
2234 #endif
2235 char $2 ();
2236 /* The GNU C library defines this for functions which it implements
2237 to always fail with ENOSYS. Some functions are actually named
2238 something starting with __ and the normal name is an alias. */
2239 #if defined __stub_$2 || defined __stub___$2
2240 choke me
2241 #endif
2244 main ()
2246 return $2 ();
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_link "$LINENO"; then :
2252 eval "$3=yes"
2253 else
2254 eval "$3=no"
2256 rm -f core conftest.err conftest.$ac_objext \
2257 conftest$ac_exeext conftest.$ac_ext
2259 eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 } # ac_fn_c_check_func
2265 cat >config.log <<_ACEOF
2266 This file contains any messages produced by compilers while
2267 running configure, to aid debugging if configure makes a mistake.
2269 It was created by $as_me, which was
2270 generated by GNU Autoconf 2.69. Invocation command line was
2272 $ $0 $@
2274 _ACEOF
2275 exec 5>>config.log
2277 cat <<_ASUNAME
2278 ## --------- ##
2279 ## Platform. ##
2280 ## --------- ##
2282 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2283 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2284 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2285 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2286 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2288 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2289 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2291 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2292 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2293 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2294 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2295 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2296 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2297 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2299 _ASUNAME
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 $as_echo "PATH: $as_dir"
2307 done
2308 IFS=$as_save_IFS
2310 } >&5
2312 cat >&5 <<_ACEOF
2315 ## ----------- ##
2316 ## Core tests. ##
2317 ## ----------- ##
2319 _ACEOF
2322 # Keep a trace of the command line.
2323 # Strip out --no-create and --no-recursion so they do not pile up.
2324 # Strip out --silent because we don't want to record it for future runs.
2325 # Also quote any args containing shell meta-characters.
2326 # Make two passes to allow for proper duplicate-argument suppression.
2327 ac_configure_args=
2328 ac_configure_args0=
2329 ac_configure_args1=
2330 ac_must_keep_next=false
2331 for ac_pass in 1 2
2333 for ac_arg
2335 case $ac_arg in
2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2338 | -silent | --silent | --silen | --sile | --sil)
2339 continue ;;
2340 *\'*)
2341 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 esac
2343 case $ac_pass in
2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346 as_fn_append ac_configure_args1 " '$ac_arg'"
2347 if test $ac_must_keep_next = true; then
2348 ac_must_keep_next=false # Got value, back to normal.
2349 else
2350 case $ac_arg in
2351 *=* | --config-cache | -C | -disable-* | --disable-* \
2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2354 | -with-* | --with-* | -without-* | --without-* | --x)
2355 case "$ac_configure_args0 " in
2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2357 esac
2359 -* ) ac_must_keep_next=true ;;
2360 esac
2362 as_fn_append ac_configure_args " '$ac_arg'"
2364 esac
2365 done
2366 done
2367 { ac_configure_args0=; unset ac_configure_args0;}
2368 { ac_configure_args1=; unset ac_configure_args1;}
2370 # When interrupted or exit'd, cleanup temporary files, and complete
2371 # config.log. We remove comments because anyway the quotes in there
2372 # would cause problems or look ugly.
2373 # WARNING: Use '\'' to represent an apostrophe within the trap.
2374 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2375 trap 'exit_status=$?
2376 # Save into config.log some information that might help in debugging.
2378 echo
2380 $as_echo "## ---------------- ##
2381 ## Cache variables. ##
2382 ## ---------------- ##"
2383 echo
2384 # The following way of writing the cache mishandles newlines in values,
2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2387 eval ac_val=\$$ac_var
2388 case $ac_val in #(
2389 *${as_nl}*)
2390 case $ac_var in #(
2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2393 esac
2394 case $ac_var in #(
2395 _ | IFS | as_nl) ;; #(
2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2397 *) { eval $ac_var=; unset $ac_var;} ;;
2398 esac ;;
2399 esac
2400 done
2401 (set) 2>&1 |
2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2403 *${as_nl}ac_space=\ *)
2404 sed -n \
2405 "s/'\''/'\''\\\\'\'''\''/g;
2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2407 ;; #(
2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411 esac |
2412 sort
2414 echo
2416 $as_echo "## ----------------- ##
2417 ## Output variables. ##
2418 ## ----------------- ##"
2419 echo
2420 for ac_var in $ac_subst_vars
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2430 if test -n "$ac_subst_files"; then
2431 $as_echo "## ------------------- ##
2432 ## File substitutions. ##
2433 ## ------------------- ##"
2434 echo
2435 for ac_var in $ac_subst_files
2437 eval ac_val=\$$ac_var
2438 case $ac_val in
2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440 esac
2441 $as_echo "$ac_var='\''$ac_val'\''"
2442 done | sort
2443 echo
2446 if test -s confdefs.h; then
2447 $as_echo "## ----------- ##
2448 ## confdefs.h. ##
2449 ## ----------- ##"
2450 echo
2451 cat confdefs.h
2452 echo
2454 test "$ac_signal" != 0 &&
2455 $as_echo "$as_me: caught signal $ac_signal"
2456 $as_echo "$as_me: exit $exit_status"
2457 } >&5
2458 rm -f core *.core core.conftest.* &&
2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2460 exit $exit_status
2462 for ac_signal in 1 2 13 15; do
2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2464 done
2465 ac_signal=0
2467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2468 rm -f -r conftest* confdefs.h
2470 $as_echo "/* confdefs.h */" > confdefs.h
2472 # Predefined preprocessor variables.
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_NAME "$PACKAGE_NAME"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480 _ACEOF
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2484 _ACEOF
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_STRING "$PACKAGE_STRING"
2488 _ACEOF
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492 _ACEOF
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_URL "$PACKAGE_URL"
2496 _ACEOF
2499 # Let the site file select an alternate cache file if it wants to.
2500 # Prefer an explicitly selected file to automatically selected ones.
2501 ac_site_file1=NONE
2502 ac_site_file2=NONE
2503 if test -n "$CONFIG_SITE"; then
2504 # We do not want a PATH search for config.site.
2505 case $CONFIG_SITE in #((
2506 -*) ac_site_file1=./$CONFIG_SITE;;
2507 */*) ac_site_file1=$CONFIG_SITE;;
2508 *) ac_site_file1=./$CONFIG_SITE;;
2509 esac
2510 elif test "x$prefix" != xNONE; then
2511 ac_site_file1=$prefix/share/config.site
2512 ac_site_file2=$prefix/etc/config.site
2513 else
2514 ac_site_file1=$ac_default_prefix/share/config.site
2515 ac_site_file2=$ac_default_prefix/etc/config.site
2517 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519 test "x$ac_site_file" = xNONE && continue
2520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2522 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2523 sed 's/^/| /' "$ac_site_file" >&5
2524 . "$ac_site_file" \
2525 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 as_fn_error $? "failed to load site script $ac_site_file
2528 See \`config.log' for more details" "$LINENO" 5; }
2530 done
2532 if test -r "$cache_file"; then
2533 # Some versions of bash will fail to source /dev/null (special files
2534 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2535 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537 $as_echo "$as_me: loading cache $cache_file" >&6;}
2538 case $cache_file in
2539 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540 *) . "./$cache_file";;
2541 esac
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545 $as_echo "$as_me: creating cache $cache_file" >&6;}
2546 >$cache_file
2549 # Check that the precious variables saved in the cache have kept the same
2550 # value.
2551 ac_cache_corrupted=false
2552 for ac_var in $ac_precious_vars; do
2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554 eval ac_new_set=\$ac_env_${ac_var}_set
2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556 eval ac_new_val=\$ac_env_${ac_var}_value
2557 case $ac_old_set,$ac_new_set in
2558 set,)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,set)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2566 ,);;
2568 if test "x$ac_old_val" != "x$ac_new_val"; then
2569 # differences in whitespace do not lead to failure.
2570 ac_old_val_w=`echo x $ac_old_val`
2571 ac_new_val_w=`echo x $ac_new_val`
2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575 ac_cache_corrupted=:
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579 eval $ac_var=\$ac_old_val
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2582 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2584 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2585 fi;;
2586 esac
2587 # Pass precious variables to config.status.
2588 if test "$ac_new_set" = set; then
2589 case $ac_new_val in
2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591 *) ac_arg=$ac_var=$ac_new_val ;;
2592 esac
2593 case " $ac_configure_args " in
2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2596 esac
2598 done
2599 if $ac_cache_corrupted; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2604 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2606 ## -------------------- ##
2607 ## Main body of script. ##
2608 ## -------------------- ##
2610 ac_ext=c
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 unset ROOT TOOLROOT
2622 # Check whether --with-64bit was given.
2623 if test "${with_64bit+set}" = set; then :
2624 withval=$with_64bit; use_64bit=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-64bit=$withval"
2629 # Check whether --with-optimization was given.
2630 if test "${with_optimization+set}" = set; then :
2631 withval=$with_optimization; use_optimization=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-optimization=$withval"
2632 else
2633 use_optimizaton=yes
2638 # Check whether --with-threads was given.
2639 if test "${with_threads+set}" = set; then :
2640 withval=$with_threads; do_threads=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-threads=$withval"
2641 else
2642 do_threads=check
2647 # Check whether --with-secure-sockets was given.
2648 if test "${with_secure_sockets+set}" = set; then :
2649 withval=$with_secure_sockets; do_secure=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2650 else
2651 do_secure=check
2656 # Check whether --with-static-probes was given.
2657 if test "${with_static_probes+set}" = set; then :
2658 withval=$with_static_probes; do_probes=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2659 else
2660 do_probes=check
2665 # Check whether --with-infiniband was given.
2666 if test "${with_infiniband+set}" = set; then :
2667 withval=$with_infiniband; do_infiniband=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2668 else
2669 do_infiniband=check
2674 # Check whether --with-user was given.
2675 if test "${with_user+set}" = set; then :
2676 withval=$with_user; pcp_user=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-user-account=$withval"
2677 else
2678 pcp_user=pcp
2684 # Check whether --with-group was given.
2685 if test "${with_group+set}" = set; then :
2686 withval=$with_group; pcp_group=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-group-account=$withval"
2687 else
2688 pcp_group=pcp
2694 # Check whether --with-discovery was given.
2695 if test "${with_discovery+set}" = set; then :
2696 withval=$with_discovery; do_discovery=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-discovery=$withval"
2697 else
2698 do_discovery=check
2703 # Check whether --with-systemd was given.
2704 if test "${with_systemd+set}" = set; then :
2705 withval=$with_systemd; do_systemd=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-systemd=$withval"
2706 else
2707 do_systemd=check
2712 # Check whether --with-qt was given.
2713 if test "${with_qt+set}" = set; then :
2714 withval=$with_qt; do_qt=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt=$withval"
2715 else
2716 do_qt=check
2721 # Check whether --with-qt3d was given.
2722 if test "${with_qt3d+set}" = set; then :
2723 withval=$with_qt3d; do_qt3d=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt3d=$withval"
2724 else
2725 do_qt3d=check
2730 # Check whether --with-python was given.
2731 if test "${with_python+set}" = set; then :
2732 withval=$with_python; do_python=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python=$withval"
2733 else
2734 do_python=check
2739 # Check whether --with-python3 was given.
2740 if test "${with_python3+set}" = set; then :
2741 withval=$with_python3; do_python3=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python3=$withval"
2742 else
2743 do_python3=check
2748 # Check whether --with-books was given.
2749 if test "${with_books+set}" = set; then :
2750 withval=$with_books; do_books=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books=$withval"
2751 else
2752 do_books=no
2757 # Check whether --with-books-brand was given.
2758 if test "${with_books_brand+set}" = set; then :
2759 withval=$with_books_brand; do_books_brand=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2760 else
2761 do_books_brand=common
2766 # Check whether --with-papi was given.
2767 if test "${with_papi+set}" = set; then :
2768 withval=$with_papi; do_papi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-papi=$withval"
2769 else
2770 do_papi=check
2775 # Check whether --with-perfevent was given.
2776 if test "${with_perfevent+set}" = set; then :
2777 withval=$with_perfevent; do_perfevent=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2778 else
2779 do_perfevent=check
2784 # Check whether --with-pmdajson was given.
2785 if test "${with_pmdajson+set}" = set; then :
2786 withval=$with_pmdajson; do_pmdajson=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2787 else
2788 do_pmdajson=check
2793 # Check whether --with-pmdasnmp was given.
2794 if test "${with_pmdasnmp+set}" = set; then :
2795 withval=$with_pmdasnmp; do_pmdasnmp=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2796 else
2797 do_pmdasnmp=check
2802 # Check whether --with-manager was given.
2803 if test "${with_manager+set}" = set; then :
2804 withval=$with_manager; do_manager=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-manager=$withval"
2805 else
2806 do_manager=check
2811 # Check whether --with-webapi was given.
2812 if test "${with_webapi+set}" = set; then :
2813 withval=$with_webapi; do_webapi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webapi=$withval"
2814 else
2815 do_webapi=check
2820 # Check whether --with-webjs was given.
2821 if test "${with_webjs+set}" = set; then :
2822 withval=$with_webjs; do_webjs=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webjs=$withval"
2823 else
2824 do_webjs=no
2829 # Check whether --with-vector was given.
2830 if test "${with_vector+set}" = set; then :
2831 withval=$with_vector; do_vector=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-vector=$withval"
2832 else
2833 do_vector=no
2838 # Check whether --with-parfait was given.
2839 if test "${with_parfait+set}" = set; then :
2840 withval=$with_parfait; do_parfait=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-parfait=$withval"
2841 else
2842 do_parfait=no
2848 # Check whether --with-make was given.
2849 if test "${with_make+set}" = set; then :
2850 withval=$with_make; MAKE=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-make=$withval"
2851 else
2852 MAKE=''
2857 # Check whether --with-tar was given.
2858 if test "${with_tar+set}" = set; then :
2859 withval=$with_tar; TAR=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-tar=$withval"
2860 else
2861 TAR=''
2866 # Check whether --with-zip was given.
2867 if test "${with_zip+set}" = set; then :
2868 withval=$with_zip; ZIP=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-zip=$withval"
2869 else
2870 ZIP=''
2875 # Note: the following environment variables may be
2876 # set to override the defaults.
2878 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2881 ac_aux_dir=
2882 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2883 if test -f "$ac_dir/install-sh"; then
2884 ac_aux_dir=$ac_dir
2885 ac_install_sh="$ac_aux_dir/install-sh -c"
2886 break
2887 elif test -f "$ac_dir/install.sh"; then
2888 ac_aux_dir=$ac_dir
2889 ac_install_sh="$ac_aux_dir/install.sh -c"
2890 break
2891 elif test -f "$ac_dir/shtool"; then
2892 ac_aux_dir=$ac_dir
2893 ac_install_sh="$ac_aux_dir/shtool install -c"
2894 break
2896 done
2897 if test -z "$ac_aux_dir"; then
2898 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2901 # These three variables are undocumented and unsupported,
2902 # and are intended to be withdrawn in a future Autoconf release.
2903 # They can cause serious problems if a builder's source tree is in a directory
2904 # whose full name contains unusual characters.
2905 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2906 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2907 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2910 # Make sure we can run config.sub.
2911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2912 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2915 $as_echo_n "checking build system type... " >&6; }
2916 if ${ac_cv_build+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 ac_build_alias=$build_alias
2920 test "x$ac_build_alias" = x &&
2921 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2922 test "x$ac_build_alias" = x &&
2923 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2929 $as_echo "$ac_cv_build" >&6; }
2930 case $ac_cv_build in
2931 *-*-*) ;;
2932 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2933 esac
2934 build=$ac_cv_build
2935 ac_save_IFS=$IFS; IFS='-'
2936 set x $ac_cv_build
2937 shift
2938 build_cpu=$1
2939 build_vendor=$2
2940 shift; shift
2941 # Remember, the first character of IFS is used to create $*,
2942 # except with old shells:
2943 build_os=$*
2944 IFS=$ac_save_IFS
2945 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2949 $as_echo_n "checking host system type... " >&6; }
2950 if ${ac_cv_host+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test "x$host_alias" = x; then
2954 ac_cv_host=$ac_cv_build
2955 else
2956 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2957 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2962 $as_echo "$ac_cv_host" >&6; }
2963 case $ac_cv_host in
2964 *-*-*) ;;
2965 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2966 esac
2967 host=$ac_cv_host
2968 ac_save_IFS=$IFS; IFS='-'
2969 set x $ac_cv_host
2970 shift
2971 host_cpu=$1
2972 host_vendor=$2
2973 shift; shift
2974 # Remember, the first character of IFS is used to create $*,
2975 # except with old shells:
2976 host_os=$*
2977 IFS=$ac_save_IFS
2978 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2982 $as_echo_n "checking target system type... " >&6; }
2983 if ${ac_cv_target+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test "x$target_alias" = x; then
2987 ac_cv_target=$ac_cv_host
2988 else
2989 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2990 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2995 $as_echo "$ac_cv_target" >&6; }
2996 case $ac_cv_target in
2997 *-*-*) ;;
2998 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2999 esac
3000 target=$ac_cv_target
3001 ac_save_IFS=$IFS; IFS='-'
3002 set x $ac_cv_target
3003 shift
3004 target_cpu=$1
3005 target_vendor=$2
3006 shift; shift
3007 # Remember, the first character of IFS is used to create $*,
3008 # except with old shells:
3009 target_os=$*
3010 IFS=$ac_save_IFS
3011 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3014 # The aliases save the names the user supplied, while $host etc.
3015 # will get canonicalized.
3016 test -n "$target_alias" &&
3017 test "$program_prefix$program_suffix$program_transform_name" = \
3018 NONENONEs,x,x, &&
3019 program_prefix=${target_alias}-
3021 if test -z "$target"
3022 then
3023 echo '
3024 FATAL ERROR: Cannot guess your target, try explicit specification
3025 using --target or mailto: pcp@groups.io to ask.'
3026 rm -rf conftest conftest.*
3027 exit 1
3028 else
3029 target=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3030 target_os=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3031 target_os=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3033 build=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3034 build_os=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3035 build_os=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3038 echo Building on $build for $target
3039 echo "Build: os=$build_os cpu=$build_cpu"
3040 echo "Target: os=$target_os cpu=$target_cpu"
3042 if test "$cross_compiling" = "yes"; then
3043 if test -f ./config.$target_os; then
3044 . ./config.$target_os
3045 else
3046 echo
3047 echo "
3048 FATAL ERROR: Cannot perform cross-compilation without a file to source
3049 configuration information from (config.$target_os is missing)"
3050 rm -rf conftest conftest.*
3051 exit 1
3057 target_distro=$target_os
3058 if test $target_os = linux
3059 then
3061 $as_echo "#define IS_LINUX 1" >>confdefs.h
3063 test -f /etc/SuSE-release && target_distro=suse
3064 test -f /etc/fedora-release && target_distro=fedora
3065 test -f /etc/redhat-release && target_distro=redhat
3066 test -f /etc/debian_version && target_distro=debian
3067 test -f /etc/slackware-version && target_distro=slackware
3068 test -f /etc/gentoo-release && target_distro=gentoo
3069 test -f /etc/mandriva-release && target_distro=mandriva
3070 test -f /etc/arch-release && target_distro=arch
3071 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3072 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3073 pcp_ps_all_flags=-efw
3074 elif test $target_os = darwin
3075 then
3077 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3079 target_distro=macosx
3080 version=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3081 CFLAGS="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3082 if test $version -ge 106
3083 then
3084 target_distro=cocoa
3085 CFLAGS="$CFLAGS -arch x86_64"
3087 export CFLAGS
3088 pcp_platform_paths='/usr/local/bin'
3089 pcp_ps_all_flags="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3090 elif test $target_os = mingw
3091 then
3093 $as_echo "#define IS_MINGW 1" >>confdefs.h
3095 CFLAGS="-fno-strict-aliasing"
3096 pcp_platform_paths=''
3097 pcp_ps_all_flags=-efW
3098 elif test $target_os = solaris
3099 then
3101 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3103 export CFLAGS_IF_GCC="-fPIC -fno-strict-aliasing"
3104 export CFLAGS_IF_SUNCC="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3105 pcp_platform_paths='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3106 pcp_ps_all_flags=-ef
3107 elif test $target_os = aix
3108 then
3110 $as_echo "#define IS_AIX 1" >>confdefs.h
3112 export CFLAGS="-qcpluscmt"
3113 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3114 pcp_ps_all_flags=-ef
3115 elif test $target_os = freebsd || test $target_os = kfreebsd
3116 then
3118 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3120 test -f /etc/debian_version && target_distro=debian
3121 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3122 if test $target_os = kfreebsd
3123 then
3124 pcp_ps_all_flags=-efw
3125 else
3126 pcp_ps_all_flags=auxww
3128 pcp_platform_paths='/usr/bin/X11'
3129 test -d /usr/local/bin && pcp_platform_paths="$pcp_platform_paths:/usr/local/bin"
3130 test -d /usr/bsd && pcp_platform_paths="$pcp_platform_paths:/usr/bsd"
3131 elif test $target_os = gnu
3132 then
3134 $as_echo "#define IS_GNU 1" >>confdefs.h
3136 test -f /etc/debian_version && target_distro=debian
3137 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3138 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3139 pcp_ps_all_flags=-efw
3140 elif test $target_os = netbsdelf
3141 then
3142 target_os=netbsd
3144 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3146 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3147 pcp_platform_paths='/usr/pkg/bin'
3148 pcp_ps_all_flags=auxww
3149 elif test $target_os = openbsd
3150 then
3151 target_os=openbsd
3153 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3155 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3156 pcp_platform_paths='/usr/local/bin'
3157 pcp_ps_all_flags=auxww
3158 else
3159 echo
3160 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3161 rm -rf conftest conftest.*
3162 exit 1
3167 if test "$use_optimization" = no
3168 then
3169 optimization="-O0 -g"
3170 else
3171 optimization="-O2 -g"
3182 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 case $PKG_CONFIG in
3192 [\\/]* | ?:[\\/]*)
3193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3207 done
3208 done
3209 IFS=$as_save_IFS
3212 esac
3214 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3215 if test -n "$PKG_CONFIG"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3217 $as_echo "$PKG_CONFIG" >&6; }
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3225 if test -z "$ac_cv_path_PKG_CONFIG"; then
3226 ac_pt_PKG_CONFIG=$PKG_CONFIG
3227 # Extract the first word of "pkg-config", so it can be a program name with args.
3228 set dummy pkg-config; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 case $ac_pt_PKG_CONFIG in
3235 [\\/]* | ?:[\\/]*)
3236 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3250 done
3251 done
3252 IFS=$as_save_IFS
3255 esac
3257 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3258 if test -n "$ac_pt_PKG_CONFIG"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3260 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3266 if test "x$ac_pt_PKG_CONFIG" = x; then
3267 PKG_CONFIG=""
3268 else
3269 case $cross_compiling:$ac_tool_warned in
3270 yes:)
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3274 esac
3275 PKG_CONFIG=$ac_pt_PKG_CONFIG
3277 else
3278 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3282 if test -n "$PKG_CONFIG"; then
3283 _pkg_min_version=0.9.0
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3285 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3286 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 PKG_CONFIG=""
3295 if test -z "$PKG_CONFIG"; then
3296 as_fn_error $? "cannot find a 'pkg-config' command" "$LINENO" 5
3299 cflags_abi=
3300 ac_ext=c
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 if test -n "$ac_tool_prefix"; then
3306 for ac_prog in suncc egcc gcc cc
3308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_CC+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3329 done
3330 done
3331 IFS=$as_save_IFS
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3345 test -n "$CC" && break
3346 done
3348 if test -z "$CC"; then
3349 ac_ct_CC=$CC
3350 for ac_prog in suncc egcc gcc cc
3352 # Extract the first word of "$ac_prog", so it can be a program name with args.
3353 set dummy $ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$ac_ct_CC"; then
3360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_ac_ct_CC="$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3375 IFS=$as_save_IFS
3379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3380 if test -n "$ac_ct_CC"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3382 $as_echo "$ac_ct_CC" >&6; }
3383 else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3389 test -n "$ac_ct_CC" && break
3390 done
3392 if test "x$ac_ct_CC" = x; then
3393 CC=""
3394 else
3395 case $cross_compiling:$ac_tool_warned in
3396 yes:)
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3399 ac_tool_warned=yes ;;
3400 esac
3401 CC=$ac_ct_CC
3406 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "no acceptable C compiler found in \$PATH
3409 See \`config.log' for more details" "$LINENO" 5; }
3411 # Provide some information about the compiler.
3412 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3413 set X $ac_compile
3414 ac_compiler=$2
3415 for ac_option in --version -v -V -qversion; do
3416 { { ac_try="$ac_compiler $ac_option >&5"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3424 ac_status=$?
3425 if test -s conftest.err; then
3426 sed '10a\
3427 ... rest of stderr output deleted ...
3428 10q' conftest.err >conftest.er1
3429 cat conftest.er1 >&5
3431 rm -f conftest.er1 conftest.err
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }
3434 done
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 ac_clean_files_save=$ac_clean_files
3448 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3449 # Try to create an executable without -o first, disregard a.out.
3450 # It will help us diagnose broken compilers, and finding out an intuition
3451 # of exeext.
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3453 $as_echo_n "checking whether the C compiler works... " >&6; }
3454 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3456 # The possible output files:
3457 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3459 ac_rmfiles=
3460 for ac_file in $ac_files
3462 case $ac_file in
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3465 esac
3466 done
3467 rm -f $ac_rmfiles
3469 if { { ac_try="$ac_link_default"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_link_default") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3481 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3482 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3483 # so that the user can short-circuit this test for compilers unknown to
3484 # Autoconf.
3485 for ac_file in $ac_files ''
3487 test -f "$ac_file" || continue
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3491 [ab].out )
3492 # We found the default executable, but exeext='' is most
3493 # certainly right.
3494 break;;
3495 *.* )
3496 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3497 then :; else
3498 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500 # We set ac_cv_exeext here because the later test for it is not
3501 # safe: cross compilers may not add the suffix if given an `-o'
3502 # argument, so we may need to know it at that point already.
3503 # Even if this section looks crufty: it has the advantage of
3504 # actually working.
3505 break;;
3507 break;;
3508 esac
3509 done
3510 test "$ac_cv_exeext" = no && ac_cv_exeext=
3512 else
3513 ac_file=''
3515 if test -z "$ac_file"; then :
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error 77 "C compiler cannot create executables
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3530 $as_echo_n "checking for C compiler default output file name... " >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3532 $as_echo "$ac_file" >&6; }
3533 ac_exeext=$ac_cv_exeext
3535 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3536 ac_clean_files=$ac_clean_files_save
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { { ac_try="$ac_link"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_link") 2>&5
3547 ac_status=$?
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3553 # `rm'.
3554 for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3559 break;;
3560 * ) break;;
3561 esac
3562 done
3563 else
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details" "$LINENO" 5; }
3569 rm -f conftest conftest$ac_cv_exeext
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3571 $as_echo "$ac_cv_exeext" >&6; }
3573 rm -f conftest.$ac_ext
3574 EXEEXT=$ac_cv_exeext
3575 ac_exeext=$EXEEXT
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #include <stdio.h>
3580 main ()
3582 FILE *f = fopen ("conftest.out", "w");
3583 return ferror (f) || fclose (f) != 0;
3586 return 0;
3588 _ACEOF
3589 ac_clean_files="$ac_clean_files conftest.out"
3590 # Check that the compiler produces executables we can run. If not, either
3591 # the compiler is broken, or we cross compile.
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3593 $as_echo_n "checking whether we are cross compiling... " >&6; }
3594 if test "$cross_compiling" != yes; then
3595 { { ac_try="$ac_link"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }
3606 if { ac_try='./conftest$ac_cv_exeext'
3607 { { case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_try") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; }; then
3617 cross_compiling=no
3618 else
3619 if test "$cross_compiling" = maybe; then
3620 cross_compiling=yes
3621 else
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details" "$LINENO" 5; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3631 $as_echo "$cross_compiling" >&6; }
3633 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3634 ac_clean_files=$ac_clean_files_save
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3636 $as_echo_n "checking for suffix of object files... " >&6; }
3637 if ${ac_cv_objext+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3644 main ()
3648 return 0;
3650 _ACEOF
3651 rm -f conftest.o conftest.obj
3652 if { { ac_try="$ac_compile"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_compile") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; then :
3663 for ac_file in conftest.o conftest.obj conftest.*; do
3664 test -f "$ac_file" || continue;
3665 case $ac_file in
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3667 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3668 break;;
3669 esac
3670 done
3671 else
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error $? "cannot compute suffix of object files: cannot compile
3678 See \`config.log' for more details" "$LINENO" 5; }
3680 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3683 $as_echo "$ac_cv_objext" >&6; }
3684 OBJEXT=$ac_cv_objext
3685 ac_objext=$OBJEXT
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3687 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3688 if ${ac_cv_c_compiler_gnu+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3695 main ()
3697 #ifndef __GNUC__
3698 choke me
3699 #endif
3702 return 0;
3704 _ACEOF
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_compiler_gnu=yes
3707 else
3708 ac_compiler_gnu=no
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3715 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3716 if test $ac_compiler_gnu = yes; then
3717 GCC=yes
3718 else
3719 GCC=
3721 ac_test_CFLAGS=${CFLAGS+set}
3722 ac_save_CFLAGS=$CFLAGS
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3724 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3725 if ${ac_cv_prog_cc_g+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 ac_save_c_werror_flag=$ac_c_werror_flag
3729 ac_c_werror_flag=yes
3730 ac_cv_prog_cc_g=no
3731 CFLAGS="-g"
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3736 main ()
3740 return 0;
3742 _ACEOF
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_cv_prog_cc_g=yes
3745 else
3746 CFLAGS=""
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3751 main ()
3755 return 0;
3757 _ACEOF
3758 if ac_fn_c_try_compile "$LINENO"; then :
3760 else
3761 ac_c_werror_flag=$ac_save_c_werror_flag
3762 CFLAGS="-g"
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3767 main ()
3771 return 0;
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775 ac_cv_prog_cc_g=yes
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 ac_c_werror_flag=$ac_save_c_werror_flag
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3785 $as_echo "$ac_cv_prog_cc_g" >&6; }
3786 if test "$ac_test_CFLAGS" = set; then
3787 CFLAGS=$ac_save_CFLAGS
3788 elif test $ac_cv_prog_cc_g = yes; then
3789 if test "$GCC" = yes; then
3790 CFLAGS="-g -O2"
3791 else
3792 CFLAGS="-g"
3794 else
3795 if test "$GCC" = yes; then
3796 CFLAGS="-O2"
3797 else
3798 CFLAGS=
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3802 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3803 if ${ac_cv_prog_cc_c89+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 ac_cv_prog_cc_c89=no
3807 ac_save_CC=$CC
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810 #include <stdarg.h>
3811 #include <stdio.h>
3812 struct stat;
3813 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3814 struct buf { int x; };
3815 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3816 static char *e (p, i)
3817 char **p;
3818 int i;
3820 return p[i];
3822 static char *f (char * (*g) (char **, int), char **p, ...)
3824 char *s;
3825 va_list v;
3826 va_start (v,p);
3827 s = g (p, va_arg (v,int));
3828 va_end (v);
3829 return s;
3832 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3833 function prototypes and stuff, but not '\xHH' hex character constants.
3834 These don't provoke an error unfortunately, instead are silently treated
3835 as 'x'. The following induces an error, until -std is added to get
3836 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3837 array size at least. It's necessary to write '\x00'==0 to get something
3838 that's true only with -std. */
3839 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3841 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3842 inside strings and character constants. */
3843 #define FOO(x) 'x'
3844 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3846 int test (int i, double x);
3847 struct s1 {int (*f) (int a);};
3848 struct s2 {int (*f) (double a);};
3849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3850 int argc;
3851 char **argv;
3853 main ()
3855 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3857 return 0;
3859 _ACEOF
3860 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3861 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3863 CC="$ac_save_CC $ac_arg"
3864 if ac_fn_c_try_compile "$LINENO"; then :
3865 ac_cv_prog_cc_c89=$ac_arg
3867 rm -f core conftest.err conftest.$ac_objext
3868 test "x$ac_cv_prog_cc_c89" != "xno" && break
3869 done
3870 rm -f conftest.$ac_ext
3871 CC=$ac_save_CC
3874 # AC_CACHE_VAL
3875 case "x$ac_cv_prog_cc_c89" in
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3878 $as_echo "none needed" >&6; } ;;
3879 xno)
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3881 $as_echo "unsupported" >&6; } ;;
3883 CC="$CC $ac_cv_prog_cc_c89"
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3885 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3886 esac
3887 if test "x$ac_cv_prog_cc_c89" != xno; then :
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 if test $target_os = solaris
3898 then
3899 # Extract the first word of "$CC", so it can be a program name with args.
3900 set dummy $CC; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_path_CCPATH+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 case $CCPATH in
3907 [\\/]* | ?:[\\/]*)
3908 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3922 done
3923 done
3924 IFS=$as_save_IFS
3926 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3928 esac
3930 CCPATH=$ac_cv_path_CCPATH
3931 if test -n "$CCPATH"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3933 $as_echo "$CCPATH" >&6; }
3934 else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3940 cc=$CCPATH
3941 if test "$GCC" = "yes"
3942 then
3943 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3944 else
3945 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3947 if test "$use_64bit" = "no"
3948 then
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3952 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3953 case `isainfo -k`
3955 amd64|sparcv9)
3956 cflags_abi=-m64
3957 CFLAGS="$CFLAGS -m64"
3958 LDFLAGS="$LDFLAGS -m64"
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960 $as_echo "yes" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3966 esac
3968 else
3969 cc=$CC
3972 cc_is_gcc=$GCC
3975 PCFLAGS="$CFLAGS"
3976 PLDFLAGS=$LDFLAGS
3978 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3979 then
3980 CFLAGS="-O $PCFLAGS"
3984 # Add some security-related gcc flags
3985 if echo "$CFLAGS" | grep stack-protector >/dev/null
3986 then
3988 else
3989 # Check whether --enable-ssp was given.
3990 if test "${enable_ssp+set}" = set; then :
3991 enableval=$enable_ssp;
3995 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3997 save_CFLAGS="$CFLAGS"
3998 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 int something ();
4002 _ACEOF
4003 if ac_fn_c_try_compile "$LINENO"; then :
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
4006 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
4007 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
4008 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
4011 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
4012 CFLAGS="$save_CFLAGS"
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 # Check for even more security-related gcc/linker flags, useful for daemons
4023 # Check whether --enable-pie was given.
4024 if test "${enable_pie+set}" = set; then :
4025 enableval=$enable_pie;
4028 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4030 PIECFLAGS='-fPIE'
4031 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4032 save_CFLAGS="$CFLAGS"
4033 save_LDFLAGS="$LDFLAGS"
4034 CFLAGS="$CFLAGS $PIECFLAGS"
4035 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 void main () {}
4039 _ACEOF
4040 if ac_fn_c_try_link "$LINENO"; then :
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4043 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4045 else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4048 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4049 PIECFLAGS=""
4050 PIELDFLAGS=""
4053 rm -f core conftest.err conftest.$ac_objext \
4054 conftest$ac_exeext conftest.$ac_ext
4055 CFLAGS="$save_CFLAGS"
4056 LDFLAGS="$save_LDFLAGS"
4062 # Check for support for symbol hiding via gcc flags
4063 # Check whether --enable-visibility was given.
4064 if test "${enable_visibility+set}" = set; then :
4065 enableval=$enable_visibility;
4068 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4070 INVISIBILITY="-fvisibility=hidden"
4071 save_CFLAGS="$CFLAGS"
4072 CFLAGS="$CFLAGS -c $INVISIBILITY"
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075 int visible () { return 0; }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4080 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4082 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4085 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4086 INVISIBILITY=""
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 CFLAGS="$save_CFLAGS"
4095 ac_ext=cpp
4096 ac_cpp='$CXXCPP $CPPFLAGS'
4097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4100 if test -z "$CXX"; then
4101 if test -n "$CCC"; then
4102 CXX=$CCC
4103 else
4104 if test -n "$ac_tool_prefix"; then
4105 for ac_prog in eg++ g++ c++
4107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if ${ac_cv_prog_CXX+:} false; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -n "$CXX"; then
4115 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4116 else
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4128 done
4129 done
4130 IFS=$as_save_IFS
4134 CXX=$ac_cv_prog_CXX
4135 if test -n "$CXX"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4137 $as_echo "$CXX" >&6; }
4138 else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4144 test -n "$CXX" && break
4145 done
4147 if test -z "$CXX"; then
4148 ac_ct_CXX=$CXX
4149 for ac_prog in eg++ g++ c++
4151 # Extract the first word of "$ac_prog", so it can be a program name with args.
4152 set dummy $ac_prog; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test -n "$ac_ct_CXX"; then
4159 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_ac_ct_CXX="$ac_prog"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4172 done
4173 done
4174 IFS=$as_save_IFS
4178 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4179 if test -n "$ac_ct_CXX"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4181 $as_echo "$ac_ct_CXX" >&6; }
4182 else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4188 test -n "$ac_ct_CXX" && break
4189 done
4191 if test "x$ac_ct_CXX" = x; then
4192 CXX="g++"
4193 else
4194 case $cross_compiling:$ac_tool_warned in
4195 yes:)
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4198 ac_tool_warned=yes ;;
4199 esac
4200 CXX=$ac_ct_CXX
4206 # Provide some information about the compiler.
4207 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4208 set X $ac_compile
4209 ac_compiler=$2
4210 for ac_option in --version -v -V -qversion; do
4211 { { ac_try="$ac_compiler $ac_option >&5"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 $as_echo "$ac_try_echo"; } >&5
4218 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4219 ac_status=$?
4220 if test -s conftest.err; then
4221 sed '10a\
4222 ... rest of stderr output deleted ...
4223 10q' conftest.err >conftest.er1
4224 cat conftest.er1 >&5
4226 rm -f conftest.er1 conftest.err
4227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; }
4229 done
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4232 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4233 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4240 main ()
4242 #ifndef __GNUC__
4243 choke me
4244 #endif
4247 return 0;
4249 _ACEOF
4250 if ac_fn_cxx_try_compile "$LINENO"; then :
4251 ac_compiler_gnu=yes
4252 else
4253 ac_compiler_gnu=no
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4260 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4261 if test $ac_compiler_gnu = yes; then
4262 GXX=yes
4263 else
4264 GXX=
4266 ac_test_CXXFLAGS=${CXXFLAGS+set}
4267 ac_save_CXXFLAGS=$CXXFLAGS
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4269 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4270 if ${ac_cv_prog_cxx_g+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4274 ac_cxx_werror_flag=yes
4275 ac_cv_prog_cxx_g=no
4276 CXXFLAGS="-g"
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4281 main ()
4285 return 0;
4287 _ACEOF
4288 if ac_fn_cxx_try_compile "$LINENO"; then :
4289 ac_cv_prog_cxx_g=yes
4290 else
4291 CXXFLAGS=""
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4296 main ()
4300 return 0;
4302 _ACEOF
4303 if ac_fn_cxx_try_compile "$LINENO"; then :
4305 else
4306 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4307 CXXFLAGS="-g"
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4312 main ()
4316 return 0;
4318 _ACEOF
4319 if ac_fn_cxx_try_compile "$LINENO"; then :
4320 ac_cv_prog_cxx_g=yes
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4330 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4331 if test "$ac_test_CXXFLAGS" = set; then
4332 CXXFLAGS=$ac_save_CXXFLAGS
4333 elif test $ac_cv_prog_cxx_g = yes; then
4334 if test "$GXX" = yes; then
4335 CXXFLAGS="-g -O2"
4336 else
4337 CXXFLAGS="-g"
4339 else
4340 if test "$GXX" = yes; then
4341 CXXFLAGS="-O2"
4342 else
4343 CXXFLAGS=
4346 ac_ext=c
4347 ac_cpp='$CPP $CPPFLAGS'
4348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352 cxx=$CXX
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4355 $as_echo_n "checking for working C++ compiler... " >&6; }
4356 ac_ext=cpp
4357 ac_cpp='$CXXCPP $CPPFLAGS'
4358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365 #include <cstdio>
4367 main ()
4369 const char gday[] = "G'day, world\n";
4371 return 0;
4373 _ACEOF
4374 if ac_fn_cxx_try_compile "$LINENO"; then :
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4376 $as_echo "yes" >&6; }
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4380 cxx=""
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 # Prevent shared libraries from being built for libpcp and other core libraries
4391 # Check whether --enable-shared was given.
4392 if test "${enable_shared+set}" = set; then :
4393 enableval=$enable_shared; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --disable-shared=$withval"
4399 test -z "$AWK" && for ac_prog in gawk awk
4401 # Extract the first word of "$ac_prog", so it can be a program name with args.
4402 set dummy $ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_path_AWK+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 case $AWK in
4409 [\\/]* | ?:[\\/]*)
4410 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4424 done
4425 done
4426 IFS=$as_save_IFS
4429 esac
4431 AWK=$ac_cv_path_AWK
4432 if test -n "$AWK"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4434 $as_echo "$AWK" >&6; }
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4441 test -n "$AWK" && break
4442 done
4443 test -n "$AWK" || AWK="/usr/bin/awk"
4445 case "$AWK"
4447 gawk|*/gawk)
4448 awk="$AWK --posix"
4451 awk=$AWK
4453 esac
4456 if test -z "$SED"; then
4457 # Extract the first word of "sed", so it can be a program name with args.
4458 set dummy sed; ac_word=$2
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460 $as_echo_n "checking for $ac_word... " >&6; }
4461 if ${ac_cv_path_SED+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 case $SED in
4465 [\\/]* | ?:[\\/]*)
4466 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4480 done
4481 done
4482 IFS=$as_save_IFS
4484 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4486 esac
4488 SED=$ac_cv_path_SED
4489 if test -n "$SED"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4491 $as_echo "$SED" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4499 if test ! -x "$SED"; then
4500 as_fn_error $? "cannot find a valid 'sed' command." "$LINENO" 5
4502 sed=$SED
4505 if test -z "$ECHO"; then
4506 # Extract the first word of "echo", so it can be a program name with args.
4507 set dummy echo; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_path_ECHO+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 case $ECHO in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4529 done
4530 done
4531 IFS=$as_save_IFS
4533 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4535 esac
4537 ECHO=$ac_cv_path_ECHO
4538 if test -n "$ECHO"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4540 $as_echo "$ECHO" >&6; }
4541 else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4548 if test ! -x "$ECHO"; then
4549 as_fn_error $? "cannot find a valid 'echo' command." "$LINENO" 5
4551 echo=$ECHO
4554 if test -z "$FIND"; then
4555 # Extract the first word of "find", so it can be a program name with args.
4556 set dummy find; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_path_FIND+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 case $FIND in
4563 [\\/]* | ?:[\\/]*)
4564 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4580 IFS=$as_save_IFS
4582 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="/usr/bin/find"
4584 esac
4586 FIND=$ac_cv_path_FIND
4587 if test -n "$FIND"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4589 $as_echo "$FIND" >&6; }
4590 else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4597 if test ! -x "$FIND"; then
4598 as_fn_error $? "cannot find a valid 'find' command." "$LINENO" 5
4600 find=$FIND
4603 if test -z "$WHICH"; then
4604 # Extract the first word of "which", so it can be a program name with args.
4605 set dummy which; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_path_WHICH+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 case $WHICH in
4612 [\\/]* | ?:[\\/]*)
4613 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4627 done
4628 done
4629 IFS=$as_save_IFS
4631 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4633 esac
4635 WHICH=$ac_cv_path_WHICH
4636 if test -n "$WHICH"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4638 $as_echo "$WHICH" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4646 if test ! -x "$WHICH"; then
4647 as_fn_error $? "cannot find a valid 'which' command." "$LINENO" 5
4649 which=$WHICH
4652 for ac_prog in flex lex
4654 # Extract the first word of "$ac_prog", so it can be a program name with args.
4655 set dummy $ac_prog; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if ${ac_cv_prog_LEX+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 if test -n "$LEX"; then
4662 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_LEX="$ac_prog"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4675 done
4676 done
4677 IFS=$as_save_IFS
4681 LEX=$ac_cv_prog_LEX
4682 if test -n "$LEX"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4684 $as_echo "$LEX" >&6; }
4685 else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687 $as_echo "no" >&6; }
4691 test -n "$LEX" && break
4692 done
4693 test -n "$LEX" || LEX=":"
4695 if test "x$LEX" != "x:"; then
4696 cat >conftest.l <<_ACEOF
4698 a { ECHO; }
4699 b { REJECT; }
4700 c { yymore (); }
4701 d { yyless (1); }
4702 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4703 yyless ((input () != 0)); }
4704 f { unput (yytext[0]); }
4705 . { BEGIN INITIAL; }
4707 #ifdef YYTEXT_POINTER
4708 extern char *yytext;
4709 #endif
4711 main (void)
4713 return ! yylex () + ! yywrap ();
4715 _ACEOF
4716 { { ac_try="$LEX conftest.l"
4717 case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4722 $as_echo "$ac_try_echo"; } >&5
4723 (eval "$LEX conftest.l") 2>&5
4724 ac_status=$?
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; }
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4728 $as_echo_n "checking lex output file root... " >&6; }
4729 if ${ac_cv_prog_lex_root+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4733 if test -f lex.yy.c; then
4734 ac_cv_prog_lex_root=lex.yy
4735 elif test -f lexyy.c; then
4736 ac_cv_prog_lex_root=lexyy
4737 else
4738 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4742 $as_echo "$ac_cv_prog_lex_root" >&6; }
4743 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4745 if test -z "${LEXLIB+set}"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4747 $as_echo_n "checking lex library... " >&6; }
4748 if ${ac_cv_lib_lex+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4752 ac_save_LIBS=$LIBS
4753 ac_cv_lib_lex='none needed'
4754 for ac_lib in '' -lfl -ll; do
4755 LIBS="$ac_lib $ac_save_LIBS"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 `cat $LEX_OUTPUT_ROOT.c`
4759 _ACEOF
4760 if ac_fn_c_try_link "$LINENO"; then :
4761 ac_cv_lib_lex=$ac_lib
4763 rm -f core conftest.err conftest.$ac_objext \
4764 conftest$ac_exeext conftest.$ac_ext
4765 test "$ac_cv_lib_lex" != 'none needed' && break
4766 done
4767 LIBS=$ac_save_LIBS
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4771 $as_echo "$ac_cv_lib_lex" >&6; }
4772 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4777 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4778 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 # POSIX says lex can declare yytext either as a pointer or an array; the
4782 # default is implementation-dependent. Figure out which it is, since
4783 # not all implementations provide the %pointer and %array declarations.
4784 ac_cv_prog_lex_yytext_pointer=no
4785 ac_save_LIBS=$LIBS
4786 LIBS="$LEXLIB $ac_save_LIBS"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4790 #define YYTEXT_POINTER 1
4791 `cat $LEX_OUTPUT_ROOT.c`
4792 _ACEOF
4793 if ac_fn_c_try_link "$LINENO"; then :
4794 ac_cv_prog_lex_yytext_pointer=yes
4796 rm -f core conftest.err conftest.$ac_objext \
4797 conftest$ac_exeext conftest.$ac_ext
4798 LIBS=$ac_save_LIBS
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4802 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4803 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4805 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4808 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4811 lex=`$echo $LEX | awk '{print $1}'`
4812 lex=`$which "$lex"`
4813 if test ! -x "$lex"; then
4814 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4816 lex=$LEX
4819 for ac_prog in 'bison -y' byacc
4821 # Extract the first word of "$ac_prog", so it can be a program name with args.
4822 set dummy $ac_prog; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if ${ac_cv_prog_YACC+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 if test -n "$YACC"; then
4829 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_YACC="$ac_prog"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4842 done
4843 done
4844 IFS=$as_save_IFS
4848 YACC=$ac_cv_prog_YACC
4849 if test -n "$YACC"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4851 $as_echo "$YACC" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4858 test -n "$YACC" && break
4859 done
4860 test -n "$YACC" || YACC="yacc"
4862 yacc=`$echo $YACC | awk '{print $1}'`
4863 yacc=`$which "$yacc"`
4864 if test ! -x "$yacc"; then
4865 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4867 yacc=$YACC
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4871 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4872 if test $target_os = mingw; then
4873 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4875 if test -x $d/sort; then
4876 sort=$d/sort
4877 break
4879 done
4880 else
4881 sort=`$which sort`
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4884 $as_echo "$sort" >&6; }
4885 $sort -n </dev/null
4886 if test $? != 0
4887 then
4888 echo
4889 echo "FATAL ERROR: $sort -n failed!"
4890 rm -rf conftest conftest.*
4891 exit 1
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4896 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4897 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4898 then
4899 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4900 then
4901 echo_n= echo_c=
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4903 $as_echo "neither?" >&6; }
4904 else
4905 echo_n=-n echo_c=
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4907 $as_echo " -n" >&6; }
4909 else
4910 echo_n= echo_c='\c'
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4912 $as_echo "backslash-c" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4918 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4919 if ${ac_cv_path_GREP+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -z "$GREP"; then
4923 ac_path_GREP_found=false
4924 # Loop through the user's path and test for each of PROGNAME-LIST
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_prog in grep ggrep; do
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4933 as_fn_executable_p "$ac_path_GREP" || continue
4934 # Check for GNU ac_path_GREP and select it if it is found.
4935 # Check for GNU $ac_path_GREP
4936 case `"$ac_path_GREP" --version 2>&1` in
4937 *GNU*)
4938 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4940 ac_count=0
4941 $as_echo_n 0123456789 >"conftest.in"
4942 while :
4944 cat "conftest.in" "conftest.in" >"conftest.tmp"
4945 mv "conftest.tmp" "conftest.in"
4946 cp "conftest.in" "conftest.nl"
4947 $as_echo 'GREP' >> "conftest.nl"
4948 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4950 as_fn_arith $ac_count + 1 && ac_count=$as_val
4951 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4952 # Best one so far, save it but keep looking for a better one
4953 ac_cv_path_GREP="$ac_path_GREP"
4954 ac_path_GREP_max=$ac_count
4956 # 10*(2^10) chars as input seems more than enough
4957 test $ac_count -gt 10 && break
4958 done
4959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4960 esac
4962 $ac_path_GREP_found && break 3
4963 done
4964 done
4965 done
4966 IFS=$as_save_IFS
4967 if test -z "$ac_cv_path_GREP"; then
4968 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4970 else
4971 ac_cv_path_GREP=$GREP
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4976 $as_echo "$ac_cv_path_GREP" >&6; }
4977 GREP="$ac_cv_path_GREP"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4981 $as_echo_n "checking for egrep... " >&6; }
4982 if ${ac_cv_path_EGREP+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4986 then ac_cv_path_EGREP="$GREP -E"
4987 else
4988 if test -z "$EGREP"; then
4989 ac_path_EGREP_found=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_prog in egrep; do
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4999 as_fn_executable_p "$ac_path_EGREP" || continue
5000 # Check for GNU ac_path_EGREP and select it if it is found.
5001 # Check for GNU $ac_path_EGREP
5002 case `"$ac_path_EGREP" --version 2>&1` in
5003 *GNU*)
5004 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5006 ac_count=0
5007 $as_echo_n 0123456789 >"conftest.in"
5008 while :
5010 cat "conftest.in" "conftest.in" >"conftest.tmp"
5011 mv "conftest.tmp" "conftest.in"
5012 cp "conftest.in" "conftest.nl"
5013 $as_echo 'EGREP' >> "conftest.nl"
5014 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016 as_fn_arith $ac_count + 1 && ac_count=$as_val
5017 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5018 # Best one so far, save it but keep looking for a better one
5019 ac_cv_path_EGREP="$ac_path_EGREP"
5020 ac_path_EGREP_max=$ac_count
5022 # 10*(2^10) chars as input seems more than enough
5023 test $ac_count -gt 10 && break
5024 done
5025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026 esac
5028 $ac_path_EGREP_found && break 3
5029 done
5030 done
5031 done
5032 IFS=$as_save_IFS
5033 if test -z "$ac_cv_path_EGREP"; then
5034 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5036 else
5037 ac_cv_path_EGREP=$EGREP
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5043 $as_echo "$ac_cv_path_EGREP" >&6; }
5044 EGREP="$ac_cv_path_EGREP"
5048 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5049 then
5050 enable_probes=true
5051 for ac_prog in dtrace
5053 # Extract the first word of "$ac_prog", so it can be a program name with args.
5054 set dummy $ac_prog; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_DTRACE+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -n "$DTRACE"; then
5061 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_DTRACE="$ac_prog"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5074 done
5075 done
5076 IFS=$as_save_IFS
5080 DTRACE=$ac_cv_prog_DTRACE
5081 if test -n "$DTRACE"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5083 $as_echo "$DTRACE" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5090 test -n "$DTRACE" && break
5091 done
5093 if test -z "$DTRACE"
5094 then
5095 if test "$do_probes" = "yes"
5096 then
5097 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5099 enable_probes=false
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5107 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5108 # On Suns, sometimes $CPP names a directory.
5109 if test -n "$CPP" && test -d "$CPP"; then
5110 CPP=
5112 if test -z "$CPP"; then
5113 if ${ac_cv_prog_CPP+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 # Double quotes because CPP needs to be expanded
5117 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5119 ac_preproc_ok=false
5120 for ac_c_preproc_warn_flag in '' yes
5122 # Use a header file that comes with gcc, so configuring glibc
5123 # with a fresh cross-compiler works.
5124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125 # <limits.h> exists even on freestanding compilers.
5126 # On the NeXT, cc -E runs the code through the compiler's parser,
5127 # not just through cpp. "Syntax error" is here to catch this case.
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #ifdef __STDC__
5131 # include <limits.h>
5132 #else
5133 # include <assert.h>
5134 #endif
5135 Syntax error
5136 _ACEOF
5137 if ac_fn_c_try_cpp "$LINENO"; then :
5139 else
5140 # Broken: fails on valid input.
5141 continue
5143 rm -f conftest.err conftest.i conftest.$ac_ext
5145 # OK, works on sane cases. Now check whether nonexistent headers
5146 # can be detected and how.
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149 #include <ac_nonexistent.h>
5150 _ACEOF
5151 if ac_fn_c_try_cpp "$LINENO"; then :
5152 # Broken: success on invalid input.
5153 continue
5154 else
5155 # Passes both tests.
5156 ac_preproc_ok=:
5157 break
5159 rm -f conftest.err conftest.i conftest.$ac_ext
5161 done
5162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5163 rm -f conftest.i conftest.err conftest.$ac_ext
5164 if $ac_preproc_ok; then :
5165 break
5168 done
5169 ac_cv_prog_CPP=$CPP
5172 CPP=$ac_cv_prog_CPP
5173 else
5174 ac_cv_prog_CPP=$CPP
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5177 $as_echo "$CPP" >&6; }
5178 ac_preproc_ok=false
5179 for ac_c_preproc_warn_flag in '' yes
5181 # Use a header file that comes with gcc, so configuring glibc
5182 # with a fresh cross-compiler works.
5183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5184 # <limits.h> exists even on freestanding compilers.
5185 # On the NeXT, cc -E runs the code through the compiler's parser,
5186 # not just through cpp. "Syntax error" is here to catch this case.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #ifdef __STDC__
5190 # include <limits.h>
5191 #else
5192 # include <assert.h>
5193 #endif
5194 Syntax error
5195 _ACEOF
5196 if ac_fn_c_try_cpp "$LINENO"; then :
5198 else
5199 # Broken: fails on valid input.
5200 continue
5202 rm -f conftest.err conftest.i conftest.$ac_ext
5204 # OK, works on sane cases. Now check whether nonexistent headers
5205 # can be detected and how.
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 #include <ac_nonexistent.h>
5209 _ACEOF
5210 if ac_fn_c_try_cpp "$LINENO"; then :
5211 # Broken: success on invalid input.
5212 continue
5213 else
5214 # Passes both tests.
5215 ac_preproc_ok=:
5216 break
5218 rm -f conftest.err conftest.i conftest.$ac_ext
5220 done
5221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5222 rm -f conftest.i conftest.err conftest.$ac_ext
5223 if $ac_preproc_ok; then :
5225 else
5226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5228 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5229 See \`config.log' for more details" "$LINENO" 5; }
5232 ac_ext=c
5233 ac_cpp='$CPP $CPPFLAGS'
5234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5240 $as_echo_n "checking for ANSI C header files... " >&6; }
5241 if ${ac_cv_header_stdc+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 #include <stdlib.h>
5247 #include <stdarg.h>
5248 #include <string.h>
5249 #include <float.h>
5252 main ()
5256 return 0;
5258 _ACEOF
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260 ac_cv_header_stdc=yes
5261 else
5262 ac_cv_header_stdc=no
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 if test $ac_cv_header_stdc = yes; then
5267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 #include <string.h>
5272 _ACEOF
5273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274 $EGREP "memchr" >/dev/null 2>&1; then :
5276 else
5277 ac_cv_header_stdc=no
5279 rm -f conftest*
5283 if test $ac_cv_header_stdc = yes; then
5284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #include <stdlib.h>
5289 _ACEOF
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "free" >/dev/null 2>&1; then :
5293 else
5294 ac_cv_header_stdc=no
5296 rm -f conftest*
5300 if test $ac_cv_header_stdc = yes; then
5301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5302 if test "$cross_compiling" = yes; then :
5304 else
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 #include <ctype.h>
5308 #include <stdlib.h>
5309 #if ((' ' & 0x0FF) == 0x020)
5310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5312 #else
5313 # define ISLOWER(c) \
5314 (('a' <= (c) && (c) <= 'i') \
5315 || ('j' <= (c) && (c) <= 'r') \
5316 || ('s' <= (c) && (c) <= 'z'))
5317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5318 #endif
5320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5322 main ()
5324 int i;
5325 for (i = 0; i < 256; i++)
5326 if (XOR (islower (i), ISLOWER (i))
5327 || toupper (i) != TOUPPER (i))
5328 return 2;
5329 return 0;
5331 _ACEOF
5332 if ac_fn_c_try_run "$LINENO"; then :
5334 else
5335 ac_cv_header_stdc=no
5337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5338 conftest.$ac_objext conftest.beam conftest.$ac_ext
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5344 $as_echo "$ac_cv_header_stdc" >&6; }
5345 if test $ac_cv_header_stdc = yes; then
5347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5353 inttypes.h stdint.h unistd.h
5354 do :
5355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 _ACEOF
5365 done
5368 for ac_header in sys/sdt.h
5369 do :
5370 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5371 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
5372 cat >>confdefs.h <<_ACEOF
5373 #define HAVE_SYS_SDT_H 1
5374 _ACEOF
5376 if $enable_probes = true
5377 then
5378 if test $target_os = kfreebsd
5379 then
5380 enable_probes=false
5381 elif test $target_os = freebsd
5382 then
5383 rm -f conftest.d conftest.h
5384 cat <<End-of-File >conftest.d
5385 provider eek {
5386 probe urk(int);
5388 End-of-File
5389 if dtrace -s conftest.d -h >/dev/null 2>&1
5390 then
5391 if test ! -f conftest.h
5392 then
5393 enable_probes=false
5394 if test "$do_probes" = "yes"
5395 then
5396 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5399 else
5400 enable_probes=false
5401 if test "$do_probes" = "yes"
5402 then
5403 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5409 else
5411 enable_probes=false
5412 if test "$do_probes" = "yes"
5413 then
5414 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5419 done
5422 if test "$enable_probes" = "true"
5423 then
5425 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5432 if test "x$do_discovery" != "xno"; then :
5434 # on Mac OS X, dns_sd.h
5436 # on Linux, aloha Avahi
5437 enable_avahi=true
5439 pkg_failed=no
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5441 $as_echo_n "checking for avahi... " >&6; }
5443 if test -n "$avahi_CFLAGS"; then
5444 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
5445 elif test -n "$PKG_CONFIG"; then
5446 if test -n "$PKG_CONFIG" && \
5447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5448 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5449 ac_status=$?
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; then
5452 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5453 test "x$?" != "x0" && pkg_failed=yes
5454 else
5455 pkg_failed=yes
5457 else
5458 pkg_failed=untried
5460 if test -n "$avahi_LIBS"; then
5461 pkg_cv_avahi_LIBS="$avahi_LIBS"
5462 elif test -n "$PKG_CONFIG"; then
5463 if test -n "$PKG_CONFIG" && \
5464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5465 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5466 ac_status=$?
5467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468 test $ac_status = 0; }; then
5469 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5470 test "x$?" != "x0" && pkg_failed=yes
5471 else
5472 pkg_failed=yes
5474 else
5475 pkg_failed=untried
5480 if test $pkg_failed = yes; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5484 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5485 _pkg_short_errors_supported=yes
5486 else
5487 _pkg_short_errors_supported=no
5489 if test $_pkg_short_errors_supported = yes; then
5490 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5491 else
5492 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5494 # Put the nasty error message in config.log where it belongs
5495 echo "$avahi_PKG_ERRORS" >&5
5497 enable_avahi=false
5498 elif test $pkg_failed = untried; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5501 enable_avahi=false
5502 else
5503 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
5504 avahi_LIBS=$pkg_cv_avahi_LIBS
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5506 $as_echo "yes" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5508 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5509 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 ac_check_lib_save_LIBS=$LIBS
5513 LIBS="-lavahi-client $LIBS"
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5517 /* Override any GCC internal prototype to avoid an error.
5518 Use char because int might match the return type of a GCC
5519 builtin and then its argument prototype would still apply. */
5520 #ifdef __cplusplus
5521 extern "C"
5522 #endif
5523 char avahi_client_new ();
5525 main ()
5527 return avahi_client_new ();
5529 return 0;
5531 _ACEOF
5532 if ac_fn_c_try_link "$LINENO"; then :
5533 ac_cv_lib_avahi_client_avahi_client_new=yes
5534 else
5535 ac_cv_lib_avahi_client_avahi_client_new=no
5537 rm -f core conftest.err conftest.$ac_objext \
5538 conftest$ac_exeext conftest.$ac_ext
5539 LIBS=$ac_check_lib_save_LIBS
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5542 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5543 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
5544 lib_for_avahi="-lavahi-common -lavahi-client"
5545 else
5546 enable_avahi=false
5551 for ac_header in avahi-client/publish.h
5552 do :
5553 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5554 if test "x$ac_cv_header_avahi_client_publish_h" = xyes; then :
5555 cat >>confdefs.h <<_ACEOF
5556 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5557 _ACEOF
5559 else
5560 enable_avahi=false
5563 done
5565 for ac_header in avahi-common/alternative.h
5566 do :
5567 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5568 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes; then :
5569 cat >>confdefs.h <<_ACEOF
5570 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5571 _ACEOF
5573 else
5574 enable_avahi=false
5577 done
5580 if test "$enable_avahi" = "true"
5581 then
5585 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5587 enable_discovery=true
5590 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5591 then
5592 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5594 if test "$enable_discovery" = "true"
5595 then
5597 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5605 enable_systemd=false
5606 if test "x$do_systemd" != "xno"; then :
5608 enable_systemd=true
5611 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5612 pkg_cv_SYSTEMD_SYSTEMUNITDIR="$SYSTEMD_SYSTEMUNITDIR"
5613 elif test -n "$PKG_CONFIG"; then
5614 if test -n "$PKG_CONFIG" && \
5615 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5616 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5617 ac_status=$?
5618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5619 test $ac_status = 0; }; then
5620 pkg_cv_SYSTEMD_SYSTEMUNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5621 test "x$?" != "x0" && pkg_failed=yes
5622 else
5623 pkg_failed=yes
5625 else
5626 pkg_failed=untried
5628 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5630 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5631 enable_systemd=false
5632 else
5633 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5636 if test -z "$pcp_systemdunit_dir"
5637 then
5638 if test "$do_systemd" = "yes"
5639 then
5640 as_fn_error $? "cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5642 enable_systemd=false
5648 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5649 # targets a build for non-system directories such as /usr/local.
5650 # AC_PREFIX_DEFAULT([])
5652 . ./VERSION.pcp
5653 PACKAGE_VERSION=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5660 if test -z "$PACKAGE_BUILD_DATE" ; then
5661 PACKAGE_BUILD_DATE=`date +%Y-%m-%d`
5665 if test -z "$PACKAGE_DISTRIBUTION" ; then
5666 PACKAGE_DISTRIBUTION=$target_distro
5670 pm_version_current=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5673 ac_config_headers="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5675 ac_config_files="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5677 cat >confcache <<\_ACEOF
5678 # This file is a shell script that caches the results of configure
5679 # tests run on this system so they can be shared between configure
5680 # scripts and configure runs, see configure's option --config-cache.
5681 # It is not useful on other systems. If it contains results you don't
5682 # want to keep, you may remove or edit it.
5684 # config.status only pays attention to the cache file if you give it
5685 # the --recheck option to rerun configure.
5687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5689 # following values.
5691 _ACEOF
5693 # The following way of writing the cache mishandles newlines in values,
5694 # but we know of no workaround that is simple, portable, and efficient.
5695 # So, we kill variables containing newlines.
5696 # Ultrix sh set writes to stderr and can't be redirected directly,
5697 # and sets the high bit in the cache file unless we assign to the vars.
5699 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5700 eval ac_val=\$$ac_var
5701 case $ac_val in #(
5702 *${as_nl}*)
5703 case $ac_var in #(
5704 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5706 esac
5707 case $ac_var in #(
5708 _ | IFS | as_nl) ;; #(
5709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5710 *) { eval $ac_var=; unset $ac_var;} ;;
5711 esac ;;
5712 esac
5713 done
5715 (set) 2>&1 |
5716 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5717 *${as_nl}ac_space=\ *)
5718 # `set' does not quote correctly, so add quotes: double-quote
5719 # substitution turns \\\\ into \\, and sed turns \\ into \.
5720 sed -n \
5721 "s/'/'\\\\''/g;
5722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5723 ;; #(
5725 # `set' quotes correctly as required by POSIX, so do not add quotes.
5726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5728 esac |
5729 sort
5731 sed '
5732 /^ac_cv_env_/b end
5733 t clear
5734 :clear
5735 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5736 t end
5737 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5738 :end' >>confcache
5739 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5740 if test -w "$cache_file"; then
5741 if test "x$cache_file" != "x/dev/null"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5743 $as_echo "$as_me: updating cache $cache_file" >&6;}
5744 if test ! -f "$cache_file" || test -h "$cache_file"; then
5745 cat confcache >"$cache_file"
5746 else
5747 case $cache_file in #(
5748 */* | ?:*)
5749 mv -f confcache "$cache_file"$$ &&
5750 mv -f "$cache_file"$$ "$cache_file" ;; #(
5752 mv -f confcache "$cache_file" ;;
5753 esac
5756 else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5758 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5761 rm -f confcache
5763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5764 # Let make expand exec_prefix.
5765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5767 DEFS=-DHAVE_CONFIG_H
5769 ac_libobjs=
5770 ac_ltlibobjs=
5772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5773 # 1. Remove the extension, and $U if already installed.
5774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5775 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5777 # will be set to the directory where LIBOBJS objects are built.
5778 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5779 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5780 done
5781 LIBOBJS=$ac_libobjs
5783 LTLIBOBJS=$ac_ltlibobjs
5787 : "${CONFIG_STATUS=./config.status}"
5788 ac_write_fail=0
5789 ac_clean_files_save=$ac_clean_files
5790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5792 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5793 as_write_fail=0
5794 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5795 #! $SHELL
5796 # Generated by $as_me.
5797 # Run this file to recreate the current configuration.
5798 # Compiler output produced by configure, useful for debugging
5799 # configure, is in config.log if it exists.
5801 debug=false
5802 ac_cs_recheck=false
5803 ac_cs_silent=false
5805 SHELL=\${CONFIG_SHELL-$SHELL}
5806 export SHELL
5807 _ASEOF
5808 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5809 ## -------------------- ##
5810 ## M4sh Initialization. ##
5811 ## -------------------- ##
5813 # Be more Bourne compatible
5814 DUALCASE=1; export DUALCASE # for MKS sh
5815 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5816 emulate sh
5817 NULLCMD=:
5818 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5819 # is contrary to our usage. Disable this feature.
5820 alias -g '${1+"$@"}'='"$@"'
5821 setopt NO_GLOB_SUBST
5822 else
5823 case `(set -o) 2>/dev/null` in #(
5824 *posix*) :
5825 set -o posix ;; #(
5826 *) :
5828 esac
5832 as_nl='
5834 export as_nl
5835 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5836 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5837 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5839 # Prefer a ksh shell builtin over an external printf program on Solaris,
5840 # but without wasting forks for bash or zsh.
5841 if test -z "$BASH_VERSION$ZSH_VERSION" \
5842 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5843 as_echo='print -r --'
5844 as_echo_n='print -rn --'
5845 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5846 as_echo='printf %s\n'
5847 as_echo_n='printf %s'
5848 else
5849 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5850 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5851 as_echo_n='/usr/ucb/echo -n'
5852 else
5853 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5854 as_echo_n_body='eval
5855 arg=$1;
5856 case $arg in #(
5857 *"$as_nl"*)
5858 expr "X$arg" : "X\\(.*\\)$as_nl";
5859 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5860 esac;
5861 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5863 export as_echo_n_body
5864 as_echo_n='sh -c $as_echo_n_body as_echo'
5866 export as_echo_body
5867 as_echo='sh -c $as_echo_body as_echo'
5870 # The user is always right.
5871 if test "${PATH_SEPARATOR+set}" != set; then
5872 PATH_SEPARATOR=:
5873 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5874 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5875 PATH_SEPARATOR=';'
5880 # IFS
5881 # We need space, tab and new line, in precisely that order. Quoting is
5882 # there to prevent editors from complaining about space-tab.
5883 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5884 # splitting by setting IFS to empty value.)
5885 IFS=" "" $as_nl"
5887 # Find who we are. Look in the path if we contain no directory separator.
5888 as_myself=
5889 case $0 in #((
5890 *[\\/]* ) as_myself=$0 ;;
5891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
5896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5897 done
5898 IFS=$as_save_IFS
5901 esac
5902 # We did not find ourselves, most probably we were run as `sh COMMAND'
5903 # in which case we are not to be found in the path.
5904 if test "x$as_myself" = x; then
5905 as_myself=$0
5907 if test ! -f "$as_myself"; then
5908 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5909 exit 1
5912 # Unset variables that we do not need and which cause bugs (e.g. in
5913 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5914 # suppresses any "Segmentation fault" message there. '((' could
5915 # trigger a bug in pdksh 5.2.14.
5916 for as_var in BASH_ENV ENV MAIL MAILPATH
5917 do eval test x\${$as_var+set} = xset \
5918 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5919 done
5920 PS1='$ '
5921 PS2='> '
5922 PS4='+ '
5924 # NLS nuisances.
5925 LC_ALL=C
5926 export LC_ALL
5927 LANGUAGE=C
5928 export LANGUAGE
5930 # CDPATH.
5931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5934 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5935 # ----------------------------------------
5936 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5937 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5938 # script with STATUS, using 1 if that was 0.
5939 as_fn_error ()
5941 as_status=$1; test $as_status -eq 0 && as_status=1
5942 if test "$4"; then
5943 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5944 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5946 $as_echo "$as_me: error: $2" >&2
5947 as_fn_exit $as_status
5948 } # as_fn_error
5951 # as_fn_set_status STATUS
5952 # -----------------------
5953 # Set $? to STATUS, without forking.
5954 as_fn_set_status ()
5956 return $1
5957 } # as_fn_set_status
5959 # as_fn_exit STATUS
5960 # -----------------
5961 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5962 as_fn_exit ()
5964 set +e
5965 as_fn_set_status $1
5966 exit $1
5967 } # as_fn_exit
5969 # as_fn_unset VAR
5970 # ---------------
5971 # Portably unset VAR.
5972 as_fn_unset ()
5974 { eval $1=; unset $1;}
5976 as_unset=as_fn_unset
5977 # as_fn_append VAR VALUE
5978 # ----------------------
5979 # Append the text in VALUE to the end of the definition contained in VAR. Take
5980 # advantage of any shell optimizations that allow amortized linear growth over
5981 # repeated appends, instead of the typical quadratic growth present in naive
5982 # implementations.
5983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5984 eval 'as_fn_append ()
5986 eval $1+=\$2
5988 else
5989 as_fn_append ()
5991 eval $1=\$$1\$2
5993 fi # as_fn_append
5995 # as_fn_arith ARG...
5996 # ------------------
5997 # Perform arithmetic evaluation on the ARGs, and store the result in the
5998 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5999 # must be portable across $(()) and expr.
6000 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6001 eval 'as_fn_arith ()
6003 as_val=$(( $* ))
6005 else
6006 as_fn_arith ()
6008 as_val=`expr "$@" || test $? -eq 1`
6010 fi # as_fn_arith
6013 if expr a : '\(a\)' >/dev/null 2>&1 &&
6014 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6015 as_expr=expr
6016 else
6017 as_expr=false
6020 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6021 as_basename=basename
6022 else
6023 as_basename=false
6026 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6027 as_dirname=dirname
6028 else
6029 as_dirname=false
6032 as_me=`$as_basename -- "$0" ||
6033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6034 X"$0" : 'X\(//\)$' \| \
6035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6036 $as_echo X/"$0" |
6037 sed '/^.*\/\([^/][^/]*\)\/*$/{
6038 s//\1/
6041 /^X\/\(\/\/\)$/{
6042 s//\1/
6045 /^X\/\(\/\).*/{
6046 s//\1/
6049 s/.*/./; q'`
6051 # Avoid depending upon Character Ranges.
6052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6055 as_cr_digits='0123456789'
6056 as_cr_alnum=$as_cr_Letters$as_cr_digits
6058 ECHO_C= ECHO_N= ECHO_T=
6059 case `echo -n x` in #(((((
6060 -n*)
6061 case `echo 'xy\c'` in
6062 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6063 xy) ECHO_C='\c';;
6064 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6065 ECHO_T=' ';;
6066 esac;;
6068 ECHO_N='-n';;
6069 esac
6071 rm -f conf$$ conf$$.exe conf$$.file
6072 if test -d conf$$.dir; then
6073 rm -f conf$$.dir/conf$$.file
6074 else
6075 rm -f conf$$.dir
6076 mkdir conf$$.dir 2>/dev/null
6078 if (echo >conf$$.file) 2>/dev/null; then
6079 if ln -s conf$$.file conf$$ 2>/dev/null; then
6080 as_ln_s='ln -s'
6081 # ... but there are two gotchas:
6082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6084 # In both cases, we have to default to `cp -pR'.
6085 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6086 as_ln_s='cp -pR'
6087 elif ln conf$$.file conf$$ 2>/dev/null; then
6088 as_ln_s=ln
6089 else
6090 as_ln_s='cp -pR'
6092 else
6093 as_ln_s='cp -pR'
6095 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6096 rmdir conf$$.dir 2>/dev/null
6099 # as_fn_mkdir_p
6100 # -------------
6101 # Create "$as_dir" as a directory, including parents if necessary.
6102 as_fn_mkdir_p ()
6105 case $as_dir in #(
6106 -*) as_dir=./$as_dir;;
6107 esac
6108 test -d "$as_dir" || eval $as_mkdir_p || {
6109 as_dirs=
6110 while :; do
6111 case $as_dir in #(
6112 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6113 *) as_qdir=$as_dir;;
6114 esac
6115 as_dirs="'$as_qdir' $as_dirs"
6116 as_dir=`$as_dirname -- "$as_dir" ||
6117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6118 X"$as_dir" : 'X\(//\)[^/]' \| \
6119 X"$as_dir" : 'X\(//\)$' \| \
6120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6121 $as_echo X"$as_dir" |
6122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6123 s//\1/
6126 /^X\(\/\/\)[^/].*/{
6127 s//\1/
6130 /^X\(\/\/\)$/{
6131 s//\1/
6134 /^X\(\/\).*/{
6135 s//\1/
6138 s/.*/./; q'`
6139 test -d "$as_dir" && break
6140 done
6141 test -z "$as_dirs" || eval "mkdir $as_dirs"
6142 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6145 } # as_fn_mkdir_p
6146 if mkdir -p . 2>/dev/null; then
6147 as_mkdir_p='mkdir -p "$as_dir"'
6148 else
6149 test -d ./-p && rmdir ./-p
6150 as_mkdir_p=false
6154 # as_fn_executable_p FILE
6155 # -----------------------
6156 # Test if FILE is an executable regular file.
6157 as_fn_executable_p ()
6159 test -f "$1" && test -x "$1"
6160 } # as_fn_executable_p
6161 as_test_x='test -x'
6162 as_executable_p=as_fn_executable_p
6164 # Sed expression to map a string onto a valid CPP name.
6165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6167 # Sed expression to map a string onto a valid variable name.
6168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6171 exec 6>&1
6172 ## ----------------------------------- ##
6173 ## Main body of $CONFIG_STATUS script. ##
6174 ## ----------------------------------- ##
6175 _ASEOF
6176 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6179 # Save the log message, to keep $0 and so on meaningful, and to
6180 # report actual input values of CONFIG_FILES etc. instead of their
6181 # values after options handling.
6182 ac_log="
6183 This file was extended by $as_me, which was
6184 generated by GNU Autoconf 2.69. Invocation command line was
6186 CONFIG_FILES = $CONFIG_FILES
6187 CONFIG_HEADERS = $CONFIG_HEADERS
6188 CONFIG_LINKS = $CONFIG_LINKS
6189 CONFIG_COMMANDS = $CONFIG_COMMANDS
6190 $ $0 $@
6192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6195 _ACEOF
6197 case $ac_config_files in *"
6198 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6199 esac
6201 case $ac_config_headers in *"
6202 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6203 esac
6206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6207 # Files that config.status was made for.
6208 config_files="$ac_config_files"
6209 config_headers="$ac_config_headers"
6211 _ACEOF
6213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6214 ac_cs_usage="\
6215 \`$as_me' instantiates files and other configuration actions
6216 from templates according to the current configuration. Unless the files
6217 and actions are specified as TAGs, all are instantiated by default.
6219 Usage: $0 [OPTION]... [TAG]...
6221 -h, --help print this help, then exit
6222 -V, --version print version number and configuration settings, then exit
6223 --config print configuration, then exit
6224 -q, --quiet, --silent
6225 do not print progress messages
6226 -d, --debug don't remove temporary files
6227 --recheck update $as_me by reconfiguring in the same conditions
6228 --file=FILE[:TEMPLATE]
6229 instantiate the configuration file FILE
6230 --header=FILE[:TEMPLATE]
6231 instantiate the configuration header FILE
6233 Configuration files:
6234 $config_files
6236 Configuration headers:
6237 $config_headers
6239 Report bugs to the package provider."
6241 _ACEOF
6242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6243 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6244 ac_cs_version="\\
6245 config.status
6246 configured by $0, generated by GNU Autoconf 2.69,
6247 with options \\"\$ac_cs_config\\"
6249 Copyright (C) 2012 Free Software Foundation, Inc.
6250 This config.status script is free software; the Free Software Foundation
6251 gives unlimited permission to copy, distribute and modify it."
6253 ac_pwd='$ac_pwd'
6254 srcdir='$srcdir'
6255 test -n "\$AWK" || AWK=awk
6256 _ACEOF
6258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6259 # The default lists apply if the user does not specify any file.
6260 ac_need_defaults=:
6261 while test $# != 0
6263 case $1 in
6264 --*=?*)
6265 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6266 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6267 ac_shift=:
6269 --*=)
6270 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6271 ac_optarg=
6272 ac_shift=:
6275 ac_option=$1
6276 ac_optarg=$2
6277 ac_shift=shift
6279 esac
6281 case $ac_option in
6282 # Handling of the options.
6283 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6284 ac_cs_recheck=: ;;
6285 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6286 $as_echo "$ac_cs_version"; exit ;;
6287 --config | --confi | --conf | --con | --co | --c )
6288 $as_echo "$ac_cs_config"; exit ;;
6289 --debug | --debu | --deb | --de | --d | -d )
6290 debug=: ;;
6291 --file | --fil | --fi | --f )
6292 $ac_shift
6293 case $ac_optarg in
6294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6295 '') as_fn_error $? "missing file argument" ;;
6296 esac
6297 as_fn_append CONFIG_FILES " '$ac_optarg'"
6298 ac_need_defaults=false;;
6299 --header | --heade | --head | --hea )
6300 $ac_shift
6301 case $ac_optarg in
6302 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6303 esac
6304 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6305 ac_need_defaults=false;;
6306 --he | --h)
6307 # Conflict between --help and --header
6308 as_fn_error $? "ambiguous option: \`$1'
6309 Try \`$0 --help' for more information.";;
6310 --help | --hel | -h )
6311 $as_echo "$ac_cs_usage"; exit ;;
6312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6313 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6314 ac_cs_silent=: ;;
6316 # This is an error.
6317 -*) as_fn_error $? "unrecognized option: \`$1'
6318 Try \`$0 --help' for more information." ;;
6320 *) as_fn_append ac_config_targets " $1"
6321 ac_need_defaults=false ;;
6323 esac
6324 shift
6325 done
6327 ac_configure_extra_args=
6329 if $ac_cs_silent; then
6330 exec 6>/dev/null
6331 ac_configure_extra_args="$ac_configure_extra_args --silent"
6334 _ACEOF
6335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6336 if \$ac_cs_recheck; then
6337 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6338 shift
6339 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6340 CONFIG_SHELL='$SHELL'
6341 export CONFIG_SHELL
6342 exec "\$@"
6345 _ACEOF
6346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6347 exec 5>>config.log
6349 echo
6350 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6351 ## Running $as_me. ##
6352 _ASBOX
6353 $as_echo "$ac_log"
6354 } >&5
6356 _ACEOF
6357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6358 _ACEOF
6360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6362 # Handling of arguments.
6363 for ac_config_target in $ac_config_targets
6365 case $ac_config_target in
6366 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6367 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6368 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6369 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6371 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6372 esac
6373 done
6376 # If the user did not use the arguments to specify the items to instantiate,
6377 # then the envvar interface is used. Set only those that are not.
6378 # We use the long form for the default assignment because of an extremely
6379 # bizarre bug on SunOS 4.1.3.
6380 if $ac_need_defaults; then
6381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6385 # Have a temporary directory for convenience. Make it in the build tree
6386 # simply because there is no reason against having it here, and in addition,
6387 # creating and moving files from /tmp can sometimes cause problems.
6388 # Hook for its removal unless debugging.
6389 # Note that there is a small window in which the directory will not be cleaned:
6390 # after its creation but before its name has been assigned to `$tmp'.
6391 $debug ||
6393 tmp= ac_tmp=
6394 trap 'exit_status=$?
6395 : "${ac_tmp:=$tmp}"
6396 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6398 trap 'as_fn_exit 1' 1 2 13 15
6400 # Create a (secure) tmp directory for tmp files.
6403 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6404 test -d "$tmp"
6405 } ||
6407 tmp=./conf$$-$RANDOM
6408 (umask 077 && mkdir "$tmp")
6409 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6410 ac_tmp=$tmp
6412 # Set up the scripts for CONFIG_FILES section.
6413 # No need to generate them if there are no CONFIG_FILES.
6414 # This happens for instance with `./config.status config.h'.
6415 if test -n "$CONFIG_FILES"; then
6418 ac_cr=`echo X | tr X '\015'`
6419 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6420 # But we know of no other shell where ac_cr would be empty at this
6421 # point, so we can use a bashism as a fallback.
6422 if test "x$ac_cr" = x; then
6423 eval ac_cr=\$\'\\r\'
6425 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6426 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6427 ac_cs_awk_cr='\\r'
6428 else
6429 ac_cs_awk_cr=$ac_cr
6432 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6433 _ACEOF
6437 echo "cat >conf$$subs.awk <<_ACEOF" &&
6438 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6439 echo "_ACEOF"
6440 } >conf$$subs.sh ||
6441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6442 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6443 ac_delim='%!_!# '
6444 for ac_last_try in false false false false false :; do
6445 . ./conf$$subs.sh ||
6446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6448 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6449 if test $ac_delim_n = $ac_delim_num; then
6450 break
6451 elif $ac_last_try; then
6452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6453 else
6454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6456 done
6457 rm -f conf$$subs.sh
6459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6460 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6461 _ACEOF
6462 sed -n '
6464 s/^/S["/; s/!.*/"]=/
6467 s/^[^!]*!//
6468 :repl
6469 t repl
6470 s/'"$ac_delim"'$//
6471 t delim
6474 s/\(.\{148\}\)..*/\1/
6475 t more1
6476 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6479 b repl
6480 :more1
6481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6484 s/.\{148\}//
6485 t nl
6486 :delim
6488 s/\(.\{148\}\)..*/\1/
6489 t more2
6490 s/["\\]/\\&/g; s/^/"/; s/$/"/
6493 :more2
6494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6497 s/.\{148\}//
6498 t delim
6499 ' <conf$$subs.awk | sed '
6500 /^[^""]/{
6502 s/\n//
6504 ' >>$CONFIG_STATUS || ac_write_fail=1
6505 rm -f conf$$subs.awk
6506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6507 _ACAWK
6508 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6509 for (key in S) S_is_set[key] = 1
6510 FS = "\a"
6514 line = $ 0
6515 nfields = split(line, field, "@")
6516 substed = 0
6517 len = length(field[1])
6518 for (i = 2; i < nfields; i++) {
6519 key = field[i]
6520 keylen = length(key)
6521 if (S_is_set[key]) {
6522 value = S[key]
6523 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6524 len += length(value) + length(field[++i])
6525 substed = 1
6526 } else
6527 len += 1 + keylen
6530 print line
6533 _ACAWK
6534 _ACEOF
6535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6536 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6537 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6538 else
6540 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6541 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6542 _ACEOF
6544 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6545 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6546 # trailing colons and then remove the whole line if VPATH becomes empty
6547 # (actually we leave an empty line to preserve line numbers).
6548 if test "x$srcdir" = x.; then
6549 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6551 s///
6552 s/^/:/
6553 s/[ ]*$/:/
6554 s/:\$(srcdir):/:/g
6555 s/:\${srcdir}:/:/g
6556 s/:@srcdir@:/:/g
6557 s/^:*//
6558 s/:*$//
6560 s/\(=[ ]*\).*/\1/
6562 s/\n//
6563 s/^[^=]*=[ ]*$//
6567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6568 fi # test -n "$CONFIG_FILES"
6570 # Set up the scripts for CONFIG_HEADERS section.
6571 # No need to generate them if there are no CONFIG_HEADERS.
6572 # This happens for instance with `./config.status Makefile'.
6573 if test -n "$CONFIG_HEADERS"; then
6574 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6575 BEGIN {
6576 _ACEOF
6578 # Transform confdefs.h into an awk script `defines.awk', embedded as
6579 # here-document in config.status, that substitutes the proper values into
6580 # config.h.in to produce config.h.
6582 # Create a delimiter string that does not exist in confdefs.h, to ease
6583 # handling of long lines.
6584 ac_delim='%!_!# '
6585 for ac_last_try in false false :; do
6586 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6587 if test -z "$ac_tt"; then
6588 break
6589 elif $ac_last_try; then
6590 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6591 else
6592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6594 done
6596 # For the awk script, D is an array of macro values keyed by name,
6597 # likewise P contains macro parameters if any. Preserve backslash
6598 # newline sequences.
6600 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6601 sed -n '
6602 s/.\{148\}/&'"$ac_delim"'/g
6603 t rset
6604 :rset
6605 s/^[ ]*#[ ]*define[ ][ ]*/ /
6606 t def
6608 :def
6609 s/\\$//
6610 t bsnl
6611 s/["\\]/\\&/g
6612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6613 D["\1"]=" \3"/p
6614 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6616 :bsnl
6617 s/["\\]/\\&/g
6618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6619 D["\1"]=" \3\\\\\\n"\\/p
6620 t cont
6621 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6622 t cont
6624 :cont
6626 s/.\{148\}/&'"$ac_delim"'/g
6627 t clear
6628 :clear
6629 s/\\$//
6630 t bsnlc
6631 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6633 :bsnlc
6634 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6635 b cont
6636 ' <confdefs.h | sed '
6637 s/'"$ac_delim"'/"\\\
6638 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6641 for (key in D) D_is_set[key] = 1
6642 FS = "\a"
6644 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6645 line = \$ 0
6646 split(line, arg, " ")
6647 if (arg[1] == "#") {
6648 defundef = arg[2]
6649 mac1 = arg[3]
6650 } else {
6651 defundef = substr(arg[1], 2)
6652 mac1 = arg[2]
6654 split(mac1, mac2, "(") #)
6655 macro = mac2[1]
6656 prefix = substr(line, 1, index(line, defundef) - 1)
6657 if (D_is_set[macro]) {
6658 # Preserve the white space surrounding the "#".
6659 print prefix "define", macro P[macro] D[macro]
6660 next
6661 } else {
6662 # Replace #undef with comments. This is necessary, for example,
6663 # in the case of _POSIX_SOURCE, which is predefined and required
6664 # on some systems where configure will not decide to define it.
6665 if (defundef == "undef") {
6666 print "/*", prefix defundef, macro, "*/"
6667 next
6671 { print }
6672 _ACAWK
6673 _ACEOF
6674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6675 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6676 fi # test -n "$CONFIG_HEADERS"
6679 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6680 shift
6681 for ac_tag
6683 case $ac_tag in
6684 :[FHLC]) ac_mode=$ac_tag; continue;;
6685 esac
6686 case $ac_mode$ac_tag in
6687 :[FHL]*:*);;
6688 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6689 :[FH]-) ac_tag=-:-;;
6690 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6691 esac
6692 ac_save_IFS=$IFS
6693 IFS=:
6694 set x $ac_tag
6695 IFS=$ac_save_IFS
6696 shift
6697 ac_file=$1
6698 shift
6700 case $ac_mode in
6701 :L) ac_source=$1;;
6702 :[FH])
6703 ac_file_inputs=
6704 for ac_f
6706 case $ac_f in
6707 -) ac_f="$ac_tmp/stdin";;
6708 *) # Look for the file first in the build tree, then in the source tree
6709 # (if the path is not absolute). The absolute path cannot be DOS-style,
6710 # because $ac_f cannot contain `:'.
6711 test -f "$ac_f" ||
6712 case $ac_f in
6713 [\\/$]*) false;;
6714 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6715 esac ||
6716 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6717 esac
6718 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6719 as_fn_append ac_file_inputs " '$ac_f'"
6720 done
6722 # Let's still pretend it is `configure' which instantiates (i.e., don't
6723 # use $as_me), people would be surprised to read:
6724 # /* config.h. Generated by config.status. */
6725 configure_input='Generated from '`
6726 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6727 `' by configure.'
6728 if test x"$ac_file" != x-; then
6729 configure_input="$ac_file. $configure_input"
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6731 $as_echo "$as_me: creating $ac_file" >&6;}
6733 # Neutralize special characters interpreted by sed in replacement strings.
6734 case $configure_input in #(
6735 *\&* | *\|* | *\\* )
6736 ac_sed_conf_input=`$as_echo "$configure_input" |
6737 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6738 *) ac_sed_conf_input=$configure_input;;
6739 esac
6741 case $ac_tag in
6742 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6744 esac
6746 esac
6748 ac_dir=`$as_dirname -- "$ac_file" ||
6749 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6750 X"$ac_file" : 'X\(//\)[^/]' \| \
6751 X"$ac_file" : 'X\(//\)$' \| \
6752 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6753 $as_echo X"$ac_file" |
6754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6755 s//\1/
6758 /^X\(\/\/\)[^/].*/{
6759 s//\1/
6762 /^X\(\/\/\)$/{
6763 s//\1/
6766 /^X\(\/\).*/{
6767 s//\1/
6770 s/.*/./; q'`
6771 as_dir="$ac_dir"; as_fn_mkdir_p
6772 ac_builddir=.
6774 case "$ac_dir" in
6775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6778 # A ".." for each directory in $ac_dir_suffix.
6779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6780 case $ac_top_builddir_sub in
6781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6783 esac ;;
6784 esac
6785 ac_abs_top_builddir=$ac_pwd
6786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6787 # for backward compatibility:
6788 ac_top_builddir=$ac_top_build_prefix
6790 case $srcdir in
6791 .) # We are building in place.
6792 ac_srcdir=.
6793 ac_top_srcdir=$ac_top_builddir_sub
6794 ac_abs_top_srcdir=$ac_pwd ;;
6795 [\\/]* | ?:[\\/]* ) # Absolute name.
6796 ac_srcdir=$srcdir$ac_dir_suffix;
6797 ac_top_srcdir=$srcdir
6798 ac_abs_top_srcdir=$srcdir ;;
6799 *) # Relative name.
6800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6801 ac_top_srcdir=$ac_top_build_prefix$srcdir
6802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6803 esac
6804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6807 case $ac_mode in
6810 # CONFIG_FILE
6813 _ACEOF
6815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6816 # If the template does not know about datarootdir, expand it.
6817 # FIXME: This hack should be removed a few years after 2.60.
6818 ac_datarootdir_hack=; ac_datarootdir_seen=
6819 ac_sed_dataroot='
6820 /datarootdir/ {
6824 /@datadir@/p
6825 /@docdir@/p
6826 /@infodir@/p
6827 /@localedir@/p
6828 /@mandir@/p'
6829 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6830 *datarootdir*) ac_datarootdir_seen=yes;;
6831 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6833 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6834 _ACEOF
6835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6836 ac_datarootdir_hack='
6837 s&@datadir@&$datadir&g
6838 s&@docdir@&$docdir&g
6839 s&@infodir@&$infodir&g
6840 s&@localedir@&$localedir&g
6841 s&@mandir@&$mandir&g
6842 s&\\\${datarootdir}&$datarootdir&g' ;;
6843 esac
6844 _ACEOF
6846 # Neutralize VPATH when `$srcdir' = `.'.
6847 # Shell code in configure.ac might set extrasub.
6848 # FIXME: do we really want to maintain this feature?
6849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6850 ac_sed_extra="$ac_vpsub
6851 $extrasub
6852 _ACEOF
6853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6856 s|@configure_input@|$ac_sed_conf_input|;t t
6857 s&@top_builddir@&$ac_top_builddir_sub&;t t
6858 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6859 s&@srcdir@&$ac_srcdir&;t t
6860 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6861 s&@top_srcdir@&$ac_top_srcdir&;t t
6862 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6863 s&@builddir@&$ac_builddir&;t t
6864 s&@abs_builddir@&$ac_abs_builddir&;t t
6865 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6866 $ac_datarootdir_hack
6868 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6869 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6872 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6874 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6876 which seems to be undefined. Please make sure it is defined" >&5
6877 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6878 which seems to be undefined. Please make sure it is defined" >&2;}
6880 rm -f "$ac_tmp/stdin"
6881 case $ac_file in
6882 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6883 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6884 esac \
6885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6889 # CONFIG_HEADER
6891 if test x"$ac_file" != x-; then
6893 $as_echo "/* $configure_input */" \
6894 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6895 } >"$ac_tmp/config.h" \
6896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6897 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6899 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6900 else
6901 rm -f "$ac_file"
6902 mv "$ac_tmp/config.h" "$ac_file" \
6903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6905 else
6906 $as_echo "/* $configure_input */" \
6907 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6908 || as_fn_error $? "could not create -" "$LINENO" 5
6913 esac
6915 done # for ac_tag
6918 as_fn_exit 0
6919 _ACEOF
6920 ac_clean_files=$ac_clean_files_save
6922 test $ac_write_fail = 0 ||
6923 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6926 # configure is writing to config.log, and then calls config.status.
6927 # config.status does its own redirection, appending to config.log.
6928 # Unfortunately, on DOS this fails, as config.log is still kept open
6929 # by configure, so config.status won't be able to write to it; its
6930 # output is simply discarded. So we exec the FD to /dev/null,
6931 # effectively closing config.log, so it can be properly (re)opened and
6932 # appended to by config.status. When coming back to configure, we
6933 # need to make the FD available again.
6934 if test "$no_create" != yes; then
6935 ac_cs_success=:
6936 ac_config_status_args=
6937 test "$silent" = yes &&
6938 ac_config_status_args="$ac_config_status_args --quiet"
6939 exec 5>/dev/null
6940 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6941 exec 5>>config.log
6942 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6943 # would make configure fail if this is the last instruction.
6944 $ac_cs_success || as_fn_exit 1
6946 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6948 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6952 for ac_prog in git
6954 # Extract the first word of "$ac_prog", so it can be a program name with args.
6955 set dummy $ac_prog; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_prog_GIT+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$GIT"; then
6962 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_GIT="$ac_prog"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6975 done
6976 done
6977 IFS=$as_save_IFS
6981 GIT=$ac_cv_prog_GIT
6982 if test -n "$GIT"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6984 $as_echo "$GIT" >&6; }
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6991 test -n "$GIT" && break
6992 done
6996 for ac_prog in python
6998 # Extract the first word of "$ac_prog", so it can be a program name with args.
6999 set dummy $ac_prog; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_PYTHON+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 if test -n "$PYTHON"; then
7006 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_PYTHON="$ac_prog"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7019 done
7020 done
7021 IFS=$as_save_IFS
7025 PYTHON=$ac_cv_prog_PYTHON
7026 if test -n "$PYTHON"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7028 $as_echo "$PYTHON" >&6; }
7029 else
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7035 test -n "$PYTHON" && break
7036 done
7037 test -n "$PYTHON" || PYTHON="python2.7"
7041 for ac_prog in python3
7043 # Extract the first word of "$ac_prog", so it can be a program name with args.
7044 set dummy $ac_prog; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_PYTHON3+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 if test -n "$PYTHON3"; then
7051 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_PYTHON3="$ac_prog"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7064 done
7065 done
7066 IFS=$as_save_IFS
7070 PYTHON3=$ac_cv_prog_PYTHON3
7071 if test -n "$PYTHON3"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7073 $as_echo "$PYTHON3" >&6; }
7074 else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7080 test -n "$PYTHON3" && break
7081 done
7082 test -n "$PYTHON3" || PYTHON3="python3.4"
7086 enable_python2=false
7087 if test "x$do_python" != "xno"; then :
7089 enable_python2=true
7090 if test -z "$PYTHON"
7091 then
7092 enable_python2=false
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7095 $as_echo_n "checking Python version... " >&6; }
7096 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 }'`
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7098 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7099 if test "$PY_MAJOR" -lt 2; then
7100 echo WARNING: Python version 2.6 or later does not seem to be installed.
7101 enable_python2=false
7102 else
7103 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7104 echo WARNING: Python version 2.$PY_MINOR is too old.
7105 echo Python version 2.6 or later is required for Python builds.
7106 enable_python2=false
7107 else
7108 for ac_header in python${PY_MAJOR}.${PY_MINOR}/Python.h
7109 do :
7110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7111 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7113 cat >>confdefs.h <<_ACEOF
7114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7115 _ACEOF
7117 else
7119 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7120 echo Cannot proceed with the Python $PY_MAJOR installation found.
7121 enable_python2=false
7125 done
7131 if test "$do_python" != "check" -a "$enable_python2" != "true"
7132 then
7133 as_fn_error $? "cannot enable Python - no supported version found" "$LINENO" 5
7139 enable_python3=false
7140 if test "x$do_python3" != "xno"; then :
7142 enable_python3=true
7143 if test -z "$PYTHON3"
7144 then
7145 enable_python3=false
7146 else
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7148 $as_echo_n "checking Python3 version... " >&6; }
7149 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 }'`
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7151 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7152 if test "$PY_MAJOR" -lt 3; then
7153 echo WARNING: Python version 3.3 or later does not seem to be installed.
7154 enable_python3=false
7155 else
7156 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7157 echo WARNING: Python version 3.$PY_MINOR is too old.
7158 echo Python version 3.3 or later is required for Python builds.
7159 enable_python3=false
7160 else
7161 for ac_header in python${PY_MAJOR}.${PY_MINOR}m/Python.h
7162 do :
7163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7164 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7165 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7166 cat >>confdefs.h <<_ACEOF
7167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7168 _ACEOF
7170 else
7172 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7173 echo Cannot proceed with the Python $PY_MAJOR installation found.
7174 enable_python3=false
7178 done
7184 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7185 then
7186 as_fn_error $? "cannot enable Python3 - no supported version found" "$LINENO" 5
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7193 $as_echo_n "checking for any python version... " >&6; }
7194 if test "$cross_compiling" = "yes"; then
7195 ans=$have_python
7196 echo "cross-compile -> \"$ans\"" >&5
7197 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7198 then
7199 have_python=true
7200 else
7201 have_python=false
7204 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7205 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }; fi
7208 if test "$enable_python3" = "true"
7209 then
7210 pcp_python_prog=$PYTHON3
7211 elif test "$enable_python2" = "true"
7212 then
7213 pcp_python_prog=$PYTHON
7214 else
7215 pcp_python_prog=""
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7221 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7222 if test -n ""
7223 then
7224 txt=""
7225 else
7226 txt="import jsonpointer"
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_jsonpointer=true
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 eval have_python_jsonpointer=false
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module setuptools" >&5
7243 $as_echo_n "checking for Python module setuptools... " >&6; }
7244 if test -n ""
7245 then
7246 txt=""
7247 else
7248 txt="import setuptools"
7250 $pcp_python_prog -c 'import sys;
7251 '"$txt" >>config.log 2>&1
7252 if test "$?" = 0
7253 then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7255 $as_echo "yes" >&6; }
7256 eval have_python_setuptools=true
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 eval have_python_setuptools=false
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module requests" >&5
7265 $as_echo_n "checking for Python module requests... " >&6; }
7266 if test -n ""
7267 then
7268 txt=""
7269 else
7270 txt="import requests"
7272 $pcp_python_prog -c 'import sys;
7273 '"$txt" >>config.log 2>&1
7274 if test "$?" = 0
7275 then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277 $as_echo "yes" >&6; }
7278 eval have_python_requests=true
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 eval have_python_requests=false
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7287 $as_echo_n "checking for Python module six... " >&6; }
7288 if test -n ""
7289 then
7290 txt=""
7291 else
7292 txt="import six"
7294 $pcp_python_prog -c 'import sys;
7295 '"$txt" >>config.log 2>&1
7296 if test "$?" = 0
7297 then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7299 $as_echo "yes" >&6; }
7300 eval have_python_six=true
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 eval have_python_six=false
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7310 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7311 pmda_json=false
7312 if test "x$do_pmdajson" = "xyes"; then :
7313 pmda_json=true
7315 if test "x$do_pmdajson" = "xcheck"; then :
7317 $have_python_jsonpointer && $have_python_six && pmda_json=true
7320 PMDA_JSON=$pmda_json
7322 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7323 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }; fi
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module libvirt" >&5
7327 $as_echo_n "checking for Python module libvirt... " >&6; }
7328 if test -n ""
7329 then
7330 txt=""
7331 else
7332 txt="import libvirt"
7334 $pcp_python_prog -c 'import sys;
7335 '"$txt" >>config.log 2>&1
7336 if test "$?" = 0
7337 then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7339 $as_echo "yes" >&6; }
7340 eval have_python_libvirt=true
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 eval have_python_libvirt=false
7349 for ac_prog in perl
7351 # Extract the first word of "$ac_prog", so it can be a program name with args.
7352 set dummy $ac_prog; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_PERL+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 if test -n "$PERL"; then
7359 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_PERL="$ac_prog"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7372 done
7373 done
7374 IFS=$as_save_IFS
7378 PERL=$ac_cv_prog_PERL
7379 if test -n "$PERL"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7381 $as_echo "$PERL" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7388 test -n "$PERL" && break
7389 done
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7394 $as_echo_n "checking for any perl version... " >&6; }
7395 if test "$cross_compiling" = "yes"; then
7396 ans=$have_perl
7397 echo "cross-compile -> \"$ans\"" >&5
7398 elif test -n "$PERL"
7399 then
7400 pcp_perl_prog=$PERL
7401 have_perl=true
7402 else
7403 pcp_perl_prog=""
7404 have_perl=false
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7409 $as_echo "$pcp_perl_prog" >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7412 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7413 pmda_snmp=false
7414 if test "x$do_pmdasnmp" = "xyes"; then :
7415 pmda_snmp=true
7417 if test "x$do_pmdasnmp" = "xcheck"; then :
7419 if test "$have_perl" = true
7420 then
7421 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7422 then
7423 pmda_snmp=true
7428 PMDA_SNMP=$pmda_snmp
7430 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7431 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }; fi
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7435 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7436 pmda_mysql=false
7437 if test "$have_perl" = true
7438 then
7439 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7440 then
7441 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7442 then
7443 pmda_mysql=true
7447 PMDA_MYSQL=$pmda_mysql
7449 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7450 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }; fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7454 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7455 pmda_postgresql=false
7456 if test "$have_perl" = true
7457 then
7458 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7459 then
7460 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7461 then
7462 pmda_postgresql=true
7466 PMDA_POSTGRESQL=$pmda_postgresql
7468 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7469 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }; fi
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7473 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7474 pmda_oracle=false
7475 if test "$have_perl" = true
7476 then
7477 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7478 then
7479 pmda_oracle=true
7482 PMDA_ORACLE=$pmda_oracle
7484 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7485 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }; fi
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7489 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7490 pmda_elasticsearch=false
7491 if test "$have_perl" = true
7492 then
7493 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7494 then
7495 pmda_elasticsearch=true
7498 PMDA_ELASTICSEARCH=$pmda_elasticsearch
7500 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7501 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }; fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7505 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7506 pmda_nginx=false
7507 if test "$have_perl" = true
7508 then
7509 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7510 then
7511 pmda_nginx=true
7514 PMDA_NGINX=$pmda_nginx
7516 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7517 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }; fi
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7521 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7522 pmda_activemq=false
7523 if test "$have_perl" = true
7524 then
7525 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7526 then
7527 pmda_activemq=true
7530 PMDA_ACTIVEMQ=$pmda_activemq
7532 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7533 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }; fi
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the libvirt PMDA should be included" >&5
7537 $as_echo_n "checking if the libvirt PMDA should be included... " >&6; }
7538 pmda_libvirt=false
7539 if test "$have_python" = true
7540 then
7541 if $pcp_python_prog -c "import libvirt" >/dev/null 2>&1
7542 then
7543 if $pcp_python_prog -c "import lxml" >/dev/null 2>&1
7544 then
7545 pmda_libvirt=true
7549 PMDA_LIBVIRT=$pmda_libvirt
7551 if $pmda_libvirt; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7552 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }; fi
7555 qmake=$QMAKE
7556 enable_qt=false
7557 qt_release=release
7558 if test "x$do_qt" != "xno"; then :
7560 enable_qt=true
7562 if test -z "$QMAKE"
7563 then
7564 for ac_prog in qmake-qt5 qmake-qt4 qmake
7566 # Extract the first word of "$ac_prog", so it can be a program name with args.
7567 set dummy $ac_prog; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_path_QMAKE+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 case $QMAKE in
7574 [\\/]* | ?:[\\/]*)
7575 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 as_dummy="$QTDIR/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib/qt5/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin:/usr/local/bin"
7580 for as_dir in $as_dummy
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7590 done
7591 done
7592 IFS=$as_save_IFS
7595 esac
7597 QMAKE=$ac_cv_path_QMAKE
7598 if test -n "$QMAKE"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7600 $as_echo "$QMAKE" >&6; }
7601 else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7607 test -n "$QMAKE" && break
7608 done
7610 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7612 qmake=$QMAKE
7613 if test -z "$QMAKE"
7614 then
7615 enable_qt=false
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7618 $as_echo_n "checking Qt version... " >&6; }
7619 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 }'`
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7621 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7622 if test "$QT_MAJOR" -lt 4; then
7623 echo WARNING: Qt version 4.4 or later does not seem to be installed.
7624 echo Cannot proceed with the Qt $QT_MAJOR installation found.
7625 enable_qt=false
7627 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7628 echo WARNING: Qt version 4.$QT_MINOR is too old.
7629 echo Qt version 4.4 or later is required for Qt builds.
7630 enable_qt=false
7634 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7635 then
7636 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7637 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7638 then
7639 enable_qt=false
7640 test "$do_qt" != "check" && \
7641 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7642 elif test "$do_qt" = "debug"
7643 then
7644 qt_release=debug
7645 enable_qt=true
7653 enable_qt3d=false
7654 if test "x$do_qt3d" != "xno"; then :
7656 if test -f /usr/include/Coin3/Inventor/Qt/SoQt.h
7657 then
7658 enable_qt3d=$enable_qt
7659 elif test -a "$do_qt3d" = "yes"
7660 then
7661 as_fn_error $? "cannot enable support for 3D scene graph API" "$LINENO" 5
7667 if test -z "$MAKE"
7668 then
7669 # Extract the first word of "gmake", so it can be a program name with args.
7670 set dummy gmake; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_path_MAKE+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 case $MAKE in
7677 [\\/]* | ?:[\\/]*)
7678 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7692 done
7693 done
7694 IFS=$as_save_IFS
7697 esac
7699 MAKE=$ac_cv_path_MAKE
7700 if test -n "$MAKE"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7702 $as_echo "$MAKE" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7709 if test -z "$MAKE"
7710 then
7711 # look elsewhere ...
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7713 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7714 for f in /usr/local/bin/gmake /usr/freeware/bin/gmake /usr/local/bin/make /opt/sfw/bin/gmake nowhere
7716 if test -x $f
7717 then
7718 MAKE=$f
7719 break
7721 done
7722 if test $f = nowhere
7723 then
7724 # Check if /usr/bin/make is any good
7725 mver=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7726 if test "$mver" != "GNU Make"
7727 then
7728 echo
7729 echo "FATAL ERROR: could not find GNU make anywhere"
7730 echo "You need to set \$MAKE as the full path to GNU make "
7731 echo "in the environment."
7732 rm -rf conftest conftest.*
7733 exit 1
7734 else
7735 MAKE=/usr/bin/make
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7739 $as_echo "$MAKE" >&6; }
7742 make=$MAKE
7745 if test -z "$CPP"; then
7746 ac_ext=c
7747 ac_cpp='$CPP $CPPFLAGS'
7748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7752 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7753 # On Suns, sometimes $CPP names a directory.
7754 if test -n "$CPP" && test -d "$CPP"; then
7755 CPP=
7757 if test -z "$CPP"; then
7758 if ${ac_cv_prog_CPP+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 # Double quotes because CPP needs to be expanded
7762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7764 ac_preproc_ok=false
7765 for ac_c_preproc_warn_flag in '' yes
7767 # Use a header file that comes with gcc, so configuring glibc
7768 # with a fresh cross-compiler works.
7769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7770 # <limits.h> exists even on freestanding compilers.
7771 # On the NeXT, cc -E runs the code through the compiler's parser,
7772 # not just through cpp. "Syntax error" is here to catch this case.
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7775 #ifdef __STDC__
7776 # include <limits.h>
7777 #else
7778 # include <assert.h>
7779 #endif
7780 Syntax error
7781 _ACEOF
7782 if ac_fn_c_try_cpp "$LINENO"; then :
7784 else
7785 # Broken: fails on valid input.
7786 continue
7788 rm -f conftest.err conftest.i conftest.$ac_ext
7790 # OK, works on sane cases. Now check whether nonexistent headers
7791 # can be detected and how.
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7794 #include <ac_nonexistent.h>
7795 _ACEOF
7796 if ac_fn_c_try_cpp "$LINENO"; then :
7797 # Broken: success on invalid input.
7798 continue
7799 else
7800 # Passes both tests.
7801 ac_preproc_ok=:
7802 break
7804 rm -f conftest.err conftest.i conftest.$ac_ext
7806 done
7807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7808 rm -f conftest.i conftest.err conftest.$ac_ext
7809 if $ac_preproc_ok; then :
7810 break
7813 done
7814 ac_cv_prog_CPP=$CPP
7817 CPP=$ac_cv_prog_CPP
7818 else
7819 ac_cv_prog_CPP=$CPP
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7822 $as_echo "$CPP" >&6; }
7823 ac_preproc_ok=false
7824 for ac_c_preproc_warn_flag in '' yes
7826 # Use a header file that comes with gcc, so configuring glibc
7827 # with a fresh cross-compiler works.
7828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7829 # <limits.h> exists even on freestanding compilers.
7830 # On the NeXT, cc -E runs the code through the compiler's parser,
7831 # not just through cpp. "Syntax error" is here to catch this case.
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #ifdef __STDC__
7835 # include <limits.h>
7836 #else
7837 # include <assert.h>
7838 #endif
7839 Syntax error
7840 _ACEOF
7841 if ac_fn_c_try_cpp "$LINENO"; then :
7843 else
7844 # Broken: fails on valid input.
7845 continue
7847 rm -f conftest.err conftest.i conftest.$ac_ext
7849 # OK, works on sane cases. Now check whether nonexistent headers
7850 # can be detected and how.
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #include <ac_nonexistent.h>
7854 _ACEOF
7855 if ac_fn_c_try_cpp "$LINENO"; then :
7856 # Broken: success on invalid input.
7857 continue
7858 else
7859 # Passes both tests.
7860 ac_preproc_ok=:
7861 break
7863 rm -f conftest.err conftest.i conftest.$ac_ext
7865 done
7866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7867 rm -f conftest.i conftest.err conftest.$ac_ext
7868 if $ac_preproc_ok; then :
7870 else
7871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7873 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7874 See \`config.log' for more details" "$LINENO" 5; }
7877 ac_ext=c
7878 ac_cpp='$CPP $CPPFLAGS'
7879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884 cpp=$CPP
7887 if test -z "$LD"; then
7888 # Extract the first word of "ld", so it can be a program name with args.
7889 set dummy ld; 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_LD+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 case $LD in
7896 [\\/]* | ?:[\\/]*)
7897 ac_cv_path_LD="$LD" # 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_LD="$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_LD" && ac_cv_path_LD="/usr/bin/ld"
7917 esac
7919 LD=$ac_cv_path_LD
7920 if test -n "$LD"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7922 $as_echo "$LD" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7930 ld=$LD
7933 if test -z "$PCP_USER_INSTALL" ; then
7934 pcp_user_install=root
7935 else
7936 pcp_user_install="$PCP_USER_INSTALL"
7939 if test -z "$PCP_GROUP_INSTALL" ; then
7940 case "$target_os"
7942 darwin|freebsd|netbsd|openbsd)
7943 pcp_group_install=wheel
7946 pcp_group_install=root
7948 esac
7949 else
7950 pcp_group_install="$PCP_GROUP_INSTALL"
7954 if test -z "$TAR"; then
7955 for ac_prog in gtar tar
7957 # Extract the first word of "$ac_prog", so it can be a program name with args.
7958 set dummy $ac_prog; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if ${ac_cv_path_TAR+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 case $TAR in
7965 [\\/]* | ?:[\\/]*)
7966 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7976 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7980 done
7981 done
7982 IFS=$as_save_IFS
7985 esac
7987 TAR=$ac_cv_path_TAR
7988 if test -n "$TAR"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7990 $as_echo "$TAR" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7997 test -n "$TAR" && break
7998 done
7999 test -n "$TAR" || TAR="tar"
8002 if test $target_os = darwin -a -x /usr/bin/gnutar
8003 then
8004 TAR=/usr/bin/gnutar
8006 tar=$TAR
8009 if test -z "$ZIP"; then
8010 # Extract the first word of "gzip", so it can be a program name with args.
8011 set dummy gzip; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if ${ac_cv_path_ZIP+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 case $ZIP in
8018 [\\/]* | ?:[\\/]*)
8019 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8033 done
8034 done
8035 IFS=$as_save_IFS
8037 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
8039 esac
8041 ZIP=$ac_cv_path_ZIP
8042 if test -n "$ZIP"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
8044 $as_echo "$ZIP" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8052 test ! -x "$ZIP" && ZIP=/usr/local/bin/gzip
8053 test ! -x "$ZIP" && ZIP=/usr/freeware/bin/gzip
8054 test ! -x "$ZIP" && ZIP=/usr/bin/gzip
8055 gzip=$ZIP
8056 test -z "$gzip" && gzip=no-gzip
8059 if test -z "$BZIP2"; then
8060 # Extract the first word of "bzip2", so it can be a program name with args.
8061 set dummy bzip2; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_path_BZIP2+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 case $BZIP2 in
8068 [\\/]* | ?:[\\/]*)
8069 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8083 done
8084 done
8085 IFS=$as_save_IFS
8087 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
8089 esac
8091 BZIP2=$ac_cv_path_BZIP2
8092 if test -n "$BZIP2"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
8094 $as_echo "$BZIP2" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8102 test ! -x "$BZIP2" && BZIP2=/usr/bin/bzip2
8103 test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2
8104 test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2
8105 bzip2=$BZIP2
8106 test -z "$bzip2" && bzip2=no-bzip2
8109 if test -z "$LZMA"; then
8110 # Extract the first word of "lzma", so it can be a program name with args.
8111 set dummy lzma; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if ${ac_cv_path_LZMA+:} false; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 case $LZMA in
8118 [\\/]* | ?:[\\/]*)
8119 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129 ac_cv_path_LZMA="$as_dir/$ac_word$ac_exec_ext"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8133 done
8134 done
8135 IFS=$as_save_IFS
8137 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
8139 esac
8141 LZMA=$ac_cv_path_LZMA
8142 if test -n "$LZMA"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8144 $as_echo "$LZMA" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8152 test ! -x "$LZMA" && LZMA=/usr/bin/lzma
8153 test ! -x "$LZMA" && LZMA=/usr/local/bin/lzma
8154 test ! -x "$LZMA" && LZMA=/usr/freeware/bin/lzma
8155 lzma=$LZMA
8156 test -z "$lzma" && lzma=no-lzma
8159 if test -z "$XZ"; then
8160 # Extract the first word of "xz", so it can be a program name with args.
8161 set dummy xz; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if ${ac_cv_path_XZ+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 case $XZ in
8168 [\\/]* | ?:[\\/]*)
8169 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8183 done
8184 done
8185 IFS=$as_save_IFS
8187 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
8189 esac
8191 XZ=$ac_cv_path_XZ
8192 if test -n "$XZ"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8194 $as_echo "$XZ" >&6; }
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8202 test ! -x "$XZ" && XZ=/usr/bin/xz
8203 test ! -x "$XZ" && XZ=/usr/local/bin/xz
8204 test ! -x "$XZ" && XZ=/usr/freeware/bin/xz
8205 xz=$XZ
8206 test -z "$xz" && xz=no-xz
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8210 $as_echo_n "checking for PackageMaker... " >&6; }
8211 if test -z "$PACKAGE_MAKER"
8212 then
8213 if test $target_os = darwin
8214 then
8215 if test -x /Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8216 then # local XCode extras install
8217 package_maker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8219 $as_echo " yes (local install)" >&6; }
8220 elif test -x /Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8221 then # Darwin 6.x
8222 package_maker=/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8224 $as_echo " yes (darwin 6.x)" >&6; }
8225 elif test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8226 then # Darwin 7.x
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8228 $as_echo " yes (darwin 7.x)" >&6; }
8229 package_maker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8232 $as_echo " not found!" >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8234 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8236 else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo " no" >&6; }
8240 else
8241 package_maker="$PACKAGE_MAKER"
8245 if test -z "$HDIUTIL"; then
8246 # Extract the first word of "hdiutil", so it can be a program name with args.
8247 set dummy hdiutil; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if ${ac_cv_path_HDIUTIL+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 case $HDIUTIL in
8254 [\\/]* | ?:[\\/]*)
8255 ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 for as_dir in $PATH
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8265 ac_cv_path_HDIUTIL="$as_dir/$ac_word$ac_exec_ext"
8266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 break 2
8269 done
8270 done
8271 IFS=$as_save_IFS
8274 esac
8276 HDIUTIL=$ac_cv_path_HDIUTIL
8277 if test -n "$HDIUTIL"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8279 $as_echo "$HDIUTIL" >&6; }
8280 else
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8287 hdiutil=$HDIUTIL
8290 if test -z "$MKINSTALLP"; then
8291 # Extract the first word of "mkinstallp", so it can be a program name with args.
8292 set dummy mkinstallp; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if ${ac_cv_path_MKINSTALLP+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 case $MKINSTALLP in
8299 [\\/]* | ?:[\\/]*)
8300 ac_cv_path_MKINSTALLP="$MKINSTALLP" # Let the user override the test with a path.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310 ac_cv_path_MKINSTALLP="$as_dir/$ac_word$ac_exec_ext"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 break 2
8314 done
8315 done
8316 IFS=$as_save_IFS
8319 esac
8321 MKINSTALLP=$ac_cv_path_MKINSTALLP
8322 if test -n "$MKINSTALLP"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8324 $as_echo "$MKINSTALLP" >&6; }
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8332 mkinstallp=$MKINSTALLP
8335 if test -z "$PKGMK"; then
8336 # Extract the first word of "pkgmk", so it can be a program name with args.
8337 set dummy pkgmk; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_path_PKGMK+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 case $PKGMK in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8355 ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8359 done
8360 done
8361 IFS=$as_save_IFS
8364 esac
8366 PKGMK=$ac_cv_path_PKGMK
8367 if test -n "$PKGMK"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8369 $as_echo "$PKGMK" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8377 pkgmk=$PKGMK
8380 if test -z "$DLLTOOL"; then
8381 # Extract the first word of "dlltool", so it can be a program name with args.
8382 set dummy dlltool; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if ${ac_cv_path_DLLTOOL+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 case $DLLTOOL in
8389 [\\/]* | ?:[\\/]*)
8390 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400 ac_cv_path_DLLTOOL="$as_dir/$ac_word$ac_exec_ext"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8404 done
8405 done
8406 IFS=$as_save_IFS
8409 esac
8411 DLLTOOL=$ac_cv_path_DLLTOOL
8412 if test -n "$DLLTOOL"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8414 $as_echo "$DLLTOOL" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8422 dlltool=$DLLTOOL
8425 if test -z "$RPMBUILD"; then
8426 # Extract the first word of "rpmbuild", so it can be a program name with args.
8427 set dummy rpmbuild; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_path_RPMBUILD+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 case $RPMBUILD in
8434 [\\/]* | ?:[\\/]*)
8435 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8449 done
8450 done
8451 IFS=$as_save_IFS
8454 esac
8456 RPMBUILD=$ac_cv_path_RPMBUILD
8457 if test -n "$RPMBUILD"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8459 $as_echo "$RPMBUILD" >&6; }
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8467 test $target_distro = slackware && RPMBUILD=''
8468 rpmbuild=$RPMBUILD
8471 if test -z "$RPM"; then
8472 # Extract the first word of "rpm", so it can be a program name with args.
8473 set dummy rpm; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if ${ac_cv_path_RPM+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 case $RPM in
8480 [\\/]* | ?:[\\/]*)
8481 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8491 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8495 done
8496 done
8497 IFS=$as_save_IFS
8500 esac
8502 RPM=$ac_cv_path_RPM
8503 if test -n "$RPM"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8505 $as_echo "$RPM" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8513 test $target_distro = slackware && RPM=''
8514 rpm=$RPM
8517 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8518 then
8519 rpmprog=$RPMBUILD
8520 else
8521 rpmprog=$RPM
8525 if test -z "$POD2MAN"; then
8526 # Extract the first word of "pod2man", so it can be a program name with args.
8527 set dummy pod2man; ac_word=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_path_POD2MAN+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 case $POD2MAN in
8534 [\\/]* | ?:[\\/]*)
8535 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 break 2
8549 done
8550 done
8551 IFS=$as_save_IFS
8554 esac
8556 POD2MAN=$ac_cv_path_POD2MAN
8557 if test -n "$POD2MAN"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8559 $as_echo "$POD2MAN" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8567 pod2man=$POD2MAN
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8571 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8572 perl -e "use ExtUtils::MakeMaker" 2>/dev/null
8573 if test $? -eq 0
8574 then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8576 $as_echo " yes" >&6; }
8577 else
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo " no" >&6; }
8580 echo
8581 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8582 echo "You can either install this from your distribution, or"
8583 echo "download from CPAN (Comprehensive Perl Archive Network)."
8584 rm -rf conftest conftest.*
8585 exit 1
8588 # Extract the first word of "true", so it can be a program name with args.
8589 set dummy true; ac_word=$2
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 $as_echo_n "checking for $ac_word... " >&6; }
8592 if ${ac_cv_path_TRUEPROG+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 case $TRUEPROG in
8596 [\\/]* | ?:[\\/]*)
8597 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607 ac_cv_path_TRUEPROG="$as_dir/$ac_word$ac_exec_ext"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8611 done
8612 done
8613 IFS=$as_save_IFS
8616 esac
8618 TRUEPROG=$ac_cv_path_TRUEPROG
8619 if test -n "$TRUEPROG"; then
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8621 $as_echo "$TRUEPROG" >&6; }
8622 else
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624 $as_echo "no" >&6; }
8629 if test -z "$MAKEDEPEND"; then
8630 # Extract the first word of "makedepend", so it can be a program name with args.
8631 set dummy makedepend; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_path_MAKEDEPEND+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 case $MAKEDEPEND in
8638 [\\/]* | ?:[\\/]*)
8639 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 break 2
8653 done
8654 done
8655 IFS=$as_save_IFS
8657 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8659 esac
8661 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
8662 if test -n "$MAKEDEPEND"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8664 $as_echo "$MAKEDEPEND" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8672 makedepend=$MAKEDEPEND
8675 if test -z "$MD5SUM"; then
8676 # Extract the first word of "md5sum", so it can be a program name with args.
8677 set dummy md5sum; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_path_MD5SUM+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 case $MD5SUM in
8684 [\\/]* | ?:[\\/]*)
8685 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695 ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
8696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 break 2
8699 done
8700 done
8701 IFS=$as_save_IFS
8703 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8705 esac
8707 MD5SUM=$ac_cv_path_MD5SUM
8708 if test -n "$MD5SUM"; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8710 $as_echo "$MD5SUM" >&6; }
8711 else
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 $as_echo "no" >&6; }
8718 md5sum=$MD5SUM
8721 if test -z "$DPKG"; then
8722 # Extract the first word of "dpkg", so it can be a program name with args.
8723 set dummy dpkg; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_path_DPKG+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 case $DPKG in
8730 [\\/]* | ?:[\\/]*)
8731 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 break 2
8745 done
8746 done
8747 IFS=$as_save_IFS
8750 esac
8752 DPKG=$ac_cv_path_DPKG
8753 if test -n "$DPKG"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8755 $as_echo "$DPKG" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8763 dpkg=$DKPG
8766 if test -z "$MAKEPKG"; then
8767 # Extract the first word of "makepkg", so it can be a program name with args.
8768 set dummy makepkg; ac_word=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if ${ac_cv_path_MAKEPKG+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 case $MAKEPKG in
8775 [\\/]* | ?:[\\/]*)
8776 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8782 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786 ac_cv_path_MAKEPKG="$as_dir/$ac_word$ac_exec_ext"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2
8790 done
8791 done
8792 IFS=$as_save_IFS
8795 esac
8797 MAKEPKG=$ac_cv_path_MAKEPKG
8798 if test -n "$MAKEPKG"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8800 $as_echo "$MAKEPKG" >&6; }
8801 else
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8808 makepkg=$MAKEPKG
8811 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8812 set dummy publican; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if ${ac_cv_path_PUBLICAN+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 case $PUBLICAN in
8819 [\\/]* | ?:[\\/]*)
8820 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_path_PUBLICAN="$as_dir/$ac_word$ac_exec_ext"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8834 done
8835 done
8836 IFS=$as_save_IFS
8839 esac
8841 PUBLICAN=$ac_cv_path_PUBLICAN
8842 if test -n "$PUBLICAN"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8844 $as_echo "$PUBLICAN" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8851 publican=$PUBLICAN
8853 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8854 set dummy dblatex; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if ${ac_cv_path_DBLATEX+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 case $DBLATEX in
8861 [\\/]* | ?:[\\/]*)
8862 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
8873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8876 done
8877 done
8878 IFS=$as_save_IFS
8881 esac
8883 DBLATEX=$ac_cv_path_DBLATEX
8884 if test -n "$DBLATEX"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8886 $as_echo "$DBLATEX" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8893 dblatex=$DBLATEX
8895 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8896 set dummy xmlto; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if ${ac_cv_path_XMLTO+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 case $XMLTO in
8903 [\\/]* | ?:[\\/]*)
8904 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 for as_dir in $PATH
8910 IFS=$as_save_IFS
8911 test -z "$as_dir" && as_dir=.
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8916 break 2
8918 done
8919 done
8920 IFS=$as_save_IFS
8923 esac
8925 XMLTO=$ac_cv_path_XMLTO
8926 if test -n "$XMLTO"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8928 $as_echo "$XMLTO" >&6; }
8929 else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8935 xmlto=$XMLTO
8938 book_toolchain=""
8939 if test "$do_books" = "check" -o "$do_books" = "yes"
8940 then
8941 if test "$BOOK_TOOLCHAIN" != ""
8942 then
8943 book_toolchain=$BOOK_TOOLCHAIN
8944 elif test "$DBLATEX" != ""
8945 then
8946 book_toolchain=dblatex
8947 elif test "$PUBLICAN" != ""
8948 then
8949 book_toolchain=publican
8950 elif test "$XMLTO" != ""
8951 then
8952 book_toolchain=xmlto
8953 elif test "$do_books" = "yes"
8954 then
8955 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
8960 book_brand="common"
8961 if test "$do_books_brand" != ""
8962 then
8963 book_brand=$do_books_brand
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8968 $as_echo_n "checking whether ln -s works... " >&6; }
8969 LN_S=$as_ln_s
8970 if test "$LN_S" = "ln -s"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8972 $as_echo "yes" >&6; }
8973 else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8975 $as_echo "no, using $LN_S" >&6; }
8978 if test $target_os = mingw; then
8979 as_ln_s=/bin/true
8982 if test -d /proc
8983 then
8984 test -f /proc/stat || mount /proc >/dev/null 2>&1
8987 if test -n "$PROCPS"
8988 then
8989 pcp_ps_prog="$PROCPS"
8990 else
8991 pcp_ps_prog=ps
8995 if test $target_os = mingw
8996 then
8997 pcp_syslog_prog=pcp-eventlog
8998 else
8999 pcp_syslog_prog=logger
9003 grep=grep
9004 if test $target_os = solaris
9005 then
9006 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/bin/grep
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
9011 $as_echo_n "checking for /proc ... " >&6; }
9012 if test "$cross_compiling" = "yes"; then
9013 ans=$have_procfs
9014 echo "cross-compile -> \"$ans\"" >&5
9015 elif test -d /proc
9016 then
9017 have_procfs=true
9018 else
9019 have_procfs=false
9021 if $have_procfs
9022 then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9024 $as_echo "yes" >&6; }
9026 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
9028 else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9033 ac_header_dirent=no
9034 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9035 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9037 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9038 if eval \${$as_ac_Header+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 #include <sys/types.h>
9044 #include <$ac_hdr>
9047 main ()
9049 if ((DIR *) 0)
9050 return 0;
9052 return 0;
9054 _ACEOF
9055 if ac_fn_c_try_compile "$LINENO"; then :
9056 eval "$as_ac_Header=yes"
9057 else
9058 eval "$as_ac_Header=no"
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 eval ac_res=\$$as_ac_Header
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9064 $as_echo "$ac_res" >&6; }
9065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9066 cat >>confdefs.h <<_ACEOF
9067 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9068 _ACEOF
9070 ac_header_dirent=$ac_hdr; break
9073 done
9074 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9075 if test $ac_header_dirent = dirent.h; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9077 $as_echo_n "checking for library containing opendir... " >&6; }
9078 if ${ac_cv_search_opendir+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 ac_func_search_save_LIBS=$LIBS
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9085 /* Override any GCC internal prototype to avoid an error.
9086 Use char because int might match the return type of a GCC
9087 builtin and then its argument prototype would still apply. */
9088 #ifdef __cplusplus
9089 extern "C"
9090 #endif
9091 char opendir ();
9093 main ()
9095 return opendir ();
9097 return 0;
9099 _ACEOF
9100 for ac_lib in '' dir; do
9101 if test -z "$ac_lib"; then
9102 ac_res="none required"
9103 else
9104 ac_res=-l$ac_lib
9105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9107 if ac_fn_c_try_link "$LINENO"; then :
9108 ac_cv_search_opendir=$ac_res
9110 rm -f core conftest.err conftest.$ac_objext \
9111 conftest$ac_exeext
9112 if ${ac_cv_search_opendir+:} false; then :
9113 break
9115 done
9116 if ${ac_cv_search_opendir+:} false; then :
9118 else
9119 ac_cv_search_opendir=no
9121 rm conftest.$ac_ext
9122 LIBS=$ac_func_search_save_LIBS
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9125 $as_echo "$ac_cv_search_opendir" >&6; }
9126 ac_res=$ac_cv_search_opendir
9127 if test "$ac_res" != no; then :
9128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9132 else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9134 $as_echo_n "checking for library containing opendir... " >&6; }
9135 if ${ac_cv_search_opendir+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 ac_func_search_save_LIBS=$LIBS
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9142 /* Override any GCC internal prototype to avoid an error.
9143 Use char because int might match the return type of a GCC
9144 builtin and then its argument prototype would still apply. */
9145 #ifdef __cplusplus
9146 extern "C"
9147 #endif
9148 char opendir ();
9150 main ()
9152 return opendir ();
9154 return 0;
9156 _ACEOF
9157 for ac_lib in '' x; do
9158 if test -z "$ac_lib"; then
9159 ac_res="none required"
9160 else
9161 ac_res=-l$ac_lib
9162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9164 if ac_fn_c_try_link "$LINENO"; then :
9165 ac_cv_search_opendir=$ac_res
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext
9169 if ${ac_cv_search_opendir+:} false; then :
9170 break
9172 done
9173 if ${ac_cv_search_opendir+:} false; then :
9175 else
9176 ac_cv_search_opendir=no
9178 rm conftest.$ac_ext
9179 LIBS=$ac_func_search_save_LIBS
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9182 $as_echo "$ac_cv_search_opendir" >&6; }
9183 ac_res=$ac_cv_search_opendir
9184 if test "$ac_res" != no; then :
9185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9192 $as_echo_n "checking for ANSI C header files... " >&6; }
9193 if ${ac_cv_header_stdc+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <stdlib.h>
9199 #include <stdarg.h>
9200 #include <string.h>
9201 #include <float.h>
9204 main ()
9208 return 0;
9210 _ACEOF
9211 if ac_fn_c_try_compile "$LINENO"; then :
9212 ac_cv_header_stdc=yes
9213 else
9214 ac_cv_header_stdc=no
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 if test $ac_cv_header_stdc = yes; then
9219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 #include <string.h>
9224 _ACEOF
9225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9226 $EGREP "memchr" >/dev/null 2>&1; then :
9228 else
9229 ac_cv_header_stdc=no
9231 rm -f conftest*
9235 if test $ac_cv_header_stdc = yes; then
9236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9239 #include <stdlib.h>
9241 _ACEOF
9242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9243 $EGREP "free" >/dev/null 2>&1; then :
9245 else
9246 ac_cv_header_stdc=no
9248 rm -f conftest*
9252 if test $ac_cv_header_stdc = yes; then
9253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9254 if test "$cross_compiling" = yes; then :
9256 else
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 #include <ctype.h>
9260 #include <stdlib.h>
9261 #if ((' ' & 0x0FF) == 0x020)
9262 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9263 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9264 #else
9265 # define ISLOWER(c) \
9266 (('a' <= (c) && (c) <= 'i') \
9267 || ('j' <= (c) && (c) <= 'r') \
9268 || ('s' <= (c) && (c) <= 'z'))
9269 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9270 #endif
9272 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9274 main ()
9276 int i;
9277 for (i = 0; i < 256; i++)
9278 if (XOR (islower (i), ISLOWER (i))
9279 || toupper (i) != TOUPPER (i))
9280 return 2;
9281 return 0;
9283 _ACEOF
9284 if ac_fn_c_try_run "$LINENO"; then :
9286 else
9287 ac_cv_header_stdc=no
9289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9290 conftest.$ac_objext conftest.beam conftest.$ac_ext
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9296 $as_echo "$ac_cv_header_stdc" >&6; }
9297 if test $ac_cv_header_stdc = yes; then
9299 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9304 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9305 if ${ac_cv_header_sys_wait_h+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 #include <sys/types.h>
9311 #include <sys/wait.h>
9312 #ifndef WEXITSTATUS
9313 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9314 #endif
9315 #ifndef WIFEXITED
9316 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9317 #endif
9320 main ()
9322 int s;
9323 wait (&s);
9324 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9326 return 0;
9328 _ACEOF
9329 if ac_fn_c_try_compile "$LINENO"; then :
9330 ac_cv_header_sys_wait_h=yes
9331 else
9332 ac_cv_header_sys_wait_h=no
9334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9337 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9338 if test $ac_cv_header_sys_wait_h = yes; then
9340 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9344 for ac_header in fcntl.h limits.h malloc.h strings.h syslog.h
9345 do :
9346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9347 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9348 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9349 cat >>confdefs.h <<_ACEOF
9350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9351 _ACEOF
9355 done
9357 for ac_header in stddef.h sched.h dlfcn.h dl.h
9358 do :
9359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9360 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9362 cat >>confdefs.h <<_ACEOF
9363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9364 _ACEOF
9368 done
9370 for ac_header in sys/times.h sys/resource.h sys/prctl.h
9371 do :
9372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9373 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9375 cat >>confdefs.h <<_ACEOF
9376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9377 _ACEOF
9381 done
9383 for ac_header in sys/sysinfo.h sys/systeminfo.h
9384 do :
9385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9386 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9387 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9388 cat >>confdefs.h <<_ACEOF
9389 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9390 _ACEOF
9394 done
9396 for ac_header in endian.h standards.h sys/byteorder.h
9397 do :
9398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9399 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9401 cat >>confdefs.h <<_ACEOF
9402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9403 _ACEOF
9407 done
9409 for ac_header in libgen.h sys/mman.h sys/un.h
9410 do :
9411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9412 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9414 cat >>confdefs.h <<_ACEOF
9415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9416 _ACEOF
9420 done
9422 for ac_header in values.h stdint.h ieeefp.h math.h
9423 do :
9424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9425 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9426 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9427 cat >>confdefs.h <<_ACEOF
9428 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9429 _ACEOF
9433 done
9435 for ac_header in pwd.h grp.h regex.h sys/wait.h
9436 do :
9437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9438 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9440 cat >>confdefs.h <<_ACEOF
9441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9442 _ACEOF
9446 done
9448 for ac_header in termio.h termios.h sys/termios.h
9449 do :
9450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9451 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9452 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9453 cat >>confdefs.h <<_ACEOF
9454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9455 _ACEOF
9459 done
9461 for ac_header in sys/ioctl.h sys/select.h sys/socket.h
9462 do :
9463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9464 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9466 cat >>confdefs.h <<_ACEOF
9467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 _ACEOF
9472 done
9474 for ac_header in netdb.h
9475 do :
9476 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9477 if test "x$ac_cv_header_netdb_h" = xyes; then :
9478 cat >>confdefs.h <<_ACEOF
9479 #define HAVE_NETDB_H 1
9480 _ACEOF
9484 done
9486 if test $target_os = darwin -o $target_os = openbsd
9487 then
9488 for ac_header in net/if.h
9489 do :
9490 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9491 #include <sys/socket.h>
9493 if test "x$ac_cv_header_net_if_h" = xyes; then :
9494 cat >>confdefs.h <<_ACEOF
9495 #define HAVE_NET_IF_H 1
9496 _ACEOF
9500 done
9502 else
9503 for ac_header in net/if.h
9504 do :
9505 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9506 if test "x$ac_cv_header_net_if_h" = xyes; then :
9507 cat >>confdefs.h <<_ACEOF
9508 #define HAVE_NET_IF_H 1
9509 _ACEOF
9513 done
9516 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9517 do :
9518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9519 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9520 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9521 cat >>confdefs.h <<_ACEOF
9522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9523 _ACEOF
9527 done
9529 for ac_header in windows.h winsock2.h ws2tcpip.h
9530 do :
9531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9532 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9533 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9534 cat >>confdefs.h <<_ACEOF
9535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9536 _ACEOF
9540 done
9542 for ac_header in execinfo.h bits/wordsize.h
9543 do :
9544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9545 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9546 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9547 cat >>confdefs.h <<_ACEOF
9548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9549 _ACEOF
9553 done
9555 for ac_header in iptypes.h
9556 do :
9557 ac_fn_c_check_header_compile "$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9559 if test "x$ac_cv_header_iptypes_h" = xyes; then :
9560 cat >>confdefs.h <<_ACEOF
9561 #define HAVE_IPTYPES_H 1
9562 _ACEOF
9566 done
9568 for ac_header in iphlpapi.h
9569 do :
9570 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9572 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
9573 cat >>confdefs.h <<_ACEOF
9574 #define HAVE_IPHLPAPI_H 1
9575 _ACEOF
9579 done
9581 for ac_header in fts.h libzfs.h
9582 do :
9583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9584 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9585 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9586 cat >>confdefs.h <<_ACEOF
9587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9588 _ACEOF
9592 done
9594 for ac_header in sys/statvfs.h sys/statfs.h sys/mount.h
9595 do :
9596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9598 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9599 cat >>confdefs.h <<_ACEOF
9600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9601 _ACEOF
9605 done
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9609 $as_echo_n "checking for sys/endian.h ... " >&6; }
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9613 #include <sys/endian.h>
9616 main ()
9621 return 0;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"; then :
9626 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9636 $as_echo_n "checking for machine/endian.h ... " >&6; }
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9640 #include <machine/endian.h>
9643 main ()
9648 return 0;
9650 _ACEOF
9651 if ac_fn_c_try_compile "$LINENO"; then :
9653 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9655 $as_echo "yes" >&6; }
9656 else
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9663 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9667 #include <standards.h>
9668 #include <sys/endian.h>
9671 main ()
9676 return 0;
9678 _ACEOF
9679 if ac_fn_c_try_compile "$LINENO"; then :
9681 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9683 $as_echo "yes" >&6; }
9684 else
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9691 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9692 if ${ac_cv_c_const+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694 else
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9699 main ()
9702 #ifndef __cplusplus
9703 /* Ultrix mips cc rejects this sort of thing. */
9704 typedef int charset[2];
9705 const charset cs = { 0, 0 };
9706 /* SunOS 4.1.1 cc rejects this. */
9707 char const *const *pcpcc;
9708 char **ppc;
9709 /* NEC SVR4.0.2 mips cc rejects this. */
9710 struct point {int x, y;};
9711 static struct point const zero = {0,0};
9712 /* AIX XL C 1.02.0.0 rejects this.
9713 It does not let you subtract one const X* pointer from another in
9714 an arm of an if-expression whose if-part is not a constant
9715 expression */
9716 const char *g = "string";
9717 pcpcc = &g + (g ? g-g : 0);
9718 /* HPUX 7.0 cc rejects these. */
9719 ++pcpcc;
9720 ppc = (char**) pcpcc;
9721 pcpcc = (char const *const *) ppc;
9722 { /* SCO 3.2v4 cc rejects this sort of thing. */
9723 char tx;
9724 char *t = &tx;
9725 char const *s = 0 ? (char *) 0 : (char const *) 0;
9727 *t++ = 0;
9728 if (s) return 0;
9730 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9731 int x[] = {25, 17};
9732 const int *foo = &x[0];
9733 ++foo;
9735 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9736 typedef const int *iptr;
9737 iptr p = 0;
9738 ++p;
9740 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9741 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9742 struct s { int j; const int *ap[3]; } bx;
9743 struct s *b = &bx; b->j = 5;
9745 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9746 const int foo = 10;
9747 if (!foo) return 0;
9749 return !cs[0] && !zero.x;
9750 #endif
9753 return 0;
9755 _ACEOF
9756 if ac_fn_c_try_compile "$LINENO"; then :
9757 ac_cv_c_const=yes
9758 else
9759 ac_cv_c_const=no
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9764 $as_echo "$ac_cv_c_const" >&6; }
9765 if test $ac_cv_c_const = no; then
9767 $as_echo "#define const /**/" >>confdefs.h
9771 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9772 if test "x$ac_cv_type_off_t" = xyes; then :
9774 else
9776 cat >>confdefs.h <<_ACEOF
9777 #define off_t long int
9778 _ACEOF
9782 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9783 if test "x$ac_cv_type_pid_t" = xyes; then :
9785 else
9787 cat >>confdefs.h <<_ACEOF
9788 #define pid_t int
9789 _ACEOF
9793 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9794 if test "x$ac_cv_type_size_t" = xyes; then :
9796 else
9798 cat >>confdefs.h <<_ACEOF
9799 #define size_t unsigned int
9800 _ACEOF
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9805 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9806 if ${ac_cv_header_time+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 #include <sys/types.h>
9812 #include <sys/time.h>
9813 #include <time.h>
9816 main ()
9818 if ((struct tm *) 0)
9819 return 0;
9821 return 0;
9823 _ACEOF
9824 if ac_fn_c_try_compile "$LINENO"; then :
9825 ac_cv_header_time=yes
9826 else
9827 ac_cv_header_time=no
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9832 $as_echo "$ac_cv_header_time" >&6; }
9833 if test $ac_cv_header_time = yes; then
9835 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9840 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9841 if ${ac_cv_struct_tm+:} false; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846 #include <sys/types.h>
9847 #include <time.h>
9850 main ()
9852 struct tm tm;
9853 int *p = &tm.tm_sec;
9854 return !p;
9856 return 0;
9858 _ACEOF
9859 if ac_fn_c_try_compile "$LINENO"; then :
9860 ac_cv_struct_tm=time.h
9861 else
9862 ac_cv_struct_tm=sys/time.h
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9867 $as_echo "$ac_cv_struct_tm" >&6; }
9868 if test $ac_cv_struct_tm = sys/time.h; then
9870 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9875 $as_echo_n "checking for inline... " >&6; }
9876 if ${ac_cv_c_inline+:} false; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 ac_cv_c_inline=no
9880 for ac_kw in inline __inline__ __inline; do
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883 #ifndef __cplusplus
9884 typedef int foo_t;
9885 static $ac_kw foo_t static_foo () {return 0; }
9886 $ac_kw foo_t foo () {return 0; }
9887 #endif
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891 ac_cv_c_inline=$ac_kw
9893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894 test "$ac_cv_c_inline" != no && break
9895 done
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9899 $as_echo "$ac_cv_c_inline" >&6; }
9901 case $ac_cv_c_inline in
9902 inline | yes) ;;
9904 case $ac_cv_c_inline in
9905 no) ac_val=;;
9906 *) ac_val=$ac_cv_c_inline;;
9907 esac
9908 cat >>confdefs.h <<_ACEOF
9909 #ifndef __cplusplus
9910 #define inline $ac_val
9911 #endif
9912 _ACEOF
9914 esac
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9918 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9919 if ${ac_cv_lib_regex_regcomp+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 ac_check_lib_save_LIBS=$LIBS
9923 LIBS="-lregex $LIBS"
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9927 /* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
9930 #ifdef __cplusplus
9931 extern "C"
9932 #endif
9933 char regcomp ();
9935 main ()
9937 return regcomp ();
9939 return 0;
9941 _ACEOF
9942 if ac_fn_c_try_link "$LINENO"; then :
9943 ac_cv_lib_regex_regcomp=yes
9944 else
9945 ac_cv_lib_regex_regcomp=no
9947 rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 LIBS=$ac_check_lib_save_LIBS
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9952 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9953 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
9954 cat >>confdefs.h <<_ACEOF
9955 #define HAVE_LIBREGEX 1
9956 _ACEOF
9958 LIBS="-lregex $LIBS"
9962 lib_for_regex=""
9963 if test $ac_cv_lib_regex_regcomp = yes
9964 then
9965 lib_for_regex="-lregex"
9970 pkg_failed=no
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9972 $as_echo_n "checking for ncurses... " >&6; }
9974 if test -n "$ncurses_CFLAGS"; then
9975 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
9976 elif test -n "$PKG_CONFIG"; then
9977 if test -n "$PKG_CONFIG" && \
9978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9979 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9980 ac_status=$?
9981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9982 test $ac_status = 0; }; then
9983 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9984 test "x$?" != "x0" && pkg_failed=yes
9985 else
9986 pkg_failed=yes
9988 else
9989 pkg_failed=untried
9991 if test -n "$ncurses_LIBS"; then
9992 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
9993 elif test -n "$PKG_CONFIG"; then
9994 if test -n "$PKG_CONFIG" && \
9995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9996 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9997 ac_status=$?
9998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9999 test $ac_status = 0; }; then
10000 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
10001 test "x$?" != "x0" && pkg_failed=yes
10002 else
10003 pkg_failed=yes
10005 else
10006 pkg_failed=untried
10011 if test $pkg_failed = yes; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10015 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10016 _pkg_short_errors_supported=yes
10017 else
10018 _pkg_short_errors_supported=no
10020 if test $_pkg_short_errors_supported = yes; then
10021 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
10022 else
10023 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
10025 # Put the nasty error message in config.log where it belongs
10026 echo "$ncurses_PKG_ERRORS" >&5
10028 have_ncurses=false
10029 elif test $pkg_failed = untried; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031 $as_echo "no" >&6; }
10032 have_ncurses=false
10033 else
10034 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
10035 ncurses_LIBS=$pkg_cv_ncurses_LIBS
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10037 $as_echo "yes" >&6; }
10038 have_ncurses=true
10040 HAVE_NCURSES=$have_ncurses
10044 pkg_failed=no
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10046 $as_echo_n "checking for SYSTEMD... " >&6; }
10048 if test -n "$SYSTEMD_CFLAGS"; then
10049 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10050 elif test -n "$PKG_CONFIG"; then
10051 if test -n "$PKG_CONFIG" && \
10052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10053 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10054 ac_status=$?
10055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10056 test $ac_status = 0; }; then
10057 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
10058 test "x$?" != "x0" && pkg_failed=yes
10059 else
10060 pkg_failed=yes
10062 else
10063 pkg_failed=untried
10065 if test -n "$SYSTEMD_LIBS"; then
10066 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10067 elif test -n "$PKG_CONFIG"; then
10068 if test -n "$PKG_CONFIG" && \
10069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10070 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10071 ac_status=$?
10072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10073 test $ac_status = 0; }; then
10074 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
10075 test "x$?" != "x0" && pkg_failed=yes
10076 else
10077 pkg_failed=yes
10079 else
10080 pkg_failed=untried
10085 if test $pkg_failed = yes; then
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10089 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10090 _pkg_short_errors_supported=yes
10091 else
10092 _pkg_short_errors_supported=no
10094 if test $_pkg_short_errors_supported = yes; then
10095 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
10096 else
10097 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
10099 # Put the nasty error message in config.log where it belongs
10100 echo "$SYSTEMD_PKG_ERRORS" >&5
10102 pmda_systemd=false
10103 elif test $pkg_failed = untried; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10106 pmda_systemd=false
10107 else
10108 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10109 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10111 $as_echo "yes" >&6; }
10112 pmda_systemd=true
10114 if $pmda_systemd
10115 then
10117 else
10119 pkg_failed=no
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10121 $as_echo_n "checking for SYSTEMD... " >&6; }
10123 if test -n "$SYSTEMD_CFLAGS"; then
10124 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10125 elif test -n "$PKG_CONFIG"; then
10126 if test -n "$PKG_CONFIG" && \
10127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10128 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10129 ac_status=$?
10130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10131 test $ac_status = 0; }; then
10132 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
10133 test "x$?" != "x0" && pkg_failed=yes
10134 else
10135 pkg_failed=yes
10137 else
10138 pkg_failed=untried
10140 if test -n "$SYSTEMD_LIBS"; then
10141 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10142 elif test -n "$PKG_CONFIG"; then
10143 if test -n "$PKG_CONFIG" && \
10144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10145 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10146 ac_status=$?
10147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10148 test $ac_status = 0; }; then
10149 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
10150 test "x$?" != "x0" && pkg_failed=yes
10151 else
10152 pkg_failed=yes
10154 else
10155 pkg_failed=untried
10160 if test $pkg_failed = yes; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10165 _pkg_short_errors_supported=yes
10166 else
10167 _pkg_short_errors_supported=no
10169 if test $_pkg_short_errors_supported = yes; then
10170 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10171 else
10172 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10174 # Put the nasty error message in config.log where it belongs
10175 echo "$SYSTEMD_PKG_ERRORS" >&5
10177 pmda_systemd=false
10178 elif test $pkg_failed = untried; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10181 pmda_systemd=false
10182 else
10183 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10184 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10186 $as_echo "yes" >&6; }
10187 pmda_systemd=true
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
10191 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
10192 PMDA_SYSTEMD=$pmda_systemd
10194 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10195 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }; fi
10198 pmda_infiniband=false
10199 if test "x$do_infiniband" != "xno"; then :
10201 for ac_header in infiniband/umad.h
10202 do :
10203 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10204 if test "x$ac_cv_header_infiniband_umad_h" = xyes; then :
10205 cat >>confdefs.h <<_ACEOF
10206 #define HAVE_INFINIBAND_UMAD_H 1
10207 _ACEOF
10209 for ac_header in infiniband/mad.h
10210 do :
10211 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10212 if test "x$ac_cv_header_infiniband_mad_h" = xyes; then :
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_INFINIBAND_MAD_H 1
10215 _ACEOF
10216 pmda_infiniband=true
10219 done
10224 done
10226 savedLIBS=$LIBS
10227 IB_LIBS=""
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10229 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10230 if ${ac_cv_lib_ibmad_madrpc_init+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 ac_check_lib_save_LIBS=$LIBS
10234 LIBS="-libmad $LIBS"
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10241 #ifdef __cplusplus
10242 extern "C"
10243 #endif
10244 char madrpc_init ();
10246 main ()
10248 return madrpc_init ();
10250 return 0;
10252 _ACEOF
10253 if ac_fn_c_try_link "$LINENO"; then :
10254 ac_cv_lib_ibmad_madrpc_init=yes
10255 else
10256 ac_cv_lib_ibmad_madrpc_init=no
10258 rm -f core conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10260 LIBS=$ac_check_lib_save_LIBS
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10263 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10264 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes; then :
10265 cat >>confdefs.h <<_ACEOF
10266 #define HAVE_LIBIBMAD 1
10267 _ACEOF
10269 LIBS="-libmad $LIBS"
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10274 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10275 if ${ac_cv_lib_ibumad_umad_init+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-libumad $LIBS"
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10283 /* Override any GCC internal prototype to avoid an error.
10284 Use char because int might match the return type of a GCC
10285 builtin and then its argument prototype would still apply. */
10286 #ifdef __cplusplus
10287 extern "C"
10288 #endif
10289 char umad_init ();
10291 main ()
10293 return umad_init ();
10295 return 0;
10297 _ACEOF
10298 if ac_fn_c_try_link "$LINENO"; then :
10299 ac_cv_lib_ibumad_umad_init=yes
10300 else
10301 ac_cv_lib_ibumad_umad_init=no
10303 rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 LIBS=$ac_check_lib_save_LIBS
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10308 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10309 if test "x$ac_cv_lib_ibumad_umad_init" = xyes; then :
10310 cat >>confdefs.h <<_ACEOF
10311 #define HAVE_LIBIBUMAD 1
10312 _ACEOF
10314 LIBS="-libumad $LIBS"
10318 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10319 then
10320 IB_LIBS="-libmad -libumad"
10321 LIBS="$IB_LIBS"
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10323 $as_echo_n "checking for port_performance_query_via... " >&6; }
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10327 /* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
10330 #ifdef __cplusplus
10331 extern "C"
10332 #endif
10333 char port_performance_query_via ();
10335 main ()
10337 return port_performance_query_via ();
10339 return 0;
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10344 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10346 have_port_performance_query_via=true
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10348 $as_echo "yes" >&6; }
10349 else
10350 have_port_performance_query_via=false
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10354 rm -f core conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10357 $as_echo_n "checking for pma_query_via... " >&6; }
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10361 /* Override any GCC internal prototype to avoid an error.
10362 Use char because int might match the return type of a GCC
10363 builtin and then its argument prototype would still apply. */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 char pma_query_via ();
10369 main ()
10371 return pma_query_via ();
10373 return 0;
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"; then :
10378 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10380 have_pma_query_via=true
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10382 $as_echo "yes" >&6; }
10383 else
10384 have_pma_query_via=false
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10388 rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10390 LIBS=$savedLIBS
10391 if test $have_pma_query_via -o $have_port_performance_query_via
10392 then
10394 else
10395 pmda_infiniband=false
10397 else
10398 pmda_infiniband=false
10400 LIBS=$savedLIBS
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10405 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10406 PMDA_INFINIBAND=$pmda_infiniband
10408 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10409 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }; fi
10412 pmda_papi=false
10413 if test "x$do_papi" != "xno"; then :
10415 enable_papi=true
10417 saved_LDFLAGS="$LDFLAGS"
10418 saved_CFLAGS="$CFLAGS"
10419 savedLIBS=$LIBS
10421 CFLAGS="$papi_CFLAGS"
10422 LDFLAGS="$papi_LIBS"
10424 case "$do_papi" in
10425 yes|no|check)
10427 */*)
10428 PAPI_ROOTDIR=$do_papi;
10429 CFLAGS="-I$PAPI_ROOTDIR/include"
10430 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10434 pkg_failed=no
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10436 $as_echo_n "checking for papi... " >&6; }
10438 if test -n "$papi_CFLAGS"; then
10439 pkg_cv_papi_CFLAGS="$papi_CFLAGS"
10440 elif test -n "$PKG_CONFIG"; then
10441 if test -n "$PKG_CONFIG" && \
10442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10443 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10444 ac_status=$?
10445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10446 test $ac_status = 0; }; then
10447 pkg_cv_papi_CFLAGS=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10448 test "x$?" != "x0" && pkg_failed=yes
10449 else
10450 pkg_failed=yes
10452 else
10453 pkg_failed=untried
10455 if test -n "$papi_LIBS"; then
10456 pkg_cv_papi_LIBS="$papi_LIBS"
10457 elif test -n "$PKG_CONFIG"; then
10458 if test -n "$PKG_CONFIG" && \
10459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10460 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10461 ac_status=$?
10462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10463 test $ac_status = 0; }; then
10464 pkg_cv_papi_LIBS=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10465 test "x$?" != "x0" && pkg_failed=yes
10466 else
10467 pkg_failed=yes
10469 else
10470 pkg_failed=untried
10475 if test $pkg_failed = yes; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10479 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10480 _pkg_short_errors_supported=yes
10481 else
10482 _pkg_short_errors_supported=no
10484 if test $_pkg_short_errors_supported = yes; then
10485 papi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10486 else
10487 papi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10489 # Put the nasty error message in config.log where it belongs
10490 echo "$papi_PKG_ERRORS" >&5
10492 as_fn_error $? "Package requirements ($do_papi) were not met:
10494 $papi_PKG_ERRORS
10496 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10497 installed software in a non-standard prefix.
10499 Alternatively, you may set the environment variables papi_CFLAGS
10500 and papi_LIBS to avoid the need to call pkg-config.
10501 See the pkg-config man page for more details." "$LINENO" 5
10502 elif test $pkg_failed = untried; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10507 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10508 is in your PATH or set the PKG_CONFIG environment variable to the full
10509 path to pkg-config.
10511 Alternatively, you may set the environment variables papi_CFLAGS
10512 and papi_LIBS to avoid the need to call pkg-config.
10513 See the pkg-config man page for more details.
10515 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10516 See \`config.log' for more details" "$LINENO" 5; }
10517 else
10518 papi_CFLAGS=$pkg_cv_papi_CFLAGS
10519 papi_LIBS=$pkg_cv_papi_LIBS
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; }
10523 CFLAGS="$papi_CFLAGS"
10524 LDFLAGS="$papi_LIBS"
10527 esac
10529 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10531 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10532 if ${ac_cv_lib_papi_PAPI_library_init+:} false; then :
10533 $as_echo_n "(cached) " >&6
10534 else
10535 ac_check_lib_save_LIBS=$LIBS
10536 LIBS="-lpapi $LIBS"
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10543 #ifdef __cplusplus
10544 extern "C"
10545 #endif
10546 char PAPI_library_init ();
10548 main ()
10550 return PAPI_library_init ();
10552 return 0;
10554 _ACEOF
10555 if ac_fn_c_try_link "$LINENO"; then :
10556 ac_cv_lib_papi_PAPI_library_init=yes
10557 else
10558 ac_cv_lib_papi_PAPI_library_init=no
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10565 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10566 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes; then :
10567 papi_libs="$LDFLAGS -lpapi"
10568 else
10569 enable_papi=false
10572 for ac_header in papi.h
10573 do :
10574 ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10575 if test "x$ac_cv_header_papi_h" = xyes; then :
10576 cat >>confdefs.h <<_ACEOF
10577 #define HAVE_PAPI_H 1
10578 _ACEOF
10579 papi_cflags="$CFLAGS"
10580 else
10581 enable_papi=false
10584 done
10586 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10587 then
10588 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10589 else
10590 pmda_papi=$enable_papi
10592 LIBS=$savedLIBS
10593 CFLAGS="$saved_CFLAGS"
10594 LDFLAGS="$saved_LDFLAGS"
10595 PAPI_CFLAGS=$papi_cflags
10597 PAPI_LIBS=$papi_libs
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10602 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10603 PMDA_PAPI=$pmda_papi
10605 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10606 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }; fi
10609 if test "x$pmda_papi" = "xtrue"; then :
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10612 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10613 cat <<End-of-File >conftest.c
10614 #include <papi.h>
10615 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10616 End-of-File
10617 (eval $ac_compile) 2>conftest.out
10618 cat conftest.out >&5
10619 if test -s conftest.out
10620 then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622 $as_echo "no" >&6; }
10623 else
10625 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10628 $as_echo "yes" >&6; }
10631 rm -f conftest.*
10635 pmda_perfevent=false
10636 if test "x$do_perfevent" != "xno" ; then :
10638 enable_perfevent=true
10640 savedLIBS=$LIBS
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10642 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10643 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-lpfm $LIBS"
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10651 /* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
10654 #ifdef __cplusplus
10655 extern "C"
10656 #endif
10657 char pfm_get_os_event_encoding ();
10659 main ()
10661 return pfm_get_os_event_encoding ();
10663 return 0;
10665 _ACEOF
10666 if ac_fn_c_try_link "$LINENO"; then :
10667 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10668 else
10669 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
10671 rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10673 LIBS=$ac_check_lib_save_LIBS
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10676 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10677 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes; then :
10678 pfm_libs="-lpfm"
10679 else
10680 enable_perfevent=false
10683 for ac_header in perfmon/pfmlib_perf_event.h
10684 do :
10685 ac_fn_c_check_header_mongrel "$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10686 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes; then :
10687 cat >>confdefs.h <<_ACEOF
10688 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10689 _ACEOF
10691 else
10692 enable_perfevent=false
10695 done
10697 if test "$do_perfevent" != "check" -a "$enable_perfevent" != "true"
10698 then
10699 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10700 else
10701 pmda_perfevent=$enable_perfevent
10703 LIBS=$savedLIBS
10704 PFM_LIBS=$pfm_libs
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10709 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10710 PMDA_PERFEVENT=$pmda_perfevent
10712 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10713 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; }; fi
10716 pmda_rpm=false
10717 savedLIBS=$LIBS
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10719 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 #include <rpm/header.h>
10724 main ()
10726 (void)HEADERGET_EXT;
10728 return 0;
10730 _ACEOF
10731 if ac_fn_c_try_compile "$LINENO"; then :
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10733 $as_echo "yes" >&6; }
10734 pmda_rpm=true
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10741 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10742 PMDA_RPM=$pmda_rpm
10744 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10745 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }; fi
10747 LIBS=$savedLIBS
10749 pmda_postfix=false
10750 for ac_prog in qshape
10752 # Extract the first word of "$ac_prog", so it can be a program name with args.
10753 set dummy $ac_prog; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if ${ac_cv_prog_QSHAPE+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 if test -n "$QSHAPE"; then
10760 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10761 else
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 as_dummy="path=$PATH:/usr/sbin"
10764 for as_dir in $as_dummy
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10770 ac_cv_prog_QSHAPE="$ac_prog"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 break 2
10774 done
10775 done
10776 IFS=$as_save_IFS
10780 QSHAPE=$ac_cv_prog_QSHAPE
10781 if test -n "$QSHAPE"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10783 $as_echo "$QSHAPE" >&6; }
10784 else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10790 test -n "$QSHAPE" && break
10791 done
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10794 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10795 if test -n "$QSHAPE"
10796 then
10797 pmda_postfix=true
10798 else
10799 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10801 if test -f "$script"
10802 then
10803 pmda_postfix=true
10804 break
10806 done
10808 PMDA_POSTFIX=$pmda_postfix
10810 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10811 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }; fi
10815 pkg_failed=no
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10817 $as_echo_n "checking for libmicrohttpd... " >&6; }
10819 if test -n "$libmicrohttpd_CFLAGS"; then
10820 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
10821 elif test -n "$PKG_CONFIG"; then
10822 if test -n "$PKG_CONFIG" && \
10823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10824 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10825 ac_status=$?
10826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10827 test $ac_status = 0; }; then
10828 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10829 test "x$?" != "x0" && pkg_failed=yes
10830 else
10831 pkg_failed=yes
10833 else
10834 pkg_failed=untried
10836 if test -n "$libmicrohttpd_LIBS"; then
10837 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
10838 elif test -n "$PKG_CONFIG"; then
10839 if test -n "$PKG_CONFIG" && \
10840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10841 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10842 ac_status=$?
10843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844 test $ac_status = 0; }; then
10845 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10846 test "x$?" != "x0" && pkg_failed=yes
10847 else
10848 pkg_failed=yes
10850 else
10851 pkg_failed=untried
10856 if test $pkg_failed = yes; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10860 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10861 _pkg_short_errors_supported=yes
10862 else
10863 _pkg_short_errors_supported=no
10865 if test $_pkg_short_errors_supported = yes; then
10866 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10867 else
10868 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10870 # Put the nasty error message in config.log where it belongs
10871 echo "$libmicrohttpd_PKG_ERRORS" >&5
10873 have_libmicrohttpd=false
10874 elif test $pkg_failed = untried; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10877 have_libmicrohttpd=false
10878 else
10879 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
10880 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10882 $as_echo "yes" >&6; }
10883 have_libmicrohttpd=true
10885 HAVE_LIBMICROHTTPD=$have_libmicrohttpd
10889 pkg_failed=no
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10891 $as_echo_n "checking for cairo... " >&6; }
10893 if test -n "$cairo_CFLAGS"; then
10894 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
10895 elif test -n "$PKG_CONFIG"; then
10896 if test -n "$PKG_CONFIG" && \
10897 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10898 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10899 ac_status=$?
10900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10901 test $ac_status = 0; }; then
10902 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10903 test "x$?" != "x0" && pkg_failed=yes
10904 else
10905 pkg_failed=yes
10907 else
10908 pkg_failed=untried
10910 if test -n "$cairo_LIBS"; then
10911 pkg_cv_cairo_LIBS="$cairo_LIBS"
10912 elif test -n "$PKG_CONFIG"; then
10913 if test -n "$PKG_CONFIG" && \
10914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10915 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10916 ac_status=$?
10917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10918 test $ac_status = 0; }; then
10919 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10920 test "x$?" != "x0" && pkg_failed=yes
10921 else
10922 pkg_failed=yes
10924 else
10925 pkg_failed=untried
10930 if test $pkg_failed = yes; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10934 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10935 _pkg_short_errors_supported=yes
10936 else
10937 _pkg_short_errors_supported=no
10939 if test $_pkg_short_errors_supported = yes; then
10940 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10941 else
10942 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10944 # Put the nasty error message in config.log where it belongs
10945 echo "$cairo_PKG_ERRORS" >&5
10947 have_cairo=false
10948 elif test $pkg_failed = untried; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10951 have_cairo=false
10952 else
10953 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
10954 cairo_LIBS=$pkg_cv_cairo_LIBS
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10956 $as_echo "yes" >&6; }
10957 have_cairo=true
10959 HAVE_CAIRO=$have_cairo
10962 enable_webapi=false
10963 if test "x$do_webapi" != "xno"; then :
10965 enable_webapi=true
10967 if test "$have_libmicrohttpd" != "true"
10968 then
10969 enable_webapi=false
10970 test "$do_webapi" != "check" && \
10971 as_fn_error $? "libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10972 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10973 then
10974 enable_webapi=false
10975 test "$do_webapi" != "check" && \
10976 as_fn_error $? "C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10982 enable_manager=false
10983 if test "x$do_manager" != "xno"; then :
10985 enable_manager=true
10987 if test "$target_os" = "mingw"
10988 then
10989 enable_manager=false
10990 test "$do_manager" != "check" && \
10991 as_fn_error $? "MinGW build, cannot enable daemon manager" "$LINENO" 5
10992 elif test "x$cxx" = "x"
10993 then
10994 enable_manager=false
10995 test "$do_manager" != "check" && \
10996 as_fn_error $? "C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10999 $as_echo_n "checking compilation features for daemon manager... " >&6; }
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11002 #ifndef _XOPEN_SOURCE
11003 #define _XOPEN_SOURCE 600
11004 #endif
11005 #include <stdio.h>
11008 main ()
11012 return 0;
11014 _ACEOF
11015 if ac_fn_c_try_compile "$LINENO"; then :
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017 $as_echo "yes" >&6; }
11018 else
11019 enable_manager=false
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11029 $as_echo_n "checking return type of signal handlers... " >&6; }
11030 if ${ac_cv_type_signal+:} false; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035 #include <sys/types.h>
11036 #include <signal.h>
11039 main ()
11041 return *(signal (0, 0)) (0) == 1;
11043 return 0;
11045 _ACEOF
11046 if ac_fn_c_try_compile "$LINENO"; then :
11047 ac_cv_type_signal=int
11048 else
11049 ac_cv_type_signal=void
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11054 $as_echo "$ac_cv_type_signal" >&6; }
11056 cat >>confdefs.h <<_ACEOF
11057 #define RETSIGTYPE $ac_cv_type_signal
11058 _ACEOF
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
11062 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
11063 if ${ac_cv_func_wait3_rusage+:} false; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 if test "$cross_compiling" = yes; then :
11067 ac_cv_func_wait3_rusage=no
11068 else
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071 $ac_includes_default
11072 #include <sys/time.h>
11073 #include <sys/resource.h>
11074 #include <sys/wait.h>
11075 /* HP-UX has wait3 but does not fill in rusage at all. */
11077 main ()
11079 struct rusage r;
11080 int i;
11081 /* Use a field that we can force nonzero --
11082 voluntary context switches.
11083 For systems like NeXT and OSF/1 that don't set it,
11084 also use the system CPU time. And page faults (I/O) for Linux. */
11085 r.ru_nvcsw = 0;
11086 r.ru_stime.tv_sec = 0;
11087 r.ru_stime.tv_usec = 0;
11088 r.ru_majflt = r.ru_minflt = 0;
11089 switch (fork ())
11091 case 0: /* Child. */
11092 sleep(1); /* Give up the CPU. */
11093 _exit(0);
11094 break;
11095 case -1: /* What can we do? */
11096 _exit(0);
11097 break;
11098 default: /* Parent. */
11099 wait3(&i, 0, &r);
11100 /* Avoid "text file busy" from rm on fast HP-UX machines. */
11101 sleep(2);
11102 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
11103 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
11106 _ACEOF
11107 if ac_fn_c_try_run "$LINENO"; then :
11108 ac_cv_func_wait3_rusage=yes
11109 else
11110 ac_cv_func_wait3_rusage=no
11112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11113 conftest.$ac_objext conftest.beam conftest.$ac_ext
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
11118 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
11119 if test $ac_cv_func_wait3_rusage = yes; then
11121 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
11125 for ac_func in vprintf
11126 do :
11127 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11128 if test "x$ac_cv_func_vprintf" = xyes; then :
11129 cat >>confdefs.h <<_ACEOF
11130 #define HAVE_VPRINTF 1
11131 _ACEOF
11133 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11134 if test "x$ac_cv_func__doprnt" = xyes; then :
11136 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11141 done
11144 for ac_func in mktime nanosleep usleep unsetenv
11145 do :
11146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11148 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11149 cat >>confdefs.h <<_ACEOF
11150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11151 _ACEOF
11154 done
11156 for ac_func in select socket gethostname getpeerucred getpeereid
11157 do :
11158 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11159 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11160 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11161 cat >>confdefs.h <<_ACEOF
11162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11163 _ACEOF
11166 done
11168 for ac_func in uname syslog __clone pipe2 fcntl ioctl
11169 do :
11170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11171 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11172 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11173 cat >>confdefs.h <<_ACEOF
11174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11175 _ACEOF
11178 done
11180 for ac_func in prctl setlinebuf waitpid atexit kill
11181 do :
11182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11184 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11185 cat >>confdefs.h <<_ACEOF
11186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11187 _ACEOF
11190 done
11192 for ac_func in chown fchmod getcwd scandir mkstemp
11193 do :
11194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11197 cat >>confdefs.h <<_ACEOF
11198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11199 _ACEOF
11202 done
11204 for ac_func in brk sbrk posix_memalign memalign valloc
11205 do :
11206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11207 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11208 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11209 cat >>confdefs.h <<_ACEOF
11210 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11211 _ACEOF
11214 done
11216 for ac_func in signal sighold sigrelse tcgetattr
11217 do :
11218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11221 cat >>confdefs.h <<_ACEOF
11222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11223 _ACEOF
11226 done
11228 for ac_func in regex regcmp regexec regcomp
11229 do :
11230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11232 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11233 cat >>confdefs.h <<_ACEOF
11234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11235 _ACEOF
11238 done
11240 for ac_func in strtod strtol strtoll strtoull strndup strchrnul
11241 do :
11242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11243 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11244 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11245 cat >>confdefs.h <<_ACEOF
11246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11247 _ACEOF
11250 done
11252 for ac_func in getuid getgid
11253 do :
11254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11256 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11257 cat >>confdefs.h <<_ACEOF
11258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11259 _ACEOF
11262 done
11264 for ac_func in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11265 do :
11266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11268 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11269 cat >>confdefs.h <<_ACEOF
11270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11271 _ACEOF
11274 done
11276 for ac_func in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11277 do :
11278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11281 cat >>confdefs.h <<_ACEOF
11282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11283 _ACEOF
11286 done
11288 for ac_func in sysinfo trace_back_stack backtrace
11289 do :
11290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11292 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11293 cat >>confdefs.h <<_ACEOF
11294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11295 _ACEOF
11298 done
11300 for ac_func in sendmsg recvmsg setns
11301 do :
11302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11305 cat >>confdefs.h <<_ACEOF
11306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11307 _ACEOF
11310 done
11313 if test $target_os != linux -a $target_os != freebsd -a $target_os != kfreebsd -a $target_os != netbsd; then
11314 for ac_func in readdir64
11315 do :
11316 ac_fn_c_check_func "$LINENO" "readdir64" "ac_cv_func_readdir64"
11317 if test "x$ac_cv_func_readdir64" = xyes; then :
11318 cat >>confdefs.h <<_ACEOF
11319 #define HAVE_READDIR64 1
11320 _ACEOF
11323 done
11327 if test $target_os = solaris
11328 then
11329 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11330 if test "x$ac_cv_type___int32_t" = xyes; then :
11332 else
11334 cat >>confdefs.h <<_ACEOF
11335 #define __int32_t int32_t
11336 _ACEOF
11340 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11341 if test "x$ac_cv_type___uint32_t" = xyes; then :
11343 else
11345 cat >>confdefs.h <<_ACEOF
11346 #define __uint32_t uint32_t
11347 _ACEOF
11351 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11352 if test "x$ac_cv_type___int64_t" = xyes; then :
11354 else
11356 cat >>confdefs.h <<_ACEOF
11357 #define __int64_t int64_t
11358 _ACEOF
11362 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11363 if test "x$ac_cv_type___uint64_t" = xyes; then :
11365 else
11367 cat >>confdefs.h <<_ACEOF
11368 #define __uint64_t uint64_t
11369 _ACEOF
11373 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11374 if test "x$ac_cv_type_uint_t" = xyes; then :
11376 else
11378 cat >>confdefs.h <<_ACEOF
11379 #define uint_t u_int32_t
11380 _ACEOF
11384 else
11385 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11386 if test "x$ac_cv_type___int32_t" = xyes; then :
11388 else
11390 cat >>confdefs.h <<_ACEOF
11391 #define __int32_t int
11392 _ACEOF
11396 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11397 if test "x$ac_cv_type___uint32_t" = xyes; then :
11399 else
11401 cat >>confdefs.h <<_ACEOF
11402 #define __uint32_t unsigned int
11403 _ACEOF
11407 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11408 if test "x$ac_cv_type___int64_t" = xyes; then :
11410 else
11412 cat >>confdefs.h <<_ACEOF
11413 #define __int64_t long long
11414 _ACEOF
11418 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11419 if test "x$ac_cv_type___uint64_t" = xyes; then :
11421 else
11423 cat >>confdefs.h <<_ACEOF
11424 #define __uint64_t unsigned long long
11425 _ACEOF
11429 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11430 if test "x$ac_cv_type_uint_t" = xyes; then :
11432 else
11434 cat >>confdefs.h <<_ACEOF
11435 #define uint_t unsigned int
11436 _ACEOF
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11443 $as_echo_n "checking for __psint_t ... " >&6; }
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h. */
11447 #include <sys/types.h>
11448 #include <stdlib.h>
11449 #include <stddef.h>
11452 main ()
11454 __psint_t psint;
11456 return 0;
11458 _ACEOF
11459 if ac_fn_c_try_compile "$LINENO"; then :
11461 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11463 $as_echo "yes" >&6; }
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11471 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11475 #include <stddef.h>
11476 #ifdef HAVE_MALLOC_H
11477 #include <malloc.h>
11478 #endif
11481 main ()
11483 ptrdiff_t ptrdiff;
11485 return 0;
11487 _ACEOF
11488 if ac_fn_c_try_compile "$LINENO"; then :
11490 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11500 $as_echo_n "checking for uid_t ... " >&6; }
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11504 #include <sys/types.h>
11505 #ifdef HAVE_PWD_H
11506 #include <pwd.h>
11507 #endif
11510 main ()
11512 uid_t uid;
11514 return 0;
11516 _ACEOF
11517 if ac_fn_c_try_compile "$LINENO"; then :
11519 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521 $as_echo "yes" >&6; }
11522 else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11528 $as_echo_n "checking for gid_t ... " >&6; }
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11532 #include <sys/types.h>
11533 #ifdef HAVE_GRP_H
11534 #include <grp.h>
11535 #endif
11538 main ()
11540 gid_t gid;
11542 return 0;
11544 _ACEOF
11545 if ac_fn_c_try_compile "$LINENO"; then :
11547 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11549 $as_echo "yes" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11556 $as_echo_n "checking for SID ... " >&6; }
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11560 #ifdef HAVE_WINDOWS_H
11561 #include <windows.h>
11562 #endif
11565 main ()
11567 SID sid;
11569 return 0;
11571 _ACEOF
11572 if ac_fn_c_try_compile "$LINENO"; then :
11574 $as_echo "#define HAVE_SID 1" >>confdefs.h
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11576 $as_echo "yes" >&6; }
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11584 $as_echo_n "checking for socklen_t ... " >&6; }
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11588 #include <sys/types.h>
11589 #ifdef HAVE_SYS_SOCKET_H
11590 #include <sys/socket.h>
11591 #endif
11594 main ()
11596 socklen_t len;
11598 return 0;
11600 _ACEOF
11601 if ac_fn_c_try_compile "$LINENO"; then :
11603 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11605 $as_echo "yes" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11615 #include <stdio.h>
11618 main ()
11620 long long x = 0LL;
11622 return 0;
11624 _ACEOF
11625 if ac_fn_c_try_compile "$LINENO"; then :
11627 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11635 #include <stdlib.h>
11636 #include <unistd.h>
11639 main ()
11641 char **x = _environ;
11643 return 0;
11645 _ACEOF
11646 if ac_fn_c_try_link "$LINENO"; then :
11648 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11655 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 #ifdef HAVE_SYS_PRCTL_H
11660 #include <sys/prctl.h>
11661 #endif
11664 main ()
11666 int i = PR_TERMCHILD;
11668 return 0;
11670 _ACEOF
11671 if ac_fn_c_try_compile "$LINENO"; then :
11673 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675 $as_echo "yes" >&6; }
11676 else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11683 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11687 #ifdef HAVE_SYS_PRCTL_H
11688 #include <sys/prctl.h>
11689 #endif
11692 main ()
11694 int i = PR_SET_PDEATHSIG;
11696 return 0;
11698 _ACEOF
11699 if ac_fn_c_try_compile "$LINENO"; then :
11701 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11703 $as_echo "yes" >&6; }
11704 else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11711 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11712 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11717 #include <sys/types.h>
11718 #include <termios.h>
11719 #ifdef TIOCGWINSZ
11721 #endif
11723 _ACEOF
11724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11725 $EGREP "yes" >/dev/null 2>&1; then :
11726 ac_cv_sys_tiocgwinsz_in_termios_h=yes
11727 else
11728 ac_cv_sys_tiocgwinsz_in_termios_h=no
11730 rm -f conftest*
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11734 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11736 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11738 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11739 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
11740 $as_echo_n "(cached) " >&6
11741 else
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744 #include <sys/types.h>
11745 #include <sys/ioctl.h>
11746 #ifdef TIOCGWINSZ
11748 #endif
11750 _ACEOF
11751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11752 $EGREP "yes" >/dev/null 2>&1; then :
11753 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
11754 else
11755 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11757 rm -f conftest*
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11761 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11763 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11765 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11772 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11773 save_CFLAGS="$CFLAGS"
11774 CFLAGS="-rdynamic"
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h. */
11779 main ()
11783 return 0;
11785 _ACEOF
11786 if ac_fn_c_try_link "$LINENO"; then :
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788 $as_echo "yes" >&6; }
11789 rdynamic_flag=-rdynamic
11790 else
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11793 rdynamic_flag=
11796 rm -f core conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11798 CFLAGS="$save_CFLAGS"
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11803 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11804 cat <<End-of-File >conftest.c
11805 #include <stdlib.h>
11806 #include <unistd.h>
11807 #include <dirent.h>
11808 static int
11809 my_select(const struct dirent *foo) { return 0; }
11810 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11811 End-of-File
11812 (eval $ac_compile) 2>conftest.out
11813 cat conftest.out >&5
11814 if test -s conftest.out
11815 then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 else
11820 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11825 rm -f conftest.*
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11828 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11829 cat <<End-of-File >conftest.c
11830 #include <stdlib.h>
11831 #include <unistd.h>
11832 #include <dirent.h>
11833 int main() { struct dirent d; d.d_off = 0; }
11834 End-of-File
11835 (eval $ac_compile) 2>conftest.out
11836 cat conftest.out >&5
11837 if test -s conftest.out
11838 then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 else
11843 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11846 $as_echo "yes" >&6; }
11848 rm -f conftest.*
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11851 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11852 if test "$cross_compiling" = "yes"; then
11853 ans=$printf_p_prefix
11854 echo "cross-compile -> \"$ans\"" >&5
11855 else
11856 cat <<End-of-File >conftest.c
11857 #include <stdio.h>
11858 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11859 End-of-File
11860 (eval $ac_compile) 2>&5
11861 (eval $ac_link) 2>&5
11862 ans=`./conftest`
11863 echo "./conftest -> \"$ans\"" >&5
11865 case "$ans"
11867 0x*)
11869 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872 $as_echo "yes" >&6; }
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11878 esac
11879 rm -rf conftest conftest.*
11881 _do_type()
11883 # need to deal with this sort of cpp output ...
11884 # typedef long pid_t;
11885 # typedef unsigned int pid_t;
11886 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11887 # __extension__ typedef int pid_t;
11888 # typedef foo_t
11889 # pid_t;
11890 # typedef struct {
11891 # ....
11892 # } pid_t;
11893 # typedef ... *pid;
11894 # and chaining of the form
11895 # typedef long __pid_t;
11896 # typedef __pid_t pid_t;
11898 _raw=`$CPP conftest.c \
11899 | $SED \
11900 -e 's/[ ]__attribute__ ((.*));/;/' \
11901 -e 's/__extension__[ ][ ]*//' \
11902 | $AWK '
11903 /bozo/ { print; next }
11904 $1 == "typedef" { printf "%s",$0
11905 if ($NF ~ /;$/) {
11906 print ""
11907 next
11909 wantsemi = 1
11910 if ($0 ~ /{/) depth = 1
11911 next
11913 wantsemi == 1 { printf " %s",$0
11914 if ($0 ~ /{/) depth++
11915 if (depth) {
11916 if ($0 ~ /}/) depth--
11917 if (depth > 0) next
11919 if ($NF ~ /;$/) {
11920 print ""
11921 wantsemi = 0
11922 next
11924 }' \
11925 | $SED \
11926 -e 's/\*/* /g' \
11927 -e 's/^[ ]*//' \
11928 -e 's/;[ ]*$//' \
11929 | $AWK '
11930 $1 == "typedef" { map[$NF] = ""
11931 for (i = 2; i < NF; i++) {
11932 if (i == 2)
11933 map[$NF] = $i
11934 else
11935 map[$NF] = map[$NF] " " $i
11937 print $NF " -> " map[$NF] >"conftest.debug"
11938 next
11940 $2 == "bozo" { t = $1
11941 printf "best guess: %s",t >"conftest.debug"
11942 while (map[t] != "") {
11943 t = map[t]
11944 printf " -> %s",t >"conftest.debug"
11946 print "" >"conftest.debug"
11947 print t
11948 exit
11950 case "$_raw"
11952 int)
11953 _fmt='"d"'
11955 unsigned|'unsigned int')
11956 _fmt='"u"'
11958 long|'long int')
11959 _fmt='"ld"'
11961 'long long'|'long long int')
11962 if test $target_os = mingw; then
11963 _fmt='"I64d"'
11964 else
11965 _fmt='"lld"'
11968 'unsigned long'|'unsigned long int'|'long unsigned int')
11969 _fmt='"lu"'
11971 'unsigned long long'|'unsigned long long int')
11972 if test $target_os = mingw; then
11973 _fmt='"I64u"'
11974 else
11975 _fmt='"llu"'
11978 *\*) # pointer to a something
11979 _fmt='"p"'
11981 struct\ *) # not much can be done here ...
11982 _fmt='"p"'
11985 echo
11986 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11987 echo "... typedef mapping ..."
11988 cat conftest.debug
11989 rm -rf conftest conftest.*
11990 exit 1
11992 esac
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11996 $as_echo_n "checking printf type for pid_t... " >&6; }
11997 if test "$cross_compiling" = "yes"; then
11998 ans=$printf_fmt_pid
11999 echo "cross-compile -> \"$ans\"" >&5
12000 fmt_pid="$ans"
12001 else
12002 cat <<End-of-File >conftest.c
12003 #include <sys/types.h>
12004 #include <unistd.h>
12005 pid_t bozo;
12006 End-of-File
12007 _do_type
12008 fmt_pid="$_fmt"
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
12011 $as_echo "$fmt_pid" >&6; }
12013 rm -rf conftest.c conftest.debug
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
12016 $as_echo_n "checking printf type for int64_t ... " >&6; }
12017 if test "$cross_compiling" = "yes"; then
12018 ans=$printf_fmt_int64
12019 echo "cross-compile -> \"$ans\"" >&5
12020 else
12021 cat <<End-of-File >conftest.c
12022 #include <stdio.h>
12023 #include <stdint.h>
12024 #include <inttypes.h>
12025 int main()
12027 printf("\"%s\"\n", __PRI64_PREFIX "d");
12028 return(0);
12030 End-of-File
12031 ans=''
12032 (eval $ac_link) 2>&5
12033 if test -x ./conftest
12034 then
12035 ans=`./conftest`
12036 echo "./conftest -> \"$ans\"" >&5
12038 if test -z "$ans"
12039 then
12040 cat <<End-of-File >conftest.c
12041 #include <stdio.h>
12042 #include <stdint.h>
12043 #include <string.h>
12044 int main()
12046 char buf[17];
12047 int64_t bozo = 0x12345678abcdLL;
12048 sprintf(buf, "%lx", bozo);
12049 if (strcmp(buf, "12345678abcd") == 0)
12050 printf("\"ld\"\n");
12051 else {
12052 sprintf(buf, "%llx", bozo);
12053 if (strcmp(buf, "12345678abcd") == 0)
12054 printf("\"lld\"\n");
12056 return(0);
12058 End-of-File
12059 (eval $ac_link) 2>&5
12060 if test -x ./conftest
12061 then
12062 ans=`./conftest`
12063 echo "./conftest -> \"$ans\"" >&5
12067 if test -z "$ans"
12068 then
12069 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
12070 rm -rf conftest conftest.*
12071 exit 1
12073 fmt_int64="$ans"
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
12075 $as_echo "\"$fmt_int64\"" >&6; }
12077 fmt_uint64=`echo $fmt_int64 | sed -e 's/d"/u"/'`
12079 rm -rf conftest.* conftest
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
12082 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
12083 if test "$cross_compiling" = "yes"; then
12084 ans=$strtoint64
12085 echo "cross-compile -> \"$ans\"" >&5
12086 else
12087 cat <<End-of-File >conftest.c
12088 #include <stdio.h>
12089 #include <stdlib.h>
12090 main()
12092 long long int value = -1;
12093 value = strtol("1234567812345678", NULL, 16);
12094 if (value == 0x1234567812345678LL) {
12095 printf("strotol\n");
12096 exit(0);
12098 value = strtoll("1234567812345678", NULL, 16);
12099 if (value == 0x1234567812345678LL) {
12100 printf("strtoll\n");
12101 exit(0);
12103 exit(1);
12105 End-of-File
12106 (eval $ac_compile) 2>&5
12107 (eval $ac_link) 2>&5
12108 ans=`./conftest`
12109 echo "./conftest -> \"$ans\"" >&5
12111 case "$ans"
12113 strtol)
12114 $as_echo "#define strtoint64 strtol" >>confdefs.h
12116 $as_echo "#define strtouint64 strtoul" >>confdefs.h
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
12119 $as_echo "strtol" >&6; }
12121 strtoll)
12122 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12124 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
12127 $as_echo "strtoll" >&6; }
12130 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12132 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
12135 $as_echo "assuming strtoll" >&6; }
12137 esac
12138 rm -rf conftest conftest.*
12140 if test "$do_threads" = "check" -o "$do_threads" = "yes"
12141 then
12142 for ac_header in pthread.h
12143 do :
12144 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12145 if test "x$ac_cv_header_pthread_h" = xyes; then :
12146 cat >>confdefs.h <<_ACEOF
12147 #define HAVE_PTHREAD_H 1
12148 _ACEOF
12150 else
12152 if test "$do_threads" = "yes"
12153 then
12154 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
12159 done
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
12163 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #include <pthread.h>
12168 main ()
12170 pthread_mutex_t mymutex;
12172 return 0;
12174 _ACEOF
12175 if ac_fn_c_try_compile "$LINENO"; then :
12177 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12179 $as_echo "yes" >&6; }
12180 else
12182 if test "$do_threads" = "yes"
12183 then
12184 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
12185 else
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
12194 $as_echo_n "checking where pthread_create() is defined... " >&6; }
12195 for cand in "" pthreads pthread ; do
12196 savedLIBS=$LIBS
12197 if test -n "$cand"
12198 then
12199 LIBS=`echo $LIBS -l$cand`
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12204 #include <pthread.h>
12207 main ()
12210 pthread_create(NULL, NULL, NULL, NULL);
12213 return 0;
12215 _ACEOF
12216 if ac_fn_c_try_link "$LINENO"; then :
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12218 $as_echo "lib${cand:-c}" >&6; }
12219 if test -z "$cand"
12220 then
12221 lib_for_pthreads="$cand"
12222 else
12223 lib_for_pthreads="-l$cand"
12225 LIBS=$savedLIBS
12226 break
12228 rm -f core conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$savedLIBS
12231 done
12234 if test "$ac_cv_header_pthread_h" = "yes"
12235 then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12237 $as_echo_n "checking printf type for pthread_t... " >&6; }
12238 cat <<End-of-File >conftest.c
12239 #include <pthread.h>
12240 pthread_t bozo;
12241 End-of-File
12242 _do_type
12243 fmt_pthread="$_fmt"
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12245 $as_echo "$fmt_pthread" >&6; }
12247 rm -rf conftest.c conftest.debug
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12250 $as_echo_n "checking if compiler supports __thread... " >&6; }
12251 if test $target_os = netbsd
12252 then
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255 #include <pthread.h>
12256 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12257 broken!
12258 #else
12259 __thread int x;
12260 #endif
12262 main ()
12266 return 0;
12268 _ACEOF
12269 if ac_fn_c_try_compile "$LINENO"; then :
12271 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273 $as_echo "yes" >&6; }
12274 else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 else
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12282 #include <pthread.h>
12283 __thread int x;
12285 main ()
12289 return 0;
12291 _ACEOF
12292 if ac_fn_c_try_compile "$LINENO"; then :
12294 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12296 $as_echo "yes" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12305 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308 #include <pthread.h>
12310 main ()
12312 pthread_barrier_t mybarrier;
12314 return 0;
12316 _ACEOF
12317 if ac_fn_c_try_compile "$LINENO"; then :
12319 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12331 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12332 if test "$cross_compiling" = "yes"; then
12333 ans=$sizeof_suseconds_t
12334 echo "cross-compile -> \"$ans\"" >&5
12335 else
12336 cat <<End-of-File >conftest.c
12337 #include <sys/time.h>
12338 main() { printf("%d", (int)sizeof(suseconds_t)); }
12339 End-of-File
12340 (eval $ac_compile) 2>&5
12341 (eval $ac_link) 2>&5
12342 ans=`./conftest`
12343 echo "./conftest -> \"$ans\"" >&5
12344 rm -rf conftest conftest.*
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12347 $as_echo "$ans" >&6; }
12349 cat >>confdefs.h <<_ACEOF
12350 #define SIZEOF_SUSECONDS_T $ans
12351 _ACEOF
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12355 $as_echo_n "checking sizeof time_t... " >&6; }
12356 if test "$cross_compiling" = "yes"; then
12357 ans=$sizeof_time_t
12358 echo "cross-compile -> \"$ans\"" >&5
12359 else
12360 cat <<End-of-File >conftest.c
12361 #include <sys/time.h>
12362 main() { printf("%d", (int)sizeof(time_t)); }
12363 End-of-File
12364 (eval $ac_compile) 2>&5
12365 (eval $ac_link) 2>&5
12366 ans=`./conftest`
12367 echo "./conftest -> \"$ans\"" >&5
12368 rm -rf conftest conftest.*
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12371 $as_echo "$ans" >&6; }
12373 cat >>confdefs.h <<_ACEOF
12374 #define SIZEOF_TIME_T $ans
12375 _ACEOF
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12379 $as_echo_n "checking sizeof long... " >&6; }
12380 if test "$cross_compiling" = "yes"; then
12381 ans=$sizeof_long
12382 echo "cross-compile -> \"$ans\"" >&5
12383 else
12384 cat <<End-of-File >conftest.c
12385 #include <stdio.h>
12386 main() { printf("%d", (int)sizeof(long)); }
12387 End-of-File
12388 (eval $ac_compile) 2>&5
12389 (eval $ac_link) 2>&5
12390 ans=`./conftest`
12391 echo "./conftest -> \"$ans\"" >&5
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12394 $as_echo "$ans" >&6; }
12395 if test "$ans" = 4; then
12397 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12399 elif test "$ans" = 8; then
12401 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12403 else
12404 echo
12405 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12406 echo "sizeof(char *) -> $ans"
12407 rm -rf conftest conftest.*
12408 exit 1
12410 rm -rf conftest conftest.*
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12413 $as_echo_n "checking sizeof pointer... " >&6; }
12414 if test "$cross_compiling" = "yes"; then
12415 ans=$sizeof_pointer
12416 echo "cross-compile -> \"$ans\"" >&5
12417 else
12418 cat <<End-of-File >conftest.c
12419 #include <stdio.h>
12420 main() { printf("%d", (int)sizeof(char *)); }
12421 End-of-File
12422 (eval $ac_compile) 2>&5
12423 (eval $ac_link) 2>&5
12424 ans=`./conftest`
12425 echo "./conftest -> \"$ans\"" >&5
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12428 $as_echo "$ans" >&6; }
12429 if test "$ans" = 4; then
12431 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12433 PCP_PTR_SIZE=32
12434 elif test "$ans" = 8; then
12436 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12438 PCP_PTR_SIZE=64
12439 else
12440 echo
12441 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12442 echo "sizeof(char *) -> $ans"
12443 rm -rf conftest conftest.*
12444 exit 1
12446 rm -rf conftest conftest.*
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12449 $as_echo_n "checking sizeof int... " >&6; }
12450 if test "$cross_compiling" = "yes"; then
12451 ans=$sizeof_int
12452 echo "cross-compile -> \"$ans\"" >&5
12453 else
12454 cat <<End-of-File >conftest.c
12455 #include <stdio.h>
12456 main() { printf("%d", (int)sizeof(int)); }
12457 End-of-File
12458 (eval $ac_compile) 2>&5
12459 (eval $ac_link) 2>&5
12460 ans=`./conftest`
12461 echo "./conftest -> \"$ans\"" >&5
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12464 $as_echo "$ans" >&6; }
12465 if test "$ans" != 4
12466 then
12467 echo
12468 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12469 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12470 echo " the over-the-wire PDU formats"
12471 rm -rf conftest conftest.*
12472 exit 1
12474 rm -rf conftest conftest.*
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12477 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12478 if test "$cross_compiling" = "yes"; then
12479 ans=$bit_field_scheme
12480 echo "cross-compile -> \"$ans\"" >&5
12481 else
12482 cat <<End-of-File >conftest.c
12483 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12484 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12485 End-of-File
12486 (eval $ac_compile) 2>&5
12487 (eval $ac_link) 2>&5
12488 ans=`./conftest`
12489 echo "./conftest -> \"$ans\"" >&5
12491 case "$ans"
12493 1200*|*0012)
12494 # left-to-right starting from MSB (SGI cc on MIPS), or
12495 # left-to-right ending at LSB
12497 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500 $as_echo "yes" >&6; }
12502 2100*|*0021)
12503 # right-to-left ending at MSB, or
12504 # right-to-left starting from LSB (gcc in Intel)
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12510 $as_echo "unknown" >&6; }
12511 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12512 rm -f conftest conftest.*
12513 exit 1
12515 esac
12516 rm -rf conftest conftest.*
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12521 #include <stdlib.h>
12522 #include <unistd.h>
12525 main ()
12528 __uint64_t x = 0;
12529 double y = (double)x;
12532 return 0;
12534 _ACEOF
12535 if ac_fn_c_try_link "$LINENO"; then :
12537 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12540 rm -f core conftest.err conftest.$ac_objext \
12541 conftest$ac_exeext conftest.$ac_ext
12543 for ac_func in basename
12544 do :
12545 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12546 if test "x$ac_cv_func_basename" = xyes; then :
12547 cat >>confdefs.h <<_ACEOF
12548 #define HAVE_BASENAME 1
12549 _ACEOF
12552 done
12554 if test $ac_cv_func_basename = yes
12555 then
12557 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12560 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12562 lib_for_basename=""
12563 else
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12565 $as_echo_n "checking for basename in -lgen... " >&6; }
12566 if ${ac_cv_lib_gen_basename+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568 else
12569 ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lgen $LIBS"
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12574 /* Override any GCC internal prototype to avoid an error.
12575 Use char because int might match the return type of a GCC
12576 builtin and then its argument prototype would still apply. */
12577 #ifdef __cplusplus
12578 extern "C"
12579 #endif
12580 char basename ();
12582 main ()
12584 return basename ();
12586 return 0;
12588 _ACEOF
12589 if ac_fn_c_try_link "$LINENO"; then :
12590 ac_cv_lib_gen_basename=yes
12591 else
12592 ac_cv_lib_gen_basename=no
12594 rm -f core conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
12596 LIBS=$ac_check_lib_save_LIBS
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12599 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12600 if test "x$ac_cv_lib_gen_basename" = xyes; then :
12601 cat >>confdefs.h <<_ACEOF
12602 #define HAVE_LIBGEN 1
12603 _ACEOF
12605 LIBS="-lgen $LIBS"
12609 if test $ac_cv_lib_gen_basename = yes
12610 then
12612 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12615 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12617 lib_for_basename="-lgen"
12618 else
12619 lib_for_basename="-lpcp"
12624 lib_for_clock_gettime=
12625 for ac_func in clock_gettime
12626 do :
12627 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12628 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12629 cat >>confdefs.h <<_ACEOF
12630 #define HAVE_CLOCK_GETTIME 1
12631 _ACEOF
12634 done
12636 if test $ac_cv_func_clock_gettime = no
12637 then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12639 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12640 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 ac_check_lib_save_LIBS=$LIBS
12644 LIBS="-lrt $LIBS"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12648 /* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12651 #ifdef __cplusplus
12652 extern "C"
12653 #endif
12654 char clock_gettime ();
12656 main ()
12658 return clock_gettime ();
12660 return 0;
12662 _ACEOF
12663 if ac_fn_c_try_link "$LINENO"; then :
12664 ac_cv_lib_rt_clock_gettime=yes
12665 else
12666 ac_cv_lib_rt_clock_gettime=no
12668 rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670 LIBS=$ac_check_lib_save_LIBS
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12673 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12674 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12675 cat >>confdefs.h <<_ACEOF
12676 #define HAVE_LIBRT 1
12677 _ACEOF
12679 LIBS="-lrt $LIBS"
12683 if test $ac_cv_lib_rt_clock_gettime = yes
12684 then
12686 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12688 lib_for_rt=-lrt
12693 lib_for_dlopen=
12694 for ac_func in dlopen
12695 do :
12696 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12697 if test "x$ac_cv_func_dlopen" = xyes; then :
12698 cat >>confdefs.h <<_ACEOF
12699 #define HAVE_DLOPEN 1
12700 _ACEOF
12703 done
12705 if test $ac_cv_func_dlopen = no
12706 then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12708 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12709 if ${ac_cv_lib_dl_dlopen+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 ac_check_lib_save_LIBS=$LIBS
12713 LIBS="-ldl $LIBS"
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12717 /* Override any GCC internal prototype to avoid an error.
12718 Use char because int might match the return type of a GCC
12719 builtin and then its argument prototype would still apply. */
12720 #ifdef __cplusplus
12721 extern "C"
12722 #endif
12723 char dlopen ();
12725 main ()
12727 return dlopen ();
12729 return 0;
12731 _ACEOF
12732 if ac_fn_c_try_link "$LINENO"; then :
12733 ac_cv_lib_dl_dlopen=yes
12734 else
12735 ac_cv_lib_dl_dlopen=no
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 LIBS=$ac_check_lib_save_LIBS
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12742 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12743 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12744 cat >>confdefs.h <<_ACEOF
12745 #define HAVE_LIBDL 1
12746 _ACEOF
12748 LIBS="-ldl $LIBS"
12752 if test $ac_cv_lib_dl_dlopen = yes
12753 then
12755 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12757 lib_for_dlopen=-ldl
12762 lib_for_math=
12763 for ac_func in flog10
12764 do :
12765 ac_fn_c_check_func "$LINENO" "flog10" "ac_cv_func_flog10"
12766 if test "x$ac_cv_func_flog10" = xyes; then :
12767 cat >>confdefs.h <<_ACEOF
12768 #define HAVE_FLOG10 1
12769 _ACEOF
12772 done
12774 if test $ac_cv_func_flog10 = no
12775 then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12777 $as_echo_n "checking for flog10 in -lm... " >&6; }
12778 if ${ac_cv_lib_m_flog10+:} false; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 ac_check_lib_save_LIBS=$LIBS
12782 LIBS="-lm $LIBS"
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12786 /* Override any GCC internal prototype to avoid an error.
12787 Use char because int might match the return type of a GCC
12788 builtin and then its argument prototype would still apply. */
12789 #ifdef __cplusplus
12790 extern "C"
12791 #endif
12792 char flog10 ();
12794 main ()
12796 return flog10 ();
12798 return 0;
12800 _ACEOF
12801 if ac_fn_c_try_link "$LINENO"; then :
12802 ac_cv_lib_m_flog10=yes
12803 else
12804 ac_cv_lib_m_flog10=no
12806 rm -f core conftest.err conftest.$ac_objext \
12807 conftest$ac_exeext conftest.$ac_ext
12808 LIBS=$ac_check_lib_save_LIBS
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12811 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12812 if test "x$ac_cv_lib_m_flog10" = xyes; then :
12813 cat >>confdefs.h <<_ACEOF
12814 #define HAVE_LIBM 1
12815 _ACEOF
12817 LIBS="-lm $LIBS"
12821 if test $ac_cv_lib_m_flog10 = yes
12822 then
12824 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12826 lib_for_math=-lm
12828 else
12830 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12833 for ac_func in pow
12834 do :
12835 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12836 if test "x$ac_cv_func_pow" = xyes; then :
12837 cat >>confdefs.h <<_ACEOF
12838 #define HAVE_POW 1
12839 _ACEOF
12842 done
12844 if test $ac_cv_func_pow = no
12845 then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12847 $as_echo_n "checking for pow in -lm... " >&6; }
12848 if ${ac_cv_lib_m_pow+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 ac_check_lib_save_LIBS=$LIBS
12852 LIBS="-lm $LIBS"
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12856 /* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 char pow ();
12864 main ()
12866 return pow ();
12868 return 0;
12870 _ACEOF
12871 if ac_fn_c_try_link "$LINENO"; then :
12872 ac_cv_lib_m_pow=yes
12873 else
12874 ac_cv_lib_m_pow=no
12876 rm -f core conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
12878 LIBS=$ac_check_lib_save_LIBS
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12881 $as_echo "$ac_cv_lib_m_pow" >&6; }
12882 if test "x$ac_cv_lib_m_pow" = xyes; then :
12883 cat >>confdefs.h <<_ACEOF
12884 #define HAVE_LIBM 1
12885 _ACEOF
12887 LIBS="-lm $LIBS"
12891 if test $ac_cv_lib_m_pow = yes
12892 then
12894 $as_echo "#define HAVE_POW 1" >>confdefs.h
12896 lib_for_math=-lm
12898 else
12900 $as_echo "#define HAVE_POW 1" >>confdefs.h
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12904 $as_echo_n "checking for fpclassify()... " >&6; }
12905 ac_cv_func_fpclassify=no
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12909 #include <math.h>
12912 main ()
12915 double x = 123.456;
12916 if (fpclassify(x) == FP_NAN) exit(1);
12919 return 0;
12921 _ACEOF
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ac_cv_func_fpclassify=yes
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12928 $as_echo "$ac_cv_func_fpclassify" >&6; }
12929 if test $ac_cv_func_fpclassify = no
12930 then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12932 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12933 savedLIBS=$LIBS
12934 LIBS=-lm
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12938 #include <math.h>
12941 main ()
12944 double x = 123.456;
12945 if (fpclassify(x) == FP_NAN) exit(1);
12948 return 0;
12950 _ACEOF
12951 if ac_fn_c_try_link "$LINENO"; then :
12952 ac_cv_func_fpclassify=yes
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12957 $as_echo "$ac_cv_func_fpclassify" >&6; }
12958 if test $ac_cv_func_fpclassify = yes
12959 then
12960 lib_for_math=-lm
12962 LIBS=$savedLIBS
12964 if test $ac_cv_func_fpclassify = yes
12965 then
12967 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12969 else
12970 for ac_func in isnan
12971 do :
12972 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12973 if test "x$ac_cv_func_isnan" = xyes; then :
12974 cat >>confdefs.h <<_ACEOF
12975 #define HAVE_ISNAN 1
12976 _ACEOF
12979 done
12981 if test $ac_cv_func_isnan = no
12982 then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12984 $as_echo_n "checking for isnan in -lm... " >&6; }
12985 if ${ac_cv_lib_m_isnan+:} false; then :
12986 $as_echo_n "(cached) " >&6
12987 else
12988 ac_check_lib_save_LIBS=$LIBS
12989 LIBS="-lm $LIBS"
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12993 /* Override any GCC internal prototype to avoid an error.
12994 Use char because int might match the return type of a GCC
12995 builtin and then its argument prototype would still apply. */
12996 #ifdef __cplusplus
12997 extern "C"
12998 #endif
12999 char isnan ();
13001 main ()
13003 return isnan ();
13005 return 0;
13007 _ACEOF
13008 if ac_fn_c_try_link "$LINENO"; then :
13009 ac_cv_lib_m_isnan=yes
13010 else
13011 ac_cv_lib_m_isnan=no
13013 rm -f core conftest.err conftest.$ac_objext \
13014 conftest$ac_exeext conftest.$ac_ext
13015 LIBS=$ac_check_lib_save_LIBS
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13018 $as_echo "$ac_cv_lib_m_isnan" >&6; }
13019 if test "x$ac_cv_lib_m_isnan" = xyes; then :
13020 cat >>confdefs.h <<_ACEOF
13021 #define HAVE_LIBM 1
13022 _ACEOF
13024 LIBS="-lm $LIBS"
13028 if test $ac_cv_lib_m_isnan = yes
13029 then
13031 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13033 lib_for_math=-lm
13036 for ac_func in isnanf
13037 do :
13038 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
13039 if test "x$ac_cv_func_isnanf" = xyes; then :
13040 cat >>confdefs.h <<_ACEOF
13041 #define HAVE_ISNANF 1
13042 _ACEOF
13045 done
13047 if test $ac_cv_func_isnanf = no
13048 then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
13050 $as_echo_n "checking for isnanf in -lm... " >&6; }
13051 if ${ac_cv_lib_m_isnanf+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 ac_check_lib_save_LIBS=$LIBS
13055 LIBS="-lm $LIBS"
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13059 /* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13062 #ifdef __cplusplus
13063 extern "C"
13064 #endif
13065 char isnanf ();
13067 main ()
13069 return isnanf ();
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 ac_cv_lib_m_isnanf=yes
13076 else
13077 ac_cv_lib_m_isnanf=no
13079 rm -f core conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13081 LIBS=$ac_check_lib_save_LIBS
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
13084 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
13085 if test "x$ac_cv_lib_m_isnanf" = xyes; then :
13086 cat >>confdefs.h <<_ACEOF
13087 #define HAVE_LIBM 1
13088 _ACEOF
13090 LIBS="-lm $LIBS"
13094 if test $ac_cv_lib_m_isnanf = yes
13095 then
13097 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
13099 lib_for_math=-lm
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13107 #include <signal.h>
13109 main ()
13111 SIG_PF x;
13113 return 0;
13115 _ACEOF
13116 if ac_fn_c_try_link "$LINENO"; then :
13118 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
13121 rm -f core conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13126 #include <signal.h>
13128 main ()
13130 int x = SA_SIGINFO;
13132 return 0;
13134 _ACEOF
13135 if ac_fn_c_try_link "$LINENO"; then :
13137 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
13140 rm -f core conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145 #include <signal.h>
13147 main ()
13149 int x = SIGPIPE;
13151 return 0;
13153 _ACEOF
13154 if ac_fn_c_try_link "$LINENO"; then :
13156 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
13159 rm -f core conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164 #include <signal.h>
13166 main ()
13168 int x = SIGHUP;
13170 return 0;
13172 _ACEOF
13173 if ac_fn_c_try_link "$LINENO"; then :
13175 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 #include <signal.h>
13185 main ()
13187 int x = SIGBUS;
13189 return 0;
13191 _ACEOF
13192 if ac_fn_c_try_link "$LINENO"; then :
13194 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
13197 rm -f core conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202 #include <sys/wait.h>
13204 main ()
13206 typedef void (*SIGRET)(int);
13207 SIGRET x = SIG_IGN;
13210 return 0;
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13215 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13221 have_stat_type=false
13222 have_stat_name=false
13223 if test $have_stat_name = false
13224 then
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13227 #include <sys/stat.h>
13229 _ACEOF
13230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13231 $EGREP "[ ]st_mtimespec" >/dev/null 2>&1; then :
13232 have_stat_name=true;
13234 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13237 rm -f conftest*
13240 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
13241 then
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13244 #include <sys/stat.h>
13246 _ACEOF
13247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13248 $EGREP "[ ]st_mtime" >/dev/null 2>&1; then :
13249 have_stat_name=true;
13251 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13254 rm -f conftest*
13257 if test $have_stat_type = false
13258 then
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261 #include <sys/stat.h>
13263 _ACEOF
13264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13265 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13266 have_stat_type=true;
13268 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13271 rm -f conftest*
13274 if test $have_stat_type = false
13275 then
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 #include <sys/stat.h>
13280 _ACEOF
13281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13282 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13283 have_stat_type=true;
13285 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13288 rm -f conftest*
13291 if test $have_stat_type = false
13292 then
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295 #include <sys/stat.h>
13297 _ACEOF
13298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13299 $EGREP "timespec[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13300 have_stat_type=true;
13302 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13305 rm -f conftest*
13308 if test $have_stat_type = false
13309 then
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13312 #include <sys/stat.h>
13314 _ACEOF
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316 $EGREP "time_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13317 have_stat_type=true;
13319 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13322 rm -f conftest*
13325 if test $have_stat_type = false
13326 then
13327 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13328 rm -rf conftest conftest.*
13329 exit 1
13333 pcp_etc_dir=`eval echo $sysconfdir`
13334 pcp_etc_dir=`eval echo $pcp_etc_dir`
13336 pcp_saslconf_dir=`eval echo $sysconfdir/sasl2`
13337 pcp_saslconf_dir=`eval echo $pcp_saslconf_dir`
13339 pcp_sysconf_dir=`eval echo $sysconfdir/pcp`
13340 pcp_sysconf_dir=`eval echo $pcp_sysconf_dir`
13342 pcp_pmcdconf_path=$pcp_sysconf_dir/pmcd/pmcd.conf
13343 pcp_pmcdrclocal_path=$pcp_sysconf_dir/pmcd/rc.local
13344 pcp_pmcdoptions_path=$pcp_sysconf_dir/pmcd/pmcd.options
13345 pcp_pmwebdoptions_path=$pcp_sysconf_dir/pmwebd/pmwebd.options
13346 pcp_pmmgroptions_path=$pcp_sysconf_dir/pmmgr/pmmgr.options
13347 pcp_pmproxyoptions_path=$pcp_sysconf_dir/pmproxy/pmproxy.options
13348 pcp_pmiecontrol_path=$pcp_sysconf_dir/pmie/control
13349 pcp_pmsnapcontrol_path=$pcp_sysconf_dir/pmsnap/control
13350 pcp_pmloggercontrol_path=$pcp_sysconf_dir/pmlogger/control
13361 pcp_share_dir=`eval echo $datarootdir/pcp`
13362 pcp_share_dir=`eval echo $pcp_share_dir`
13365 pcp_binadm_dir=`eval echo $libexecdir/pcp/bin`
13366 pcp_binadm_dir=`eval echo $pcp_binadm_dir`
13369 pcp_var_dir=`eval echo $localstatedir/lib/pcp`
13370 pcp_var_dir=`eval echo $pcp_var_dir`
13374 # Check whether --with-configdir was given.
13375 if test "${with_configdir+set}" = set; then :
13376 withval=$with_configdir; pcp_config_dir=$withval
13377 else
13378 pcp_config_dir=$pcp_var_dir/config
13382 pcp_pmdas_dir=$pcp_var_dir/pmdas
13385 pcp_lib_dir=`eval echo $libdir`
13386 pcp_lib_dir=`eval echo $pcp_lib_dir`
13387 pcp_lib32_dir=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13392 # Check whether --with-perl_installdirs was given.
13393 if test "${with_perl_installdirs+set}" = set; then :
13394 withval=$with_perl_installdirs; perl_installdirs=$withval
13395 else
13396 perl_installdirs=vendor
13399 perl_installdirs=`eval echo $perl_installdirs`
13400 perl_installdirs=`eval echo $perl_installdirs`
13403 # Check whether --with-perl_install_base was given.
13404 if test "${with_perl_install_base+set}" = set; then :
13405 withval=$with_perl_install_base; perl_install_base=$withval
13406 else
13407 perl_install_base=$prefix
13410 perl_install_base=`eval echo $perl_install_base`
13411 perl_install_base=`eval echo $perl_install_base`
13415 # Check whether --with-python_prefix was given.
13416 if test "${with_python_prefix+set}" = set; then :
13417 withval=$with_python_prefix; python_prefix=$withval
13418 else
13419 python_prefix=$prefix
13422 python_prefix=`eval echo $python_prefix`
13423 python_prefix=`eval echo $python_prefix`
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13427 $as_echo_n "checking for X... " >&6; }
13430 # Check whether --with-x was given.
13431 if test "${with_x+set}" = set; then :
13432 withval=$with_x;
13435 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13436 if test "x$with_x" = xno; then
13437 # The user explicitly disabled X.
13438 have_x=disabled
13439 else
13440 case $x_includes,$x_libraries in #(
13441 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13442 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 # One or both of the vars are not set, and there is no cached value.
13446 ac_x_includes=no ac_x_libraries=no
13447 rm -f -r conftest.dir
13448 if mkdir conftest.dir; then
13449 cd conftest.dir
13450 cat >Imakefile <<'_ACEOF'
13451 incroot:
13452 @echo incroot='${INCROOT}'
13453 usrlibdir:
13454 @echo usrlibdir='${USRLIBDIR}'
13455 libdir:
13456 @echo libdir='${LIBDIR}'
13457 _ACEOF
13458 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13459 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13460 for ac_var in incroot usrlibdir libdir; do
13461 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13462 done
13463 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13464 for ac_extension in a so sl dylib la dll; do
13465 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13466 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13467 ac_im_usrlibdir=$ac_im_libdir; break
13469 done
13470 # Screen out bogus values from the imake configuration. They are
13471 # bogus both because they are the default anyway, and because
13472 # using them would break gcc on systems where it needs fixed includes.
13473 case $ac_im_incroot in
13474 /usr/include) ac_x_includes= ;;
13475 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13476 esac
13477 case $ac_im_usrlibdir in
13478 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13479 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13480 esac
13482 cd ..
13483 rm -f -r conftest.dir
13486 # Standard set of common directories for X headers.
13487 # Check X11 before X11Rn because it is often a symlink to the current release.
13488 ac_x_header_dirs='
13489 /usr/X11/include
13490 /usr/X11R7/include
13491 /usr/X11R6/include
13492 /usr/X11R5/include
13493 /usr/X11R4/include
13495 /usr/include/X11
13496 /usr/include/X11R7
13497 /usr/include/X11R6
13498 /usr/include/X11R5
13499 /usr/include/X11R4
13501 /usr/local/X11/include
13502 /usr/local/X11R7/include
13503 /usr/local/X11R6/include
13504 /usr/local/X11R5/include
13505 /usr/local/X11R4/include
13507 /usr/local/include/X11
13508 /usr/local/include/X11R7
13509 /usr/local/include/X11R6
13510 /usr/local/include/X11R5
13511 /usr/local/include/X11R4
13513 /usr/X386/include
13514 /usr/x386/include
13515 /usr/XFree86/include/X11
13517 /usr/include
13518 /usr/local/include
13519 /usr/unsupported/include
13520 /usr/athena/include
13521 /usr/local/x11r5/include
13522 /usr/lpp/Xamples/include
13524 /usr/openwin/include
13525 /usr/openwin/share/include'
13527 if test "$ac_x_includes" = no; then
13528 # Guess where to find include files, by looking for Xlib.h.
13529 # First, try using that file with no special directory specified.
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 #include <X11/Xlib.h>
13533 _ACEOF
13534 if ac_fn_c_try_cpp "$LINENO"; then :
13535 # We can compile using X headers with no special include directory.
13536 ac_x_includes=
13537 else
13538 for ac_dir in $ac_x_header_dirs; do
13539 if test -r "$ac_dir/X11/Xlib.h"; then
13540 ac_x_includes=$ac_dir
13541 break
13543 done
13545 rm -f conftest.err conftest.i conftest.$ac_ext
13546 fi # $ac_x_includes = no
13548 if test "$ac_x_libraries" = no; then
13549 # Check for the libraries.
13550 # See if we find them without any special options.
13551 # Don't add to $LIBS permanently.
13552 ac_save_LIBS=$LIBS
13553 LIBS="-lX11 $LIBS"
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 #include <X11/Xlib.h>
13558 main ()
13560 XrmInitialize ()
13562 return 0;
13564 _ACEOF
13565 if ac_fn_c_try_link "$LINENO"; then :
13566 LIBS=$ac_save_LIBS
13567 # We can link X programs with no special library path.
13568 ac_x_libraries=
13569 else
13570 LIBS=$ac_save_LIBS
13571 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13573 # Don't even attempt the hair of trying to link an X program!
13574 for ac_extension in a so sl dylib la dll; do
13575 if test -r "$ac_dir/libX11.$ac_extension"; then
13576 ac_x_libraries=$ac_dir
13577 break 2
13579 done
13580 done
13582 rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext conftest.$ac_ext
13584 fi # $ac_x_libraries = no
13586 case $ac_x_includes,$ac_x_libraries in #(
13587 no,* | *,no | *\'*)
13588 # Didn't find X, or a directory has "'" in its name.
13589 ac_cv_have_x="have_x=no";; #(
13591 # Record where we found X for the cache.
13592 ac_cv_have_x="have_x=yes\
13593 ac_x_includes='$ac_x_includes'\
13594 ac_x_libraries='$ac_x_libraries'"
13595 esac
13597 ;; #(
13598 *) have_x=yes;;
13599 esac
13600 eval "$ac_cv_have_x"
13601 fi # $with_x != no
13603 if test "$have_x" != yes; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13605 $as_echo "$have_x" >&6; }
13606 no_x=yes
13607 else
13608 # If each of the values was on the command line, it overrides each guess.
13609 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13610 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13611 # Update the cache value to reflect the command line values.
13612 ac_cv_have_x="have_x=yes\
13613 ac_x_includes='$x_includes'\
13614 ac_x_libraries='$x_libraries'"
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13616 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13619 if test "$no_x" = yes; then
13620 # Not all programs may use this symbol, but it does not hurt to define it.
13622 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13624 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13625 else
13626 if test -n "$x_includes"; then
13627 X_CFLAGS="$X_CFLAGS -I$x_includes"
13630 # It would also be nice to do this for all -L options, not just this one.
13631 if test -n "$x_libraries"; then
13632 X_LIBS="$X_LIBS -L$x_libraries"
13633 # For Solaris; some versions of Sun CC require a space after -R and
13634 # others require no space. Words are not sufficient . . . .
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13636 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13637 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13638 ac_xsave_c_werror_flag=$ac_c_werror_flag
13639 ac_c_werror_flag=yes
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13644 main ()
13648 return 0;
13650 _ACEOF
13651 if ac_fn_c_try_link "$LINENO"; then :
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654 X_LIBS="$X_LIBS -R$x_libraries"
13655 else
13656 LIBS="$ac_xsave_LIBS -R $x_libraries"
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13661 main ()
13665 return 0;
13667 _ACEOF
13668 if ac_fn_c_try_link "$LINENO"; then :
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13670 $as_echo "yes" >&6; }
13671 X_LIBS="$X_LIBS -R $x_libraries"
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13674 $as_echo "neither works" >&6; }
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 ac_c_werror_flag=$ac_xsave_c_werror_flag
13682 LIBS=$ac_xsave_LIBS
13685 # Check for system-dependent libraries X programs must link with.
13686 # Do this before checking for the system-independent R6 libraries
13687 # (-lICE), since we may need -lsocket or whatever for X linking.
13689 if test "$ISC" = yes; then
13690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13691 else
13692 # Martyn Johnson says this is needed for Ultrix, if the X
13693 # libraries were built with DECnet support. And Karl Berry says
13694 # the Alpha needs dnet_stub (dnet does not exist).
13695 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13699 /* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
13702 #ifdef __cplusplus
13703 extern "C"
13704 #endif
13705 char XOpenDisplay ();
13707 main ()
13709 return XOpenDisplay ();
13711 return 0;
13713 _ACEOF
13714 if ac_fn_c_try_link "$LINENO"; then :
13716 else
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13718 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13719 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 ac_check_lib_save_LIBS=$LIBS
13723 LIBS="-ldnet $LIBS"
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13727 /* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply. */
13730 #ifdef __cplusplus
13731 extern "C"
13732 #endif
13733 char dnet_ntoa ();
13735 main ()
13737 return dnet_ntoa ();
13739 return 0;
13741 _ACEOF
13742 if ac_fn_c_try_link "$LINENO"; then :
13743 ac_cv_lib_dnet_dnet_ntoa=yes
13744 else
13745 ac_cv_lib_dnet_dnet_ntoa=no
13747 rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 LIBS=$ac_check_lib_save_LIBS
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13752 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13753 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13754 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13757 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13759 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13760 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-ldnet_stub $LIBS"
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13771 #ifdef __cplusplus
13772 extern "C"
13773 #endif
13774 char dnet_ntoa ();
13776 main ()
13778 return dnet_ntoa ();
13780 return 0;
13782 _ACEOF
13783 if ac_fn_c_try_link "$LINENO"; then :
13784 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13785 else
13786 ac_cv_lib_dnet_stub_dnet_ntoa=no
13788 rm -f core conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
13790 LIBS=$ac_check_lib_save_LIBS
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13793 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13794 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13795 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13800 rm -f core conftest.err conftest.$ac_objext \
13801 conftest$ac_exeext conftest.$ac_ext
13802 LIBS="$ac_xsave_LIBS"
13804 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13805 # to get the SysV transport functions.
13806 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13807 # needs -lnsl.
13808 # The nsl library prevents programs from opening the X display
13809 # on Irix 5.2, according to T.E. Dickey.
13810 # The functions gethostbyname, getservbyname, and inet_addr are
13811 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13812 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13813 if test "x$ac_cv_func_gethostbyname" = xyes; then :
13817 if test $ac_cv_func_gethostbyname = no; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13819 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13820 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13821 $as_echo_n "(cached) " >&6
13822 else
13823 ac_check_lib_save_LIBS=$LIBS
13824 LIBS="-lnsl $LIBS"
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13828 /* Override any GCC internal prototype to avoid an error.
13829 Use char because int might match the return type of a GCC
13830 builtin and then its argument prototype would still apply. */
13831 #ifdef __cplusplus
13832 extern "C"
13833 #endif
13834 char gethostbyname ();
13836 main ()
13838 return gethostbyname ();
13840 return 0;
13842 _ACEOF
13843 if ac_fn_c_try_link "$LINENO"; then :
13844 ac_cv_lib_nsl_gethostbyname=yes
13845 else
13846 ac_cv_lib_nsl_gethostbyname=no
13848 rm -f core conftest.err conftest.$ac_objext \
13849 conftest$ac_exeext conftest.$ac_ext
13850 LIBS=$ac_check_lib_save_LIBS
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13853 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13854 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13858 if test $ac_cv_lib_nsl_gethostbyname = no; then
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13860 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13861 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13862 $as_echo_n "(cached) " >&6
13863 else
13864 ac_check_lib_save_LIBS=$LIBS
13865 LIBS="-lbsd $LIBS"
13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h. */
13869 /* Override any GCC internal prototype to avoid an error.
13870 Use char because int might match the return type of a GCC
13871 builtin and then its argument prototype would still apply. */
13872 #ifdef __cplusplus
13873 extern "C"
13874 #endif
13875 char gethostbyname ();
13877 main ()
13879 return gethostbyname ();
13881 return 0;
13883 _ACEOF
13884 if ac_fn_c_try_link "$LINENO"; then :
13885 ac_cv_lib_bsd_gethostbyname=yes
13886 else
13887 ac_cv_lib_bsd_gethostbyname=no
13889 rm -f core conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13891 LIBS=$ac_check_lib_save_LIBS
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13894 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13895 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13902 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13903 # socket/setsockopt and other routines are undefined under SCO ODT
13904 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13905 # on later versions), says Simon Leinen: it contains gethostby*
13906 # variants that don't use the name server (or something). -lsocket
13907 # must be given before -lnsl if both are needed. We assume that
13908 # if connect needs -lnsl, so does gethostbyname.
13909 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13910 if test "x$ac_cv_func_connect" = xyes; then :
13914 if test $ac_cv_func_connect = no; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13916 $as_echo_n "checking for connect in -lsocket... " >&6; }
13917 if ${ac_cv_lib_socket_connect+:} false; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 ac_check_lib_save_LIBS=$LIBS
13921 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13925 /* Override any GCC internal prototype to avoid an error.
13926 Use char because int might match the return type of a GCC
13927 builtin and then its argument prototype would still apply. */
13928 #ifdef __cplusplus
13929 extern "C"
13930 #endif
13931 char connect ();
13933 main ()
13935 return connect ();
13937 return 0;
13939 _ACEOF
13940 if ac_fn_c_try_link "$LINENO"; then :
13941 ac_cv_lib_socket_connect=yes
13942 else
13943 ac_cv_lib_socket_connect=no
13945 rm -f core conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947 LIBS=$ac_check_lib_save_LIBS
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13950 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13951 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13952 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13957 # Guillermo Gomez says -lposix is necessary on A/UX.
13958 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13959 if test "x$ac_cv_func_remove" = xyes; then :
13963 if test $ac_cv_func_remove = no; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13965 $as_echo_n "checking for remove in -lposix... " >&6; }
13966 if ${ac_cv_lib_posix_remove+:} false; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 ac_check_lib_save_LIBS=$LIBS
13970 LIBS="-lposix $LIBS"
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13977 #ifdef __cplusplus
13978 extern "C"
13979 #endif
13980 char remove ();
13982 main ()
13984 return remove ();
13986 return 0;
13988 _ACEOF
13989 if ac_fn_c_try_link "$LINENO"; then :
13990 ac_cv_lib_posix_remove=yes
13991 else
13992 ac_cv_lib_posix_remove=no
13994 rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 LIBS=$ac_check_lib_save_LIBS
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13999 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14000 if test "x$ac_cv_lib_posix_remove" = xyes; then :
14001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14006 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14007 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14008 if test "x$ac_cv_func_shmat" = xyes; then :
14012 if test $ac_cv_func_shmat = no; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14014 $as_echo_n "checking for shmat in -lipc... " >&6; }
14015 if ${ac_cv_lib_ipc_shmat+:} false; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 ac_check_lib_save_LIBS=$LIBS
14019 LIBS="-lipc $LIBS"
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14023 /* Override any GCC internal prototype to avoid an error.
14024 Use char because int might match the return type of a GCC
14025 builtin and then its argument prototype would still apply. */
14026 #ifdef __cplusplus
14027 extern "C"
14028 #endif
14029 char shmat ();
14031 main ()
14033 return shmat ();
14035 return 0;
14037 _ACEOF
14038 if ac_fn_c_try_link "$LINENO"; then :
14039 ac_cv_lib_ipc_shmat=yes
14040 else
14041 ac_cv_lib_ipc_shmat=no
14043 rm -f core conftest.err conftest.$ac_objext \
14044 conftest$ac_exeext conftest.$ac_ext
14045 LIBS=$ac_check_lib_save_LIBS
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14048 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14049 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
14050 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14056 # Check for libraries that X11R6 Xt/Xaw programs need.
14057 ac_save_LDFLAGS=$LDFLAGS
14058 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14059 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14060 # check for ICE first), but we must link in the order -lSM -lICE or
14061 # we get undefined symbols. So assume we have SM if we have ICE.
14062 # These have to be linked with before -lX11, unlike the other
14063 # libraries we check for below, so use a different variable.
14064 # John Interrante, Karl Berry
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14066 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14067 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 char IceConnectionNumber ();
14083 main ()
14085 return IceConnectionNumber ();
14087 return 0;
14089 _ACEOF
14090 if ac_fn_c_try_link "$LINENO"; then :
14091 ac_cv_lib_ICE_IceConnectionNumber=yes
14092 else
14093 ac_cv_lib_ICE_IceConnectionNumber=no
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14097 LIBS=$ac_check_lib_save_LIBS
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14100 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14101 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
14102 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14105 LDFLAGS=$ac_save_LDFLAGS
14109 pcp_x11_incflags=$X_CFLAGS
14111 pcp_x11_libflags=$X_LIBS
14113 pcp_x11_extra=$X_EXTRA_LIBS
14115 pcp_x11_pre=$X_PRE_LIBS
14118 have_manpages=false
14119 have_gzipped_manpages=false
14120 have_bzip2ed_manpages=false
14121 have_lzmaed_manpages=false
14122 have_xzed_manpages=false
14123 need_old_tbl_header=false
14124 man_header=
14125 pcp_man_dir=`eval echo $mandir`
14126 pcp_man_dir=`eval echo $pcp_man_dir`
14128 for d in /usr/man /usr/share/man $pcp_man_dir
14130 for sd in man1 sman1
14132 if test -f $d/$sd/man.1.gz
14133 then
14134 have_gzipped_manpages=true
14135 have_manpages=true
14136 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
14137 break
14138 elif test -f $d/$sd/man.1.bz2
14139 then
14140 have_bzip2ed_manpages=true
14141 have_manpages=true
14142 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
14143 break
14144 elif test -f $d/$sd/man.1.lzma
14145 then
14146 have_lzmaed_manpages=true
14147 have_manpages=true
14148 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
14149 break
14150 elif test -f $d/$sd/man.1.xz
14151 then
14152 have_xzed_manpages=true
14153 have_manpages=true
14154 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
14155 break
14156 elif test -f $d/$sd/man.1
14157 then
14158 man_header=`head -1 $d/$sd/man.1`
14159 have_manpages=true
14160 break
14162 done
14163 done
14164 if test x"$man_header" = "x'\\\" t" -o x"$man_header" = "x'\\\" te" ; then
14165 need_old_tbl_header=true
14175 pcp_bin_dir=`eval echo $bindir`
14176 pcp_bin_dir=`eval echo $pcp_bin_dir`
14179 pcp_sbin_dir=`eval echo $sbindir`
14180 pcp_sbin_dir=`eval echo $pcp_sbin_dir`
14183 pcp_inc_dir=`eval echo $includedir/pcp`
14184 pcp_inc_dir=`eval echo $pcp_inc_dir`
14187 if test $target_os = linux; then
14188 pcp_books_dir=`eval echo $datarootdir/doc/pcp-doc`
14189 else
14190 pcp_books_dir=`eval echo $datarootdir/doc/pcp`
14192 pcp_books_dir=`eval echo $pcp_books_dir`
14193 pcp_html_dir=`eval echo $pcp_books_dir/html`
14197 if test $target_os = linux; then
14198 pcp_icons_dir=`eval echo $datarootdir/pcp-gui/pixmaps`
14199 else
14200 pcp_icons_dir=`eval echo $datarootdir/pcp/pixmaps`
14202 pcp_icons_dir=`eval echo $pcp_icons_dir`
14205 pcp_desktop_dir=`eval echo $datarootdir/applications`
14206 pcp_desktop_dir=`eval echo $pcp_desktop_dir`
14210 # Check whether --with-rcdir was given.
14211 if test "${with_rcdir+set}" = set; then :
14212 withval=$with_rcdir; pcp_rc_dir=$withval
14213 else
14215 if $enable_systemd
14216 then
14217 pcp_rc_dir="$pcp_share_dir/lib"
14218 else
14219 pcp_rc_dir="$pcp_etc_dir/init.d"
14226 # Check whether --with-sysconfigdir was given.
14227 if test "${with_sysconfigdir+set}" = set; then :
14228 withval=$with_sysconfigdir; pcp_sysconfig_dir=$withval
14229 else
14230 pcp_sysconfig_dir=$pcp_etc_dir/sysconfig
14236 # Check whether --with-logdir was given.
14237 if test "${with_logdir+set}" = set; then :
14238 withval=$with_logdir; pcp_log_dir=$withval
14239 else
14240 pcp_log_dir=$localstatedir/log/pcp
14243 pcp_log_dir=`eval echo $pcp_log_dir`
14244 pcp_log_dir=`eval echo $pcp_log_dir`
14248 # Check whether --with-rundir was given.
14249 if test "${with_rundir+set}" = set; then :
14250 withval=$with_rundir; pcp_run_dir=$withval
14251 else
14252 pcp_run_dir=$localstatedir/run/pcp
14255 pcp_run_dir=`eval echo $pcp_run_dir`
14256 pcp_run_dir=`eval echo $pcp_run_dir`
14260 # Check whether --with-tmpdir was given.
14261 if test "${with_tmpdir+set}" = set; then :
14262 withval=$with_tmpdir; pcp_tmpfile_dir=$withval
14263 else
14264 pcp_tmpfile_dir=$localstatedir/tmp
14267 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14268 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14271 pcp_tmp_dir=`eval echo $pcp_var_dir/tmp`
14275 # Check whether --with-docdir was given.
14276 if test "${with_docdir+set}" = set; then :
14277 withval=$with_docdir; pcp_doc_dir=$withval
14278 else
14279 PACKAGE=pcp-${PACKAGE_VERSION}; pcp_doc_dir=$docdir
14282 pcp_doc_dir=`eval echo $pcp_doc_dir`
14283 pcp_doc_dir=`eval echo $pcp_doc_dir`
14287 # Check whether --with-demosdir was given.
14288 if test "${with_demosdir+set}" = set; then :
14289 withval=$with_demosdir; pcp_demos_dir=$withval
14290 else
14291 pcp_demos_dir=$pcp_share_dir/demos
14296 if test -z "$XCONFIRM"
14297 then
14298 # Extract the first word of "xconfirm", so it can be a program name with args.
14299 set dummy xconfirm; ac_word=$2
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14301 $as_echo_n "checking for $ac_word... " >&6; }
14302 if ${ac_cv_path_ac_xconfirm_prog+:} false; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 case $ac_xconfirm_prog in
14306 [\\/]* | ?:[\\/]*)
14307 ac_cv_path_ac_xconfirm_prog="$ac_xconfirm_prog" # Let the user override the test with a path.
14310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14311 for as_dir in $PATH
14313 IFS=$as_save_IFS
14314 test -z "$as_dir" && as_dir=.
14315 for ac_exec_ext in '' $ac_executable_extensions; do
14316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14317 ac_cv_path_ac_xconfirm_prog="$as_dir/$ac_word$ac_exec_ext"
14318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14319 break 2
14321 done
14322 done
14323 IFS=$as_save_IFS
14325 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
14327 esac
14329 ac_xconfirm_prog=$ac_cv_path_ac_xconfirm_prog
14330 if test -n "$ac_xconfirm_prog"; then
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14332 $as_echo "$ac_xconfirm_prog" >&6; }
14333 else
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335 $as_echo "no" >&6; }
14339 else
14340 ac_xconfirm_prog=$XCONFIRM
14344 if test "$ac_cv_header_fcntl_h" = "yes"
14345 then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14347 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350 #include <fcntl.h>
14352 main ()
14354 int i = FNDELAY;
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_compile "$LINENO"; then :
14361 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14364 $as_echo "yes" >&6; }
14365 else
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 $as_echo "no" >&6; }
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 if test "$ac_cv_header_libzfs_h" = "yes"
14373 then
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14375 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 #include <libzfs.h>
14380 main ()
14382 libzfs_handle_t *zh;
14383 zpool_handle_t *zp;
14384 nvlist_t *np;
14385 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14388 return 0;
14390 _ACEOF
14391 if ac_fn_c_try_compile "$LINENO"; then :
14393 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14396 $as_echo "yes" >&6; }
14397 else
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14404 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407 #include <libzfs.h>
14409 main ()
14411 libzfs_handle_t *zh;
14412 zpool_handle_t *zp;
14413 nvlist_t *np;
14414 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14417 return 0;
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"; then :
14422 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14425 $as_echo "yes" >&6; }
14426 else
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14428 $as_echo "no" >&6; }
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14434 then
14435 enable_secure=true
14437 saved_CFLAGS="$CFLAGS"
14438 saved_CPPFLAGS="$CPPFLAGS"
14439 NSS_INC_DIRS="-I/usr/include/nss -I/usr/include/nss3"
14440 NSPR_INC_DIRS="-I/usr/include/nspr -I/usr/include/nspr4"
14441 CFLAGS="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14442 CPPFLAGS="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14444 for ac_header in nss/nss.h
14445 do :
14446 ac_fn_c_check_header_mongrel "$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14447 if test "x$ac_cv_header_nss_nss_h" = xyes; then :
14448 cat >>confdefs.h <<_ACEOF
14449 #define HAVE_NSS_NSS_H 1
14450 _ACEOF
14451 NSSCFLAGS=-I/usr/include/nss
14452 else
14454 for ac_header in nss3/nss.h
14455 do :
14456 ac_fn_c_check_header_mongrel "$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14457 if test "x$ac_cv_header_nss3_nss_h" = xyes; then :
14458 cat >>confdefs.h <<_ACEOF
14459 #define HAVE_NSS3_NSS_H 1
14460 _ACEOF
14461 NSSCFLAGS=-I/usr/include/nss3
14462 else
14464 enable_secure=false
14465 if test "$do_secure" = "yes"
14466 then
14467 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14472 done
14477 done
14481 for ac_header in nspr/nspr.h
14482 do :
14483 ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14484 if test "x$ac_cv_header_nspr_nspr_h" = xyes; then :
14485 cat >>confdefs.h <<_ACEOF
14486 #define HAVE_NSPR_NSPR_H 1
14487 _ACEOF
14488 NSPRCFLAGS=-I/usr/include/nspr
14489 else
14491 for ac_header in nspr4/nspr.h
14492 do :
14493 ac_fn_c_check_header_mongrel "$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14494 if test "x$ac_cv_header_nspr4_nspr_h" = xyes; then :
14495 cat >>confdefs.h <<_ACEOF
14496 #define HAVE_NSPR4_NSPR_H 1
14497 _ACEOF
14498 NSPRCFLAGS=-I/usr/include/nspr4
14499 else
14501 enable_secure=false
14502 if test "$do_secure" = "yes"
14503 then
14504 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14509 done
14514 done
14518 for ac_header in sasl/sasl.h
14519 do :
14520 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14521 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
14522 cat >>confdefs.h <<_ACEOF
14523 #define HAVE_SASL_SASL_H 1
14524 _ACEOF
14525 SASLCFLAGS=-I/usr/include/sasl
14526 else
14528 enable_secure=false
14529 if test "$do_secure" = "yes"
14530 then
14531 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14536 done
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14541 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14542 if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 ac_check_lib_save_LIBS=$LIBS
14546 LIBS="-lsasl2 $LIBS"
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14550 /* Override any GCC internal prototype to avoid an error.
14551 Use char because int might match the return type of a GCC
14552 builtin and then its argument prototype would still apply. */
14553 #ifdef __cplusplus
14554 extern "C"
14555 #endif
14556 char sasl_server_init ();
14558 main ()
14560 return sasl_server_init ();
14562 return 0;
14564 _ACEOF
14565 if ac_fn_c_try_link "$LINENO"; then :
14566 ac_cv_lib_sasl2_sasl_server_init=yes
14567 else
14568 ac_cv_lib_sasl2_sasl_server_init=no
14570 rm -f core conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
14572 LIBS=$ac_check_lib_save_LIBS
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14575 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14576 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
14577 lib_for_sasl="-lsasl2"
14578 else
14580 enable_secure=false
14581 if test "$do_secure" = "yes"
14582 then
14583 as_fn_error $? "cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14591 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14592 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false; then :
14593 $as_echo_n "(cached) " >&6
14594 else
14595 ac_check_lib_save_LIBS=$LIBS
14596 LIBS="-lssl $LIBS"
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14600 /* Override any GCC internal prototype to avoid an error.
14601 Use char because int might match the return type of a GCC
14602 builtin and then its argument prototype would still apply. */
14603 #ifdef __cplusplus
14604 extern "C"
14605 #endif
14606 char SSL_ImportFD ();
14608 main ()
14610 return SSL_ImportFD ();
14612 return 0;
14614 _ACEOF
14615 if ac_fn_c_try_link "$LINENO"; then :
14616 ac_cv_lib_ssl_SSL_ImportFD=yes
14617 else
14618 ac_cv_lib_ssl_SSL_ImportFD=no
14620 rm -f core conftest.err conftest.$ac_objext \
14621 conftest$ac_exeext conftest.$ac_ext
14622 LIBS=$ac_check_lib_save_LIBS
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14625 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14626 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes; then :
14627 lib_for_ssl="-lssl"
14628 else
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14631 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14632 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 ac_check_lib_save_LIBS=$LIBS
14636 LIBS="-lssl3 $LIBS"
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14640 /* Override any GCC internal prototype to avoid an error.
14641 Use char because int might match the return type of a GCC
14642 builtin and then its argument prototype would still apply. */
14643 #ifdef __cplusplus
14644 extern "C"
14645 #endif
14646 char SSL_ImportFD ();
14648 main ()
14650 return SSL_ImportFD ();
14652 return 0;
14654 _ACEOF
14655 if ac_fn_c_try_link "$LINENO"; then :
14656 ac_cv_lib_ssl3_SSL_ImportFD=yes
14657 else
14658 ac_cv_lib_ssl3_SSL_ImportFD=no
14660 rm -f core conftest.err conftest.$ac_objext \
14661 conftest$ac_exeext conftest.$ac_ext
14662 LIBS=$ac_check_lib_save_LIBS
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14665 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14666 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes; then :
14667 lib_for_ssl="-lssl3"
14668 else
14670 enable_secure=false
14671 if test "$do_secure" = "yes"
14672 then
14673 as_fn_error $? "cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14684 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14685 if ${ac_cv_lib_nss_NSS_Init+:} false; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 ac_check_lib_save_LIBS=$LIBS
14689 LIBS="-lnss $LIBS"
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14693 /* Override any GCC internal prototype to avoid an error.
14694 Use char because int might match the return type of a GCC
14695 builtin and then its argument prototype would still apply. */
14696 #ifdef __cplusplus
14697 extern "C"
14698 #endif
14699 char NSS_Init ();
14701 main ()
14703 return NSS_Init ();
14705 return 0;
14707 _ACEOF
14708 if ac_fn_c_try_link "$LINENO"; then :
14709 ac_cv_lib_nss_NSS_Init=yes
14710 else
14711 ac_cv_lib_nss_NSS_Init=no
14713 rm -f core conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LIBS=$ac_check_lib_save_LIBS
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14718 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14719 if test "x$ac_cv_lib_nss_NSS_Init" = xyes; then :
14720 lib_for_nss="-lnss"
14721 else
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14724 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14725 if ${ac_cv_lib_nss3_NSS_Init+:} false; then :
14726 $as_echo_n "(cached) " >&6
14727 else
14728 ac_check_lib_save_LIBS=$LIBS
14729 LIBS="-lnss3 $LIBS"
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14733 /* Override any GCC internal prototype to avoid an error.
14734 Use char because int might match the return type of a GCC
14735 builtin and then its argument prototype would still apply. */
14736 #ifdef __cplusplus
14737 extern "C"
14738 #endif
14739 char NSS_Init ();
14741 main ()
14743 return NSS_Init ();
14745 return 0;
14747 _ACEOF
14748 if ac_fn_c_try_link "$LINENO"; then :
14749 ac_cv_lib_nss3_NSS_Init=yes
14750 else
14751 ac_cv_lib_nss3_NSS_Init=no
14753 rm -f core conftest.err conftest.$ac_objext \
14754 conftest$ac_exeext conftest.$ac_ext
14755 LIBS=$ac_check_lib_save_LIBS
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14758 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14759 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes; then :
14760 lib_for_nss="-lnss3"
14761 else
14763 enable_secure=false
14764 if test "$do_secure" = "yes"
14765 then
14766 as_fn_error $? "cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14777 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14778 if ${ac_cv_lib_nspr_PR_Init+:} false; then :
14779 $as_echo_n "(cached) " >&6
14780 else
14781 ac_check_lib_save_LIBS=$LIBS
14782 LIBS="-lnspr $LIBS"
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14786 /* Override any GCC internal prototype to avoid an error.
14787 Use char because int might match the return type of a GCC
14788 builtin and then its argument prototype would still apply. */
14789 #ifdef __cplusplus
14790 extern "C"
14791 #endif
14792 char PR_Init ();
14794 main ()
14796 return PR_Init ();
14798 return 0;
14800 _ACEOF
14801 if ac_fn_c_try_link "$LINENO"; then :
14802 ac_cv_lib_nspr_PR_Init=yes
14803 else
14804 ac_cv_lib_nspr_PR_Init=no
14806 rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14808 LIBS=$ac_check_lib_save_LIBS
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14811 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14812 if test "x$ac_cv_lib_nspr_PR_Init" = xyes; then :
14813 lib_for_nspr="-lnspr"
14814 else
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14817 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14818 if ${ac_cv_lib_nspr4_PR_Init+:} false; then :
14819 $as_echo_n "(cached) " >&6
14820 else
14821 ac_check_lib_save_LIBS=$LIBS
14822 LIBS="-lnspr4 $LIBS"
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14826 /* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply. */
14829 #ifdef __cplusplus
14830 extern "C"
14831 #endif
14832 char PR_Init ();
14834 main ()
14836 return PR_Init ();
14838 return 0;
14840 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"; then :
14842 ac_cv_lib_nspr4_PR_Init=yes
14843 else
14844 ac_cv_lib_nspr4_PR_Init=no
14846 rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848 LIBS=$ac_check_lib_save_LIBS
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14851 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14852 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes; then :
14853 lib_for_nspr="-lnspr4"
14854 else
14856 enable_secure=false
14857 if test "$do_secure" = "yes"
14858 then
14859 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14869 if test "$enable_secure" = "true"
14870 then
14872 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14877 CPPFLAGS="$saved_CPPFLAGS"
14878 CFLAGS="$saved_CFLAGS"
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14882 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14883 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false; then :
14884 $as_echo_n "(cached) " >&6
14885 else
14886 ac_check_lib_save_LIBS=$LIBS
14887 LIBS="-latomic $LIBS"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char __atomic_fetch_add_4 ();
14899 main ()
14901 return __atomic_fetch_add_4 ();
14903 return 0;
14905 _ACEOF
14906 if ac_fn_c_try_link "$LINENO"; then :
14907 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14908 else
14909 ac_cv_lib_atomic___atomic_fetch_add_4=no
14911 rm -f core conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14916 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14917 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes; then :
14918 lib_for_atomic="-latomic"
14923 if test -f /usr/include/sn/arsess.h
14924 then
14925 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
14926 else
14927 pcp_mpi_dirs=
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14932 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14936 #include <sys/types.h>
14937 #ifdef HAVE_SYS_SOCKET_H
14938 #include <sys/socket.h>
14939 #endif
14940 #ifdef HAVE_SYS_UN_H
14941 #include <sys/un.h>
14942 #endif
14945 main ()
14947 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14949 return 0;
14951 _ACEOF
14952 if ac_fn_c_try_compile "$LINENO"; then :
14954 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14956 $as_echo "yes" >&6; }
14957 else
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14959 $as_echo "no" >&6; }
14961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14964 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14968 #include <sys/types.h>
14969 #ifdef HAVE_SYS_SOCKET_H
14970 #include <sys/socket.h>
14971 #endif
14972 #ifdef HAVE_SYS_UN_H
14973 #include <sys/un.h>
14974 #endif
14977 main ()
14979 struct ucred ucred; ucred.uid = 0;
14981 return 0;
14983 _ACEOF
14984 if ac_fn_c_try_compile "$LINENO"; then :
14986 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14988 $as_echo "yes" >&6; }
14989 else
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14991 $as_echo "no" >&6; }
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14996 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 #include <time.h>
15003 main ()
15005 struct timespec foo;
15007 return 0;
15009 _ACEOF
15010 if ac_fn_c_try_compile "$LINENO"; then :
15012 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15014 $as_echo "yes" >&6; }
15015 else
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017 $as_echo "no" >&6; }
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
15022 $as_echo_n "checking for altzone in time.h... " >&6; }
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15026 #include <time.h>
15029 main ()
15031 time_t az = altzone;
15033 return 0;
15035 _ACEOF
15036 if ac_fn_c_try_compile "$LINENO"; then :
15038 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15040 $as_echo "yes" >&6; }
15041 else
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15043 $as_echo "no" >&6; }
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
15048 $as_echo_n "checking if strftime knows about %z... " >&6; }
15049 if test "$cross_compiling" = yes; then :
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15051 $as_echo "no" >&6; }
15052 else
15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15056 #include <time.h>
15057 int main () {
15058 char b[32]="";
15059 time_t t = time(NULL);
15060 struct tm * t1 = localtime (&t);
15061 if (strftime (b, 32, "%z", t1) < 3)
15062 return (1);
15063 if (strcmp(b, "%z") == 0)
15064 return(1);
15065 return (0);
15068 _ACEOF
15069 if ac_fn_c_try_run "$LINENO"; then :
15071 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15073 $as_echo "yes" >&6; }
15074 else
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15076 $as_echo "no" >&6; }
15078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15079 conftest.$ac_objext conftest.beam conftest.$ac_ext
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
15084 $as_echo_n "checking if strerror_r returns char *... " >&6; }
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 #include <string.h>
15089 main ()
15091 strerror_r(0, NULL, 0)[0];
15093 return 0;
15095 _ACEOF
15096 if ac_fn_c_try_compile "$LINENO"; then :
15098 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15100 $as_echo "yes" >&6; }
15101 else
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103 $as_echo "no" >&6; }
15105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15107 savedLIBS=$LIBS
15108 LIBS=
15109 lib_for_curses=
15110 lib_for_readline=
15111 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
15112 if test "x$ac_cv_func_readline" = xyes; then :
15114 else
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15117 $as_echo_n "checking for readline in -lreadline... " >&6; }
15118 if ${ac_cv_lib_readline_readline+:} false; then :
15119 $as_echo_n "(cached) " >&6
15120 else
15121 ac_check_lib_save_LIBS=$LIBS
15122 LIBS="-lreadline $LIBS"
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15126 /* Override any GCC internal prototype to avoid an error.
15127 Use char because int might match the return type of a GCC
15128 builtin and then its argument prototype would still apply. */
15129 #ifdef __cplusplus
15130 extern "C"
15131 #endif
15132 char readline ();
15134 main ()
15136 return readline ();
15138 return 0;
15140 _ACEOF
15141 if ac_fn_c_try_link "$LINENO"; then :
15142 ac_cv_lib_readline_readline=yes
15143 else
15144 ac_cv_lib_readline_readline=no
15146 rm -f core conftest.err conftest.$ac_objext \
15147 conftest$ac_exeext conftest.$ac_ext
15148 LIBS=$ac_check_lib_save_LIBS
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15151 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15152 if test "x$ac_cv_lib_readline_readline" = xyes; then :
15153 cat >>confdefs.h <<_ACEOF
15154 #define HAVE_LIBREADLINE 1
15155 _ACEOF
15157 LIBS="-lreadline $LIBS"
15159 else
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
15162 $as_echo_n "checking for add_history in -lreadline... " >&6; }
15163 if ${ac_cv_lib_readline_add_history+:} false; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 ac_check_lib_save_LIBS=$LIBS
15167 LIBS="-lreadline -lcurses $LIBS"
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15171 /* Override any GCC internal prototype to avoid an error.
15172 Use char because int might match the return type of a GCC
15173 builtin and then its argument prototype would still apply. */
15174 #ifdef __cplusplus
15175 extern "C"
15176 #endif
15177 char add_history ();
15179 main ()
15181 return add_history ();
15183 return 0;
15185 _ACEOF
15186 if ac_fn_c_try_link "$LINENO"; then :
15187 ac_cv_lib_readline_add_history=yes
15188 else
15189 ac_cv_lib_readline_add_history=no
15191 rm -f core conftest.err conftest.$ac_objext \
15192 conftest$ac_exeext conftest.$ac_ext
15193 LIBS=$ac_check_lib_save_LIBS
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
15196 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
15197 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
15198 cat >>confdefs.h <<_ACEOF
15199 #define HAVE_LIBREADLINE 1
15200 _ACEOF
15202 LIBS="-lreadline $LIBS"
15212 if test $ac_cv_func_readline = yes
15213 then
15215 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15217 elif test $ac_cv_lib_readline_readline = yes
15218 then
15220 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15222 lib_for_readline=-lreadline
15223 elif test $ac_cv_lib_readline_add_history = yes
15224 then
15226 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15228 lib_for_curses=-lcurses
15229 lib_for_readline=-lreadline
15233 LIBS=$savedLIBS
15236 pkg_failed=no
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15238 $as_echo_n "checking for zlib... " >&6; }
15240 if test -n "$zlib_CFLAGS"; then
15241 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
15242 elif test -n "$PKG_CONFIG"; then
15243 if test -n "$PKG_CONFIG" && \
15244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15245 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15246 ac_status=$?
15247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248 test $ac_status = 0; }; then
15249 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15250 test "x$?" != "x0" && pkg_failed=yes
15251 else
15252 pkg_failed=yes
15254 else
15255 pkg_failed=untried
15257 if test -n "$zlib_LIBS"; then
15258 pkg_cv_zlib_LIBS="$zlib_LIBS"
15259 elif test -n "$PKG_CONFIG"; then
15260 if test -n "$PKG_CONFIG" && \
15261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15262 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15263 ac_status=$?
15264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15265 test $ac_status = 0; }; then
15266 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15267 test "x$?" != "x0" && pkg_failed=yes
15268 else
15269 pkg_failed=yes
15271 else
15272 pkg_failed=untried
15277 if test $pkg_failed = yes; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15279 $as_echo "no" >&6; }
15281 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15282 _pkg_short_errors_supported=yes
15283 else
15284 _pkg_short_errors_supported=no
15286 if test $_pkg_short_errors_supported = yes; then
15287 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15288 else
15289 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15291 # Put the nasty error message in config.log where it belongs
15292 echo "$zlib_PKG_ERRORS" >&5
15294 have_zlib=false
15295 elif test $pkg_failed = untried; then
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15297 $as_echo "no" >&6; }
15298 have_zlib=false
15299 else
15300 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
15301 zlib_LIBS=$pkg_cv_zlib_LIBS
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15303 $as_echo "yes" >&6; }
15304 have_zlib=true
15306 HAVE_ZLIB=$have_zlib
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15310 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15314 #include <netdb.h>
15315 int test = AI_ADDRCONFIG;
15318 main ()
15323 return 0;
15325 _ACEOF
15326 if ac_fn_c_try_compile "$LINENO"; then :
15328 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15330 $as_echo "yes" >&6; }
15331 else
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15333 $as_echo "no" >&6; }
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338 have_parfait=false
15339 if test -f ./build/tar/parfait.tar.gz
15340 then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15342 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15343 have_parfait=true
15347 have_vector=false
15348 if test -f ./build/tar/vector.tar.gz
15349 then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15351 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15352 have_vector=true
15356 have_webjs=false
15357 if test -f ./build/tar/webjs.tar.gz
15358 then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15360 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15361 have_webjs=true
15368 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"
15370 cat >confcache <<\_ACEOF
15371 # This file is a shell script that caches the results of configure
15372 # tests run on this system so they can be shared between configure
15373 # scripts and configure runs, see configure's option --config-cache.
15374 # It is not useful on other systems. If it contains results you don't
15375 # want to keep, you may remove or edit it.
15377 # config.status only pays attention to the cache file if you give it
15378 # the --recheck option to rerun configure.
15380 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15381 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15382 # following values.
15384 _ACEOF
15386 # The following way of writing the cache mishandles newlines in values,
15387 # but we know of no workaround that is simple, portable, and efficient.
15388 # So, we kill variables containing newlines.
15389 # Ultrix sh set writes to stderr and can't be redirected directly,
15390 # and sets the high bit in the cache file unless we assign to the vars.
15392 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15393 eval ac_val=\$$ac_var
15394 case $ac_val in #(
15395 *${as_nl}*)
15396 case $ac_var in #(
15397 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15398 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15399 esac
15400 case $ac_var in #(
15401 _ | IFS | as_nl) ;; #(
15402 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15403 *) { eval $ac_var=; unset $ac_var;} ;;
15404 esac ;;
15405 esac
15406 done
15408 (set) 2>&1 |
15409 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15410 *${as_nl}ac_space=\ *)
15411 # `set' does not quote correctly, so add quotes: double-quote
15412 # substitution turns \\\\ into \\, and sed turns \\ into \.
15413 sed -n \
15414 "s/'/'\\\\''/g;
15415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15416 ;; #(
15418 # `set' quotes correctly as required by POSIX, so do not add quotes.
15419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15421 esac |
15422 sort
15424 sed '
15425 /^ac_cv_env_/b end
15426 t clear
15427 :clear
15428 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15429 t end
15430 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15431 :end' >>confcache
15432 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15433 if test -w "$cache_file"; then
15434 if test "x$cache_file" != "x/dev/null"; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15436 $as_echo "$as_me: updating cache $cache_file" >&6;}
15437 if test ! -f "$cache_file" || test -h "$cache_file"; then
15438 cat confcache >"$cache_file"
15439 else
15440 case $cache_file in #(
15441 */* | ?:*)
15442 mv -f confcache "$cache_file"$$ &&
15443 mv -f "$cache_file"$$ "$cache_file" ;; #(
15445 mv -f confcache "$cache_file" ;;
15446 esac
15449 else
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15451 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15454 rm -f confcache
15456 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15457 # Let make expand exec_prefix.
15458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15460 DEFS=-DHAVE_CONFIG_H
15462 ac_libobjs=
15463 ac_ltlibobjs=
15465 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15466 # 1. Remove the extension, and $U if already installed.
15467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15468 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15470 # will be set to the directory where LIBOBJS objects are built.
15471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15473 done
15474 LIBOBJS=$ac_libobjs
15476 LTLIBOBJS=$ac_ltlibobjs
15480 : "${CONFIG_STATUS=./config.status}"
15481 ac_write_fail=0
15482 ac_clean_files_save=$ac_clean_files
15483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15485 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15486 as_write_fail=0
15487 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15488 #! $SHELL
15489 # Generated by $as_me.
15490 # Run this file to recreate the current configuration.
15491 # Compiler output produced by configure, useful for debugging
15492 # configure, is in config.log if it exists.
15494 debug=false
15495 ac_cs_recheck=false
15496 ac_cs_silent=false
15498 SHELL=\${CONFIG_SHELL-$SHELL}
15499 export SHELL
15500 _ASEOF
15501 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15502 ## -------------------- ##
15503 ## M4sh Initialization. ##
15504 ## -------------------- ##
15506 # Be more Bourne compatible
15507 DUALCASE=1; export DUALCASE # for MKS sh
15508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15509 emulate sh
15510 NULLCMD=:
15511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15512 # is contrary to our usage. Disable this feature.
15513 alias -g '${1+"$@"}'='"$@"'
15514 setopt NO_GLOB_SUBST
15515 else
15516 case `(set -o) 2>/dev/null` in #(
15517 *posix*) :
15518 set -o posix ;; #(
15519 *) :
15521 esac
15525 as_nl='
15527 export as_nl
15528 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15529 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15532 # Prefer a ksh shell builtin over an external printf program on Solaris,
15533 # but without wasting forks for bash or zsh.
15534 if test -z "$BASH_VERSION$ZSH_VERSION" \
15535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15536 as_echo='print -r --'
15537 as_echo_n='print -rn --'
15538 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15539 as_echo='printf %s\n'
15540 as_echo_n='printf %s'
15541 else
15542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15543 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15544 as_echo_n='/usr/ucb/echo -n'
15545 else
15546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15547 as_echo_n_body='eval
15548 arg=$1;
15549 case $arg in #(
15550 *"$as_nl"*)
15551 expr "X$arg" : "X\\(.*\\)$as_nl";
15552 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15553 esac;
15554 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15556 export as_echo_n_body
15557 as_echo_n='sh -c $as_echo_n_body as_echo'
15559 export as_echo_body
15560 as_echo='sh -c $as_echo_body as_echo'
15563 # The user is always right.
15564 if test "${PATH_SEPARATOR+set}" != set; then
15565 PATH_SEPARATOR=:
15566 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15567 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15568 PATH_SEPARATOR=';'
15573 # IFS
15574 # We need space, tab and new line, in precisely that order. Quoting is
15575 # there to prevent editors from complaining about space-tab.
15576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15577 # splitting by setting IFS to empty value.)
15578 IFS=" "" $as_nl"
15580 # Find who we are. Look in the path if we contain no directory separator.
15581 as_myself=
15582 case $0 in #((
15583 *[\\/]* ) as_myself=$0 ;;
15584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15585 for as_dir in $PATH
15587 IFS=$as_save_IFS
15588 test -z "$as_dir" && as_dir=.
15589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15590 done
15591 IFS=$as_save_IFS
15594 esac
15595 # We did not find ourselves, most probably we were run as `sh COMMAND'
15596 # in which case we are not to be found in the path.
15597 if test "x$as_myself" = x; then
15598 as_myself=$0
15600 if test ! -f "$as_myself"; then
15601 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15602 exit 1
15605 # Unset variables that we do not need and which cause bugs (e.g. in
15606 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15607 # suppresses any "Segmentation fault" message there. '((' could
15608 # trigger a bug in pdksh 5.2.14.
15609 for as_var in BASH_ENV ENV MAIL MAILPATH
15610 do eval test x\${$as_var+set} = xset \
15611 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15612 done
15613 PS1='$ '
15614 PS2='> '
15615 PS4='+ '
15617 # NLS nuisances.
15618 LC_ALL=C
15619 export LC_ALL
15620 LANGUAGE=C
15621 export LANGUAGE
15623 # CDPATH.
15624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15627 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15628 # ----------------------------------------
15629 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15630 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15631 # script with STATUS, using 1 if that was 0.
15632 as_fn_error ()
15634 as_status=$1; test $as_status -eq 0 && as_status=1
15635 if test "$4"; then
15636 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15637 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15639 $as_echo "$as_me: error: $2" >&2
15640 as_fn_exit $as_status
15641 } # as_fn_error
15644 # as_fn_set_status STATUS
15645 # -----------------------
15646 # Set $? to STATUS, without forking.
15647 as_fn_set_status ()
15649 return $1
15650 } # as_fn_set_status
15652 # as_fn_exit STATUS
15653 # -----------------
15654 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15655 as_fn_exit ()
15657 set +e
15658 as_fn_set_status $1
15659 exit $1
15660 } # as_fn_exit
15662 # as_fn_unset VAR
15663 # ---------------
15664 # Portably unset VAR.
15665 as_fn_unset ()
15667 { eval $1=; unset $1;}
15669 as_unset=as_fn_unset
15670 # as_fn_append VAR VALUE
15671 # ----------------------
15672 # Append the text in VALUE to the end of the definition contained in VAR. Take
15673 # advantage of any shell optimizations that allow amortized linear growth over
15674 # repeated appends, instead of the typical quadratic growth present in naive
15675 # implementations.
15676 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15677 eval 'as_fn_append ()
15679 eval $1+=\$2
15681 else
15682 as_fn_append ()
15684 eval $1=\$$1\$2
15686 fi # as_fn_append
15688 # as_fn_arith ARG...
15689 # ------------------
15690 # Perform arithmetic evaluation on the ARGs, and store the result in the
15691 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15692 # must be portable across $(()) and expr.
15693 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15694 eval 'as_fn_arith ()
15696 as_val=$(( $* ))
15698 else
15699 as_fn_arith ()
15701 as_val=`expr "$@" || test $? -eq 1`
15703 fi # as_fn_arith
15706 if expr a : '\(a\)' >/dev/null 2>&1 &&
15707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15708 as_expr=expr
15709 else
15710 as_expr=false
15713 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15714 as_basename=basename
15715 else
15716 as_basename=false
15719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15720 as_dirname=dirname
15721 else
15722 as_dirname=false
15725 as_me=`$as_basename -- "$0" ||
15726 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15727 X"$0" : 'X\(//\)$' \| \
15728 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15729 $as_echo X/"$0" |
15730 sed '/^.*\/\([^/][^/]*\)\/*$/{
15731 s//\1/
15734 /^X\/\(\/\/\)$/{
15735 s//\1/
15738 /^X\/\(\/\).*/{
15739 s//\1/
15742 s/.*/./; q'`
15744 # Avoid depending upon Character Ranges.
15745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15748 as_cr_digits='0123456789'
15749 as_cr_alnum=$as_cr_Letters$as_cr_digits
15751 ECHO_C= ECHO_N= ECHO_T=
15752 case `echo -n x` in #(((((
15753 -n*)
15754 case `echo 'xy\c'` in
15755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15756 xy) ECHO_C='\c';;
15757 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15758 ECHO_T=' ';;
15759 esac;;
15761 ECHO_N='-n';;
15762 esac
15764 rm -f conf$$ conf$$.exe conf$$.file
15765 if test -d conf$$.dir; then
15766 rm -f conf$$.dir/conf$$.file
15767 else
15768 rm -f conf$$.dir
15769 mkdir conf$$.dir 2>/dev/null
15771 if (echo >conf$$.file) 2>/dev/null; then
15772 if ln -s conf$$.file conf$$ 2>/dev/null; then
15773 as_ln_s='ln -s'
15774 # ... but there are two gotchas:
15775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15777 # In both cases, we have to default to `cp -pR'.
15778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15779 as_ln_s='cp -pR'
15780 elif ln conf$$.file conf$$ 2>/dev/null; then
15781 as_ln_s=ln
15782 else
15783 as_ln_s='cp -pR'
15785 else
15786 as_ln_s='cp -pR'
15788 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15789 rmdir conf$$.dir 2>/dev/null
15792 # as_fn_mkdir_p
15793 # -------------
15794 # Create "$as_dir" as a directory, including parents if necessary.
15795 as_fn_mkdir_p ()
15798 case $as_dir in #(
15799 -*) as_dir=./$as_dir;;
15800 esac
15801 test -d "$as_dir" || eval $as_mkdir_p || {
15802 as_dirs=
15803 while :; do
15804 case $as_dir in #(
15805 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15806 *) as_qdir=$as_dir;;
15807 esac
15808 as_dirs="'$as_qdir' $as_dirs"
15809 as_dir=`$as_dirname -- "$as_dir" ||
15810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15811 X"$as_dir" : 'X\(//\)[^/]' \| \
15812 X"$as_dir" : 'X\(//\)$' \| \
15813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15814 $as_echo X"$as_dir" |
15815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15816 s//\1/
15819 /^X\(\/\/\)[^/].*/{
15820 s//\1/
15823 /^X\(\/\/\)$/{
15824 s//\1/
15827 /^X\(\/\).*/{
15828 s//\1/
15831 s/.*/./; q'`
15832 test -d "$as_dir" && break
15833 done
15834 test -z "$as_dirs" || eval "mkdir $as_dirs"
15835 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15838 } # as_fn_mkdir_p
15839 if mkdir -p . 2>/dev/null; then
15840 as_mkdir_p='mkdir -p "$as_dir"'
15841 else
15842 test -d ./-p && rmdir ./-p
15843 as_mkdir_p=false
15847 # as_fn_executable_p FILE
15848 # -----------------------
15849 # Test if FILE is an executable regular file.
15850 as_fn_executable_p ()
15852 test -f "$1" && test -x "$1"
15853 } # as_fn_executable_p
15854 as_test_x='test -x'
15855 as_executable_p=as_fn_executable_p
15857 # Sed expression to map a string onto a valid CPP name.
15858 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15860 # Sed expression to map a string onto a valid variable name.
15861 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15864 exec 6>&1
15865 ## ----------------------------------- ##
15866 ## Main body of $CONFIG_STATUS script. ##
15867 ## ----------------------------------- ##
15868 _ASEOF
15869 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15872 # Save the log message, to keep $0 and so on meaningful, and to
15873 # report actual input values of CONFIG_FILES etc. instead of their
15874 # values after options handling.
15875 ac_log="
15876 This file was extended by $as_me, which was
15877 generated by GNU Autoconf 2.69. Invocation command line was
15879 CONFIG_FILES = $CONFIG_FILES
15880 CONFIG_HEADERS = $CONFIG_HEADERS
15881 CONFIG_LINKS = $CONFIG_LINKS
15882 CONFIG_COMMANDS = $CONFIG_COMMANDS
15883 $ $0 $@
15885 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15888 _ACEOF
15890 case $ac_config_files in *"
15891 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15892 esac
15894 case $ac_config_headers in *"
15895 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15896 esac
15899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15900 # Files that config.status was made for.
15901 config_files="$ac_config_files"
15902 config_headers="$ac_config_headers"
15904 _ACEOF
15906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15907 ac_cs_usage="\
15908 \`$as_me' instantiates files and other configuration actions
15909 from templates according to the current configuration. Unless the files
15910 and actions are specified as TAGs, all are instantiated by default.
15912 Usage: $0 [OPTION]... [TAG]...
15914 -h, --help print this help, then exit
15915 -V, --version print version number and configuration settings, then exit
15916 --config print configuration, then exit
15917 -q, --quiet, --silent
15918 do not print progress messages
15919 -d, --debug don't remove temporary files
15920 --recheck update $as_me by reconfiguring in the same conditions
15921 --file=FILE[:TEMPLATE]
15922 instantiate the configuration file FILE
15923 --header=FILE[:TEMPLATE]
15924 instantiate the configuration header FILE
15926 Configuration files:
15927 $config_files
15929 Configuration headers:
15930 $config_headers
15932 Report bugs to the package provider."
15934 _ACEOF
15935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15936 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15937 ac_cs_version="\\
15938 config.status
15939 configured by $0, generated by GNU Autoconf 2.69,
15940 with options \\"\$ac_cs_config\\"
15942 Copyright (C) 2012 Free Software Foundation, Inc.
15943 This config.status script is free software; the Free Software Foundation
15944 gives unlimited permission to copy, distribute and modify it."
15946 ac_pwd='$ac_pwd'
15947 srcdir='$srcdir'
15948 test -n "\$AWK" || AWK=awk
15949 _ACEOF
15951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15952 # The default lists apply if the user does not specify any file.
15953 ac_need_defaults=:
15954 while test $# != 0
15956 case $1 in
15957 --*=?*)
15958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15960 ac_shift=:
15962 --*=)
15963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15964 ac_optarg=
15965 ac_shift=:
15968 ac_option=$1
15969 ac_optarg=$2
15970 ac_shift=shift
15972 esac
15974 case $ac_option in
15975 # Handling of the options.
15976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15977 ac_cs_recheck=: ;;
15978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15979 $as_echo "$ac_cs_version"; exit ;;
15980 --config | --confi | --conf | --con | --co | --c )
15981 $as_echo "$ac_cs_config"; exit ;;
15982 --debug | --debu | --deb | --de | --d | -d )
15983 debug=: ;;
15984 --file | --fil | --fi | --f )
15985 $ac_shift
15986 case $ac_optarg in
15987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15988 '') as_fn_error $? "missing file argument" ;;
15989 esac
15990 as_fn_append CONFIG_FILES " '$ac_optarg'"
15991 ac_need_defaults=false;;
15992 --header | --heade | --head | --hea )
15993 $ac_shift
15994 case $ac_optarg in
15995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15996 esac
15997 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15998 ac_need_defaults=false;;
15999 --he | --h)
16000 # Conflict between --help and --header
16001 as_fn_error $? "ambiguous option: \`$1'
16002 Try \`$0 --help' for more information.";;
16003 --help | --hel | -h )
16004 $as_echo "$ac_cs_usage"; exit ;;
16005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16007 ac_cs_silent=: ;;
16009 # This is an error.
16010 -*) as_fn_error $? "unrecognized option: \`$1'
16011 Try \`$0 --help' for more information." ;;
16013 *) as_fn_append ac_config_targets " $1"
16014 ac_need_defaults=false ;;
16016 esac
16017 shift
16018 done
16020 ac_configure_extra_args=
16022 if $ac_cs_silent; then
16023 exec 6>/dev/null
16024 ac_configure_extra_args="$ac_configure_extra_args --silent"
16027 _ACEOF
16028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16029 if \$ac_cs_recheck; then
16030 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16031 shift
16032 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16033 CONFIG_SHELL='$SHELL'
16034 export CONFIG_SHELL
16035 exec "\$@"
16038 _ACEOF
16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16040 exec 5>>config.log
16042 echo
16043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16044 ## Running $as_me. ##
16045 _ASBOX
16046 $as_echo "$ac_log"
16047 } >&5
16049 _ACEOF
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 _ACEOF
16053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16055 # Handling of arguments.
16056 for ac_config_target in $ac_config_targets
16058 case $ac_config_target in
16059 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
16060 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
16061 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
16062 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
16063 "src/include/builddefs") CONFIG_FILES="$CONFIG_FILES src/include/builddefs" ;;
16064 "src/include/pcp.conf") CONFIG_FILES="$CONFIG_FILES src/include/pcp.conf" ;;
16065 "pcp.lsm") CONFIG_FILES="$CONFIG_FILES pcp.lsm" ;;
16066 "debian/pcp.preinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.preinst.head" ;;
16067 "debian/pcp.postinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.postinst.head" ;;
16068 "build/tar/preinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/preinstall.head" ;;
16069 "build/tar/postinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/postinstall.head" ;;
16070 "build/GNUlocaldefs") CONFIG_FILES="$CONFIG_FILES build/GNUlocaldefs" ;;
16071 "build/mac/uninstall-pcp") CONFIG_FILES="$CONFIG_FILES build/mac/uninstall-pcp" ;;
16073 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16074 esac
16075 done
16078 # If the user did not use the arguments to specify the items to instantiate,
16079 # then the envvar interface is used. Set only those that are not.
16080 # We use the long form for the default assignment because of an extremely
16081 # bizarre bug on SunOS 4.1.3.
16082 if $ac_need_defaults; then
16083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16087 # Have a temporary directory for convenience. Make it in the build tree
16088 # simply because there is no reason against having it here, and in addition,
16089 # creating and moving files from /tmp can sometimes cause problems.
16090 # Hook for its removal unless debugging.
16091 # Note that there is a small window in which the directory will not be cleaned:
16092 # after its creation but before its name has been assigned to `$tmp'.
16093 $debug ||
16095 tmp= ac_tmp=
16096 trap 'exit_status=$?
16097 : "${ac_tmp:=$tmp}"
16098 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16100 trap 'as_fn_exit 1' 1 2 13 15
16102 # Create a (secure) tmp directory for tmp files.
16105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16106 test -d "$tmp"
16107 } ||
16109 tmp=./conf$$-$RANDOM
16110 (umask 077 && mkdir "$tmp")
16111 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16112 ac_tmp=$tmp
16114 # Set up the scripts for CONFIG_FILES section.
16115 # No need to generate them if there are no CONFIG_FILES.
16116 # This happens for instance with `./config.status config.h'.
16117 if test -n "$CONFIG_FILES"; then
16120 ac_cr=`echo X | tr X '\015'`
16121 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16122 # But we know of no other shell where ac_cr would be empty at this
16123 # point, so we can use a bashism as a fallback.
16124 if test "x$ac_cr" = x; then
16125 eval ac_cr=\$\'\\r\'
16127 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16128 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16129 ac_cs_awk_cr='\\r'
16130 else
16131 ac_cs_awk_cr=$ac_cr
16134 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16135 _ACEOF
16139 echo "cat >conf$$subs.awk <<_ACEOF" &&
16140 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16141 echo "_ACEOF"
16142 } >conf$$subs.sh ||
16143 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16144 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16145 ac_delim='%!_!# '
16146 for ac_last_try in false false false false false :; do
16147 . ./conf$$subs.sh ||
16148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16151 if test $ac_delim_n = $ac_delim_num; then
16152 break
16153 elif $ac_last_try; then
16154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16155 else
16156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16158 done
16159 rm -f conf$$subs.sh
16161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16162 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16163 _ACEOF
16164 sed -n '
16166 s/^/S["/; s/!.*/"]=/
16169 s/^[^!]*!//
16170 :repl
16171 t repl
16172 s/'"$ac_delim"'$//
16173 t delim
16176 s/\(.\{148\}\)..*/\1/
16177 t more1
16178 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16181 b repl
16182 :more1
16183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16186 s/.\{148\}//
16187 t nl
16188 :delim
16190 s/\(.\{148\}\)..*/\1/
16191 t more2
16192 s/["\\]/\\&/g; s/^/"/; s/$/"/
16195 :more2
16196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16199 s/.\{148\}//
16200 t delim
16201 ' <conf$$subs.awk | sed '
16202 /^[^""]/{
16204 s/\n//
16206 ' >>$CONFIG_STATUS || ac_write_fail=1
16207 rm -f conf$$subs.awk
16208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209 _ACAWK
16210 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16211 for (key in S) S_is_set[key] = 1
16212 FS = "\a"
16216 line = $ 0
16217 nfields = split(line, field, "@")
16218 substed = 0
16219 len = length(field[1])
16220 for (i = 2; i < nfields; i++) {
16221 key = field[i]
16222 keylen = length(key)
16223 if (S_is_set[key]) {
16224 value = S[key]
16225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16226 len += length(value) + length(field[++i])
16227 substed = 1
16228 } else
16229 len += 1 + keylen
16232 print line
16235 _ACAWK
16236 _ACEOF
16237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16238 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16239 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16240 else
16242 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16243 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16244 _ACEOF
16246 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16247 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16248 # trailing colons and then remove the whole line if VPATH becomes empty
16249 # (actually we leave an empty line to preserve line numbers).
16250 if test "x$srcdir" = x.; then
16251 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16253 s///
16254 s/^/:/
16255 s/[ ]*$/:/
16256 s/:\$(srcdir):/:/g
16257 s/:\${srcdir}:/:/g
16258 s/:@srcdir@:/:/g
16259 s/^:*//
16260 s/:*$//
16262 s/\(=[ ]*\).*/\1/
16264 s/\n//
16265 s/^[^=]*=[ ]*$//
16269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16270 fi # test -n "$CONFIG_FILES"
16272 # Set up the scripts for CONFIG_HEADERS section.
16273 # No need to generate them if there are no CONFIG_HEADERS.
16274 # This happens for instance with `./config.status Makefile'.
16275 if test -n "$CONFIG_HEADERS"; then
16276 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16277 BEGIN {
16278 _ACEOF
16280 # Transform confdefs.h into an awk script `defines.awk', embedded as
16281 # here-document in config.status, that substitutes the proper values into
16282 # config.h.in to produce config.h.
16284 # Create a delimiter string that does not exist in confdefs.h, to ease
16285 # handling of long lines.
16286 ac_delim='%!_!# '
16287 for ac_last_try in false false :; do
16288 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16289 if test -z "$ac_tt"; then
16290 break
16291 elif $ac_last_try; then
16292 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16293 else
16294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16296 done
16298 # For the awk script, D is an array of macro values keyed by name,
16299 # likewise P contains macro parameters if any. Preserve backslash
16300 # newline sequences.
16302 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16303 sed -n '
16304 s/.\{148\}/&'"$ac_delim"'/g
16305 t rset
16306 :rset
16307 s/^[ ]*#[ ]*define[ ][ ]*/ /
16308 t def
16310 :def
16311 s/\\$//
16312 t bsnl
16313 s/["\\]/\\&/g
16314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16315 D["\1"]=" \3"/p
16316 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16318 :bsnl
16319 s/["\\]/\\&/g
16320 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16321 D["\1"]=" \3\\\\\\n"\\/p
16322 t cont
16323 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16324 t cont
16326 :cont
16328 s/.\{148\}/&'"$ac_delim"'/g
16329 t clear
16330 :clear
16331 s/\\$//
16332 t bsnlc
16333 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16335 :bsnlc
16336 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16337 b cont
16338 ' <confdefs.h | sed '
16339 s/'"$ac_delim"'/"\\\
16340 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16343 for (key in D) D_is_set[key] = 1
16344 FS = "\a"
16346 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16347 line = \$ 0
16348 split(line, arg, " ")
16349 if (arg[1] == "#") {
16350 defundef = arg[2]
16351 mac1 = arg[3]
16352 } else {
16353 defundef = substr(arg[1], 2)
16354 mac1 = arg[2]
16356 split(mac1, mac2, "(") #)
16357 macro = mac2[1]
16358 prefix = substr(line, 1, index(line, defundef) - 1)
16359 if (D_is_set[macro]) {
16360 # Preserve the white space surrounding the "#".
16361 print prefix "define", macro P[macro] D[macro]
16362 next
16363 } else {
16364 # Replace #undef with comments. This is necessary, for example,
16365 # in the case of _POSIX_SOURCE, which is predefined and required
16366 # on some systems where configure will not decide to define it.
16367 if (defundef == "undef") {
16368 print "/*", prefix defundef, macro, "*/"
16369 next
16373 { print }
16374 _ACAWK
16375 _ACEOF
16376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16377 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16378 fi # test -n "$CONFIG_HEADERS"
16381 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16382 shift
16383 for ac_tag
16385 case $ac_tag in
16386 :[FHLC]) ac_mode=$ac_tag; continue;;
16387 esac
16388 case $ac_mode$ac_tag in
16389 :[FHL]*:*);;
16390 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16391 :[FH]-) ac_tag=-:-;;
16392 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16393 esac
16394 ac_save_IFS=$IFS
16395 IFS=:
16396 set x $ac_tag
16397 IFS=$ac_save_IFS
16398 shift
16399 ac_file=$1
16400 shift
16402 case $ac_mode in
16403 :L) ac_source=$1;;
16404 :[FH])
16405 ac_file_inputs=
16406 for ac_f
16408 case $ac_f in
16409 -) ac_f="$ac_tmp/stdin";;
16410 *) # Look for the file first in the build tree, then in the source tree
16411 # (if the path is not absolute). The absolute path cannot be DOS-style,
16412 # because $ac_f cannot contain `:'.
16413 test -f "$ac_f" ||
16414 case $ac_f in
16415 [\\/$]*) false;;
16416 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16417 esac ||
16418 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16419 esac
16420 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16421 as_fn_append ac_file_inputs " '$ac_f'"
16422 done
16424 # Let's still pretend it is `configure' which instantiates (i.e., don't
16425 # use $as_me), people would be surprised to read:
16426 # /* config.h. Generated by config.status. */
16427 configure_input='Generated from '`
16428 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16429 `' by configure.'
16430 if test x"$ac_file" != x-; then
16431 configure_input="$ac_file. $configure_input"
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16433 $as_echo "$as_me: creating $ac_file" >&6;}
16435 # Neutralize special characters interpreted by sed in replacement strings.
16436 case $configure_input in #(
16437 *\&* | *\|* | *\\* )
16438 ac_sed_conf_input=`$as_echo "$configure_input" |
16439 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16440 *) ac_sed_conf_input=$configure_input;;
16441 esac
16443 case $ac_tag in
16444 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16446 esac
16448 esac
16450 ac_dir=`$as_dirname -- "$ac_file" ||
16451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16452 X"$ac_file" : 'X\(//\)[^/]' \| \
16453 X"$ac_file" : 'X\(//\)$' \| \
16454 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16455 $as_echo X"$ac_file" |
16456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16457 s//\1/
16460 /^X\(\/\/\)[^/].*/{
16461 s//\1/
16464 /^X\(\/\/\)$/{
16465 s//\1/
16468 /^X\(\/\).*/{
16469 s//\1/
16472 s/.*/./; q'`
16473 as_dir="$ac_dir"; as_fn_mkdir_p
16474 ac_builddir=.
16476 case "$ac_dir" in
16477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16480 # A ".." for each directory in $ac_dir_suffix.
16481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16482 case $ac_top_builddir_sub in
16483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16485 esac ;;
16486 esac
16487 ac_abs_top_builddir=$ac_pwd
16488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16489 # for backward compatibility:
16490 ac_top_builddir=$ac_top_build_prefix
16492 case $srcdir in
16493 .) # We are building in place.
16494 ac_srcdir=.
16495 ac_top_srcdir=$ac_top_builddir_sub
16496 ac_abs_top_srcdir=$ac_pwd ;;
16497 [\\/]* | ?:[\\/]* ) # Absolute name.
16498 ac_srcdir=$srcdir$ac_dir_suffix;
16499 ac_top_srcdir=$srcdir
16500 ac_abs_top_srcdir=$srcdir ;;
16501 *) # Relative name.
16502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16503 ac_top_srcdir=$ac_top_build_prefix$srcdir
16504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16505 esac
16506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16509 case $ac_mode in
16512 # CONFIG_FILE
16515 _ACEOF
16517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16518 # If the template does not know about datarootdir, expand it.
16519 # FIXME: This hack should be removed a few years after 2.60.
16520 ac_datarootdir_hack=; ac_datarootdir_seen=
16521 ac_sed_dataroot='
16522 /datarootdir/ {
16526 /@datadir@/p
16527 /@docdir@/p
16528 /@infodir@/p
16529 /@localedir@/p
16530 /@mandir@/p'
16531 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16532 *datarootdir*) ac_datarootdir_seen=yes;;
16533 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16535 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16536 _ACEOF
16537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16538 ac_datarootdir_hack='
16539 s&@datadir@&$datadir&g
16540 s&@docdir@&$docdir&g
16541 s&@infodir@&$infodir&g
16542 s&@localedir@&$localedir&g
16543 s&@mandir@&$mandir&g
16544 s&\\\${datarootdir}&$datarootdir&g' ;;
16545 esac
16546 _ACEOF
16548 # Neutralize VPATH when `$srcdir' = `.'.
16549 # Shell code in configure.ac might set extrasub.
16550 # FIXME: do we really want to maintain this feature?
16551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16552 ac_sed_extra="$ac_vpsub
16553 $extrasub
16554 _ACEOF
16555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16558 s|@configure_input@|$ac_sed_conf_input|;t t
16559 s&@top_builddir@&$ac_top_builddir_sub&;t t
16560 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16561 s&@srcdir@&$ac_srcdir&;t t
16562 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16563 s&@top_srcdir@&$ac_top_srcdir&;t t
16564 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16565 s&@builddir@&$ac_builddir&;t t
16566 s&@abs_builddir@&$ac_abs_builddir&;t t
16567 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16568 $ac_datarootdir_hack
16570 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16571 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16574 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16576 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16578 which seems to be undefined. Please make sure it is defined" >&5
16579 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16580 which seems to be undefined. Please make sure it is defined" >&2;}
16582 rm -f "$ac_tmp/stdin"
16583 case $ac_file in
16584 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16585 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16586 esac \
16587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16591 # CONFIG_HEADER
16593 if test x"$ac_file" != x-; then
16595 $as_echo "/* $configure_input */" \
16596 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16597 } >"$ac_tmp/config.h" \
16598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16599 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16601 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16602 else
16603 rm -f "$ac_file"
16604 mv "$ac_tmp/config.h" "$ac_file" \
16605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16607 else
16608 $as_echo "/* $configure_input */" \
16609 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16610 || as_fn_error $? "could not create -" "$LINENO" 5
16615 esac
16617 done # for ac_tag
16620 as_fn_exit 0
16621 _ACEOF
16622 ac_clean_files=$ac_clean_files_save
16624 test $ac_write_fail = 0 ||
16625 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16628 # configure is writing to config.log, and then calls config.status.
16629 # config.status does its own redirection, appending to config.log.
16630 # Unfortunately, on DOS this fails, as config.log is still kept open
16631 # by configure, so config.status won't be able to write to it; its
16632 # output is simply discarded. So we exec the FD to /dev/null,
16633 # effectively closing config.log, so it can be properly (re)opened and
16634 # appended to by config.status. When coming back to configure, we
16635 # need to make the FD available again.
16636 if test "$no_create" != yes; then
16637 ac_cs_success=:
16638 ac_config_status_args=
16639 test "$silent" = yes &&
16640 ac_config_status_args="$ac_config_status_args --quiet"
16641 exec 5>/dev/null
16642 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16643 exec 5>>config.log
16644 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16645 # would make configure fail if this is the last instruction.
16646 $ac_cs_success || as_fn_exit 1
16648 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16650 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}