Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / configure
blobeac98085a929f20e1d9db748d8e2b8f9540a943d
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_int64
701 fmt_pid
702 rdynamic_flag
703 enable_manager
704 enable_webapi
705 HAVE_CAIRO
706 cairo_LIBS
707 cairo_CFLAGS
708 HAVE_LIBMICROHTTPD
709 libmicrohttpd_LIBS
710 libmicrohttpd_CFLAGS
711 PMDA_POSTFIX
712 QSHAPE
713 PMDA_RPM
714 PMDA_PERFEVENT
715 PFM_LIBS
716 PMDA_PAPI
717 PAPI_LIBS
718 PAPI_CFLAGS
719 papi_LIBS
720 papi_CFLAGS
721 PMDA_INFINIBAND
722 IB_LIBS
723 PMDA_SYSTEMD
724 SYSTEMD_LIBS
725 SYSTEMD_CFLAGS
726 HAVE_NCURSES
727 ncurses_LIBS
728 ncurses_CFLAGS
729 lib_for_regex
730 grep
731 pcp_syslog_prog
732 pcp_ps_prog
733 LN_S
734 book_brand
735 book_toolchain
736 xmlto
737 XMLTO
738 dblatex
739 DBLATEX
740 publican
741 PUBLICAN
742 makepkg
743 MAKEPKG
744 dpkg
745 DPKG
746 md5sum
747 MD5SUM
748 makedepend
749 MAKEDEPEND
750 TRUEPROG
751 pod2man
752 POD2MAN
753 rpmprog
756 rpmbuild
757 RPMBUILD
758 dlltool
759 DLLTOOL
760 pkgmk
761 PKGMK
762 mkinstallp
763 MKINSTALLP
764 hdiutil
765 HDIUTIL
766 package_maker
769 lzma
770 LZMA
771 bzip2
772 BZIP2
773 gzip
777 pcp_group_install
778 pcp_user_install
782 make
783 MAKE
784 qmake
785 enable_qt
786 qt_release
787 QMAKE
788 PMDA_LIBVIRT
789 PMDA_ACTIVEMQ
790 PMDA_NGINX
791 PMDA_ELASTICSEARCH
792 PMDA_ORACLE
793 PMDA_POSTGRESQL
794 PMDA_MYSQL
795 PMDA_SNMP
796 have_perl
797 pcp_perl_prog
798 PERL
799 have_python_libvirt
800 PMDA_JSON
801 have_python_six
802 have_python_requests
803 have_python_jsonpointer
804 pcp_python_prog
805 have_python
806 enable_python3
807 enable_python2
808 PYTHON3
809 PYTHON
811 LTLIBOBJS
812 LIBOBJS
813 pm_version_current
814 PACKAGE_DISTRIBUTION
815 PACKAGE_BUILD_DATE
816 PACKAGE_BUILD
817 PACKAGE_REVISION
818 PACKAGE_MINOR
819 PACKAGE_MAJOR
820 enable_systemd
821 pcp_systemdunit_dir
822 SYSTEMD_SYSTEMUNITDIR
823 enable_avahi
824 enable_discovery
825 lib_for_avahi
826 avahi_LIBS
827 avahi_CFLAGS
828 enable_probes
830 DTRACE
831 EGREP
832 GREP
833 echo_c
834 echo_n
835 sort
836 yacc
837 YFLAGS
838 YACC
840 LEXLIB
841 LEX_OUTPUT_ROOT
843 which
844 WHICH
845 find
846 FIND
847 echo
848 ECHO
853 enable_shared
855 ac_ct_CXX
856 CXXFLAGS
858 INVISIBILITY
859 PIECFLAGS
860 PIELDFLAGS
861 PLDFLAGS
862 PCFLAGS
863 cflags_abi
864 cc_is_gcc
866 CCPATH
867 OBJEXT
868 EXEEXT
869 ac_ct_CC
870 CPPFLAGS
871 LDFLAGS
872 CFLAGS
874 PKG_CONFIG_LIBDIR
875 PKG_CONFIG_PATH
876 PKG_CONFIG
877 optimization
878 pcp_ps_all_flags
879 pcp_platform_paths
880 cross_compiling
881 target_os
882 target_vendor
883 target_cpu
884 target
885 host_os
886 host_vendor
887 host_cpu
888 host
889 build_os
890 build_vendor
891 build_cpu
892 build
893 pcp_group
894 pcp_user
895 target_alias
896 host_alias
897 build_alias
898 LIBS
899 ECHO_T
900 ECHO_N
901 ECHO_C
902 DEFS
903 mandir
904 localedir
905 libdir
906 psdir
907 pdfdir
908 dvidir
909 htmldir
910 infodir
911 docdir
912 oldincludedir
913 includedir
914 localstatedir
915 sharedstatedir
916 sysconfdir
917 datadir
918 datarootdir
919 libexecdir
920 sbindir
921 bindir
922 program_transform_name
923 prefix
924 exec_prefix
925 PACKAGE_URL
926 PACKAGE_BUGREPORT
927 PACKAGE_STRING
928 PACKAGE_VERSION
929 PACKAGE_TARNAME
930 PACKAGE_NAME
931 PATH_SEPARATOR
932 SHELL'
933 ac_subst_files=''
934 ac_user_opts='
935 enable_option_checking
936 with_64bit
937 with_optimization
938 with_threads
939 with_secure_sockets
940 with_static_probes
941 with_infiniband
942 with_user
943 with_group
944 with_discovery
945 with_systemd
946 with_qt
947 with_python
948 with_python3
949 with_books
950 with_books_brand
951 with_papi
952 with_perfevent
953 with_pmdajson
954 with_pmdasnmp
955 with_manager
956 with_webapi
957 with_webjs
958 with_vector
959 with_parfait
960 with_make
961 with_tar
962 with_zip
963 enable_ssp
964 enable_pie
965 enable_visibility
966 enable_shared
967 with_configdir
968 with_perl_installdirs
969 with_perl_install_base
970 with_python_prefix
971 with_x
972 with_rcdir
973 with_sysconfigdir
974 with_logdir
975 with_rundir
976 with_tmpdir
977 with_docdir
978 with_demosdir
980 ac_precious_vars='build_alias
981 host_alias
982 target_alias
983 PKG_CONFIG
984 PKG_CONFIG_PATH
985 PKG_CONFIG_LIBDIR
987 CFLAGS
988 LDFLAGS
989 LIBS
990 CPPFLAGS
992 CXXFLAGS
994 YACC
995 YFLAGS
997 avahi_CFLAGS
998 avahi_LIBS
999 SYSTEMD_SYSTEMUNITDIR
1000 ncurses_CFLAGS
1001 ncurses_LIBS
1002 SYSTEMD_CFLAGS
1003 SYSTEMD_LIBS
1004 papi_CFLAGS
1005 papi_LIBS
1006 libmicrohttpd_CFLAGS
1007 libmicrohttpd_LIBS
1008 cairo_CFLAGS
1009 cairo_LIBS
1010 XMKMF
1011 zlib_CFLAGS
1012 zlib_LIBS'
1015 # Initialize some variables set by options.
1016 ac_init_help=
1017 ac_init_version=false
1018 ac_unrecognized_opts=
1019 ac_unrecognized_sep=
1020 # The variables have the same names as the options, with
1021 # dashes changed to underlines.
1022 cache_file=/dev/null
1023 exec_prefix=NONE
1024 no_create=
1025 no_recursion=
1026 prefix=NONE
1027 program_prefix=NONE
1028 program_suffix=NONE
1029 program_transform_name=s,x,x,
1030 silent=
1031 site=
1032 srcdir=
1033 verbose=
1034 x_includes=NONE
1035 x_libraries=NONE
1037 # Installation directory options.
1038 # These are left unexpanded so users can "make install exec_prefix=/foo"
1039 # and all the variables that are supposed to be based on exec_prefix
1040 # by default will actually change.
1041 # Use braces instead of parens because sh, perl, etc. also accept them.
1042 # (The list follows the same order as the GNU Coding Standards.)
1043 bindir='${exec_prefix}/bin'
1044 sbindir='${exec_prefix}/sbin'
1045 libexecdir='${exec_prefix}/libexec'
1046 datarootdir='${prefix}/share'
1047 datadir='${datarootdir}'
1048 sysconfdir='${prefix}/etc'
1049 sharedstatedir='${prefix}/com'
1050 localstatedir='${prefix}/var'
1051 includedir='${prefix}/include'
1052 oldincludedir='/usr/include'
1053 docdir='${datarootdir}/doc/${PACKAGE}'
1054 infodir='${datarootdir}/info'
1055 htmldir='${docdir}'
1056 dvidir='${docdir}'
1057 pdfdir='${docdir}'
1058 psdir='${docdir}'
1059 libdir='${exec_prefix}/lib'
1060 localedir='${datarootdir}/locale'
1061 mandir='${datarootdir}/man'
1063 ac_prev=
1064 ac_dashdash=
1065 for ac_option
1067 # If the previous option needs an argument, assign it.
1068 if test -n "$ac_prev"; then
1069 eval $ac_prev=\$ac_option
1070 ac_prev=
1071 continue
1074 case $ac_option in
1075 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1076 *=) ac_optarg= ;;
1077 *) ac_optarg=yes ;;
1078 esac
1080 # Accept the important Cygnus configure options, so we can diagnose typos.
1082 case $ac_dashdash$ac_option in
1084 ac_dashdash=yes ;;
1086 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1087 ac_prev=bindir ;;
1088 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1089 bindir=$ac_optarg ;;
1091 -build | --build | --buil | --bui | --bu)
1092 ac_prev=build_alias ;;
1093 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1094 build_alias=$ac_optarg ;;
1096 -cache-file | --cache-file | --cache-fil | --cache-fi \
1097 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1098 ac_prev=cache_file ;;
1099 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1101 cache_file=$ac_optarg ;;
1103 --config-cache | -C)
1104 cache_file=config.cache ;;
1106 -datadir | --datadir | --datadi | --datad)
1107 ac_prev=datadir ;;
1108 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1109 datadir=$ac_optarg ;;
1111 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1112 | --dataroo | --dataro | --datar)
1113 ac_prev=datarootdir ;;
1114 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1115 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1116 datarootdir=$ac_optarg ;;
1118 -disable-* | --disable-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid feature name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "enable_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval enable_$ac_useropt=no ;;
1134 -docdir | --docdir | --docdi | --doc | --do)
1135 ac_prev=docdir ;;
1136 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1137 docdir=$ac_optarg ;;
1139 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1140 ac_prev=dvidir ;;
1141 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1142 dvidir=$ac_optarg ;;
1144 -enable-* | --enable-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid feature name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "enable_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval enable_$ac_useropt=\$ac_optarg ;;
1160 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1161 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1162 | --exec | --exe | --ex)
1163 ac_prev=exec_prefix ;;
1164 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1165 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1166 | --exec=* | --exe=* | --ex=*)
1167 exec_prefix=$ac_optarg ;;
1169 -gas | --gas | --ga | --g)
1170 # Obsolete; use --with-gas.
1171 with_gas=yes ;;
1173 -help | --help | --hel | --he | -h)
1174 ac_init_help=long ;;
1175 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1176 ac_init_help=recursive ;;
1177 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1178 ac_init_help=short ;;
1180 -host | --host | --hos | --ho)
1181 ac_prev=host_alias ;;
1182 -host=* | --host=* | --hos=* | --ho=*)
1183 host_alias=$ac_optarg ;;
1185 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1186 ac_prev=htmldir ;;
1187 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1188 | --ht=*)
1189 htmldir=$ac_optarg ;;
1191 -includedir | --includedir | --includedi | --included | --include \
1192 | --includ | --inclu | --incl | --inc)
1193 ac_prev=includedir ;;
1194 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1195 | --includ=* | --inclu=* | --incl=* | --inc=*)
1196 includedir=$ac_optarg ;;
1198 -infodir | --infodir | --infodi | --infod | --info | --inf)
1199 ac_prev=infodir ;;
1200 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1201 infodir=$ac_optarg ;;
1203 -libdir | --libdir | --libdi | --libd)
1204 ac_prev=libdir ;;
1205 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1206 libdir=$ac_optarg ;;
1208 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1209 | --libexe | --libex | --libe)
1210 ac_prev=libexecdir ;;
1211 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1212 | --libexe=* | --libex=* | --libe=*)
1213 libexecdir=$ac_optarg ;;
1215 -localedir | --localedir | --localedi | --localed | --locale)
1216 ac_prev=localedir ;;
1217 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1218 localedir=$ac_optarg ;;
1220 -localstatedir | --localstatedir | --localstatedi | --localstated \
1221 | --localstate | --localstat | --localsta | --localst | --locals)
1222 ac_prev=localstatedir ;;
1223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1224 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1225 localstatedir=$ac_optarg ;;
1227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1228 ac_prev=mandir ;;
1229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1230 mandir=$ac_optarg ;;
1232 -nfp | --nfp | --nf)
1233 # Obsolete; use --without-fp.
1234 with_fp=no ;;
1236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1237 | --no-cr | --no-c | -n)
1238 no_create=yes ;;
1240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1242 no_recursion=yes ;;
1244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1246 | --oldin | --oldi | --old | --ol | --o)
1247 ac_prev=oldincludedir ;;
1248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1251 oldincludedir=$ac_optarg ;;
1253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1254 ac_prev=prefix ;;
1255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1256 prefix=$ac_optarg ;;
1258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1259 | --program-pre | --program-pr | --program-p)
1260 ac_prev=program_prefix ;;
1261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1263 program_prefix=$ac_optarg ;;
1265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1266 | --program-suf | --program-su | --program-s)
1267 ac_prev=program_suffix ;;
1268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1270 program_suffix=$ac_optarg ;;
1272 -program-transform-name | --program-transform-name \
1273 | --program-transform-nam | --program-transform-na \
1274 | --program-transform-n | --program-transform- \
1275 | --program-transform | --program-transfor \
1276 | --program-transfo | --program-transf \
1277 | --program-trans | --program-tran \
1278 | --progr-tra | --program-tr | --program-t)
1279 ac_prev=program_transform_name ;;
1280 -program-transform-name=* | --program-transform-name=* \
1281 | --program-transform-nam=* | --program-transform-na=* \
1282 | --program-transform-n=* | --program-transform-=* \
1283 | --program-transform=* | --program-transfor=* \
1284 | --program-transfo=* | --program-transf=* \
1285 | --program-trans=* | --program-tran=* \
1286 | --progr-tra=* | --program-tr=* | --program-t=*)
1287 program_transform_name=$ac_optarg ;;
1289 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1290 ac_prev=pdfdir ;;
1291 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1292 pdfdir=$ac_optarg ;;
1294 -psdir | --psdir | --psdi | --psd | --ps)
1295 ac_prev=psdir ;;
1296 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1297 psdir=$ac_optarg ;;
1299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1300 | -silent | --silent | --silen | --sile | --sil)
1301 silent=yes ;;
1303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1304 ac_prev=sbindir ;;
1305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1306 | --sbi=* | --sb=*)
1307 sbindir=$ac_optarg ;;
1309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1311 | --sharedst | --shareds | --shared | --share | --shar \
1312 | --sha | --sh)
1313 ac_prev=sharedstatedir ;;
1314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1317 | --sha=* | --sh=*)
1318 sharedstatedir=$ac_optarg ;;
1320 -site | --site | --sit)
1321 ac_prev=site ;;
1322 -site=* | --site=* | --sit=*)
1323 site=$ac_optarg ;;
1325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1326 ac_prev=srcdir ;;
1327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1328 srcdir=$ac_optarg ;;
1330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1331 | --syscon | --sysco | --sysc | --sys | --sy)
1332 ac_prev=sysconfdir ;;
1333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1335 sysconfdir=$ac_optarg ;;
1337 -target | --target | --targe | --targ | --tar | --ta | --t)
1338 ac_prev=target_alias ;;
1339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1340 target_alias=$ac_optarg ;;
1342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1343 verbose=yes ;;
1345 -version | --version | --versio | --versi | --vers | -V)
1346 ac_init_version=: ;;
1348 -with-* | --with-*)
1349 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352 as_fn_error $? "invalid package name: $ac_useropt"
1353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1357 "with_$ac_useropt"
1358 "*) ;;
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1361 esac
1362 eval with_$ac_useropt=\$ac_optarg ;;
1364 -without-* | --without-*)
1365 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368 as_fn_error $? "invalid package name: $ac_useropt"
1369 ac_useropt_orig=$ac_useropt
1370 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371 case $ac_user_opts in
1373 "with_$ac_useropt"
1374 "*) ;;
1375 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1376 ac_unrecognized_sep=', ';;
1377 esac
1378 eval with_$ac_useropt=no ;;
1380 --x)
1381 # Obsolete; use --with-x.
1382 with_x=yes ;;
1384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1385 | --x-incl | --x-inc | --x-in | --x-i)
1386 ac_prev=x_includes ;;
1387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1389 x_includes=$ac_optarg ;;
1391 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1393 ac_prev=x_libraries ;;
1394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1396 x_libraries=$ac_optarg ;;
1398 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1399 Try \`$0 --help' for more information"
1402 *=*)
1403 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1404 # Reject names that are not valid shell variable names.
1405 case $ac_envvar in #(
1406 '' | [0-9]* | *[!_$as_cr_alnum]* )
1407 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1408 esac
1409 eval $ac_envvar=\$ac_optarg
1410 export $ac_envvar ;;
1413 # FIXME: should be removed in autoconf 3.0.
1414 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1415 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1416 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1417 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1420 esac
1421 done
1423 if test -n "$ac_prev"; then
1424 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1425 as_fn_error $? "missing argument to $ac_option"
1428 if test -n "$ac_unrecognized_opts"; then
1429 case $enable_option_checking in
1430 no) ;;
1431 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1432 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1433 esac
1436 # Check all directory arguments for consistency.
1437 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438 datadir sysconfdir sharedstatedir localstatedir includedir \
1439 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440 libdir localedir mandir
1442 eval ac_val=\$$ac_var
1443 # Remove trailing slashes.
1444 case $ac_val in
1445 */ )
1446 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1447 eval $ac_var=\$ac_val;;
1448 esac
1449 # Be sure to have absolute directory names.
1450 case $ac_val in
1451 [\\/$]* | ?:[\\/]* ) continue;;
1452 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1453 esac
1454 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1455 done
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466 if test "x$build_alias" = x; then
1467 cross_compiling=maybe
1468 elif test "x$build_alias" != "x$host_alias"; then
1469 cross_compiling=yes
1473 ac_tool_prefix=
1474 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1476 test "$silent" = yes && exec 6>/dev/null
1479 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1480 ac_ls_di=`ls -di .` &&
1481 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1482 as_fn_error $? "working directory cannot be determined"
1483 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1484 as_fn_error $? "pwd does not report name of working directory"
1487 # Find the source files, if location was not specified.
1488 if test -z "$srcdir"; then
1489 ac_srcdir_defaulted=yes
1490 # Try the directory containing this script, then the parent directory.
1491 ac_confdir=`$as_dirname -- "$as_myself" ||
1492 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1493 X"$as_myself" : 'X\(//\)[^/]' \| \
1494 X"$as_myself" : 'X\(//\)$' \| \
1495 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1496 $as_echo X"$as_myself" |
1497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1498 s//\1/
1501 /^X\(\/\/\)[^/].*/{
1502 s//\1/
1505 /^X\(\/\/\)$/{
1506 s//\1/
1509 /^X\(\/\).*/{
1510 s//\1/
1513 s/.*/./; q'`
1514 srcdir=$ac_confdir
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 srcdir=..
1518 else
1519 ac_srcdir_defaulted=no
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1522 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1523 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1525 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1526 ac_abs_confdir=`(
1527 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1528 pwd)`
1529 # When building in place, set srcdir=.
1530 if test "$ac_abs_confdir" = "$ac_pwd"; then
1531 srcdir=.
1533 # Remove unnecessary trailing slashes from srcdir.
1534 # Double slashes in file names in object file debugging info
1535 # mess up M-x gdb in Emacs.
1536 case $srcdir in
1537 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1538 esac
1539 for ac_var in $ac_precious_vars; do
1540 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_env_${ac_var}_value=\$${ac_var}
1542 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544 done
1547 # Report the --help message.
1549 if test "$ac_init_help" = "long"; then
1550 # Omit some internal or obsolete options to make the list less imposing.
1551 # This message is too long to be a string in the A/UX 3.1 sh.
1552 cat <<_ACEOF
1553 \`configure' configures this package to adapt to many kinds of systems.
1555 Usage: $0 [OPTION]... [VAR=VALUE]...
1557 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1558 VAR=VALUE. See below for descriptions of some of the useful variables.
1560 Defaults for the options are specified in brackets.
1562 Configuration:
1563 -h, --help display this help and exit
1564 --help=short display options specific to this package
1565 --help=recursive display the short help of all the included packages
1566 -V, --version display version information and exit
1567 -q, --quiet, --silent do not print \`checking ...' messages
1568 --cache-file=FILE cache test results in FILE [disabled]
1569 -C, --config-cache alias for \`--cache-file=config.cache'
1570 -n, --no-create do not create output files
1571 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1573 Installation directories:
1574 --prefix=PREFIX install architecture-independent files in PREFIX
1575 [$ac_default_prefix]
1576 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1577 [PREFIX]
1579 By default, \`make install' will install all the files in
1580 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1581 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1582 for instance \`--prefix=\$HOME'.
1584 For better control, use the options below.
1586 Fine tuning of the installation directories:
1587 --bindir=DIR user executables [EPREFIX/bin]
1588 --sbindir=DIR system admin executables [EPREFIX/sbin]
1589 --libexecdir=DIR program executables [EPREFIX/libexec]
1590 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1591 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1592 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1593 --libdir=DIR object code libraries [EPREFIX/lib]
1594 --includedir=DIR C header files [PREFIX/include]
1595 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1596 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1597 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1598 --infodir=DIR info documentation [DATAROOTDIR/info]
1599 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1600 --mandir=DIR man documentation [DATAROOTDIR/man]
1601 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1602 --htmldir=DIR html documentation [DOCDIR]
1603 --dvidir=DIR dvi documentation [DOCDIR]
1604 --pdfdir=DIR pdf documentation [DOCDIR]
1605 --psdir=DIR ps documentation [DOCDIR]
1606 _ACEOF
1608 cat <<\_ACEOF
1610 X features:
1611 --x-includes=DIR X include files are in DIR
1612 --x-libraries=DIR X library files are in DIR
1614 System types:
1615 --build=BUILD configure for building on BUILD [guessed]
1616 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1617 --target=TARGET configure for building compilers for TARGET [HOST]
1618 _ACEOF
1621 if test -n "$ac_init_help"; then
1623 cat <<\_ACEOF
1625 Optional Features:
1626 --disable-option-checking ignore unrecognized --enable/--with options
1627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1629 --disable-ssp disable gcc stack-protector
1630 --disable-pie disable position-independent-executable
1631 --disable-visibility disable gcc symbol visibility
1632 --disable-shared disable core shared libary generation
1634 Optional Packages:
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-64bit turn on 64 bit compilation mode (default is platform
1638 dependent)
1639 --with-optimization enable optimization for C/C++ code (default is yes)
1640 --with-threads enable support for multiple threads (default is on)
1641 --with-secure-sockets enable support for secure sockets (default is on)
1642 --with-static-probes enable support for static probes (default is on)
1643 --with-infiniband enable support for Infiniband metrics (default is
1645 --with-user user account under which daemons run (default is
1646 pcp)
1647 --with-group user group under which daemons run (default is pcp)
1648 --with-discovery enable support for service discovery (default is on)
1649 --with-systemd enable support for systemd services (default is on)
1650 --with-qt enable support for tools requiring Qt (default is
1652 --with-python enable support for tools requiring Python (default
1653 is on)
1654 --with-python3 enable support for tools requiring Python3 (default
1655 is on)
1656 --with-books enable building of the PCP books (default is off)
1657 --with-books-brand=BRAND
1658 choose the docbook brand when building the PCP books
1659 (default is common)
1660 --with-papi[=DIR|=MODULE]
1661 enable performance api counter pmda (default is on)
1662 The optional argument may be a full path of a PAPI
1663 installation prefix, or a pkgconfig module name.
1664 --with-perfevent enable perfevent pmda (default is on)
1665 --with-pmdajson enable JSON pmda (default is on)
1666 --with-pmdasnmp enable SNMP pmda (default is on)
1667 --with-manager enable daemon manager (default is on)
1668 --with-webapi enable REST API daemon (default is on)
1669 --with-webjs enable building of webjs packages (default is off)
1670 --with-vector enable building of vector package (default is off)
1671 --with-parfait enable building of parfait package (default is off)
1672 --with-make path to GNU compatible make(1) (default is empty for
1673 auto discovery)
1674 --with-tar path to GNU compatible tar(1) (default is empty for
1675 auto discovery)
1676 --with-zip path to GNU compatible zip(1) (default is empty for
1677 auto discovery)
1678 --with-configdir configuration directory [LOCALSTATEDIR/pcp/config]
1679 --with-perl_installdirs perl installdirs [vendor]
1680 --with-perl_install_base
1681 perl install_base [PREFIX]
1682 --with-python_prefix python setup.py prefix [PREFIX]
1683 --with-x use the X Window System
1684 --with-rcdir rc directory [SYSCONFDIR/rc.d]
1685 --with-sysconfigdir sysconfig directory [SYSCONFDIR/sysconfig]
1686 --with-logdir log directory [LOCALSTATEDIR/log/pcp]
1687 --with-rundir run directory [LOCALSTATEDIR/run/pcp]
1688 --with-tmpdir tmp directory [LOCALSTATEDIR/tmp]
1689 --with-docdir docs directory [DOCDIR/pcp-VERSION]
1690 --with-demosdir run directory [DATADIR/pcp/demos]
1692 Some influential environment variables:
1693 PKG_CONFIG path to pkg-config utility
1694 PKG_CONFIG_PATH
1695 directories to add to pkg-config's search path
1696 PKG_CONFIG_LIBDIR
1697 path overriding pkg-config's built-in search path
1698 CC C compiler command
1699 CFLAGS C compiler flags
1700 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1701 nonstandard directory <lib dir>
1702 LIBS libraries to pass to the linker, e.g. -l<library>
1703 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1704 you have headers in a nonstandard directory <include dir>
1705 CXX C++ compiler command
1706 CXXFLAGS C++ compiler flags
1707 YACC The `Yet Another Compiler Compiler' implementation to use.
1708 Defaults to the first program found out of: `bison -y', `byacc',
1709 `yacc'.
1710 YFLAGS The list of arguments that will be passed by default to $YACC.
1711 This script will default YFLAGS to the empty string to avoid a
1712 default value of `-d' given by some make applications.
1713 CPP C preprocessor
1714 avahi_CFLAGS
1715 C compiler flags for avahi, overriding pkg-config
1716 avahi_LIBS linker flags for avahi, overriding pkg-config
1717 SYSTEMD_SYSTEMUNITDIR
1718 value of systemdsystemunitdir for systemd, overriding pkg-config
1719 ncurses_CFLAGS
1720 C compiler flags for ncurses, overriding pkg-config
1721 ncurses_LIBS
1722 linker flags for ncurses, overriding pkg-config
1723 SYSTEMD_CFLAGS
1724 C compiler flags for SYSTEMD, overriding pkg-config
1725 SYSTEMD_LIBS
1726 linker flags for SYSTEMD, overriding pkg-config
1727 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1728 papi_LIBS linker flags for papi, overriding pkg-config
1729 libmicrohttpd_CFLAGS
1730 C compiler flags for libmicrohttpd, overriding pkg-config
1731 libmicrohttpd_LIBS
1732 linker flags for libmicrohttpd, overriding pkg-config
1733 cairo_CFLAGS
1734 C compiler flags for cairo, overriding pkg-config
1735 cairo_LIBS linker flags for cairo, overriding pkg-config
1736 XMKMF Path to xmkmf, Makefile generator for X Window System
1737 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1738 zlib_LIBS linker flags for zlib, overriding pkg-config
1740 Use these variables to override the choices made by `configure' or to help
1741 it to find libraries and programs with nonstandard names/locations.
1743 Report bugs to the package provider.
1744 _ACEOF
1745 ac_status=$?
1748 if test "$ac_init_help" = "recursive"; then
1749 # If there are subdirs, report their specific --help.
1750 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1751 test -d "$ac_dir" ||
1752 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1753 continue
1754 ac_builddir=.
1756 case "$ac_dir" in
1757 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1760 # A ".." for each directory in $ac_dir_suffix.
1761 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1762 case $ac_top_builddir_sub in
1763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1765 esac ;;
1766 esac
1767 ac_abs_top_builddir=$ac_pwd
1768 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1769 # for backward compatibility:
1770 ac_top_builddir=$ac_top_build_prefix
1772 case $srcdir in
1773 .) # We are building in place.
1774 ac_srcdir=.
1775 ac_top_srcdir=$ac_top_builddir_sub
1776 ac_abs_top_srcdir=$ac_pwd ;;
1777 [\\/]* | ?:[\\/]* ) # Absolute name.
1778 ac_srcdir=$srcdir$ac_dir_suffix;
1779 ac_top_srcdir=$srcdir
1780 ac_abs_top_srcdir=$srcdir ;;
1781 *) # Relative name.
1782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1783 ac_top_srcdir=$ac_top_build_prefix$srcdir
1784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1785 esac
1786 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1788 cd "$ac_dir" || { ac_status=$?; continue; }
1789 # Check for guested configure.
1790 if test -f "$ac_srcdir/configure.gnu"; then
1791 echo &&
1792 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1793 elif test -f "$ac_srcdir/configure"; then
1794 echo &&
1795 $SHELL "$ac_srcdir/configure" --help=recursive
1796 else
1797 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1798 fi || ac_status=$?
1799 cd "$ac_pwd" || { ac_status=$?; break; }
1800 done
1803 test -n "$ac_init_help" && exit $ac_status
1804 if $ac_init_version; then
1805 cat <<\_ACEOF
1806 configure
1807 generated by GNU Autoconf 2.69
1809 Copyright (C) 2012 Free Software Foundation, Inc.
1810 This configure script is free software; the Free Software Foundation
1811 gives unlimited permission to copy, distribute and modify it.
1812 _ACEOF
1813 exit
1816 ## ------------------------ ##
1817 ## Autoconf initialization. ##
1818 ## ------------------------ ##
1820 # ac_fn_c_try_compile LINENO
1821 # --------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext
1827 if { { ac_try="$ac_compile"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1856 } # ac_fn_c_try_compile
1858 # ac_fn_c_try_link LINENO
1859 # -----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_link ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 test -x conftest$ac_exeext
1886 }; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 ac_retval=1
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1902 } # ac_fn_c_try_link
1904 # ac_fn_cxx_try_compile LINENO
1905 # ----------------------------
1906 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1907 ac_fn_cxx_try_compile ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 rm -f conftest.$ac_objext
1911 if { { ac_try="$ac_compile"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_compile") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } && {
1927 test -z "$ac_cxx_werror_flag" ||
1928 test ! -s conftest.err
1929 } && test -s conftest.$ac_objext; then :
1930 ac_retval=0
1931 else
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 ac_retval=1
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1940 } # ac_fn_cxx_try_compile
1942 # ac_fn_c_try_cpp LINENO
1943 # ----------------------
1944 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_c_try_cpp ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_cpp conftest.$ac_ext"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } > conftest.i && {
1964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 }; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 ac_retval=1
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_c_try_cpp
1979 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982 # the include files in INCLUDES and setting the cache variable VAR
1983 # accordingly.
1984 ac_fn_c_check_header_mongrel ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if eval \${$3+:} false; then :
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 else
1997 # Is the header compilable?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999 $as_echo_n "checking $2 usability... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_header_compiler=yes
2007 else
2008 ac_header_compiler=no
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012 $as_echo "$ac_header_compiler" >&6; }
2014 # Is the header present?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016 $as_echo_n "checking $2 presence... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_cpp "$LINENO"; then :
2022 ac_header_preproc=yes
2023 else
2024 ac_header_preproc=no
2026 rm -f conftest.err conftest.i conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028 $as_echo "$ac_header_preproc" >&6; }
2030 # So? What about this header?
2031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2032 yes:no: )
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 no:yes:* )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2042 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2046 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 esac
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 eval "$3=\$ac_header_compiler"
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_header_mongrel
2066 # ac_fn_c_try_run LINENO
2067 # ----------------------
2068 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2069 # that executables *can* be run.
2070 ac_fn_c_try_run ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 if { { ac_try="$ac_link"
2074 case "(($ac_try" in
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2077 esac
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_link") 2>&5
2081 ac_status=$?
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2084 { { case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087 esac
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_try") 2>&5
2091 ac_status=$?
2092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2093 test $ac_status = 0; }; }; then :
2094 ac_retval=0
2095 else
2096 $as_echo "$as_me: program exited with status $ac_status" >&5
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2100 ac_retval=$ac_status
2102 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 as_fn_set_status $ac_retval
2106 } # ac_fn_c_try_run
2108 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2109 # -------------------------------------------------------
2110 # Tests whether HEADER exists and can be compiled using the include files in
2111 # INCLUDES, setting the cache variable VAR accordingly.
2112 ac_fn_c_check_header_compile ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if eval \${$3+:} false; then :
2118 $as_echo_n "(cached) " >&6
2119 else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2123 #include <$2>
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 eval "$3=yes"
2127 else
2128 eval "$3=no"
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_header_compile
2139 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140 # -------------------------------------------
2141 # Tests whether TYPE exists after having included INCLUDES, setting cache
2142 # variable VAR accordingly.
2143 ac_fn_c_check_type ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 eval "$3=no"
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 main ()
2158 if (sizeof ($2))
2159 return 0;
2161 return 0;
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 if (sizeof (($2)))
2172 return 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2179 else
2180 eval "$3=yes"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_type
2193 # ac_fn_c_check_func LINENO FUNC VAR
2194 # ----------------------------------
2195 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2196 ac_fn_c_check_func ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 $as_echo_n "checking for $2... " >&6; }
2201 if eval \${$3+:} false; then :
2202 $as_echo_n "(cached) " >&6
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2208 #define $2 innocuous_$2
2210 /* System header to define __stub macros and hopefully few prototypes,
2211 which can conflict with char $2 (); below.
2212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2213 <limits.h> exists even on freestanding compilers. */
2215 #ifdef __STDC__
2216 # include <limits.h>
2217 #else
2218 # include <assert.h>
2219 #endif
2221 #undef $2
2223 /* Override any GCC internal prototype to avoid an error.
2224 Use char because int might match the return type of a GCC
2225 builtin and then its argument prototype would still apply. */
2226 #ifdef __cplusplus
2227 extern "C"
2228 #endif
2229 char $2 ();
2230 /* The GNU C library defines this for functions which it implements
2231 to always fail with ENOSYS. Some functions are actually named
2232 something starting with __ and the normal name is an alias. */
2233 #if defined __stub_$2 || defined __stub___$2
2234 choke me
2235 #endif
2238 main ()
2240 return $2 ();
2242 return 0;
2244 _ACEOF
2245 if ac_fn_c_try_link "$LINENO"; then :
2246 eval "$3=yes"
2247 else
2248 eval "$3=no"
2250 rm -f core conftest.err conftest.$ac_objext \
2251 conftest$ac_exeext conftest.$ac_ext
2253 eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 } # ac_fn_c_check_func
2259 cat >config.log <<_ACEOF
2260 This file contains any messages produced by compilers while
2261 running configure, to aid debugging if configure makes a mistake.
2263 It was created by $as_me, which was
2264 generated by GNU Autoconf 2.69. Invocation command line was
2266 $ $0 $@
2268 _ACEOF
2269 exec 5>>config.log
2271 cat <<_ASUNAME
2272 ## --------- ##
2273 ## Platform. ##
2274 ## --------- ##
2276 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2277 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2278 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2279 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2280 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2282 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2283 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2285 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2286 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2287 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2288 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2289 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2290 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2291 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2293 _ASUNAME
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 $as_echo "PATH: $as_dir"
2301 done
2302 IFS=$as_save_IFS
2304 } >&5
2306 cat >&5 <<_ACEOF
2309 ## ----------- ##
2310 ## Core tests. ##
2311 ## ----------- ##
2313 _ACEOF
2316 # Keep a trace of the command line.
2317 # Strip out --no-create and --no-recursion so they do not pile up.
2318 # Strip out --silent because we don't want to record it for future runs.
2319 # Also quote any args containing shell meta-characters.
2320 # Make two passes to allow for proper duplicate-argument suppression.
2321 ac_configure_args=
2322 ac_configure_args0=
2323 ac_configure_args1=
2324 ac_must_keep_next=false
2325 for ac_pass in 1 2
2327 for ac_arg
2329 case $ac_arg in
2330 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2332 | -silent | --silent | --silen | --sile | --sil)
2333 continue ;;
2334 *\'*)
2335 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2336 esac
2337 case $ac_pass in
2338 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2340 as_fn_append ac_configure_args1 " '$ac_arg'"
2341 if test $ac_must_keep_next = true; then
2342 ac_must_keep_next=false # Got value, back to normal.
2343 else
2344 case $ac_arg in
2345 *=* | --config-cache | -C | -disable-* | --disable-* \
2346 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2347 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2348 | -with-* | --with-* | -without-* | --without-* | --x)
2349 case "$ac_configure_args0 " in
2350 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2351 esac
2353 -* ) ac_must_keep_next=true ;;
2354 esac
2356 as_fn_append ac_configure_args " '$ac_arg'"
2358 esac
2359 done
2360 done
2361 { ac_configure_args0=; unset ac_configure_args0;}
2362 { ac_configure_args1=; unset ac_configure_args1;}
2364 # When interrupted or exit'd, cleanup temporary files, and complete
2365 # config.log. We remove comments because anyway the quotes in there
2366 # would cause problems or look ugly.
2367 # WARNING: Use '\'' to represent an apostrophe within the trap.
2368 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2369 trap 'exit_status=$?
2370 # Save into config.log some information that might help in debugging.
2372 echo
2374 $as_echo "## ---------------- ##
2375 ## Cache variables. ##
2376 ## ---------------- ##"
2377 echo
2378 # The following way of writing the cache mishandles newlines in values,
2380 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in #(
2383 *${as_nl}*)
2384 case $ac_var in #(
2385 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2386 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2387 esac
2388 case $ac_var in #(
2389 _ | IFS | as_nl) ;; #(
2390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2391 *) { eval $ac_var=; unset $ac_var;} ;;
2392 esac ;;
2393 esac
2394 done
2395 (set) 2>&1 |
2396 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397 *${as_nl}ac_space=\ *)
2398 sed -n \
2399 "s/'\''/'\''\\\\'\'''\''/g;
2400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401 ;; #(
2403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2405 esac |
2406 sort
2408 echo
2410 $as_echo "## ----------------- ##
2411 ## Output variables. ##
2412 ## ----------------- ##"
2413 echo
2414 for ac_var in $ac_subst_vars
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2424 if test -n "$ac_subst_files"; then
2425 $as_echo "## ------------------- ##
2426 ## File substitutions. ##
2427 ## ------------------- ##"
2428 echo
2429 for ac_var in $ac_subst_files
2431 eval ac_val=\$$ac_var
2432 case $ac_val in
2433 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2434 esac
2435 $as_echo "$ac_var='\''$ac_val'\''"
2436 done | sort
2437 echo
2440 if test -s confdefs.h; then
2441 $as_echo "## ----------- ##
2442 ## confdefs.h. ##
2443 ## ----------- ##"
2444 echo
2445 cat confdefs.h
2446 echo
2448 test "$ac_signal" != 0 &&
2449 $as_echo "$as_me: caught signal $ac_signal"
2450 $as_echo "$as_me: exit $exit_status"
2451 } >&5
2452 rm -f core *.core core.conftest.* &&
2453 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454 exit $exit_status
2456 for ac_signal in 1 2 13 15; do
2457 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458 done
2459 ac_signal=0
2461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2462 rm -f -r conftest* confdefs.h
2464 $as_echo "/* confdefs.h */" > confdefs.h
2466 # Predefined preprocessor variables.
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_NAME "$PACKAGE_NAME"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_STRING "$PACKAGE_STRING"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_URL "$PACKAGE_URL"
2490 _ACEOF
2493 # Let the site file select an alternate cache file if it wants to.
2494 # Prefer an explicitly selected file to automatically selected ones.
2495 ac_site_file1=NONE
2496 ac_site_file2=NONE
2497 if test -n "$CONFIG_SITE"; then
2498 # We do not want a PATH search for config.site.
2499 case $CONFIG_SITE in #((
2500 -*) ac_site_file1=./$CONFIG_SITE;;
2501 */*) ac_site_file1=$CONFIG_SITE;;
2502 *) ac_site_file1=./$CONFIG_SITE;;
2503 esac
2504 elif test "x$prefix" != xNONE; then
2505 ac_site_file1=$prefix/share/config.site
2506 ac_site_file2=$prefix/etc/config.site
2507 else
2508 ac_site_file1=$ac_default_prefix/share/config.site
2509 ac_site_file2=$ac_default_prefix/etc/config.site
2511 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2513 test "x$ac_site_file" = xNONE && continue
2514 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2516 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2517 sed 's/^/| /' "$ac_site_file" >&5
2518 . "$ac_site_file" \
2519 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521 as_fn_error $? "failed to load site script $ac_site_file
2522 See \`config.log' for more details" "$LINENO" 5; }
2524 done
2526 if test -r "$cache_file"; then
2527 # Some versions of bash will fail to source /dev/null (special files
2528 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2529 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2531 $as_echo "$as_me: loading cache $cache_file" >&6;}
2532 case $cache_file in
2533 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2534 *) . "./$cache_file";;
2535 esac
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2539 $as_echo "$as_me: creating cache $cache_file" >&6;}
2540 >$cache_file
2543 # Check that the precious variables saved in the cache have kept the same
2544 # value.
2545 ac_cache_corrupted=false
2546 for ac_var in $ac_precious_vars; do
2547 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2548 eval ac_new_set=\$ac_env_${ac_var}_set
2549 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2550 eval ac_new_val=\$ac_env_${ac_var}_value
2551 case $ac_old_set,$ac_new_set in
2552 set,)
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2554 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,set)
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2558 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2559 ac_cache_corrupted=: ;;
2560 ,);;
2562 if test "x$ac_old_val" != "x$ac_new_val"; then
2563 # differences in whitespace do not lead to failure.
2564 ac_old_val_w=`echo x $ac_old_val`
2565 ac_new_val_w=`echo x $ac_new_val`
2566 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2568 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2569 ac_cache_corrupted=:
2570 else
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2572 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2573 eval $ac_var=\$ac_old_val
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2576 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2578 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2579 fi;;
2580 esac
2581 # Pass precious variables to config.status.
2582 if test "$ac_new_set" = set; then
2583 case $ac_new_val in
2584 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2585 *) ac_arg=$ac_var=$ac_new_val ;;
2586 esac
2587 case " $ac_configure_args " in
2588 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2589 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2590 esac
2592 done
2593 if $ac_cache_corrupted; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2597 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2598 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2600 ## -------------------- ##
2601 ## Main body of script. ##
2602 ## -------------------- ##
2604 ac_ext=c
2605 ac_cpp='$CPP $CPPFLAGS'
2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 unset ROOT TOOLROOT
2616 # Check whether --with-64bit was given.
2617 if test "${with_64bit+set}" = set; then :
2618 withval=$with_64bit; use_64bit=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-64bit=$withval"
2623 # Check whether --with-optimization was given.
2624 if test "${with_optimization+set}" = set; then :
2625 withval=$with_optimization; use_optimization=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-optimization=$withval"
2626 else
2627 use_optimizaton=yes
2632 # Check whether --with-threads was given.
2633 if test "${with_threads+set}" = set; then :
2634 withval=$with_threads; do_threads=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-threads=$withval"
2635 else
2636 do_threads=check
2641 # Check whether --with-secure-sockets was given.
2642 if test "${with_secure_sockets+set}" = set; then :
2643 withval=$with_secure_sockets; do_secure=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2644 else
2645 do_secure=check
2650 # Check whether --with-static-probes was given.
2651 if test "${with_static_probes+set}" = set; then :
2652 withval=$with_static_probes; do_probes=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2653 else
2654 do_probes=check
2659 # Check whether --with-infiniband was given.
2660 if test "${with_infiniband+set}" = set; then :
2661 withval=$with_infiniband; do_infiniband=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2662 else
2663 do_infiniband=check
2668 # Check whether --with-user was given.
2669 if test "${with_user+set}" = set; then :
2670 withval=$with_user; pcp_user=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-user-account=$withval"
2671 else
2672 pcp_user=pcp
2678 # Check whether --with-group was given.
2679 if test "${with_group+set}" = set; then :
2680 withval=$with_group; pcp_group=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-group-account=$withval"
2681 else
2682 pcp_group=pcp
2688 # Check whether --with-discovery was given.
2689 if test "${with_discovery+set}" = set; then :
2690 withval=$with_discovery; do_discovery=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-discovery=$withval"
2691 else
2692 do_discovery=check
2697 # Check whether --with-systemd was given.
2698 if test "${with_systemd+set}" = set; then :
2699 withval=$with_systemd; do_systemd=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-systemd=$withval"
2700 else
2701 do_systemd=check
2706 # Check whether --with-qt was given.
2707 if test "${with_qt+set}" = set; then :
2708 withval=$with_qt; do_qt=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt=$withval"
2709 else
2710 do_qt=check
2715 # Check whether --with-python was given.
2716 if test "${with_python+set}" = set; then :
2717 withval=$with_python; do_python=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python=$withval"
2718 else
2719 do_python=check
2724 # Check whether --with-python3 was given.
2725 if test "${with_python3+set}" = set; then :
2726 withval=$with_python3; do_python3=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python3=$withval"
2727 else
2728 do_python3=check
2733 # Check whether --with-books was given.
2734 if test "${with_books+set}" = set; then :
2735 withval=$with_books; do_books=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books=$withval"
2736 else
2737 do_books=no
2742 # Check whether --with-books-brand was given.
2743 if test "${with_books_brand+set}" = set; then :
2744 withval=$with_books_brand; do_books_brand=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2745 else
2746 do_books_brand=common
2751 # Check whether --with-papi was given.
2752 if test "${with_papi+set}" = set; then :
2753 withval=$with_papi; do_papi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-papi=$withval"
2754 else
2755 do_papi=check
2760 # Check whether --with-perfevent was given.
2761 if test "${with_perfevent+set}" = set; then :
2762 withval=$with_perfevent; do_perfevent=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2763 else
2764 do_perfevent=check
2769 # Check whether --with-pmdajson was given.
2770 if test "${with_pmdajson+set}" = set; then :
2771 withval=$with_pmdajson; do_pmdajson=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2772 else
2773 do_pmdajson=check
2778 # Check whether --with-pmdasnmp was given.
2779 if test "${with_pmdasnmp+set}" = set; then :
2780 withval=$with_pmdasnmp; do_pmdasnmp=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2781 else
2782 do_pmdasnmp=check
2787 # Check whether --with-manager was given.
2788 if test "${with_manager+set}" = set; then :
2789 withval=$with_manager; do_manager=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-manager=$withval"
2790 else
2791 do_manager=check
2796 # Check whether --with-webapi was given.
2797 if test "${with_webapi+set}" = set; then :
2798 withval=$with_webapi; do_webapi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webapi=$withval"
2799 else
2800 do_webapi=check
2805 # Check whether --with-webjs was given.
2806 if test "${with_webjs+set}" = set; then :
2807 withval=$with_webjs; do_webjs=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webjs=$withval"
2808 else
2809 do_webjs=no
2814 # Check whether --with-vector was given.
2815 if test "${with_vector+set}" = set; then :
2816 withval=$with_vector; do_vector=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-vector=$withval"
2817 else
2818 do_vector=no
2823 # Check whether --with-parfait was given.
2824 if test "${with_parfait+set}" = set; then :
2825 withval=$with_parfait; do_parfait=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-parfait=$withval"
2826 else
2827 do_parfait=no
2833 # Check whether --with-make was given.
2834 if test "${with_make+set}" = set; then :
2835 withval=$with_make; MAKE=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-make=$withval"
2836 else
2837 MAKE=''
2842 # Check whether --with-tar was given.
2843 if test "${with_tar+set}" = set; then :
2844 withval=$with_tar; TAR=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-tar=$withval"
2845 else
2846 TAR=''
2851 # Check whether --with-zip was given.
2852 if test "${with_zip+set}" = set; then :
2853 withval=$with_zip; ZIP=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-zip=$withval"
2854 else
2855 ZIP=''
2860 # Note: the following environment variables may be
2861 # set to override the defaults.
2863 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2866 ac_aux_dir=
2867 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2868 if test -f "$ac_dir/install-sh"; then
2869 ac_aux_dir=$ac_dir
2870 ac_install_sh="$ac_aux_dir/install-sh -c"
2871 break
2872 elif test -f "$ac_dir/install.sh"; then
2873 ac_aux_dir=$ac_dir
2874 ac_install_sh="$ac_aux_dir/install.sh -c"
2875 break
2876 elif test -f "$ac_dir/shtool"; then
2877 ac_aux_dir=$ac_dir
2878 ac_install_sh="$ac_aux_dir/shtool install -c"
2879 break
2881 done
2882 if test -z "$ac_aux_dir"; then
2883 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2886 # These three variables are undocumented and unsupported,
2887 # and are intended to be withdrawn in a future Autoconf release.
2888 # They can cause serious problems if a builder's source tree is in a directory
2889 # whose full name contains unusual characters.
2890 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2891 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2892 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2895 # Make sure we can run config.sub.
2896 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2897 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2900 $as_echo_n "checking build system type... " >&6; }
2901 if ${ac_cv_build+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 ac_build_alias=$build_alias
2905 test "x$ac_build_alias" = x &&
2906 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2907 test "x$ac_build_alias" = x &&
2908 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2910 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2914 $as_echo "$ac_cv_build" >&6; }
2915 case $ac_cv_build in
2916 *-*-*) ;;
2917 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2918 esac
2919 build=$ac_cv_build
2920 ac_save_IFS=$IFS; IFS='-'
2921 set x $ac_cv_build
2922 shift
2923 build_cpu=$1
2924 build_vendor=$2
2925 shift; shift
2926 # Remember, the first character of IFS is used to create $*,
2927 # except with old shells:
2928 build_os=$*
2929 IFS=$ac_save_IFS
2930 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2934 $as_echo_n "checking host system type... " >&6; }
2935 if ${ac_cv_host+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test "x$host_alias" = x; then
2939 ac_cv_host=$ac_cv_build
2940 else
2941 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2942 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2947 $as_echo "$ac_cv_host" >&6; }
2948 case $ac_cv_host in
2949 *-*-*) ;;
2950 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2951 esac
2952 host=$ac_cv_host
2953 ac_save_IFS=$IFS; IFS='-'
2954 set x $ac_cv_host
2955 shift
2956 host_cpu=$1
2957 host_vendor=$2
2958 shift; shift
2959 # Remember, the first character of IFS is used to create $*,
2960 # except with old shells:
2961 host_os=$*
2962 IFS=$ac_save_IFS
2963 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2967 $as_echo_n "checking target system type... " >&6; }
2968 if ${ac_cv_target+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test "x$target_alias" = x; then
2972 ac_cv_target=$ac_cv_host
2973 else
2974 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2975 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2980 $as_echo "$ac_cv_target" >&6; }
2981 case $ac_cv_target in
2982 *-*-*) ;;
2983 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2984 esac
2985 target=$ac_cv_target
2986 ac_save_IFS=$IFS; IFS='-'
2987 set x $ac_cv_target
2988 shift
2989 target_cpu=$1
2990 target_vendor=$2
2991 shift; shift
2992 # Remember, the first character of IFS is used to create $*,
2993 # except with old shells:
2994 target_os=$*
2995 IFS=$ac_save_IFS
2996 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2999 # The aliases save the names the user supplied, while $host etc.
3000 # will get canonicalized.
3001 test -n "$target_alias" &&
3002 test "$program_prefix$program_suffix$program_transform_name" = \
3003 NONENONEs,x,x, &&
3004 program_prefix=${target_alias}-
3006 if test -z "$target"
3007 then
3008 echo '
3009 FATAL ERROR: Cannot guess your target, try explicit specification
3010 using --target or mailto: pcp@groups.io to ask.'
3011 rm -rf conftest conftest.*
3012 exit 1
3013 else
3014 target=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3015 target_os=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3016 target_os=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3018 build=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3019 build_os=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3020 build_os=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3023 echo Building on $build for $target
3024 echo "Build: os=$build_os cpu=$build_cpu"
3025 echo "Target: os=$target_os cpu=$target_cpu"
3027 if test "$cross_compiling" = "yes"; then
3028 if test -f ./config.$target_os; then
3029 . ./config.$target_os
3030 else
3031 echo
3032 echo "
3033 FATAL ERROR: Cannot perform cross-compilation without a file to source
3034 configuration information from (config.$target_os is missing)"
3035 rm -rf conftest conftest.*
3036 exit 1
3042 target_distro=$target_os
3043 if test $target_os = linux
3044 then
3046 $as_echo "#define IS_LINUX 1" >>confdefs.h
3048 test -f /etc/SuSE-release && target_distro=suse
3049 test -f /etc/fedora-release && target_distro=fedora
3050 test -f /etc/redhat-release && target_distro=redhat
3051 test -f /etc/debian_version && target_distro=debian
3052 test -f /etc/slackware-version && target_distro=slackware
3053 test -f /etc/gentoo-release && target_distro=gentoo
3054 test -f /etc/mandriva-release && target_distro=mandriva
3055 test -f /etc/arch-release && target_distro=arch
3056 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3057 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3058 pcp_ps_all_flags=-efw
3059 elif test $target_os = darwin
3060 then
3062 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3064 target_distro=macosx
3065 version=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3066 CFLAGS="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3067 if test $version -ge 106
3068 then
3069 target_distro=cocoa
3070 CFLAGS="$CFLAGS -arch x86_64"
3072 export CFLAGS
3073 pcp_platform_paths='/usr/local/bin'
3074 pcp_ps_all_flags="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3075 elif test $target_os = mingw
3076 then
3078 $as_echo "#define IS_MINGW 1" >>confdefs.h
3080 CFLAGS="-fno-strict-aliasing"
3081 pcp_platform_paths=''
3082 pcp_ps_all_flags=-efW
3083 elif test $target_os = solaris
3084 then
3086 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3088 export CFLAGS_IF_GCC="-fPIC -fno-strict-aliasing"
3089 export CFLAGS_IF_SUNCC="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3090 pcp_platform_paths='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3091 pcp_ps_all_flags=-ef
3092 elif test $target_os = aix
3093 then
3095 $as_echo "#define IS_AIX 1" >>confdefs.h
3097 export CFLAGS="-qcpluscmt"
3098 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3099 pcp_ps_all_flags=-ef
3100 elif test $target_os = freebsd || test $target_os = kfreebsd
3101 then
3103 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3105 test -f /etc/debian_version && target_distro=debian
3106 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3107 if test $target_os = kfreebsd
3108 then
3109 pcp_ps_all_flags=-efw
3110 else
3111 pcp_ps_all_flags=auxww
3113 pcp_platform_paths='/usr/bin/X11'
3114 test -d /usr/local/bin && pcp_platform_paths="$pcp_platform_paths:/usr/local/bin"
3115 test -d /usr/bsd && pcp_platform_paths="$pcp_platform_paths:/usr/bsd"
3116 elif test $target_os = gnu
3117 then
3119 $as_echo "#define IS_GNU 1" >>confdefs.h
3121 test -f /etc/debian_version && target_distro=debian
3122 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3123 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3124 pcp_ps_all_flags=-efw
3125 elif test $target_os = netbsdelf
3126 then
3127 target_os=netbsd
3129 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3131 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3132 pcp_platform_paths='/usr/pkg/bin'
3133 pcp_ps_all_flags=auxww
3134 elif test $target_os = openbsd
3135 then
3136 target_os=openbsd
3138 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3140 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3141 pcp_platform_paths='/usr/local/bin'
3142 pcp_ps_all_flags=auxww
3143 else
3144 echo
3145 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3146 rm -rf conftest conftest.*
3147 exit 1
3152 if test "$use_optimization" = no
3153 then
3154 optimization="-O0 -g"
3155 else
3156 optimization="-O2 -g"
3167 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3168 if test -n "$ac_tool_prefix"; then
3169 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3170 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 case $PKG_CONFIG in
3177 [\\/]* | ?:[\\/]*)
3178 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3194 IFS=$as_save_IFS
3197 esac
3199 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3200 if test -n "$PKG_CONFIG"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3202 $as_echo "$PKG_CONFIG" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3210 if test -z "$ac_cv_path_PKG_CONFIG"; then
3211 ac_pt_PKG_CONFIG=$PKG_CONFIG
3212 # Extract the first word of "pkg-config", so it can be a program name with args.
3213 set dummy pkg-config; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 case $ac_pt_PKG_CONFIG in
3220 [\\/]* | ?:[\\/]*)
3221 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3235 done
3236 done
3237 IFS=$as_save_IFS
3240 esac
3242 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3243 if test -n "$ac_pt_PKG_CONFIG"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3245 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3251 if test "x$ac_pt_PKG_CONFIG" = x; then
3252 PKG_CONFIG=""
3253 else
3254 case $cross_compiling:$ac_tool_warned in
3255 yes:)
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3258 ac_tool_warned=yes ;;
3259 esac
3260 PKG_CONFIG=$ac_pt_PKG_CONFIG
3262 else
3263 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3267 if test -n "$PKG_CONFIG"; then
3268 _pkg_min_version=0.9.0
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3270 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3271 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 PKG_CONFIG=""
3280 if test -z "$PKG_CONFIG"; then
3281 as_fn_error $? "cannot find a 'pkg-config' command" "$LINENO" 5
3284 cflags_abi=
3285 ac_ext=c
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290 if test -n "$ac_tool_prefix"; then
3291 for ac_prog in suncc egcc gcc cc
3293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3314 done
3315 done
3316 IFS=$as_save_IFS
3320 CC=$ac_cv_prog_CC
3321 if test -n "$CC"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323 $as_echo "$CC" >&6; }
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3330 test -n "$CC" && break
3331 done
3333 if test -z "$CC"; then
3334 ac_ct_CC=$CC
3335 for ac_prog in suncc egcc gcc cc
3337 # Extract the first word of "$ac_prog", so it can be a program name with args.
3338 set dummy $ac_prog; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3344 if test -n "$ac_ct_CC"; then
3345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_ac_ct_CC="$ac_prog"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3360 IFS=$as_save_IFS
3364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365 if test -n "$ac_ct_CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367 $as_echo "$ac_ct_CC" >&6; }
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3374 test -n "$ac_ct_CC" && break
3375 done
3377 if test "x$ac_ct_CC" = x; then
3378 CC=""
3379 else
3380 case $cross_compiling:$ac_tool_warned in
3381 yes:)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3384 ac_tool_warned=yes ;;
3385 esac
3386 CC=$ac_ct_CC
3391 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "no acceptable C compiler found in \$PATH
3394 See \`config.log' for more details" "$LINENO" 5; }
3396 # Provide some information about the compiler.
3397 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3398 set X $ac_compile
3399 ac_compiler=$2
3400 for ac_option in --version -v -V -qversion; do
3401 { { ac_try="$ac_compiler $ac_option >&5"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3409 ac_status=$?
3410 if test -s conftest.err; then
3411 sed '10a\
3412 ... rest of stderr output deleted ...
3413 10q' conftest.err >conftest.er1
3414 cat conftest.er1 >&5
3416 rm -f conftest.er1 conftest.err
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419 done
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3425 main ()
3429 return 0;
3431 _ACEOF
3432 ac_clean_files_save=$ac_clean_files
3433 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3434 # Try to create an executable without -o first, disregard a.out.
3435 # It will help us diagnose broken compilers, and finding out an intuition
3436 # of exeext.
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3438 $as_echo_n "checking whether the C compiler works... " >&6; }
3439 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3441 # The possible output files:
3442 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3444 ac_rmfiles=
3445 for ac_file in $ac_files
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3450 esac
3451 done
3452 rm -f $ac_rmfiles
3454 if { { ac_try="$ac_link_default"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_link_default") 2>&5
3462 ac_status=$?
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
3465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3466 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3467 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3468 # so that the user can short-circuit this test for compilers unknown to
3469 # Autoconf.
3470 for ac_file in $ac_files ''
3472 test -f "$ac_file" || continue
3473 case $ac_file in
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3476 [ab].out )
3477 # We found the default executable, but exeext='' is most
3478 # certainly right.
3479 break;;
3480 *.* )
3481 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3482 then :; else
3483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485 # We set ac_cv_exeext here because the later test for it is not
3486 # safe: cross compilers may not add the suffix if given an `-o'
3487 # argument, so we may need to know it at that point already.
3488 # Even if this section looks crufty: it has the advantage of
3489 # actually working.
3490 break;;
3492 break;;
3493 esac
3494 done
3495 test "$ac_cv_exeext" = no && ac_cv_exeext=
3497 else
3498 ac_file=''
3500 if test -z "$ac_file"; then :
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error 77 "C compiler cannot create executables
3509 See \`config.log' for more details" "$LINENO" 5; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3512 $as_echo "yes" >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3515 $as_echo_n "checking for C compiler default output file name... " >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3517 $as_echo "$ac_file" >&6; }
3518 ac_exeext=$ac_cv_exeext
3520 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3523 $as_echo_n "checking for suffix of executables... " >&6; }
3524 if { { ac_try="$ac_link"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3537 # work properly (i.e., refer to `conftest.exe'), while it won't with
3538 # `rm'.
3539 for ac_file in conftest.exe conftest conftest.*; do
3540 test -f "$ac_file" || continue
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 break;;
3545 * ) break;;
3546 esac
3547 done
3548 else
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3552 See \`config.log' for more details" "$LINENO" 5; }
3554 rm -f conftest conftest$ac_cv_exeext
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3556 $as_echo "$ac_cv_exeext" >&6; }
3558 rm -f conftest.$ac_ext
3559 EXEEXT=$ac_cv_exeext
3560 ac_exeext=$EXEEXT
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563 #include <stdio.h>
3565 main ()
3567 FILE *f = fopen ("conftest.out", "w");
3568 return ferror (f) || fclose (f) != 0;
3571 return 0;
3573 _ACEOF
3574 ac_clean_files="$ac_clean_files conftest.out"
3575 # Check that the compiler produces executables we can run. If not, either
3576 # the compiler is broken, or we cross compile.
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3578 $as_echo_n "checking whether we are cross compiling... " >&6; }
3579 if test "$cross_compiling" != yes; then
3580 { { ac_try="$ac_link"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_link") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3591 if { ac_try='./conftest$ac_cv_exeext'
3592 { { case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_try") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; }; then
3602 cross_compiling=no
3603 else
3604 if test "$cross_compiling" = maybe; then
3605 cross_compiling=yes
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "cannot run C compiled programs.
3610 If you meant to cross compile, use \`--host'.
3611 See \`config.log' for more details" "$LINENO" 5; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3616 $as_echo "$cross_compiling" >&6; }
3618 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3619 ac_clean_files=$ac_clean_files_save
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3621 $as_echo_n "checking for suffix of object files... " >&6; }
3622 if ${ac_cv_objext+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3629 main ()
3633 return 0;
3635 _ACEOF
3636 rm -f conftest.o conftest.obj
3637 if { { ac_try="$ac_compile"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_compile") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
3648 for ac_file in conftest.o conftest.obj conftest.*; do
3649 test -f "$ac_file" || continue;
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3653 break;;
3654 esac
3655 done
3656 else
3657 $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "cannot compute suffix of object files: cannot compile
3663 See \`config.log' for more details" "$LINENO" 5; }
3665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3668 $as_echo "$ac_cv_objext" >&6; }
3669 OBJEXT=$ac_cv_objext
3670 ac_objext=$OBJEXT
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3672 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3673 if ${ac_cv_c_compiler_gnu+:} false; then :
3674 $as_echo_n "(cached) " >&6
3675 else
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3680 main ()
3682 #ifndef __GNUC__
3683 choke me
3684 #endif
3687 return 0;
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691 ac_compiler_gnu=yes
3692 else
3693 ac_compiler_gnu=no
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3700 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3701 if test $ac_compiler_gnu = yes; then
3702 GCC=yes
3703 else
3704 GCC=
3706 ac_test_CFLAGS=${CFLAGS+set}
3707 ac_save_CFLAGS=$CFLAGS
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3709 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3710 if ${ac_cv_prog_cc_g+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 ac_save_c_werror_flag=$ac_c_werror_flag
3714 ac_c_werror_flag=yes
3715 ac_cv_prog_cc_g=no
3716 CFLAGS="-g"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3721 main ()
3725 return 0;
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_cv_prog_cc_g=yes
3730 else
3731 CFLAGS=""
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 :
3745 else
3746 ac_c_werror_flag=$ac_save_c_werror_flag
3747 CFLAGS="-g"
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3752 main ()
3756 return 0;
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_cv_prog_cc_g=yes
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_c_werror_flag=$ac_save_c_werror_flag
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3770 $as_echo "$ac_cv_prog_cc_g" >&6; }
3771 if test "$ac_test_CFLAGS" = set; then
3772 CFLAGS=$ac_save_CFLAGS
3773 elif test $ac_cv_prog_cc_g = yes; then
3774 if test "$GCC" = yes; then
3775 CFLAGS="-g -O2"
3776 else
3777 CFLAGS="-g"
3779 else
3780 if test "$GCC" = yes; then
3781 CFLAGS="-O2"
3782 else
3783 CFLAGS=
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3787 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3788 if ${ac_cv_prog_cc_c89+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 ac_cv_prog_cc_c89=no
3792 ac_save_CC=$CC
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <stdarg.h>
3796 #include <stdio.h>
3797 struct stat;
3798 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3799 struct buf { int x; };
3800 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3801 static char *e (p, i)
3802 char **p;
3803 int i;
3805 return p[i];
3807 static char *f (char * (*g) (char **, int), char **p, ...)
3809 char *s;
3810 va_list v;
3811 va_start (v,p);
3812 s = g (p, va_arg (v,int));
3813 va_end (v);
3814 return s;
3817 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3818 function prototypes and stuff, but not '\xHH' hex character constants.
3819 These don't provoke an error unfortunately, instead are silently treated
3820 as 'x'. The following induces an error, until -std is added to get
3821 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3822 array size at least. It's necessary to write '\x00'==0 to get something
3823 that's true only with -std. */
3824 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3826 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3827 inside strings and character constants. */
3828 #define FOO(x) 'x'
3829 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3831 int test (int i, double x);
3832 struct s1 {int (*f) (int a);};
3833 struct s2 {int (*f) (double a);};
3834 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3835 int argc;
3836 char **argv;
3838 main ()
3840 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3842 return 0;
3844 _ACEOF
3845 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3846 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3848 CC="$ac_save_CC $ac_arg"
3849 if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_cv_prog_cc_c89=$ac_arg
3852 rm -f core conftest.err conftest.$ac_objext
3853 test "x$ac_cv_prog_cc_c89" != "xno" && break
3854 done
3855 rm -f conftest.$ac_ext
3856 CC=$ac_save_CC
3859 # AC_CACHE_VAL
3860 case "x$ac_cv_prog_cc_c89" in
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3863 $as_echo "none needed" >&6; } ;;
3864 xno)
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3866 $as_echo "unsupported" >&6; } ;;
3868 CC="$CC $ac_cv_prog_cc_c89"
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3870 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3871 esac
3872 if test "x$ac_cv_prog_cc_c89" != xno; then :
3876 ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882 if test $target_os = solaris
3883 then
3884 # Extract the first word of "$CC", so it can be a program name with args.
3885 set dummy $CC; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if ${ac_cv_path_CCPATH+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 case $CCPATH in
3892 [\\/]* | ?:[\\/]*)
3893 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3907 done
3908 done
3909 IFS=$as_save_IFS
3911 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3913 esac
3915 CCPATH=$ac_cv_path_CCPATH
3916 if test -n "$CCPATH"; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3918 $as_echo "$CCPATH" >&6; }
3919 else
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3925 cc=$CCPATH
3926 if test "$GCC" = "yes"
3927 then
3928 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3929 else
3930 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3932 if test "$use_64bit" = "no"
3933 then
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3937 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3938 case `isainfo -k`
3940 amd64|sparcv9)
3941 cflags_abi=-m64
3942 CFLAGS="$CFLAGS -m64"
3943 LDFLAGS="$LDFLAGS -m64"
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3945 $as_echo "yes" >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3951 esac
3953 else
3954 cc=$CC
3957 cc_is_gcc=$GCC
3960 PCFLAGS="$CFLAGS"
3961 PLDFLAGS=$LDFLAGS
3963 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3964 then
3965 CFLAGS="-O $PCFLAGS"
3969 # Add some security-related gcc flags
3970 if echo "$CFLAGS" | grep stack-protector >/dev/null
3971 then
3973 else
3974 # Check whether --enable-ssp was given.
3975 if test "${enable_ssp+set}" = set; then :
3976 enableval=$enable_ssp;
3980 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3982 save_CFLAGS="$CFLAGS"
3983 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3986 int something ();
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"; then :
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3991 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3992 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3993 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3996 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3997 CFLAGS="$save_CFLAGS"
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 # Check for even more security-related gcc/linker flags, useful for daemons
4008 # Check whether --enable-pie was given.
4009 if test "${enable_pie+set}" = set; then :
4010 enableval=$enable_pie;
4013 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4015 PIECFLAGS='-fPIE'
4016 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4017 save_CFLAGS="$CFLAGS"
4018 save_LDFLAGS="$LDFLAGS"
4019 CFLAGS="$CFLAGS $PIECFLAGS"
4020 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 void main () {}
4024 _ACEOF
4025 if ac_fn_c_try_link "$LINENO"; then :
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4028 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4030 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4033 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4034 PIECFLAGS=""
4035 PIELDFLAGS=""
4038 rm -f core conftest.err conftest.$ac_objext \
4039 conftest$ac_exeext conftest.$ac_ext
4040 CFLAGS="$save_CFLAGS"
4041 LDFLAGS="$save_LDFLAGS"
4047 # Check for support for symbol hiding via gcc flags
4048 # Check whether --enable-visibility was given.
4049 if test "${enable_visibility+set}" = set; then :
4050 enableval=$enable_visibility;
4053 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4055 INVISIBILITY="-fvisibility=hidden"
4056 save_CFLAGS="$CFLAGS"
4057 CFLAGS="$CFLAGS -c $INVISIBILITY"
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 int visible () { return 0; }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4065 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4067 else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4070 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4071 INVISIBILITY=""
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 CFLAGS="$save_CFLAGS"
4080 ac_ext=cpp
4081 ac_cpp='$CXXCPP $CPPFLAGS'
4082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4085 if test -z "$CXX"; then
4086 if test -n "$CCC"; then
4087 CXX=$CCC
4088 else
4089 if test -n "$ac_tool_prefix"; then
4090 for ac_prog in eg++ g++ c++
4092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if ${ac_cv_prog_CXX+:} false; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 if test -n "$CXX"; then
4100 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4109 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4113 done
4114 done
4115 IFS=$as_save_IFS
4119 CXX=$ac_cv_prog_CXX
4120 if test -n "$CXX"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4122 $as_echo "$CXX" >&6; }
4123 else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4129 test -n "$CXX" && break
4130 done
4132 if test -z "$CXX"; then
4133 ac_ct_CXX=$CXX
4134 for ac_prog in eg++ g++ c++
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -n "$ac_ct_CXX"; then
4144 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_ac_ct_CXX="$ac_prog"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4159 IFS=$as_save_IFS
4163 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4164 if test -n "$ac_ct_CXX"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4166 $as_echo "$ac_ct_CXX" >&6; }
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4173 test -n "$ac_ct_CXX" && break
4174 done
4176 if test "x$ac_ct_CXX" = x; then
4177 CXX="g++"
4178 else
4179 case $cross_compiling:$ac_tool_warned in
4180 yes:)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4183 ac_tool_warned=yes ;;
4184 esac
4185 CXX=$ac_ct_CXX
4191 # Provide some information about the compiler.
4192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4193 set X $ac_compile
4194 ac_compiler=$2
4195 for ac_option in --version -v -V -qversion; do
4196 { { ac_try="$ac_compiler $ac_option >&5"
4197 case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4202 $as_echo "$ac_try_echo"; } >&5
4203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4204 ac_status=$?
4205 if test -s conftest.err; then
4206 sed '10a\
4207 ... rest of stderr output deleted ...
4208 10q' conftest.err >conftest.er1
4209 cat conftest.er1 >&5
4211 rm -f conftest.er1 conftest.err
4212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213 test $ac_status = 0; }
4214 done
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4217 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4218 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4225 main ()
4227 #ifndef __GNUC__
4228 choke me
4229 #endif
4232 return 0;
4234 _ACEOF
4235 if ac_fn_cxx_try_compile "$LINENO"; then :
4236 ac_compiler_gnu=yes
4237 else
4238 ac_compiler_gnu=no
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4245 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4246 if test $ac_compiler_gnu = yes; then
4247 GXX=yes
4248 else
4249 GXX=
4251 ac_test_CXXFLAGS=${CXXFLAGS+set}
4252 ac_save_CXXFLAGS=$CXXFLAGS
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4254 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4255 if ${ac_cv_prog_cxx_g+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4259 ac_cxx_werror_flag=yes
4260 ac_cv_prog_cxx_g=no
4261 CXXFLAGS="-g"
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4266 main ()
4270 return 0;
4272 _ACEOF
4273 if ac_fn_cxx_try_compile "$LINENO"; then :
4274 ac_cv_prog_cxx_g=yes
4275 else
4276 CXXFLAGS=""
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 :
4290 else
4291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4292 CXXFLAGS="-g"
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4297 main ()
4301 return 0;
4303 _ACEOF
4304 if ac_fn_cxx_try_compile "$LINENO"; then :
4305 ac_cv_prog_cxx_g=yes
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4315 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4316 if test "$ac_test_CXXFLAGS" = set; then
4317 CXXFLAGS=$ac_save_CXXFLAGS
4318 elif test $ac_cv_prog_cxx_g = yes; then
4319 if test "$GXX" = yes; then
4320 CXXFLAGS="-g -O2"
4321 else
4322 CXXFLAGS="-g"
4324 else
4325 if test "$GXX" = yes; then
4326 CXXFLAGS="-O2"
4327 else
4328 CXXFLAGS=
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 cxx=$CXX
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4340 $as_echo_n "checking for working C++ compiler... " >&6; }
4341 ac_ext=cpp
4342 ac_cpp='$CXXCPP $CPPFLAGS'
4343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <cstdio>
4352 main ()
4354 const char gday[] = "G'day, world\n";
4356 return 0;
4358 _ACEOF
4359 if ac_fn_cxx_try_compile "$LINENO"; then :
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4361 $as_echo "yes" >&6; }
4362 else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4365 cxx=""
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 # Prevent shared libraries from being built for libpcp and other core libraries
4376 # Check whether --enable-shared was given.
4377 if test "${enable_shared+set}" = set; then :
4378 enableval=$enable_shared; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --disable-shared=$withval"
4384 test -z "$AWK" && for ac_prog in gawk awk
4386 # Extract the first word of "$ac_prog", so it can be a program name with args.
4387 set dummy $ac_prog; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_path_AWK+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 case $AWK in
4394 [\\/]* | ?:[\\/]*)
4395 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4405 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4409 done
4410 done
4411 IFS=$as_save_IFS
4414 esac
4416 AWK=$ac_cv_path_AWK
4417 if test -n "$AWK"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4419 $as_echo "$AWK" >&6; }
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4426 test -n "$AWK" && break
4427 done
4428 test -n "$AWK" || AWK="/usr/bin/awk"
4430 case "$AWK"
4432 gawk|*/gawk)
4433 awk="$AWK --posix"
4436 awk=$AWK
4438 esac
4441 if test -z "$SED"; then
4442 # Extract the first word of "sed", so it can be a program name with args.
4443 set dummy sed; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_path_SED+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 case $SED in
4450 [\\/]* | ?:[\\/]*)
4451 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4465 done
4466 done
4467 IFS=$as_save_IFS
4469 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4471 esac
4473 SED=$ac_cv_path_SED
4474 if test -n "$SED"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4476 $as_echo "$SED" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4484 if test ! -x "$SED"; then
4485 as_fn_error $? "cannot find a valid 'sed' command." "$LINENO" 5
4487 sed=$SED
4490 if test -z "$ECHO"; then
4491 # Extract the first word of "echo", so it can be a program name with args.
4492 set dummy echo; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_path_ECHO+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 case $ECHO in
4499 [\\/]* | ?:[\\/]*)
4500 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4514 done
4515 done
4516 IFS=$as_save_IFS
4518 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4520 esac
4522 ECHO=$ac_cv_path_ECHO
4523 if test -n "$ECHO"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4525 $as_echo "$ECHO" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4533 if test ! -x "$ECHO"; then
4534 as_fn_error $? "cannot find a valid 'echo' command." "$LINENO" 5
4536 echo=$ECHO
4539 if test -z "$FIND"; then
4540 # Extract the first word of "find", so it can be a program name with args.
4541 set dummy find; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if ${ac_cv_path_FIND+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 case $FIND in
4548 [\\/]* | ?:[\\/]*)
4549 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4563 done
4564 done
4565 IFS=$as_save_IFS
4567 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="/usr/bin/find"
4569 esac
4571 FIND=$ac_cv_path_FIND
4572 if test -n "$FIND"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4574 $as_echo "$FIND" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4582 if test ! -x "$FIND"; then
4583 as_fn_error $? "cannot find a valid 'find' command." "$LINENO" 5
4585 find=$FIND
4588 if test -z "$WHICH"; then
4589 # Extract the first word of "which", so it can be a program name with args.
4590 set dummy which; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_path_WHICH+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 case $WHICH in
4597 [\\/]* | ?:[\\/]*)
4598 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4612 done
4613 done
4614 IFS=$as_save_IFS
4616 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4618 esac
4620 WHICH=$ac_cv_path_WHICH
4621 if test -n "$WHICH"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4623 $as_echo "$WHICH" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4631 if test ! -x "$WHICH"; then
4632 as_fn_error $? "cannot find a valid 'which' command." "$LINENO" 5
4634 which=$WHICH
4637 for ac_prog in flex lex
4639 # Extract the first word of "$ac_prog", so it can be a program name with args.
4640 set dummy $ac_prog; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_LEX+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$LEX"; then
4647 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_LEX="$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 LEX=$ac_cv_prog_LEX
4667 if test -n "$LEX"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4669 $as_echo "$LEX" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4676 test -n "$LEX" && break
4677 done
4678 test -n "$LEX" || LEX=":"
4680 if test "x$LEX" != "x:"; then
4681 cat >conftest.l <<_ACEOF
4683 a { ECHO; }
4684 b { REJECT; }
4685 c { yymore (); }
4686 d { yyless (1); }
4687 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4688 yyless ((input () != 0)); }
4689 f { unput (yytext[0]); }
4690 . { BEGIN INITIAL; }
4692 #ifdef YYTEXT_POINTER
4693 extern char *yytext;
4694 #endif
4696 main (void)
4698 return ! yylex () + ! yywrap ();
4700 _ACEOF
4701 { { ac_try="$LEX conftest.l"
4702 case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705 esac
4706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4707 $as_echo "$ac_try_echo"; } >&5
4708 (eval "$LEX conftest.l") 2>&5
4709 ac_status=$?
4710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4711 test $ac_status = 0; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4713 $as_echo_n "checking lex output file root... " >&6; }
4714 if ${ac_cv_prog_lex_root+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4718 if test -f lex.yy.c; then
4719 ac_cv_prog_lex_root=lex.yy
4720 elif test -f lexyy.c; then
4721 ac_cv_prog_lex_root=lexyy
4722 else
4723 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4727 $as_echo "$ac_cv_prog_lex_root" >&6; }
4728 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4730 if test -z "${LEXLIB+set}"; then
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4732 $as_echo_n "checking lex library... " >&6; }
4733 if ${ac_cv_lib_lex+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4737 ac_save_LIBS=$LIBS
4738 ac_cv_lib_lex='none needed'
4739 for ac_lib in '' -lfl -ll; do
4740 LIBS="$ac_lib $ac_save_LIBS"
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 `cat $LEX_OUTPUT_ROOT.c`
4744 _ACEOF
4745 if ac_fn_c_try_link "$LINENO"; then :
4746 ac_cv_lib_lex=$ac_lib
4748 rm -f core conftest.err conftest.$ac_objext \
4749 conftest$ac_exeext conftest.$ac_ext
4750 test "$ac_cv_lib_lex" != 'none needed' && break
4751 done
4752 LIBS=$ac_save_LIBS
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4756 $as_echo "$ac_cv_lib_lex" >&6; }
4757 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4762 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4763 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 # POSIX says lex can declare yytext either as a pointer or an array; the
4767 # default is implementation-dependent. Figure out which it is, since
4768 # not all implementations provide the %pointer and %array declarations.
4769 ac_cv_prog_lex_yytext_pointer=no
4770 ac_save_LIBS=$LIBS
4771 LIBS="$LEXLIB $ac_save_LIBS"
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4775 #define YYTEXT_POINTER 1
4776 `cat $LEX_OUTPUT_ROOT.c`
4777 _ACEOF
4778 if ac_fn_c_try_link "$LINENO"; then :
4779 ac_cv_prog_lex_yytext_pointer=yes
4781 rm -f core conftest.err conftest.$ac_objext \
4782 conftest$ac_exeext conftest.$ac_ext
4783 LIBS=$ac_save_LIBS
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4787 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4788 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4790 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4793 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4796 lex=`$echo $LEX | awk '{print $1}'`
4797 lex=`$which "$lex"`
4798 if test ! -x "$lex"; then
4799 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4801 lex=$LEX
4804 for ac_prog in 'bison -y' byacc
4806 # Extract the first word of "$ac_prog", so it can be a program name with args.
4807 set dummy $ac_prog; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_prog_YACC+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 if test -n "$YACC"; then
4814 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823 ac_cv_prog_YACC="$ac_prog"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4827 done
4828 done
4829 IFS=$as_save_IFS
4833 YACC=$ac_cv_prog_YACC
4834 if test -n "$YACC"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4836 $as_echo "$YACC" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4843 test -n "$YACC" && break
4844 done
4845 test -n "$YACC" || YACC="yacc"
4847 yacc=`$echo $YACC | awk '{print $1}'`
4848 yacc=`$which "$yacc"`
4849 if test ! -x "$yacc"; then
4850 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4852 yacc=$YACC
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4856 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4857 if test $target_os = mingw; then
4858 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4860 if test -x $d/sort; then
4861 sort=$d/sort
4862 break
4864 done
4865 else
4866 sort=`$which sort`
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4869 $as_echo "$sort" >&6; }
4870 $sort -n </dev/null
4871 if test $? != 0
4872 then
4873 echo
4874 echo "FATAL ERROR: $sort -n failed!"
4875 rm -rf conftest conftest.*
4876 exit 1
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4881 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4882 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4883 then
4884 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4885 then
4886 echo_n= echo_c=
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4888 $as_echo "neither?" >&6; }
4889 else
4890 echo_n=-n echo_c=
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4892 $as_echo " -n" >&6; }
4894 else
4895 echo_n= echo_c='\c'
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4897 $as_echo "backslash-c" >&6; }
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4903 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4904 if ${ac_cv_path_GREP+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -z "$GREP"; then
4908 ac_path_GREP_found=false
4909 # Loop through the user's path and test for each of PROGNAME-LIST
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_prog in grep ggrep; do
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4918 as_fn_executable_p "$ac_path_GREP" || continue
4919 # Check for GNU ac_path_GREP and select it if it is found.
4920 # Check for GNU $ac_path_GREP
4921 case `"$ac_path_GREP" --version 2>&1` in
4922 *GNU*)
4923 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4925 ac_count=0
4926 $as_echo_n 0123456789 >"conftest.in"
4927 while :
4929 cat "conftest.in" "conftest.in" >"conftest.tmp"
4930 mv "conftest.tmp" "conftest.in"
4931 cp "conftest.in" "conftest.nl"
4932 $as_echo 'GREP' >> "conftest.nl"
4933 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4935 as_fn_arith $ac_count + 1 && ac_count=$as_val
4936 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4937 # Best one so far, save it but keep looking for a better one
4938 ac_cv_path_GREP="$ac_path_GREP"
4939 ac_path_GREP_max=$ac_count
4941 # 10*(2^10) chars as input seems more than enough
4942 test $ac_count -gt 10 && break
4943 done
4944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4945 esac
4947 $ac_path_GREP_found && break 3
4948 done
4949 done
4950 done
4951 IFS=$as_save_IFS
4952 if test -z "$ac_cv_path_GREP"; then
4953 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4955 else
4956 ac_cv_path_GREP=$GREP
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4961 $as_echo "$ac_cv_path_GREP" >&6; }
4962 GREP="$ac_cv_path_GREP"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4966 $as_echo_n "checking for egrep... " >&6; }
4967 if ${ac_cv_path_EGREP+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4971 then ac_cv_path_EGREP="$GREP -E"
4972 else
4973 if test -z "$EGREP"; then
4974 ac_path_EGREP_found=false
4975 # Loop through the user's path and test for each of PROGNAME-LIST
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_prog in egrep; do
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4984 as_fn_executable_p "$ac_path_EGREP" || continue
4985 # Check for GNU ac_path_EGREP and select it if it is found.
4986 # Check for GNU $ac_path_EGREP
4987 case `"$ac_path_EGREP" --version 2>&1` in
4988 *GNU*)
4989 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4991 ac_count=0
4992 $as_echo_n 0123456789 >"conftest.in"
4993 while :
4995 cat "conftest.in" "conftest.in" >"conftest.tmp"
4996 mv "conftest.tmp" "conftest.in"
4997 cp "conftest.in" "conftest.nl"
4998 $as_echo 'EGREP' >> "conftest.nl"
4999 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5001 as_fn_arith $ac_count + 1 && ac_count=$as_val
5002 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5003 # Best one so far, save it but keep looking for a better one
5004 ac_cv_path_EGREP="$ac_path_EGREP"
5005 ac_path_EGREP_max=$ac_count
5007 # 10*(2^10) chars as input seems more than enough
5008 test $ac_count -gt 10 && break
5009 done
5010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5011 esac
5013 $ac_path_EGREP_found && break 3
5014 done
5015 done
5016 done
5017 IFS=$as_save_IFS
5018 if test -z "$ac_cv_path_EGREP"; then
5019 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5021 else
5022 ac_cv_path_EGREP=$EGREP
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5028 $as_echo "$ac_cv_path_EGREP" >&6; }
5029 EGREP="$ac_cv_path_EGREP"
5033 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5034 then
5035 enable_probes=true
5036 for ac_prog in dtrace
5038 # Extract the first word of "$ac_prog", so it can be a program name with args.
5039 set dummy $ac_prog; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_DTRACE+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$DTRACE"; then
5046 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_DTRACE="$ac_prog"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 DTRACE=$ac_cv_prog_DTRACE
5066 if test -n "$DTRACE"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5068 $as_echo "$DTRACE" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5075 test -n "$DTRACE" && break
5076 done
5078 if test -z "$DTRACE"
5079 then
5080 if test "$do_probes" = "yes"
5081 then
5082 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5084 enable_probes=false
5086 ac_ext=c
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5092 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5093 # On Suns, sometimes $CPP names a directory.
5094 if test -n "$CPP" && test -d "$CPP"; then
5095 CPP=
5097 if test -z "$CPP"; then
5098 if ${ac_cv_prog_CPP+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 # Double quotes because CPP needs to be expanded
5102 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5104 ac_preproc_ok=false
5105 for ac_c_preproc_warn_flag in '' yes
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120 Syntax error
5121 _ACEOF
5122 if ac_fn_c_try_cpp "$LINENO"; then :
5124 else
5125 # Broken: fails on valid input.
5126 continue
5128 rm -f conftest.err conftest.i conftest.$ac_ext
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if ac_fn_c_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5144 rm -f conftest.err conftest.i conftest.$ac_ext
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.i conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then :
5150 break
5153 done
5154 ac_cv_prog_CPP=$CPP
5157 CPP=$ac_cv_prog_CPP
5158 else
5159 ac_cv_prog_CPP=$CPP
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5162 $as_echo "$CPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_c_preproc_warn_flag in '' yes
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #ifdef __STDC__
5175 # include <limits.h>
5176 #else
5177 # include <assert.h>
5178 #endif
5179 Syntax error
5180 _ACEOF
5181 if ac_fn_c_try_cpp "$LINENO"; then :
5183 else
5184 # Broken: fails on valid input.
5185 continue
5187 rm -f conftest.err conftest.i conftest.$ac_ext
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5194 _ACEOF
5195 if ac_fn_c_try_cpp "$LINENO"; then :
5196 # Broken: success on invalid input.
5197 continue
5198 else
5199 # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5203 rm -f conftest.err conftest.i conftest.$ac_ext
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.i conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then :
5210 else
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5214 See \`config.log' for more details" "$LINENO" 5; }
5217 ac_ext=c
5218 ac_cpp='$CPP $CPPFLAGS'
5219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5225 $as_echo_n "checking for ANSI C header files... " >&6; }
5226 if ${ac_cv_header_stdc+:} false; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 #include <stdlib.h>
5232 #include <stdarg.h>
5233 #include <string.h>
5234 #include <float.h>
5237 main ()
5241 return 0;
5243 _ACEOF
5244 if ac_fn_c_try_compile "$LINENO"; then :
5245 ac_cv_header_stdc=yes
5246 else
5247 ac_cv_header_stdc=no
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 if test $ac_cv_header_stdc = yes; then
5252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #include <string.h>
5257 _ACEOF
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev/null 2>&1; then :
5261 else
5262 ac_cv_header_stdc=no
5264 rm -f conftest*
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 #include <stdlib.h>
5274 _ACEOF
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "free" >/dev/null 2>&1; then :
5278 else
5279 ac_cv_header_stdc=no
5281 rm -f conftest*
5285 if test $ac_cv_header_stdc = yes; then
5286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5287 if test "$cross_compiling" = yes; then :
5289 else
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 #include <ctype.h>
5293 #include <stdlib.h>
5294 #if ((' ' & 0x0FF) == 0x020)
5295 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5296 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5297 #else
5298 # define ISLOWER(c) \
5299 (('a' <= (c) && (c) <= 'i') \
5300 || ('j' <= (c) && (c) <= 'r') \
5301 || ('s' <= (c) && (c) <= 'z'))
5302 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5303 #endif
5305 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5307 main ()
5309 int i;
5310 for (i = 0; i < 256; i++)
5311 if (XOR (islower (i), ISLOWER (i))
5312 || toupper (i) != TOUPPER (i))
5313 return 2;
5314 return 0;
5316 _ACEOF
5317 if ac_fn_c_try_run "$LINENO"; then :
5319 else
5320 ac_cv_header_stdc=no
5322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5323 conftest.$ac_objext conftest.beam conftest.$ac_ext
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5329 $as_echo "$ac_cv_header_stdc" >&6; }
5330 if test $ac_cv_header_stdc = yes; then
5332 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5336 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5338 inttypes.h stdint.h unistd.h
5339 do :
5340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5344 cat >>confdefs.h <<_ACEOF
5345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5346 _ACEOF
5350 done
5353 for ac_header in sys/sdt.h
5354 do :
5355 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5356 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
5357 cat >>confdefs.h <<_ACEOF
5358 #define HAVE_SYS_SDT_H 1
5359 _ACEOF
5361 if $enable_probes = true
5362 then
5363 if test $target_os = kfreebsd
5364 then
5365 enable_probes=false
5366 elif test $target_os = freebsd
5367 then
5368 rm -f conftest.d conftest.h
5369 cat <<End-of-File >conftest.d
5370 provider eek {
5371 probe urk(int);
5373 End-of-File
5374 if dtrace -s conftest.d -h >/dev/null 2>&1
5375 then
5376 if test ! -f conftest.h
5377 then
5378 enable_probes=false
5379 if test "$do_probes" = "yes"
5380 then
5381 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5384 else
5385 enable_probes=false
5386 if test "$do_probes" = "yes"
5387 then
5388 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5394 else
5396 enable_probes=false
5397 if test "$do_probes" = "yes"
5398 then
5399 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5404 done
5407 if test "$enable_probes" = "true"
5408 then
5410 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5417 if test "x$do_discovery" != "xno"; then :
5419 # on Mac OS X, dns_sd.h
5421 # on Linux, aloha Avahi
5422 enable_avahi=true
5424 pkg_failed=no
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5426 $as_echo_n "checking for avahi... " >&6; }
5428 if test -n "$avahi_CFLAGS"; then
5429 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
5430 elif test -n "$PKG_CONFIG"; then
5431 if test -n "$PKG_CONFIG" && \
5432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5433 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5434 ac_status=$?
5435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436 test $ac_status = 0; }; then
5437 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5438 test "x$?" != "x0" && pkg_failed=yes
5439 else
5440 pkg_failed=yes
5442 else
5443 pkg_failed=untried
5445 if test -n "$avahi_LIBS"; then
5446 pkg_cv_avahi_LIBS="$avahi_LIBS"
5447 elif test -n "$PKG_CONFIG"; then
5448 if test -n "$PKG_CONFIG" && \
5449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5450 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5451 ac_status=$?
5452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5453 test $ac_status = 0; }; then
5454 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5455 test "x$?" != "x0" && pkg_failed=yes
5456 else
5457 pkg_failed=yes
5459 else
5460 pkg_failed=untried
5465 if test $pkg_failed = yes; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5470 _pkg_short_errors_supported=yes
5471 else
5472 _pkg_short_errors_supported=no
5474 if test $_pkg_short_errors_supported = yes; then
5475 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5476 else
5477 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5479 # Put the nasty error message in config.log where it belongs
5480 echo "$avahi_PKG_ERRORS" >&5
5482 enable_avahi=false
5483 elif test $pkg_failed = untried; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 enable_avahi=false
5487 else
5488 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
5489 avahi_LIBS=$pkg_cv_avahi_LIBS
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491 $as_echo "yes" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5493 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5494 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 ac_check_lib_save_LIBS=$LIBS
5498 LIBS="-lavahi-client $LIBS"
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5502 /* Override any GCC internal prototype to avoid an error.
5503 Use char because int might match the return type of a GCC
5504 builtin and then its argument prototype would still apply. */
5505 #ifdef __cplusplus
5506 extern "C"
5507 #endif
5508 char avahi_client_new ();
5510 main ()
5512 return avahi_client_new ();
5514 return 0;
5516 _ACEOF
5517 if ac_fn_c_try_link "$LINENO"; then :
5518 ac_cv_lib_avahi_client_avahi_client_new=yes
5519 else
5520 ac_cv_lib_avahi_client_avahi_client_new=no
5522 rm -f core conftest.err conftest.$ac_objext \
5523 conftest$ac_exeext conftest.$ac_ext
5524 LIBS=$ac_check_lib_save_LIBS
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5527 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5528 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
5529 lib_for_avahi="-lavahi-common -lavahi-client"
5530 else
5531 enable_avahi=false
5536 for ac_header in avahi-client/publish.h
5537 do :
5538 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5539 if test "x$ac_cv_header_avahi_client_publish_h" = xyes; then :
5540 cat >>confdefs.h <<_ACEOF
5541 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5542 _ACEOF
5544 else
5545 enable_avahi=false
5548 done
5550 for ac_header in avahi-common/alternative.h
5551 do :
5552 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5553 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes; then :
5554 cat >>confdefs.h <<_ACEOF
5555 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5556 _ACEOF
5558 else
5559 enable_avahi=false
5562 done
5565 if test "$enable_avahi" = "true"
5566 then
5570 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5572 enable_discovery=true
5575 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5576 then
5577 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5579 if test "$enable_discovery" = "true"
5580 then
5582 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5590 enable_systemd=false
5591 if test "x$do_systemd" != "xno"; then :
5593 enable_systemd=true
5596 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5597 pkg_cv_SYSTEMD_SYSTEMUNITDIR="$SYSTEMD_SYSTEMUNITDIR"
5598 elif test -n "$PKG_CONFIG"; then
5599 if test -n "$PKG_CONFIG" && \
5600 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5601 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5602 ac_status=$?
5603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5604 test $ac_status = 0; }; then
5605 pkg_cv_SYSTEMD_SYSTEMUNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5606 test "x$?" != "x0" && pkg_failed=yes
5607 else
5608 pkg_failed=yes
5610 else
5611 pkg_failed=untried
5613 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5615 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5616 enable_systemd=false
5617 else
5618 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5621 if test -z "$pcp_systemdunit_dir"
5622 then
5623 if test "$do_systemd" = "yes"
5624 then
5625 as_fn_error $? "cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5627 enable_systemd=false
5633 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5634 # targets a build for non-system directories such as /usr/local.
5635 # AC_PREFIX_DEFAULT([])
5637 . ./VERSION.pcp
5638 PACKAGE_VERSION=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5645 if test -z "$PACKAGE_BUILD_DATE" ; then
5646 PACKAGE_BUILD_DATE=`date +%Y-%m-%d`
5650 if test -z "$PACKAGE_DISTRIBUTION" ; then
5651 PACKAGE_DISTRIBUTION=$target_distro
5655 pm_version_current=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5658 ac_config_headers="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5660 ac_config_files="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5662 cat >confcache <<\_ACEOF
5663 # This file is a shell script that caches the results of configure
5664 # tests run on this system so they can be shared between configure
5665 # scripts and configure runs, see configure's option --config-cache.
5666 # It is not useful on other systems. If it contains results you don't
5667 # want to keep, you may remove or edit it.
5669 # config.status only pays attention to the cache file if you give it
5670 # the --recheck option to rerun configure.
5672 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5673 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5674 # following values.
5676 _ACEOF
5678 # The following way of writing the cache mishandles newlines in values,
5679 # but we know of no workaround that is simple, portable, and efficient.
5680 # So, we kill variables containing newlines.
5681 # Ultrix sh set writes to stderr and can't be redirected directly,
5682 # and sets the high bit in the cache file unless we assign to the vars.
5684 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5685 eval ac_val=\$$ac_var
5686 case $ac_val in #(
5687 *${as_nl}*)
5688 case $ac_var in #(
5689 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5691 esac
5692 case $ac_var in #(
5693 _ | IFS | as_nl) ;; #(
5694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5695 *) { eval $ac_var=; unset $ac_var;} ;;
5696 esac ;;
5697 esac
5698 done
5700 (set) 2>&1 |
5701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5702 *${as_nl}ac_space=\ *)
5703 # `set' does not quote correctly, so add quotes: double-quote
5704 # substitution turns \\\\ into \\, and sed turns \\ into \.
5705 sed -n \
5706 "s/'/'\\\\''/g;
5707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5708 ;; #(
5710 # `set' quotes correctly as required by POSIX, so do not add quotes.
5711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5713 esac |
5714 sort
5716 sed '
5717 /^ac_cv_env_/b end
5718 t clear
5719 :clear
5720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5721 t end
5722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5723 :end' >>confcache
5724 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5725 if test -w "$cache_file"; then
5726 if test "x$cache_file" != "x/dev/null"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5728 $as_echo "$as_me: updating cache $cache_file" >&6;}
5729 if test ! -f "$cache_file" || test -h "$cache_file"; then
5730 cat confcache >"$cache_file"
5731 else
5732 case $cache_file in #(
5733 */* | ?:*)
5734 mv -f confcache "$cache_file"$$ &&
5735 mv -f "$cache_file"$$ "$cache_file" ;; #(
5737 mv -f confcache "$cache_file" ;;
5738 esac
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5746 rm -f confcache
5748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5749 # Let make expand exec_prefix.
5750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5752 DEFS=-DHAVE_CONFIG_H
5754 ac_libobjs=
5755 ac_ltlibobjs=
5757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5758 # 1. Remove the extension, and $U if already installed.
5759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5760 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5762 # will be set to the directory where LIBOBJS objects are built.
5763 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5764 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5765 done
5766 LIBOBJS=$ac_libobjs
5768 LTLIBOBJS=$ac_ltlibobjs
5772 : "${CONFIG_STATUS=./config.status}"
5773 ac_write_fail=0
5774 ac_clean_files_save=$ac_clean_files
5775 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5777 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5778 as_write_fail=0
5779 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5780 #! $SHELL
5781 # Generated by $as_me.
5782 # Run this file to recreate the current configuration.
5783 # Compiler output produced by configure, useful for debugging
5784 # configure, is in config.log if it exists.
5786 debug=false
5787 ac_cs_recheck=false
5788 ac_cs_silent=false
5790 SHELL=\${CONFIG_SHELL-$SHELL}
5791 export SHELL
5792 _ASEOF
5793 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5794 ## -------------------- ##
5795 ## M4sh Initialization. ##
5796 ## -------------------- ##
5798 # Be more Bourne compatible
5799 DUALCASE=1; export DUALCASE # for MKS sh
5800 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5801 emulate sh
5802 NULLCMD=:
5803 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5804 # is contrary to our usage. Disable this feature.
5805 alias -g '${1+"$@"}'='"$@"'
5806 setopt NO_GLOB_SUBST
5807 else
5808 case `(set -o) 2>/dev/null` in #(
5809 *posix*) :
5810 set -o posix ;; #(
5811 *) :
5813 esac
5817 as_nl='
5819 export as_nl
5820 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5821 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5822 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5823 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5824 # Prefer a ksh shell builtin over an external printf program on Solaris,
5825 # but without wasting forks for bash or zsh.
5826 if test -z "$BASH_VERSION$ZSH_VERSION" \
5827 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5828 as_echo='print -r --'
5829 as_echo_n='print -rn --'
5830 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5831 as_echo='printf %s\n'
5832 as_echo_n='printf %s'
5833 else
5834 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5835 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5836 as_echo_n='/usr/ucb/echo -n'
5837 else
5838 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5839 as_echo_n_body='eval
5840 arg=$1;
5841 case $arg in #(
5842 *"$as_nl"*)
5843 expr "X$arg" : "X\\(.*\\)$as_nl";
5844 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5845 esac;
5846 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5848 export as_echo_n_body
5849 as_echo_n='sh -c $as_echo_n_body as_echo'
5851 export as_echo_body
5852 as_echo='sh -c $as_echo_body as_echo'
5855 # The user is always right.
5856 if test "${PATH_SEPARATOR+set}" != set; then
5857 PATH_SEPARATOR=:
5858 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5859 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5860 PATH_SEPARATOR=';'
5865 # IFS
5866 # We need space, tab and new line, in precisely that order. Quoting is
5867 # there to prevent editors from complaining about space-tab.
5868 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5869 # splitting by setting IFS to empty value.)
5870 IFS=" "" $as_nl"
5872 # Find who we are. Look in the path if we contain no directory separator.
5873 as_myself=
5874 case $0 in #((
5875 *[\\/]* ) as_myself=$0 ;;
5876 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5882 done
5883 IFS=$as_save_IFS
5886 esac
5887 # We did not find ourselves, most probably we were run as `sh COMMAND'
5888 # in which case we are not to be found in the path.
5889 if test "x$as_myself" = x; then
5890 as_myself=$0
5892 if test ! -f "$as_myself"; then
5893 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5894 exit 1
5897 # Unset variables that we do not need and which cause bugs (e.g. in
5898 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5899 # suppresses any "Segmentation fault" message there. '((' could
5900 # trigger a bug in pdksh 5.2.14.
5901 for as_var in BASH_ENV ENV MAIL MAILPATH
5902 do eval test x\${$as_var+set} = xset \
5903 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5904 done
5905 PS1='$ '
5906 PS2='> '
5907 PS4='+ '
5909 # NLS nuisances.
5910 LC_ALL=C
5911 export LC_ALL
5912 LANGUAGE=C
5913 export LANGUAGE
5915 # CDPATH.
5916 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5919 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5920 # ----------------------------------------
5921 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5922 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5923 # script with STATUS, using 1 if that was 0.
5924 as_fn_error ()
5926 as_status=$1; test $as_status -eq 0 && as_status=1
5927 if test "$4"; then
5928 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5929 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5931 $as_echo "$as_me: error: $2" >&2
5932 as_fn_exit $as_status
5933 } # as_fn_error
5936 # as_fn_set_status STATUS
5937 # -----------------------
5938 # Set $? to STATUS, without forking.
5939 as_fn_set_status ()
5941 return $1
5942 } # as_fn_set_status
5944 # as_fn_exit STATUS
5945 # -----------------
5946 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5947 as_fn_exit ()
5949 set +e
5950 as_fn_set_status $1
5951 exit $1
5952 } # as_fn_exit
5954 # as_fn_unset VAR
5955 # ---------------
5956 # Portably unset VAR.
5957 as_fn_unset ()
5959 { eval $1=; unset $1;}
5961 as_unset=as_fn_unset
5962 # as_fn_append VAR VALUE
5963 # ----------------------
5964 # Append the text in VALUE to the end of the definition contained in VAR. Take
5965 # advantage of any shell optimizations that allow amortized linear growth over
5966 # repeated appends, instead of the typical quadratic growth present in naive
5967 # implementations.
5968 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5969 eval 'as_fn_append ()
5971 eval $1+=\$2
5973 else
5974 as_fn_append ()
5976 eval $1=\$$1\$2
5978 fi # as_fn_append
5980 # as_fn_arith ARG...
5981 # ------------------
5982 # Perform arithmetic evaluation on the ARGs, and store the result in the
5983 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5984 # must be portable across $(()) and expr.
5985 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5986 eval 'as_fn_arith ()
5988 as_val=$(( $* ))
5990 else
5991 as_fn_arith ()
5993 as_val=`expr "$@" || test $? -eq 1`
5995 fi # as_fn_arith
5998 if expr a : '\(a\)' >/dev/null 2>&1 &&
5999 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6000 as_expr=expr
6001 else
6002 as_expr=false
6005 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6006 as_basename=basename
6007 else
6008 as_basename=false
6011 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6012 as_dirname=dirname
6013 else
6014 as_dirname=false
6017 as_me=`$as_basename -- "$0" ||
6018 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6019 X"$0" : 'X\(//\)$' \| \
6020 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6021 $as_echo X/"$0" |
6022 sed '/^.*\/\([^/][^/]*\)\/*$/{
6023 s//\1/
6026 /^X\/\(\/\/\)$/{
6027 s//\1/
6030 /^X\/\(\/\).*/{
6031 s//\1/
6034 s/.*/./; q'`
6036 # Avoid depending upon Character Ranges.
6037 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6038 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6039 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6040 as_cr_digits='0123456789'
6041 as_cr_alnum=$as_cr_Letters$as_cr_digits
6043 ECHO_C= ECHO_N= ECHO_T=
6044 case `echo -n x` in #(((((
6045 -n*)
6046 case `echo 'xy\c'` in
6047 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6048 xy) ECHO_C='\c';;
6049 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6050 ECHO_T=' ';;
6051 esac;;
6053 ECHO_N='-n';;
6054 esac
6056 rm -f conf$$ conf$$.exe conf$$.file
6057 if test -d conf$$.dir; then
6058 rm -f conf$$.dir/conf$$.file
6059 else
6060 rm -f conf$$.dir
6061 mkdir conf$$.dir 2>/dev/null
6063 if (echo >conf$$.file) 2>/dev/null; then
6064 if ln -s conf$$.file conf$$ 2>/dev/null; then
6065 as_ln_s='ln -s'
6066 # ... but there are two gotchas:
6067 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6068 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6069 # In both cases, we have to default to `cp -pR'.
6070 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6071 as_ln_s='cp -pR'
6072 elif ln conf$$.file conf$$ 2>/dev/null; then
6073 as_ln_s=ln
6074 else
6075 as_ln_s='cp -pR'
6077 else
6078 as_ln_s='cp -pR'
6080 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6081 rmdir conf$$.dir 2>/dev/null
6084 # as_fn_mkdir_p
6085 # -------------
6086 # Create "$as_dir" as a directory, including parents if necessary.
6087 as_fn_mkdir_p ()
6090 case $as_dir in #(
6091 -*) as_dir=./$as_dir;;
6092 esac
6093 test -d "$as_dir" || eval $as_mkdir_p || {
6094 as_dirs=
6095 while :; do
6096 case $as_dir in #(
6097 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6098 *) as_qdir=$as_dir;;
6099 esac
6100 as_dirs="'$as_qdir' $as_dirs"
6101 as_dir=`$as_dirname -- "$as_dir" ||
6102 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6103 X"$as_dir" : 'X\(//\)[^/]' \| \
6104 X"$as_dir" : 'X\(//\)$' \| \
6105 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6106 $as_echo X"$as_dir" |
6107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6108 s//\1/
6111 /^X\(\/\/\)[^/].*/{
6112 s//\1/
6115 /^X\(\/\/\)$/{
6116 s//\1/
6119 /^X\(\/\).*/{
6120 s//\1/
6123 s/.*/./; q'`
6124 test -d "$as_dir" && break
6125 done
6126 test -z "$as_dirs" || eval "mkdir $as_dirs"
6127 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6130 } # as_fn_mkdir_p
6131 if mkdir -p . 2>/dev/null; then
6132 as_mkdir_p='mkdir -p "$as_dir"'
6133 else
6134 test -d ./-p && rmdir ./-p
6135 as_mkdir_p=false
6139 # as_fn_executable_p FILE
6140 # -----------------------
6141 # Test if FILE is an executable regular file.
6142 as_fn_executable_p ()
6144 test -f "$1" && test -x "$1"
6145 } # as_fn_executable_p
6146 as_test_x='test -x'
6147 as_executable_p=as_fn_executable_p
6149 # Sed expression to map a string onto a valid CPP name.
6150 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6152 # Sed expression to map a string onto a valid variable name.
6153 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6156 exec 6>&1
6157 ## ----------------------------------- ##
6158 ## Main body of $CONFIG_STATUS script. ##
6159 ## ----------------------------------- ##
6160 _ASEOF
6161 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6164 # Save the log message, to keep $0 and so on meaningful, and to
6165 # report actual input values of CONFIG_FILES etc. instead of their
6166 # values after options handling.
6167 ac_log="
6168 This file was extended by $as_me, which was
6169 generated by GNU Autoconf 2.69. Invocation command line was
6171 CONFIG_FILES = $CONFIG_FILES
6172 CONFIG_HEADERS = $CONFIG_HEADERS
6173 CONFIG_LINKS = $CONFIG_LINKS
6174 CONFIG_COMMANDS = $CONFIG_COMMANDS
6175 $ $0 $@
6177 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6180 _ACEOF
6182 case $ac_config_files in *"
6183 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6184 esac
6186 case $ac_config_headers in *"
6187 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6188 esac
6191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6192 # Files that config.status was made for.
6193 config_files="$ac_config_files"
6194 config_headers="$ac_config_headers"
6196 _ACEOF
6198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6199 ac_cs_usage="\
6200 \`$as_me' instantiates files and other configuration actions
6201 from templates according to the current configuration. Unless the files
6202 and actions are specified as TAGs, all are instantiated by default.
6204 Usage: $0 [OPTION]... [TAG]...
6206 -h, --help print this help, then exit
6207 -V, --version print version number and configuration settings, then exit
6208 --config print configuration, then exit
6209 -q, --quiet, --silent
6210 do not print progress messages
6211 -d, --debug don't remove temporary files
6212 --recheck update $as_me by reconfiguring in the same conditions
6213 --file=FILE[:TEMPLATE]
6214 instantiate the configuration file FILE
6215 --header=FILE[:TEMPLATE]
6216 instantiate the configuration header FILE
6218 Configuration files:
6219 $config_files
6221 Configuration headers:
6222 $config_headers
6224 Report bugs to the package provider."
6226 _ACEOF
6227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6228 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6229 ac_cs_version="\\
6230 config.status
6231 configured by $0, generated by GNU Autoconf 2.69,
6232 with options \\"\$ac_cs_config\\"
6234 Copyright (C) 2012 Free Software Foundation, Inc.
6235 This config.status script is free software; the Free Software Foundation
6236 gives unlimited permission to copy, distribute and modify it."
6238 ac_pwd='$ac_pwd'
6239 srcdir='$srcdir'
6240 test -n "\$AWK" || AWK=awk
6241 _ACEOF
6243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6244 # The default lists apply if the user does not specify any file.
6245 ac_need_defaults=:
6246 while test $# != 0
6248 case $1 in
6249 --*=?*)
6250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6252 ac_shift=:
6254 --*=)
6255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6256 ac_optarg=
6257 ac_shift=:
6260 ac_option=$1
6261 ac_optarg=$2
6262 ac_shift=shift
6264 esac
6266 case $ac_option in
6267 # Handling of the options.
6268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6269 ac_cs_recheck=: ;;
6270 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6271 $as_echo "$ac_cs_version"; exit ;;
6272 --config | --confi | --conf | --con | --co | --c )
6273 $as_echo "$ac_cs_config"; exit ;;
6274 --debug | --debu | --deb | --de | --d | -d )
6275 debug=: ;;
6276 --file | --fil | --fi | --f )
6277 $ac_shift
6278 case $ac_optarg in
6279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6280 '') as_fn_error $? "missing file argument" ;;
6281 esac
6282 as_fn_append CONFIG_FILES " '$ac_optarg'"
6283 ac_need_defaults=false;;
6284 --header | --heade | --head | --hea )
6285 $ac_shift
6286 case $ac_optarg in
6287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6288 esac
6289 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6290 ac_need_defaults=false;;
6291 --he | --h)
6292 # Conflict between --help and --header
6293 as_fn_error $? "ambiguous option: \`$1'
6294 Try \`$0 --help' for more information.";;
6295 --help | --hel | -h )
6296 $as_echo "$ac_cs_usage"; exit ;;
6297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6299 ac_cs_silent=: ;;
6301 # This is an error.
6302 -*) as_fn_error $? "unrecognized option: \`$1'
6303 Try \`$0 --help' for more information." ;;
6305 *) as_fn_append ac_config_targets " $1"
6306 ac_need_defaults=false ;;
6308 esac
6309 shift
6310 done
6312 ac_configure_extra_args=
6314 if $ac_cs_silent; then
6315 exec 6>/dev/null
6316 ac_configure_extra_args="$ac_configure_extra_args --silent"
6319 _ACEOF
6320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6321 if \$ac_cs_recheck; then
6322 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6323 shift
6324 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6325 CONFIG_SHELL='$SHELL'
6326 export CONFIG_SHELL
6327 exec "\$@"
6330 _ACEOF
6331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6332 exec 5>>config.log
6334 echo
6335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6336 ## Running $as_me. ##
6337 _ASBOX
6338 $as_echo "$ac_log"
6339 } >&5
6341 _ACEOF
6342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6343 _ACEOF
6345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6347 # Handling of arguments.
6348 for ac_config_target in $ac_config_targets
6350 case $ac_config_target in
6351 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6352 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6353 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6354 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6356 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6357 esac
6358 done
6361 # If the user did not use the arguments to specify the items to instantiate,
6362 # then the envvar interface is used. Set only those that are not.
6363 # We use the long form for the default assignment because of an extremely
6364 # bizarre bug on SunOS 4.1.3.
6365 if $ac_need_defaults; then
6366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6367 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6370 # Have a temporary directory for convenience. Make it in the build tree
6371 # simply because there is no reason against having it here, and in addition,
6372 # creating and moving files from /tmp can sometimes cause problems.
6373 # Hook for its removal unless debugging.
6374 # Note that there is a small window in which the directory will not be cleaned:
6375 # after its creation but before its name has been assigned to `$tmp'.
6376 $debug ||
6378 tmp= ac_tmp=
6379 trap 'exit_status=$?
6380 : "${ac_tmp:=$tmp}"
6381 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6383 trap 'as_fn_exit 1' 1 2 13 15
6385 # Create a (secure) tmp directory for tmp files.
6388 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6389 test -d "$tmp"
6390 } ||
6392 tmp=./conf$$-$RANDOM
6393 (umask 077 && mkdir "$tmp")
6394 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6395 ac_tmp=$tmp
6397 # Set up the scripts for CONFIG_FILES section.
6398 # No need to generate them if there are no CONFIG_FILES.
6399 # This happens for instance with `./config.status config.h'.
6400 if test -n "$CONFIG_FILES"; then
6403 ac_cr=`echo X | tr X '\015'`
6404 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6405 # But we know of no other shell where ac_cr would be empty at this
6406 # point, so we can use a bashism as a fallback.
6407 if test "x$ac_cr" = x; then
6408 eval ac_cr=\$\'\\r\'
6410 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6411 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6412 ac_cs_awk_cr='\\r'
6413 else
6414 ac_cs_awk_cr=$ac_cr
6417 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6418 _ACEOF
6422 echo "cat >conf$$subs.awk <<_ACEOF" &&
6423 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6424 echo "_ACEOF"
6425 } >conf$$subs.sh ||
6426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6427 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6428 ac_delim='%!_!# '
6429 for ac_last_try in false false false false false :; do
6430 . ./conf$$subs.sh ||
6431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6433 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6434 if test $ac_delim_n = $ac_delim_num; then
6435 break
6436 elif $ac_last_try; then
6437 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6438 else
6439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6441 done
6442 rm -f conf$$subs.sh
6444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6445 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6446 _ACEOF
6447 sed -n '
6449 s/^/S["/; s/!.*/"]=/
6452 s/^[^!]*!//
6453 :repl
6454 t repl
6455 s/'"$ac_delim"'$//
6456 t delim
6459 s/\(.\{148\}\)..*/\1/
6460 t more1
6461 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6464 b repl
6465 :more1
6466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6469 s/.\{148\}//
6470 t nl
6471 :delim
6473 s/\(.\{148\}\)..*/\1/
6474 t more2
6475 s/["\\]/\\&/g; s/^/"/; s/$/"/
6478 :more2
6479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6482 s/.\{148\}//
6483 t delim
6484 ' <conf$$subs.awk | sed '
6485 /^[^""]/{
6487 s/\n//
6489 ' >>$CONFIG_STATUS || ac_write_fail=1
6490 rm -f conf$$subs.awk
6491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6492 _ACAWK
6493 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6494 for (key in S) S_is_set[key] = 1
6495 FS = "\a"
6499 line = $ 0
6500 nfields = split(line, field, "@")
6501 substed = 0
6502 len = length(field[1])
6503 for (i = 2; i < nfields; i++) {
6504 key = field[i]
6505 keylen = length(key)
6506 if (S_is_set[key]) {
6507 value = S[key]
6508 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6509 len += length(value) + length(field[++i])
6510 substed = 1
6511 } else
6512 len += 1 + keylen
6515 print line
6518 _ACAWK
6519 _ACEOF
6520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6521 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6522 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6523 else
6525 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6526 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6527 _ACEOF
6529 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6530 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6531 # trailing colons and then remove the whole line if VPATH becomes empty
6532 # (actually we leave an empty line to preserve line numbers).
6533 if test "x$srcdir" = x.; then
6534 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6536 s///
6537 s/^/:/
6538 s/[ ]*$/:/
6539 s/:\$(srcdir):/:/g
6540 s/:\${srcdir}:/:/g
6541 s/:@srcdir@:/:/g
6542 s/^:*//
6543 s/:*$//
6545 s/\(=[ ]*\).*/\1/
6547 s/\n//
6548 s/^[^=]*=[ ]*$//
6552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6553 fi # test -n "$CONFIG_FILES"
6555 # Set up the scripts for CONFIG_HEADERS section.
6556 # No need to generate them if there are no CONFIG_HEADERS.
6557 # This happens for instance with `./config.status Makefile'.
6558 if test -n "$CONFIG_HEADERS"; then
6559 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6560 BEGIN {
6561 _ACEOF
6563 # Transform confdefs.h into an awk script `defines.awk', embedded as
6564 # here-document in config.status, that substitutes the proper values into
6565 # config.h.in to produce config.h.
6567 # Create a delimiter string that does not exist in confdefs.h, to ease
6568 # handling of long lines.
6569 ac_delim='%!_!# '
6570 for ac_last_try in false false :; do
6571 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6572 if test -z "$ac_tt"; then
6573 break
6574 elif $ac_last_try; then
6575 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6576 else
6577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6579 done
6581 # For the awk script, D is an array of macro values keyed by name,
6582 # likewise P contains macro parameters if any. Preserve backslash
6583 # newline sequences.
6585 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6586 sed -n '
6587 s/.\{148\}/&'"$ac_delim"'/g
6588 t rset
6589 :rset
6590 s/^[ ]*#[ ]*define[ ][ ]*/ /
6591 t def
6593 :def
6594 s/\\$//
6595 t bsnl
6596 s/["\\]/\\&/g
6597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6598 D["\1"]=" \3"/p
6599 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6601 :bsnl
6602 s/["\\]/\\&/g
6603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6604 D["\1"]=" \3\\\\\\n"\\/p
6605 t cont
6606 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6607 t cont
6609 :cont
6611 s/.\{148\}/&'"$ac_delim"'/g
6612 t clear
6613 :clear
6614 s/\\$//
6615 t bsnlc
6616 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6618 :bsnlc
6619 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6620 b cont
6621 ' <confdefs.h | sed '
6622 s/'"$ac_delim"'/"\\\
6623 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6626 for (key in D) D_is_set[key] = 1
6627 FS = "\a"
6629 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6630 line = \$ 0
6631 split(line, arg, " ")
6632 if (arg[1] == "#") {
6633 defundef = arg[2]
6634 mac1 = arg[3]
6635 } else {
6636 defundef = substr(arg[1], 2)
6637 mac1 = arg[2]
6639 split(mac1, mac2, "(") #)
6640 macro = mac2[1]
6641 prefix = substr(line, 1, index(line, defundef) - 1)
6642 if (D_is_set[macro]) {
6643 # Preserve the white space surrounding the "#".
6644 print prefix "define", macro P[macro] D[macro]
6645 next
6646 } else {
6647 # Replace #undef with comments. This is necessary, for example,
6648 # in the case of _POSIX_SOURCE, which is predefined and required
6649 # on some systems where configure will not decide to define it.
6650 if (defundef == "undef") {
6651 print "/*", prefix defundef, macro, "*/"
6652 next
6656 { print }
6657 _ACAWK
6658 _ACEOF
6659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6660 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6661 fi # test -n "$CONFIG_HEADERS"
6664 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6665 shift
6666 for ac_tag
6668 case $ac_tag in
6669 :[FHLC]) ac_mode=$ac_tag; continue;;
6670 esac
6671 case $ac_mode$ac_tag in
6672 :[FHL]*:*);;
6673 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6674 :[FH]-) ac_tag=-:-;;
6675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6676 esac
6677 ac_save_IFS=$IFS
6678 IFS=:
6679 set x $ac_tag
6680 IFS=$ac_save_IFS
6681 shift
6682 ac_file=$1
6683 shift
6685 case $ac_mode in
6686 :L) ac_source=$1;;
6687 :[FH])
6688 ac_file_inputs=
6689 for ac_f
6691 case $ac_f in
6692 -) ac_f="$ac_tmp/stdin";;
6693 *) # Look for the file first in the build tree, then in the source tree
6694 # (if the path is not absolute). The absolute path cannot be DOS-style,
6695 # because $ac_f cannot contain `:'.
6696 test -f "$ac_f" ||
6697 case $ac_f in
6698 [\\/$]*) false;;
6699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6700 esac ||
6701 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6702 esac
6703 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6704 as_fn_append ac_file_inputs " '$ac_f'"
6705 done
6707 # Let's still pretend it is `configure' which instantiates (i.e., don't
6708 # use $as_me), people would be surprised to read:
6709 # /* config.h. Generated by config.status. */
6710 configure_input='Generated from '`
6711 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6712 `' by configure.'
6713 if test x"$ac_file" != x-; then
6714 configure_input="$ac_file. $configure_input"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6716 $as_echo "$as_me: creating $ac_file" >&6;}
6718 # Neutralize special characters interpreted by sed in replacement strings.
6719 case $configure_input in #(
6720 *\&* | *\|* | *\\* )
6721 ac_sed_conf_input=`$as_echo "$configure_input" |
6722 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6723 *) ac_sed_conf_input=$configure_input;;
6724 esac
6726 case $ac_tag in
6727 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6729 esac
6731 esac
6733 ac_dir=`$as_dirname -- "$ac_file" ||
6734 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6735 X"$ac_file" : 'X\(//\)[^/]' \| \
6736 X"$ac_file" : 'X\(//\)$' \| \
6737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6738 $as_echo X"$ac_file" |
6739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6740 s//\1/
6743 /^X\(\/\/\)[^/].*/{
6744 s//\1/
6747 /^X\(\/\/\)$/{
6748 s//\1/
6751 /^X\(\/\).*/{
6752 s//\1/
6755 s/.*/./; q'`
6756 as_dir="$ac_dir"; as_fn_mkdir_p
6757 ac_builddir=.
6759 case "$ac_dir" in
6760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6763 # A ".." for each directory in $ac_dir_suffix.
6764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6765 case $ac_top_builddir_sub in
6766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6768 esac ;;
6769 esac
6770 ac_abs_top_builddir=$ac_pwd
6771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6772 # for backward compatibility:
6773 ac_top_builddir=$ac_top_build_prefix
6775 case $srcdir in
6776 .) # We are building in place.
6777 ac_srcdir=.
6778 ac_top_srcdir=$ac_top_builddir_sub
6779 ac_abs_top_srcdir=$ac_pwd ;;
6780 [\\/]* | ?:[\\/]* ) # Absolute name.
6781 ac_srcdir=$srcdir$ac_dir_suffix;
6782 ac_top_srcdir=$srcdir
6783 ac_abs_top_srcdir=$srcdir ;;
6784 *) # Relative name.
6785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6786 ac_top_srcdir=$ac_top_build_prefix$srcdir
6787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6788 esac
6789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6792 case $ac_mode in
6795 # CONFIG_FILE
6798 _ACEOF
6800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6801 # If the template does not know about datarootdir, expand it.
6802 # FIXME: This hack should be removed a few years after 2.60.
6803 ac_datarootdir_hack=; ac_datarootdir_seen=
6804 ac_sed_dataroot='
6805 /datarootdir/ {
6809 /@datadir@/p
6810 /@docdir@/p
6811 /@infodir@/p
6812 /@localedir@/p
6813 /@mandir@/p'
6814 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6815 *datarootdir*) ac_datarootdir_seen=yes;;
6816 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6818 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6819 _ACEOF
6820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6821 ac_datarootdir_hack='
6822 s&@datadir@&$datadir&g
6823 s&@docdir@&$docdir&g
6824 s&@infodir@&$infodir&g
6825 s&@localedir@&$localedir&g
6826 s&@mandir@&$mandir&g
6827 s&\\\${datarootdir}&$datarootdir&g' ;;
6828 esac
6829 _ACEOF
6831 # Neutralize VPATH when `$srcdir' = `.'.
6832 # Shell code in configure.ac might set extrasub.
6833 # FIXME: do we really want to maintain this feature?
6834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6835 ac_sed_extra="$ac_vpsub
6836 $extrasub
6837 _ACEOF
6838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6841 s|@configure_input@|$ac_sed_conf_input|;t t
6842 s&@top_builddir@&$ac_top_builddir_sub&;t t
6843 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6844 s&@srcdir@&$ac_srcdir&;t t
6845 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6846 s&@top_srcdir@&$ac_top_srcdir&;t t
6847 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6848 s&@builddir@&$ac_builddir&;t t
6849 s&@abs_builddir@&$ac_abs_builddir&;t t
6850 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6851 $ac_datarootdir_hack
6853 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6854 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6857 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6859 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6861 which seems to be undefined. Please make sure it is defined" >&5
6862 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6863 which seems to be undefined. Please make sure it is defined" >&2;}
6865 rm -f "$ac_tmp/stdin"
6866 case $ac_file in
6867 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6868 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6869 esac \
6870 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6874 # CONFIG_HEADER
6876 if test x"$ac_file" != x-; then
6878 $as_echo "/* $configure_input */" \
6879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6880 } >"$ac_tmp/config.h" \
6881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6882 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6884 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6885 else
6886 rm -f "$ac_file"
6887 mv "$ac_tmp/config.h" "$ac_file" \
6888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6890 else
6891 $as_echo "/* $configure_input */" \
6892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6893 || as_fn_error $? "could not create -" "$LINENO" 5
6898 esac
6900 done # for ac_tag
6903 as_fn_exit 0
6904 _ACEOF
6905 ac_clean_files=$ac_clean_files_save
6907 test $ac_write_fail = 0 ||
6908 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6911 # configure is writing to config.log, and then calls config.status.
6912 # config.status does its own redirection, appending to config.log.
6913 # Unfortunately, on DOS this fails, as config.log is still kept open
6914 # by configure, so config.status won't be able to write to it; its
6915 # output is simply discarded. So we exec the FD to /dev/null,
6916 # effectively closing config.log, so it can be properly (re)opened and
6917 # appended to by config.status. When coming back to configure, we
6918 # need to make the FD available again.
6919 if test "$no_create" != yes; then
6920 ac_cs_success=:
6921 ac_config_status_args=
6922 test "$silent" = yes &&
6923 ac_config_status_args="$ac_config_status_args --quiet"
6924 exec 5>/dev/null
6925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6926 exec 5>>config.log
6927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6928 # would make configure fail if this is the last instruction.
6929 $ac_cs_success || as_fn_exit 1
6931 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6933 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6937 for ac_prog in git
6939 # Extract the first word of "$ac_prog", so it can be a program name with args.
6940 set dummy $ac_prog; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_GIT+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$GIT"; then
6947 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_GIT="$ac_prog"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6966 GIT=$ac_cv_prog_GIT
6967 if test -n "$GIT"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6969 $as_echo "$GIT" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6976 test -n "$GIT" && break
6977 done
6981 for ac_prog in python
6983 # Extract the first word of "$ac_prog", so it can be a program name with args.
6984 set dummy $ac_prog; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_prog_PYTHON+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -n "$PYTHON"; then
6991 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_PYTHON="$ac_prog"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7004 done
7005 done
7006 IFS=$as_save_IFS
7010 PYTHON=$ac_cv_prog_PYTHON
7011 if test -n "$PYTHON"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7013 $as_echo "$PYTHON" >&6; }
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7020 test -n "$PYTHON" && break
7021 done
7022 test -n "$PYTHON" || PYTHON="python2.7"
7026 for ac_prog in python3
7028 # Extract the first word of "$ac_prog", so it can be a program name with args.
7029 set dummy $ac_prog; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_PYTHON3+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$PYTHON3"; then
7036 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_PYTHON3="$ac_prog"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7049 done
7050 done
7051 IFS=$as_save_IFS
7055 PYTHON3=$ac_cv_prog_PYTHON3
7056 if test -n "$PYTHON3"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7058 $as_echo "$PYTHON3" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7065 test -n "$PYTHON3" && break
7066 done
7067 test -n "$PYTHON3" || PYTHON3="python3.4"
7071 enable_python2=false
7072 if test "x$do_python" != "xno"; then :
7074 enable_python2=true
7075 if test -z "$PYTHON"
7076 then
7077 enable_python2=false
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7080 $as_echo_n "checking Python version... " >&6; }
7081 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 }'`
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7083 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7084 if test "$PY_MAJOR" -lt 2; then
7085 echo WARNING: Python version 2.6 or later does not seem to be installed.
7086 enable_python2=false
7087 else
7088 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7089 echo WARNING: Python version 2.$PY_MINOR is too old.
7090 echo Python version 2.6 or later is required for Python builds.
7091 enable_python2=false
7092 else
7093 for ac_header in python${PY_MAJOR}.${PY_MINOR}/Python.h
7094 do :
7095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7096 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7098 cat >>confdefs.h <<_ACEOF
7099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7100 _ACEOF
7102 else
7104 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7105 echo Cannot proceed with the Python $PY_MAJOR installation found.
7106 enable_python2=false
7110 done
7116 if test "$do_python" != "check" -a "$enable_python2" != "true"
7117 then
7118 as_fn_error $? "cannot enable Python - no supported version found" "$LINENO" 5
7124 enable_python3=false
7125 if test "x$do_python3" != "xno"; then :
7127 enable_python3=true
7128 if test -z "$PYTHON3"
7129 then
7130 enable_python3=false
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7133 $as_echo_n "checking Python3 version... " >&6; }
7134 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 }'`
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7136 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7137 if test "$PY_MAJOR" -lt 3; then
7138 echo WARNING: Python version 3.3 or later does not seem to be installed.
7139 enable_python3=false
7140 else
7141 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7142 echo WARNING: Python version 3.$PY_MINOR is too old.
7143 echo Python version 3.3 or later is required for Python builds.
7144 enable_python3=false
7145 else
7146 for ac_header in python${PY_MAJOR}.${PY_MINOR}m/Python.h
7147 do :
7148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7149 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7150 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7151 cat >>confdefs.h <<_ACEOF
7152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7153 _ACEOF
7155 else
7157 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7158 echo Cannot proceed with the Python $PY_MAJOR installation found.
7159 enable_python3=false
7163 done
7169 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7170 then
7171 as_fn_error $? "cannot enable Python3 - no supported version found" "$LINENO" 5
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7178 $as_echo_n "checking for any python version... " >&6; }
7179 if test "$cross_compiling" = "yes"; then
7180 ans=$have_python
7181 echo "cross-compile -> \"$ans\"" >&5
7182 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7183 then
7184 have_python=true
7185 else
7186 have_python=false
7189 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7190 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }; fi
7193 if test "$enable_python3" = "true"
7194 then
7195 pcp_python_prog=$PYTHON3
7196 elif test "$enable_python2" = "true"
7197 then
7198 pcp_python_prog=$PYTHON
7199 else
7200 pcp_python_prog=""
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7206 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7207 if test -n ""
7208 then
7209 txt=""
7210 else
7211 txt="import jsonpointer"
7213 $pcp_python_prog -c 'import sys;
7214 '"$txt" >>config.log 2>&1
7215 if test "$?" = 0
7216 then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7218 $as_echo "yes" >&6; }
7219 eval have_python_jsonpointer=true
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 eval have_python_jsonpointer=false
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module requests" >&5
7228 $as_echo_n "checking for Python module requests... " >&6; }
7229 if test -n ""
7230 then
7231 txt=""
7232 else
7233 txt="import requests"
7235 $pcp_python_prog -c 'import sys;
7236 '"$txt" >>config.log 2>&1
7237 if test "$?" = 0
7238 then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7240 $as_echo "yes" >&6; }
7241 eval have_python_requests=true
7242 else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7245 eval have_python_requests=false
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7250 $as_echo_n "checking for Python module six... " >&6; }
7251 if test -n ""
7252 then
7253 txt=""
7254 else
7255 txt="import six"
7257 $pcp_python_prog -c 'import sys;
7258 '"$txt" >>config.log 2>&1
7259 if test "$?" = 0
7260 then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7262 $as_echo "yes" >&6; }
7263 eval have_python_six=true
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7267 eval have_python_six=false
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7273 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7274 pmda_json=false
7275 if test "x$do_pmdajson" = "xyes"; then :
7276 pmda_json=true
7278 if test "x$do_pmdajson" = "xcheck"; then :
7280 $have_python_jsonpointer && $have_python_six && pmda_json=true
7283 PMDA_JSON=$pmda_json
7285 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7286 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }; fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module libvirt" >&5
7290 $as_echo_n "checking for Python module libvirt... " >&6; }
7291 if test -n ""
7292 then
7293 txt=""
7294 else
7295 txt="import libvirt"
7297 $pcp_python_prog -c 'import sys;
7298 '"$txt" >>config.log 2>&1
7299 if test "$?" = 0
7300 then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7302 $as_echo "yes" >&6; }
7303 eval have_python_libvirt=true
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 eval have_python_libvirt=false
7312 for ac_prog in perl
7314 # Extract the first word of "$ac_prog", so it can be a program name with args.
7315 set dummy $ac_prog; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_PERL+:} false; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 if test -n "$PERL"; then
7322 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7323 else
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_PERL="$ac_prog"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7335 done
7336 done
7337 IFS=$as_save_IFS
7341 PERL=$ac_cv_prog_PERL
7342 if test -n "$PERL"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7344 $as_echo "$PERL" >&6; }
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7351 test -n "$PERL" && break
7352 done
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7357 $as_echo_n "checking for any perl version... " >&6; }
7358 if test "$cross_compiling" = "yes"; then
7359 ans=$have_perl
7360 echo "cross-compile -> \"$ans\"" >&5
7361 elif test -n "$PERL"
7362 then
7363 pcp_perl_prog=$PERL
7364 have_perl=true
7365 else
7366 pcp_perl_prog=""
7367 have_perl=false
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7372 $as_echo "$pcp_perl_prog" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7375 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7376 pmda_snmp=false
7377 if test "x$do_pmdasnmp" = "xyes"; then :
7378 pmda_snmp=true
7380 if test "x$do_pmdasnmp" = "xcheck"; then :
7382 if test "$have_perl" = true
7383 then
7384 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7385 then
7386 pmda_snmp=true
7391 PMDA_SNMP=$pmda_snmp
7393 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7394 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }; fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7398 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7399 pmda_mysql=false
7400 if test "$have_perl" = true
7401 then
7402 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7403 then
7404 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7405 then
7406 pmda_mysql=true
7410 PMDA_MYSQL=$pmda_mysql
7412 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7413 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }; fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7417 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7418 pmda_postgresql=false
7419 if test "$have_perl" = true
7420 then
7421 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7422 then
7423 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7424 then
7425 pmda_postgresql=true
7429 PMDA_POSTGRESQL=$pmda_postgresql
7431 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7432 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }; fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7436 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7437 pmda_oracle=false
7438 if test "$have_perl" = true
7439 then
7440 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7441 then
7442 pmda_oracle=true
7445 PMDA_ORACLE=$pmda_oracle
7447 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7448 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }; fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7452 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7453 pmda_elasticsearch=false
7454 if test "$have_perl" = true
7455 then
7456 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7457 then
7458 pmda_elasticsearch=true
7461 PMDA_ELASTICSEARCH=$pmda_elasticsearch
7463 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7464 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }; fi
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7468 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7469 pmda_nginx=false
7470 if test "$have_perl" = true
7471 then
7472 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7473 then
7474 pmda_nginx=true
7477 PMDA_NGINX=$pmda_nginx
7479 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7480 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }; fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7484 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7485 pmda_activemq=false
7486 if test "$have_perl" = true
7487 then
7488 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7489 then
7490 pmda_activemq=true
7493 PMDA_ACTIVEMQ=$pmda_activemq
7495 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7496 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }; fi
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the libvirt PMDA should be included" >&5
7500 $as_echo_n "checking if the libvirt PMDA should be included... " >&6; }
7501 pmda_libvirt=false
7502 if test "$have_python" = true
7503 then
7504 if $pcp_python_prog -c "import libvirt" >/dev/null 2>&1
7505 then
7506 if $pcp_python_prog -c "import lxml" >/dev/null 2>&1
7507 then
7508 pmda_libvirt=true
7512 PMDA_LIBVIRT=$pmda_libvirt
7514 if $pmda_libvirt; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7515 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }; fi
7518 qmake=$QMAKE
7519 enable_qt=false
7520 qt_release=release
7521 if test "x$do_qt" != "xno"; then :
7523 enable_qt=true
7525 if test -z "$QMAKE"
7526 then
7527 for ac_prog in qmake-qt5 qmake-qt4 qmake
7529 # Extract the first word of "$ac_prog", so it can be a program name with args.
7530 set dummy $ac_prog; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_path_QMAKE+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 case $QMAKE in
7537 [\\/]* | ?:[\\/]*)
7538 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 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"
7543 for as_dir in $as_dummy
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7553 done
7554 done
7555 IFS=$as_save_IFS
7558 esac
7560 QMAKE=$ac_cv_path_QMAKE
7561 if test -n "$QMAKE"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7563 $as_echo "$QMAKE" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7570 test -n "$QMAKE" && break
7571 done
7573 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7575 qmake=$QMAKE
7576 if test -z "$QMAKE"
7577 then
7578 enable_qt=false
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7581 $as_echo_n "checking Qt version... " >&6; }
7582 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 }'`
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7584 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7585 if test "$QT_MAJOR" -lt 4; then
7586 echo WARNING: Qt version 4.4 or later does not seem to be installed.
7587 echo Cannot proceed with the Qt $QT_MAJOR installation found.
7588 enable_qt=false
7590 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7591 echo WARNING: Qt version 4.$QT_MINOR is too old.
7592 echo Qt version 4.4 or later is required for Qt builds.
7593 enable_qt=false
7597 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7598 then
7599 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7600 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7601 then
7602 enable_qt=false
7603 test "$do_qt" != "check" && \
7604 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7605 elif test "$do_qt" = "debug"
7606 then
7607 qt_release=debug
7608 enable_qt=true
7616 if test -z "$MAKE"
7617 then
7618 # Extract the first word of "gmake", so it can be a program name with args.
7619 set dummy gmake; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if ${ac_cv_path_MAKE+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 case $MAKE in
7626 [\\/]* | ?:[\\/]*)
7627 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7641 done
7642 done
7643 IFS=$as_save_IFS
7646 esac
7648 MAKE=$ac_cv_path_MAKE
7649 if test -n "$MAKE"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7651 $as_echo "$MAKE" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7658 if test -z "$MAKE"
7659 then
7660 # look elsewhere ...
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7662 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7663 for f in /usr/local/bin/gmake /usr/freeware/bin/gmake /usr/local/bin/make /opt/sfw/bin/gmake nowhere
7665 if test -x $f
7666 then
7667 MAKE=$f
7668 break
7670 done
7671 if test $f = nowhere
7672 then
7673 # Check if /usr/bin/make is any good
7674 mver=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7675 if test "$mver" != "GNU Make"
7676 then
7677 echo
7678 echo "FATAL ERROR: could not find GNU make anywhere"
7679 echo "You need to set \$MAKE as the full path to GNU make "
7680 echo "in the environment."
7681 rm -rf conftest conftest.*
7682 exit 1
7683 else
7684 MAKE=/usr/bin/make
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7688 $as_echo "$MAKE" >&6; }
7691 make=$MAKE
7694 if test -z "$CPP"; then
7695 ac_ext=c
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7701 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7702 # On Suns, sometimes $CPP names a directory.
7703 if test -n "$CPP" && test -d "$CPP"; then
7704 CPP=
7706 if test -z "$CPP"; then
7707 if ${ac_cv_prog_CPP+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 # Double quotes because CPP needs to be expanded
7711 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7713 ac_preproc_ok=false
7714 for ac_c_preproc_warn_flag in '' yes
7716 # Use a header file that comes with gcc, so configuring glibc
7717 # with a fresh cross-compiler works.
7718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7719 # <limits.h> exists even on freestanding compilers.
7720 # On the NeXT, cc -E runs the code through the compiler's parser,
7721 # not just through cpp. "Syntax error" is here to catch this case.
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 #ifdef __STDC__
7725 # include <limits.h>
7726 #else
7727 # include <assert.h>
7728 #endif
7729 Syntax error
7730 _ACEOF
7731 if ac_fn_c_try_cpp "$LINENO"; then :
7733 else
7734 # Broken: fails on valid input.
7735 continue
7737 rm -f conftest.err conftest.i conftest.$ac_ext
7739 # OK, works on sane cases. Now check whether nonexistent headers
7740 # can be detected and how.
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 #include <ac_nonexistent.h>
7744 _ACEOF
7745 if ac_fn_c_try_cpp "$LINENO"; then :
7746 # Broken: success on invalid input.
7747 continue
7748 else
7749 # Passes both tests.
7750 ac_preproc_ok=:
7751 break
7753 rm -f conftest.err conftest.i conftest.$ac_ext
7755 done
7756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7757 rm -f conftest.i conftest.err conftest.$ac_ext
7758 if $ac_preproc_ok; then :
7759 break
7762 done
7763 ac_cv_prog_CPP=$CPP
7766 CPP=$ac_cv_prog_CPP
7767 else
7768 ac_cv_prog_CPP=$CPP
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7771 $as_echo "$CPP" >&6; }
7772 ac_preproc_ok=false
7773 for ac_c_preproc_warn_flag in '' yes
7775 # Use a header file that comes with gcc, so configuring glibc
7776 # with a fresh cross-compiler works.
7777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7778 # <limits.h> exists even on freestanding compilers.
7779 # On the NeXT, cc -E runs the code through the compiler's parser,
7780 # not just through cpp. "Syntax error" is here to catch this case.
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 #ifdef __STDC__
7784 # include <limits.h>
7785 #else
7786 # include <assert.h>
7787 #endif
7788 Syntax error
7789 _ACEOF
7790 if ac_fn_c_try_cpp "$LINENO"; then :
7792 else
7793 # Broken: fails on valid input.
7794 continue
7796 rm -f conftest.err conftest.i conftest.$ac_ext
7798 # OK, works on sane cases. Now check whether nonexistent headers
7799 # can be detected and how.
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 #include <ac_nonexistent.h>
7803 _ACEOF
7804 if ac_fn_c_try_cpp "$LINENO"; then :
7805 # Broken: success on invalid input.
7806 continue
7807 else
7808 # Passes both tests.
7809 ac_preproc_ok=:
7810 break
7812 rm -f conftest.err conftest.i conftest.$ac_ext
7814 done
7815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7816 rm -f conftest.i conftest.err conftest.$ac_ext
7817 if $ac_preproc_ok; then :
7819 else
7820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7822 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7823 See \`config.log' for more details" "$LINENO" 5; }
7826 ac_ext=c
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833 cpp=$CPP
7836 if test -z "$LD"; then
7837 # Extract the first word of "ld", so it can be a program name with args.
7838 set dummy ld; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_path_LD+:} false; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 case $LD in
7845 [\\/]* | ?:[\\/]*)
7846 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7860 done
7861 done
7862 IFS=$as_save_IFS
7864 test -z "$ac_cv_path_LD" && ac_cv_path_LD="/usr/bin/ld"
7866 esac
7868 LD=$ac_cv_path_LD
7869 if test -n "$LD"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7871 $as_echo "$LD" >&6; }
7872 else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7879 ld=$LD
7882 if test -z "$PCP_USER_INSTALL" ; then
7883 pcp_user_install=root
7884 else
7885 pcp_user_install="$PCP_USER_INSTALL"
7888 if test -z "$PCP_GROUP_INSTALL" ; then
7889 case "$target_os"
7891 darwin|freebsd|netbsd|openbsd)
7892 pcp_group_install=wheel
7895 pcp_group_install=root
7897 esac
7898 else
7899 pcp_group_install="$PCP_GROUP_INSTALL"
7903 if test -z "$TAR"; then
7904 for ac_prog in gtar tar
7906 # Extract the first word of "$ac_prog", so it can be a program name with args.
7907 set dummy $ac_prog; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_path_TAR+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 case $TAR in
7914 [\\/]* | ?:[\\/]*)
7915 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7929 done
7930 done
7931 IFS=$as_save_IFS
7934 esac
7936 TAR=$ac_cv_path_TAR
7937 if test -n "$TAR"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7939 $as_echo "$TAR" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7946 test -n "$TAR" && break
7947 done
7948 test -n "$TAR" || TAR="tar"
7951 if test $target_os = darwin -a -x /usr/bin/gnutar
7952 then
7953 TAR=/usr/bin/gnutar
7955 tar=$TAR
7958 if test -z "$ZIP"; then
7959 # Extract the first word of "gzip", so it can be a program name with args.
7960 set dummy gzip; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if ${ac_cv_path_ZIP+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 case $ZIP in
7967 [\\/]* | ?:[\\/]*)
7968 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7986 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
7988 esac
7990 ZIP=$ac_cv_path_ZIP
7991 if test -n "$ZIP"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7993 $as_echo "$ZIP" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
8001 test ! -x "$ZIP" && ZIP=/usr/local/bin/gzip
8002 test ! -x "$ZIP" && ZIP=/usr/freeware/bin/gzip
8003 test ! -x "$ZIP" && ZIP=/usr/bin/gzip
8004 gzip=$ZIP
8005 test -z "$gzip" && gzip=no-gzip
8008 if test -z "$BZIP2"; then
8009 # Extract the first word of "bzip2", so it can be a program name with args.
8010 set dummy bzip2; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_path_BZIP2+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 case $BZIP2 in
8017 [\\/]* | ?:[\\/]*)
8018 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8032 done
8033 done
8034 IFS=$as_save_IFS
8036 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
8038 esac
8040 BZIP2=$ac_cv_path_BZIP2
8041 if test -n "$BZIP2"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
8043 $as_echo "$BZIP2" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8051 test ! -x "$BZIP2" && BZIP2=/usr/bin/bzip2
8052 test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2
8053 test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2
8054 bzip2=$BZIP2
8055 test -z "$bzip2" && bzip2=no-bzip2
8058 if test -z "$LZMA"; then
8059 # Extract the first word of "lzma", so it can be a program name with args.
8060 set dummy lzma; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_path_LZMA+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 case $LZMA in
8067 [\\/]* | ?:[\\/]*)
8068 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8074 IFS=$as_save_IFS
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8078 ac_cv_path_LZMA="$as_dir/$ac_word$ac_exec_ext"
8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8080 break 2
8082 done
8083 done
8084 IFS=$as_save_IFS
8086 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
8088 esac
8090 LZMA=$ac_cv_path_LZMA
8091 if test -n "$LZMA"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8093 $as_echo "$LZMA" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8101 test ! -x "$LZMA" && LZMA=/usr/bin/lzma
8102 test ! -x "$LZMA" && LZMA=/usr/local/bin/lzma
8103 test ! -x "$LZMA" && LZMA=/usr/freeware/bin/lzma
8104 lzma=$LZMA
8105 test -z "$lzma" && lzma=no-lzma
8108 if test -z "$XZ"; then
8109 # Extract the first word of "xz", so it can be a program name with args.
8110 set dummy xz; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_path_XZ+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 case $XZ in
8117 [\\/]* | ?:[\\/]*)
8118 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8132 done
8133 done
8134 IFS=$as_save_IFS
8136 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
8138 esac
8140 XZ=$ac_cv_path_XZ
8141 if test -n "$XZ"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8143 $as_echo "$XZ" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8151 test ! -x "$XZ" && XZ=/usr/bin/xz
8152 test ! -x "$XZ" && XZ=/usr/local/bin/xz
8153 test ! -x "$XZ" && XZ=/usr/freeware/bin/xz
8154 xz=$XZ
8155 test -z "$xz" && xz=no-xz
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8159 $as_echo_n "checking for PackageMaker... " >&6; }
8160 if test -z "$PACKAGE_MAKER"
8161 then
8162 if test $target_os = darwin
8163 then
8164 if test -x /Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8165 then # local XCode extras install
8166 package_maker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8168 $as_echo " yes (local install)" >&6; }
8169 elif test -x /Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8170 then # Darwin 6.x
8171 package_maker=/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8173 $as_echo " yes (darwin 6.x)" >&6; }
8174 elif test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8175 then # Darwin 7.x
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8177 $as_echo " yes (darwin 7.x)" >&6; }
8178 package_maker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8179 else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8181 $as_echo " not found!" >&6; }
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8183 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo " no" >&6; }
8189 else
8190 package_maker="$PACKAGE_MAKER"
8194 if test -z "$HDIUTIL"; then
8195 # Extract the first word of "hdiutil", so it can be a program name with args.
8196 set dummy hdiutil; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_path_HDIUTIL+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 case $HDIUTIL in
8203 [\\/]* | ?:[\\/]*)
8204 ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8214 ac_cv_path_HDIUTIL="$as_dir/$ac_word$ac_exec_ext"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8218 done
8219 done
8220 IFS=$as_save_IFS
8223 esac
8225 HDIUTIL=$ac_cv_path_HDIUTIL
8226 if test -n "$HDIUTIL"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8228 $as_echo "$HDIUTIL" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8236 hdiutil=$HDIUTIL
8239 if test -z "$MKINSTALLP"; then
8240 # Extract the first word of "mkinstallp", so it can be a program name with args.
8241 set dummy mkinstallp; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if ${ac_cv_path_MKINSTALLP+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 case $MKINSTALLP in
8248 [\\/]* | ?:[\\/]*)
8249 ac_cv_path_MKINSTALLP="$MKINSTALLP" # Let the user override the test with a path.
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $PATH
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8259 ac_cv_path_MKINSTALLP="$as_dir/$ac_word$ac_exec_ext"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 break 2
8263 done
8264 done
8265 IFS=$as_save_IFS
8268 esac
8270 MKINSTALLP=$ac_cv_path_MKINSTALLP
8271 if test -n "$MKINSTALLP"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8273 $as_echo "$MKINSTALLP" >&6; }
8274 else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8281 mkinstallp=$MKINSTALLP
8284 if test -z "$PKGMK"; then
8285 # Extract the first word of "pkgmk", so it can be a program name with args.
8286 set dummy pkgmk; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_path_PKGMK+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 case $PKGMK in
8293 [\\/]* | ?:[\\/]*)
8294 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304 ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8308 done
8309 done
8310 IFS=$as_save_IFS
8313 esac
8315 PKGMK=$ac_cv_path_PKGMK
8316 if test -n "$PKGMK"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8318 $as_echo "$PKGMK" >&6; }
8319 else
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8326 pkgmk=$PKGMK
8329 if test -z "$DLLTOOL"; then
8330 # Extract the first word of "dlltool", so it can be a program name with args.
8331 set dummy dlltool; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if ${ac_cv_path_DLLTOOL+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 case $DLLTOOL in
8338 [\\/]* | ?:[\\/]*)
8339 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349 ac_cv_path_DLLTOOL="$as_dir/$ac_word$ac_exec_ext"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8353 done
8354 done
8355 IFS=$as_save_IFS
8358 esac
8360 DLLTOOL=$ac_cv_path_DLLTOOL
8361 if test -n "$DLLTOOL"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8363 $as_echo "$DLLTOOL" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8371 dlltool=$DLLTOOL
8374 if test -z "$RPMBUILD"; then
8375 # Extract the first word of "rpmbuild", so it can be a program name with args.
8376 set dummy rpmbuild; ac_word=$2
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378 $as_echo_n "checking for $ac_word... " >&6; }
8379 if ${ac_cv_path_RPMBUILD+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 case $RPMBUILD in
8383 [\\/]* | ?:[\\/]*)
8384 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8398 done
8399 done
8400 IFS=$as_save_IFS
8403 esac
8405 RPMBUILD=$ac_cv_path_RPMBUILD
8406 if test -n "$RPMBUILD"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8408 $as_echo "$RPMBUILD" >&6; }
8409 else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8416 test $target_distro = slackware && RPMBUILD=''
8417 rpmbuild=$RPMBUILD
8420 if test -z "$RPM"; then
8421 # Extract the first word of "rpm", so it can be a program name with args.
8422 set dummy rpm; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if ${ac_cv_path_RPM+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 case $RPM in
8429 [\\/]* | ?:[\\/]*)
8430 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8444 done
8445 done
8446 IFS=$as_save_IFS
8449 esac
8451 RPM=$ac_cv_path_RPM
8452 if test -n "$RPM"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8454 $as_echo "$RPM" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8462 test $target_distro = slackware && RPM=''
8463 rpm=$RPM
8466 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8467 then
8468 rpmprog=$RPMBUILD
8469 else
8470 rpmprog=$RPM
8474 if test -z "$POD2MAN"; then
8475 # Extract the first word of "pod2man", so it can be a program name with args.
8476 set dummy pod2man; ac_word=$2
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if ${ac_cv_path_POD2MAN+:} false; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 case $POD2MAN in
8483 [\\/]* | ?:[\\/]*)
8484 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 break 2
8498 done
8499 done
8500 IFS=$as_save_IFS
8503 esac
8505 POD2MAN=$ac_cv_path_POD2MAN
8506 if test -n "$POD2MAN"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8508 $as_echo "$POD2MAN" >&6; }
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8516 pod2man=$POD2MAN
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8520 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8521 perl -e "use ExtUtils::MakeMaker" 2>/dev/null
8522 if test $? -eq 0
8523 then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8525 $as_echo " yes" >&6; }
8526 else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo " no" >&6; }
8529 echo
8530 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8531 echo "You can either install this from your distribution, or"
8532 echo "download from CPAN (Comprehensive Perl Archive Network)."
8533 rm -rf conftest conftest.*
8534 exit 1
8537 # Extract the first word of "true", so it can be a program name with args.
8538 set dummy true; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_path_TRUEPROG+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 case $TRUEPROG in
8545 [\\/]* | ?:[\\/]*)
8546 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556 ac_cv_path_TRUEPROG="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8560 done
8561 done
8562 IFS=$as_save_IFS
8565 esac
8567 TRUEPROG=$ac_cv_path_TRUEPROG
8568 if test -n "$TRUEPROG"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8570 $as_echo "$TRUEPROG" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8578 if test -z "$MAKEDEPEND"; then
8579 # Extract the first word of "makedepend", so it can be a program name with args.
8580 set dummy makedepend; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if ${ac_cv_path_MAKEDEPEND+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 case $MAKEDEPEND in
8587 [\\/]* | ?:[\\/]*)
8588 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8602 done
8603 done
8604 IFS=$as_save_IFS
8606 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8608 esac
8610 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
8611 if test -n "$MAKEDEPEND"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8613 $as_echo "$MAKEDEPEND" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8621 makedepend=$MAKEDEPEND
8624 if test -z "$MD5SUM"; then
8625 # Extract the first word of "md5sum", so it can be a program name with args.
8626 set dummy md5sum; ac_word=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if ${ac_cv_path_MD5SUM+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 case $MD5SUM in
8633 [\\/]* | ?:[\\/]*)
8634 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in $PATH
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8644 ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 break 2
8648 done
8649 done
8650 IFS=$as_save_IFS
8652 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8654 esac
8656 MD5SUM=$ac_cv_path_MD5SUM
8657 if test -n "$MD5SUM"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8659 $as_echo "$MD5SUM" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8667 md5sum=$MD5SUM
8670 if test -z "$DPKG"; then
8671 # Extract the first word of "dpkg", so it can be a program name with args.
8672 set dummy dpkg; ac_word=$2
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674 $as_echo_n "checking for $ac_word... " >&6; }
8675 if ${ac_cv_path_DPKG+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 case $DPKG in
8679 [\\/]* | ?:[\\/]*)
8680 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8694 done
8695 done
8696 IFS=$as_save_IFS
8699 esac
8701 DPKG=$ac_cv_path_DPKG
8702 if test -n "$DPKG"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8704 $as_echo "$DPKG" >&6; }
8705 else
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8712 dpkg=$DKPG
8715 if test -z "$MAKEPKG"; then
8716 # Extract the first word of "makepkg", so it can be a program name with args.
8717 set dummy makepkg; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_path_MAKEPKG+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 case $MAKEPKG in
8724 [\\/]* | ?:[\\/]*)
8725 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 for as_dir in $PATH
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735 ac_cv_path_MAKEPKG="$as_dir/$ac_word$ac_exec_ext"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 break 2
8739 done
8740 done
8741 IFS=$as_save_IFS
8744 esac
8746 MAKEPKG=$ac_cv_path_MAKEPKG
8747 if test -n "$MAKEPKG"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8749 $as_echo "$MAKEPKG" >&6; }
8750 else
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8757 makepkg=$MAKEPKG
8760 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8761 set dummy publican; ac_word=$2
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 $as_echo_n "checking for $ac_word... " >&6; }
8764 if ${ac_cv_path_PUBLICAN+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 case $PUBLICAN in
8768 [\\/]* | ?:[\\/]*)
8769 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 for as_dir in $PATH
8775 IFS=$as_save_IFS
8776 test -z "$as_dir" && as_dir=.
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8779 ac_cv_path_PUBLICAN="$as_dir/$ac_word$ac_exec_ext"
8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 break 2
8783 done
8784 done
8785 IFS=$as_save_IFS
8788 esac
8790 PUBLICAN=$ac_cv_path_PUBLICAN
8791 if test -n "$PUBLICAN"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8793 $as_echo "$PUBLICAN" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8800 publican=$PUBLICAN
8802 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8803 set dummy dblatex; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_path_DBLATEX+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 case $DBLATEX in
8810 [\\/]* | ?:[\\/]*)
8811 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8825 done
8826 done
8827 IFS=$as_save_IFS
8830 esac
8832 DBLATEX=$ac_cv_path_DBLATEX
8833 if test -n "$DBLATEX"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8835 $as_echo "$DBLATEX" >&6; }
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8842 dblatex=$DBLATEX
8844 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8845 set dummy xmlto; ac_word=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if ${ac_cv_path_XMLTO+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 case $XMLTO in
8852 [\\/]* | ?:[\\/]*)
8853 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8863 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
8864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8867 done
8868 done
8869 IFS=$as_save_IFS
8872 esac
8874 XMLTO=$ac_cv_path_XMLTO
8875 if test -n "$XMLTO"; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8877 $as_echo "$XMLTO" >&6; }
8878 else
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8884 xmlto=$XMLTO
8887 book_toolchain=""
8888 if test "$do_books" = "check" -o "$do_books" = "yes"
8889 then
8890 if test "$BOOK_TOOLCHAIN" != ""
8891 then
8892 book_toolchain=$BOOK_TOOLCHAIN
8893 elif test "$DBLATEX" != ""
8894 then
8895 book_toolchain=dblatex
8896 elif test "$PUBLICAN" != ""
8897 then
8898 book_toolchain=publican
8899 elif test "$XMLTO" != ""
8900 then
8901 book_toolchain=xmlto
8902 elif test "$do_books" = "yes"
8903 then
8904 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
8909 book_brand="common"
8910 if test "$do_books_brand" != ""
8911 then
8912 book_brand=$do_books_brand
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8917 $as_echo_n "checking whether ln -s works... " >&6; }
8918 LN_S=$as_ln_s
8919 if test "$LN_S" = "ln -s"; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8921 $as_echo "yes" >&6; }
8922 else
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8924 $as_echo "no, using $LN_S" >&6; }
8927 if test $target_os = mingw; then
8928 as_ln_s=/bin/true
8931 if test -d /proc
8932 then
8933 test -f /proc/stat || mount /proc >/dev/null 2>&1
8936 if test -n "$PROCPS"
8937 then
8938 pcp_ps_prog="$PROCPS"
8939 else
8940 pcp_ps_prog=ps
8944 if test $target_os = mingw
8945 then
8946 pcp_syslog_prog=pcp-eventlog
8947 else
8948 pcp_syslog_prog=logger
8952 grep=grep
8953 if test $target_os = solaris
8954 then
8955 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/bin/grep
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8960 $as_echo_n "checking for /proc ... " >&6; }
8961 if test "$cross_compiling" = "yes"; then
8962 ans=$have_procfs
8963 echo "cross-compile -> \"$ans\"" >&5
8964 elif test -d /proc
8965 then
8966 have_procfs=true
8967 else
8968 have_procfs=false
8970 if $have_procfs
8971 then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8973 $as_echo "yes" >&6; }
8975 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8982 ac_header_dirent=no
8983 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8984 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8986 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8987 if eval \${$as_ac_Header+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 #include <sys/types.h>
8993 #include <$ac_hdr>
8996 main ()
8998 if ((DIR *) 0)
8999 return 0;
9001 return 0;
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005 eval "$as_ac_Header=yes"
9006 else
9007 eval "$as_ac_Header=no"
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011 eval ac_res=\$$as_ac_Header
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9013 $as_echo "$ac_res" >&6; }
9014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9015 cat >>confdefs.h <<_ACEOF
9016 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9017 _ACEOF
9019 ac_header_dirent=$ac_hdr; break
9022 done
9023 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9024 if test $ac_header_dirent = dirent.h; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9026 $as_echo_n "checking for library containing opendir... " >&6; }
9027 if ${ac_cv_search_opendir+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 ac_func_search_save_LIBS=$LIBS
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9034 /* Override any GCC internal prototype to avoid an error.
9035 Use char because int might match the return type of a GCC
9036 builtin and then its argument prototype would still apply. */
9037 #ifdef __cplusplus
9038 extern "C"
9039 #endif
9040 char opendir ();
9042 main ()
9044 return opendir ();
9046 return 0;
9048 _ACEOF
9049 for ac_lib in '' dir; do
9050 if test -z "$ac_lib"; then
9051 ac_res="none required"
9052 else
9053 ac_res=-l$ac_lib
9054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9056 if ac_fn_c_try_link "$LINENO"; then :
9057 ac_cv_search_opendir=$ac_res
9059 rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext
9061 if ${ac_cv_search_opendir+:} false; then :
9062 break
9064 done
9065 if ${ac_cv_search_opendir+:} false; then :
9067 else
9068 ac_cv_search_opendir=no
9070 rm conftest.$ac_ext
9071 LIBS=$ac_func_search_save_LIBS
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9074 $as_echo "$ac_cv_search_opendir" >&6; }
9075 ac_res=$ac_cv_search_opendir
9076 if test "$ac_res" != no; then :
9077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9081 else
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9083 $as_echo_n "checking for library containing opendir... " >&6; }
9084 if ${ac_cv_search_opendir+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 ac_func_search_save_LIBS=$LIBS
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9091 /* Override any GCC internal prototype to avoid an error.
9092 Use char because int might match the return type of a GCC
9093 builtin and then its argument prototype would still apply. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 char opendir ();
9099 main ()
9101 return opendir ();
9103 return 0;
9105 _ACEOF
9106 for ac_lib in '' x; do
9107 if test -z "$ac_lib"; then
9108 ac_res="none required"
9109 else
9110 ac_res=-l$ac_lib
9111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 ac_cv_search_opendir=$ac_res
9116 rm -f core conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext
9118 if ${ac_cv_search_opendir+:} false; then :
9119 break
9121 done
9122 if ${ac_cv_search_opendir+:} false; then :
9124 else
9125 ac_cv_search_opendir=no
9127 rm conftest.$ac_ext
9128 LIBS=$ac_func_search_save_LIBS
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9131 $as_echo "$ac_cv_search_opendir" >&6; }
9132 ac_res=$ac_cv_search_opendir
9133 if test "$ac_res" != no; then :
9134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9141 $as_echo_n "checking for ANSI C header files... " >&6; }
9142 if ${ac_cv_header_stdc+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 #include <stdlib.h>
9148 #include <stdarg.h>
9149 #include <string.h>
9150 #include <float.h>
9153 main ()
9157 return 0;
9159 _ACEOF
9160 if ac_fn_c_try_compile "$LINENO"; then :
9161 ac_cv_header_stdc=yes
9162 else
9163 ac_cv_header_stdc=no
9165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 if test $ac_cv_header_stdc = yes; then
9168 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 #include <string.h>
9173 _ACEOF
9174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9175 $EGREP "memchr" >/dev/null 2>&1; then :
9177 else
9178 ac_cv_header_stdc=no
9180 rm -f conftest*
9184 if test $ac_cv_header_stdc = yes; then
9185 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #include <stdlib.h>
9190 _ACEOF
9191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9192 $EGREP "free" >/dev/null 2>&1; then :
9194 else
9195 ac_cv_header_stdc=no
9197 rm -f conftest*
9201 if test $ac_cv_header_stdc = yes; then
9202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9203 if test "$cross_compiling" = yes; then :
9205 else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 #include <ctype.h>
9209 #include <stdlib.h>
9210 #if ((' ' & 0x0FF) == 0x020)
9211 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9212 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9213 #else
9214 # define ISLOWER(c) \
9215 (('a' <= (c) && (c) <= 'i') \
9216 || ('j' <= (c) && (c) <= 'r') \
9217 || ('s' <= (c) && (c) <= 'z'))
9218 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9219 #endif
9221 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9223 main ()
9225 int i;
9226 for (i = 0; i < 256; i++)
9227 if (XOR (islower (i), ISLOWER (i))
9228 || toupper (i) != TOUPPER (i))
9229 return 2;
9230 return 0;
9232 _ACEOF
9233 if ac_fn_c_try_run "$LINENO"; then :
9235 else
9236 ac_cv_header_stdc=no
9238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9239 conftest.$ac_objext conftest.beam conftest.$ac_ext
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9245 $as_echo "$ac_cv_header_stdc" >&6; }
9246 if test $ac_cv_header_stdc = yes; then
9248 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9253 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9254 if ${ac_cv_header_sys_wait_h+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 #include <sys/types.h>
9260 #include <sys/wait.h>
9261 #ifndef WEXITSTATUS
9262 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9263 #endif
9264 #ifndef WIFEXITED
9265 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9266 #endif
9269 main ()
9271 int s;
9272 wait (&s);
9273 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9275 return 0;
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279 ac_cv_header_sys_wait_h=yes
9280 else
9281 ac_cv_header_sys_wait_h=no
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9286 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9287 if test $ac_cv_header_sys_wait_h = yes; then
9289 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9293 for ac_header in fcntl.h limits.h malloc.h strings.h syslog.h
9294 do :
9295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9296 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9298 cat >>confdefs.h <<_ACEOF
9299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9300 _ACEOF
9304 done
9306 for ac_header in stddef.h sched.h dlfcn.h dl.h
9307 do :
9308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9309 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9310 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9311 cat >>confdefs.h <<_ACEOF
9312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9313 _ACEOF
9317 done
9319 for ac_header in sys/times.h sys/resource.h sys/prctl.h
9320 do :
9321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9322 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9323 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9324 cat >>confdefs.h <<_ACEOF
9325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9326 _ACEOF
9330 done
9332 for ac_header in sys/sysinfo.h sys/systeminfo.h
9333 do :
9334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9337 cat >>confdefs.h <<_ACEOF
9338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9339 _ACEOF
9343 done
9345 for ac_header in endian.h standards.h sys/byteorder.h
9346 do :
9347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9349 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9350 cat >>confdefs.h <<_ACEOF
9351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9352 _ACEOF
9356 done
9358 for ac_header in libgen.h sys/mman.h sys/un.h
9359 do :
9360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9361 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9363 cat >>confdefs.h <<_ACEOF
9364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9365 _ACEOF
9369 done
9371 for ac_header in values.h stdint.h ieeefp.h math.h
9372 do :
9373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9376 cat >>confdefs.h <<_ACEOF
9377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9378 _ACEOF
9382 done
9384 for ac_header in pwd.h grp.h regex.h sys/wait.h
9385 do :
9386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9387 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9389 cat >>confdefs.h <<_ACEOF
9390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9391 _ACEOF
9395 done
9397 for ac_header in termio.h termios.h sys/termios.h
9398 do :
9399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9400 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9402 cat >>confdefs.h <<_ACEOF
9403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9404 _ACEOF
9408 done
9410 for ac_header in sys/ioctl.h sys/select.h sys/socket.h
9411 do :
9412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9415 cat >>confdefs.h <<_ACEOF
9416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9417 _ACEOF
9421 done
9423 for ac_header in netdb.h
9424 do :
9425 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9426 if test "x$ac_cv_header_netdb_h" = xyes; then :
9427 cat >>confdefs.h <<_ACEOF
9428 #define HAVE_NETDB_H 1
9429 _ACEOF
9433 done
9435 if test $target_os = darwin -o $target_os = openbsd
9436 then
9437 for ac_header in net/if.h
9438 do :
9439 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9440 #include <sys/socket.h>
9442 if test "x$ac_cv_header_net_if_h" = xyes; then :
9443 cat >>confdefs.h <<_ACEOF
9444 #define HAVE_NET_IF_H 1
9445 _ACEOF
9449 done
9451 else
9452 for ac_header in net/if.h
9453 do :
9454 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9455 if test "x$ac_cv_header_net_if_h" = xyes; then :
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_NET_IF_H 1
9458 _ACEOF
9462 done
9465 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9466 do :
9467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9468 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9469 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9470 cat >>confdefs.h <<_ACEOF
9471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9472 _ACEOF
9476 done
9478 for ac_header in windows.h winsock2.h ws2tcpip.h
9479 do :
9480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9481 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9482 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9483 cat >>confdefs.h <<_ACEOF
9484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9485 _ACEOF
9489 done
9491 for ac_header in execinfo.h bits/wordsize.h
9492 do :
9493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9496 cat >>confdefs.h <<_ACEOF
9497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9498 _ACEOF
9502 done
9504 for ac_header in iptypes.h
9505 do :
9506 ac_fn_c_check_header_compile "$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9508 if test "x$ac_cv_header_iptypes_h" = xyes; then :
9509 cat >>confdefs.h <<_ACEOF
9510 #define HAVE_IPTYPES_H 1
9511 _ACEOF
9515 done
9517 for ac_header in iphlpapi.h
9518 do :
9519 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9521 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_IPHLPAPI_H 1
9524 _ACEOF
9528 done
9530 for ac_header in fts.h libzfs.h
9531 do :
9532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9533 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9535 cat >>confdefs.h <<_ACEOF
9536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9537 _ACEOF
9541 done
9543 for ac_header in sys/statvfs.h sys/statfs.h sys/mount.h
9544 do :
9545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9546 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9547 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9548 cat >>confdefs.h <<_ACEOF
9549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9550 _ACEOF
9554 done
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9558 $as_echo_n "checking for sys/endian.h ... " >&6; }
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9562 #include <sys/endian.h>
9565 main ()
9570 return 0;
9572 _ACEOF
9573 if ac_fn_c_try_compile "$LINENO"; then :
9575 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9577 $as_echo "yes" >&6; }
9578 else
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9580 $as_echo "no" >&6; }
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9585 $as_echo_n "checking for machine/endian.h ... " >&6; }
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9589 #include <machine/endian.h>
9592 main ()
9597 return 0;
9599 _ACEOF
9600 if ac_fn_c_try_compile "$LINENO"; then :
9602 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9604 $as_echo "yes" >&6; }
9605 else
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9612 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9616 #include <standards.h>
9617 #include <sys/endian.h>
9620 main ()
9625 return 0;
9627 _ACEOF
9628 if ac_fn_c_try_compile "$LINENO"; then :
9630 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9632 $as_echo "yes" >&6; }
9633 else
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635 $as_echo "no" >&6; }
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9640 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9641 if ${ac_cv_c_const+:} false; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9648 main ()
9651 #ifndef __cplusplus
9652 /* Ultrix mips cc rejects this sort of thing. */
9653 typedef int charset[2];
9654 const charset cs = { 0, 0 };
9655 /* SunOS 4.1.1 cc rejects this. */
9656 char const *const *pcpcc;
9657 char **ppc;
9658 /* NEC SVR4.0.2 mips cc rejects this. */
9659 struct point {int x, y;};
9660 static struct point const zero = {0,0};
9661 /* AIX XL C 1.02.0.0 rejects this.
9662 It does not let you subtract one const X* pointer from another in
9663 an arm of an if-expression whose if-part is not a constant
9664 expression */
9665 const char *g = "string";
9666 pcpcc = &g + (g ? g-g : 0);
9667 /* HPUX 7.0 cc rejects these. */
9668 ++pcpcc;
9669 ppc = (char**) pcpcc;
9670 pcpcc = (char const *const *) ppc;
9671 { /* SCO 3.2v4 cc rejects this sort of thing. */
9672 char tx;
9673 char *t = &tx;
9674 char const *s = 0 ? (char *) 0 : (char const *) 0;
9676 *t++ = 0;
9677 if (s) return 0;
9679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9680 int x[] = {25, 17};
9681 const int *foo = &x[0];
9682 ++foo;
9684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9685 typedef const int *iptr;
9686 iptr p = 0;
9687 ++p;
9689 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9691 struct s { int j; const int *ap[3]; } bx;
9692 struct s *b = &bx; b->j = 5;
9694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9695 const int foo = 10;
9696 if (!foo) return 0;
9698 return !cs[0] && !zero.x;
9699 #endif
9702 return 0;
9704 _ACEOF
9705 if ac_fn_c_try_compile "$LINENO"; then :
9706 ac_cv_c_const=yes
9707 else
9708 ac_cv_c_const=no
9710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9713 $as_echo "$ac_cv_c_const" >&6; }
9714 if test $ac_cv_c_const = no; then
9716 $as_echo "#define const /**/" >>confdefs.h
9720 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9721 if test "x$ac_cv_type_off_t" = xyes; then :
9723 else
9725 cat >>confdefs.h <<_ACEOF
9726 #define off_t long int
9727 _ACEOF
9731 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9732 if test "x$ac_cv_type_pid_t" = xyes; then :
9734 else
9736 cat >>confdefs.h <<_ACEOF
9737 #define pid_t int
9738 _ACEOF
9742 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9743 if test "x$ac_cv_type_size_t" = xyes; then :
9745 else
9747 cat >>confdefs.h <<_ACEOF
9748 #define size_t unsigned int
9749 _ACEOF
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9754 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9755 if ${ac_cv_header_time+:} false; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 #include <sys/types.h>
9761 #include <sys/time.h>
9762 #include <time.h>
9765 main ()
9767 if ((struct tm *) 0)
9768 return 0;
9770 return 0;
9772 _ACEOF
9773 if ac_fn_c_try_compile "$LINENO"; then :
9774 ac_cv_header_time=yes
9775 else
9776 ac_cv_header_time=no
9778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9781 $as_echo "$ac_cv_header_time" >&6; }
9782 if test $ac_cv_header_time = yes; then
9784 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9789 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9790 if ${ac_cv_struct_tm+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 #include <sys/types.h>
9796 #include <time.h>
9799 main ()
9801 struct tm tm;
9802 int *p = &tm.tm_sec;
9803 return !p;
9805 return 0;
9807 _ACEOF
9808 if ac_fn_c_try_compile "$LINENO"; then :
9809 ac_cv_struct_tm=time.h
9810 else
9811 ac_cv_struct_tm=sys/time.h
9813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9816 $as_echo "$ac_cv_struct_tm" >&6; }
9817 if test $ac_cv_struct_tm = sys/time.h; then
9819 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9824 $as_echo_n "checking for inline... " >&6; }
9825 if ${ac_cv_c_inline+:} false; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 ac_cv_c_inline=no
9829 for ac_kw in inline __inline__ __inline; do
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 #ifndef __cplusplus
9833 typedef int foo_t;
9834 static $ac_kw foo_t static_foo () {return 0; }
9835 $ac_kw foo_t foo () {return 0; }
9836 #endif
9838 _ACEOF
9839 if ac_fn_c_try_compile "$LINENO"; then :
9840 ac_cv_c_inline=$ac_kw
9842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 test "$ac_cv_c_inline" != no && break
9844 done
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9848 $as_echo "$ac_cv_c_inline" >&6; }
9850 case $ac_cv_c_inline in
9851 inline | yes) ;;
9853 case $ac_cv_c_inline in
9854 no) ac_val=;;
9855 *) ac_val=$ac_cv_c_inline;;
9856 esac
9857 cat >>confdefs.h <<_ACEOF
9858 #ifndef __cplusplus
9859 #define inline $ac_val
9860 #endif
9861 _ACEOF
9863 esac
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9867 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9868 if ${ac_cv_lib_regex_regcomp+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-lregex $LIBS"
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9876 /* Override any GCC internal prototype to avoid an error.
9877 Use char because int might match the return type of a GCC
9878 builtin and then its argument prototype would still apply. */
9879 #ifdef __cplusplus
9880 extern "C"
9881 #endif
9882 char regcomp ();
9884 main ()
9886 return regcomp ();
9888 return 0;
9890 _ACEOF
9891 if ac_fn_c_try_link "$LINENO"; then :
9892 ac_cv_lib_regex_regcomp=yes
9893 else
9894 ac_cv_lib_regex_regcomp=no
9896 rm -f core conftest.err conftest.$ac_objext \
9897 conftest$ac_exeext conftest.$ac_ext
9898 LIBS=$ac_check_lib_save_LIBS
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9901 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9902 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
9903 cat >>confdefs.h <<_ACEOF
9904 #define HAVE_LIBREGEX 1
9905 _ACEOF
9907 LIBS="-lregex $LIBS"
9911 lib_for_regex=""
9912 if test $ac_cv_lib_regex_regcomp = yes
9913 then
9914 lib_for_regex="-lregex"
9919 pkg_failed=no
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9921 $as_echo_n "checking for ncurses... " >&6; }
9923 if test -n "$ncurses_CFLAGS"; then
9924 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
9925 elif test -n "$PKG_CONFIG"; then
9926 if test -n "$PKG_CONFIG" && \
9927 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9928 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9929 ac_status=$?
9930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9931 test $ac_status = 0; }; then
9932 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9933 test "x$?" != "x0" && pkg_failed=yes
9934 else
9935 pkg_failed=yes
9937 else
9938 pkg_failed=untried
9940 if test -n "$ncurses_LIBS"; then
9941 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
9942 elif test -n "$PKG_CONFIG"; then
9943 if test -n "$PKG_CONFIG" && \
9944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9945 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9946 ac_status=$?
9947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9948 test $ac_status = 0; }; then
9949 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9950 test "x$?" != "x0" && pkg_failed=yes
9951 else
9952 pkg_failed=yes
9954 else
9955 pkg_failed=untried
9960 if test $pkg_failed = yes; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9965 _pkg_short_errors_supported=yes
9966 else
9967 _pkg_short_errors_supported=no
9969 if test $_pkg_short_errors_supported = yes; then
9970 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9971 else
9972 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9974 # Put the nasty error message in config.log where it belongs
9975 echo "$ncurses_PKG_ERRORS" >&5
9977 have_ncurses=false
9978 elif test $pkg_failed = untried; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9981 have_ncurses=false
9982 else
9983 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
9984 ncurses_LIBS=$pkg_cv_ncurses_LIBS
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9986 $as_echo "yes" >&6; }
9987 have_ncurses=true
9989 HAVE_NCURSES=$have_ncurses
9993 pkg_failed=no
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
9995 $as_echo_n "checking for SYSTEMD... " >&6; }
9997 if test -n "$SYSTEMD_CFLAGS"; then
9998 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
9999 elif test -n "$PKG_CONFIG"; then
10000 if test -n "$PKG_CONFIG" && \
10001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10002 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10003 ac_status=$?
10004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10005 test $ac_status = 0; }; then
10006 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
10007 test "x$?" != "x0" && pkg_failed=yes
10008 else
10009 pkg_failed=yes
10011 else
10012 pkg_failed=untried
10014 if test -n "$SYSTEMD_LIBS"; then
10015 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10016 elif test -n "$PKG_CONFIG"; then
10017 if test -n "$PKG_CONFIG" && \
10018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10019 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10020 ac_status=$?
10021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10022 test $ac_status = 0; }; then
10023 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
10024 test "x$?" != "x0" && pkg_failed=yes
10025 else
10026 pkg_failed=yes
10028 else
10029 pkg_failed=untried
10034 if test $pkg_failed = yes; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10036 $as_echo "no" >&6; }
10038 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10039 _pkg_short_errors_supported=yes
10040 else
10041 _pkg_short_errors_supported=no
10043 if test $_pkg_short_errors_supported = yes; then
10044 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
10045 else
10046 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
10048 # Put the nasty error message in config.log where it belongs
10049 echo "$SYSTEMD_PKG_ERRORS" >&5
10051 pmda_systemd=false
10052 elif test $pkg_failed = untried; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; }
10055 pmda_systemd=false
10056 else
10057 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10058 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10060 $as_echo "yes" >&6; }
10061 pmda_systemd=true
10063 if $pmda_systemd
10064 then
10066 else
10068 pkg_failed=no
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10070 $as_echo_n "checking for SYSTEMD... " >&6; }
10072 if test -n "$SYSTEMD_CFLAGS"; then
10073 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10074 elif test -n "$PKG_CONFIG"; then
10075 if test -n "$PKG_CONFIG" && \
10076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10077 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10078 ac_status=$?
10079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10080 test $ac_status = 0; }; then
10081 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
10082 test "x$?" != "x0" && pkg_failed=yes
10083 else
10084 pkg_failed=yes
10086 else
10087 pkg_failed=untried
10089 if test -n "$SYSTEMD_LIBS"; then
10090 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10091 elif test -n "$PKG_CONFIG"; then
10092 if test -n "$PKG_CONFIG" && \
10093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10094 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10095 ac_status=$?
10096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097 test $ac_status = 0; }; then
10098 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
10099 test "x$?" != "x0" && pkg_failed=yes
10100 else
10101 pkg_failed=yes
10103 else
10104 pkg_failed=untried
10109 if test $pkg_failed = yes; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10113 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10114 _pkg_short_errors_supported=yes
10115 else
10116 _pkg_short_errors_supported=no
10118 if test $_pkg_short_errors_supported = yes; then
10119 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10120 else
10121 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10123 # Put the nasty error message in config.log where it belongs
10124 echo "$SYSTEMD_PKG_ERRORS" >&5
10126 pmda_systemd=false
10127 elif test $pkg_failed = untried; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10130 pmda_systemd=false
10131 else
10132 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10133 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10135 $as_echo "yes" >&6; }
10136 pmda_systemd=true
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
10140 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
10141 PMDA_SYSTEMD=$pmda_systemd
10143 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10144 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }; fi
10147 pmda_infiniband=false
10148 if test "x$do_infiniband" != "xno"; then :
10150 for ac_header in infiniband/umad.h
10151 do :
10152 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10153 if test "x$ac_cv_header_infiniband_umad_h" = xyes; then :
10154 cat >>confdefs.h <<_ACEOF
10155 #define HAVE_INFINIBAND_UMAD_H 1
10156 _ACEOF
10158 for ac_header in infiniband/mad.h
10159 do :
10160 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10161 if test "x$ac_cv_header_infiniband_mad_h" = xyes; then :
10162 cat >>confdefs.h <<_ACEOF
10163 #define HAVE_INFINIBAND_MAD_H 1
10164 _ACEOF
10165 pmda_infiniband=true
10168 done
10173 done
10175 savedLIBS=$LIBS
10176 IB_LIBS=""
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10178 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10179 if ${ac_cv_lib_ibmad_madrpc_init+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 ac_check_lib_save_LIBS=$LIBS
10183 LIBS="-libmad $LIBS"
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10187 /* Override any GCC internal prototype to avoid an error.
10188 Use char because int might match the return type of a GCC
10189 builtin and then its argument prototype would still apply. */
10190 #ifdef __cplusplus
10191 extern "C"
10192 #endif
10193 char madrpc_init ();
10195 main ()
10197 return madrpc_init ();
10199 return 0;
10201 _ACEOF
10202 if ac_fn_c_try_link "$LINENO"; then :
10203 ac_cv_lib_ibmad_madrpc_init=yes
10204 else
10205 ac_cv_lib_ibmad_madrpc_init=no
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10212 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10213 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes; then :
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_LIBIBMAD 1
10216 _ACEOF
10218 LIBS="-libmad $LIBS"
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10223 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10224 if ${ac_cv_lib_ibumad_umad_init+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-libumad $LIBS"
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 /* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 char umad_init ();
10240 main ()
10242 return umad_init ();
10244 return 0;
10246 _ACEOF
10247 if ac_fn_c_try_link "$LINENO"; then :
10248 ac_cv_lib_ibumad_umad_init=yes
10249 else
10250 ac_cv_lib_ibumad_umad_init=no
10252 rm -f core conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10257 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10258 if test "x$ac_cv_lib_ibumad_umad_init" = xyes; then :
10259 cat >>confdefs.h <<_ACEOF
10260 #define HAVE_LIBIBUMAD 1
10261 _ACEOF
10263 LIBS="-libumad $LIBS"
10267 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10268 then
10269 IB_LIBS="-libmad -libumad"
10270 LIBS="$IB_LIBS"
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10272 $as_echo_n "checking for port_performance_query_via... " >&6; }
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10279 #ifdef __cplusplus
10280 extern "C"
10281 #endif
10282 char port_performance_query_via ();
10284 main ()
10286 return port_performance_query_via ();
10288 return 0;
10290 _ACEOF
10291 if ac_fn_c_try_link "$LINENO"; then :
10293 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10295 have_port_performance_query_via=true
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10297 $as_echo "yes" >&6; }
10298 else
10299 have_port_performance_query_via=false
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10303 rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10306 $as_echo_n "checking for pma_query_via... " >&6; }
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 char pma_query_via ();
10318 main ()
10320 return pma_query_via ();
10322 return 0;
10324 _ACEOF
10325 if ac_fn_c_try_link "$LINENO"; then :
10327 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10329 have_pma_query_via=true
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10331 $as_echo "yes" >&6; }
10332 else
10333 have_pma_query_via=false
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335 $as_echo "no" >&6; }
10337 rm -f core conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10339 LIBS=$savedLIBS
10340 if test $have_pma_query_via -o $have_port_performance_query_via
10341 then
10343 else
10344 pmda_infiniband=false
10346 else
10347 pmda_infiniband=false
10349 LIBS=$savedLIBS
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10354 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10355 PMDA_INFINIBAND=$pmda_infiniband
10357 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10358 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }; fi
10361 pmda_papi=false
10362 if test "x$do_papi" != "xno"; then :
10364 enable_papi=true
10366 saved_LDFLAGS="$LDFLAGS"
10367 saved_CFLAGS="$CFLAGS"
10368 savedLIBS=$LIBS
10370 CFLAGS="$papi_CFLAGS"
10371 LDFLAGS="$papi_LIBS"
10373 case "$do_papi" in
10374 yes|no|check)
10376 */*)
10377 PAPI_ROOTDIR=$do_papi;
10378 CFLAGS="-I$PAPI_ROOTDIR/include"
10379 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10383 pkg_failed=no
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10385 $as_echo_n "checking for papi... " >&6; }
10387 if test -n "$papi_CFLAGS"; then
10388 pkg_cv_papi_CFLAGS="$papi_CFLAGS"
10389 elif test -n "$PKG_CONFIG"; then
10390 if test -n "$PKG_CONFIG" && \
10391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10392 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10393 ac_status=$?
10394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10395 test $ac_status = 0; }; then
10396 pkg_cv_papi_CFLAGS=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10397 test "x$?" != "x0" && pkg_failed=yes
10398 else
10399 pkg_failed=yes
10401 else
10402 pkg_failed=untried
10404 if test -n "$papi_LIBS"; then
10405 pkg_cv_papi_LIBS="$papi_LIBS"
10406 elif test -n "$PKG_CONFIG"; then
10407 if test -n "$PKG_CONFIG" && \
10408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10409 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10410 ac_status=$?
10411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10412 test $ac_status = 0; }; then
10413 pkg_cv_papi_LIBS=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10414 test "x$?" != "x0" && pkg_failed=yes
10415 else
10416 pkg_failed=yes
10418 else
10419 pkg_failed=untried
10424 if test $pkg_failed = yes; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 $as_echo "no" >&6; }
10428 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10429 _pkg_short_errors_supported=yes
10430 else
10431 _pkg_short_errors_supported=no
10433 if test $_pkg_short_errors_supported = yes; then
10434 papi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10435 else
10436 papi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10438 # Put the nasty error message in config.log where it belongs
10439 echo "$papi_PKG_ERRORS" >&5
10441 as_fn_error $? "Package requirements ($do_papi) were not met:
10443 $papi_PKG_ERRORS
10445 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10446 installed software in a non-standard prefix.
10448 Alternatively, you may set the environment variables papi_CFLAGS
10449 and papi_LIBS to avoid the need to call pkg-config.
10450 See the pkg-config man page for more details." "$LINENO" 5
10451 elif test $pkg_failed = untried; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10456 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10457 is in your PATH or set the PKG_CONFIG environment variable to the full
10458 path to pkg-config.
10460 Alternatively, you may set the environment variables papi_CFLAGS
10461 and papi_LIBS to avoid the need to call pkg-config.
10462 See the pkg-config man page for more details.
10464 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10465 See \`config.log' for more details" "$LINENO" 5; }
10466 else
10467 papi_CFLAGS=$pkg_cv_papi_CFLAGS
10468 papi_LIBS=$pkg_cv_papi_LIBS
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10470 $as_echo "yes" >&6; }
10472 CFLAGS="$papi_CFLAGS"
10473 LDFLAGS="$papi_LIBS"
10476 esac
10478 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10480 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10481 if ${ac_cv_lib_papi_PAPI_library_init+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 ac_check_lib_save_LIBS=$LIBS
10485 LIBS="-lpapi $LIBS"
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10489 /* Override any GCC internal prototype to avoid an error.
10490 Use char because int might match the return type of a GCC
10491 builtin and then its argument prototype would still apply. */
10492 #ifdef __cplusplus
10493 extern "C"
10494 #endif
10495 char PAPI_library_init ();
10497 main ()
10499 return PAPI_library_init ();
10501 return 0;
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 ac_cv_lib_papi_PAPI_library_init=yes
10506 else
10507 ac_cv_lib_papi_PAPI_library_init=no
10509 rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10511 LIBS=$ac_check_lib_save_LIBS
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10514 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10515 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes; then :
10516 papi_libs="$LDFLAGS -lpapi"
10517 else
10518 enable_papi=false
10521 for ac_header in papi.h
10522 do :
10523 ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10524 if test "x$ac_cv_header_papi_h" = xyes; then :
10525 cat >>confdefs.h <<_ACEOF
10526 #define HAVE_PAPI_H 1
10527 _ACEOF
10528 papi_cflags="$CFLAGS"
10529 else
10530 enable_papi=false
10533 done
10535 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10536 then
10537 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10538 else
10539 pmda_papi=$enable_papi
10541 LIBS=$savedLIBS
10542 CFLAGS="$saved_CFLAGS"
10543 LDFLAGS="$saved_LDFLAGS"
10544 PAPI_CFLAGS=$papi_cflags
10546 PAPI_LIBS=$papi_libs
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10551 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10552 PMDA_PAPI=$pmda_papi
10554 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10555 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }; fi
10558 if test "x$pmda_papi" = "xtrue"; then :
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10561 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10562 cat <<End-of-File >conftest.c
10563 #include <papi.h>
10564 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10565 End-of-File
10566 (eval $ac_compile) 2>conftest.out
10567 cat conftest.out >&5
10568 if test -s conftest.out
10569 then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10572 else
10574 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; }
10580 rm -f conftest.*
10584 pmda_perfevent=false
10585 if test "x$do_perfevent" != "xno" ; then :
10587 enable_perfevent=true
10589 savedLIBS=$LIBS
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10591 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10592 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 ac_check_lib_save_LIBS=$LIBS
10596 LIBS="-lpfm $LIBS"
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10600 /* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10603 #ifdef __cplusplus
10604 extern "C"
10605 #endif
10606 char pfm_get_os_event_encoding ();
10608 main ()
10610 return pfm_get_os_event_encoding ();
10612 return 0;
10614 _ACEOF
10615 if ac_fn_c_try_link "$LINENO"; then :
10616 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10617 else
10618 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
10620 rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10625 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10626 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes; then :
10627 pfm_libs="-lpfm"
10628 else
10629 enable_perfevent=false
10632 for ac_header in perfmon/pfmlib_perf_event.h
10633 do :
10634 ac_fn_c_check_header_mongrel "$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10635 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes; then :
10636 cat >>confdefs.h <<_ACEOF
10637 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10638 _ACEOF
10640 else
10641 enable_perfevent=false
10644 done
10646 if test "$do_perfevent" != "check" -a "$enable_perfevent" != "true"
10647 then
10648 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10649 else
10650 pmda_perfevent=$enable_perfevent
10652 LIBS=$savedLIBS
10653 PFM_LIBS=$pfm_libs
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10658 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10659 PMDA_PERFEVENT=$pmda_perfevent
10661 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10662 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }; fi
10665 pmda_rpm=false
10666 savedLIBS=$LIBS
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10668 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <rpm/header.h>
10673 main ()
10675 (void)HEADERGET_EXT;
10677 return 0;
10679 _ACEOF
10680 if ac_fn_c_try_compile "$LINENO"; then :
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10682 $as_echo "yes" >&6; }
10683 pmda_rpm=true
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10690 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10691 PMDA_RPM=$pmda_rpm
10693 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10694 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }; fi
10696 LIBS=$savedLIBS
10698 pmda_postfix=false
10699 for ac_prog in qshape
10701 # Extract the first word of "$ac_prog", so it can be a program name with args.
10702 set dummy $ac_prog; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if ${ac_cv_prog_QSHAPE+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 if test -n "$QSHAPE"; then
10709 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10710 else
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712 as_dummy="path=$PATH:/usr/sbin"
10713 for as_dir in $as_dummy
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_prog_QSHAPE="$ac_prog"
10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10723 done
10724 done
10725 IFS=$as_save_IFS
10729 QSHAPE=$ac_cv_prog_QSHAPE
10730 if test -n "$QSHAPE"; then
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10732 $as_echo "$QSHAPE" >&6; }
10733 else
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735 $as_echo "no" >&6; }
10739 test -n "$QSHAPE" && break
10740 done
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10743 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10744 if test -n "$QSHAPE"
10745 then
10746 pmda_postfix=true
10747 else
10748 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10750 if test -f "$script"
10751 then
10752 pmda_postfix=true
10753 break
10755 done
10757 PMDA_POSTFIX=$pmda_postfix
10759 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10760 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; }; fi
10764 pkg_failed=no
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10766 $as_echo_n "checking for libmicrohttpd... " >&6; }
10768 if test -n "$libmicrohttpd_CFLAGS"; then
10769 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
10770 elif test -n "$PKG_CONFIG"; then
10771 if test -n "$PKG_CONFIG" && \
10772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10773 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10774 ac_status=$?
10775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10776 test $ac_status = 0; }; then
10777 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10778 test "x$?" != "x0" && pkg_failed=yes
10779 else
10780 pkg_failed=yes
10782 else
10783 pkg_failed=untried
10785 if test -n "$libmicrohttpd_LIBS"; then
10786 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
10787 elif test -n "$PKG_CONFIG"; then
10788 if test -n "$PKG_CONFIG" && \
10789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10790 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10791 ac_status=$?
10792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10793 test $ac_status = 0; }; then
10794 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10795 test "x$?" != "x0" && pkg_failed=yes
10796 else
10797 pkg_failed=yes
10799 else
10800 pkg_failed=untried
10805 if test $pkg_failed = yes; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807 $as_echo "no" >&6; }
10809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10810 _pkg_short_errors_supported=yes
10811 else
10812 _pkg_short_errors_supported=no
10814 if test $_pkg_short_errors_supported = yes; then
10815 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10816 else
10817 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10819 # Put the nasty error message in config.log where it belongs
10820 echo "$libmicrohttpd_PKG_ERRORS" >&5
10822 have_libmicrohttpd=false
10823 elif test $pkg_failed = untried; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10826 have_libmicrohttpd=false
10827 else
10828 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
10829 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831 $as_echo "yes" >&6; }
10832 have_libmicrohttpd=true
10834 HAVE_LIBMICROHTTPD=$have_libmicrohttpd
10838 pkg_failed=no
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10840 $as_echo_n "checking for cairo... " >&6; }
10842 if test -n "$cairo_CFLAGS"; then
10843 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
10844 elif test -n "$PKG_CONFIG"; then
10845 if test -n "$PKG_CONFIG" && \
10846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10847 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10848 ac_status=$?
10849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850 test $ac_status = 0; }; then
10851 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10852 test "x$?" != "x0" && pkg_failed=yes
10853 else
10854 pkg_failed=yes
10856 else
10857 pkg_failed=untried
10859 if test -n "$cairo_LIBS"; then
10860 pkg_cv_cairo_LIBS="$cairo_LIBS"
10861 elif test -n "$PKG_CONFIG"; then
10862 if test -n "$PKG_CONFIG" && \
10863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10864 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10865 ac_status=$?
10866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867 test $ac_status = 0; }; then
10868 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10869 test "x$?" != "x0" && pkg_failed=yes
10870 else
10871 pkg_failed=yes
10873 else
10874 pkg_failed=untried
10879 if test $pkg_failed = yes; then
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881 $as_echo "no" >&6; }
10883 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10884 _pkg_short_errors_supported=yes
10885 else
10886 _pkg_short_errors_supported=no
10888 if test $_pkg_short_errors_supported = yes; then
10889 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10890 else
10891 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10893 # Put the nasty error message in config.log where it belongs
10894 echo "$cairo_PKG_ERRORS" >&5
10896 have_cairo=false
10897 elif test $pkg_failed = untried; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10900 have_cairo=false
10901 else
10902 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
10903 cairo_LIBS=$pkg_cv_cairo_LIBS
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10905 $as_echo "yes" >&6; }
10906 have_cairo=true
10908 HAVE_CAIRO=$have_cairo
10911 enable_webapi=false
10912 if test "x$do_webapi" != "xno"; then :
10914 enable_webapi=true
10916 if test "$have_libmicrohttpd" != "true"
10917 then
10918 enable_webapi=false
10919 test "$do_webapi" != "check" && \
10920 as_fn_error $? "libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10921 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10922 then
10923 enable_webapi=false
10924 test "$do_webapi" != "check" && \
10925 as_fn_error $? "C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10931 enable_manager=false
10932 if test "x$do_manager" != "xno"; then :
10934 enable_manager=true
10936 if test "$target_os" = "mingw"
10937 then
10938 enable_manager=false
10939 test "$do_manager" != "check" && \
10940 as_fn_error $? "MinGW build, cannot enable daemon manager" "$LINENO" 5
10941 elif test "x$cxx" = "x"
10942 then
10943 enable_manager=false
10944 test "$do_manager" != "check" && \
10945 as_fn_error $? "C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10948 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951 #ifndef _XOPEN_SOURCE
10952 #define _XOPEN_SOURCE 600
10953 #endif
10954 #include <stdio.h>
10957 main ()
10961 return 0;
10963 _ACEOF
10964 if ac_fn_c_try_compile "$LINENO"; then :
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10966 $as_echo "yes" >&6; }
10967 else
10968 enable_manager=false
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10978 $as_echo_n "checking return type of signal handlers... " >&6; }
10979 if ${ac_cv_type_signal+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10984 #include <sys/types.h>
10985 #include <signal.h>
10988 main ()
10990 return *(signal (0, 0)) (0) == 1;
10992 return 0;
10994 _ACEOF
10995 if ac_fn_c_try_compile "$LINENO"; then :
10996 ac_cv_type_signal=int
10997 else
10998 ac_cv_type_signal=void
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11003 $as_echo "$ac_cv_type_signal" >&6; }
11005 cat >>confdefs.h <<_ACEOF
11006 #define RETSIGTYPE $ac_cv_type_signal
11007 _ACEOF
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
11011 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
11012 if ${ac_cv_func_wait3_rusage+:} false; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 if test "$cross_compiling" = yes; then :
11016 ac_cv_func_wait3_rusage=no
11017 else
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020 $ac_includes_default
11021 #include <sys/time.h>
11022 #include <sys/resource.h>
11023 #include <sys/wait.h>
11024 /* HP-UX has wait3 but does not fill in rusage at all. */
11026 main ()
11028 struct rusage r;
11029 int i;
11030 /* Use a field that we can force nonzero --
11031 voluntary context switches.
11032 For systems like NeXT and OSF/1 that don't set it,
11033 also use the system CPU time. And page faults (I/O) for Linux. */
11034 r.ru_nvcsw = 0;
11035 r.ru_stime.tv_sec = 0;
11036 r.ru_stime.tv_usec = 0;
11037 r.ru_majflt = r.ru_minflt = 0;
11038 switch (fork ())
11040 case 0: /* Child. */
11041 sleep(1); /* Give up the CPU. */
11042 _exit(0);
11043 break;
11044 case -1: /* What can we do? */
11045 _exit(0);
11046 break;
11047 default: /* Parent. */
11048 wait3(&i, 0, &r);
11049 /* Avoid "text file busy" from rm on fast HP-UX machines. */
11050 sleep(2);
11051 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
11052 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
11055 _ACEOF
11056 if ac_fn_c_try_run "$LINENO"; then :
11057 ac_cv_func_wait3_rusage=yes
11058 else
11059 ac_cv_func_wait3_rusage=no
11061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11062 conftest.$ac_objext conftest.beam conftest.$ac_ext
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
11067 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
11068 if test $ac_cv_func_wait3_rusage = yes; then
11070 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
11074 for ac_func in vprintf
11075 do :
11076 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11077 if test "x$ac_cv_func_vprintf" = xyes; then :
11078 cat >>confdefs.h <<_ACEOF
11079 #define HAVE_VPRINTF 1
11080 _ACEOF
11082 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11083 if test "x$ac_cv_func__doprnt" = xyes; then :
11085 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11090 done
11093 for ac_func in mktime nanosleep usleep unsetenv
11094 do :
11095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11097 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11098 cat >>confdefs.h <<_ACEOF
11099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100 _ACEOF
11103 done
11105 for ac_func in select socket gethostname getpeerucred getpeereid
11106 do :
11107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11108 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11109 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11110 cat >>confdefs.h <<_ACEOF
11111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11112 _ACEOF
11115 done
11117 for ac_func in uname syslog __clone pipe2 fcntl ioctl
11118 do :
11119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11121 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11122 cat >>confdefs.h <<_ACEOF
11123 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11124 _ACEOF
11127 done
11129 for ac_func in prctl setlinebuf waitpid atexit kill
11130 do :
11131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11133 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11134 cat >>confdefs.h <<_ACEOF
11135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11136 _ACEOF
11139 done
11141 for ac_func in chown fchmod getcwd scandir mkstemp
11142 do :
11143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11144 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11145 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11146 cat >>confdefs.h <<_ACEOF
11147 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11148 _ACEOF
11151 done
11153 for ac_func in brk sbrk posix_memalign memalign valloc
11154 do :
11155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11158 cat >>confdefs.h <<_ACEOF
11159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11160 _ACEOF
11163 done
11165 for ac_func in signal sighold sigrelse tcgetattr
11166 do :
11167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11169 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11170 cat >>confdefs.h <<_ACEOF
11171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11172 _ACEOF
11175 done
11177 for ac_func in regex regcmp regexec regcomp
11178 do :
11179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11180 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11181 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11182 cat >>confdefs.h <<_ACEOF
11183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11184 _ACEOF
11187 done
11189 for ac_func in strtod strtol strtoll strtoull strndup strchrnul
11190 do :
11191 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11193 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11194 cat >>confdefs.h <<_ACEOF
11195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11196 _ACEOF
11199 done
11201 for ac_func in getuid getgid
11202 do :
11203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11204 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11205 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11206 cat >>confdefs.h <<_ACEOF
11207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11208 _ACEOF
11211 done
11213 for ac_func in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11214 do :
11215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11217 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11218 cat >>confdefs.h <<_ACEOF
11219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11220 _ACEOF
11223 done
11225 for ac_func in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11226 do :
11227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11228 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11229 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11230 cat >>confdefs.h <<_ACEOF
11231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232 _ACEOF
11235 done
11237 for ac_func in sysinfo trace_back_stack backtrace
11238 do :
11239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11241 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11242 cat >>confdefs.h <<_ACEOF
11243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11244 _ACEOF
11247 done
11249 for ac_func in sendmsg recvmsg setns
11250 do :
11251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11253 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11254 cat >>confdefs.h <<_ACEOF
11255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11256 _ACEOF
11259 done
11262 if test $target_os != linux -a $target_os != freebsd -a $target_os != kfreebsd -a $target_os != netbsd; then
11263 for ac_func in readdir64
11264 do :
11265 ac_fn_c_check_func "$LINENO" "readdir64" "ac_cv_func_readdir64"
11266 if test "x$ac_cv_func_readdir64" = xyes; then :
11267 cat >>confdefs.h <<_ACEOF
11268 #define HAVE_READDIR64 1
11269 _ACEOF
11272 done
11276 if test $target_os = solaris
11277 then
11278 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11279 if test "x$ac_cv_type___int32_t" = xyes; then :
11281 else
11283 cat >>confdefs.h <<_ACEOF
11284 #define __int32_t int32_t
11285 _ACEOF
11289 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11290 if test "x$ac_cv_type___uint32_t" = xyes; then :
11292 else
11294 cat >>confdefs.h <<_ACEOF
11295 #define __uint32_t uint32_t
11296 _ACEOF
11300 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11301 if test "x$ac_cv_type___int64_t" = xyes; then :
11303 else
11305 cat >>confdefs.h <<_ACEOF
11306 #define __int64_t int64_t
11307 _ACEOF
11311 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11312 if test "x$ac_cv_type___uint64_t" = xyes; then :
11314 else
11316 cat >>confdefs.h <<_ACEOF
11317 #define __uint64_t uint64_t
11318 _ACEOF
11322 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11323 if test "x$ac_cv_type_uint_t" = xyes; then :
11325 else
11327 cat >>confdefs.h <<_ACEOF
11328 #define uint_t u_int32_t
11329 _ACEOF
11333 else
11334 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11335 if test "x$ac_cv_type___int32_t" = xyes; then :
11337 else
11339 cat >>confdefs.h <<_ACEOF
11340 #define __int32_t int
11341 _ACEOF
11345 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11346 if test "x$ac_cv_type___uint32_t" = xyes; then :
11348 else
11350 cat >>confdefs.h <<_ACEOF
11351 #define __uint32_t unsigned int
11352 _ACEOF
11356 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11357 if test "x$ac_cv_type___int64_t" = xyes; then :
11359 else
11361 cat >>confdefs.h <<_ACEOF
11362 #define __int64_t long long
11363 _ACEOF
11367 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11368 if test "x$ac_cv_type___uint64_t" = xyes; then :
11370 else
11372 cat >>confdefs.h <<_ACEOF
11373 #define __uint64_t unsigned long long
11374 _ACEOF
11378 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11379 if test "x$ac_cv_type_uint_t" = xyes; then :
11381 else
11383 cat >>confdefs.h <<_ACEOF
11384 #define uint_t unsigned int
11385 _ACEOF
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11392 $as_echo_n "checking for __psint_t ... " >&6; }
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11396 #include <sys/types.h>
11397 #include <stdlib.h>
11398 #include <stddef.h>
11401 main ()
11403 __psint_t psint;
11405 return 0;
11407 _ACEOF
11408 if ac_fn_c_try_compile "$LINENO"; then :
11410 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11412 $as_echo "yes" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11420 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 #include <stddef.h>
11425 #ifdef HAVE_MALLOC_H
11426 #include <malloc.h>
11427 #endif
11430 main ()
11432 ptrdiff_t ptrdiff;
11434 return 0;
11436 _ACEOF
11437 if ac_fn_c_try_compile "$LINENO"; then :
11439 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441 $as_echo "yes" >&6; }
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11449 $as_echo_n "checking for uid_t ... " >&6; }
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11453 #include <sys/types.h>
11454 #ifdef HAVE_PWD_H
11455 #include <pwd.h>
11456 #endif
11459 main ()
11461 uid_t uid;
11463 return 0;
11465 _ACEOF
11466 if ac_fn_c_try_compile "$LINENO"; then :
11468 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 $as_echo "yes" >&6; }
11471 else
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11477 $as_echo_n "checking for gid_t ... " >&6; }
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11481 #include <sys/types.h>
11482 #ifdef HAVE_GRP_H
11483 #include <grp.h>
11484 #endif
11487 main ()
11489 gid_t gid;
11491 return 0;
11493 _ACEOF
11494 if ac_fn_c_try_compile "$LINENO"; then :
11496 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11498 $as_echo "yes" >&6; }
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11505 $as_echo_n "checking for SID ... " >&6; }
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11509 #ifdef HAVE_WINDOWS_H
11510 #include <windows.h>
11511 #endif
11514 main ()
11516 SID sid;
11518 return 0;
11520 _ACEOF
11521 if ac_fn_c_try_compile "$LINENO"; then :
11523 $as_echo "#define HAVE_SID 1" >>confdefs.h
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11525 $as_echo "yes" >&6; }
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11533 $as_echo_n "checking for socklen_t ... " >&6; }
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11537 #include <sys/types.h>
11538 #ifdef HAVE_SYS_SOCKET_H
11539 #include <sys/socket.h>
11540 #endif
11543 main ()
11545 socklen_t len;
11547 return 0;
11549 _ACEOF
11550 if ac_fn_c_try_compile "$LINENO"; then :
11552 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11564 #include <stdio.h>
11567 main ()
11569 long long x = 0LL;
11571 return 0;
11573 _ACEOF
11574 if ac_fn_c_try_compile "$LINENO"; then :
11576 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11584 #include <stdlib.h>
11585 #include <unistd.h>
11588 main ()
11590 char **x = _environ;
11592 return 0;
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11597 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11604 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11608 #ifdef HAVE_SYS_PRCTL_H
11609 #include <sys/prctl.h>
11610 #endif
11613 main ()
11615 int i = PR_TERMCHILD;
11617 return 0;
11619 _ACEOF
11620 if ac_fn_c_try_compile "$LINENO"; then :
11622 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11624 $as_echo "yes" >&6; }
11625 else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627 $as_echo "no" >&6; }
11629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11632 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11636 #ifdef HAVE_SYS_PRCTL_H
11637 #include <sys/prctl.h>
11638 #endif
11641 main ()
11643 int i = PR_SET_PDEATHSIG;
11645 return 0;
11647 _ACEOF
11648 if ac_fn_c_try_compile "$LINENO"; then :
11650 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11652 $as_echo "yes" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11660 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11661 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11666 #include <sys/types.h>
11667 #include <termios.h>
11668 #ifdef TIOCGWINSZ
11670 #endif
11672 _ACEOF
11673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11674 $EGREP "yes" >/dev/null 2>&1; then :
11675 ac_cv_sys_tiocgwinsz_in_termios_h=yes
11676 else
11677 ac_cv_sys_tiocgwinsz_in_termios_h=no
11679 rm -f conftest*
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11683 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11685 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11687 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11688 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11693 #include <sys/types.h>
11694 #include <sys/ioctl.h>
11695 #ifdef TIOCGWINSZ
11697 #endif
11699 _ACEOF
11700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11701 $EGREP "yes" >/dev/null 2>&1; then :
11702 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
11703 else
11704 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11706 rm -f conftest*
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11710 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11712 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11714 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11721 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11722 save_CFLAGS="$CFLAGS"
11723 CFLAGS="-rdynamic"
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11728 main ()
11732 return 0;
11734 _ACEOF
11735 if ac_fn_c_try_link "$LINENO"; then :
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737 $as_echo "yes" >&6; }
11738 rdynamic_flag=-rdynamic
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11742 rdynamic_flag=
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 CFLAGS="$save_CFLAGS"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11752 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11753 cat <<End-of-File >conftest.c
11754 #include <stdlib.h>
11755 #include <unistd.h>
11756 #include <dirent.h>
11757 static int
11758 my_select(const struct dirent *foo) { return 0; }
11759 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11760 End-of-File
11761 (eval $ac_compile) 2>conftest.out
11762 cat conftest.out >&5
11763 if test -s conftest.out
11764 then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11767 else
11769 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772 $as_echo "yes" >&6; }
11774 rm -f conftest.*
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11777 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11778 cat <<End-of-File >conftest.c
11779 #include <stdlib.h>
11780 #include <unistd.h>
11781 #include <dirent.h>
11782 int main() { struct dirent d; d.d_off = 0; }
11783 End-of-File
11784 (eval $ac_compile) 2>conftest.out
11785 cat conftest.out >&5
11786 if test -s conftest.out
11787 then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11790 else
11792 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11795 $as_echo "yes" >&6; }
11797 rm -f conftest.*
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11800 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11801 if test "$cross_compiling" = "yes"; then
11802 ans=$printf_p_prefix
11803 echo "cross-compile -> \"$ans\"" >&5
11804 else
11805 cat <<End-of-File >conftest.c
11806 #include <stdio.h>
11807 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11808 End-of-File
11809 (eval $ac_compile) 2>&5
11810 (eval $ac_link) 2>&5
11811 ans=`./conftest`
11812 echo "./conftest -> \"$ans\"" >&5
11814 case "$ans"
11816 0x*)
11818 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11821 $as_echo "yes" >&6; }
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11827 esac
11828 rm -rf conftest conftest.*
11830 _do_type()
11832 # need to deal with this sort of cpp output ...
11833 # typedef long pid_t;
11834 # typedef unsigned int pid_t;
11835 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11836 # __extension__ typedef int pid_t;
11837 # typedef foo_t
11838 # pid_t;
11839 # typedef struct {
11840 # ....
11841 # } pid_t;
11842 # typedef ... *pid;
11843 # and chaining of the form
11844 # typedef long __pid_t;
11845 # typedef __pid_t pid_t;
11847 _raw=`$CPP conftest.c \
11848 | $SED \
11849 -e 's/[ ]__attribute__ ((.*));/;/' \
11850 -e 's/__extension__[ ][ ]*//' \
11851 | $AWK '
11852 /bozo/ { print; next }
11853 $1 == "typedef" { printf "%s",$0
11854 if ($NF ~ /;$/) {
11855 print ""
11856 next
11858 wantsemi = 1
11859 if ($0 ~ /{/) depth = 1
11860 next
11862 wantsemi == 1 { printf " %s",$0
11863 if ($0 ~ /{/) depth++
11864 if (depth) {
11865 if ($0 ~ /}/) depth--
11866 if (depth > 0) next
11868 if ($NF ~ /;$/) {
11869 print ""
11870 wantsemi = 0
11871 next
11873 }' \
11874 | $SED \
11875 -e 's/\*/* /g' \
11876 -e 's/^[ ]*//' \
11877 -e 's/;[ ]*$//' \
11878 | $AWK '
11879 $1 == "typedef" { map[$NF] = ""
11880 for (i = 2; i < NF; i++) {
11881 if (i == 2)
11882 map[$NF] = $i
11883 else
11884 map[$NF] = map[$NF] " " $i
11886 print $NF " -> " map[$NF] >"conftest.debug"
11887 next
11889 $2 == "bozo" { t = $1
11890 printf "best guess: %s",t >"conftest.debug"
11891 while (map[t] != "") {
11892 t = map[t]
11893 printf " -> %s",t >"conftest.debug"
11895 print "" >"conftest.debug"
11896 print t
11897 exit
11899 case "$_raw"
11901 int)
11902 _fmt='"d"'
11904 unsigned|'unsigned int')
11905 _fmt='"u"'
11907 long|'long int')
11908 _fmt='"ld"'
11910 'long long'|'long long int')
11911 if test $target_os = mingw; then
11912 _fmt='"I64d"'
11913 else
11914 _fmt='"lld"'
11917 'unsigned long'|'unsigned long int'|'long unsigned int')
11918 _fmt='"lu"'
11920 'unsigned long long'|'unsigned long long int')
11921 if test $target_os = mingw; then
11922 _fmt='"I64u"'
11923 else
11924 _fmt='"llu"'
11927 *\*) # pointer to a something
11928 _fmt='"p"'
11930 struct\ *) # not much can be done here ...
11931 _fmt='"p"'
11934 echo
11935 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11936 echo "... typedef mapping ..."
11937 cat conftest.debug
11938 rm -rf conftest conftest.*
11939 exit 1
11941 esac
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11945 $as_echo_n "checking printf type for pid_t... " >&6; }
11946 if test "$cross_compiling" = "yes"; then
11947 ans=$printf_fmt_pid
11948 echo "cross-compile -> \"$ans\"" >&5
11949 fmt_pid="$ans"
11950 else
11951 cat <<End-of-File >conftest.c
11952 #include <sys/types.h>
11953 #include <unistd.h>
11954 pid_t bozo;
11955 End-of-File
11956 _do_type
11957 fmt_pid="$_fmt"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11960 $as_echo "$fmt_pid" >&6; }
11962 rm -rf conftest.c conftest.debug
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11965 $as_echo_n "checking printf type for int64_t ... " >&6; }
11966 if test "$cross_compiling" = "yes"; then
11967 ans=$printf_fmt_int64
11968 echo "cross-compile -> \"$ans\"" >&5
11969 else
11970 cat <<End-of-File >conftest.c
11971 #include <stdio.h>
11972 #include <stdint.h>
11973 #include <inttypes.h>
11974 int main()
11976 printf("\"%s\"\n", __PRI64_PREFIX "d");
11977 return(0);
11979 End-of-File
11980 ans=''
11981 (eval $ac_link) 2>&5
11982 if test -x ./conftest
11983 then
11984 ans=`./conftest`
11985 echo "./conftest -> \"$ans\"" >&5
11987 if test -z "$ans"
11988 then
11989 cat <<End-of-File >conftest.c
11990 #include <stdio.h>
11991 #include <stdint.h>
11992 #include <string.h>
11993 int main()
11995 char buf[17];
11996 int64_t bozo = 0x12345678abcdLL;
11997 sprintf(buf, "%lx", bozo);
11998 if (strcmp(buf, "12345678abcd") == 0)
11999 printf("\"ld\"\n");
12000 else {
12001 sprintf(buf, "%llx", bozo);
12002 if (strcmp(buf, "12345678abcd") == 0)
12003 printf("\"lld\"\n");
12005 return(0);
12007 End-of-File
12008 (eval $ac_link) 2>&5
12009 if test -x ./conftest
12010 then
12011 ans=`./conftest`
12012 echo "./conftest -> \"$ans\"" >&5
12016 if test -z "$ans"
12017 then
12018 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
12019 rm -rf conftest conftest.*
12020 exit 1
12022 fmt_int64="$ans"
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
12024 $as_echo "\"$fmt_int64\"" >&6; }
12026 rm -rf conftest.* conftest
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
12029 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
12030 if test "$cross_compiling" = "yes"; then
12031 ans=$strtoint64
12032 echo "cross-compile -> \"$ans\"" >&5
12033 else
12034 cat <<End-of-File >conftest.c
12035 #include <stdio.h>
12036 #include <stdlib.h>
12037 main()
12039 long long int value = -1;
12040 value = strtol("1234567812345678", NULL, 16);
12041 if (value == 0x1234567812345678LL) {
12042 printf("strotol\n");
12043 exit(0);
12045 value = strtoll("1234567812345678", NULL, 16);
12046 if (value == 0x1234567812345678LL) {
12047 printf("strtoll\n");
12048 exit(0);
12050 exit(1);
12052 End-of-File
12053 (eval $ac_compile) 2>&5
12054 (eval $ac_link) 2>&5
12055 ans=`./conftest`
12056 echo "./conftest -> \"$ans\"" >&5
12058 case "$ans"
12060 strtol)
12061 $as_echo "#define strtoint64 strtol" >>confdefs.h
12063 $as_echo "#define strtouint64 strtoul" >>confdefs.h
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
12066 $as_echo "strtol" >&6; }
12068 strtoll)
12069 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12071 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
12074 $as_echo "strtoll" >&6; }
12077 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12079 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
12082 $as_echo "assuming strtoll" >&6; }
12084 esac
12085 rm -rf conftest conftest.*
12087 if test "$do_threads" = "check" -o "$do_threads" = "yes"
12088 then
12089 for ac_header in pthread.h
12090 do :
12091 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12092 if test "x$ac_cv_header_pthread_h" = xyes; then :
12093 cat >>confdefs.h <<_ACEOF
12094 #define HAVE_PTHREAD_H 1
12095 _ACEOF
12097 else
12099 if test "$do_threads" = "yes"
12100 then
12101 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
12106 done
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
12110 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113 #include <pthread.h>
12115 main ()
12117 pthread_mutex_t mymutex;
12119 return 0;
12121 _ACEOF
12122 if ac_fn_c_try_compile "$LINENO"; then :
12124 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12126 $as_echo "yes" >&6; }
12127 else
12129 if test "$do_threads" = "yes"
12130 then
12131 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
12141 $as_echo_n "checking where pthread_create() is defined... " >&6; }
12142 for cand in "" pthreads pthread ; do
12143 savedLIBS=$LIBS
12144 if test -n "$cand"
12145 then
12146 LIBS=`echo $LIBS -l$cand`
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12151 #include <pthread.h>
12154 main ()
12157 pthread_create(NULL, NULL, NULL, NULL);
12160 return 0;
12162 _ACEOF
12163 if ac_fn_c_try_link "$LINENO"; then :
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12165 $as_echo "lib${cand:-c}" >&6; }
12166 if test -z "$cand"
12167 then
12168 lib_for_pthreads="$cand"
12169 else
12170 lib_for_pthreads="-l$cand"
12172 LIBS=$savedLIBS
12173 break
12175 rm -f core conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$savedLIBS
12178 done
12181 if test "$ac_cv_header_pthread_h" = "yes"
12182 then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12184 $as_echo_n "checking printf type for pthread_t... " >&6; }
12185 cat <<End-of-File >conftest.c
12186 #include <pthread.h>
12187 pthread_t bozo;
12188 End-of-File
12189 _do_type
12190 fmt_pthread="$_fmt"
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12192 $as_echo "$fmt_pthread" >&6; }
12194 rm -rf conftest.c conftest.debug
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12197 $as_echo_n "checking if compiler supports __thread... " >&6; }
12198 if test $target_os = netbsd
12199 then
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202 #include <pthread.h>
12203 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12204 broken!
12205 #else
12206 __thread int x;
12207 #endif
12209 main ()
12213 return 0;
12215 _ACEOF
12216 if ac_fn_c_try_compile "$LINENO"; then :
12218 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220 $as_echo "yes" >&6; }
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 else
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12229 #include <pthread.h>
12230 __thread int x;
12232 main ()
12236 return 0;
12238 _ACEOF
12239 if ac_fn_c_try_compile "$LINENO"; then :
12241 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12243 $as_echo "yes" >&6; }
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; }
12248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12252 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255 #include <pthread.h>
12257 main ()
12259 pthread_barrier_t mybarrier;
12261 return 0;
12263 _ACEOF
12264 if ac_fn_c_try_compile "$LINENO"; then :
12266 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12268 $as_echo "yes" >&6; }
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12278 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12279 if test "$cross_compiling" = "yes"; then
12280 ans=$sizeof_suseconds_t
12281 echo "cross-compile -> \"$ans\"" >&5
12282 else
12283 cat <<End-of-File >conftest.c
12284 #include <sys/time.h>
12285 main() { printf("%d", (int)sizeof(suseconds_t)); }
12286 End-of-File
12287 (eval $ac_compile) 2>&5
12288 (eval $ac_link) 2>&5
12289 ans=`./conftest`
12290 echo "./conftest -> \"$ans\"" >&5
12291 rm -rf conftest conftest.*
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12294 $as_echo "$ans" >&6; }
12296 cat >>confdefs.h <<_ACEOF
12297 #define SIZEOF_SUSECONDS_T $ans
12298 _ACEOF
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12302 $as_echo_n "checking sizeof time_t... " >&6; }
12303 if test "$cross_compiling" = "yes"; then
12304 ans=$sizeof_time_t
12305 echo "cross-compile -> \"$ans\"" >&5
12306 else
12307 cat <<End-of-File >conftest.c
12308 #include <sys/time.h>
12309 main() { printf("%d", (int)sizeof(time_t)); }
12310 End-of-File
12311 (eval $ac_compile) 2>&5
12312 (eval $ac_link) 2>&5
12313 ans=`./conftest`
12314 echo "./conftest -> \"$ans\"" >&5
12315 rm -rf conftest conftest.*
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12318 $as_echo "$ans" >&6; }
12320 cat >>confdefs.h <<_ACEOF
12321 #define SIZEOF_TIME_T $ans
12322 _ACEOF
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12326 $as_echo_n "checking sizeof long... " >&6; }
12327 if test "$cross_compiling" = "yes"; then
12328 ans=$sizeof_long
12329 echo "cross-compile -> \"$ans\"" >&5
12330 else
12331 cat <<End-of-File >conftest.c
12332 #include <stdio.h>
12333 main() { printf("%d", (int)sizeof(long)); }
12334 End-of-File
12335 (eval $ac_compile) 2>&5
12336 (eval $ac_link) 2>&5
12337 ans=`./conftest`
12338 echo "./conftest -> \"$ans\"" >&5
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12341 $as_echo "$ans" >&6; }
12342 if test "$ans" = 4; then
12344 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12346 elif test "$ans" = 8; then
12348 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12350 else
12351 echo
12352 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12353 echo "sizeof(char *) -> $ans"
12354 rm -rf conftest conftest.*
12355 exit 1
12357 rm -rf conftest conftest.*
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12360 $as_echo_n "checking sizeof pointer... " >&6; }
12361 if test "$cross_compiling" = "yes"; then
12362 ans=$sizeof_pointer
12363 echo "cross-compile -> \"$ans\"" >&5
12364 else
12365 cat <<End-of-File >conftest.c
12366 #include <stdio.h>
12367 main() { printf("%d", (int)sizeof(char *)); }
12368 End-of-File
12369 (eval $ac_compile) 2>&5
12370 (eval $ac_link) 2>&5
12371 ans=`./conftest`
12372 echo "./conftest -> \"$ans\"" >&5
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12375 $as_echo "$ans" >&6; }
12376 if test "$ans" = 4; then
12378 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12380 PCP_PTR_SIZE=32
12381 elif test "$ans" = 8; then
12383 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12385 PCP_PTR_SIZE=64
12386 else
12387 echo
12388 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12389 echo "sizeof(char *) -> $ans"
12390 rm -rf conftest conftest.*
12391 exit 1
12393 rm -rf conftest conftest.*
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12396 $as_echo_n "checking sizeof int... " >&6; }
12397 if test "$cross_compiling" = "yes"; then
12398 ans=$sizeof_int
12399 echo "cross-compile -> \"$ans\"" >&5
12400 else
12401 cat <<End-of-File >conftest.c
12402 #include <stdio.h>
12403 main() { printf("%d", (int)sizeof(int)); }
12404 End-of-File
12405 (eval $ac_compile) 2>&5
12406 (eval $ac_link) 2>&5
12407 ans=`./conftest`
12408 echo "./conftest -> \"$ans\"" >&5
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12411 $as_echo "$ans" >&6; }
12412 if test "$ans" != 4
12413 then
12414 echo
12415 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12416 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12417 echo " the over-the-wire PDU formats"
12418 rm -rf conftest conftest.*
12419 exit 1
12421 rm -rf conftest conftest.*
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12424 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12425 if test "$cross_compiling" = "yes"; then
12426 ans=$bit_field_scheme
12427 echo "cross-compile -> \"$ans\"" >&5
12428 else
12429 cat <<End-of-File >conftest.c
12430 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12431 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12432 End-of-File
12433 (eval $ac_compile) 2>&5
12434 (eval $ac_link) 2>&5
12435 ans=`./conftest`
12436 echo "./conftest -> \"$ans\"" >&5
12438 case "$ans"
12440 1200*|*0012)
12441 # left-to-right starting from MSB (SGI cc on MIPS), or
12442 # left-to-right ending at LSB
12444 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447 $as_echo "yes" >&6; }
12449 2100*|*0021)
12450 # right-to-left ending at MSB, or
12451 # right-to-left starting from LSB (gcc in Intel)
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12457 $as_echo "unknown" >&6; }
12458 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12459 rm -f conftest conftest.*
12460 exit 1
12462 esac
12463 rm -rf conftest conftest.*
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12468 #include <stdlib.h>
12469 #include <unistd.h>
12472 main ()
12475 __uint64_t x = 0;
12476 double y = (double)x;
12479 return 0;
12481 _ACEOF
12482 if ac_fn_c_try_link "$LINENO"; then :
12484 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12487 rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12490 for ac_func in basename
12491 do :
12492 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12493 if test "x$ac_cv_func_basename" = xyes; then :
12494 cat >>confdefs.h <<_ACEOF
12495 #define HAVE_BASENAME 1
12496 _ACEOF
12499 done
12501 if test $ac_cv_func_basename = yes
12502 then
12504 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12507 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12509 lib_for_basename=""
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12512 $as_echo_n "checking for basename in -lgen... " >&6; }
12513 if ${ac_cv_lib_gen_basename+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-lgen $LIBS"
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12521 /* Override any GCC internal prototype to avoid an error.
12522 Use char because int might match the return type of a GCC
12523 builtin and then its argument prototype would still apply. */
12524 #ifdef __cplusplus
12525 extern "C"
12526 #endif
12527 char basename ();
12529 main ()
12531 return basename ();
12533 return 0;
12535 _ACEOF
12536 if ac_fn_c_try_link "$LINENO"; then :
12537 ac_cv_lib_gen_basename=yes
12538 else
12539 ac_cv_lib_gen_basename=no
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 LIBS=$ac_check_lib_save_LIBS
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12546 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12547 if test "x$ac_cv_lib_gen_basename" = xyes; then :
12548 cat >>confdefs.h <<_ACEOF
12549 #define HAVE_LIBGEN 1
12550 _ACEOF
12552 LIBS="-lgen $LIBS"
12556 if test $ac_cv_lib_gen_basename = yes
12557 then
12559 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12562 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12564 lib_for_basename="-lgen"
12565 else
12566 lib_for_basename="-lpcp"
12571 lib_for_clock_gettime=
12572 for ac_func in clock_gettime
12573 do :
12574 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12575 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12576 cat >>confdefs.h <<_ACEOF
12577 #define HAVE_CLOCK_GETTIME 1
12578 _ACEOF
12581 done
12583 if test $ac_cv_func_clock_gettime = no
12584 then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12586 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12587 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 ac_check_lib_save_LIBS=$LIBS
12591 LIBS="-lrt $LIBS"
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 char clock_gettime ();
12603 main ()
12605 return clock_gettime ();
12607 return 0;
12609 _ACEOF
12610 if ac_fn_c_try_link "$LINENO"; then :
12611 ac_cv_lib_rt_clock_gettime=yes
12612 else
12613 ac_cv_lib_rt_clock_gettime=no
12615 rm -f core conftest.err conftest.$ac_objext \
12616 conftest$ac_exeext conftest.$ac_ext
12617 LIBS=$ac_check_lib_save_LIBS
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12620 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12621 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12622 cat >>confdefs.h <<_ACEOF
12623 #define HAVE_LIBRT 1
12624 _ACEOF
12626 LIBS="-lrt $LIBS"
12630 if test $ac_cv_lib_rt_clock_gettime = yes
12631 then
12633 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12635 lib_for_rt=-lrt
12640 lib_for_dlopen=
12641 for ac_func in dlopen
12642 do :
12643 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12644 if test "x$ac_cv_func_dlopen" = xyes; then :
12645 cat >>confdefs.h <<_ACEOF
12646 #define HAVE_DLOPEN 1
12647 _ACEOF
12650 done
12652 if test $ac_cv_func_dlopen = no
12653 then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12655 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12656 if ${ac_cv_lib_dl_dlopen+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 ac_check_lib_save_LIBS=$LIBS
12660 LIBS="-ldl $LIBS"
12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12664 /* Override any GCC internal prototype to avoid an error.
12665 Use char because int might match the return type of a GCC
12666 builtin and then its argument prototype would still apply. */
12667 #ifdef __cplusplus
12668 extern "C"
12669 #endif
12670 char dlopen ();
12672 main ()
12674 return dlopen ();
12676 return 0;
12678 _ACEOF
12679 if ac_fn_c_try_link "$LINENO"; then :
12680 ac_cv_lib_dl_dlopen=yes
12681 else
12682 ac_cv_lib_dl_dlopen=no
12684 rm -f core conftest.err conftest.$ac_objext \
12685 conftest$ac_exeext conftest.$ac_ext
12686 LIBS=$ac_check_lib_save_LIBS
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12689 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12690 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12691 cat >>confdefs.h <<_ACEOF
12692 #define HAVE_LIBDL 1
12693 _ACEOF
12695 LIBS="-ldl $LIBS"
12699 if test $ac_cv_lib_dl_dlopen = yes
12700 then
12702 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12704 lib_for_dlopen=-ldl
12709 lib_for_math=
12710 for ac_func in flog10
12711 do :
12712 ac_fn_c_check_func "$LINENO" "flog10" "ac_cv_func_flog10"
12713 if test "x$ac_cv_func_flog10" = xyes; then :
12714 cat >>confdefs.h <<_ACEOF
12715 #define HAVE_FLOG10 1
12716 _ACEOF
12719 done
12721 if test $ac_cv_func_flog10 = no
12722 then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12724 $as_echo_n "checking for flog10 in -lm... " >&6; }
12725 if ${ac_cv_lib_m_flog10+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 ac_check_lib_save_LIBS=$LIBS
12729 LIBS="-lm $LIBS"
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12733 /* Override any GCC internal prototype to avoid an error.
12734 Use char because int might match the return type of a GCC
12735 builtin and then its argument prototype would still apply. */
12736 #ifdef __cplusplus
12737 extern "C"
12738 #endif
12739 char flog10 ();
12741 main ()
12743 return flog10 ();
12745 return 0;
12747 _ACEOF
12748 if ac_fn_c_try_link "$LINENO"; then :
12749 ac_cv_lib_m_flog10=yes
12750 else
12751 ac_cv_lib_m_flog10=no
12753 rm -f core conftest.err conftest.$ac_objext \
12754 conftest$ac_exeext conftest.$ac_ext
12755 LIBS=$ac_check_lib_save_LIBS
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12758 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12759 if test "x$ac_cv_lib_m_flog10" = xyes; then :
12760 cat >>confdefs.h <<_ACEOF
12761 #define HAVE_LIBM 1
12762 _ACEOF
12764 LIBS="-lm $LIBS"
12768 if test $ac_cv_lib_m_flog10 = yes
12769 then
12771 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12773 lib_for_math=-lm
12775 else
12777 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12780 for ac_func in pow
12781 do :
12782 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12783 if test "x$ac_cv_func_pow" = xyes; then :
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_POW 1
12786 _ACEOF
12789 done
12791 if test $ac_cv_func_pow = no
12792 then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12794 $as_echo_n "checking for pow in -lm... " >&6; }
12795 if ${ac_cv_lib_m_pow+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 ac_check_lib_save_LIBS=$LIBS
12799 LIBS="-lm $LIBS"
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h. */
12803 /* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 char pow ();
12811 main ()
12813 return pow ();
12815 return 0;
12817 _ACEOF
12818 if ac_fn_c_try_link "$LINENO"; then :
12819 ac_cv_lib_m_pow=yes
12820 else
12821 ac_cv_lib_m_pow=no
12823 rm -f core conftest.err conftest.$ac_objext \
12824 conftest$ac_exeext conftest.$ac_ext
12825 LIBS=$ac_check_lib_save_LIBS
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12828 $as_echo "$ac_cv_lib_m_pow" >&6; }
12829 if test "x$ac_cv_lib_m_pow" = xyes; then :
12830 cat >>confdefs.h <<_ACEOF
12831 #define HAVE_LIBM 1
12832 _ACEOF
12834 LIBS="-lm $LIBS"
12838 if test $ac_cv_lib_m_pow = yes
12839 then
12841 $as_echo "#define HAVE_POW 1" >>confdefs.h
12843 lib_for_math=-lm
12845 else
12847 $as_echo "#define HAVE_POW 1" >>confdefs.h
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12851 $as_echo_n "checking for fpclassify()... " >&6; }
12852 ac_cv_func_fpclassify=no
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12856 #include <math.h>
12859 main ()
12862 double x = 123.456;
12863 if (fpclassify(x) == FP_NAN) exit(1);
12866 return 0;
12868 _ACEOF
12869 if ac_fn_c_try_link "$LINENO"; then :
12870 ac_cv_func_fpclassify=yes
12872 rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext conftest.$ac_ext
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12875 $as_echo "$ac_cv_func_fpclassify" >&6; }
12876 if test $ac_cv_func_fpclassify = no
12877 then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12879 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12880 savedLIBS=$LIBS
12881 LIBS=-lm
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12885 #include <math.h>
12888 main ()
12891 double x = 123.456;
12892 if (fpclassify(x) == FP_NAN) exit(1);
12895 return 0;
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 ac_cv_func_fpclassify=yes
12901 rm -f core conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12904 $as_echo "$ac_cv_func_fpclassify" >&6; }
12905 if test $ac_cv_func_fpclassify = yes
12906 then
12907 lib_for_math=-lm
12909 LIBS=$savedLIBS
12911 if test $ac_cv_func_fpclassify = yes
12912 then
12914 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12916 else
12917 for ac_func in isnan
12918 do :
12919 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12920 if test "x$ac_cv_func_isnan" = xyes; then :
12921 cat >>confdefs.h <<_ACEOF
12922 #define HAVE_ISNAN 1
12923 _ACEOF
12926 done
12928 if test $ac_cv_func_isnan = no
12929 then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12931 $as_echo_n "checking for isnan in -lm... " >&6; }
12932 if ${ac_cv_lib_m_isnan+:} false; then :
12933 $as_echo_n "(cached) " >&6
12934 else
12935 ac_check_lib_save_LIBS=$LIBS
12936 LIBS="-lm $LIBS"
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12940 /* Override any GCC internal prototype to avoid an error.
12941 Use char because int might match the return type of a GCC
12942 builtin and then its argument prototype would still apply. */
12943 #ifdef __cplusplus
12944 extern "C"
12945 #endif
12946 char isnan ();
12948 main ()
12950 return isnan ();
12952 return 0;
12954 _ACEOF
12955 if ac_fn_c_try_link "$LINENO"; then :
12956 ac_cv_lib_m_isnan=yes
12957 else
12958 ac_cv_lib_m_isnan=no
12960 rm -f core conftest.err conftest.$ac_objext \
12961 conftest$ac_exeext conftest.$ac_ext
12962 LIBS=$ac_check_lib_save_LIBS
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12965 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12966 if test "x$ac_cv_lib_m_isnan" = xyes; then :
12967 cat >>confdefs.h <<_ACEOF
12968 #define HAVE_LIBM 1
12969 _ACEOF
12971 LIBS="-lm $LIBS"
12975 if test $ac_cv_lib_m_isnan = yes
12976 then
12978 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12980 lib_for_math=-lm
12983 for ac_func in isnanf
12984 do :
12985 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
12986 if test "x$ac_cv_func_isnanf" = xyes; then :
12987 cat >>confdefs.h <<_ACEOF
12988 #define HAVE_ISNANF 1
12989 _ACEOF
12992 done
12994 if test $ac_cv_func_isnanf = no
12995 then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
12997 $as_echo_n "checking for isnanf in -lm... " >&6; }
12998 if ${ac_cv_lib_m_isnanf+:} false; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 ac_check_lib_save_LIBS=$LIBS
13002 LIBS="-lm $LIBS"
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 char isnanf ();
13014 main ()
13016 return isnanf ();
13018 return 0;
13020 _ACEOF
13021 if ac_fn_c_try_link "$LINENO"; then :
13022 ac_cv_lib_m_isnanf=yes
13023 else
13024 ac_cv_lib_m_isnanf=no
13026 rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_lib_save_LIBS
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
13031 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
13032 if test "x$ac_cv_lib_m_isnanf" = xyes; then :
13033 cat >>confdefs.h <<_ACEOF
13034 #define HAVE_LIBM 1
13035 _ACEOF
13037 LIBS="-lm $LIBS"
13041 if test $ac_cv_lib_m_isnanf = yes
13042 then
13044 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
13046 lib_for_math=-lm
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13054 #include <signal.h>
13056 main ()
13058 SIG_PF x;
13060 return 0;
13062 _ACEOF
13063 if ac_fn_c_try_link "$LINENO"; then :
13065 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
13068 rm -f core conftest.err conftest.$ac_objext \
13069 conftest$ac_exeext conftest.$ac_ext
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073 #include <signal.h>
13075 main ()
13077 int x = SA_SIGINFO;
13079 return 0;
13081 _ACEOF
13082 if ac_fn_c_try_link "$LINENO"; then :
13084 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092 #include <signal.h>
13094 main ()
13096 int x = SIGPIPE;
13098 return 0;
13100 _ACEOF
13101 if ac_fn_c_try_link "$LINENO"; then :
13103 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
13106 rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 #include <signal.h>
13113 main ()
13115 int x = SIGHUP;
13117 return 0;
13119 _ACEOF
13120 if ac_fn_c_try_link "$LINENO"; then :
13122 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
13125 rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13130 #include <signal.h>
13132 main ()
13134 int x = SIGBUS;
13136 return 0;
13138 _ACEOF
13139 if ac_fn_c_try_link "$LINENO"; then :
13141 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149 #include <sys/wait.h>
13151 main ()
13153 typedef void (*SIGRET)(int);
13154 SIGRET x = SIG_IGN;
13157 return 0;
13159 _ACEOF
13160 if ac_fn_c_try_link "$LINENO"; then :
13162 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13165 rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13168 have_stat_type=false
13169 have_stat_name=false
13170 if test $have_stat_name = false
13171 then
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13174 #include <sys/stat.h>
13176 _ACEOF
13177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13178 $EGREP "[ ]st_mtimespec" >/dev/null 2>&1; then :
13179 have_stat_name=true;
13181 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13184 rm -f conftest*
13187 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
13188 then
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191 #include <sys/stat.h>
13193 _ACEOF
13194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13195 $EGREP "[ ]st_mtime" >/dev/null 2>&1; then :
13196 have_stat_name=true;
13198 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13201 rm -f conftest*
13204 if test $have_stat_type = false
13205 then
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13208 #include <sys/stat.h>
13210 _ACEOF
13211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13212 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13213 have_stat_type=true;
13215 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13218 rm -f conftest*
13221 if test $have_stat_type = false
13222 then
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13225 #include <sys/stat.h>
13227 _ACEOF
13228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13229 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13230 have_stat_type=true;
13232 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13235 rm -f conftest*
13238 if test $have_stat_type = false
13239 then
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242 #include <sys/stat.h>
13244 _ACEOF
13245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13246 $EGREP "timespec[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13247 have_stat_type=true;
13249 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13252 rm -f conftest*
13255 if test $have_stat_type = false
13256 then
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 #include <sys/stat.h>
13261 _ACEOF
13262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13263 $EGREP "time_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13264 have_stat_type=true;
13266 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13269 rm -f conftest*
13272 if test $have_stat_type = false
13273 then
13274 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13275 rm -rf conftest conftest.*
13276 exit 1
13280 pcp_etc_dir=`eval echo $sysconfdir`
13281 pcp_etc_dir=`eval echo $pcp_etc_dir`
13283 pcp_saslconf_dir=`eval echo $sysconfdir/sasl2`
13284 pcp_saslconf_dir=`eval echo $pcp_saslconf_dir`
13286 pcp_sysconf_dir=`eval echo $sysconfdir/pcp`
13287 pcp_sysconf_dir=`eval echo $pcp_sysconf_dir`
13289 pcp_pmcdconf_path=$pcp_sysconf_dir/pmcd/pmcd.conf
13290 pcp_pmcdrclocal_path=$pcp_sysconf_dir/pmcd/rc.local
13291 pcp_pmcdoptions_path=$pcp_sysconf_dir/pmcd/pmcd.options
13292 pcp_pmwebdoptions_path=$pcp_sysconf_dir/pmwebd/pmwebd.options
13293 pcp_pmmgroptions_path=$pcp_sysconf_dir/pmmgr/pmmgr.options
13294 pcp_pmproxyoptions_path=$pcp_sysconf_dir/pmproxy/pmproxy.options
13295 pcp_pmiecontrol_path=$pcp_sysconf_dir/pmie/control
13296 pcp_pmsnapcontrol_path=$pcp_sysconf_dir/pmsnap/control
13297 pcp_pmloggercontrol_path=$pcp_sysconf_dir/pmlogger/control
13308 pcp_share_dir=`eval echo $datarootdir/pcp`
13309 pcp_share_dir=`eval echo $pcp_share_dir`
13312 pcp_binadm_dir=`eval echo $libexecdir/pcp/bin`
13313 pcp_binadm_dir=`eval echo $pcp_binadm_dir`
13316 pcp_var_dir=`eval echo $localstatedir/lib/pcp`
13317 pcp_var_dir=`eval echo $pcp_var_dir`
13321 # Check whether --with-configdir was given.
13322 if test "${with_configdir+set}" = set; then :
13323 withval=$with_configdir; pcp_config_dir=$withval
13324 else
13325 pcp_config_dir=$pcp_var_dir/config
13329 pcp_pmdas_dir=$pcp_var_dir/pmdas
13332 pcp_lib_dir=`eval echo $libdir`
13333 pcp_lib_dir=`eval echo $pcp_lib_dir`
13334 pcp_lib32_dir=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13339 # Check whether --with-perl_installdirs was given.
13340 if test "${with_perl_installdirs+set}" = set; then :
13341 withval=$with_perl_installdirs; perl_installdirs=$withval
13342 else
13343 perl_installdirs=vendor
13346 perl_installdirs=`eval echo $perl_installdirs`
13347 perl_installdirs=`eval echo $perl_installdirs`
13350 # Check whether --with-perl_install_base was given.
13351 if test "${with_perl_install_base+set}" = set; then :
13352 withval=$with_perl_install_base; perl_install_base=$withval
13353 else
13354 perl_install_base=$prefix
13357 perl_install_base=`eval echo $perl_install_base`
13358 perl_install_base=`eval echo $perl_install_base`
13362 # Check whether --with-python_prefix was given.
13363 if test "${with_python_prefix+set}" = set; then :
13364 withval=$with_python_prefix; python_prefix=$withval
13365 else
13366 python_prefix=$prefix
13369 python_prefix=`eval echo $python_prefix`
13370 python_prefix=`eval echo $python_prefix`
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13374 $as_echo_n "checking for X... " >&6; }
13377 # Check whether --with-x was given.
13378 if test "${with_x+set}" = set; then :
13379 withval=$with_x;
13382 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13383 if test "x$with_x" = xno; then
13384 # The user explicitly disabled X.
13385 have_x=disabled
13386 else
13387 case $x_includes,$x_libraries in #(
13388 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13389 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 # One or both of the vars are not set, and there is no cached value.
13393 ac_x_includes=no ac_x_libraries=no
13394 rm -f -r conftest.dir
13395 if mkdir conftest.dir; then
13396 cd conftest.dir
13397 cat >Imakefile <<'_ACEOF'
13398 incroot:
13399 @echo incroot='${INCROOT}'
13400 usrlibdir:
13401 @echo usrlibdir='${USRLIBDIR}'
13402 libdir:
13403 @echo libdir='${LIBDIR}'
13404 _ACEOF
13405 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13406 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13407 for ac_var in incroot usrlibdir libdir; do
13408 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13409 done
13410 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13411 for ac_extension in a so sl dylib la dll; do
13412 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13413 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13414 ac_im_usrlibdir=$ac_im_libdir; break
13416 done
13417 # Screen out bogus values from the imake configuration. They are
13418 # bogus both because they are the default anyway, and because
13419 # using them would break gcc on systems where it needs fixed includes.
13420 case $ac_im_incroot in
13421 /usr/include) ac_x_includes= ;;
13422 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13423 esac
13424 case $ac_im_usrlibdir in
13425 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13426 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13427 esac
13429 cd ..
13430 rm -f -r conftest.dir
13433 # Standard set of common directories for X headers.
13434 # Check X11 before X11Rn because it is often a symlink to the current release.
13435 ac_x_header_dirs='
13436 /usr/X11/include
13437 /usr/X11R7/include
13438 /usr/X11R6/include
13439 /usr/X11R5/include
13440 /usr/X11R4/include
13442 /usr/include/X11
13443 /usr/include/X11R7
13444 /usr/include/X11R6
13445 /usr/include/X11R5
13446 /usr/include/X11R4
13448 /usr/local/X11/include
13449 /usr/local/X11R7/include
13450 /usr/local/X11R6/include
13451 /usr/local/X11R5/include
13452 /usr/local/X11R4/include
13454 /usr/local/include/X11
13455 /usr/local/include/X11R7
13456 /usr/local/include/X11R6
13457 /usr/local/include/X11R5
13458 /usr/local/include/X11R4
13460 /usr/X386/include
13461 /usr/x386/include
13462 /usr/XFree86/include/X11
13464 /usr/include
13465 /usr/local/include
13466 /usr/unsupported/include
13467 /usr/athena/include
13468 /usr/local/x11r5/include
13469 /usr/lpp/Xamples/include
13471 /usr/openwin/include
13472 /usr/openwin/share/include'
13474 if test "$ac_x_includes" = no; then
13475 # Guess where to find include files, by looking for Xlib.h.
13476 # First, try using that file with no special directory specified.
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 #include <X11/Xlib.h>
13480 _ACEOF
13481 if ac_fn_c_try_cpp "$LINENO"; then :
13482 # We can compile using X headers with no special include directory.
13483 ac_x_includes=
13484 else
13485 for ac_dir in $ac_x_header_dirs; do
13486 if test -r "$ac_dir/X11/Xlib.h"; then
13487 ac_x_includes=$ac_dir
13488 break
13490 done
13492 rm -f conftest.err conftest.i conftest.$ac_ext
13493 fi # $ac_x_includes = no
13495 if test "$ac_x_libraries" = no; then
13496 # Check for the libraries.
13497 # See if we find them without any special options.
13498 # Don't add to $LIBS permanently.
13499 ac_save_LIBS=$LIBS
13500 LIBS="-lX11 $LIBS"
13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13503 #include <X11/Xlib.h>
13505 main ()
13507 XrmInitialize ()
13509 return 0;
13511 _ACEOF
13512 if ac_fn_c_try_link "$LINENO"; then :
13513 LIBS=$ac_save_LIBS
13514 # We can link X programs with no special library path.
13515 ac_x_libraries=
13516 else
13517 LIBS=$ac_save_LIBS
13518 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13520 # Don't even attempt the hair of trying to link an X program!
13521 for ac_extension in a so sl dylib la dll; do
13522 if test -r "$ac_dir/libX11.$ac_extension"; then
13523 ac_x_libraries=$ac_dir
13524 break 2
13526 done
13527 done
13529 rm -f core conftest.err conftest.$ac_objext \
13530 conftest$ac_exeext conftest.$ac_ext
13531 fi # $ac_x_libraries = no
13533 case $ac_x_includes,$ac_x_libraries in #(
13534 no,* | *,no | *\'*)
13535 # Didn't find X, or a directory has "'" in its name.
13536 ac_cv_have_x="have_x=no";; #(
13538 # Record where we found X for the cache.
13539 ac_cv_have_x="have_x=yes\
13540 ac_x_includes='$ac_x_includes'\
13541 ac_x_libraries='$ac_x_libraries'"
13542 esac
13544 ;; #(
13545 *) have_x=yes;;
13546 esac
13547 eval "$ac_cv_have_x"
13548 fi # $with_x != no
13550 if test "$have_x" != yes; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13552 $as_echo "$have_x" >&6; }
13553 no_x=yes
13554 else
13555 # If each of the values was on the command line, it overrides each guess.
13556 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13557 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13558 # Update the cache value to reflect the command line values.
13559 ac_cv_have_x="have_x=yes\
13560 ac_x_includes='$x_includes'\
13561 ac_x_libraries='$x_libraries'"
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13563 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13566 if test "$no_x" = yes; then
13567 # Not all programs may use this symbol, but it does not hurt to define it.
13569 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13571 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13572 else
13573 if test -n "$x_includes"; then
13574 X_CFLAGS="$X_CFLAGS -I$x_includes"
13577 # It would also be nice to do this for all -L options, not just this one.
13578 if test -n "$x_libraries"; then
13579 X_LIBS="$X_LIBS -L$x_libraries"
13580 # For Solaris; some versions of Sun CC require a space after -R and
13581 # others require no space. Words are not sufficient . . . .
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13583 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13584 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13585 ac_xsave_c_werror_flag=$ac_c_werror_flag
13586 ac_c_werror_flag=yes
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13591 main ()
13595 return 0;
13597 _ACEOF
13598 if ac_fn_c_try_link "$LINENO"; then :
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13601 X_LIBS="$X_LIBS -R$x_libraries"
13602 else
13603 LIBS="$ac_xsave_LIBS -R $x_libraries"
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13608 main ()
13612 return 0;
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"; then :
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13617 $as_echo "yes" >&6; }
13618 X_LIBS="$X_LIBS -R $x_libraries"
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13621 $as_echo "neither works" >&6; }
13623 rm -f core conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext conftest.$ac_ext
13626 rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 ac_c_werror_flag=$ac_xsave_c_werror_flag
13629 LIBS=$ac_xsave_LIBS
13632 # Check for system-dependent libraries X programs must link with.
13633 # Do this before checking for the system-independent R6 libraries
13634 # (-lICE), since we may need -lsocket or whatever for X linking.
13636 if test "$ISC" = yes; then
13637 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13638 else
13639 # Martyn Johnson says this is needed for Ultrix, if the X
13640 # libraries were built with DECnet support. And Karl Berry says
13641 # the Alpha needs dnet_stub (dnet does not exist).
13642 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char XOpenDisplay ();
13654 main ()
13656 return XOpenDisplay ();
13658 return 0;
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13663 else
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13665 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13666 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-ldnet $LIBS"
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char dnet_ntoa ();
13682 main ()
13684 return dnet_ntoa ();
13686 return 0;
13688 _ACEOF
13689 if ac_fn_c_try_link "$LINENO"; then :
13690 ac_cv_lib_dnet_dnet_ntoa=yes
13691 else
13692 ac_cv_lib_dnet_dnet_ntoa=no
13694 rm -f core conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696 LIBS=$ac_check_lib_save_LIBS
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13699 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13700 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13701 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13704 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13706 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13707 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 ac_check_lib_save_LIBS=$LIBS
13711 LIBS="-ldnet_stub $LIBS"
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13715 /* Override any GCC internal prototype to avoid an error.
13716 Use char because int might match the return type of a GCC
13717 builtin and then its argument prototype would still apply. */
13718 #ifdef __cplusplus
13719 extern "C"
13720 #endif
13721 char dnet_ntoa ();
13723 main ()
13725 return dnet_ntoa ();
13727 return 0;
13729 _ACEOF
13730 if ac_fn_c_try_link "$LINENO"; then :
13731 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13732 else
13733 ac_cv_lib_dnet_stub_dnet_ntoa=no
13735 rm -f core conftest.err conftest.$ac_objext \
13736 conftest$ac_exeext conftest.$ac_ext
13737 LIBS=$ac_check_lib_save_LIBS
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13740 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13741 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13742 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13747 rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 LIBS="$ac_xsave_LIBS"
13751 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13752 # to get the SysV transport functions.
13753 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13754 # needs -lnsl.
13755 # The nsl library prevents programs from opening the X display
13756 # on Irix 5.2, according to T.E. Dickey.
13757 # The functions gethostbyname, getservbyname, and inet_addr are
13758 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13759 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13760 if test "x$ac_cv_func_gethostbyname" = xyes; then :
13764 if test $ac_cv_func_gethostbyname = no; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13766 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13767 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 ac_check_lib_save_LIBS=$LIBS
13771 LIBS="-lnsl $LIBS"
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13778 #ifdef __cplusplus
13779 extern "C"
13780 #endif
13781 char gethostbyname ();
13783 main ()
13785 return gethostbyname ();
13787 return 0;
13789 _ACEOF
13790 if ac_fn_c_try_link "$LINENO"; then :
13791 ac_cv_lib_nsl_gethostbyname=yes
13792 else
13793 ac_cv_lib_nsl_gethostbyname=no
13795 rm -f core conftest.err conftest.$ac_objext \
13796 conftest$ac_exeext conftest.$ac_ext
13797 LIBS=$ac_check_lib_save_LIBS
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13800 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13801 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13802 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13805 if test $ac_cv_lib_nsl_gethostbyname = no; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13807 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13808 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 ac_check_lib_save_LIBS=$LIBS
13812 LIBS="-lbsd $LIBS"
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13819 #ifdef __cplusplus
13820 extern "C"
13821 #endif
13822 char gethostbyname ();
13824 main ()
13826 return gethostbyname ();
13828 return 0;
13830 _ACEOF
13831 if ac_fn_c_try_link "$LINENO"; then :
13832 ac_cv_lib_bsd_gethostbyname=yes
13833 else
13834 ac_cv_lib_bsd_gethostbyname=no
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13838 LIBS=$ac_check_lib_save_LIBS
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13841 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13842 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13843 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13849 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13850 # socket/setsockopt and other routines are undefined under SCO ODT
13851 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13852 # on later versions), says Simon Leinen: it contains gethostby*
13853 # variants that don't use the name server (or something). -lsocket
13854 # must be given before -lnsl if both are needed. We assume that
13855 # if connect needs -lnsl, so does gethostbyname.
13856 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13857 if test "x$ac_cv_func_connect" = xyes; then :
13861 if test $ac_cv_func_connect = no; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13863 $as_echo_n "checking for connect in -lsocket... " >&6; }
13864 if ${ac_cv_lib_socket_connect+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 ac_check_lib_save_LIBS=$LIBS
13868 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13872 /* Override any GCC internal prototype to avoid an error.
13873 Use char because int might match the return type of a GCC
13874 builtin and then its argument prototype would still apply. */
13875 #ifdef __cplusplus
13876 extern "C"
13877 #endif
13878 char connect ();
13880 main ()
13882 return connect ();
13884 return 0;
13886 _ACEOF
13887 if ac_fn_c_try_link "$LINENO"; then :
13888 ac_cv_lib_socket_connect=yes
13889 else
13890 ac_cv_lib_socket_connect=no
13892 rm -f core conftest.err conftest.$ac_objext \
13893 conftest$ac_exeext conftest.$ac_ext
13894 LIBS=$ac_check_lib_save_LIBS
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13897 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13898 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13899 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13904 # Guillermo Gomez says -lposix is necessary on A/UX.
13905 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13906 if test "x$ac_cv_func_remove" = xyes; then :
13910 if test $ac_cv_func_remove = no; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13912 $as_echo_n "checking for remove in -lposix... " >&6; }
13913 if ${ac_cv_lib_posix_remove+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 ac_check_lib_save_LIBS=$LIBS
13917 LIBS="-lposix $LIBS"
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13921 /* Override any GCC internal prototype to avoid an error.
13922 Use char because int might match the return type of a GCC
13923 builtin and then its argument prototype would still apply. */
13924 #ifdef __cplusplus
13925 extern "C"
13926 #endif
13927 char remove ();
13929 main ()
13931 return remove ();
13933 return 0;
13935 _ACEOF
13936 if ac_fn_c_try_link "$LINENO"; then :
13937 ac_cv_lib_posix_remove=yes
13938 else
13939 ac_cv_lib_posix_remove=no
13941 rm -f core conftest.err conftest.$ac_objext \
13942 conftest$ac_exeext conftest.$ac_ext
13943 LIBS=$ac_check_lib_save_LIBS
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13946 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13947 if test "x$ac_cv_lib_posix_remove" = xyes; then :
13948 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13953 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13954 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13955 if test "x$ac_cv_func_shmat" = xyes; then :
13959 if test $ac_cv_func_shmat = no; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13961 $as_echo_n "checking for shmat in -lipc... " >&6; }
13962 if ${ac_cv_lib_ipc_shmat+:} false; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 ac_check_lib_save_LIBS=$LIBS
13966 LIBS="-lipc $LIBS"
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13970 /* Override any GCC internal prototype to avoid an error.
13971 Use char because int might match the return type of a GCC
13972 builtin and then its argument prototype would still apply. */
13973 #ifdef __cplusplus
13974 extern "C"
13975 #endif
13976 char shmat ();
13978 main ()
13980 return shmat ();
13982 return 0;
13984 _ACEOF
13985 if ac_fn_c_try_link "$LINENO"; then :
13986 ac_cv_lib_ipc_shmat=yes
13987 else
13988 ac_cv_lib_ipc_shmat=no
13990 rm -f core conftest.err conftest.$ac_objext \
13991 conftest$ac_exeext conftest.$ac_ext
13992 LIBS=$ac_check_lib_save_LIBS
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13995 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13996 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
13997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14003 # Check for libraries that X11R6 Xt/Xaw programs need.
14004 ac_save_LDFLAGS=$LDFLAGS
14005 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14006 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14007 # check for ICE first), but we must link in the order -lSM -lICE or
14008 # we get undefined symbols. So assume we have SM if we have ICE.
14009 # These have to be linked with before -lX11, unlike the other
14010 # libraries we check for below, so use a different variable.
14011 # John Interrante, Karl Berry
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14013 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14014 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 ac_check_lib_save_LIBS=$LIBS
14018 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14020 /* end confdefs.h. */
14022 /* Override any GCC internal prototype to avoid an error.
14023 Use char because int might match the return type of a GCC
14024 builtin and then its argument prototype would still apply. */
14025 #ifdef __cplusplus
14026 extern "C"
14027 #endif
14028 char IceConnectionNumber ();
14030 main ()
14032 return IceConnectionNumber ();
14034 return 0;
14036 _ACEOF
14037 if ac_fn_c_try_link "$LINENO"; then :
14038 ac_cv_lib_ICE_IceConnectionNumber=yes
14039 else
14040 ac_cv_lib_ICE_IceConnectionNumber=no
14042 rm -f core conftest.err conftest.$ac_objext \
14043 conftest$ac_exeext conftest.$ac_ext
14044 LIBS=$ac_check_lib_save_LIBS
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14047 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14048 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
14049 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14052 LDFLAGS=$ac_save_LDFLAGS
14056 pcp_x11_incflags=$X_CFLAGS
14058 pcp_x11_libflags=$X_LIBS
14060 pcp_x11_extra=$X_EXTRA_LIBS
14062 pcp_x11_pre=$X_PRE_LIBS
14065 have_manpages=false
14066 have_gzipped_manpages=false
14067 have_bzip2ed_manpages=false
14068 have_lzmaed_manpages=false
14069 have_xzed_manpages=false
14070 need_old_tbl_header=false
14071 man_header=
14072 pcp_man_dir=`eval echo $mandir`
14073 pcp_man_dir=`eval echo $pcp_man_dir`
14075 for d in /usr/man /usr/share/man $pcp_man_dir
14077 for sd in man1 sman1
14079 if test -f $d/$sd/man.1.gz
14080 then
14081 have_gzipped_manpages=true
14082 have_manpages=true
14083 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
14084 break
14085 elif test -f $d/$sd/man.1.bz2
14086 then
14087 have_bzip2ed_manpages=true
14088 have_manpages=true
14089 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
14090 break
14091 elif test -f $d/$sd/man.1.lzma
14092 then
14093 have_lzmaed_manpages=true
14094 have_manpages=true
14095 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
14096 break
14097 elif test -f $d/$sd/man.1.xz
14098 then
14099 have_xzed_manpages=true
14100 have_manpages=true
14101 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
14102 break
14103 elif test -f $d/$sd/man.1
14104 then
14105 man_header=`head -1 $d/$sd/man.1`
14106 have_manpages=true
14107 break
14109 done
14110 done
14111 if test x"$man_header" = "x'\\\" t" -o x"$man_header" = "x'\\\" te" ; then
14112 need_old_tbl_header=true
14122 pcp_bin_dir=`eval echo $bindir`
14123 pcp_bin_dir=`eval echo $pcp_bin_dir`
14126 pcp_sbin_dir=`eval echo $sbindir`
14127 pcp_sbin_dir=`eval echo $pcp_sbin_dir`
14130 pcp_inc_dir=`eval echo $includedir/pcp`
14131 pcp_inc_dir=`eval echo $pcp_inc_dir`
14134 if test $target_os = linux; then
14135 pcp_books_dir=`eval echo $datarootdir/doc/pcp-doc`
14136 else
14137 pcp_books_dir=`eval echo $datarootdir/doc/pcp`
14139 pcp_books_dir=`eval echo $pcp_books_dir`
14140 pcp_html_dir=`eval echo $pcp_books_dir/html`
14144 if test $target_os = linux; then
14145 pcp_icons_dir=`eval echo $datarootdir/pcp-gui/pixmaps`
14146 else
14147 pcp_icons_dir=`eval echo $datarootdir/pcp/pixmaps`
14149 pcp_icons_dir=`eval echo $pcp_icons_dir`
14152 pcp_desktop_dir=`eval echo $datarootdir/applications`
14153 pcp_desktop_dir=`eval echo $pcp_desktop_dir`
14157 # Check whether --with-rcdir was given.
14158 if test "${with_rcdir+set}" = set; then :
14159 withval=$with_rcdir; pcp_rc_dir=$withval
14160 else
14162 if $enable_systemd
14163 then
14164 pcp_rc_dir="$pcp_share_dir/lib"
14165 else
14166 pcp_rc_dir="$pcp_etc_dir/init.d"
14173 # Check whether --with-sysconfigdir was given.
14174 if test "${with_sysconfigdir+set}" = set; then :
14175 withval=$with_sysconfigdir; pcp_sysconfig_dir=$withval
14176 else
14177 pcp_sysconfig_dir=$pcp_etc_dir/sysconfig
14183 # Check whether --with-logdir was given.
14184 if test "${with_logdir+set}" = set; then :
14185 withval=$with_logdir; pcp_log_dir=$withval
14186 else
14187 pcp_log_dir=$localstatedir/log/pcp
14190 pcp_log_dir=`eval echo $pcp_log_dir`
14191 pcp_log_dir=`eval echo $pcp_log_dir`
14195 # Check whether --with-rundir was given.
14196 if test "${with_rundir+set}" = set; then :
14197 withval=$with_rundir; pcp_run_dir=$withval
14198 else
14199 pcp_run_dir=$localstatedir/run/pcp
14202 pcp_run_dir=`eval echo $pcp_run_dir`
14203 pcp_run_dir=`eval echo $pcp_run_dir`
14207 # Check whether --with-tmpdir was given.
14208 if test "${with_tmpdir+set}" = set; then :
14209 withval=$with_tmpdir; pcp_tmpfile_dir=$withval
14210 else
14211 pcp_tmpfile_dir=$localstatedir/tmp
14214 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14215 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14218 pcp_tmp_dir=`eval echo $pcp_var_dir/tmp`
14222 # Check whether --with-docdir was given.
14223 if test "${with_docdir+set}" = set; then :
14224 withval=$with_docdir; pcp_doc_dir=$withval
14225 else
14226 PACKAGE=pcp-${PACKAGE_VERSION}; pcp_doc_dir=$docdir
14229 pcp_doc_dir=`eval echo $pcp_doc_dir`
14230 pcp_doc_dir=`eval echo $pcp_doc_dir`
14234 # Check whether --with-demosdir was given.
14235 if test "${with_demosdir+set}" = set; then :
14236 withval=$with_demosdir; pcp_demos_dir=$withval
14237 else
14238 pcp_demos_dir=$pcp_share_dir/demos
14243 if test -z "$XCONFIRM"
14244 then
14245 # Extract the first word of "xconfirm", so it can be a program name with args.
14246 set dummy xconfirm; ac_word=$2
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14248 $as_echo_n "checking for $ac_word... " >&6; }
14249 if ${ac_cv_path_ac_xconfirm_prog+:} false; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 case $ac_xconfirm_prog in
14253 [\\/]* | ?:[\\/]*)
14254 ac_cv_path_ac_xconfirm_prog="$ac_xconfirm_prog" # Let the user override the test with a path.
14257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14258 for as_dir in $PATH
14260 IFS=$as_save_IFS
14261 test -z "$as_dir" && as_dir=.
14262 for ac_exec_ext in '' $ac_executable_extensions; do
14263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14264 ac_cv_path_ac_xconfirm_prog="$as_dir/$ac_word$ac_exec_ext"
14265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 break 2
14268 done
14269 done
14270 IFS=$as_save_IFS
14272 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
14274 esac
14276 ac_xconfirm_prog=$ac_cv_path_ac_xconfirm_prog
14277 if test -n "$ac_xconfirm_prog"; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14279 $as_echo "$ac_xconfirm_prog" >&6; }
14280 else
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 $as_echo "no" >&6; }
14286 else
14287 ac_xconfirm_prog=$XCONFIRM
14291 if test "$ac_cv_header_fcntl_h" = "yes"
14292 then
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14294 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14297 #include <fcntl.h>
14299 main ()
14301 int i = FNDELAY;
14303 return 0;
14305 _ACEOF
14306 if ac_fn_c_try_compile "$LINENO"; then :
14308 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311 $as_echo "yes" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 if test "$ac_cv_header_libzfs_h" = "yes"
14320 then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14322 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 #include <libzfs.h>
14327 main ()
14329 libzfs_handle_t *zh;
14330 zpool_handle_t *zp;
14331 nvlist_t *np;
14332 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14335 return 0;
14337 _ACEOF
14338 if ac_fn_c_try_compile "$LINENO"; then :
14340 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14343 $as_echo "yes" >&6; }
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14351 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354 #include <libzfs.h>
14356 main ()
14358 libzfs_handle_t *zh;
14359 zpool_handle_t *zp;
14360 nvlist_t *np;
14361 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14364 return 0;
14366 _ACEOF
14367 if ac_fn_c_try_compile "$LINENO"; then :
14369 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14372 $as_echo "yes" >&6; }
14373 else
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14381 then
14382 enable_secure=true
14384 saved_CFLAGS="$CFLAGS"
14385 saved_CPPFLAGS="$CPPFLAGS"
14386 NSS_INC_DIRS="-I/usr/include/nss -I/usr/include/nss3"
14387 NSPR_INC_DIRS="-I/usr/include/nspr -I/usr/include/nspr4"
14388 CFLAGS="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14389 CPPFLAGS="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14391 for ac_header in nss/nss.h
14392 do :
14393 ac_fn_c_check_header_mongrel "$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14394 if test "x$ac_cv_header_nss_nss_h" = xyes; then :
14395 cat >>confdefs.h <<_ACEOF
14396 #define HAVE_NSS_NSS_H 1
14397 _ACEOF
14398 NSSCFLAGS=-I/usr/include/nss
14399 else
14401 for ac_header in nss3/nss.h
14402 do :
14403 ac_fn_c_check_header_mongrel "$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14404 if test "x$ac_cv_header_nss3_nss_h" = xyes; then :
14405 cat >>confdefs.h <<_ACEOF
14406 #define HAVE_NSS3_NSS_H 1
14407 _ACEOF
14408 NSSCFLAGS=-I/usr/include/nss3
14409 else
14411 enable_secure=false
14412 if test "$do_secure" = "yes"
14413 then
14414 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14419 done
14424 done
14428 for ac_header in nspr/nspr.h
14429 do :
14430 ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14431 if test "x$ac_cv_header_nspr_nspr_h" = xyes; then :
14432 cat >>confdefs.h <<_ACEOF
14433 #define HAVE_NSPR_NSPR_H 1
14434 _ACEOF
14435 NSPRCFLAGS=-I/usr/include/nspr
14436 else
14438 for ac_header in nspr4/nspr.h
14439 do :
14440 ac_fn_c_check_header_mongrel "$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14441 if test "x$ac_cv_header_nspr4_nspr_h" = xyes; then :
14442 cat >>confdefs.h <<_ACEOF
14443 #define HAVE_NSPR4_NSPR_H 1
14444 _ACEOF
14445 NSPRCFLAGS=-I/usr/include/nspr4
14446 else
14448 enable_secure=false
14449 if test "$do_secure" = "yes"
14450 then
14451 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14456 done
14461 done
14465 for ac_header in sasl/sasl.h
14466 do :
14467 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14468 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
14469 cat >>confdefs.h <<_ACEOF
14470 #define HAVE_SASL_SASL_H 1
14471 _ACEOF
14472 SASLCFLAGS=-I/usr/include/sasl
14473 else
14475 enable_secure=false
14476 if test "$do_secure" = "yes"
14477 then
14478 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14483 done
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14488 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14489 if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
14490 $as_echo_n "(cached) " >&6
14491 else
14492 ac_check_lib_save_LIBS=$LIBS
14493 LIBS="-lsasl2 $LIBS"
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14497 /* Override any GCC internal prototype to avoid an error.
14498 Use char because int might match the return type of a GCC
14499 builtin and then its argument prototype would still apply. */
14500 #ifdef __cplusplus
14501 extern "C"
14502 #endif
14503 char sasl_server_init ();
14505 main ()
14507 return sasl_server_init ();
14509 return 0;
14511 _ACEOF
14512 if ac_fn_c_try_link "$LINENO"; then :
14513 ac_cv_lib_sasl2_sasl_server_init=yes
14514 else
14515 ac_cv_lib_sasl2_sasl_server_init=no
14517 rm -f core conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
14519 LIBS=$ac_check_lib_save_LIBS
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14522 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14523 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
14524 lib_for_sasl="-lsasl2"
14525 else
14527 enable_secure=false
14528 if test "$do_secure" = "yes"
14529 then
14530 as_fn_error $? "cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14538 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14539 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false; then :
14540 $as_echo_n "(cached) " >&6
14541 else
14542 ac_check_lib_save_LIBS=$LIBS
14543 LIBS="-lssl $LIBS"
14544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14547 /* Override any GCC internal prototype to avoid an error.
14548 Use char because int might match the return type of a GCC
14549 builtin and then its argument prototype would still apply. */
14550 #ifdef __cplusplus
14551 extern "C"
14552 #endif
14553 char SSL_ImportFD ();
14555 main ()
14557 return SSL_ImportFD ();
14559 return 0;
14561 _ACEOF
14562 if ac_fn_c_try_link "$LINENO"; then :
14563 ac_cv_lib_ssl_SSL_ImportFD=yes
14564 else
14565 ac_cv_lib_ssl_SSL_ImportFD=no
14567 rm -f core conftest.err conftest.$ac_objext \
14568 conftest$ac_exeext conftest.$ac_ext
14569 LIBS=$ac_check_lib_save_LIBS
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14572 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14573 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes; then :
14574 lib_for_ssl="-lssl"
14575 else
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14578 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14579 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-lssl3 $LIBS"
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14587 /* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14590 #ifdef __cplusplus
14591 extern "C"
14592 #endif
14593 char SSL_ImportFD ();
14595 main ()
14597 return SSL_ImportFD ();
14599 return 0;
14601 _ACEOF
14602 if ac_fn_c_try_link "$LINENO"; then :
14603 ac_cv_lib_ssl3_SSL_ImportFD=yes
14604 else
14605 ac_cv_lib_ssl3_SSL_ImportFD=no
14607 rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14609 LIBS=$ac_check_lib_save_LIBS
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14612 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14613 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes; then :
14614 lib_for_ssl="-lssl3"
14615 else
14617 enable_secure=false
14618 if test "$do_secure" = "yes"
14619 then
14620 as_fn_error $? "cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14631 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14632 if ${ac_cv_lib_nss_NSS_Init+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 ac_check_lib_save_LIBS=$LIBS
14636 LIBS="-lnss $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 NSS_Init ();
14648 main ()
14650 return NSS_Init ();
14652 return 0;
14654 _ACEOF
14655 if ac_fn_c_try_link "$LINENO"; then :
14656 ac_cv_lib_nss_NSS_Init=yes
14657 else
14658 ac_cv_lib_nss_NSS_Init=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_nss_NSS_Init" >&5
14665 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14666 if test "x$ac_cv_lib_nss_NSS_Init" = xyes; then :
14667 lib_for_nss="-lnss"
14668 else
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14671 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14672 if ${ac_cv_lib_nss3_NSS_Init+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674 else
14675 ac_check_lib_save_LIBS=$LIBS
14676 LIBS="-lnss3 $LIBS"
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14680 /* Override any GCC internal prototype to avoid an error.
14681 Use char because int might match the return type of a GCC
14682 builtin and then its argument prototype would still apply. */
14683 #ifdef __cplusplus
14684 extern "C"
14685 #endif
14686 char NSS_Init ();
14688 main ()
14690 return NSS_Init ();
14692 return 0;
14694 _ACEOF
14695 if ac_fn_c_try_link "$LINENO"; then :
14696 ac_cv_lib_nss3_NSS_Init=yes
14697 else
14698 ac_cv_lib_nss3_NSS_Init=no
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702 LIBS=$ac_check_lib_save_LIBS
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14705 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14706 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes; then :
14707 lib_for_nss="-lnss3"
14708 else
14710 enable_secure=false
14711 if test "$do_secure" = "yes"
14712 then
14713 as_fn_error $? "cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14724 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14725 if ${ac_cv_lib_nspr_PR_Init+:} false; then :
14726 $as_echo_n "(cached) " >&6
14727 else
14728 ac_check_lib_save_LIBS=$LIBS
14729 LIBS="-lnspr $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 PR_Init ();
14741 main ()
14743 return PR_Init ();
14745 return 0;
14747 _ACEOF
14748 if ac_fn_c_try_link "$LINENO"; then :
14749 ac_cv_lib_nspr_PR_Init=yes
14750 else
14751 ac_cv_lib_nspr_PR_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_nspr_PR_Init" >&5
14758 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14759 if test "x$ac_cv_lib_nspr_PR_Init" = xyes; then :
14760 lib_for_nspr="-lnspr"
14761 else
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14764 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14765 if ${ac_cv_lib_nspr4_PR_Init+:} false; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 ac_check_lib_save_LIBS=$LIBS
14769 LIBS="-lnspr4 $LIBS"
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14773 /* Override any GCC internal prototype to avoid an error.
14774 Use char because int might match the return type of a GCC
14775 builtin and then its argument prototype would still apply. */
14776 #ifdef __cplusplus
14777 extern "C"
14778 #endif
14779 char PR_Init ();
14781 main ()
14783 return PR_Init ();
14785 return 0;
14787 _ACEOF
14788 if ac_fn_c_try_link "$LINENO"; then :
14789 ac_cv_lib_nspr4_PR_Init=yes
14790 else
14791 ac_cv_lib_nspr4_PR_Init=no
14793 rm -f core conftest.err conftest.$ac_objext \
14794 conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14798 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14799 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes; then :
14800 lib_for_nspr="-lnspr4"
14801 else
14803 enable_secure=false
14804 if test "$do_secure" = "yes"
14805 then
14806 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14816 if test "$enable_secure" = "true"
14817 then
14819 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14824 CPPFLAGS="$saved_CPPFLAGS"
14825 CFLAGS="$saved_CFLAGS"
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14829 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14830 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false; then :
14831 $as_echo_n "(cached) " >&6
14832 else
14833 ac_check_lib_save_LIBS=$LIBS
14834 LIBS="-latomic $LIBS"
14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836 /* end confdefs.h. */
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14841 #ifdef __cplusplus
14842 extern "C"
14843 #endif
14844 char __atomic_fetch_add_4 ();
14846 main ()
14848 return __atomic_fetch_add_4 ();
14850 return 0;
14852 _ACEOF
14853 if ac_fn_c_try_link "$LINENO"; then :
14854 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14855 else
14856 ac_cv_lib_atomic___atomic_fetch_add_4=no
14858 rm -f core conftest.err conftest.$ac_objext \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14863 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14864 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes; then :
14865 lib_for_atomic="-latomic"
14870 if test -f /usr/include/sn/arsess.h
14871 then
14872 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
14873 else
14874 pcp_mpi_dirs=
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14879 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 #include <sys/types.h>
14884 #ifdef HAVE_SYS_SOCKET_H
14885 #include <sys/socket.h>
14886 #endif
14887 #ifdef HAVE_SYS_UN_H
14888 #include <sys/un.h>
14889 #endif
14892 main ()
14894 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14896 return 0;
14898 _ACEOF
14899 if ac_fn_c_try_compile "$LINENO"; then :
14901 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14903 $as_echo "yes" >&6; }
14904 else
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906 $as_echo "no" >&6; }
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14911 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14915 #include <sys/types.h>
14916 #ifdef HAVE_SYS_SOCKET_H
14917 #include <sys/socket.h>
14918 #endif
14919 #ifdef HAVE_SYS_UN_H
14920 #include <sys/un.h>
14921 #endif
14924 main ()
14926 struct ucred ucred; ucred.uid = 0;
14928 return 0;
14930 _ACEOF
14931 if ac_fn_c_try_compile "$LINENO"; then :
14933 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14935 $as_echo "yes" >&6; }
14936 else
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14938 $as_echo "no" >&6; }
14940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14943 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14947 #include <time.h>
14950 main ()
14952 struct timespec foo;
14954 return 0;
14956 _ACEOF
14957 if ac_fn_c_try_compile "$LINENO"; then :
14959 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14961 $as_echo "yes" >&6; }
14962 else
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14964 $as_echo "no" >&6; }
14966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
14969 $as_echo_n "checking for altzone in time.h... " >&6; }
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14973 #include <time.h>
14976 main ()
14978 time_t az = altzone;
14980 return 0;
14982 _ACEOF
14983 if ac_fn_c_try_compile "$LINENO"; then :
14985 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14987 $as_echo "yes" >&6; }
14988 else
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 $as_echo "no" >&6; }
14992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
14995 $as_echo_n "checking if strftime knows about %z... " >&6; }
14996 if test "$cross_compiling" = yes; then :
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
14999 else
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15003 #include <time.h>
15004 int main () {
15005 char b[32]="";
15006 time_t t = time(NULL);
15007 struct tm * t1 = localtime (&t);
15008 if (strftime (b, 32, "%z", t1) < 3)
15009 return (1);
15010 if (strcmp(b, "%z") == 0)
15011 return(1);
15012 return (0);
15015 _ACEOF
15016 if ac_fn_c_try_run "$LINENO"; then :
15018 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15020 $as_echo "yes" >&6; }
15021 else
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15023 $as_echo "no" >&6; }
15025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15026 conftest.$ac_objext conftest.beam conftest.$ac_ext
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
15031 $as_echo_n "checking if strerror_r returns char *... " >&6; }
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <string.h>
15036 main ()
15038 strerror_r(0, NULL, 0)[0];
15040 return 0;
15042 _ACEOF
15043 if ac_fn_c_try_compile "$LINENO"; then :
15045 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15047 $as_echo "yes" >&6; }
15048 else
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 savedLIBS=$LIBS
15055 LIBS=
15056 lib_for_curses=
15057 lib_for_readline=
15058 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
15059 if test "x$ac_cv_func_readline" = xyes; then :
15061 else
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15064 $as_echo_n "checking for readline in -lreadline... " >&6; }
15065 if ${ac_cv_lib_readline_readline+:} false; then :
15066 $as_echo_n "(cached) " >&6
15067 else
15068 ac_check_lib_save_LIBS=$LIBS
15069 LIBS="-lreadline $LIBS"
15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071 /* end confdefs.h. */
15073 /* Override any GCC internal prototype to avoid an error.
15074 Use char because int might match the return type of a GCC
15075 builtin and then its argument prototype would still apply. */
15076 #ifdef __cplusplus
15077 extern "C"
15078 #endif
15079 char readline ();
15081 main ()
15083 return readline ();
15085 return 0;
15087 _ACEOF
15088 if ac_fn_c_try_link "$LINENO"; then :
15089 ac_cv_lib_readline_readline=yes
15090 else
15091 ac_cv_lib_readline_readline=no
15093 rm -f core conftest.err conftest.$ac_objext \
15094 conftest$ac_exeext conftest.$ac_ext
15095 LIBS=$ac_check_lib_save_LIBS
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15098 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15099 if test "x$ac_cv_lib_readline_readline" = xyes; then :
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_LIBREADLINE 1
15102 _ACEOF
15104 LIBS="-lreadline $LIBS"
15106 else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
15109 $as_echo_n "checking for add_history in -lreadline... " >&6; }
15110 if ${ac_cv_lib_readline_add_history+:} false; then :
15111 $as_echo_n "(cached) " >&6
15112 else
15113 ac_check_lib_save_LIBS=$LIBS
15114 LIBS="-lreadline -lcurses $LIBS"
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15118 /* Override any GCC internal prototype to avoid an error.
15119 Use char because int might match the return type of a GCC
15120 builtin and then its argument prototype would still apply. */
15121 #ifdef __cplusplus
15122 extern "C"
15123 #endif
15124 char add_history ();
15126 main ()
15128 return add_history ();
15130 return 0;
15132 _ACEOF
15133 if ac_fn_c_try_link "$LINENO"; then :
15134 ac_cv_lib_readline_add_history=yes
15135 else
15136 ac_cv_lib_readline_add_history=no
15138 rm -f core conftest.err conftest.$ac_objext \
15139 conftest$ac_exeext conftest.$ac_ext
15140 LIBS=$ac_check_lib_save_LIBS
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
15143 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
15144 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
15145 cat >>confdefs.h <<_ACEOF
15146 #define HAVE_LIBREADLINE 1
15147 _ACEOF
15149 LIBS="-lreadline $LIBS"
15159 if test $ac_cv_func_readline = yes
15160 then
15162 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15164 elif test $ac_cv_lib_readline_readline = yes
15165 then
15167 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15169 lib_for_readline=-lreadline
15170 elif test $ac_cv_lib_readline_add_history = yes
15171 then
15173 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15175 lib_for_curses=-lcurses
15176 lib_for_readline=-lreadline
15180 LIBS=$savedLIBS
15183 pkg_failed=no
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15185 $as_echo_n "checking for zlib... " >&6; }
15187 if test -n "$zlib_CFLAGS"; then
15188 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
15189 elif test -n "$PKG_CONFIG"; then
15190 if test -n "$PKG_CONFIG" && \
15191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15192 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15193 ac_status=$?
15194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15195 test $ac_status = 0; }; then
15196 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15197 test "x$?" != "x0" && pkg_failed=yes
15198 else
15199 pkg_failed=yes
15201 else
15202 pkg_failed=untried
15204 if test -n "$zlib_LIBS"; then
15205 pkg_cv_zlib_LIBS="$zlib_LIBS"
15206 elif test -n "$PKG_CONFIG"; then
15207 if test -n "$PKG_CONFIG" && \
15208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15209 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15210 ac_status=$?
15211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15212 test $ac_status = 0; }; then
15213 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15214 test "x$?" != "x0" && pkg_failed=yes
15215 else
15216 pkg_failed=yes
15218 else
15219 pkg_failed=untried
15224 if test $pkg_failed = yes; then
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 $as_echo "no" >&6; }
15228 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15229 _pkg_short_errors_supported=yes
15230 else
15231 _pkg_short_errors_supported=no
15233 if test $_pkg_short_errors_supported = yes; then
15234 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15235 else
15236 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15238 # Put the nasty error message in config.log where it belongs
15239 echo "$zlib_PKG_ERRORS" >&5
15241 have_zlib=false
15242 elif test $pkg_failed = untried; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15244 $as_echo "no" >&6; }
15245 have_zlib=false
15246 else
15247 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
15248 zlib_LIBS=$pkg_cv_zlib_LIBS
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15250 $as_echo "yes" >&6; }
15251 have_zlib=true
15253 HAVE_ZLIB=$have_zlib
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15257 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15261 #include <netdb.h>
15262 int test = AI_ADDRCONFIG;
15265 main ()
15270 return 0;
15272 _ACEOF
15273 if ac_fn_c_try_compile "$LINENO"; then :
15275 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15277 $as_echo "yes" >&6; }
15278 else
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15280 $as_echo "no" >&6; }
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 have_parfait=false
15286 if test -f ./build/tar/parfait.tar.gz
15287 then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15289 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15290 have_parfait=true
15294 have_vector=false
15295 if test -f ./build/tar/vector.tar.gz
15296 then
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15298 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15299 have_vector=true
15303 have_webjs=false
15304 if test -f ./build/tar/webjs.tar.gz
15305 then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15307 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15308 have_webjs=true
15315 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"
15317 cat >confcache <<\_ACEOF
15318 # This file is a shell script that caches the results of configure
15319 # tests run on this system so they can be shared between configure
15320 # scripts and configure runs, see configure's option --config-cache.
15321 # It is not useful on other systems. If it contains results you don't
15322 # want to keep, you may remove or edit it.
15324 # config.status only pays attention to the cache file if you give it
15325 # the --recheck option to rerun configure.
15327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15329 # following values.
15331 _ACEOF
15333 # The following way of writing the cache mishandles newlines in values,
15334 # but we know of no workaround that is simple, portable, and efficient.
15335 # So, we kill variables containing newlines.
15336 # Ultrix sh set writes to stderr and can't be redirected directly,
15337 # and sets the high bit in the cache file unless we assign to the vars.
15339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15340 eval ac_val=\$$ac_var
15341 case $ac_val in #(
15342 *${as_nl}*)
15343 case $ac_var in #(
15344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15346 esac
15347 case $ac_var in #(
15348 _ | IFS | as_nl) ;; #(
15349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15350 *) { eval $ac_var=; unset $ac_var;} ;;
15351 esac ;;
15352 esac
15353 done
15355 (set) 2>&1 |
15356 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15357 *${as_nl}ac_space=\ *)
15358 # `set' does not quote correctly, so add quotes: double-quote
15359 # substitution turns \\\\ into \\, and sed turns \\ into \.
15360 sed -n \
15361 "s/'/'\\\\''/g;
15362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15363 ;; #(
15365 # `set' quotes correctly as required by POSIX, so do not add quotes.
15366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15368 esac |
15369 sort
15371 sed '
15372 /^ac_cv_env_/b end
15373 t clear
15374 :clear
15375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15376 t end
15377 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15378 :end' >>confcache
15379 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15380 if test -w "$cache_file"; then
15381 if test "x$cache_file" != "x/dev/null"; then
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15383 $as_echo "$as_me: updating cache $cache_file" >&6;}
15384 if test ! -f "$cache_file" || test -h "$cache_file"; then
15385 cat confcache >"$cache_file"
15386 else
15387 case $cache_file in #(
15388 */* | ?:*)
15389 mv -f confcache "$cache_file"$$ &&
15390 mv -f "$cache_file"$$ "$cache_file" ;; #(
15392 mv -f confcache "$cache_file" ;;
15393 esac
15396 else
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15398 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15401 rm -f confcache
15403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15404 # Let make expand exec_prefix.
15405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15407 DEFS=-DHAVE_CONFIG_H
15409 ac_libobjs=
15410 ac_ltlibobjs=
15412 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15413 # 1. Remove the extension, and $U if already installed.
15414 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15415 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15416 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15417 # will be set to the directory where LIBOBJS objects are built.
15418 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15419 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15420 done
15421 LIBOBJS=$ac_libobjs
15423 LTLIBOBJS=$ac_ltlibobjs
15427 : "${CONFIG_STATUS=./config.status}"
15428 ac_write_fail=0
15429 ac_clean_files_save=$ac_clean_files
15430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15432 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15433 as_write_fail=0
15434 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15435 #! $SHELL
15436 # Generated by $as_me.
15437 # Run this file to recreate the current configuration.
15438 # Compiler output produced by configure, useful for debugging
15439 # configure, is in config.log if it exists.
15441 debug=false
15442 ac_cs_recheck=false
15443 ac_cs_silent=false
15445 SHELL=\${CONFIG_SHELL-$SHELL}
15446 export SHELL
15447 _ASEOF
15448 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15449 ## -------------------- ##
15450 ## M4sh Initialization. ##
15451 ## -------------------- ##
15453 # Be more Bourne compatible
15454 DUALCASE=1; export DUALCASE # for MKS sh
15455 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15456 emulate sh
15457 NULLCMD=:
15458 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15459 # is contrary to our usage. Disable this feature.
15460 alias -g '${1+"$@"}'='"$@"'
15461 setopt NO_GLOB_SUBST
15462 else
15463 case `(set -o) 2>/dev/null` in #(
15464 *posix*) :
15465 set -o posix ;; #(
15466 *) :
15468 esac
15472 as_nl='
15474 export as_nl
15475 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15476 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15477 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15478 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15479 # Prefer a ksh shell builtin over an external printf program on Solaris,
15480 # but without wasting forks for bash or zsh.
15481 if test -z "$BASH_VERSION$ZSH_VERSION" \
15482 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15483 as_echo='print -r --'
15484 as_echo_n='print -rn --'
15485 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15486 as_echo='printf %s\n'
15487 as_echo_n='printf %s'
15488 else
15489 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15490 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15491 as_echo_n='/usr/ucb/echo -n'
15492 else
15493 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15494 as_echo_n_body='eval
15495 arg=$1;
15496 case $arg in #(
15497 *"$as_nl"*)
15498 expr "X$arg" : "X\\(.*\\)$as_nl";
15499 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15500 esac;
15501 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15503 export as_echo_n_body
15504 as_echo_n='sh -c $as_echo_n_body as_echo'
15506 export as_echo_body
15507 as_echo='sh -c $as_echo_body as_echo'
15510 # The user is always right.
15511 if test "${PATH_SEPARATOR+set}" != set; then
15512 PATH_SEPARATOR=:
15513 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15514 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15515 PATH_SEPARATOR=';'
15520 # IFS
15521 # We need space, tab and new line, in precisely that order. Quoting is
15522 # there to prevent editors from complaining about space-tab.
15523 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15524 # splitting by setting IFS to empty value.)
15525 IFS=" "" $as_nl"
15527 # Find who we are. Look in the path if we contain no directory separator.
15528 as_myself=
15529 case $0 in #((
15530 *[\\/]* ) as_myself=$0 ;;
15531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15532 for as_dir in $PATH
15534 IFS=$as_save_IFS
15535 test -z "$as_dir" && as_dir=.
15536 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15537 done
15538 IFS=$as_save_IFS
15541 esac
15542 # We did not find ourselves, most probably we were run as `sh COMMAND'
15543 # in which case we are not to be found in the path.
15544 if test "x$as_myself" = x; then
15545 as_myself=$0
15547 if test ! -f "$as_myself"; then
15548 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15549 exit 1
15552 # Unset variables that we do not need and which cause bugs (e.g. in
15553 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15554 # suppresses any "Segmentation fault" message there. '((' could
15555 # trigger a bug in pdksh 5.2.14.
15556 for as_var in BASH_ENV ENV MAIL MAILPATH
15557 do eval test x\${$as_var+set} = xset \
15558 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15559 done
15560 PS1='$ '
15561 PS2='> '
15562 PS4='+ '
15564 # NLS nuisances.
15565 LC_ALL=C
15566 export LC_ALL
15567 LANGUAGE=C
15568 export LANGUAGE
15570 # CDPATH.
15571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15574 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15575 # ----------------------------------------
15576 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15577 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15578 # script with STATUS, using 1 if that was 0.
15579 as_fn_error ()
15581 as_status=$1; test $as_status -eq 0 && as_status=1
15582 if test "$4"; then
15583 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15584 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15586 $as_echo "$as_me: error: $2" >&2
15587 as_fn_exit $as_status
15588 } # as_fn_error
15591 # as_fn_set_status STATUS
15592 # -----------------------
15593 # Set $? to STATUS, without forking.
15594 as_fn_set_status ()
15596 return $1
15597 } # as_fn_set_status
15599 # as_fn_exit STATUS
15600 # -----------------
15601 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15602 as_fn_exit ()
15604 set +e
15605 as_fn_set_status $1
15606 exit $1
15607 } # as_fn_exit
15609 # as_fn_unset VAR
15610 # ---------------
15611 # Portably unset VAR.
15612 as_fn_unset ()
15614 { eval $1=; unset $1;}
15616 as_unset=as_fn_unset
15617 # as_fn_append VAR VALUE
15618 # ----------------------
15619 # Append the text in VALUE to the end of the definition contained in VAR. Take
15620 # advantage of any shell optimizations that allow amortized linear growth over
15621 # repeated appends, instead of the typical quadratic growth present in naive
15622 # implementations.
15623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15624 eval 'as_fn_append ()
15626 eval $1+=\$2
15628 else
15629 as_fn_append ()
15631 eval $1=\$$1\$2
15633 fi # as_fn_append
15635 # as_fn_arith ARG...
15636 # ------------------
15637 # Perform arithmetic evaluation on the ARGs, and store the result in the
15638 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15639 # must be portable across $(()) and expr.
15640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15641 eval 'as_fn_arith ()
15643 as_val=$(( $* ))
15645 else
15646 as_fn_arith ()
15648 as_val=`expr "$@" || test $? -eq 1`
15650 fi # as_fn_arith
15653 if expr a : '\(a\)' >/dev/null 2>&1 &&
15654 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15655 as_expr=expr
15656 else
15657 as_expr=false
15660 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15661 as_basename=basename
15662 else
15663 as_basename=false
15666 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15667 as_dirname=dirname
15668 else
15669 as_dirname=false
15672 as_me=`$as_basename -- "$0" ||
15673 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15674 X"$0" : 'X\(//\)$' \| \
15675 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15676 $as_echo X/"$0" |
15677 sed '/^.*\/\([^/][^/]*\)\/*$/{
15678 s//\1/
15681 /^X\/\(\/\/\)$/{
15682 s//\1/
15685 /^X\/\(\/\).*/{
15686 s//\1/
15689 s/.*/./; q'`
15691 # Avoid depending upon Character Ranges.
15692 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15693 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15694 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15695 as_cr_digits='0123456789'
15696 as_cr_alnum=$as_cr_Letters$as_cr_digits
15698 ECHO_C= ECHO_N= ECHO_T=
15699 case `echo -n x` in #(((((
15700 -n*)
15701 case `echo 'xy\c'` in
15702 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15703 xy) ECHO_C='\c';;
15704 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15705 ECHO_T=' ';;
15706 esac;;
15708 ECHO_N='-n';;
15709 esac
15711 rm -f conf$$ conf$$.exe conf$$.file
15712 if test -d conf$$.dir; then
15713 rm -f conf$$.dir/conf$$.file
15714 else
15715 rm -f conf$$.dir
15716 mkdir conf$$.dir 2>/dev/null
15718 if (echo >conf$$.file) 2>/dev/null; then
15719 if ln -s conf$$.file conf$$ 2>/dev/null; then
15720 as_ln_s='ln -s'
15721 # ... but there are two gotchas:
15722 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15723 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15724 # In both cases, we have to default to `cp -pR'.
15725 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15726 as_ln_s='cp -pR'
15727 elif ln conf$$.file conf$$ 2>/dev/null; then
15728 as_ln_s=ln
15729 else
15730 as_ln_s='cp -pR'
15732 else
15733 as_ln_s='cp -pR'
15735 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15736 rmdir conf$$.dir 2>/dev/null
15739 # as_fn_mkdir_p
15740 # -------------
15741 # Create "$as_dir" as a directory, including parents if necessary.
15742 as_fn_mkdir_p ()
15745 case $as_dir in #(
15746 -*) as_dir=./$as_dir;;
15747 esac
15748 test -d "$as_dir" || eval $as_mkdir_p || {
15749 as_dirs=
15750 while :; do
15751 case $as_dir in #(
15752 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15753 *) as_qdir=$as_dir;;
15754 esac
15755 as_dirs="'$as_qdir' $as_dirs"
15756 as_dir=`$as_dirname -- "$as_dir" ||
15757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15758 X"$as_dir" : 'X\(//\)[^/]' \| \
15759 X"$as_dir" : 'X\(//\)$' \| \
15760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15761 $as_echo X"$as_dir" |
15762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15763 s//\1/
15766 /^X\(\/\/\)[^/].*/{
15767 s//\1/
15770 /^X\(\/\/\)$/{
15771 s//\1/
15774 /^X\(\/\).*/{
15775 s//\1/
15778 s/.*/./; q'`
15779 test -d "$as_dir" && break
15780 done
15781 test -z "$as_dirs" || eval "mkdir $as_dirs"
15782 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15785 } # as_fn_mkdir_p
15786 if mkdir -p . 2>/dev/null; then
15787 as_mkdir_p='mkdir -p "$as_dir"'
15788 else
15789 test -d ./-p && rmdir ./-p
15790 as_mkdir_p=false
15794 # as_fn_executable_p FILE
15795 # -----------------------
15796 # Test if FILE is an executable regular file.
15797 as_fn_executable_p ()
15799 test -f "$1" && test -x "$1"
15800 } # as_fn_executable_p
15801 as_test_x='test -x'
15802 as_executable_p=as_fn_executable_p
15804 # Sed expression to map a string onto a valid CPP name.
15805 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15807 # Sed expression to map a string onto a valid variable name.
15808 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15811 exec 6>&1
15812 ## ----------------------------------- ##
15813 ## Main body of $CONFIG_STATUS script. ##
15814 ## ----------------------------------- ##
15815 _ASEOF
15816 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15819 # Save the log message, to keep $0 and so on meaningful, and to
15820 # report actual input values of CONFIG_FILES etc. instead of their
15821 # values after options handling.
15822 ac_log="
15823 This file was extended by $as_me, which was
15824 generated by GNU Autoconf 2.69. Invocation command line was
15826 CONFIG_FILES = $CONFIG_FILES
15827 CONFIG_HEADERS = $CONFIG_HEADERS
15828 CONFIG_LINKS = $CONFIG_LINKS
15829 CONFIG_COMMANDS = $CONFIG_COMMANDS
15830 $ $0 $@
15832 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15835 _ACEOF
15837 case $ac_config_files in *"
15838 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15839 esac
15841 case $ac_config_headers in *"
15842 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15843 esac
15846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15847 # Files that config.status was made for.
15848 config_files="$ac_config_files"
15849 config_headers="$ac_config_headers"
15851 _ACEOF
15853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15854 ac_cs_usage="\
15855 \`$as_me' instantiates files and other configuration actions
15856 from templates according to the current configuration. Unless the files
15857 and actions are specified as TAGs, all are instantiated by default.
15859 Usage: $0 [OPTION]... [TAG]...
15861 -h, --help print this help, then exit
15862 -V, --version print version number and configuration settings, then exit
15863 --config print configuration, then exit
15864 -q, --quiet, --silent
15865 do not print progress messages
15866 -d, --debug don't remove temporary files
15867 --recheck update $as_me by reconfiguring in the same conditions
15868 --file=FILE[:TEMPLATE]
15869 instantiate the configuration file FILE
15870 --header=FILE[:TEMPLATE]
15871 instantiate the configuration header FILE
15873 Configuration files:
15874 $config_files
15876 Configuration headers:
15877 $config_headers
15879 Report bugs to the package provider."
15881 _ACEOF
15882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15883 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15884 ac_cs_version="\\
15885 config.status
15886 configured by $0, generated by GNU Autoconf 2.69,
15887 with options \\"\$ac_cs_config\\"
15889 Copyright (C) 2012 Free Software Foundation, Inc.
15890 This config.status script is free software; the Free Software Foundation
15891 gives unlimited permission to copy, distribute and modify it."
15893 ac_pwd='$ac_pwd'
15894 srcdir='$srcdir'
15895 test -n "\$AWK" || AWK=awk
15896 _ACEOF
15898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15899 # The default lists apply if the user does not specify any file.
15900 ac_need_defaults=:
15901 while test $# != 0
15903 case $1 in
15904 --*=?*)
15905 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15907 ac_shift=:
15909 --*=)
15910 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15911 ac_optarg=
15912 ac_shift=:
15915 ac_option=$1
15916 ac_optarg=$2
15917 ac_shift=shift
15919 esac
15921 case $ac_option in
15922 # Handling of the options.
15923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15924 ac_cs_recheck=: ;;
15925 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15926 $as_echo "$ac_cs_version"; exit ;;
15927 --config | --confi | --conf | --con | --co | --c )
15928 $as_echo "$ac_cs_config"; exit ;;
15929 --debug | --debu | --deb | --de | --d | -d )
15930 debug=: ;;
15931 --file | --fil | --fi | --f )
15932 $ac_shift
15933 case $ac_optarg in
15934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15935 '') as_fn_error $? "missing file argument" ;;
15936 esac
15937 as_fn_append CONFIG_FILES " '$ac_optarg'"
15938 ac_need_defaults=false;;
15939 --header | --heade | --head | --hea )
15940 $ac_shift
15941 case $ac_optarg in
15942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15943 esac
15944 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15945 ac_need_defaults=false;;
15946 --he | --h)
15947 # Conflict between --help and --header
15948 as_fn_error $? "ambiguous option: \`$1'
15949 Try \`$0 --help' for more information.";;
15950 --help | --hel | -h )
15951 $as_echo "$ac_cs_usage"; exit ;;
15952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15954 ac_cs_silent=: ;;
15956 # This is an error.
15957 -*) as_fn_error $? "unrecognized option: \`$1'
15958 Try \`$0 --help' for more information." ;;
15960 *) as_fn_append ac_config_targets " $1"
15961 ac_need_defaults=false ;;
15963 esac
15964 shift
15965 done
15967 ac_configure_extra_args=
15969 if $ac_cs_silent; then
15970 exec 6>/dev/null
15971 ac_configure_extra_args="$ac_configure_extra_args --silent"
15974 _ACEOF
15975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976 if \$ac_cs_recheck; then
15977 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15978 shift
15979 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15980 CONFIG_SHELL='$SHELL'
15981 export CONFIG_SHELL
15982 exec "\$@"
15985 _ACEOF
15986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15987 exec 5>>config.log
15989 echo
15990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15991 ## Running $as_me. ##
15992 _ASBOX
15993 $as_echo "$ac_log"
15994 } >&5
15996 _ACEOF
15997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15998 _ACEOF
16000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16002 # Handling of arguments.
16003 for ac_config_target in $ac_config_targets
16005 case $ac_config_target in
16006 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
16007 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
16008 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
16009 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
16010 "src/include/builddefs") CONFIG_FILES="$CONFIG_FILES src/include/builddefs" ;;
16011 "src/include/pcp.conf") CONFIG_FILES="$CONFIG_FILES src/include/pcp.conf" ;;
16012 "pcp.lsm") CONFIG_FILES="$CONFIG_FILES pcp.lsm" ;;
16013 "debian/pcp.preinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.preinst.head" ;;
16014 "debian/pcp.postinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.postinst.head" ;;
16015 "build/tar/preinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/preinstall.head" ;;
16016 "build/tar/postinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/postinstall.head" ;;
16017 "build/GNUlocaldefs") CONFIG_FILES="$CONFIG_FILES build/GNUlocaldefs" ;;
16018 "build/mac/uninstall-pcp") CONFIG_FILES="$CONFIG_FILES build/mac/uninstall-pcp" ;;
16020 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16021 esac
16022 done
16025 # If the user did not use the arguments to specify the items to instantiate,
16026 # then the envvar interface is used. Set only those that are not.
16027 # We use the long form for the default assignment because of an extremely
16028 # bizarre bug on SunOS 4.1.3.
16029 if $ac_need_defaults; then
16030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16034 # Have a temporary directory for convenience. Make it in the build tree
16035 # simply because there is no reason against having it here, and in addition,
16036 # creating and moving files from /tmp can sometimes cause problems.
16037 # Hook for its removal unless debugging.
16038 # Note that there is a small window in which the directory will not be cleaned:
16039 # after its creation but before its name has been assigned to `$tmp'.
16040 $debug ||
16042 tmp= ac_tmp=
16043 trap 'exit_status=$?
16044 : "${ac_tmp:=$tmp}"
16045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16047 trap 'as_fn_exit 1' 1 2 13 15
16049 # Create a (secure) tmp directory for tmp files.
16052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16053 test -d "$tmp"
16054 } ||
16056 tmp=./conf$$-$RANDOM
16057 (umask 077 && mkdir "$tmp")
16058 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16059 ac_tmp=$tmp
16061 # Set up the scripts for CONFIG_FILES section.
16062 # No need to generate them if there are no CONFIG_FILES.
16063 # This happens for instance with `./config.status config.h'.
16064 if test -n "$CONFIG_FILES"; then
16067 ac_cr=`echo X | tr X '\015'`
16068 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16069 # But we know of no other shell where ac_cr would be empty at this
16070 # point, so we can use a bashism as a fallback.
16071 if test "x$ac_cr" = x; then
16072 eval ac_cr=\$\'\\r\'
16074 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16075 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16076 ac_cs_awk_cr='\\r'
16077 else
16078 ac_cs_awk_cr=$ac_cr
16081 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16082 _ACEOF
16086 echo "cat >conf$$subs.awk <<_ACEOF" &&
16087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16088 echo "_ACEOF"
16089 } >conf$$subs.sh ||
16090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16092 ac_delim='%!_!# '
16093 for ac_last_try in false false false false false :; do
16094 . ./conf$$subs.sh ||
16095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16098 if test $ac_delim_n = $ac_delim_num; then
16099 break
16100 elif $ac_last_try; then
16101 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16102 else
16103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16105 done
16106 rm -f conf$$subs.sh
16108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16109 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16110 _ACEOF
16111 sed -n '
16113 s/^/S["/; s/!.*/"]=/
16116 s/^[^!]*!//
16117 :repl
16118 t repl
16119 s/'"$ac_delim"'$//
16120 t delim
16123 s/\(.\{148\}\)..*/\1/
16124 t more1
16125 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16128 b repl
16129 :more1
16130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16133 s/.\{148\}//
16134 t nl
16135 :delim
16137 s/\(.\{148\}\)..*/\1/
16138 t more2
16139 s/["\\]/\\&/g; s/^/"/; s/$/"/
16142 :more2
16143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16146 s/.\{148\}//
16147 t delim
16148 ' <conf$$subs.awk | sed '
16149 /^[^""]/{
16151 s/\n//
16153 ' >>$CONFIG_STATUS || ac_write_fail=1
16154 rm -f conf$$subs.awk
16155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16156 _ACAWK
16157 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16158 for (key in S) S_is_set[key] = 1
16159 FS = "\a"
16163 line = $ 0
16164 nfields = split(line, field, "@")
16165 substed = 0
16166 len = length(field[1])
16167 for (i = 2; i < nfields; i++) {
16168 key = field[i]
16169 keylen = length(key)
16170 if (S_is_set[key]) {
16171 value = S[key]
16172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16173 len += length(value) + length(field[++i])
16174 substed = 1
16175 } else
16176 len += 1 + keylen
16179 print line
16182 _ACAWK
16183 _ACEOF
16184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16187 else
16189 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16191 _ACEOF
16193 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16194 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16195 # trailing colons and then remove the whole line if VPATH becomes empty
16196 # (actually we leave an empty line to preserve line numbers).
16197 if test "x$srcdir" = x.; then
16198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16200 s///
16201 s/^/:/
16202 s/[ ]*$/:/
16203 s/:\$(srcdir):/:/g
16204 s/:\${srcdir}:/:/g
16205 s/:@srcdir@:/:/g
16206 s/^:*//
16207 s/:*$//
16209 s/\(=[ ]*\).*/\1/
16211 s/\n//
16212 s/^[^=]*=[ ]*$//
16216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16217 fi # test -n "$CONFIG_FILES"
16219 # Set up the scripts for CONFIG_HEADERS section.
16220 # No need to generate them if there are no CONFIG_HEADERS.
16221 # This happens for instance with `./config.status Makefile'.
16222 if test -n "$CONFIG_HEADERS"; then
16223 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16224 BEGIN {
16225 _ACEOF
16227 # Transform confdefs.h into an awk script `defines.awk', embedded as
16228 # here-document in config.status, that substitutes the proper values into
16229 # config.h.in to produce config.h.
16231 # Create a delimiter string that does not exist in confdefs.h, to ease
16232 # handling of long lines.
16233 ac_delim='%!_!# '
16234 for ac_last_try in false false :; do
16235 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16236 if test -z "$ac_tt"; then
16237 break
16238 elif $ac_last_try; then
16239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16240 else
16241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16243 done
16245 # For the awk script, D is an array of macro values keyed by name,
16246 # likewise P contains macro parameters if any. Preserve backslash
16247 # newline sequences.
16249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16250 sed -n '
16251 s/.\{148\}/&'"$ac_delim"'/g
16252 t rset
16253 :rset
16254 s/^[ ]*#[ ]*define[ ][ ]*/ /
16255 t def
16257 :def
16258 s/\\$//
16259 t bsnl
16260 s/["\\]/\\&/g
16261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16262 D["\1"]=" \3"/p
16263 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16265 :bsnl
16266 s/["\\]/\\&/g
16267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16268 D["\1"]=" \3\\\\\\n"\\/p
16269 t cont
16270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16271 t cont
16273 :cont
16275 s/.\{148\}/&'"$ac_delim"'/g
16276 t clear
16277 :clear
16278 s/\\$//
16279 t bsnlc
16280 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16282 :bsnlc
16283 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16284 b cont
16285 ' <confdefs.h | sed '
16286 s/'"$ac_delim"'/"\\\
16287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 for (key in D) D_is_set[key] = 1
16291 FS = "\a"
16293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16294 line = \$ 0
16295 split(line, arg, " ")
16296 if (arg[1] == "#") {
16297 defundef = arg[2]
16298 mac1 = arg[3]
16299 } else {
16300 defundef = substr(arg[1], 2)
16301 mac1 = arg[2]
16303 split(mac1, mac2, "(") #)
16304 macro = mac2[1]
16305 prefix = substr(line, 1, index(line, defundef) - 1)
16306 if (D_is_set[macro]) {
16307 # Preserve the white space surrounding the "#".
16308 print prefix "define", macro P[macro] D[macro]
16309 next
16310 } else {
16311 # Replace #undef with comments. This is necessary, for example,
16312 # in the case of _POSIX_SOURCE, which is predefined and required
16313 # on some systems where configure will not decide to define it.
16314 if (defundef == "undef") {
16315 print "/*", prefix defundef, macro, "*/"
16316 next
16320 { print }
16321 _ACAWK
16322 _ACEOF
16323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16324 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16325 fi # test -n "$CONFIG_HEADERS"
16328 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16329 shift
16330 for ac_tag
16332 case $ac_tag in
16333 :[FHLC]) ac_mode=$ac_tag; continue;;
16334 esac
16335 case $ac_mode$ac_tag in
16336 :[FHL]*:*);;
16337 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16338 :[FH]-) ac_tag=-:-;;
16339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16340 esac
16341 ac_save_IFS=$IFS
16342 IFS=:
16343 set x $ac_tag
16344 IFS=$ac_save_IFS
16345 shift
16346 ac_file=$1
16347 shift
16349 case $ac_mode in
16350 :L) ac_source=$1;;
16351 :[FH])
16352 ac_file_inputs=
16353 for ac_f
16355 case $ac_f in
16356 -) ac_f="$ac_tmp/stdin";;
16357 *) # Look for the file first in the build tree, then in the source tree
16358 # (if the path is not absolute). The absolute path cannot be DOS-style,
16359 # because $ac_f cannot contain `:'.
16360 test -f "$ac_f" ||
16361 case $ac_f in
16362 [\\/$]*) false;;
16363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16364 esac ||
16365 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16366 esac
16367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16368 as_fn_append ac_file_inputs " '$ac_f'"
16369 done
16371 # Let's still pretend it is `configure' which instantiates (i.e., don't
16372 # use $as_me), people would be surprised to read:
16373 # /* config.h. Generated by config.status. */
16374 configure_input='Generated from '`
16375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16376 `' by configure.'
16377 if test x"$ac_file" != x-; then
16378 configure_input="$ac_file. $configure_input"
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16380 $as_echo "$as_me: creating $ac_file" >&6;}
16382 # Neutralize special characters interpreted by sed in replacement strings.
16383 case $configure_input in #(
16384 *\&* | *\|* | *\\* )
16385 ac_sed_conf_input=`$as_echo "$configure_input" |
16386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16387 *) ac_sed_conf_input=$configure_input;;
16388 esac
16390 case $ac_tag in
16391 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16393 esac
16395 esac
16397 ac_dir=`$as_dirname -- "$ac_file" ||
16398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16399 X"$ac_file" : 'X\(//\)[^/]' \| \
16400 X"$ac_file" : 'X\(//\)$' \| \
16401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16402 $as_echo X"$ac_file" |
16403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16404 s//\1/
16407 /^X\(\/\/\)[^/].*/{
16408 s//\1/
16411 /^X\(\/\/\)$/{
16412 s//\1/
16415 /^X\(\/\).*/{
16416 s//\1/
16419 s/.*/./; q'`
16420 as_dir="$ac_dir"; as_fn_mkdir_p
16421 ac_builddir=.
16423 case "$ac_dir" in
16424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16427 # A ".." for each directory in $ac_dir_suffix.
16428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16429 case $ac_top_builddir_sub in
16430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16432 esac ;;
16433 esac
16434 ac_abs_top_builddir=$ac_pwd
16435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16436 # for backward compatibility:
16437 ac_top_builddir=$ac_top_build_prefix
16439 case $srcdir in
16440 .) # We are building in place.
16441 ac_srcdir=.
16442 ac_top_srcdir=$ac_top_builddir_sub
16443 ac_abs_top_srcdir=$ac_pwd ;;
16444 [\\/]* | ?:[\\/]* ) # Absolute name.
16445 ac_srcdir=$srcdir$ac_dir_suffix;
16446 ac_top_srcdir=$srcdir
16447 ac_abs_top_srcdir=$srcdir ;;
16448 *) # Relative name.
16449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16450 ac_top_srcdir=$ac_top_build_prefix$srcdir
16451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16452 esac
16453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16456 case $ac_mode in
16459 # CONFIG_FILE
16462 _ACEOF
16464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16465 # If the template does not know about datarootdir, expand it.
16466 # FIXME: This hack should be removed a few years after 2.60.
16467 ac_datarootdir_hack=; ac_datarootdir_seen=
16468 ac_sed_dataroot='
16469 /datarootdir/ {
16473 /@datadir@/p
16474 /@docdir@/p
16475 /@infodir@/p
16476 /@localedir@/p
16477 /@mandir@/p'
16478 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16479 *datarootdir*) ac_datarootdir_seen=yes;;
16480 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16482 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16483 _ACEOF
16484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16485 ac_datarootdir_hack='
16486 s&@datadir@&$datadir&g
16487 s&@docdir@&$docdir&g
16488 s&@infodir@&$infodir&g
16489 s&@localedir@&$localedir&g
16490 s&@mandir@&$mandir&g
16491 s&\\\${datarootdir}&$datarootdir&g' ;;
16492 esac
16493 _ACEOF
16495 # Neutralize VPATH when `$srcdir' = `.'.
16496 # Shell code in configure.ac might set extrasub.
16497 # FIXME: do we really want to maintain this feature?
16498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16499 ac_sed_extra="$ac_vpsub
16500 $extrasub
16501 _ACEOF
16502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16505 s|@configure_input@|$ac_sed_conf_input|;t t
16506 s&@top_builddir@&$ac_top_builddir_sub&;t t
16507 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16508 s&@srcdir@&$ac_srcdir&;t t
16509 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16510 s&@top_srcdir@&$ac_top_srcdir&;t t
16511 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16512 s&@builddir@&$ac_builddir&;t t
16513 s&@abs_builddir@&$ac_abs_builddir&;t t
16514 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16515 $ac_datarootdir_hack
16517 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16518 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16520 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16521 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16522 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16523 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16525 which seems to be undefined. Please make sure it is defined" >&5
16526 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16527 which seems to be undefined. Please make sure it is defined" >&2;}
16529 rm -f "$ac_tmp/stdin"
16530 case $ac_file in
16531 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16532 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16533 esac \
16534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16538 # CONFIG_HEADER
16540 if test x"$ac_file" != x-; then
16542 $as_echo "/* $configure_input */" \
16543 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16544 } >"$ac_tmp/config.h" \
16545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16546 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16548 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16549 else
16550 rm -f "$ac_file"
16551 mv "$ac_tmp/config.h" "$ac_file" \
16552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16554 else
16555 $as_echo "/* $configure_input */" \
16556 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16557 || as_fn_error $? "could not create -" "$LINENO" 5
16562 esac
16564 done # for ac_tag
16567 as_fn_exit 0
16568 _ACEOF
16569 ac_clean_files=$ac_clean_files_save
16571 test $ac_write_fail = 0 ||
16572 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16575 # configure is writing to config.log, and then calls config.status.
16576 # config.status does its own redirection, appending to config.log.
16577 # Unfortunately, on DOS this fails, as config.log is still kept open
16578 # by configure, so config.status won't be able to write to it; its
16579 # output is simply discarded. So we exec the FD to /dev/null,
16580 # effectively closing config.log, so it can be properly (re)opened and
16581 # appended to by config.status. When coming back to configure, we
16582 # need to make the FD available again.
16583 if test "$no_create" != yes; then
16584 ac_cs_success=:
16585 ac_config_status_args=
16586 test "$silent" = yes &&
16587 ac_config_status_args="$ac_config_status_args --quiet"
16588 exec 5>/dev/null
16589 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16590 exec 5>>config.log
16591 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16592 # would make configure fail if this is the last instruction.
16593 $ac_cs_success || as_fn_exit 1
16595 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16597 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}