Create and use __pmTimevalCmp for comparing __pmTimeval.
[pcp.git] / configure
blob4d5461b781b1bee1ce45c12caea9c2ea8614ea19
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="src/include/pcp/pmapi.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='PACKAGE_CONFIGURE
623 have_webjs
624 have_vector
625 have_parfait
626 HAVE_ZLIB
627 zlib_LIBS
628 zlib_CFLAGS
629 lib_for_curses
630 lib_for_readline
631 pcp_mpi_dirs
632 lib_for_atomic
633 enable_secure
634 lib_for_nspr
635 lib_for_nss
636 lib_for_ssl
637 lib_for_sasl
638 SASLCFLAGS
639 NSPRCFLAGS
640 NSSCFLAGS
641 ac_xconfirm_prog
642 pcp_demos_dir
643 pcp_doc_dir
644 pcp_tmp_dir
645 pcp_tmpfile_dir
646 pcp_run_dir
647 pcp_log_dir
648 pcp_sysconfig_dir
649 pcp_rc_dir
650 pcp_desktop_dir
651 pcp_icons_dir
652 pcp_html_dir
653 pcp_books_dir
654 pcp_inc_dir
655 pcp_sbin_dir
656 pcp_bin_dir
657 need_old_tbl_header
658 have_xzed_manpages
659 have_lzmaed_manpages
660 have_bzip2ed_manpages
661 have_gzipped_manpages
662 have_manpages
663 pcp_man_dir
664 pcp_x11_pre
665 pcp_x11_extra
666 pcp_x11_libflags
667 pcp_x11_incflags
668 X_EXTRA_LIBS
669 X_LIBS
670 X_PRE_LIBS
671 X_CFLAGS
672 XMKMF
673 python_prefix
674 perl_install_base
675 perl_installdirs
676 pcp_lib32_dir
677 pcp_lib_dir
678 pcp_pmdas_dir
679 pcp_var_dir
680 pcp_binadm_dir
681 pcp_share_dir
682 pcp_pmloggercontrol_path
683 pcp_pmsnapcontrol_path
684 pcp_pmiecontrol_path
685 pcp_pmproxyoptions_path
686 pcp_pmmgroptions_path
687 pcp_pmwebdoptions_path
688 pcp_pmcdrclocal_path
689 pcp_pmcdoptions_path
690 pcp_pmcdconf_path
691 pcp_sysconf_dir
692 pcp_saslconf_dir
693 pcp_etc_dir
694 lib_for_math
695 lib_for_dlopen
696 lib_for_rt
697 lib_for_basename
698 fmt_pthread
699 lib_for_pthreads
700 fmt_uint64
701 fmt_int64
702 fmt_pid
703 rdynamic_flag
704 enable_manager
705 enable_webapi
706 HAVE_CAIRO
707 cairo_LIBS
708 cairo_CFLAGS
709 HAVE_LIBMICROHTTPD
710 libmicrohttpd_LIBS
711 libmicrohttpd_CFLAGS
712 PMDA_POSTFIX
713 QSHAPE
714 PMDA_RPM
715 PMDA_PERFEVENT
716 PFM_LIBS
717 PMDA_PAPI
718 PAPI_LIBS
719 PAPI_CFLAGS
720 papi_LIBS
721 papi_CFLAGS
722 PMDA_INFINIBAND
723 IB_LIBS
724 PMDA_SYSTEMD
725 SYSTEMD_LIBS
726 SYSTEMD_CFLAGS
727 HAVE_NCURSES
728 ncurses_LIBS
729 ncurses_CFLAGS
730 lib_for_regex
731 grep
732 pcp_syslog_prog
733 pcp_ps_prog
734 LN_S
735 book_brand
736 book_toolchain
737 xmlto
738 XMLTO
739 dblatex
740 DBLATEX
741 publican
742 PUBLICAN
743 makepkg
744 MAKEPKG
745 dpkg
746 DPKG
747 md5sum
748 MD5SUM
749 makedepend
750 MAKEDEPEND
751 TRUEPROG
752 pod2man
753 POD2MAN
754 rpmprog
757 rpmbuild
758 RPMBUILD
759 dlltool
760 DLLTOOL
761 pkgmk
762 PKGMK
763 mkinstallp
764 MKINSTALLP
765 hdiutil
766 HDIUTIL
767 package_maker
770 lzma
771 LZMA
772 bzip2
773 BZIP2
774 gzip
778 pcp_group_install
779 pcp_user_install
783 make
784 MAKE
785 qmake
786 enable_qt
787 qt_release
788 QMAKE
789 PMDA_LIBVIRT
790 PMDA_ACTIVEMQ
791 PMDA_NGINX
792 PMDA_ELASTICSEARCH
793 PMDA_ORACLE
794 PMDA_POSTGRESQL
795 PMDA_MYSQL
796 PMDA_SNMP
797 have_perl
798 pcp_perl_prog
799 PERL
800 have_python_libvirt
801 PMDA_JSON
802 have_python_six
803 have_python_requests
804 have_python_setuptools
805 have_python_jsonpointer
806 pcp_python_prog
807 have_python
808 enable_python3
809 enable_python2
810 PYTHON3
811 PYTHON
813 LTLIBOBJS
814 LIBOBJS
815 pm_version_current
816 PACKAGE_DISTRIBUTION
817 PACKAGE_BUILD_DATE
818 PACKAGE_BUILD
819 PACKAGE_REVISION
820 PACKAGE_MINOR
821 PACKAGE_MAJOR
822 enable_systemd
823 pcp_systemdunit_dir
824 SYSTEMD_SYSTEMUNITDIR
825 enable_avahi
826 enable_discovery
827 lib_for_avahi
828 avahi_LIBS
829 avahi_CFLAGS
830 enable_probes
832 DTRACE
833 EGREP
834 GREP
835 echo_c
836 echo_n
837 sort
838 yacc
839 YFLAGS
840 YACC
842 LEXLIB
843 LEX_OUTPUT_ROOT
845 which
846 WHICH
847 find
848 FIND
849 echo
850 ECHO
855 enable_shared
857 ac_ct_CXX
858 CXXFLAGS
860 INVISIBILITY
861 PIECFLAGS
862 PIELDFLAGS
863 PLDFLAGS
864 PCFLAGS
865 cflags_abi
866 cc_is_gcc
868 CCPATH
869 OBJEXT
870 EXEEXT
871 ac_ct_CC
872 CPPFLAGS
873 LDFLAGS
874 CFLAGS
876 PKG_CONFIG_LIBDIR
877 PKG_CONFIG_PATH
878 PKG_CONFIG
879 optimization
880 pcp_ps_all_flags
881 pcp_platform_paths
882 cross_compiling
883 target_os
884 target_vendor
885 target_cpu
886 target
887 host_os
888 host_vendor
889 host_cpu
890 host
891 build_os
892 build_vendor
893 build_cpu
894 build
895 pcp_group
896 pcp_user
897 target_alias
898 host_alias
899 build_alias
900 LIBS
901 ECHO_T
902 ECHO_N
903 ECHO_C
904 DEFS
905 mandir
906 localedir
907 libdir
908 psdir
909 pdfdir
910 dvidir
911 htmldir
912 infodir
913 docdir
914 oldincludedir
915 includedir
916 localstatedir
917 sharedstatedir
918 sysconfdir
919 datadir
920 datarootdir
921 libexecdir
922 sbindir
923 bindir
924 program_transform_name
925 prefix
926 exec_prefix
927 PACKAGE_URL
928 PACKAGE_BUGREPORT
929 PACKAGE_STRING
930 PACKAGE_VERSION
931 PACKAGE_TARNAME
932 PACKAGE_NAME
933 PATH_SEPARATOR
934 SHELL'
935 ac_subst_files=''
936 ac_user_opts='
937 enable_option_checking
938 with_64bit
939 with_optimization
940 with_threads
941 with_secure_sockets
942 with_static_probes
943 with_infiniband
944 with_user
945 with_group
946 with_discovery
947 with_systemd
948 with_qt
949 with_python
950 with_python3
951 with_books
952 with_books_brand
953 with_papi
954 with_perfevent
955 with_pmdajson
956 with_pmdasnmp
957 with_manager
958 with_webapi
959 with_webjs
960 with_vector
961 with_parfait
962 with_make
963 with_tar
964 with_zip
965 enable_ssp
966 enable_pie
967 enable_visibility
968 enable_shared
969 with_configdir
970 with_perl_installdirs
971 with_perl_install_base
972 with_python_prefix
973 with_x
974 with_rcdir
975 with_sysconfigdir
976 with_logdir
977 with_rundir
978 with_tmpdir
979 with_docdir
980 with_demosdir
982 ac_precious_vars='build_alias
983 host_alias
984 target_alias
985 PKG_CONFIG
986 PKG_CONFIG_PATH
987 PKG_CONFIG_LIBDIR
989 CFLAGS
990 LDFLAGS
991 LIBS
992 CPPFLAGS
994 CXXFLAGS
996 YACC
997 YFLAGS
999 avahi_CFLAGS
1000 avahi_LIBS
1001 SYSTEMD_SYSTEMUNITDIR
1002 ncurses_CFLAGS
1003 ncurses_LIBS
1004 SYSTEMD_CFLAGS
1005 SYSTEMD_LIBS
1006 papi_CFLAGS
1007 papi_LIBS
1008 libmicrohttpd_CFLAGS
1009 libmicrohttpd_LIBS
1010 cairo_CFLAGS
1011 cairo_LIBS
1012 XMKMF
1013 zlib_CFLAGS
1014 zlib_LIBS'
1017 # Initialize some variables set by options.
1018 ac_init_help=
1019 ac_init_version=false
1020 ac_unrecognized_opts=
1021 ac_unrecognized_sep=
1022 # The variables have the same names as the options, with
1023 # dashes changed to underlines.
1024 cache_file=/dev/null
1025 exec_prefix=NONE
1026 no_create=
1027 no_recursion=
1028 prefix=NONE
1029 program_prefix=NONE
1030 program_suffix=NONE
1031 program_transform_name=s,x,x,
1032 silent=
1033 site=
1034 srcdir=
1035 verbose=
1036 x_includes=NONE
1037 x_libraries=NONE
1039 # Installation directory options.
1040 # These are left unexpanded so users can "make install exec_prefix=/foo"
1041 # and all the variables that are supposed to be based on exec_prefix
1042 # by default will actually change.
1043 # Use braces instead of parens because sh, perl, etc. also accept them.
1044 # (The list follows the same order as the GNU Coding Standards.)
1045 bindir='${exec_prefix}/bin'
1046 sbindir='${exec_prefix}/sbin'
1047 libexecdir='${exec_prefix}/libexec'
1048 datarootdir='${prefix}/share'
1049 datadir='${datarootdir}'
1050 sysconfdir='${prefix}/etc'
1051 sharedstatedir='${prefix}/com'
1052 localstatedir='${prefix}/var'
1053 includedir='${prefix}/include'
1054 oldincludedir='/usr/include'
1055 docdir='${datarootdir}/doc/${PACKAGE}'
1056 infodir='${datarootdir}/info'
1057 htmldir='${docdir}'
1058 dvidir='${docdir}'
1059 pdfdir='${docdir}'
1060 psdir='${docdir}'
1061 libdir='${exec_prefix}/lib'
1062 localedir='${datarootdir}/locale'
1063 mandir='${datarootdir}/man'
1065 ac_prev=
1066 ac_dashdash=
1067 for ac_option
1069 # If the previous option needs an argument, assign it.
1070 if test -n "$ac_prev"; then
1071 eval $ac_prev=\$ac_option
1072 ac_prev=
1073 continue
1076 case $ac_option in
1077 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1078 *=) ac_optarg= ;;
1079 *) ac_optarg=yes ;;
1080 esac
1082 # Accept the important Cygnus configure options, so we can diagnose typos.
1084 case $ac_dashdash$ac_option in
1086 ac_dashdash=yes ;;
1088 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1089 ac_prev=bindir ;;
1090 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1091 bindir=$ac_optarg ;;
1093 -build | --build | --buil | --bui | --bu)
1094 ac_prev=build_alias ;;
1095 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1096 build_alias=$ac_optarg ;;
1098 -cache-file | --cache-file | --cache-fil | --cache-fi \
1099 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1100 ac_prev=cache_file ;;
1101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1103 cache_file=$ac_optarg ;;
1105 --config-cache | -C)
1106 cache_file=config.cache ;;
1108 -datadir | --datadir | --datadi | --datad)
1109 ac_prev=datadir ;;
1110 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1111 datadir=$ac_optarg ;;
1113 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1114 | --dataroo | --dataro | --datar)
1115 ac_prev=datarootdir ;;
1116 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1117 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1118 datarootdir=$ac_optarg ;;
1120 -disable-* | --disable-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid feature name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "enable_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval enable_$ac_useropt=no ;;
1136 -docdir | --docdir | --docdi | --doc | --do)
1137 ac_prev=docdir ;;
1138 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1139 docdir=$ac_optarg ;;
1141 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1142 ac_prev=dvidir ;;
1143 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1144 dvidir=$ac_optarg ;;
1146 -enable-* | --enable-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid feature name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "enable_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval enable_$ac_useropt=\$ac_optarg ;;
1162 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1163 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1164 | --exec | --exe | --ex)
1165 ac_prev=exec_prefix ;;
1166 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1167 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1168 | --exec=* | --exe=* | --ex=*)
1169 exec_prefix=$ac_optarg ;;
1171 -gas | --gas | --ga | --g)
1172 # Obsolete; use --with-gas.
1173 with_gas=yes ;;
1175 -help | --help | --hel | --he | -h)
1176 ac_init_help=long ;;
1177 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1178 ac_init_help=recursive ;;
1179 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1180 ac_init_help=short ;;
1182 -host | --host | --hos | --ho)
1183 ac_prev=host_alias ;;
1184 -host=* | --host=* | --hos=* | --ho=*)
1185 host_alias=$ac_optarg ;;
1187 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1188 ac_prev=htmldir ;;
1189 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1190 | --ht=*)
1191 htmldir=$ac_optarg ;;
1193 -includedir | --includedir | --includedi | --included | --include \
1194 | --includ | --inclu | --incl | --inc)
1195 ac_prev=includedir ;;
1196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1197 | --includ=* | --inclu=* | --incl=* | --inc=*)
1198 includedir=$ac_optarg ;;
1200 -infodir | --infodir | --infodi | --infod | --info | --inf)
1201 ac_prev=infodir ;;
1202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1203 infodir=$ac_optarg ;;
1205 -libdir | --libdir | --libdi | --libd)
1206 ac_prev=libdir ;;
1207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1208 libdir=$ac_optarg ;;
1210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1211 | --libexe | --libex | --libe)
1212 ac_prev=libexecdir ;;
1213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1214 | --libexe=* | --libex=* | --libe=*)
1215 libexecdir=$ac_optarg ;;
1217 -localedir | --localedir | --localedi | --localed | --locale)
1218 ac_prev=localedir ;;
1219 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1220 localedir=$ac_optarg ;;
1222 -localstatedir | --localstatedir | --localstatedi | --localstated \
1223 | --localstate | --localstat | --localsta | --localst | --locals)
1224 ac_prev=localstatedir ;;
1225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1226 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1227 localstatedir=$ac_optarg ;;
1229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1230 ac_prev=mandir ;;
1231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1232 mandir=$ac_optarg ;;
1234 -nfp | --nfp | --nf)
1235 # Obsolete; use --without-fp.
1236 with_fp=no ;;
1238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1239 | --no-cr | --no-c | -n)
1240 no_create=yes ;;
1242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1244 no_recursion=yes ;;
1246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1248 | --oldin | --oldi | --old | --ol | --o)
1249 ac_prev=oldincludedir ;;
1250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1253 oldincludedir=$ac_optarg ;;
1255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1256 ac_prev=prefix ;;
1257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1258 prefix=$ac_optarg ;;
1260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1261 | --program-pre | --program-pr | --program-p)
1262 ac_prev=program_prefix ;;
1263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1265 program_prefix=$ac_optarg ;;
1267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1268 | --program-suf | --program-su | --program-s)
1269 ac_prev=program_suffix ;;
1270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1272 program_suffix=$ac_optarg ;;
1274 -program-transform-name | --program-transform-name \
1275 | --program-transform-nam | --program-transform-na \
1276 | --program-transform-n | --program-transform- \
1277 | --program-transform | --program-transfor \
1278 | --program-transfo | --program-transf \
1279 | --program-trans | --program-tran \
1280 | --progr-tra | --program-tr | --program-t)
1281 ac_prev=program_transform_name ;;
1282 -program-transform-name=* | --program-transform-name=* \
1283 | --program-transform-nam=* | --program-transform-na=* \
1284 | --program-transform-n=* | --program-transform-=* \
1285 | --program-transform=* | --program-transfor=* \
1286 | --program-transfo=* | --program-transf=* \
1287 | --program-trans=* | --program-tran=* \
1288 | --progr-tra=* | --program-tr=* | --program-t=*)
1289 program_transform_name=$ac_optarg ;;
1291 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1292 ac_prev=pdfdir ;;
1293 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1294 pdfdir=$ac_optarg ;;
1296 -psdir | --psdir | --psdi | --psd | --ps)
1297 ac_prev=psdir ;;
1298 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1299 psdir=$ac_optarg ;;
1301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302 | -silent | --silent | --silen | --sile | --sil)
1303 silent=yes ;;
1305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1306 ac_prev=sbindir ;;
1307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1308 | --sbi=* | --sb=*)
1309 sbindir=$ac_optarg ;;
1311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1313 | --sharedst | --shareds | --shared | --share | --shar \
1314 | --sha | --sh)
1315 ac_prev=sharedstatedir ;;
1316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1319 | --sha=* | --sh=*)
1320 sharedstatedir=$ac_optarg ;;
1322 -site | --site | --sit)
1323 ac_prev=site ;;
1324 -site=* | --site=* | --sit=*)
1325 site=$ac_optarg ;;
1327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1328 ac_prev=srcdir ;;
1329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1330 srcdir=$ac_optarg ;;
1332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1333 | --syscon | --sysco | --sysc | --sys | --sy)
1334 ac_prev=sysconfdir ;;
1335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1337 sysconfdir=$ac_optarg ;;
1339 -target | --target | --targe | --targ | --tar | --ta | --t)
1340 ac_prev=target_alias ;;
1341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1342 target_alias=$ac_optarg ;;
1344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1345 verbose=yes ;;
1347 -version | --version | --versio | --versi | --vers | -V)
1348 ac_init_version=: ;;
1350 -with-* | --with-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 as_fn_error $? "invalid package name: $ac_useropt"
1355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1359 "with_$ac_useropt"
1360 "*) ;;
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1363 esac
1364 eval with_$ac_useropt=\$ac_optarg ;;
1366 -without-* | --without-*)
1367 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1368 # Reject names that are not valid shell variable names.
1369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1370 as_fn_error $? "invalid package name: $ac_useropt"
1371 ac_useropt_orig=$ac_useropt
1372 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1373 case $ac_user_opts in
1375 "with_$ac_useropt"
1376 "*) ;;
1377 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1378 ac_unrecognized_sep=', ';;
1379 esac
1380 eval with_$ac_useropt=no ;;
1382 --x)
1383 # Obsolete; use --with-x.
1384 with_x=yes ;;
1386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1387 | --x-incl | --x-inc | --x-in | --x-i)
1388 ac_prev=x_includes ;;
1389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1391 x_includes=$ac_optarg ;;
1393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1395 ac_prev=x_libraries ;;
1396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1398 x_libraries=$ac_optarg ;;
1400 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1401 Try \`$0 --help' for more information"
1404 *=*)
1405 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1406 # Reject names that are not valid shell variable names.
1407 case $ac_envvar in #(
1408 '' | [0-9]* | *[!_$as_cr_alnum]* )
1409 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1410 esac
1411 eval $ac_envvar=\$ac_optarg
1412 export $ac_envvar ;;
1415 # FIXME: should be removed in autoconf 3.0.
1416 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1417 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1418 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1419 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1422 esac
1423 done
1425 if test -n "$ac_prev"; then
1426 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1427 as_fn_error $? "missing argument to $ac_option"
1430 if test -n "$ac_unrecognized_opts"; then
1431 case $enable_option_checking in
1432 no) ;;
1433 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1434 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1435 esac
1438 # Check all directory arguments for consistency.
1439 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1440 datadir sysconfdir sharedstatedir localstatedir includedir \
1441 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1442 libdir localedir mandir
1444 eval ac_val=\$$ac_var
1445 # Remove trailing slashes.
1446 case $ac_val in
1447 */ )
1448 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1449 eval $ac_var=\$ac_val;;
1450 esac
1451 # Be sure to have absolute directory names.
1452 case $ac_val in
1453 [\\/$]* | ?:[\\/]* ) continue;;
1454 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1455 esac
1456 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1457 done
1459 # There might be people who depend on the old broken behavior: `$host'
1460 # used to hold the argument of --host etc.
1461 # FIXME: To remove some day.
1462 build=$build_alias
1463 host=$host_alias
1464 target=$target_alias
1466 # FIXME: To remove some day.
1467 if test "x$host_alias" != x; then
1468 if test "x$build_alias" = x; then
1469 cross_compiling=maybe
1470 elif test "x$build_alias" != "x$host_alias"; then
1471 cross_compiling=yes
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1478 test "$silent" = yes && exec 6>/dev/null
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484 as_fn_error $? "working directory cannot be determined"
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486 as_fn_error $? "pwd does not report name of working directory"
1489 # Find the source files, if location was not specified.
1490 if test -z "$srcdir"; then
1491 ac_srcdir_defaulted=yes
1492 # Try the directory containing this script, then the parent directory.
1493 ac_confdir=`$as_dirname -- "$as_myself" ||
1494 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495 X"$as_myself" : 'X\(//\)[^/]' \| \
1496 X"$as_myself" : 'X\(//\)$' \| \
1497 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1498 $as_echo X"$as_myself" |
1499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500 s//\1/
1503 /^X\(\/\/\)[^/].*/{
1504 s//\1/
1507 /^X\(\/\/\)$/{
1508 s//\1/
1511 /^X\(\/\).*/{
1512 s//\1/
1515 s/.*/./; q'`
1516 srcdir=$ac_confdir
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518 srcdir=..
1520 else
1521 ac_srcdir_defaulted=no
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1524 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1527 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1528 ac_abs_confdir=`(
1529 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1530 pwd)`
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533 srcdir=.
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1538 case $srcdir in
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540 esac
1541 for ac_var in $ac_precious_vars; do
1542 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_env_${ac_var}_value=\$${ac_var}
1544 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546 done
1549 # Report the --help message.
1551 if test "$ac_init_help" = "long"; then
1552 # Omit some internal or obsolete options to make the list less imposing.
1553 # This message is too long to be a string in the A/UX 3.1 sh.
1554 cat <<_ACEOF
1555 \`configure' configures this package to adapt to many kinds of systems.
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE. See below for descriptions of some of the useful variables.
1562 Defaults for the options are specified in brackets.
1564 Configuration:
1565 -h, --help display this help and exit
1566 --help=short display options specific to this package
1567 --help=recursive display the short help of all the included packages
1568 -V, --version display version information and exit
1569 -q, --quiet, --silent do not print \`checking ...' messages
1570 --cache-file=FILE cache test results in FILE [disabled]
1571 -C, --config-cache alias for \`--cache-file=config.cache'
1572 -n, --no-create do not create output files
1573 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1575 Installation directories:
1576 --prefix=PREFIX install architecture-independent files in PREFIX
1577 [$ac_default_prefix]
1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1579 [PREFIX]
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1586 For better control, use the options below.
1588 Fine tuning of the installation directories:
1589 --bindir=DIR user executables [EPREFIX/bin]
1590 --sbindir=DIR system admin executables [EPREFIX/sbin]
1591 --libexecdir=DIR program executables [EPREFIX/libexec]
1592 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1595 --libdir=DIR object code libraries [EPREFIX/lib]
1596 --includedir=DIR C header files [PREFIX/include]
1597 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1600 --infodir=DIR info documentation [DATAROOTDIR/info]
1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1602 --mandir=DIR man documentation [DATAROOTDIR/man]
1603 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1604 --htmldir=DIR html documentation [DOCDIR]
1605 --dvidir=DIR dvi documentation [DOCDIR]
1606 --pdfdir=DIR pdf documentation [DOCDIR]
1607 --psdir=DIR ps documentation [DOCDIR]
1608 _ACEOF
1610 cat <<\_ACEOF
1612 X features:
1613 --x-includes=DIR X include files are in DIR
1614 --x-libraries=DIR X library files are in DIR
1616 System types:
1617 --build=BUILD configure for building on BUILD [guessed]
1618 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1619 --target=TARGET configure for building compilers for TARGET [HOST]
1620 _ACEOF
1623 if test -n "$ac_init_help"; then
1625 cat <<\_ACEOF
1627 Optional Features:
1628 --disable-option-checking ignore unrecognized --enable/--with options
1629 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1630 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1631 --disable-ssp disable gcc stack-protector
1632 --disable-pie disable position-independent-executable
1633 --disable-visibility disable gcc symbol visibility
1634 --disable-shared disable core shared libary generation
1636 Optional Packages:
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-64bit turn on 64 bit compilation mode (default is platform
1640 dependent)
1641 --with-optimization enable optimization for C/C++ code (default is yes)
1642 --with-threads enable support for multiple threads (default is on)
1643 --with-secure-sockets enable support for secure sockets (default is on)
1644 --with-static-probes enable support for static probes (default is on)
1645 --with-infiniband enable support for Infiniband metrics (default is
1647 --with-user user account under which daemons run (default is
1648 pcp)
1649 --with-group user group under which daemons run (default is pcp)
1650 --with-discovery enable support for service discovery (default is on)
1651 --with-systemd enable support for systemd services (default is on)
1652 --with-qt enable support for tools requiring Qt (default is
1654 --with-python enable support for tools requiring Python (default
1655 is on)
1656 --with-python3 enable support for tools requiring Python3 (default
1657 is on)
1658 --with-books enable building of the PCP books (default is off)
1659 --with-books-brand=BRAND
1660 choose the docbook brand when building the PCP books
1661 (default is common)
1662 --with-papi[=DIR|=MODULE]
1663 enable performance api counter pmda (default is on)
1664 The optional argument may be a full path of a PAPI
1665 installation prefix, or a pkgconfig module name.
1666 --with-perfevent enable perfevent pmda (default is on)
1667 --with-pmdajson enable JSON pmda (default is on)
1668 --with-pmdasnmp enable SNMP pmda (default is on)
1669 --with-manager enable daemon manager (default is on)
1670 --with-webapi enable REST API daemon (default is on)
1671 --with-webjs enable building of webjs packages (default is off)
1672 --with-vector enable building of vector package (default is off)
1673 --with-parfait enable building of parfait package (default is off)
1674 --with-make path to GNU compatible make(1) (default is empty for
1675 auto discovery)
1676 --with-tar path to GNU compatible tar(1) (default is empty for
1677 auto discovery)
1678 --with-zip path to GNU compatible zip(1) (default is empty for
1679 auto discovery)
1680 --with-configdir configuration directory [LOCALSTATEDIR/pcp/config]
1681 --with-perl_installdirs perl installdirs [vendor]
1682 --with-perl_install_base
1683 perl install_base [PREFIX]
1684 --with-python_prefix python setup.py prefix [PREFIX]
1685 --with-x use the X Window System
1686 --with-rcdir rc directory [SYSCONFDIR/rc.d]
1687 --with-sysconfigdir sysconfig directory [SYSCONFDIR/sysconfig]
1688 --with-logdir log directory [LOCALSTATEDIR/log/pcp]
1689 --with-rundir run directory [LOCALSTATEDIR/run/pcp]
1690 --with-tmpdir tmp directory [LOCALSTATEDIR/tmp]
1691 --with-docdir docs directory [DOCDIR/pcp-VERSION]
1692 --with-demosdir run directory [DATADIR/pcp/demos]
1694 Some influential environment variables:
1695 PKG_CONFIG path to pkg-config utility
1696 PKG_CONFIG_PATH
1697 directories to add to pkg-config's search path
1698 PKG_CONFIG_LIBDIR
1699 path overriding pkg-config's built-in search path
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
1707 CXX C++ compiler command
1708 CXXFLAGS C++ compiler flags
1709 YACC The `Yet Another Compiler Compiler' implementation to use.
1710 Defaults to the first program found out of: `bison -y', `byacc',
1711 `yacc'.
1712 YFLAGS The list of arguments that will be passed by default to $YACC.
1713 This script will default YFLAGS to the empty string to avoid a
1714 default value of `-d' given by some make applications.
1715 CPP C preprocessor
1716 avahi_CFLAGS
1717 C compiler flags for avahi, overriding pkg-config
1718 avahi_LIBS linker flags for avahi, overriding pkg-config
1719 SYSTEMD_SYSTEMUNITDIR
1720 value of systemdsystemunitdir for systemd, overriding pkg-config
1721 ncurses_CFLAGS
1722 C compiler flags for ncurses, overriding pkg-config
1723 ncurses_LIBS
1724 linker flags for ncurses, overriding pkg-config
1725 SYSTEMD_CFLAGS
1726 C compiler flags for SYSTEMD, overriding pkg-config
1727 SYSTEMD_LIBS
1728 linker flags for SYSTEMD, overriding pkg-config
1729 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1730 papi_LIBS linker flags for papi, overriding pkg-config
1731 libmicrohttpd_CFLAGS
1732 C compiler flags for libmicrohttpd, overriding pkg-config
1733 libmicrohttpd_LIBS
1734 linker flags for libmicrohttpd, overriding pkg-config
1735 cairo_CFLAGS
1736 C compiler flags for cairo, overriding pkg-config
1737 cairo_LIBS linker flags for cairo, overriding pkg-config
1738 XMKMF Path to xmkmf, Makefile generator for X Window System
1739 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1740 zlib_LIBS linker flags for zlib, overriding pkg-config
1742 Use these variables to override the choices made by `configure' or to help
1743 it to find libraries and programs with nonstandard names/locations.
1745 Report bugs to the package provider.
1746 _ACEOF
1747 ac_status=$?
1750 if test "$ac_init_help" = "recursive"; then
1751 # If there are subdirs, report their specific --help.
1752 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1753 test -d "$ac_dir" ||
1754 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1755 continue
1756 ac_builddir=.
1758 case "$ac_dir" in
1759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1762 # A ".." for each directory in $ac_dir_suffix.
1763 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1764 case $ac_top_builddir_sub in
1765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1767 esac ;;
1768 esac
1769 ac_abs_top_builddir=$ac_pwd
1770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1771 # for backward compatibility:
1772 ac_top_builddir=$ac_top_build_prefix
1774 case $srcdir in
1775 .) # We are building in place.
1776 ac_srcdir=.
1777 ac_top_srcdir=$ac_top_builddir_sub
1778 ac_abs_top_srcdir=$ac_pwd ;;
1779 [\\/]* | ?:[\\/]* ) # Absolute name.
1780 ac_srcdir=$srcdir$ac_dir_suffix;
1781 ac_top_srcdir=$srcdir
1782 ac_abs_top_srcdir=$srcdir ;;
1783 *) # Relative name.
1784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1785 ac_top_srcdir=$ac_top_build_prefix$srcdir
1786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1787 esac
1788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1790 cd "$ac_dir" || { ac_status=$?; continue; }
1791 # Check for guested configure.
1792 if test -f "$ac_srcdir/configure.gnu"; then
1793 echo &&
1794 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1795 elif test -f "$ac_srcdir/configure"; then
1796 echo &&
1797 $SHELL "$ac_srcdir/configure" --help=recursive
1798 else
1799 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1800 fi || ac_status=$?
1801 cd "$ac_pwd" || { ac_status=$?; break; }
1802 done
1805 test -n "$ac_init_help" && exit $ac_status
1806 if $ac_init_version; then
1807 cat <<\_ACEOF
1808 configure
1809 generated by GNU Autoconf 2.69
1811 Copyright (C) 2012 Free Software Foundation, Inc.
1812 This configure script is free software; the Free Software Foundation
1813 gives unlimited permission to copy, distribute and modify it.
1814 _ACEOF
1815 exit
1818 ## ------------------------ ##
1819 ## Autoconf initialization. ##
1820 ## ------------------------ ##
1822 # ac_fn_c_try_compile LINENO
1823 # --------------------------
1824 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_compile ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext
1829 if { { ac_try="$ac_compile"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_compile") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest.$ac_objext; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 ac_retval=1
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_compile
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_link ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 test -x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=1
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_link
1906 # ac_fn_cxx_try_compile LINENO
1907 # ----------------------------
1908 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_cxx_try_compile ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext
1913 if { { ac_try="$ac_compile"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_compile") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_cxx_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest.$ac_objext; then :
1932 ac_retval=0
1933 else
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1937 ac_retval=1
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1942 } # ac_fn_cxx_try_compile
1944 # ac_fn_c_try_cpp LINENO
1945 # ----------------------
1946 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_c_try_cpp ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_cpp conftest.$ac_ext"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } > conftest.i && {
1966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 }; then :
1969 ac_retval=0
1970 else
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 ac_retval=1
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1979 } # ac_fn_c_try_cpp
1981 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1984 # the include files in INCLUDES and setting the cache variable VAR
1985 # accordingly.
1986 ac_fn_c_check_header_mongrel ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if eval \${$3+:} false; then :
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 else
1999 # Is the header compilable?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2001 $as_echo_n "checking $2 usability... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2005 #include <$2>
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_header_compiler=yes
2009 else
2010 ac_header_compiler=no
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2014 $as_echo "$ac_header_compiler" >&6; }
2016 # Is the header present?
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2018 $as_echo_n "checking $2 presence... " >&6; }
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_cpp "$LINENO"; then :
2024 ac_header_preproc=yes
2025 else
2026 ac_header_preproc=no
2028 rm -f conftest.err conftest.i conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2030 $as_echo "$ac_header_preproc" >&6; }
2032 # So? What about this header?
2033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2034 yes:no: )
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2036 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2038 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 no:yes:* )
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2042 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2044 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2046 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2048 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052 esac
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 eval "$3=\$ac_header_compiler"
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066 } # ac_fn_c_check_header_mongrel
2068 # ac_fn_c_try_run LINENO
2069 # ----------------------
2070 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2071 # that executables *can* be run.
2072 ac_fn_c_try_run ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if { { ac_try="$ac_link"
2076 case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079 esac
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_link") 2>&5
2083 ac_status=$?
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2086 { { case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_try") 2>&5
2093 ac_status=$?
2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; }; }; then :
2096 ac_retval=0
2097 else
2098 $as_echo "$as_me: program exited with status $ac_status" >&5
2099 $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2102 ac_retval=$ac_status
2104 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 as_fn_set_status $ac_retval
2108 } # ac_fn_c_try_run
2110 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2111 # -------------------------------------------------------
2112 # Tests whether HEADER exists and can be compiled using the include files in
2113 # INCLUDES, setting the cache variable VAR accordingly.
2114 ac_fn_c_check_header_compile ()
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2125 #include <$2>
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 eval "$3=yes"
2129 else
2130 eval "$3=no"
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 eval ac_res=\$$3
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 } # ac_fn_c_check_header_compile
2141 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2142 # -------------------------------------------
2143 # Tests whether TYPE exists after having included INCLUDES, setting cache
2144 # variable VAR accordingly.
2145 ac_fn_c_check_type ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 $as_echo_n "checking for $2... " >&6; }
2150 if eval \${$3+:} false; then :
2151 $as_echo_n "(cached) " >&6
2152 else
2153 eval "$3=no"
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2158 main ()
2160 if (sizeof ($2))
2161 return 0;
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2171 main ()
2173 if (sizeof (($2)))
2174 return 0;
2176 return 0;
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2181 else
2182 eval "$3=yes"
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 eval ac_res=\$$3
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193 } # ac_fn_c_check_type
2195 # ac_fn_c_check_func LINENO FUNC VAR
2196 # ----------------------------------
2197 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2198 ac_fn_c_check_func ()
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202 $as_echo_n "checking for $2... " >&6; }
2203 if eval \${$3+:} false; then :
2204 $as_echo_n "(cached) " >&6
2205 else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2208 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2210 #define $2 innocuous_$2
2212 /* System header to define __stub macros and hopefully few prototypes,
2213 which can conflict with char $2 (); below.
2214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2215 <limits.h> exists even on freestanding compilers. */
2217 #ifdef __STDC__
2218 # include <limits.h>
2219 #else
2220 # include <assert.h>
2221 #endif
2223 #undef $2
2225 /* Override any GCC internal prototype to avoid an error.
2226 Use char because int might match the return type of a GCC
2227 builtin and then its argument prototype would still apply. */
2228 #ifdef __cplusplus
2229 extern "C"
2230 #endif
2231 char $2 ();
2232 /* The GNU C library defines this for functions which it implements
2233 to always fail with ENOSYS. Some functions are actually named
2234 something starting with __ and the normal name is an alias. */
2235 #if defined __stub_$2 || defined __stub___$2
2236 choke me
2237 #endif
2240 main ()
2242 return $2 ();
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_link "$LINENO"; then :
2248 eval "$3=yes"
2249 else
2250 eval "$3=no"
2252 rm -f core conftest.err conftest.$ac_objext \
2253 conftest$ac_exeext conftest.$ac_ext
2255 eval ac_res=\$$3
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257 $as_echo "$ac_res" >&6; }
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 } # ac_fn_c_check_func
2261 cat >config.log <<_ACEOF
2262 This file contains any messages produced by compilers while
2263 running configure, to aid debugging if configure makes a mistake.
2265 It was created by $as_me, which was
2266 generated by GNU Autoconf 2.69. Invocation command line was
2268 $ $0 $@
2270 _ACEOF
2271 exec 5>>config.log
2273 cat <<_ASUNAME
2274 ## --------- ##
2275 ## Platform. ##
2276 ## --------- ##
2278 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2279 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2280 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2281 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2282 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2284 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2285 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2287 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2288 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2289 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2290 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2291 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2292 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2293 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2295 _ASUNAME
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 $as_echo "PATH: $as_dir"
2303 done
2304 IFS=$as_save_IFS
2306 } >&5
2308 cat >&5 <<_ACEOF
2311 ## ----------- ##
2312 ## Core tests. ##
2313 ## ----------- ##
2315 _ACEOF
2318 # Keep a trace of the command line.
2319 # Strip out --no-create and --no-recursion so they do not pile up.
2320 # Strip out --silent because we don't want to record it for future runs.
2321 # Also quote any args containing shell meta-characters.
2322 # Make two passes to allow for proper duplicate-argument suppression.
2323 ac_configure_args=
2324 ac_configure_args0=
2325 ac_configure_args1=
2326 ac_must_keep_next=false
2327 for ac_pass in 1 2
2329 for ac_arg
2331 case $ac_arg in
2332 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2334 | -silent | --silent | --silen | --sile | --sil)
2335 continue ;;
2336 *\'*)
2337 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2338 esac
2339 case $ac_pass in
2340 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2342 as_fn_append ac_configure_args1 " '$ac_arg'"
2343 if test $ac_must_keep_next = true; then
2344 ac_must_keep_next=false # Got value, back to normal.
2345 else
2346 case $ac_arg in
2347 *=* | --config-cache | -C | -disable-* | --disable-* \
2348 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2349 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2350 | -with-* | --with-* | -without-* | --without-* | --x)
2351 case "$ac_configure_args0 " in
2352 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2353 esac
2355 -* ) ac_must_keep_next=true ;;
2356 esac
2358 as_fn_append ac_configure_args " '$ac_arg'"
2360 esac
2361 done
2362 done
2363 { ac_configure_args0=; unset ac_configure_args0;}
2364 { ac_configure_args1=; unset ac_configure_args1;}
2366 # When interrupted or exit'd, cleanup temporary files, and complete
2367 # config.log. We remove comments because anyway the quotes in there
2368 # would cause problems or look ugly.
2369 # WARNING: Use '\'' to represent an apostrophe within the trap.
2370 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2371 trap 'exit_status=$?
2372 # Save into config.log some information that might help in debugging.
2374 echo
2376 $as_echo "## ---------------- ##
2377 ## Cache variables. ##
2378 ## ---------------- ##"
2379 echo
2380 # The following way of writing the cache mishandles newlines in values,
2382 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2383 eval ac_val=\$$ac_var
2384 case $ac_val in #(
2385 *${as_nl}*)
2386 case $ac_var in #(
2387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2388 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2389 esac
2390 case $ac_var in #(
2391 _ | IFS | as_nl) ;; #(
2392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2393 *) { eval $ac_var=; unset $ac_var;} ;;
2394 esac ;;
2395 esac
2396 done
2397 (set) 2>&1 |
2398 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2399 *${as_nl}ac_space=\ *)
2400 sed -n \
2401 "s/'\''/'\''\\\\'\'''\''/g;
2402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2403 ;; #(
2405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2407 esac |
2408 sort
2410 echo
2412 $as_echo "## ----------------- ##
2413 ## Output variables. ##
2414 ## ----------------- ##"
2415 echo
2416 for ac_var in $ac_subst_vars
2418 eval ac_val=\$$ac_var
2419 case $ac_val in
2420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421 esac
2422 $as_echo "$ac_var='\''$ac_val'\''"
2423 done | sort
2424 echo
2426 if test -n "$ac_subst_files"; then
2427 $as_echo "## ------------------- ##
2428 ## File substitutions. ##
2429 ## ------------------- ##"
2430 echo
2431 for ac_var in $ac_subst_files
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 $as_echo "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2442 if test -s confdefs.h; then
2443 $as_echo "## ----------- ##
2444 ## confdefs.h. ##
2445 ## ----------- ##"
2446 echo
2447 cat confdefs.h
2448 echo
2450 test "$ac_signal" != 0 &&
2451 $as_echo "$as_me: caught signal $ac_signal"
2452 $as_echo "$as_me: exit $exit_status"
2453 } >&5
2454 rm -f core *.core core.conftest.* &&
2455 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2456 exit $exit_status
2458 for ac_signal in 1 2 13 15; do
2459 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2460 done
2461 ac_signal=0
2463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2464 rm -f -r conftest* confdefs.h
2466 $as_echo "/* confdefs.h */" > confdefs.h
2468 # Predefined preprocessor variables.
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_NAME "$PACKAGE_NAME"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2480 _ACEOF
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_STRING "$PACKAGE_STRING"
2484 _ACEOF
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2488 _ACEOF
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_URL "$PACKAGE_URL"
2492 _ACEOF
2495 # Let the site file select an alternate cache file if it wants to.
2496 # Prefer an explicitly selected file to automatically selected ones.
2497 ac_site_file1=NONE
2498 ac_site_file2=NONE
2499 if test -n "$CONFIG_SITE"; then
2500 # We do not want a PATH search for config.site.
2501 case $CONFIG_SITE in #((
2502 -*) ac_site_file1=./$CONFIG_SITE;;
2503 */*) ac_site_file1=$CONFIG_SITE;;
2504 *) ac_site_file1=./$CONFIG_SITE;;
2505 esac
2506 elif test "x$prefix" != xNONE; then
2507 ac_site_file1=$prefix/share/config.site
2508 ac_site_file2=$prefix/etc/config.site
2509 else
2510 ac_site_file1=$ac_default_prefix/share/config.site
2511 ac_site_file2=$ac_default_prefix/etc/config.site
2513 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2515 test "x$ac_site_file" = xNONE && continue
2516 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2518 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2519 sed 's/^/| /' "$ac_site_file" >&5
2520 . "$ac_site_file" \
2521 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 as_fn_error $? "failed to load site script $ac_site_file
2524 See \`config.log' for more details" "$LINENO" 5; }
2526 done
2528 if test -r "$cache_file"; then
2529 # Some versions of bash will fail to source /dev/null (special files
2530 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2531 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2533 $as_echo "$as_me: loading cache $cache_file" >&6;}
2534 case $cache_file in
2535 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2536 *) . "./$cache_file";;
2537 esac
2539 else
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2541 $as_echo "$as_me: creating cache $cache_file" >&6;}
2542 >$cache_file
2545 # Check that the precious variables saved in the cache have kept the same
2546 # value.
2547 ac_cache_corrupted=false
2548 for ac_var in $ac_precious_vars; do
2549 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2550 eval ac_new_set=\$ac_env_${ac_var}_set
2551 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2552 eval ac_new_val=\$ac_env_${ac_var}_value
2553 case $ac_old_set,$ac_new_set in
2554 set,)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,set)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2562 ,);;
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
2565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w=`echo x $ac_old_val`
2567 ac_new_val_w=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted=:
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\$ac_old_val
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2581 fi;;
2582 esac
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2585 case $ac_new_val in
2586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2587 *) ac_arg=$ac_var=$ac_new_val ;;
2588 esac
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2591 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2592 esac
2594 done
2595 if $ac_cache_corrupted; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2600 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2606 ac_ext=c
2607 ac_cpp='$CPP $CPPFLAGS'
2608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2615 unset ROOT TOOLROOT
2618 # Check whether --with-64bit was given.
2619 if test "${with_64bit+set}" = set; then :
2620 withval=$with_64bit; use_64bit=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-64bit=$withval"
2625 # Check whether --with-optimization was given.
2626 if test "${with_optimization+set}" = set; then :
2627 withval=$with_optimization; use_optimization=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-optimization=$withval"
2628 else
2629 use_optimizaton=yes
2634 # Check whether --with-threads was given.
2635 if test "${with_threads+set}" = set; then :
2636 withval=$with_threads; do_threads=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-threads=$withval"
2637 else
2638 do_threads=check
2643 # Check whether --with-secure-sockets was given.
2644 if test "${with_secure_sockets+set}" = set; then :
2645 withval=$with_secure_sockets; do_secure=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2646 else
2647 do_secure=check
2652 # Check whether --with-static-probes was given.
2653 if test "${with_static_probes+set}" = set; then :
2654 withval=$with_static_probes; do_probes=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2655 else
2656 do_probes=check
2661 # Check whether --with-infiniband was given.
2662 if test "${with_infiniband+set}" = set; then :
2663 withval=$with_infiniband; do_infiniband=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2664 else
2665 do_infiniband=check
2670 # Check whether --with-user was given.
2671 if test "${with_user+set}" = set; then :
2672 withval=$with_user; pcp_user=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-user-account=$withval"
2673 else
2674 pcp_user=pcp
2680 # Check whether --with-group was given.
2681 if test "${with_group+set}" = set; then :
2682 withval=$with_group; pcp_group=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-group-account=$withval"
2683 else
2684 pcp_group=pcp
2690 # Check whether --with-discovery was given.
2691 if test "${with_discovery+set}" = set; then :
2692 withval=$with_discovery; do_discovery=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-discovery=$withval"
2693 else
2694 do_discovery=check
2699 # Check whether --with-systemd was given.
2700 if test "${with_systemd+set}" = set; then :
2701 withval=$with_systemd; do_systemd=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-systemd=$withval"
2702 else
2703 do_systemd=check
2708 # Check whether --with-qt was given.
2709 if test "${with_qt+set}" = set; then :
2710 withval=$with_qt; do_qt=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt=$withval"
2711 else
2712 do_qt=check
2717 # Check whether --with-python was given.
2718 if test "${with_python+set}" = set; then :
2719 withval=$with_python; do_python=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python=$withval"
2720 else
2721 do_python=check
2726 # Check whether --with-python3 was given.
2727 if test "${with_python3+set}" = set; then :
2728 withval=$with_python3; do_python3=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python3=$withval"
2729 else
2730 do_python3=check
2735 # Check whether --with-books was given.
2736 if test "${with_books+set}" = set; then :
2737 withval=$with_books; do_books=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books=$withval"
2738 else
2739 do_books=no
2744 # Check whether --with-books-brand was given.
2745 if test "${with_books_brand+set}" = set; then :
2746 withval=$with_books_brand; do_books_brand=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2747 else
2748 do_books_brand=common
2753 # Check whether --with-papi was given.
2754 if test "${with_papi+set}" = set; then :
2755 withval=$with_papi; do_papi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-papi=$withval"
2756 else
2757 do_papi=check
2762 # Check whether --with-perfevent was given.
2763 if test "${with_perfevent+set}" = set; then :
2764 withval=$with_perfevent; do_perfevent=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2765 else
2766 do_perfevent=check
2771 # Check whether --with-pmdajson was given.
2772 if test "${with_pmdajson+set}" = set; then :
2773 withval=$with_pmdajson; do_pmdajson=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2774 else
2775 do_pmdajson=check
2780 # Check whether --with-pmdasnmp was given.
2781 if test "${with_pmdasnmp+set}" = set; then :
2782 withval=$with_pmdasnmp; do_pmdasnmp=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2783 else
2784 do_pmdasnmp=check
2789 # Check whether --with-manager was given.
2790 if test "${with_manager+set}" = set; then :
2791 withval=$with_manager; do_manager=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-manager=$withval"
2792 else
2793 do_manager=check
2798 # Check whether --with-webapi was given.
2799 if test "${with_webapi+set}" = set; then :
2800 withval=$with_webapi; do_webapi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webapi=$withval"
2801 else
2802 do_webapi=check
2807 # Check whether --with-webjs was given.
2808 if test "${with_webjs+set}" = set; then :
2809 withval=$with_webjs; do_webjs=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webjs=$withval"
2810 else
2811 do_webjs=no
2816 # Check whether --with-vector was given.
2817 if test "${with_vector+set}" = set; then :
2818 withval=$with_vector; do_vector=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-vector=$withval"
2819 else
2820 do_vector=no
2825 # Check whether --with-parfait was given.
2826 if test "${with_parfait+set}" = set; then :
2827 withval=$with_parfait; do_parfait=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-parfait=$withval"
2828 else
2829 do_parfait=no
2835 # Check whether --with-make was given.
2836 if test "${with_make+set}" = set; then :
2837 withval=$with_make; MAKE=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-make=$withval"
2838 else
2839 MAKE=''
2844 # Check whether --with-tar was given.
2845 if test "${with_tar+set}" = set; then :
2846 withval=$with_tar; TAR=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-tar=$withval"
2847 else
2848 TAR=''
2853 # Check whether --with-zip was given.
2854 if test "${with_zip+set}" = set; then :
2855 withval=$with_zip; ZIP=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-zip=$withval"
2856 else
2857 ZIP=''
2862 # Note: the following environment variables may be
2863 # set to override the defaults.
2865 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2868 ac_aux_dir=
2869 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2870 if test -f "$ac_dir/install-sh"; then
2871 ac_aux_dir=$ac_dir
2872 ac_install_sh="$ac_aux_dir/install-sh -c"
2873 break
2874 elif test -f "$ac_dir/install.sh"; then
2875 ac_aux_dir=$ac_dir
2876 ac_install_sh="$ac_aux_dir/install.sh -c"
2877 break
2878 elif test -f "$ac_dir/shtool"; then
2879 ac_aux_dir=$ac_dir
2880 ac_install_sh="$ac_aux_dir/shtool install -c"
2881 break
2883 done
2884 if test -z "$ac_aux_dir"; then
2885 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2888 # These three variables are undocumented and unsupported,
2889 # and are intended to be withdrawn in a future Autoconf release.
2890 # They can cause serious problems if a builder's source tree is in a directory
2891 # whose full name contains unusual characters.
2892 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2893 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2894 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2897 # Make sure we can run config.sub.
2898 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2899 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2902 $as_echo_n "checking build system type... " >&6; }
2903 if ${ac_cv_build+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 ac_build_alias=$build_alias
2907 test "x$ac_build_alias" = x &&
2908 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2909 test "x$ac_build_alias" = x &&
2910 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2911 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2912 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2916 $as_echo "$ac_cv_build" >&6; }
2917 case $ac_cv_build in
2918 *-*-*) ;;
2919 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2920 esac
2921 build=$ac_cv_build
2922 ac_save_IFS=$IFS; IFS='-'
2923 set x $ac_cv_build
2924 shift
2925 build_cpu=$1
2926 build_vendor=$2
2927 shift; shift
2928 # Remember, the first character of IFS is used to create $*,
2929 # except with old shells:
2930 build_os=$*
2931 IFS=$ac_save_IFS
2932 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2936 $as_echo_n "checking host system type... " >&6; }
2937 if ${ac_cv_host+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test "x$host_alias" = x; then
2941 ac_cv_host=$ac_cv_build
2942 else
2943 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2944 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2949 $as_echo "$ac_cv_host" >&6; }
2950 case $ac_cv_host in
2951 *-*-*) ;;
2952 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2953 esac
2954 host=$ac_cv_host
2955 ac_save_IFS=$IFS; IFS='-'
2956 set x $ac_cv_host
2957 shift
2958 host_cpu=$1
2959 host_vendor=$2
2960 shift; shift
2961 # Remember, the first character of IFS is used to create $*,
2962 # except with old shells:
2963 host_os=$*
2964 IFS=$ac_save_IFS
2965 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2969 $as_echo_n "checking target system type... " >&6; }
2970 if ${ac_cv_target+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test "x$target_alias" = x; then
2974 ac_cv_target=$ac_cv_host
2975 else
2976 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2977 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2982 $as_echo "$ac_cv_target" >&6; }
2983 case $ac_cv_target in
2984 *-*-*) ;;
2985 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2986 esac
2987 target=$ac_cv_target
2988 ac_save_IFS=$IFS; IFS='-'
2989 set x $ac_cv_target
2990 shift
2991 target_cpu=$1
2992 target_vendor=$2
2993 shift; shift
2994 # Remember, the first character of IFS is used to create $*,
2995 # except with old shells:
2996 target_os=$*
2997 IFS=$ac_save_IFS
2998 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3001 # The aliases save the names the user supplied, while $host etc.
3002 # will get canonicalized.
3003 test -n "$target_alias" &&
3004 test "$program_prefix$program_suffix$program_transform_name" = \
3005 NONENONEs,x,x, &&
3006 program_prefix=${target_alias}-
3008 if test -z "$target"
3009 then
3010 echo '
3011 FATAL ERROR: Cannot guess your target, try explicit specification
3012 using --target or mailto: pcp@groups.io to ask.'
3013 rm -rf conftest conftest.*
3014 exit 1
3015 else
3016 target=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3017 target_os=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3018 target_os=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3020 build=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3021 build_os=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3022 build_os=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3025 echo Building on $build for $target
3026 echo "Build: os=$build_os cpu=$build_cpu"
3027 echo "Target: os=$target_os cpu=$target_cpu"
3029 if test "$cross_compiling" = "yes"; then
3030 if test -f ./config.$target_os; then
3031 . ./config.$target_os
3032 else
3033 echo
3034 echo "
3035 FATAL ERROR: Cannot perform cross-compilation without a file to source
3036 configuration information from (config.$target_os is missing)"
3037 rm -rf conftest conftest.*
3038 exit 1
3044 target_distro=$target_os
3045 if test $target_os = linux
3046 then
3048 $as_echo "#define IS_LINUX 1" >>confdefs.h
3050 test -f /etc/SuSE-release && target_distro=suse
3051 test -f /etc/fedora-release && target_distro=fedora
3052 test -f /etc/redhat-release && target_distro=redhat
3053 test -f /etc/debian_version && target_distro=debian
3054 test -f /etc/slackware-version && target_distro=slackware
3055 test -f /etc/gentoo-release && target_distro=gentoo
3056 test -f /etc/mandriva-release && target_distro=mandriva
3057 test -f /etc/arch-release && target_distro=arch
3058 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3059 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3060 pcp_ps_all_flags=-efw
3061 elif test $target_os = darwin
3062 then
3064 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3066 target_distro=macosx
3067 version=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3068 CFLAGS="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3069 if test $version -ge 106
3070 then
3071 target_distro=cocoa
3072 CFLAGS="$CFLAGS -arch x86_64"
3074 export CFLAGS
3075 pcp_platform_paths='/usr/local/bin'
3076 pcp_ps_all_flags="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3077 elif test $target_os = mingw
3078 then
3080 $as_echo "#define IS_MINGW 1" >>confdefs.h
3082 CFLAGS="-fno-strict-aliasing"
3083 pcp_platform_paths=''
3084 pcp_ps_all_flags=-efW
3085 elif test $target_os = solaris
3086 then
3088 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3090 export CFLAGS_IF_GCC="-fPIC -fno-strict-aliasing"
3091 export CFLAGS_IF_SUNCC="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3092 pcp_platform_paths='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3093 pcp_ps_all_flags=-ef
3094 elif test $target_os = aix
3095 then
3097 $as_echo "#define IS_AIX 1" >>confdefs.h
3099 export CFLAGS="-qcpluscmt"
3100 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3101 pcp_ps_all_flags=-ef
3102 elif test $target_os = freebsd || test $target_os = kfreebsd
3103 then
3105 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3107 test -f /etc/debian_version && target_distro=debian
3108 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3109 if test $target_os = kfreebsd
3110 then
3111 pcp_ps_all_flags=-efw
3112 else
3113 pcp_ps_all_flags=auxww
3115 pcp_platform_paths='/usr/bin/X11'
3116 test -d /usr/local/bin && pcp_platform_paths="$pcp_platform_paths:/usr/local/bin"
3117 test -d /usr/bsd && pcp_platform_paths="$pcp_platform_paths:/usr/bsd"
3118 elif test $target_os = gnu
3119 then
3121 $as_echo "#define IS_GNU 1" >>confdefs.h
3123 test -f /etc/debian_version && target_distro=debian
3124 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3125 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3126 pcp_ps_all_flags=-efw
3127 elif test $target_os = netbsdelf
3128 then
3129 target_os=netbsd
3131 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3133 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3134 pcp_platform_paths='/usr/pkg/bin'
3135 pcp_ps_all_flags=auxww
3136 elif test $target_os = openbsd
3137 then
3138 target_os=openbsd
3140 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3142 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3143 pcp_platform_paths='/usr/local/bin'
3144 pcp_ps_all_flags=auxww
3145 else
3146 echo
3147 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3148 rm -rf conftest conftest.*
3149 exit 1
3154 if test "$use_optimization" = no
3155 then
3156 optimization="-O0 -g"
3157 else
3158 optimization="-O2 -g"
3169 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 case $PKG_CONFIG in
3179 [\\/]* | ?:[\\/]*)
3180 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3199 esac
3201 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3202 if test -n "$PKG_CONFIG"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3204 $as_echo "$PKG_CONFIG" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3212 if test -z "$ac_cv_path_PKG_CONFIG"; then
3213 ac_pt_PKG_CONFIG=$PKG_CONFIG
3214 # Extract the first word of "pkg-config", so it can be a program name with args.
3215 set dummy pkg-config; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 case $ac_pt_PKG_CONFIG in
3222 [\\/]* | ?:[\\/]*)
3223 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3237 done
3238 done
3239 IFS=$as_save_IFS
3242 esac
3244 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3245 if test -n "$ac_pt_PKG_CONFIG"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3247 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3253 if test "x$ac_pt_PKG_CONFIG" = x; then
3254 PKG_CONFIG=""
3255 else
3256 case $cross_compiling:$ac_tool_warned in
3257 yes:)
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3260 ac_tool_warned=yes ;;
3261 esac
3262 PKG_CONFIG=$ac_pt_PKG_CONFIG
3264 else
3265 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3269 if test -n "$PKG_CONFIG"; then
3270 _pkg_min_version=0.9.0
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3272 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3273 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 PKG_CONFIG=""
3282 if test -z "$PKG_CONFIG"; then
3283 as_fn_error $? "cannot find a 'pkg-config' command" "$LINENO" 5
3286 cflags_abi=
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 if test -n "$ac_tool_prefix"; then
3293 for ac_prog in suncc egcc gcc cc
3295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_prog_CC+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 break 2
3316 done
3317 done
3318 IFS=$as_save_IFS
3322 CC=$ac_cv_prog_CC
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3332 test -n "$CC" && break
3333 done
3335 if test -z "$CC"; then
3336 ac_ct_CC=$CC
3337 for ac_prog in suncc egcc gcc cc
3339 # Extract the first word of "$ac_prog", so it can be a program name with args.
3340 set dummy $ac_prog; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_ac_ct_CC="$ac_prog"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3360 done
3361 done
3362 IFS=$as_save_IFS
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3376 test -n "$ac_ct_CC" && break
3377 done
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3387 esac
3388 CC=$ac_ct_CC
3393 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error $? "no acceptable C compiler found in \$PATH
3396 See \`config.log' for more details" "$LINENO" 5; }
3398 # Provide some information about the compiler.
3399 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3400 set X $ac_compile
3401 ac_compiler=$2
3402 for ac_option in --version -v -V -qversion; do
3403 { { ac_try="$ac_compiler $ac_option >&5"
3404 case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3411 ac_status=$?
3412 if test -s conftest.err; then
3413 sed '10a\
3414 ... rest of stderr output deleted ...
3415 10q' conftest.err >conftest.er1
3416 cat conftest.er1 >&5
3418 rm -f conftest.er1 conftest.err
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }
3421 done
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3427 main ()
3431 return 0;
3433 _ACEOF
3434 ac_clean_files_save=$ac_clean_files
3435 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3436 # Try to create an executable without -o first, disregard a.out.
3437 # It will help us diagnose broken compilers, and finding out an intuition
3438 # of exeext.
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3440 $as_echo_n "checking whether the C compiler works... " >&6; }
3441 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3443 # The possible output files:
3444 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3446 ac_rmfiles=
3447 for ac_file in $ac_files
3449 case $ac_file in
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3452 esac
3453 done
3454 rm -f $ac_rmfiles
3456 if { { ac_try="$ac_link_default"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_link_default") 2>&5
3464 ac_status=$?
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; then :
3467 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3468 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3469 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3470 # so that the user can short-circuit this test for compilers unknown to
3471 # Autoconf.
3472 for ac_file in $ac_files ''
3474 test -f "$ac_file" || continue
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3478 [ab].out )
3479 # We found the default executable, but exeext='' is most
3480 # certainly right.
3481 break;;
3482 *.* )
3483 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3484 then :; else
3485 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 # We set ac_cv_exeext here because the later test for it is not
3488 # safe: cross compilers may not add the suffix if given an `-o'
3489 # argument, so we may need to know it at that point already.
3490 # Even if this section looks crufty: it has the advantage of
3491 # actually working.
3492 break;;
3494 break;;
3495 esac
3496 done
3497 test "$ac_cv_exeext" = no && ac_cv_exeext=
3499 else
3500 ac_file=''
3502 if test -z "$ac_file"; then :
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error 77 "C compiler cannot create executables
3511 See \`config.log' for more details" "$LINENO" 5; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3514 $as_echo "yes" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3517 $as_echo_n "checking for C compiler default output file name... " >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3519 $as_echo "$ac_file" >&6; }
3520 ac_exeext=$ac_cv_exeext
3522 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3523 ac_clean_files=$ac_clean_files_save
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3525 $as_echo_n "checking for suffix of executables... " >&6; }
3526 if { { ac_try="$ac_link"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3539 # work properly (i.e., refer to `conftest.exe'), while it won't with
3540 # `rm'.
3541 for ac_file in conftest.exe conftest conftest.*; do
3542 test -f "$ac_file" || continue
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 break;;
3547 * ) break;;
3548 esac
3549 done
3550 else
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3554 See \`config.log' for more details" "$LINENO" 5; }
3556 rm -f conftest conftest$ac_cv_exeext
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3558 $as_echo "$ac_cv_exeext" >&6; }
3560 rm -f conftest.$ac_ext
3561 EXEEXT=$ac_cv_exeext
3562 ac_exeext=$EXEEXT
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <stdio.h>
3567 main ()
3569 FILE *f = fopen ("conftest.out", "w");
3570 return ferror (f) || fclose (f) != 0;
3573 return 0;
3575 _ACEOF
3576 ac_clean_files="$ac_clean_files conftest.out"
3577 # Check that the compiler produces executables we can run. If not, either
3578 # the compiler is broken, or we cross compile.
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3580 $as_echo_n "checking whether we are cross compiling... " >&6; }
3581 if test "$cross_compiling" != yes; then
3582 { { ac_try="$ac_link"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }
3593 if { ac_try='./conftest$ac_cv_exeext'
3594 { { case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_try") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; }; then
3604 cross_compiling=no
3605 else
3606 if test "$cross_compiling" = maybe; then
3607 cross_compiling=yes
3608 else
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot run C compiled programs.
3612 If you meant to cross compile, use \`--host'.
3613 See \`config.log' for more details" "$LINENO" 5; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618 $as_echo "$cross_compiling" >&6; }
3620 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3621 ac_clean_files=$ac_clean_files_save
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3623 $as_echo_n "checking for suffix of object files... " >&6; }
3624 if ${ac_cv_objext+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3631 main ()
3635 return 0;
3637 _ACEOF
3638 rm -f conftest.o conftest.obj
3639 if { { ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_compile") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 for ac_file in conftest.o conftest.obj conftest.*; do
3651 test -f "$ac_file" || continue;
3652 case $ac_file in
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3655 break;;
3656 esac
3657 done
3658 else
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $? "cannot compute suffix of object files: cannot compile
3665 See \`config.log' for more details" "$LINENO" 5; }
3667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3670 $as_echo "$ac_cv_objext" >&6; }
3671 OBJEXT=$ac_cv_objext
3672 ac_objext=$OBJEXT
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675 if ${ac_cv_c_compiler_gnu+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3682 main ()
3684 #ifndef __GNUC__
3685 choke me
3686 #endif
3689 return 0;
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_compiler_gnu=yes
3694 else
3695 ac_compiler_gnu=no
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3702 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3703 if test $ac_compiler_gnu = yes; then
3704 GCC=yes
3705 else
3706 GCC=
3708 ac_test_CFLAGS=${CFLAGS+set}
3709 ac_save_CFLAGS=$CFLAGS
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3711 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3712 if ${ac_cv_prog_cc_g+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 ac_save_c_werror_flag=$ac_c_werror_flag
3716 ac_c_werror_flag=yes
3717 ac_cv_prog_cc_g=no
3718 CFLAGS="-g"
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3723 main ()
3727 return 0;
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_cv_prog_cc_g=yes
3732 else
3733 CFLAGS=""
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3738 main ()
3742 return 0;
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3747 else
3748 ac_c_werror_flag=$ac_save_c_werror_flag
3749 CFLAGS="-g"
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3754 main ()
3758 return 0;
3760 _ACEOF
3761 if ac_fn_c_try_compile "$LINENO"; then :
3762 ac_cv_prog_cc_g=yes
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_c_werror_flag=$ac_save_c_werror_flag
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3772 $as_echo "$ac_cv_prog_cc_g" >&6; }
3773 if test "$ac_test_CFLAGS" = set; then
3774 CFLAGS=$ac_save_CFLAGS
3775 elif test $ac_cv_prog_cc_g = yes; then
3776 if test "$GCC" = yes; then
3777 CFLAGS="-g -O2"
3778 else
3779 CFLAGS="-g"
3781 else
3782 if test "$GCC" = yes; then
3783 CFLAGS="-O2"
3784 else
3785 CFLAGS=
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3789 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3790 if ${ac_cv_prog_cc_c89+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 ac_cv_prog_cc_c89=no
3794 ac_save_CC=$CC
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 #include <stdarg.h>
3798 #include <stdio.h>
3799 struct stat;
3800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3801 struct buf { int x; };
3802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3803 static char *e (p, i)
3804 char **p;
3805 int i;
3807 return p[i];
3809 static char *f (char * (*g) (char **, int), char **p, ...)
3811 char *s;
3812 va_list v;
3813 va_start (v,p);
3814 s = g (p, va_arg (v,int));
3815 va_end (v);
3816 return s;
3819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3820 function prototypes and stuff, but not '\xHH' hex character constants.
3821 These don't provoke an error unfortunately, instead are silently treated
3822 as 'x'. The following induces an error, until -std is added to get
3823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3824 array size at least. It's necessary to write '\x00'==0 to get something
3825 that's true only with -std. */
3826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3829 inside strings and character constants. */
3830 #define FOO(x) 'x'
3831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3833 int test (int i, double x);
3834 struct s1 {int (*f) (int a);};
3835 struct s2 {int (*f) (double a);};
3836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3837 int argc;
3838 char **argv;
3840 main ()
3842 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3844 return 0;
3846 _ACEOF
3847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3850 CC="$ac_save_CC $ac_arg"
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 ac_cv_prog_cc_c89=$ac_arg
3854 rm -f core conftest.err conftest.$ac_objext
3855 test "x$ac_cv_prog_cc_c89" != "xno" && break
3856 done
3857 rm -f conftest.$ac_ext
3858 CC=$ac_save_CC
3861 # AC_CACHE_VAL
3862 case "x$ac_cv_prog_cc_c89" in
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3865 $as_echo "none needed" >&6; } ;;
3866 xno)
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3868 $as_echo "unsupported" >&6; } ;;
3870 CC="$CC $ac_cv_prog_cc_c89"
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3872 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3873 esac
3874 if test "x$ac_cv_prog_cc_c89" != xno; then :
3878 ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 if test $target_os = solaris
3885 then
3886 # Extract the first word of "$CC", so it can be a program name with args.
3887 set dummy $CC; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_path_CCPATH+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 case $CCPATH in
3894 [\\/]* | ?:[\\/]*)
3895 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3909 done
3910 done
3911 IFS=$as_save_IFS
3913 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3915 esac
3917 CCPATH=$ac_cv_path_CCPATH
3918 if test -n "$CCPATH"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3920 $as_echo "$CCPATH" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3927 cc=$CCPATH
3928 if test "$GCC" = "yes"
3929 then
3930 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3931 else
3932 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3934 if test "$use_64bit" = "no"
3935 then
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3939 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3940 case `isainfo -k`
3942 amd64|sparcv9)
3943 cflags_abi=-m64
3944 CFLAGS="$CFLAGS -m64"
3945 LDFLAGS="$LDFLAGS -m64"
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3953 esac
3955 else
3956 cc=$CC
3959 cc_is_gcc=$GCC
3962 PCFLAGS="$CFLAGS"
3963 PLDFLAGS=$LDFLAGS
3965 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3966 then
3967 CFLAGS="-O $PCFLAGS"
3971 # Add some security-related gcc flags
3972 if echo "$CFLAGS" | grep stack-protector >/dev/null
3973 then
3975 else
3976 # Check whether --enable-ssp was given.
3977 if test "${enable_ssp+set}" = set; then :
3978 enableval=$enable_ssp;
3982 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3984 save_CFLAGS="$CFLAGS"
3985 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 int something ();
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3993 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3994 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3995 else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3998 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3999 CFLAGS="$save_CFLAGS"
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 # Check for even more security-related gcc/linker flags, useful for daemons
4010 # Check whether --enable-pie was given.
4011 if test "${enable_pie+set}" = set; then :
4012 enableval=$enable_pie;
4015 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4017 PIECFLAGS='-fPIE'
4018 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4019 save_CFLAGS="$CFLAGS"
4020 save_LDFLAGS="$LDFLAGS"
4021 CFLAGS="$CFLAGS $PIECFLAGS"
4022 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 void main () {}
4026 _ACEOF
4027 if ac_fn_c_try_link "$LINENO"; then :
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4030 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4032 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4035 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4036 PIECFLAGS=""
4037 PIELDFLAGS=""
4040 rm -f core conftest.err conftest.$ac_objext \
4041 conftest$ac_exeext conftest.$ac_ext
4042 CFLAGS="$save_CFLAGS"
4043 LDFLAGS="$save_LDFLAGS"
4049 # Check for support for symbol hiding via gcc flags
4050 # Check whether --enable-visibility was given.
4051 if test "${enable_visibility+set}" = set; then :
4052 enableval=$enable_visibility;
4055 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4057 INVISIBILITY="-fvisibility=hidden"
4058 save_CFLAGS="$CFLAGS"
4059 CFLAGS="$CFLAGS -c $INVISIBILITY"
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 int visible () { return 0; }
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4067 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4069 else
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4072 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4073 INVISIBILITY=""
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 CFLAGS="$save_CFLAGS"
4082 ac_ext=cpp
4083 ac_cpp='$CXXCPP $CPPFLAGS'
4084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4087 if test -z "$CXX"; then
4088 if test -n "$CCC"; then
4089 CXX=$CCC
4090 else
4091 if test -n "$ac_tool_prefix"; then
4092 for ac_prog in eg++ g++ c++
4094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CXX+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -n "$CXX"; then
4102 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4115 done
4116 done
4117 IFS=$as_save_IFS
4121 CXX=$ac_cv_prog_CXX
4122 if test -n "$CXX"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4124 $as_echo "$CXX" >&6; }
4125 else
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4131 test -n "$CXX" && break
4132 done
4134 if test -z "$CXX"; then
4135 ac_ct_CXX=$CXX
4136 for ac_prog in eg++ g++ c++
4138 # Extract the first word of "$ac_prog", so it can be a program name with args.
4139 set dummy $ac_prog; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -n "$ac_ct_CXX"; then
4146 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_ac_ct_CXX="$ac_prog"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4159 done
4160 done
4161 IFS=$as_save_IFS
4165 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4166 if test -n "$ac_ct_CXX"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4168 $as_echo "$ac_ct_CXX" >&6; }
4169 else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4175 test -n "$ac_ct_CXX" && break
4176 done
4178 if test "x$ac_ct_CXX" = x; then
4179 CXX="g++"
4180 else
4181 case $cross_compiling:$ac_tool_warned in
4182 yes:)
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4185 ac_tool_warned=yes ;;
4186 esac
4187 CXX=$ac_ct_CXX
4193 # Provide some information about the compiler.
4194 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4195 set X $ac_compile
4196 ac_compiler=$2
4197 for ac_option in --version -v -V -qversion; do
4198 { { ac_try="$ac_compiler $ac_option >&5"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4206 ac_status=$?
4207 if test -s conftest.err; then
4208 sed '10a\
4209 ... rest of stderr output deleted ...
4210 10q' conftest.err >conftest.er1
4211 cat conftest.er1 >&5
4213 rm -f conftest.er1 conftest.err
4214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215 test $ac_status = 0; }
4216 done
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4219 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4220 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4227 main ()
4229 #ifndef __GNUC__
4230 choke me
4231 #endif
4234 return 0;
4236 _ACEOF
4237 if ac_fn_cxx_try_compile "$LINENO"; then :
4238 ac_compiler_gnu=yes
4239 else
4240 ac_compiler_gnu=no
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4247 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4248 if test $ac_compiler_gnu = yes; then
4249 GXX=yes
4250 else
4251 GXX=
4253 ac_test_CXXFLAGS=${CXXFLAGS+set}
4254 ac_save_CXXFLAGS=$CXXFLAGS
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4256 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4257 if ${ac_cv_prog_cxx_g+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4261 ac_cxx_werror_flag=yes
4262 ac_cv_prog_cxx_g=no
4263 CXXFLAGS="-g"
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4268 main ()
4272 return 0;
4274 _ACEOF
4275 if ac_fn_cxx_try_compile "$LINENO"; then :
4276 ac_cv_prog_cxx_g=yes
4277 else
4278 CXXFLAGS=""
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4283 main ()
4287 return 0;
4289 _ACEOF
4290 if ac_fn_cxx_try_compile "$LINENO"; then :
4292 else
4293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4294 CXXFLAGS="-g"
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4299 main ()
4303 return 0;
4305 _ACEOF
4306 if ac_fn_cxx_try_compile "$LINENO"; then :
4307 ac_cv_prog_cxx_g=yes
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4317 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4318 if test "$ac_test_CXXFLAGS" = set; then
4319 CXXFLAGS=$ac_save_CXXFLAGS
4320 elif test $ac_cv_prog_cxx_g = yes; then
4321 if test "$GXX" = yes; then
4322 CXXFLAGS="-g -O2"
4323 else
4324 CXXFLAGS="-g"
4326 else
4327 if test "$GXX" = yes; then
4328 CXXFLAGS="-O2"
4329 else
4330 CXXFLAGS=
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 cxx=$CXX
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4342 $as_echo_n "checking for working C++ compiler... " >&6; }
4343 ac_ext=cpp
4344 ac_cpp='$CXXCPP $CPPFLAGS'
4345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <cstdio>
4354 main ()
4356 const char gday[] = "G'day, world\n";
4358 return 0;
4360 _ACEOF
4361 if ac_fn_cxx_try_compile "$LINENO"; then :
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363 $as_echo "yes" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 cxx=""
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 ac_ext=c
4371 ac_cpp='$CPP $CPPFLAGS'
4372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377 # Prevent shared libraries from being built for libpcp and other core libraries
4378 # Check whether --enable-shared was given.
4379 if test "${enable_shared+set}" = set; then :
4380 enableval=$enable_shared; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --disable-shared=$withval"
4386 test -z "$AWK" && for ac_prog in gawk awk
4388 # Extract the first word of "$ac_prog", so it can be a program name with args.
4389 set dummy $ac_prog; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if ${ac_cv_path_AWK+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 case $AWK in
4396 [\\/]* | ?:[\\/]*)
4397 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4413 IFS=$as_save_IFS
4416 esac
4418 AWK=$ac_cv_path_AWK
4419 if test -n "$AWK"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4421 $as_echo "$AWK" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4428 test -n "$AWK" && break
4429 done
4430 test -n "$AWK" || AWK="/usr/bin/awk"
4432 case "$AWK"
4434 gawk|*/gawk)
4435 awk="$AWK --posix"
4438 awk=$AWK
4440 esac
4443 if test -z "$SED"; then
4444 # Extract the first word of "sed", so it can be a program name with args.
4445 set dummy sed; ac_word=$2
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 $as_echo_n "checking for $ac_word... " >&6; }
4448 if ${ac_cv_path_SED+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 case $SED in
4452 [\\/]* | ?:[\\/]*)
4453 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4467 done
4468 done
4469 IFS=$as_save_IFS
4471 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4473 esac
4475 SED=$ac_cv_path_SED
4476 if test -n "$SED"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4478 $as_echo "$SED" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4486 if test ! -x "$SED"; then
4487 as_fn_error $? "cannot find a valid 'sed' command." "$LINENO" 5
4489 sed=$SED
4492 if test -z "$ECHO"; then
4493 # Extract the first word of "echo", so it can be a program name with args.
4494 set dummy echo; ac_word=$2
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496 $as_echo_n "checking for $ac_word... " >&6; }
4497 if ${ac_cv_path_ECHO+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 case $ECHO in
4501 [\\/]* | ?:[\\/]*)
4502 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4516 done
4517 done
4518 IFS=$as_save_IFS
4520 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4522 esac
4524 ECHO=$ac_cv_path_ECHO
4525 if test -n "$ECHO"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4527 $as_echo "$ECHO" >&6; }
4528 else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4535 if test ! -x "$ECHO"; then
4536 as_fn_error $? "cannot find a valid 'echo' command." "$LINENO" 5
4538 echo=$ECHO
4541 if test -z "$FIND"; then
4542 # Extract the first word of "find", so it can be a program name with args.
4543 set dummy find; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_path_FIND+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 case $FIND in
4550 [\\/]* | ?:[\\/]*)
4551 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4569 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="/usr/bin/find"
4571 esac
4573 FIND=$ac_cv_path_FIND
4574 if test -n "$FIND"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4576 $as_echo "$FIND" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4584 if test ! -x "$FIND"; then
4585 as_fn_error $? "cannot find a valid 'find' command." "$LINENO" 5
4587 find=$FIND
4590 if test -z "$WHICH"; then
4591 # Extract the first word of "which", so it can be a program name with args.
4592 set dummy which; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_path_WHICH+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 case $WHICH in
4599 [\\/]* | ?:[\\/]*)
4600 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4618 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4620 esac
4622 WHICH=$ac_cv_path_WHICH
4623 if test -n "$WHICH"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4625 $as_echo "$WHICH" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4633 if test ! -x "$WHICH"; then
4634 as_fn_error $? "cannot find a valid 'which' command." "$LINENO" 5
4636 which=$WHICH
4639 for ac_prog in flex lex
4641 # Extract the first word of "$ac_prog", so it can be a program name with args.
4642 set dummy $ac_prog; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if ${ac_cv_prog_LEX+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 if test -n "$LEX"; then
4649 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658 ac_cv_prog_LEX="$ac_prog"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4668 LEX=$ac_cv_prog_LEX
4669 if test -n "$LEX"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4671 $as_echo "$LEX" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4678 test -n "$LEX" && break
4679 done
4680 test -n "$LEX" || LEX=":"
4682 if test "x$LEX" != "x:"; then
4683 cat >conftest.l <<_ACEOF
4685 a { ECHO; }
4686 b { REJECT; }
4687 c { yymore (); }
4688 d { yyless (1); }
4689 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4690 yyless ((input () != 0)); }
4691 f { unput (yytext[0]); }
4692 . { BEGIN INITIAL; }
4694 #ifdef YYTEXT_POINTER
4695 extern char *yytext;
4696 #endif
4698 main (void)
4700 return ! yylex () + ! yywrap ();
4702 _ACEOF
4703 { { ac_try="$LEX conftest.l"
4704 case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707 esac
4708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709 $as_echo "$ac_try_echo"; } >&5
4710 (eval "$LEX conftest.l") 2>&5
4711 ac_status=$?
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4715 $as_echo_n "checking lex output file root... " >&6; }
4716 if ${ac_cv_prog_lex_root+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4720 if test -f lex.yy.c; then
4721 ac_cv_prog_lex_root=lex.yy
4722 elif test -f lexyy.c; then
4723 ac_cv_prog_lex_root=lexyy
4724 else
4725 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4729 $as_echo "$ac_cv_prog_lex_root" >&6; }
4730 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4732 if test -z "${LEXLIB+set}"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4734 $as_echo_n "checking lex library... " >&6; }
4735 if ${ac_cv_lib_lex+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4739 ac_save_LIBS=$LIBS
4740 ac_cv_lib_lex='none needed'
4741 for ac_lib in '' -lfl -ll; do
4742 LIBS="$ac_lib $ac_save_LIBS"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 `cat $LEX_OUTPUT_ROOT.c`
4746 _ACEOF
4747 if ac_fn_c_try_link "$LINENO"; then :
4748 ac_cv_lib_lex=$ac_lib
4750 rm -f core conftest.err conftest.$ac_objext \
4751 conftest$ac_exeext conftest.$ac_ext
4752 test "$ac_cv_lib_lex" != 'none needed' && break
4753 done
4754 LIBS=$ac_save_LIBS
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4758 $as_echo "$ac_cv_lib_lex" >&6; }
4759 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4764 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4765 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 # POSIX says lex can declare yytext either as a pointer or an array; the
4769 # default is implementation-dependent. Figure out which it is, since
4770 # not all implementations provide the %pointer and %array declarations.
4771 ac_cv_prog_lex_yytext_pointer=no
4772 ac_save_LIBS=$LIBS
4773 LIBS="$LEXLIB $ac_save_LIBS"
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4777 #define YYTEXT_POINTER 1
4778 `cat $LEX_OUTPUT_ROOT.c`
4779 _ACEOF
4780 if ac_fn_c_try_link "$LINENO"; then :
4781 ac_cv_prog_lex_yytext_pointer=yes
4783 rm -f core conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
4785 LIBS=$ac_save_LIBS
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4789 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4790 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4792 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4795 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4798 lex=`$echo $LEX | awk '{print $1}'`
4799 lex=`$which "$lex"`
4800 if test ! -x "$lex"; then
4801 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4803 lex=$LEX
4806 for ac_prog in 'bison -y' byacc
4808 # Extract the first word of "$ac_prog", so it can be a program name with args.
4809 set dummy $ac_prog; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if ${ac_cv_prog_YACC+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$YACC"; then
4816 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_YACC="$ac_prog"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 YACC=$ac_cv_prog_YACC
4836 if test -n "$YACC"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4838 $as_echo "$YACC" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4845 test -n "$YACC" && break
4846 done
4847 test -n "$YACC" || YACC="yacc"
4849 yacc=`$echo $YACC | awk '{print $1}'`
4850 yacc=`$which "$yacc"`
4851 if test ! -x "$yacc"; then
4852 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4854 yacc=$YACC
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4858 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4859 if test $target_os = mingw; then
4860 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4862 if test -x $d/sort; then
4863 sort=$d/sort
4864 break
4866 done
4867 else
4868 sort=`$which sort`
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4871 $as_echo "$sort" >&6; }
4872 $sort -n </dev/null
4873 if test $? != 0
4874 then
4875 echo
4876 echo "FATAL ERROR: $sort -n failed!"
4877 rm -rf conftest conftest.*
4878 exit 1
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4883 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4884 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4885 then
4886 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4887 then
4888 echo_n= echo_c=
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4890 $as_echo "neither?" >&6; }
4891 else
4892 echo_n=-n echo_c=
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4894 $as_echo " -n" >&6; }
4896 else
4897 echo_n= echo_c='\c'
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4899 $as_echo "backslash-c" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4905 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4906 if ${ac_cv_path_GREP+:} false; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if test -z "$GREP"; then
4910 ac_path_GREP_found=false
4911 # Loop through the user's path and test for each of PROGNAME-LIST
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_prog in grep ggrep; do
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4920 as_fn_executable_p "$ac_path_GREP" || continue
4921 # Check for GNU ac_path_GREP and select it if it is found.
4922 # Check for GNU $ac_path_GREP
4923 case `"$ac_path_GREP" --version 2>&1` in
4924 *GNU*)
4925 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4927 ac_count=0
4928 $as_echo_n 0123456789 >"conftest.in"
4929 while :
4931 cat "conftest.in" "conftest.in" >"conftest.tmp"
4932 mv "conftest.tmp" "conftest.in"
4933 cp "conftest.in" "conftest.nl"
4934 $as_echo 'GREP' >> "conftest.nl"
4935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4937 as_fn_arith $ac_count + 1 && ac_count=$as_val
4938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4939 # Best one so far, save it but keep looking for a better one
4940 ac_cv_path_GREP="$ac_path_GREP"
4941 ac_path_GREP_max=$ac_count
4943 # 10*(2^10) chars as input seems more than enough
4944 test $ac_count -gt 10 && break
4945 done
4946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4947 esac
4949 $ac_path_GREP_found && break 3
4950 done
4951 done
4952 done
4953 IFS=$as_save_IFS
4954 if test -z "$ac_cv_path_GREP"; then
4955 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4957 else
4958 ac_cv_path_GREP=$GREP
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4963 $as_echo "$ac_cv_path_GREP" >&6; }
4964 GREP="$ac_cv_path_GREP"
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4968 $as_echo_n "checking for egrep... " >&6; }
4969 if ${ac_cv_path_EGREP+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4973 then ac_cv_path_EGREP="$GREP -E"
4974 else
4975 if test -z "$EGREP"; then
4976 ac_path_EGREP_found=false
4977 # Loop through the user's path and test for each of PROGNAME-LIST
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_prog in egrep; do
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4986 as_fn_executable_p "$ac_path_EGREP" || continue
4987 # Check for GNU ac_path_EGREP and select it if it is found.
4988 # Check for GNU $ac_path_EGREP
4989 case `"$ac_path_EGREP" --version 2>&1` in
4990 *GNU*)
4991 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4993 ac_count=0
4994 $as_echo_n 0123456789 >"conftest.in"
4995 while :
4997 cat "conftest.in" "conftest.in" >"conftest.tmp"
4998 mv "conftest.tmp" "conftest.in"
4999 cp "conftest.in" "conftest.nl"
5000 $as_echo 'EGREP' >> "conftest.nl"
5001 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5003 as_fn_arith $ac_count + 1 && ac_count=$as_val
5004 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5005 # Best one so far, save it but keep looking for a better one
5006 ac_cv_path_EGREP="$ac_path_EGREP"
5007 ac_path_EGREP_max=$ac_count
5009 # 10*(2^10) chars as input seems more than enough
5010 test $ac_count -gt 10 && break
5011 done
5012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5013 esac
5015 $ac_path_EGREP_found && break 3
5016 done
5017 done
5018 done
5019 IFS=$as_save_IFS
5020 if test -z "$ac_cv_path_EGREP"; then
5021 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5023 else
5024 ac_cv_path_EGREP=$EGREP
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5030 $as_echo "$ac_cv_path_EGREP" >&6; }
5031 EGREP="$ac_cv_path_EGREP"
5035 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5036 then
5037 enable_probes=true
5038 for ac_prog in dtrace
5040 # Extract the first word of "$ac_prog", so it can be a program name with args.
5041 set dummy $ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_DTRACE+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$DTRACE"; then
5048 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_DTRACE="$ac_prog"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5063 IFS=$as_save_IFS
5067 DTRACE=$ac_cv_prog_DTRACE
5068 if test -n "$DTRACE"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5070 $as_echo "$DTRACE" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5077 test -n "$DTRACE" && break
5078 done
5080 if test -z "$DTRACE"
5081 then
5082 if test "$do_probes" = "yes"
5083 then
5084 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5086 enable_probes=false
5088 ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5094 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5095 # On Suns, sometimes $CPP names a directory.
5096 if test -n "$CPP" && test -d "$CPP"; then
5097 CPP=
5099 if test -z "$CPP"; then
5100 if ${ac_cv_prog_CPP+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 # Double quotes because CPP needs to be expanded
5104 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5106 ac_preproc_ok=false
5107 for ac_c_preproc_warn_flag in '' yes
5109 # Use a header file that comes with gcc, so configuring glibc
5110 # with a fresh cross-compiler works.
5111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5112 # <limits.h> exists even on freestanding compilers.
5113 # On the NeXT, cc -E runs the code through the compiler's parser,
5114 # not just through cpp. "Syntax error" is here to catch this case.
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 #ifdef __STDC__
5118 # include <limits.h>
5119 #else
5120 # include <assert.h>
5121 #endif
5122 Syntax error
5123 _ACEOF
5124 if ac_fn_c_try_cpp "$LINENO"; then :
5126 else
5127 # Broken: fails on valid input.
5128 continue
5130 rm -f conftest.err conftest.i conftest.$ac_ext
5132 # OK, works on sane cases. Now check whether nonexistent headers
5133 # can be detected and how.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <ac_nonexistent.h>
5137 _ACEOF
5138 if ac_fn_c_try_cpp "$LINENO"; then :
5139 # Broken: success on invalid input.
5140 continue
5141 else
5142 # Passes both tests.
5143 ac_preproc_ok=:
5144 break
5146 rm -f conftest.err conftest.i conftest.$ac_ext
5148 done
5149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5150 rm -f conftest.i conftest.err conftest.$ac_ext
5151 if $ac_preproc_ok; then :
5152 break
5155 done
5156 ac_cv_prog_CPP=$CPP
5159 CPP=$ac_cv_prog_CPP
5160 else
5161 ac_cv_prog_CPP=$CPP
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5164 $as_echo "$CPP" >&6; }
5165 ac_preproc_ok=false
5166 for ac_c_preproc_warn_flag in '' yes
5168 # Use a header file that comes with gcc, so configuring glibc
5169 # with a fresh cross-compiler works.
5170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5171 # <limits.h> exists even on freestanding compilers.
5172 # On the NeXT, cc -E runs the code through the compiler's parser,
5173 # not just through cpp. "Syntax error" is here to catch this case.
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #ifdef __STDC__
5177 # include <limits.h>
5178 #else
5179 # include <assert.h>
5180 #endif
5181 Syntax error
5182 _ACEOF
5183 if ac_fn_c_try_cpp "$LINENO"; then :
5185 else
5186 # Broken: fails on valid input.
5187 continue
5189 rm -f conftest.err conftest.i conftest.$ac_ext
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 #include <ac_nonexistent.h>
5196 _ACEOF
5197 if ac_fn_c_try_cpp "$LINENO"; then :
5198 # Broken: success on invalid input.
5199 continue
5200 else
5201 # Passes both tests.
5202 ac_preproc_ok=:
5203 break
5205 rm -f conftest.err conftest.i conftest.$ac_ext
5207 done
5208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5209 rm -f conftest.i conftest.err conftest.$ac_ext
5210 if $ac_preproc_ok; then :
5212 else
5213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5216 See \`config.log' for more details" "$LINENO" 5; }
5219 ac_ext=c
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5227 $as_echo_n "checking for ANSI C header files... " >&6; }
5228 if ${ac_cv_header_stdc+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233 #include <stdlib.h>
5234 #include <stdarg.h>
5235 #include <string.h>
5236 #include <float.h>
5239 main ()
5243 return 0;
5245 _ACEOF
5246 if ac_fn_c_try_compile "$LINENO"; then :
5247 ac_cv_header_stdc=yes
5248 else
5249 ac_cv_header_stdc=no
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 if test $ac_cv_header_stdc = yes; then
5254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 #include <string.h>
5259 _ACEOF
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "memchr" >/dev/null 2>&1; then :
5263 else
5264 ac_cv_header_stdc=no
5266 rm -f conftest*
5270 if test $ac_cv_header_stdc = yes; then
5271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <stdlib.h>
5276 _ACEOF
5277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278 $EGREP "free" >/dev/null 2>&1; then :
5280 else
5281 ac_cv_header_stdc=no
5283 rm -f conftest*
5287 if test $ac_cv_header_stdc = yes; then
5288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5289 if test "$cross_compiling" = yes; then :
5291 else
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #include <ctype.h>
5295 #include <stdlib.h>
5296 #if ((' ' & 0x0FF) == 0x020)
5297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5299 #else
5300 # define ISLOWER(c) \
5301 (('a' <= (c) && (c) <= 'i') \
5302 || ('j' <= (c) && (c) <= 'r') \
5303 || ('s' <= (c) && (c) <= 'z'))
5304 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5305 #endif
5307 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5309 main ()
5311 int i;
5312 for (i = 0; i < 256; i++)
5313 if (XOR (islower (i), ISLOWER (i))
5314 || toupper (i) != TOUPPER (i))
5315 return 2;
5316 return 0;
5318 _ACEOF
5319 if ac_fn_c_try_run "$LINENO"; then :
5321 else
5322 ac_cv_header_stdc=no
5324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5325 conftest.$ac_objext conftest.beam conftest.$ac_ext
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5331 $as_echo "$ac_cv_header_stdc" >&6; }
5332 if test $ac_cv_header_stdc = yes; then
5334 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5339 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5340 inttypes.h stdint.h unistd.h
5341 do :
5342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5343 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5346 cat >>confdefs.h <<_ACEOF
5347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5348 _ACEOF
5352 done
5355 for ac_header in sys/sdt.h
5356 do :
5357 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5358 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define HAVE_SYS_SDT_H 1
5361 _ACEOF
5363 if $enable_probes = true
5364 then
5365 if test $target_os = kfreebsd
5366 then
5367 enable_probes=false
5368 elif test $target_os = freebsd
5369 then
5370 rm -f conftest.d conftest.h
5371 cat <<End-of-File >conftest.d
5372 provider eek {
5373 probe urk(int);
5375 End-of-File
5376 if dtrace -s conftest.d -h >/dev/null 2>&1
5377 then
5378 if test ! -f conftest.h
5379 then
5380 enable_probes=false
5381 if test "$do_probes" = "yes"
5382 then
5383 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5386 else
5387 enable_probes=false
5388 if test "$do_probes" = "yes"
5389 then
5390 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5396 else
5398 enable_probes=false
5399 if test "$do_probes" = "yes"
5400 then
5401 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5406 done
5409 if test "$enable_probes" = "true"
5410 then
5412 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5419 if test "x$do_discovery" != "xno"; then :
5421 # on Mac OS X, dns_sd.h
5423 # on Linux, aloha Avahi
5424 enable_avahi=true
5426 pkg_failed=no
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5428 $as_echo_n "checking for avahi... " >&6; }
5430 if test -n "$avahi_CFLAGS"; then
5431 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
5432 elif test -n "$PKG_CONFIG"; then
5433 if test -n "$PKG_CONFIG" && \
5434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5435 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5436 ac_status=$?
5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438 test $ac_status = 0; }; then
5439 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5440 test "x$?" != "x0" && pkg_failed=yes
5441 else
5442 pkg_failed=yes
5444 else
5445 pkg_failed=untried
5447 if test -n "$avahi_LIBS"; then
5448 pkg_cv_avahi_LIBS="$avahi_LIBS"
5449 elif test -n "$PKG_CONFIG"; then
5450 if test -n "$PKG_CONFIG" && \
5451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5452 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5453 ac_status=$?
5454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5455 test $ac_status = 0; }; then
5456 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5457 test "x$?" != "x0" && pkg_failed=yes
5458 else
5459 pkg_failed=yes
5461 else
5462 pkg_failed=untried
5467 if test $pkg_failed = yes; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5472 _pkg_short_errors_supported=yes
5473 else
5474 _pkg_short_errors_supported=no
5476 if test $_pkg_short_errors_supported = yes; then
5477 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5478 else
5479 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5481 # Put the nasty error message in config.log where it belongs
5482 echo "$avahi_PKG_ERRORS" >&5
5484 enable_avahi=false
5485 elif test $pkg_failed = untried; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 enable_avahi=false
5489 else
5490 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
5491 avahi_LIBS=$pkg_cv_avahi_LIBS
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493 $as_echo "yes" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5495 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5496 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 ac_check_lib_save_LIBS=$LIBS
5500 LIBS="-lavahi-client $LIBS"
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5504 /* Override any GCC internal prototype to avoid an error.
5505 Use char because int might match the return type of a GCC
5506 builtin and then its argument prototype would still apply. */
5507 #ifdef __cplusplus
5508 extern "C"
5509 #endif
5510 char avahi_client_new ();
5512 main ()
5514 return avahi_client_new ();
5516 return 0;
5518 _ACEOF
5519 if ac_fn_c_try_link "$LINENO"; then :
5520 ac_cv_lib_avahi_client_avahi_client_new=yes
5521 else
5522 ac_cv_lib_avahi_client_avahi_client_new=no
5524 rm -f core conftest.err conftest.$ac_objext \
5525 conftest$ac_exeext conftest.$ac_ext
5526 LIBS=$ac_check_lib_save_LIBS
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5529 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5530 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
5531 lib_for_avahi="-lavahi-common -lavahi-client"
5532 else
5533 enable_avahi=false
5538 for ac_header in avahi-client/publish.h
5539 do :
5540 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5541 if test "x$ac_cv_header_avahi_client_publish_h" = xyes; then :
5542 cat >>confdefs.h <<_ACEOF
5543 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5544 _ACEOF
5546 else
5547 enable_avahi=false
5550 done
5552 for ac_header in avahi-common/alternative.h
5553 do :
5554 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5555 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes; then :
5556 cat >>confdefs.h <<_ACEOF
5557 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5558 _ACEOF
5560 else
5561 enable_avahi=false
5564 done
5567 if test "$enable_avahi" = "true"
5568 then
5572 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5574 enable_discovery=true
5577 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5578 then
5579 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5581 if test "$enable_discovery" = "true"
5582 then
5584 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5592 enable_systemd=false
5593 if test "x$do_systemd" != "xno"; then :
5595 enable_systemd=true
5598 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5599 pkg_cv_SYSTEMD_SYSTEMUNITDIR="$SYSTEMD_SYSTEMUNITDIR"
5600 elif test -n "$PKG_CONFIG"; then
5601 if test -n "$PKG_CONFIG" && \
5602 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5603 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5604 ac_status=$?
5605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606 test $ac_status = 0; }; then
5607 pkg_cv_SYSTEMD_SYSTEMUNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5608 test "x$?" != "x0" && pkg_failed=yes
5609 else
5610 pkg_failed=yes
5612 else
5613 pkg_failed=untried
5615 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5617 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5618 enable_systemd=false
5619 else
5620 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5623 if test -z "$pcp_systemdunit_dir"
5624 then
5625 if test "$do_systemd" = "yes"
5626 then
5627 as_fn_error $? "cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5629 enable_systemd=false
5635 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5636 # targets a build for non-system directories such as /usr/local.
5637 # AC_PREFIX_DEFAULT([])
5639 . ./VERSION.pcp
5640 PACKAGE_VERSION=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5647 if test -z "$PACKAGE_BUILD_DATE" ; then
5648 PACKAGE_BUILD_DATE=`date +%Y-%m-%d`
5652 if test -z "$PACKAGE_DISTRIBUTION" ; then
5653 PACKAGE_DISTRIBUTION=$target_distro
5657 pm_version_current=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5660 ac_config_headers="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5662 ac_config_files="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5664 cat >confcache <<\_ACEOF
5665 # This file is a shell script that caches the results of configure
5666 # tests run on this system so they can be shared between configure
5667 # scripts and configure runs, see configure's option --config-cache.
5668 # It is not useful on other systems. If it contains results you don't
5669 # want to keep, you may remove or edit it.
5671 # config.status only pays attention to the cache file if you give it
5672 # the --recheck option to rerun configure.
5674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5676 # following values.
5678 _ACEOF
5680 # The following way of writing the cache mishandles newlines in values,
5681 # but we know of no workaround that is simple, portable, and efficient.
5682 # So, we kill variables containing newlines.
5683 # Ultrix sh set writes to stderr and can't be redirected directly,
5684 # and sets the high bit in the cache file unless we assign to the vars.
5686 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5687 eval ac_val=\$$ac_var
5688 case $ac_val in #(
5689 *${as_nl}*)
5690 case $ac_var in #(
5691 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5692 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5693 esac
5694 case $ac_var in #(
5695 _ | IFS | as_nl) ;; #(
5696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5697 *) { eval $ac_var=; unset $ac_var;} ;;
5698 esac ;;
5699 esac
5700 done
5702 (set) 2>&1 |
5703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5704 *${as_nl}ac_space=\ *)
5705 # `set' does not quote correctly, so add quotes: double-quote
5706 # substitution turns \\\\ into \\, and sed turns \\ into \.
5707 sed -n \
5708 "s/'/'\\\\''/g;
5709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5710 ;; #(
5712 # `set' quotes correctly as required by POSIX, so do not add quotes.
5713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5715 esac |
5716 sort
5718 sed '
5719 /^ac_cv_env_/b end
5720 t clear
5721 :clear
5722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5723 t end
5724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5725 :end' >>confcache
5726 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5727 if test -w "$cache_file"; then
5728 if test "x$cache_file" != "x/dev/null"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5730 $as_echo "$as_me: updating cache $cache_file" >&6;}
5731 if test ! -f "$cache_file" || test -h "$cache_file"; then
5732 cat confcache >"$cache_file"
5733 else
5734 case $cache_file in #(
5735 */* | ?:*)
5736 mv -f confcache "$cache_file"$$ &&
5737 mv -f "$cache_file"$$ "$cache_file" ;; #(
5739 mv -f confcache "$cache_file" ;;
5740 esac
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5745 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5748 rm -f confcache
5750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5751 # Let make expand exec_prefix.
5752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5754 DEFS=-DHAVE_CONFIG_H
5756 ac_libobjs=
5757 ac_ltlibobjs=
5759 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5760 # 1. Remove the extension, and $U if already installed.
5761 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5762 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5763 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5764 # will be set to the directory where LIBOBJS objects are built.
5765 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5766 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5767 done
5768 LIBOBJS=$ac_libobjs
5770 LTLIBOBJS=$ac_ltlibobjs
5774 : "${CONFIG_STATUS=./config.status}"
5775 ac_write_fail=0
5776 ac_clean_files_save=$ac_clean_files
5777 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5779 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5780 as_write_fail=0
5781 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5782 #! $SHELL
5783 # Generated by $as_me.
5784 # Run this file to recreate the current configuration.
5785 # Compiler output produced by configure, useful for debugging
5786 # configure, is in config.log if it exists.
5788 debug=false
5789 ac_cs_recheck=false
5790 ac_cs_silent=false
5792 SHELL=\${CONFIG_SHELL-$SHELL}
5793 export SHELL
5794 _ASEOF
5795 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5796 ## -------------------- ##
5797 ## M4sh Initialization. ##
5798 ## -------------------- ##
5800 # Be more Bourne compatible
5801 DUALCASE=1; export DUALCASE # for MKS sh
5802 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5803 emulate sh
5804 NULLCMD=:
5805 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5806 # is contrary to our usage. Disable this feature.
5807 alias -g '${1+"$@"}'='"$@"'
5808 setopt NO_GLOB_SUBST
5809 else
5810 case `(set -o) 2>/dev/null` in #(
5811 *posix*) :
5812 set -o posix ;; #(
5813 *) :
5815 esac
5819 as_nl='
5821 export as_nl
5822 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5823 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5825 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5826 # Prefer a ksh shell builtin over an external printf program on Solaris,
5827 # but without wasting forks for bash or zsh.
5828 if test -z "$BASH_VERSION$ZSH_VERSION" \
5829 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5830 as_echo='print -r --'
5831 as_echo_n='print -rn --'
5832 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5833 as_echo='printf %s\n'
5834 as_echo_n='printf %s'
5835 else
5836 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5837 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5838 as_echo_n='/usr/ucb/echo -n'
5839 else
5840 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5841 as_echo_n_body='eval
5842 arg=$1;
5843 case $arg in #(
5844 *"$as_nl"*)
5845 expr "X$arg" : "X\\(.*\\)$as_nl";
5846 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5847 esac;
5848 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5850 export as_echo_n_body
5851 as_echo_n='sh -c $as_echo_n_body as_echo'
5853 export as_echo_body
5854 as_echo='sh -c $as_echo_body as_echo'
5857 # The user is always right.
5858 if test "${PATH_SEPARATOR+set}" != set; then
5859 PATH_SEPARATOR=:
5860 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5861 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5862 PATH_SEPARATOR=';'
5867 # IFS
5868 # We need space, tab and new line, in precisely that order. Quoting is
5869 # there to prevent editors from complaining about space-tab.
5870 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5871 # splitting by setting IFS to empty value.)
5872 IFS=" "" $as_nl"
5874 # Find who we are. Look in the path if we contain no directory separator.
5875 as_myself=
5876 case $0 in #((
5877 *[\\/]* ) as_myself=$0 ;;
5878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5884 done
5885 IFS=$as_save_IFS
5888 esac
5889 # We did not find ourselves, most probably we were run as `sh COMMAND'
5890 # in which case we are not to be found in the path.
5891 if test "x$as_myself" = x; then
5892 as_myself=$0
5894 if test ! -f "$as_myself"; then
5895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5896 exit 1
5899 # Unset variables that we do not need and which cause bugs (e.g. in
5900 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5901 # suppresses any "Segmentation fault" message there. '((' could
5902 # trigger a bug in pdksh 5.2.14.
5903 for as_var in BASH_ENV ENV MAIL MAILPATH
5904 do eval test x\${$as_var+set} = xset \
5905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5906 done
5907 PS1='$ '
5908 PS2='> '
5909 PS4='+ '
5911 # NLS nuisances.
5912 LC_ALL=C
5913 export LC_ALL
5914 LANGUAGE=C
5915 export LANGUAGE
5917 # CDPATH.
5918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5921 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5922 # ----------------------------------------
5923 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5924 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5925 # script with STATUS, using 1 if that was 0.
5926 as_fn_error ()
5928 as_status=$1; test $as_status -eq 0 && as_status=1
5929 if test "$4"; then
5930 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5933 $as_echo "$as_me: error: $2" >&2
5934 as_fn_exit $as_status
5935 } # as_fn_error
5938 # as_fn_set_status STATUS
5939 # -----------------------
5940 # Set $? to STATUS, without forking.
5941 as_fn_set_status ()
5943 return $1
5944 } # as_fn_set_status
5946 # as_fn_exit STATUS
5947 # -----------------
5948 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5949 as_fn_exit ()
5951 set +e
5952 as_fn_set_status $1
5953 exit $1
5954 } # as_fn_exit
5956 # as_fn_unset VAR
5957 # ---------------
5958 # Portably unset VAR.
5959 as_fn_unset ()
5961 { eval $1=; unset $1;}
5963 as_unset=as_fn_unset
5964 # as_fn_append VAR VALUE
5965 # ----------------------
5966 # Append the text in VALUE to the end of the definition contained in VAR. Take
5967 # advantage of any shell optimizations that allow amortized linear growth over
5968 # repeated appends, instead of the typical quadratic growth present in naive
5969 # implementations.
5970 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5971 eval 'as_fn_append ()
5973 eval $1+=\$2
5975 else
5976 as_fn_append ()
5978 eval $1=\$$1\$2
5980 fi # as_fn_append
5982 # as_fn_arith ARG...
5983 # ------------------
5984 # Perform arithmetic evaluation on the ARGs, and store the result in the
5985 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5986 # must be portable across $(()) and expr.
5987 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5988 eval 'as_fn_arith ()
5990 as_val=$(( $* ))
5992 else
5993 as_fn_arith ()
5995 as_val=`expr "$@" || test $? -eq 1`
5997 fi # as_fn_arith
6000 if expr a : '\(a\)' >/dev/null 2>&1 &&
6001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6002 as_expr=expr
6003 else
6004 as_expr=false
6007 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6008 as_basename=basename
6009 else
6010 as_basename=false
6013 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6014 as_dirname=dirname
6015 else
6016 as_dirname=false
6019 as_me=`$as_basename -- "$0" ||
6020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6021 X"$0" : 'X\(//\)$' \| \
6022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6023 $as_echo X/"$0" |
6024 sed '/^.*\/\([^/][^/]*\)\/*$/{
6025 s//\1/
6028 /^X\/\(\/\/\)$/{
6029 s//\1/
6032 /^X\/\(\/\).*/{
6033 s//\1/
6036 s/.*/./; q'`
6038 # Avoid depending upon Character Ranges.
6039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6042 as_cr_digits='0123456789'
6043 as_cr_alnum=$as_cr_Letters$as_cr_digits
6045 ECHO_C= ECHO_N= ECHO_T=
6046 case `echo -n x` in #(((((
6047 -n*)
6048 case `echo 'xy\c'` in
6049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6050 xy) ECHO_C='\c';;
6051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6052 ECHO_T=' ';;
6053 esac;;
6055 ECHO_N='-n';;
6056 esac
6058 rm -f conf$$ conf$$.exe conf$$.file
6059 if test -d conf$$.dir; then
6060 rm -f conf$$.dir/conf$$.file
6061 else
6062 rm -f conf$$.dir
6063 mkdir conf$$.dir 2>/dev/null
6065 if (echo >conf$$.file) 2>/dev/null; then
6066 if ln -s conf$$.file conf$$ 2>/dev/null; then
6067 as_ln_s='ln -s'
6068 # ... but there are two gotchas:
6069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6071 # In both cases, we have to default to `cp -pR'.
6072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6073 as_ln_s='cp -pR'
6074 elif ln conf$$.file conf$$ 2>/dev/null; then
6075 as_ln_s=ln
6076 else
6077 as_ln_s='cp -pR'
6079 else
6080 as_ln_s='cp -pR'
6082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6083 rmdir conf$$.dir 2>/dev/null
6086 # as_fn_mkdir_p
6087 # -------------
6088 # Create "$as_dir" as a directory, including parents if necessary.
6089 as_fn_mkdir_p ()
6092 case $as_dir in #(
6093 -*) as_dir=./$as_dir;;
6094 esac
6095 test -d "$as_dir" || eval $as_mkdir_p || {
6096 as_dirs=
6097 while :; do
6098 case $as_dir in #(
6099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6100 *) as_qdir=$as_dir;;
6101 esac
6102 as_dirs="'$as_qdir' $as_dirs"
6103 as_dir=`$as_dirname -- "$as_dir" ||
6104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6105 X"$as_dir" : 'X\(//\)[^/]' \| \
6106 X"$as_dir" : 'X\(//\)$' \| \
6107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6108 $as_echo X"$as_dir" |
6109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6110 s//\1/
6113 /^X\(\/\/\)[^/].*/{
6114 s//\1/
6117 /^X\(\/\/\)$/{
6118 s//\1/
6121 /^X\(\/\).*/{
6122 s//\1/
6125 s/.*/./; q'`
6126 test -d "$as_dir" && break
6127 done
6128 test -z "$as_dirs" || eval "mkdir $as_dirs"
6129 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6132 } # as_fn_mkdir_p
6133 if mkdir -p . 2>/dev/null; then
6134 as_mkdir_p='mkdir -p "$as_dir"'
6135 else
6136 test -d ./-p && rmdir ./-p
6137 as_mkdir_p=false
6141 # as_fn_executable_p FILE
6142 # -----------------------
6143 # Test if FILE is an executable regular file.
6144 as_fn_executable_p ()
6146 test -f "$1" && test -x "$1"
6147 } # as_fn_executable_p
6148 as_test_x='test -x'
6149 as_executable_p=as_fn_executable_p
6151 # Sed expression to map a string onto a valid CPP name.
6152 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6154 # Sed expression to map a string onto a valid variable name.
6155 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6158 exec 6>&1
6159 ## ----------------------------------- ##
6160 ## Main body of $CONFIG_STATUS script. ##
6161 ## ----------------------------------- ##
6162 _ASEOF
6163 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6166 # Save the log message, to keep $0 and so on meaningful, and to
6167 # report actual input values of CONFIG_FILES etc. instead of their
6168 # values after options handling.
6169 ac_log="
6170 This file was extended by $as_me, which was
6171 generated by GNU Autoconf 2.69. Invocation command line was
6173 CONFIG_FILES = $CONFIG_FILES
6174 CONFIG_HEADERS = $CONFIG_HEADERS
6175 CONFIG_LINKS = $CONFIG_LINKS
6176 CONFIG_COMMANDS = $CONFIG_COMMANDS
6177 $ $0 $@
6179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6182 _ACEOF
6184 case $ac_config_files in *"
6185 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6186 esac
6188 case $ac_config_headers in *"
6189 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6190 esac
6193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6194 # Files that config.status was made for.
6195 config_files="$ac_config_files"
6196 config_headers="$ac_config_headers"
6198 _ACEOF
6200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6201 ac_cs_usage="\
6202 \`$as_me' instantiates files and other configuration actions
6203 from templates according to the current configuration. Unless the files
6204 and actions are specified as TAGs, all are instantiated by default.
6206 Usage: $0 [OPTION]... [TAG]...
6208 -h, --help print this help, then exit
6209 -V, --version print version number and configuration settings, then exit
6210 --config print configuration, then exit
6211 -q, --quiet, --silent
6212 do not print progress messages
6213 -d, --debug don't remove temporary files
6214 --recheck update $as_me by reconfiguring in the same conditions
6215 --file=FILE[:TEMPLATE]
6216 instantiate the configuration file FILE
6217 --header=FILE[:TEMPLATE]
6218 instantiate the configuration header FILE
6220 Configuration files:
6221 $config_files
6223 Configuration headers:
6224 $config_headers
6226 Report bugs to the package provider."
6228 _ACEOF
6229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6230 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6231 ac_cs_version="\\
6232 config.status
6233 configured by $0, generated by GNU Autoconf 2.69,
6234 with options \\"\$ac_cs_config\\"
6236 Copyright (C) 2012 Free Software Foundation, Inc.
6237 This config.status script is free software; the Free Software Foundation
6238 gives unlimited permission to copy, distribute and modify it."
6240 ac_pwd='$ac_pwd'
6241 srcdir='$srcdir'
6242 test -n "\$AWK" || AWK=awk
6243 _ACEOF
6245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6246 # The default lists apply if the user does not specify any file.
6247 ac_need_defaults=:
6248 while test $# != 0
6250 case $1 in
6251 --*=?*)
6252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6253 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6254 ac_shift=:
6256 --*=)
6257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6258 ac_optarg=
6259 ac_shift=:
6262 ac_option=$1
6263 ac_optarg=$2
6264 ac_shift=shift
6266 esac
6268 case $ac_option in
6269 # Handling of the options.
6270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6271 ac_cs_recheck=: ;;
6272 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6273 $as_echo "$ac_cs_version"; exit ;;
6274 --config | --confi | --conf | --con | --co | --c )
6275 $as_echo "$ac_cs_config"; exit ;;
6276 --debug | --debu | --deb | --de | --d | -d )
6277 debug=: ;;
6278 --file | --fil | --fi | --f )
6279 $ac_shift
6280 case $ac_optarg in
6281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6282 '') as_fn_error $? "missing file argument" ;;
6283 esac
6284 as_fn_append CONFIG_FILES " '$ac_optarg'"
6285 ac_need_defaults=false;;
6286 --header | --heade | --head | --hea )
6287 $ac_shift
6288 case $ac_optarg in
6289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6290 esac
6291 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6292 ac_need_defaults=false;;
6293 --he | --h)
6294 # Conflict between --help and --header
6295 as_fn_error $? "ambiguous option: \`$1'
6296 Try \`$0 --help' for more information.";;
6297 --help | --hel | -h )
6298 $as_echo "$ac_cs_usage"; exit ;;
6299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6301 ac_cs_silent=: ;;
6303 # This is an error.
6304 -*) as_fn_error $? "unrecognized option: \`$1'
6305 Try \`$0 --help' for more information." ;;
6307 *) as_fn_append ac_config_targets " $1"
6308 ac_need_defaults=false ;;
6310 esac
6311 shift
6312 done
6314 ac_configure_extra_args=
6316 if $ac_cs_silent; then
6317 exec 6>/dev/null
6318 ac_configure_extra_args="$ac_configure_extra_args --silent"
6321 _ACEOF
6322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6323 if \$ac_cs_recheck; then
6324 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6325 shift
6326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6327 CONFIG_SHELL='$SHELL'
6328 export CONFIG_SHELL
6329 exec "\$@"
6332 _ACEOF
6333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6334 exec 5>>config.log
6336 echo
6337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6338 ## Running $as_me. ##
6339 _ASBOX
6340 $as_echo "$ac_log"
6341 } >&5
6343 _ACEOF
6344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6345 _ACEOF
6347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6349 # Handling of arguments.
6350 for ac_config_target in $ac_config_targets
6352 case $ac_config_target in
6353 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6354 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6355 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6356 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6358 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6359 esac
6360 done
6363 # If the user did not use the arguments to specify the items to instantiate,
6364 # then the envvar interface is used. Set only those that are not.
6365 # We use the long form for the default assignment because of an extremely
6366 # bizarre bug on SunOS 4.1.3.
6367 if $ac_need_defaults; then
6368 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6369 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6372 # Have a temporary directory for convenience. Make it in the build tree
6373 # simply because there is no reason against having it here, and in addition,
6374 # creating and moving files from /tmp can sometimes cause problems.
6375 # Hook for its removal unless debugging.
6376 # Note that there is a small window in which the directory will not be cleaned:
6377 # after its creation but before its name has been assigned to `$tmp'.
6378 $debug ||
6380 tmp= ac_tmp=
6381 trap 'exit_status=$?
6382 : "${ac_tmp:=$tmp}"
6383 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6385 trap 'as_fn_exit 1' 1 2 13 15
6387 # Create a (secure) tmp directory for tmp files.
6390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6391 test -d "$tmp"
6392 } ||
6394 tmp=./conf$$-$RANDOM
6395 (umask 077 && mkdir "$tmp")
6396 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6397 ac_tmp=$tmp
6399 # Set up the scripts for CONFIG_FILES section.
6400 # No need to generate them if there are no CONFIG_FILES.
6401 # This happens for instance with `./config.status config.h'.
6402 if test -n "$CONFIG_FILES"; then
6405 ac_cr=`echo X | tr X '\015'`
6406 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6407 # But we know of no other shell where ac_cr would be empty at this
6408 # point, so we can use a bashism as a fallback.
6409 if test "x$ac_cr" = x; then
6410 eval ac_cr=\$\'\\r\'
6412 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6413 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6414 ac_cs_awk_cr='\\r'
6415 else
6416 ac_cs_awk_cr=$ac_cr
6419 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6420 _ACEOF
6424 echo "cat >conf$$subs.awk <<_ACEOF" &&
6425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6426 echo "_ACEOF"
6427 } >conf$$subs.sh ||
6428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6429 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6430 ac_delim='%!_!# '
6431 for ac_last_try in false false false false false :; do
6432 . ./conf$$subs.sh ||
6433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6436 if test $ac_delim_n = $ac_delim_num; then
6437 break
6438 elif $ac_last_try; then
6439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6440 else
6441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6443 done
6444 rm -f conf$$subs.sh
6446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6447 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6448 _ACEOF
6449 sed -n '
6451 s/^/S["/; s/!.*/"]=/
6454 s/^[^!]*!//
6455 :repl
6456 t repl
6457 s/'"$ac_delim"'$//
6458 t delim
6461 s/\(.\{148\}\)..*/\1/
6462 t more1
6463 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6466 b repl
6467 :more1
6468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6471 s/.\{148\}//
6472 t nl
6473 :delim
6475 s/\(.\{148\}\)..*/\1/
6476 t more2
6477 s/["\\]/\\&/g; s/^/"/; s/$/"/
6480 :more2
6481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6484 s/.\{148\}//
6485 t delim
6486 ' <conf$$subs.awk | sed '
6487 /^[^""]/{
6489 s/\n//
6491 ' >>$CONFIG_STATUS || ac_write_fail=1
6492 rm -f conf$$subs.awk
6493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6494 _ACAWK
6495 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6496 for (key in S) S_is_set[key] = 1
6497 FS = "\a"
6501 line = $ 0
6502 nfields = split(line, field, "@")
6503 substed = 0
6504 len = length(field[1])
6505 for (i = 2; i < nfields; i++) {
6506 key = field[i]
6507 keylen = length(key)
6508 if (S_is_set[key]) {
6509 value = S[key]
6510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6511 len += length(value) + length(field[++i])
6512 substed = 1
6513 } else
6514 len += 1 + keylen
6517 print line
6520 _ACAWK
6521 _ACEOF
6522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6523 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6524 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6525 else
6527 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6528 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6529 _ACEOF
6531 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6532 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6533 # trailing colons and then remove the whole line if VPATH becomes empty
6534 # (actually we leave an empty line to preserve line numbers).
6535 if test "x$srcdir" = x.; then
6536 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6538 s///
6539 s/^/:/
6540 s/[ ]*$/:/
6541 s/:\$(srcdir):/:/g
6542 s/:\${srcdir}:/:/g
6543 s/:@srcdir@:/:/g
6544 s/^:*//
6545 s/:*$//
6547 s/\(=[ ]*\).*/\1/
6549 s/\n//
6550 s/^[^=]*=[ ]*$//
6554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6555 fi # test -n "$CONFIG_FILES"
6557 # Set up the scripts for CONFIG_HEADERS section.
6558 # No need to generate them if there are no CONFIG_HEADERS.
6559 # This happens for instance with `./config.status Makefile'.
6560 if test -n "$CONFIG_HEADERS"; then
6561 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6562 BEGIN {
6563 _ACEOF
6565 # Transform confdefs.h into an awk script `defines.awk', embedded as
6566 # here-document in config.status, that substitutes the proper values into
6567 # config.h.in to produce config.h.
6569 # Create a delimiter string that does not exist in confdefs.h, to ease
6570 # handling of long lines.
6571 ac_delim='%!_!# '
6572 for ac_last_try in false false :; do
6573 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6574 if test -z "$ac_tt"; then
6575 break
6576 elif $ac_last_try; then
6577 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6578 else
6579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6581 done
6583 # For the awk script, D is an array of macro values keyed by name,
6584 # likewise P contains macro parameters if any. Preserve backslash
6585 # newline sequences.
6587 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6588 sed -n '
6589 s/.\{148\}/&'"$ac_delim"'/g
6590 t rset
6591 :rset
6592 s/^[ ]*#[ ]*define[ ][ ]*/ /
6593 t def
6595 :def
6596 s/\\$//
6597 t bsnl
6598 s/["\\]/\\&/g
6599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6600 D["\1"]=" \3"/p
6601 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6603 :bsnl
6604 s/["\\]/\\&/g
6605 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6606 D["\1"]=" \3\\\\\\n"\\/p
6607 t cont
6608 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6609 t cont
6611 :cont
6613 s/.\{148\}/&'"$ac_delim"'/g
6614 t clear
6615 :clear
6616 s/\\$//
6617 t bsnlc
6618 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6620 :bsnlc
6621 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6622 b cont
6623 ' <confdefs.h | sed '
6624 s/'"$ac_delim"'/"\\\
6625 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6628 for (key in D) D_is_set[key] = 1
6629 FS = "\a"
6631 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6632 line = \$ 0
6633 split(line, arg, " ")
6634 if (arg[1] == "#") {
6635 defundef = arg[2]
6636 mac1 = arg[3]
6637 } else {
6638 defundef = substr(arg[1], 2)
6639 mac1 = arg[2]
6641 split(mac1, mac2, "(") #)
6642 macro = mac2[1]
6643 prefix = substr(line, 1, index(line, defundef) - 1)
6644 if (D_is_set[macro]) {
6645 # Preserve the white space surrounding the "#".
6646 print prefix "define", macro P[macro] D[macro]
6647 next
6648 } else {
6649 # Replace #undef with comments. This is necessary, for example,
6650 # in the case of _POSIX_SOURCE, which is predefined and required
6651 # on some systems where configure will not decide to define it.
6652 if (defundef == "undef") {
6653 print "/*", prefix defundef, macro, "*/"
6654 next
6658 { print }
6659 _ACAWK
6660 _ACEOF
6661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6662 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6663 fi # test -n "$CONFIG_HEADERS"
6666 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6667 shift
6668 for ac_tag
6670 case $ac_tag in
6671 :[FHLC]) ac_mode=$ac_tag; continue;;
6672 esac
6673 case $ac_mode$ac_tag in
6674 :[FHL]*:*);;
6675 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6676 :[FH]-) ac_tag=-:-;;
6677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6678 esac
6679 ac_save_IFS=$IFS
6680 IFS=:
6681 set x $ac_tag
6682 IFS=$ac_save_IFS
6683 shift
6684 ac_file=$1
6685 shift
6687 case $ac_mode in
6688 :L) ac_source=$1;;
6689 :[FH])
6690 ac_file_inputs=
6691 for ac_f
6693 case $ac_f in
6694 -) ac_f="$ac_tmp/stdin";;
6695 *) # Look for the file first in the build tree, then in the source tree
6696 # (if the path is not absolute). The absolute path cannot be DOS-style,
6697 # because $ac_f cannot contain `:'.
6698 test -f "$ac_f" ||
6699 case $ac_f in
6700 [\\/$]*) false;;
6701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6702 esac ||
6703 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6704 esac
6705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6706 as_fn_append ac_file_inputs " '$ac_f'"
6707 done
6709 # Let's still pretend it is `configure' which instantiates (i.e., don't
6710 # use $as_me), people would be surprised to read:
6711 # /* config.h. Generated by config.status. */
6712 configure_input='Generated from '`
6713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6714 `' by configure.'
6715 if test x"$ac_file" != x-; then
6716 configure_input="$ac_file. $configure_input"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6718 $as_echo "$as_me: creating $ac_file" >&6;}
6720 # Neutralize special characters interpreted by sed in replacement strings.
6721 case $configure_input in #(
6722 *\&* | *\|* | *\\* )
6723 ac_sed_conf_input=`$as_echo "$configure_input" |
6724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6725 *) ac_sed_conf_input=$configure_input;;
6726 esac
6728 case $ac_tag in
6729 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6731 esac
6733 esac
6735 ac_dir=`$as_dirname -- "$ac_file" ||
6736 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6737 X"$ac_file" : 'X\(//\)[^/]' \| \
6738 X"$ac_file" : 'X\(//\)$' \| \
6739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6740 $as_echo X"$ac_file" |
6741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6742 s//\1/
6745 /^X\(\/\/\)[^/].*/{
6746 s//\1/
6749 /^X\(\/\/\)$/{
6750 s//\1/
6753 /^X\(\/\).*/{
6754 s//\1/
6757 s/.*/./; q'`
6758 as_dir="$ac_dir"; as_fn_mkdir_p
6759 ac_builddir=.
6761 case "$ac_dir" in
6762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6765 # A ".." for each directory in $ac_dir_suffix.
6766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6767 case $ac_top_builddir_sub in
6768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6770 esac ;;
6771 esac
6772 ac_abs_top_builddir=$ac_pwd
6773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6774 # for backward compatibility:
6775 ac_top_builddir=$ac_top_build_prefix
6777 case $srcdir in
6778 .) # We are building in place.
6779 ac_srcdir=.
6780 ac_top_srcdir=$ac_top_builddir_sub
6781 ac_abs_top_srcdir=$ac_pwd ;;
6782 [\\/]* | ?:[\\/]* ) # Absolute name.
6783 ac_srcdir=$srcdir$ac_dir_suffix;
6784 ac_top_srcdir=$srcdir
6785 ac_abs_top_srcdir=$srcdir ;;
6786 *) # Relative name.
6787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6788 ac_top_srcdir=$ac_top_build_prefix$srcdir
6789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6790 esac
6791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6794 case $ac_mode in
6797 # CONFIG_FILE
6800 _ACEOF
6802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6803 # If the template does not know about datarootdir, expand it.
6804 # FIXME: This hack should be removed a few years after 2.60.
6805 ac_datarootdir_hack=; ac_datarootdir_seen=
6806 ac_sed_dataroot='
6807 /datarootdir/ {
6811 /@datadir@/p
6812 /@docdir@/p
6813 /@infodir@/p
6814 /@localedir@/p
6815 /@mandir@/p'
6816 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6817 *datarootdir*) ac_datarootdir_seen=yes;;
6818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6820 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6821 _ACEOF
6822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6823 ac_datarootdir_hack='
6824 s&@datadir@&$datadir&g
6825 s&@docdir@&$docdir&g
6826 s&@infodir@&$infodir&g
6827 s&@localedir@&$localedir&g
6828 s&@mandir@&$mandir&g
6829 s&\\\${datarootdir}&$datarootdir&g' ;;
6830 esac
6831 _ACEOF
6833 # Neutralize VPATH when `$srcdir' = `.'.
6834 # Shell code in configure.ac might set extrasub.
6835 # FIXME: do we really want to maintain this feature?
6836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6837 ac_sed_extra="$ac_vpsub
6838 $extrasub
6839 _ACEOF
6840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6843 s|@configure_input@|$ac_sed_conf_input|;t t
6844 s&@top_builddir@&$ac_top_builddir_sub&;t t
6845 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6846 s&@srcdir@&$ac_srcdir&;t t
6847 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6848 s&@top_srcdir@&$ac_top_srcdir&;t t
6849 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6850 s&@builddir@&$ac_builddir&;t t
6851 s&@abs_builddir@&$ac_abs_builddir&;t t
6852 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6853 $ac_datarootdir_hack
6855 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6856 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6859 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6860 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6861 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6863 which seems to be undefined. Please make sure it is defined" >&5
6864 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6865 which seems to be undefined. Please make sure it is defined" >&2;}
6867 rm -f "$ac_tmp/stdin"
6868 case $ac_file in
6869 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6870 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6871 esac \
6872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6876 # CONFIG_HEADER
6878 if test x"$ac_file" != x-; then
6880 $as_echo "/* $configure_input */" \
6881 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6882 } >"$ac_tmp/config.h" \
6883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6884 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6886 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6887 else
6888 rm -f "$ac_file"
6889 mv "$ac_tmp/config.h" "$ac_file" \
6890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6892 else
6893 $as_echo "/* $configure_input */" \
6894 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6895 || as_fn_error $? "could not create -" "$LINENO" 5
6900 esac
6902 done # for ac_tag
6905 as_fn_exit 0
6906 _ACEOF
6907 ac_clean_files=$ac_clean_files_save
6909 test $ac_write_fail = 0 ||
6910 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6913 # configure is writing to config.log, and then calls config.status.
6914 # config.status does its own redirection, appending to config.log.
6915 # Unfortunately, on DOS this fails, as config.log is still kept open
6916 # by configure, so config.status won't be able to write to it; its
6917 # output is simply discarded. So we exec the FD to /dev/null,
6918 # effectively closing config.log, so it can be properly (re)opened and
6919 # appended to by config.status. When coming back to configure, we
6920 # need to make the FD available again.
6921 if test "$no_create" != yes; then
6922 ac_cs_success=:
6923 ac_config_status_args=
6924 test "$silent" = yes &&
6925 ac_config_status_args="$ac_config_status_args --quiet"
6926 exec 5>/dev/null
6927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6928 exec 5>>config.log
6929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6930 # would make configure fail if this is the last instruction.
6931 $ac_cs_success || as_fn_exit 1
6933 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6935 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6939 for ac_prog in git
6941 # Extract the first word of "$ac_prog", so it can be a program name with args.
6942 set dummy $ac_prog; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_GIT+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$GIT"; then
6949 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_GIT="$ac_prog"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6968 GIT=$ac_cv_prog_GIT
6969 if test -n "$GIT"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6971 $as_echo "$GIT" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6978 test -n "$GIT" && break
6979 done
6983 for ac_prog in python
6985 # Extract the first word of "$ac_prog", so it can be a program name with args.
6986 set dummy $ac_prog; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_PYTHON+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 if test -n "$PYTHON"; then
6993 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_PYTHON="$ac_prog"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7006 done
7007 done
7008 IFS=$as_save_IFS
7012 PYTHON=$ac_cv_prog_PYTHON
7013 if test -n "$PYTHON"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7015 $as_echo "$PYTHON" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7022 test -n "$PYTHON" && break
7023 done
7024 test -n "$PYTHON" || PYTHON="python2.7"
7028 for ac_prog in python3
7030 # Extract the first word of "$ac_prog", so it can be a program name with args.
7031 set dummy $ac_prog; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_PYTHON3+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$PYTHON3"; then
7038 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_PYTHON3="$ac_prog"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7051 done
7052 done
7053 IFS=$as_save_IFS
7057 PYTHON3=$ac_cv_prog_PYTHON3
7058 if test -n "$PYTHON3"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7060 $as_echo "$PYTHON3" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7067 test -n "$PYTHON3" && break
7068 done
7069 test -n "$PYTHON3" || PYTHON3="python3.4"
7073 enable_python2=false
7074 if test "x$do_python" != "xno"; then :
7076 enable_python2=true
7077 if test -z "$PYTHON"
7078 then
7079 enable_python2=false
7080 else
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7082 $as_echo_n "checking Python version... " >&6; }
7083 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 }'`
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7085 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7086 if test "$PY_MAJOR" -lt 2; then
7087 echo WARNING: Python version 2.6 or later does not seem to be installed.
7088 enable_python2=false
7089 else
7090 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7091 echo WARNING: Python version 2.$PY_MINOR is too old.
7092 echo Python version 2.6 or later is required for Python builds.
7093 enable_python2=false
7094 else
7095 for ac_header in python${PY_MAJOR}.${PY_MINOR}/Python.h
7096 do :
7097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7098 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7100 cat >>confdefs.h <<_ACEOF
7101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7102 _ACEOF
7104 else
7106 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7107 echo Cannot proceed with the Python $PY_MAJOR installation found.
7108 enable_python2=false
7112 done
7118 if test "$do_python" != "check" -a "$enable_python2" != "true"
7119 then
7120 as_fn_error $? "cannot enable Python - no supported version found" "$LINENO" 5
7126 enable_python3=false
7127 if test "x$do_python3" != "xno"; then :
7129 enable_python3=true
7130 if test -z "$PYTHON3"
7131 then
7132 enable_python3=false
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7135 $as_echo_n "checking Python3 version... " >&6; }
7136 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 }'`
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7138 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7139 if test "$PY_MAJOR" -lt 3; then
7140 echo WARNING: Python version 3.3 or later does not seem to be installed.
7141 enable_python3=false
7142 else
7143 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7144 echo WARNING: Python version 3.$PY_MINOR is too old.
7145 echo Python version 3.3 or later is required for Python builds.
7146 enable_python3=false
7147 else
7148 for ac_header in python${PY_MAJOR}.${PY_MINOR}m/Python.h
7149 do :
7150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7153 cat >>confdefs.h <<_ACEOF
7154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7155 _ACEOF
7157 else
7159 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7160 echo Cannot proceed with the Python $PY_MAJOR installation found.
7161 enable_python3=false
7165 done
7171 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7172 then
7173 as_fn_error $? "cannot enable Python3 - no supported version found" "$LINENO" 5
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7180 $as_echo_n "checking for any python version... " >&6; }
7181 if test "$cross_compiling" = "yes"; then
7182 ans=$have_python
7183 echo "cross-compile -> \"$ans\"" >&5
7184 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7185 then
7186 have_python=true
7187 else
7188 have_python=false
7191 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7192 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }; fi
7195 if test "$enable_python3" = "true"
7196 then
7197 pcp_python_prog=$PYTHON3
7198 elif test "$enable_python2" = "true"
7199 then
7200 pcp_python_prog=$PYTHON
7201 else
7202 pcp_python_prog=""
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7208 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7209 if test -n ""
7210 then
7211 txt=""
7212 else
7213 txt="import jsonpointer"
7215 $pcp_python_prog -c 'import sys;
7216 '"$txt" >>config.log 2>&1
7217 if test "$?" = 0
7218 then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7220 $as_echo "yes" >&6; }
7221 eval have_python_jsonpointer=true
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 eval have_python_jsonpointer=false
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module setuptools" >&5
7230 $as_echo_n "checking for Python module setuptools... " >&6; }
7231 if test -n ""
7232 then
7233 txt=""
7234 else
7235 txt="import setuptools"
7237 $pcp_python_prog -c 'import sys;
7238 '"$txt" >>config.log 2>&1
7239 if test "$?" = 0
7240 then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7242 $as_echo "yes" >&6; }
7243 eval have_python_setuptools=true
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 eval have_python_setuptools=false
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module requests" >&5
7252 $as_echo_n "checking for Python module requests... " >&6; }
7253 if test -n ""
7254 then
7255 txt=""
7256 else
7257 txt="import requests"
7259 $pcp_python_prog -c 'import sys;
7260 '"$txt" >>config.log 2>&1
7261 if test "$?" = 0
7262 then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7264 $as_echo "yes" >&6; }
7265 eval have_python_requests=true
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 eval have_python_requests=false
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7274 $as_echo_n "checking for Python module six... " >&6; }
7275 if test -n ""
7276 then
7277 txt=""
7278 else
7279 txt="import six"
7281 $pcp_python_prog -c 'import sys;
7282 '"$txt" >>config.log 2>&1
7283 if test "$?" = 0
7284 then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7286 $as_echo "yes" >&6; }
7287 eval have_python_six=true
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 eval have_python_six=false
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7297 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7298 pmda_json=false
7299 if test "x$do_pmdajson" = "xyes"; then :
7300 pmda_json=true
7302 if test "x$do_pmdajson" = "xcheck"; then :
7304 $have_python_jsonpointer && $have_python_six && pmda_json=true
7307 PMDA_JSON=$pmda_json
7309 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7310 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }; fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module libvirt" >&5
7314 $as_echo_n "checking for Python module libvirt... " >&6; }
7315 if test -n ""
7316 then
7317 txt=""
7318 else
7319 txt="import libvirt"
7321 $pcp_python_prog -c 'import sys;
7322 '"$txt" >>config.log 2>&1
7323 if test "$?" = 0
7324 then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 $as_echo "yes" >&6; }
7327 eval have_python_libvirt=true
7328 else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7331 eval have_python_libvirt=false
7336 for ac_prog in perl
7338 # Extract the first word of "$ac_prog", so it can be a program name with args.
7339 set dummy $ac_prog; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_PERL+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 if test -n "$PERL"; then
7346 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355 ac_cv_prog_PERL="$ac_prog"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7359 done
7360 done
7361 IFS=$as_save_IFS
7365 PERL=$ac_cv_prog_PERL
7366 if test -n "$PERL"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7368 $as_echo "$PERL" >&6; }
7369 else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7375 test -n "$PERL" && break
7376 done
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7381 $as_echo_n "checking for any perl version... " >&6; }
7382 if test "$cross_compiling" = "yes"; then
7383 ans=$have_perl
7384 echo "cross-compile -> \"$ans\"" >&5
7385 elif test -n "$PERL"
7386 then
7387 pcp_perl_prog=$PERL
7388 have_perl=true
7389 else
7390 pcp_perl_prog=""
7391 have_perl=false
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7396 $as_echo "$pcp_perl_prog" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7399 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7400 pmda_snmp=false
7401 if test "x$do_pmdasnmp" = "xyes"; then :
7402 pmda_snmp=true
7404 if test "x$do_pmdasnmp" = "xcheck"; then :
7406 if test "$have_perl" = true
7407 then
7408 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7409 then
7410 pmda_snmp=true
7415 PMDA_SNMP=$pmda_snmp
7417 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }; fi
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7422 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7423 pmda_mysql=false
7424 if test "$have_perl" = true
7425 then
7426 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7427 then
7428 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7429 then
7430 pmda_mysql=true
7434 PMDA_MYSQL=$pmda_mysql
7436 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7437 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }; fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7441 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7442 pmda_postgresql=false
7443 if test "$have_perl" = true
7444 then
7445 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7446 then
7447 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7448 then
7449 pmda_postgresql=true
7453 PMDA_POSTGRESQL=$pmda_postgresql
7455 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }; fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7460 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7461 pmda_oracle=false
7462 if test "$have_perl" = true
7463 then
7464 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7465 then
7466 pmda_oracle=true
7469 PMDA_ORACLE=$pmda_oracle
7471 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7472 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }; fi
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7476 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7477 pmda_elasticsearch=false
7478 if test "$have_perl" = true
7479 then
7480 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7481 then
7482 pmda_elasticsearch=true
7485 PMDA_ELASTICSEARCH=$pmda_elasticsearch
7487 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7488 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }; fi
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7492 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7493 pmda_nginx=false
7494 if test "$have_perl" = true
7495 then
7496 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7497 then
7498 pmda_nginx=true
7501 PMDA_NGINX=$pmda_nginx
7503 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7504 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }; fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7508 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7509 pmda_activemq=false
7510 if test "$have_perl" = true
7511 then
7512 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7513 then
7514 pmda_activemq=true
7517 PMDA_ACTIVEMQ=$pmda_activemq
7519 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7520 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }; fi
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the libvirt PMDA should be included" >&5
7524 $as_echo_n "checking if the libvirt PMDA should be included... " >&6; }
7525 pmda_libvirt=false
7526 if test "$have_python" = true
7527 then
7528 if $pcp_python_prog -c "import libvirt" >/dev/null 2>&1
7529 then
7530 if $pcp_python_prog -c "import lxml" >/dev/null 2>&1
7531 then
7532 pmda_libvirt=true
7536 PMDA_LIBVIRT=$pmda_libvirt
7538 if $pmda_libvirt; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7539 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }; fi
7542 qmake=$QMAKE
7543 enable_qt=false
7544 qt_release=release
7545 if test "x$do_qt" != "xno"; then :
7547 enable_qt=true
7549 if test -z "$QMAKE"
7550 then
7551 for ac_prog in qmake-qt5 qmake-qt4 qmake
7553 # Extract the first word of "$ac_prog", so it can be a program name with args.
7554 set dummy $ac_prog; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_path_QMAKE+:} false; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 case $QMAKE in
7561 [\\/]* | ?:[\\/]*)
7562 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 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"
7567 for as_dir in $as_dummy
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7577 done
7578 done
7579 IFS=$as_save_IFS
7582 esac
7584 QMAKE=$ac_cv_path_QMAKE
7585 if test -n "$QMAKE"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7587 $as_echo "$QMAKE" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7594 test -n "$QMAKE" && break
7595 done
7597 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7599 qmake=$QMAKE
7600 if test -z "$QMAKE"
7601 then
7602 enable_qt=false
7603 else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7605 $as_echo_n "checking Qt version... " >&6; }
7606 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 }'`
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7608 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7609 if test "$QT_MAJOR" -lt 4; then
7610 echo WARNING: Qt version 4.4 or later does not seem to be installed.
7611 echo Cannot proceed with the Qt $QT_MAJOR installation found.
7612 enable_qt=false
7614 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7615 echo WARNING: Qt version 4.$QT_MINOR is too old.
7616 echo Qt version 4.4 or later is required for Qt builds.
7617 enable_qt=false
7621 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7622 then
7623 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7624 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7625 then
7626 enable_qt=false
7627 test "$do_qt" != "check" && \
7628 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7629 elif test "$do_qt" = "debug"
7630 then
7631 qt_release=debug
7632 enable_qt=true
7640 if test -z "$MAKE"
7641 then
7642 # Extract the first word of "gmake", so it can be a program name with args.
7643 set dummy gmake; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_path_MAKE+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 case $MAKE in
7650 [\\/]* | ?:[\\/]*)
7651 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 break 2
7665 done
7666 done
7667 IFS=$as_save_IFS
7670 esac
7672 MAKE=$ac_cv_path_MAKE
7673 if test -n "$MAKE"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7675 $as_echo "$MAKE" >&6; }
7676 else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7682 if test -z "$MAKE"
7683 then
7684 # look elsewhere ...
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7686 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7687 for f in /usr/local/bin/gmake /usr/freeware/bin/gmake /usr/local/bin/make /opt/sfw/bin/gmake nowhere
7689 if test -x $f
7690 then
7691 MAKE=$f
7692 break
7694 done
7695 if test $f = nowhere
7696 then
7697 # Check if /usr/bin/make is any good
7698 mver=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7699 if test "$mver" != "GNU Make"
7700 then
7701 echo
7702 echo "FATAL ERROR: could not find GNU make anywhere"
7703 echo "You need to set \$MAKE as the full path to GNU make "
7704 echo "in the environment."
7705 rm -rf conftest conftest.*
7706 exit 1
7707 else
7708 MAKE=/usr/bin/make
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7712 $as_echo "$MAKE" >&6; }
7715 make=$MAKE
7718 if test -z "$CPP"; then
7719 ac_ext=c
7720 ac_cpp='$CPP $CPPFLAGS'
7721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7725 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7726 # On Suns, sometimes $CPP names a directory.
7727 if test -n "$CPP" && test -d "$CPP"; then
7728 CPP=
7730 if test -z "$CPP"; then
7731 if ${ac_cv_prog_CPP+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 # Double quotes because CPP needs to be expanded
7735 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7737 ac_preproc_ok=false
7738 for ac_c_preproc_warn_flag in '' yes
7740 # Use a header file that comes with gcc, so configuring glibc
7741 # with a fresh cross-compiler works.
7742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7743 # <limits.h> exists even on freestanding compilers.
7744 # On the NeXT, cc -E runs the code through the compiler's parser,
7745 # not just through cpp. "Syntax error" is here to catch this case.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #ifdef __STDC__
7749 # include <limits.h>
7750 #else
7751 # include <assert.h>
7752 #endif
7753 Syntax error
7754 _ACEOF
7755 if ac_fn_c_try_cpp "$LINENO"; then :
7757 else
7758 # Broken: fails on valid input.
7759 continue
7761 rm -f conftest.err conftest.i conftest.$ac_ext
7763 # OK, works on sane cases. Now check whether nonexistent headers
7764 # can be detected and how.
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 #include <ac_nonexistent.h>
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770 # Broken: success on invalid input.
7771 continue
7772 else
7773 # Passes both tests.
7774 ac_preproc_ok=:
7775 break
7777 rm -f conftest.err conftest.i conftest.$ac_ext
7779 done
7780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7781 rm -f conftest.i conftest.err conftest.$ac_ext
7782 if $ac_preproc_ok; then :
7783 break
7786 done
7787 ac_cv_prog_CPP=$CPP
7790 CPP=$ac_cv_prog_CPP
7791 else
7792 ac_cv_prog_CPP=$CPP
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7795 $as_echo "$CPP" >&6; }
7796 ac_preproc_ok=false
7797 for ac_c_preproc_warn_flag in '' yes
7799 # Use a header file that comes with gcc, so configuring glibc
7800 # with a fresh cross-compiler works.
7801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802 # <limits.h> exists even on freestanding compilers.
7803 # On the NeXT, cc -E runs the code through the compiler's parser,
7804 # not just through cpp. "Syntax error" is here to catch this case.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #ifdef __STDC__
7808 # include <limits.h>
7809 #else
7810 # include <assert.h>
7811 #endif
7812 Syntax error
7813 _ACEOF
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7816 else
7817 # Broken: fails on valid input.
7818 continue
7820 rm -f conftest.err conftest.i conftest.$ac_ext
7822 # OK, works on sane cases. Now check whether nonexistent headers
7823 # can be detected and how.
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <ac_nonexistent.h>
7827 _ACEOF
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7829 # Broken: success on invalid input.
7830 continue
7831 else
7832 # Passes both tests.
7833 ac_preproc_ok=:
7834 break
7836 rm -f conftest.err conftest.i conftest.$ac_ext
7838 done
7839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840 rm -f conftest.i conftest.err conftest.$ac_ext
7841 if $ac_preproc_ok; then :
7843 else
7844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7846 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7847 See \`config.log' for more details" "$LINENO" 5; }
7850 ac_ext=c
7851 ac_cpp='$CPP $CPPFLAGS'
7852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7857 cpp=$CPP
7860 if test -z "$LD"; then
7861 # Extract the first word of "ld", so it can be a program name with args.
7862 set dummy ld; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if ${ac_cv_path_LD+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 case $LD in
7869 [\\/]* | ?:[\\/]*)
7870 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7884 done
7885 done
7886 IFS=$as_save_IFS
7888 test -z "$ac_cv_path_LD" && ac_cv_path_LD="/usr/bin/ld"
7890 esac
7892 LD=$ac_cv_path_LD
7893 if test -n "$LD"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7895 $as_echo "$LD" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7903 ld=$LD
7906 if test -z "$PCP_USER_INSTALL" ; then
7907 pcp_user_install=root
7908 else
7909 pcp_user_install="$PCP_USER_INSTALL"
7912 if test -z "$PCP_GROUP_INSTALL" ; then
7913 case "$target_os"
7915 darwin|freebsd|netbsd|openbsd)
7916 pcp_group_install=wheel
7919 pcp_group_install=root
7921 esac
7922 else
7923 pcp_group_install="$PCP_GROUP_INSTALL"
7927 if test -z "$TAR"; then
7928 for ac_prog in gtar tar
7930 # Extract the first word of "$ac_prog", so it can be a program name with args.
7931 set dummy $ac_prog; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_path_TAR+:} false; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 case $TAR in
7938 [\\/]* | ?:[\\/]*)
7939 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7949 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7953 done
7954 done
7955 IFS=$as_save_IFS
7958 esac
7960 TAR=$ac_cv_path_TAR
7961 if test -n "$TAR"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7963 $as_echo "$TAR" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7970 test -n "$TAR" && break
7971 done
7972 test -n "$TAR" || TAR="tar"
7975 if test $target_os = darwin -a -x /usr/bin/gnutar
7976 then
7977 TAR=/usr/bin/gnutar
7979 tar=$TAR
7982 if test -z "$ZIP"; then
7983 # Extract the first word of "gzip", so it can be a program name with args.
7984 set dummy gzip; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_path_ZIP+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 case $ZIP in
7991 [\\/]* | ?:[\\/]*)
7992 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8006 done
8007 done
8008 IFS=$as_save_IFS
8010 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
8012 esac
8014 ZIP=$ac_cv_path_ZIP
8015 if test -n "$ZIP"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
8017 $as_echo "$ZIP" >&6; }
8018 else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8025 test ! -x "$ZIP" && ZIP=/usr/local/bin/gzip
8026 test ! -x "$ZIP" && ZIP=/usr/freeware/bin/gzip
8027 test ! -x "$ZIP" && ZIP=/usr/bin/gzip
8028 gzip=$ZIP
8029 test -z "$gzip" && gzip=no-gzip
8032 if test -z "$BZIP2"; then
8033 # Extract the first word of "bzip2", so it can be a program name with args.
8034 set dummy bzip2; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_path_BZIP2+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 case $BZIP2 in
8041 [\\/]* | ?:[\\/]*)
8042 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8056 done
8057 done
8058 IFS=$as_save_IFS
8060 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
8062 esac
8064 BZIP2=$ac_cv_path_BZIP2
8065 if test -n "$BZIP2"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
8067 $as_echo "$BZIP2" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8075 test ! -x "$BZIP2" && BZIP2=/usr/bin/bzip2
8076 test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2
8077 test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2
8078 bzip2=$BZIP2
8079 test -z "$bzip2" && bzip2=no-bzip2
8082 if test -z "$LZMA"; then
8083 # Extract the first word of "lzma", so it can be a program name with args.
8084 set dummy lzma; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_path_LZMA+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 case $LZMA in
8091 [\\/]* | ?:[\\/]*)
8092 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102 ac_cv_path_LZMA="$as_dir/$ac_word$ac_exec_ext"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8106 done
8107 done
8108 IFS=$as_save_IFS
8110 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
8112 esac
8114 LZMA=$ac_cv_path_LZMA
8115 if test -n "$LZMA"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8117 $as_echo "$LZMA" >&6; }
8118 else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8125 test ! -x "$LZMA" && LZMA=/usr/bin/lzma
8126 test ! -x "$LZMA" && LZMA=/usr/local/bin/lzma
8127 test ! -x "$LZMA" && LZMA=/usr/freeware/bin/lzma
8128 lzma=$LZMA
8129 test -z "$lzma" && lzma=no-lzma
8132 if test -z "$XZ"; then
8133 # Extract the first word of "xz", so it can be a program name with args.
8134 set dummy xz; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if ${ac_cv_path_XZ+:} false; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 case $XZ in
8141 [\\/]* | ?:[\\/]*)
8142 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8156 done
8157 done
8158 IFS=$as_save_IFS
8160 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
8162 esac
8164 XZ=$ac_cv_path_XZ
8165 if test -n "$XZ"; then
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8167 $as_echo "$XZ" >&6; }
8168 else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }
8175 test ! -x "$XZ" && XZ=/usr/bin/xz
8176 test ! -x "$XZ" && XZ=/usr/local/bin/xz
8177 test ! -x "$XZ" && XZ=/usr/freeware/bin/xz
8178 xz=$XZ
8179 test -z "$xz" && xz=no-xz
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8183 $as_echo_n "checking for PackageMaker... " >&6; }
8184 if test -z "$PACKAGE_MAKER"
8185 then
8186 if test $target_os = darwin
8187 then
8188 if test -x /Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8189 then # local XCode extras install
8190 package_maker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8192 $as_echo " yes (local install)" >&6; }
8193 elif test -x /Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8194 then # Darwin 6.x
8195 package_maker=/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8197 $as_echo " yes (darwin 6.x)" >&6; }
8198 elif test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8199 then # Darwin 7.x
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8201 $as_echo " yes (darwin 7.x)" >&6; }
8202 package_maker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8205 $as_echo " not found!" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8207 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo " no" >&6; }
8213 else
8214 package_maker="$PACKAGE_MAKER"
8218 if test -z "$HDIUTIL"; then
8219 # Extract the first word of "hdiutil", so it can be a program name with args.
8220 set dummy hdiutil; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_path_HDIUTIL+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 case $HDIUTIL in
8227 [\\/]* | ?:[\\/]*)
8228 ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8238 ac_cv_path_HDIUTIL="$as_dir/$ac_word$ac_exec_ext"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8242 done
8243 done
8244 IFS=$as_save_IFS
8247 esac
8249 HDIUTIL=$ac_cv_path_HDIUTIL
8250 if test -n "$HDIUTIL"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8252 $as_echo "$HDIUTIL" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8260 hdiutil=$HDIUTIL
8263 if test -z "$MKINSTALLP"; then
8264 # Extract the first word of "mkinstallp", so it can be a program name with args.
8265 set dummy mkinstallp; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_path_MKINSTALLP+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 case $MKINSTALLP in
8272 [\\/]* | ?:[\\/]*)
8273 ac_cv_path_MKINSTALLP="$MKINSTALLP" # Let the user override the test with a path.
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283 ac_cv_path_MKINSTALLP="$as_dir/$ac_word$ac_exec_ext"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 break 2
8287 done
8288 done
8289 IFS=$as_save_IFS
8292 esac
8294 MKINSTALLP=$ac_cv_path_MKINSTALLP
8295 if test -n "$MKINSTALLP"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8297 $as_echo "$MKINSTALLP" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8305 mkinstallp=$MKINSTALLP
8308 if test -z "$PKGMK"; then
8309 # Extract the first word of "pkgmk", so it can be a program name with args.
8310 set dummy pkgmk; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if ${ac_cv_path_PKGMK+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 case $PKGMK in
8317 [\\/]* | ?:[\\/]*)
8318 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328 ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8332 done
8333 done
8334 IFS=$as_save_IFS
8337 esac
8339 PKGMK=$ac_cv_path_PKGMK
8340 if test -n "$PKGMK"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8342 $as_echo "$PKGMK" >&6; }
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8350 pkgmk=$PKGMK
8353 if test -z "$DLLTOOL"; then
8354 # Extract the first word of "dlltool", so it can be a program name with args.
8355 set dummy dlltool; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_path_DLLTOOL+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 case $DLLTOOL in
8362 [\\/]* | ?:[\\/]*)
8363 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_path_DLLTOOL="$as_dir/$ac_word$ac_exec_ext"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8377 done
8378 done
8379 IFS=$as_save_IFS
8382 esac
8384 DLLTOOL=$ac_cv_path_DLLTOOL
8385 if test -n "$DLLTOOL"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8387 $as_echo "$DLLTOOL" >&6; }
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8395 dlltool=$DLLTOOL
8398 if test -z "$RPMBUILD"; then
8399 # Extract the first word of "rpmbuild", so it can be a program name with args.
8400 set dummy rpmbuild; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_path_RPMBUILD+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 case $RPMBUILD in
8407 [\\/]* | ?:[\\/]*)
8408 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8418 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8422 done
8423 done
8424 IFS=$as_save_IFS
8427 esac
8429 RPMBUILD=$ac_cv_path_RPMBUILD
8430 if test -n "$RPMBUILD"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8432 $as_echo "$RPMBUILD" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8440 test $target_distro = slackware && RPMBUILD=''
8441 rpmbuild=$RPMBUILD
8444 if test -z "$RPM"; then
8445 # Extract the first word of "rpm", so it can be a program name with args.
8446 set dummy rpm; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_path_RPM+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 case $RPM in
8453 [\\/]* | ?:[\\/]*)
8454 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8468 done
8469 done
8470 IFS=$as_save_IFS
8473 esac
8475 RPM=$ac_cv_path_RPM
8476 if test -n "$RPM"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8478 $as_echo "$RPM" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8486 test $target_distro = slackware && RPM=''
8487 rpm=$RPM
8490 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8491 then
8492 rpmprog=$RPMBUILD
8493 else
8494 rpmprog=$RPM
8498 if test -z "$POD2MAN"; then
8499 # Extract the first word of "pod2man", so it can be a program name with args.
8500 set dummy pod2man; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if ${ac_cv_path_POD2MAN+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 case $POD2MAN in
8507 [\\/]* | ?:[\\/]*)
8508 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 for as_dir in $PATH
8514 IFS=$as_save_IFS
8515 test -z "$as_dir" && as_dir=.
8516 for ac_exec_ext in '' $ac_executable_extensions; do
8517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8518 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 break 2
8522 done
8523 done
8524 IFS=$as_save_IFS
8527 esac
8529 POD2MAN=$ac_cv_path_POD2MAN
8530 if test -n "$POD2MAN"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8532 $as_echo "$POD2MAN" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8540 pod2man=$POD2MAN
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8544 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8545 perl -e "use ExtUtils::MakeMaker" 2>/dev/null
8546 if test $? -eq 0
8547 then
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8549 $as_echo " yes" >&6; }
8550 else
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo " no" >&6; }
8553 echo
8554 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8555 echo "You can either install this from your distribution, or"
8556 echo "download from CPAN (Comprehensive Perl Archive Network)."
8557 rm -rf conftest conftest.*
8558 exit 1
8561 # Extract the first word of "true", so it can be a program name with args.
8562 set dummy true; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_path_TRUEPROG+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 case $TRUEPROG in
8569 [\\/]* | ?:[\\/]*)
8570 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574 for as_dir in $PATH
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580 ac_cv_path_TRUEPROG="$as_dir/$ac_word$ac_exec_ext"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8584 done
8585 done
8586 IFS=$as_save_IFS
8589 esac
8591 TRUEPROG=$ac_cv_path_TRUEPROG
8592 if test -n "$TRUEPROG"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8594 $as_echo "$TRUEPROG" >&6; }
8595 else
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8602 if test -z "$MAKEDEPEND"; then
8603 # Extract the first word of "makedepend", so it can be a program name with args.
8604 set dummy makedepend; ac_word=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if ${ac_cv_path_MAKEDEPEND+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 case $MAKEDEPEND in
8611 [\\/]* | ?:[\\/]*)
8612 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8622 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8626 done
8627 done
8628 IFS=$as_save_IFS
8630 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8632 esac
8634 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
8635 if test -n "$MAKEDEPEND"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8637 $as_echo "$MAKEDEPEND" >&6; }
8638 else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 $as_echo "no" >&6; }
8645 makedepend=$MAKEDEPEND
8648 if test -z "$MD5SUM"; then
8649 # Extract the first word of "md5sum", so it can be a program name with args.
8650 set dummy md5sum; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_path_MD5SUM+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 case $MD5SUM in
8657 [\\/]* | ?:[\\/]*)
8658 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
8666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8668 ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
8669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 break 2
8672 done
8673 done
8674 IFS=$as_save_IFS
8676 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8678 esac
8680 MD5SUM=$ac_cv_path_MD5SUM
8681 if test -n "$MD5SUM"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8683 $as_echo "$MD5SUM" >&6; }
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8691 md5sum=$MD5SUM
8694 if test -z "$DPKG"; then
8695 # Extract the first word of "dpkg", so it can be a program name with args.
8696 set dummy dpkg; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if ${ac_cv_path_DPKG+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 case $DPKG in
8703 [\\/]* | ?:[\\/]*)
8704 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 break 2
8718 done
8719 done
8720 IFS=$as_save_IFS
8723 esac
8725 DPKG=$ac_cv_path_DPKG
8726 if test -n "$DPKG"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8728 $as_echo "$DPKG" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8736 dpkg=$DKPG
8739 if test -z "$MAKEPKG"; then
8740 # Extract the first word of "makepkg", so it can be a program name with args.
8741 set dummy makepkg; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_path_MAKEPKG+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 case $MAKEPKG in
8748 [\\/]* | ?:[\\/]*)
8749 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759 ac_cv_path_MAKEPKG="$as_dir/$ac_word$ac_exec_ext"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8763 done
8764 done
8765 IFS=$as_save_IFS
8768 esac
8770 MAKEPKG=$ac_cv_path_MAKEPKG
8771 if test -n "$MAKEPKG"; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8773 $as_echo "$MAKEPKG" >&6; }
8774 else
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8781 makepkg=$MAKEPKG
8784 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8785 set dummy publican; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if ${ac_cv_path_PUBLICAN+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 case $PUBLICAN in
8792 [\\/]* | ?:[\\/]*)
8793 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803 ac_cv_path_PUBLICAN="$as_dir/$ac_word$ac_exec_ext"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8807 done
8808 done
8809 IFS=$as_save_IFS
8812 esac
8814 PUBLICAN=$ac_cv_path_PUBLICAN
8815 if test -n "$PUBLICAN"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8817 $as_echo "$PUBLICAN" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8824 publican=$PUBLICAN
8826 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8827 set dummy dblatex; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_path_DBLATEX+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 case $DBLATEX in
8834 [\\/]* | ?:[\\/]*)
8835 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8849 done
8850 done
8851 IFS=$as_save_IFS
8854 esac
8856 DBLATEX=$ac_cv_path_DBLATEX
8857 if test -n "$DBLATEX"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8859 $as_echo "$DBLATEX" >&6; }
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8866 dblatex=$DBLATEX
8868 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8869 set dummy xmlto; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if ${ac_cv_path_XMLTO+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 case $XMLTO in
8876 [\\/]* | ?:[\\/]*)
8877 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in $PATH
8883 IFS=$as_save_IFS
8884 test -z "$as_dir" && as_dir=.
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 break 2
8891 done
8892 done
8893 IFS=$as_save_IFS
8896 esac
8898 XMLTO=$ac_cv_path_XMLTO
8899 if test -n "$XMLTO"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8901 $as_echo "$XMLTO" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8908 xmlto=$XMLTO
8911 book_toolchain=""
8912 if test "$do_books" = "check" -o "$do_books" = "yes"
8913 then
8914 if test "$BOOK_TOOLCHAIN" != ""
8915 then
8916 book_toolchain=$BOOK_TOOLCHAIN
8917 elif test "$DBLATEX" != ""
8918 then
8919 book_toolchain=dblatex
8920 elif test "$PUBLICAN" != ""
8921 then
8922 book_toolchain=publican
8923 elif test "$XMLTO" != ""
8924 then
8925 book_toolchain=xmlto
8926 elif test "$do_books" = "yes"
8927 then
8928 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
8933 book_brand="common"
8934 if test "$do_books_brand" != ""
8935 then
8936 book_brand=$do_books_brand
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8941 $as_echo_n "checking whether ln -s works... " >&6; }
8942 LN_S=$as_ln_s
8943 if test "$LN_S" = "ln -s"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8945 $as_echo "yes" >&6; }
8946 else
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8948 $as_echo "no, using $LN_S" >&6; }
8951 if test $target_os = mingw; then
8952 as_ln_s=/bin/true
8955 if test -d /proc
8956 then
8957 test -f /proc/stat || mount /proc >/dev/null 2>&1
8960 if test -n "$PROCPS"
8961 then
8962 pcp_ps_prog="$PROCPS"
8963 else
8964 pcp_ps_prog=ps
8968 if test $target_os = mingw
8969 then
8970 pcp_syslog_prog=pcp-eventlog
8971 else
8972 pcp_syslog_prog=logger
8976 grep=grep
8977 if test $target_os = solaris
8978 then
8979 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/bin/grep
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8984 $as_echo_n "checking for /proc ... " >&6; }
8985 if test "$cross_compiling" = "yes"; then
8986 ans=$have_procfs
8987 echo "cross-compile -> \"$ans\"" >&5
8988 elif test -d /proc
8989 then
8990 have_procfs=true
8991 else
8992 have_procfs=false
8994 if $have_procfs
8995 then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8997 $as_echo "yes" >&6; }
8999 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9006 ac_header_dirent=no
9007 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9008 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9010 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9011 if eval \${$as_ac_Header+:} false; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9016 #include <sys/types.h>
9017 #include <$ac_hdr>
9020 main ()
9022 if ((DIR *) 0)
9023 return 0;
9025 return 0;
9027 _ACEOF
9028 if ac_fn_c_try_compile "$LINENO"; then :
9029 eval "$as_ac_Header=yes"
9030 else
9031 eval "$as_ac_Header=no"
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 eval ac_res=\$$as_ac_Header
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9037 $as_echo "$ac_res" >&6; }
9038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9039 cat >>confdefs.h <<_ACEOF
9040 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9041 _ACEOF
9043 ac_header_dirent=$ac_hdr; break
9046 done
9047 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9048 if test $ac_header_dirent = dirent.h; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9050 $as_echo_n "checking for library containing opendir... " >&6; }
9051 if ${ac_cv_search_opendir+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 ac_func_search_save_LIBS=$LIBS
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9058 /* Override any GCC internal prototype to avoid an error.
9059 Use char because int might match the return type of a GCC
9060 builtin and then its argument prototype would still apply. */
9061 #ifdef __cplusplus
9062 extern "C"
9063 #endif
9064 char opendir ();
9066 main ()
9068 return opendir ();
9070 return 0;
9072 _ACEOF
9073 for ac_lib in '' dir; do
9074 if test -z "$ac_lib"; then
9075 ac_res="none required"
9076 else
9077 ac_res=-l$ac_lib
9078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9080 if ac_fn_c_try_link "$LINENO"; then :
9081 ac_cv_search_opendir=$ac_res
9083 rm -f core conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext
9085 if ${ac_cv_search_opendir+:} false; then :
9086 break
9088 done
9089 if ${ac_cv_search_opendir+:} false; then :
9091 else
9092 ac_cv_search_opendir=no
9094 rm conftest.$ac_ext
9095 LIBS=$ac_func_search_save_LIBS
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9098 $as_echo "$ac_cv_search_opendir" >&6; }
9099 ac_res=$ac_cv_search_opendir
9100 if test "$ac_res" != no; then :
9101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9105 else
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9107 $as_echo_n "checking for library containing opendir... " >&6; }
9108 if ${ac_cv_search_opendir+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 ac_func_search_save_LIBS=$LIBS
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9115 /* Override any GCC internal prototype to avoid an error.
9116 Use char because int might match the return type of a GCC
9117 builtin and then its argument prototype would still apply. */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 char opendir ();
9123 main ()
9125 return opendir ();
9127 return 0;
9129 _ACEOF
9130 for ac_lib in '' x; do
9131 if test -z "$ac_lib"; then
9132 ac_res="none required"
9133 else
9134 ac_res=-l$ac_lib
9135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9137 if ac_fn_c_try_link "$LINENO"; then :
9138 ac_cv_search_opendir=$ac_res
9140 rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext
9142 if ${ac_cv_search_opendir+:} false; then :
9143 break
9145 done
9146 if ${ac_cv_search_opendir+:} false; then :
9148 else
9149 ac_cv_search_opendir=no
9151 rm conftest.$ac_ext
9152 LIBS=$ac_func_search_save_LIBS
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9155 $as_echo "$ac_cv_search_opendir" >&6; }
9156 ac_res=$ac_cv_search_opendir
9157 if test "$ac_res" != no; then :
9158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9165 $as_echo_n "checking for ANSI C header files... " >&6; }
9166 if ${ac_cv_header_stdc+:} false; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 #include <stdlib.h>
9172 #include <stdarg.h>
9173 #include <string.h>
9174 #include <float.h>
9177 main ()
9181 return 0;
9183 _ACEOF
9184 if ac_fn_c_try_compile "$LINENO"; then :
9185 ac_cv_header_stdc=yes
9186 else
9187 ac_cv_header_stdc=no
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 if test $ac_cv_header_stdc = yes; then
9192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195 #include <string.h>
9197 _ACEOF
9198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9199 $EGREP "memchr" >/dev/null 2>&1; then :
9201 else
9202 ac_cv_header_stdc=no
9204 rm -f conftest*
9208 if test $ac_cv_header_stdc = yes; then
9209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 #include <stdlib.h>
9214 _ACEOF
9215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9216 $EGREP "free" >/dev/null 2>&1; then :
9218 else
9219 ac_cv_header_stdc=no
9221 rm -f conftest*
9225 if test $ac_cv_header_stdc = yes; then
9226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9227 if test "$cross_compiling" = yes; then :
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 #include <ctype.h>
9233 #include <stdlib.h>
9234 #if ((' ' & 0x0FF) == 0x020)
9235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9237 #else
9238 # define ISLOWER(c) \
9239 (('a' <= (c) && (c) <= 'i') \
9240 || ('j' <= (c) && (c) <= 'r') \
9241 || ('s' <= (c) && (c) <= 'z'))
9242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9243 #endif
9245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9247 main ()
9249 int i;
9250 for (i = 0; i < 256; i++)
9251 if (XOR (islower (i), ISLOWER (i))
9252 || toupper (i) != TOUPPER (i))
9253 return 2;
9254 return 0;
9256 _ACEOF
9257 if ac_fn_c_try_run "$LINENO"; then :
9259 else
9260 ac_cv_header_stdc=no
9262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9263 conftest.$ac_objext conftest.beam conftest.$ac_ext
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9269 $as_echo "$ac_cv_header_stdc" >&6; }
9270 if test $ac_cv_header_stdc = yes; then
9272 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9277 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9278 if ${ac_cv_header_sys_wait_h+:} false; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 #include <sys/types.h>
9284 #include <sys/wait.h>
9285 #ifndef WEXITSTATUS
9286 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9287 #endif
9288 #ifndef WIFEXITED
9289 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9290 #endif
9293 main ()
9295 int s;
9296 wait (&s);
9297 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9299 return 0;
9301 _ACEOF
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303 ac_cv_header_sys_wait_h=yes
9304 else
9305 ac_cv_header_sys_wait_h=no
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9310 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9311 if test $ac_cv_header_sys_wait_h = yes; then
9313 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9317 for ac_header in fcntl.h limits.h malloc.h strings.h syslog.h
9318 do :
9319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9321 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9322 cat >>confdefs.h <<_ACEOF
9323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324 _ACEOF
9328 done
9330 for ac_header in stddef.h sched.h dlfcn.h dl.h
9331 do :
9332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9333 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9334 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9335 cat >>confdefs.h <<_ACEOF
9336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9337 _ACEOF
9341 done
9343 for ac_header in sys/times.h sys/resource.h sys/prctl.h
9344 do :
9345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9348 cat >>confdefs.h <<_ACEOF
9349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9350 _ACEOF
9354 done
9356 for ac_header in sys/sysinfo.h sys/systeminfo.h
9357 do :
9358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9359 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9360 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9361 cat >>confdefs.h <<_ACEOF
9362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9363 _ACEOF
9367 done
9369 for ac_header in endian.h standards.h sys/byteorder.h
9370 do :
9371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9372 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9373 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9374 cat >>confdefs.h <<_ACEOF
9375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9376 _ACEOF
9380 done
9382 for ac_header in libgen.h sys/mman.h sys/un.h
9383 do :
9384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9385 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9387 cat >>confdefs.h <<_ACEOF
9388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9389 _ACEOF
9393 done
9395 for ac_header in values.h stdint.h ieeefp.h math.h
9396 do :
9397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9398 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9399 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9400 cat >>confdefs.h <<_ACEOF
9401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9402 _ACEOF
9406 done
9408 for ac_header in pwd.h grp.h regex.h sys/wait.h
9409 do :
9410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9411 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9412 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9413 cat >>confdefs.h <<_ACEOF
9414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9415 _ACEOF
9419 done
9421 for ac_header in termio.h termios.h sys/termios.h
9422 do :
9423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9424 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9426 cat >>confdefs.h <<_ACEOF
9427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9428 _ACEOF
9432 done
9434 for ac_header in sys/ioctl.h sys/select.h sys/socket.h
9435 do :
9436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9437 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9439 cat >>confdefs.h <<_ACEOF
9440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9441 _ACEOF
9445 done
9447 for ac_header in netdb.h
9448 do :
9449 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9450 if test "x$ac_cv_header_netdb_h" = xyes; then :
9451 cat >>confdefs.h <<_ACEOF
9452 #define HAVE_NETDB_H 1
9453 _ACEOF
9457 done
9459 if test $target_os = darwin -o $target_os = openbsd
9460 then
9461 for ac_header in net/if.h
9462 do :
9463 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9464 #include <sys/socket.h>
9466 if test "x$ac_cv_header_net_if_h" = xyes; then :
9467 cat >>confdefs.h <<_ACEOF
9468 #define HAVE_NET_IF_H 1
9469 _ACEOF
9473 done
9475 else
9476 for ac_header in net/if.h
9477 do :
9478 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9479 if test "x$ac_cv_header_net_if_h" = xyes; then :
9480 cat >>confdefs.h <<_ACEOF
9481 #define HAVE_NET_IF_H 1
9482 _ACEOF
9486 done
9489 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9490 do :
9491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9492 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9493 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9494 cat >>confdefs.h <<_ACEOF
9495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9496 _ACEOF
9500 done
9502 for ac_header in windows.h winsock2.h ws2tcpip.h
9503 do :
9504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9505 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9506 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9507 cat >>confdefs.h <<_ACEOF
9508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9509 _ACEOF
9513 done
9515 for ac_header in execinfo.h bits/wordsize.h
9516 do :
9517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9518 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9519 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9520 cat >>confdefs.h <<_ACEOF
9521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9522 _ACEOF
9526 done
9528 for ac_header in iptypes.h
9529 do :
9530 ac_fn_c_check_header_compile "$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9532 if test "x$ac_cv_header_iptypes_h" = xyes; then :
9533 cat >>confdefs.h <<_ACEOF
9534 #define HAVE_IPTYPES_H 1
9535 _ACEOF
9539 done
9541 for ac_header in iphlpapi.h
9542 do :
9543 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9545 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
9546 cat >>confdefs.h <<_ACEOF
9547 #define HAVE_IPHLPAPI_H 1
9548 _ACEOF
9552 done
9554 for ac_header in fts.h libzfs.h
9555 do :
9556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9557 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9559 cat >>confdefs.h <<_ACEOF
9560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9561 _ACEOF
9565 done
9567 for ac_header in sys/statvfs.h sys/statfs.h sys/mount.h
9568 do :
9569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9570 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9572 cat >>confdefs.h <<_ACEOF
9573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9574 _ACEOF
9578 done
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9582 $as_echo_n "checking for sys/endian.h ... " >&6; }
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9586 #include <sys/endian.h>
9589 main ()
9594 return 0;
9596 _ACEOF
9597 if ac_fn_c_try_compile "$LINENO"; then :
9599 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9601 $as_echo "yes" >&6; }
9602 else
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9609 $as_echo_n "checking for machine/endian.h ... " >&6; }
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9613 #include <machine/endian.h>
9616 main ()
9621 return 0;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"; then :
9626 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9636 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9640 #include <standards.h>
9641 #include <sys/endian.h>
9644 main ()
9649 return 0;
9651 _ACEOF
9652 if ac_fn_c_try_compile "$LINENO"; then :
9654 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9656 $as_echo "yes" >&6; }
9657 else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9664 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9665 if ${ac_cv_c_const+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9672 main ()
9675 #ifndef __cplusplus
9676 /* Ultrix mips cc rejects this sort of thing. */
9677 typedef int charset[2];
9678 const charset cs = { 0, 0 };
9679 /* SunOS 4.1.1 cc rejects this. */
9680 char const *const *pcpcc;
9681 char **ppc;
9682 /* NEC SVR4.0.2 mips cc rejects this. */
9683 struct point {int x, y;};
9684 static struct point const zero = {0,0};
9685 /* AIX XL C 1.02.0.0 rejects this.
9686 It does not let you subtract one const X* pointer from another in
9687 an arm of an if-expression whose if-part is not a constant
9688 expression */
9689 const char *g = "string";
9690 pcpcc = &g + (g ? g-g : 0);
9691 /* HPUX 7.0 cc rejects these. */
9692 ++pcpcc;
9693 ppc = (char**) pcpcc;
9694 pcpcc = (char const *const *) ppc;
9695 { /* SCO 3.2v4 cc rejects this sort of thing. */
9696 char tx;
9697 char *t = &tx;
9698 char const *s = 0 ? (char *) 0 : (char const *) 0;
9700 *t++ = 0;
9701 if (s) return 0;
9703 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9704 int x[] = {25, 17};
9705 const int *foo = &x[0];
9706 ++foo;
9708 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9709 typedef const int *iptr;
9710 iptr p = 0;
9711 ++p;
9713 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9714 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9715 struct s { int j; const int *ap[3]; } bx;
9716 struct s *b = &bx; b->j = 5;
9718 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9719 const int foo = 10;
9720 if (!foo) return 0;
9722 return !cs[0] && !zero.x;
9723 #endif
9726 return 0;
9728 _ACEOF
9729 if ac_fn_c_try_compile "$LINENO"; then :
9730 ac_cv_c_const=yes
9731 else
9732 ac_cv_c_const=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9737 $as_echo "$ac_cv_c_const" >&6; }
9738 if test $ac_cv_c_const = no; then
9740 $as_echo "#define const /**/" >>confdefs.h
9744 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9745 if test "x$ac_cv_type_off_t" = xyes; then :
9747 else
9749 cat >>confdefs.h <<_ACEOF
9750 #define off_t long int
9751 _ACEOF
9755 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9756 if test "x$ac_cv_type_pid_t" = xyes; then :
9758 else
9760 cat >>confdefs.h <<_ACEOF
9761 #define pid_t int
9762 _ACEOF
9766 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9767 if test "x$ac_cv_type_size_t" = xyes; then :
9769 else
9771 cat >>confdefs.h <<_ACEOF
9772 #define size_t unsigned int
9773 _ACEOF
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9778 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9779 if ${ac_cv_header_time+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 #include <sys/types.h>
9785 #include <sys/time.h>
9786 #include <time.h>
9789 main ()
9791 if ((struct tm *) 0)
9792 return 0;
9794 return 0;
9796 _ACEOF
9797 if ac_fn_c_try_compile "$LINENO"; then :
9798 ac_cv_header_time=yes
9799 else
9800 ac_cv_header_time=no
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9805 $as_echo "$ac_cv_header_time" >&6; }
9806 if test $ac_cv_header_time = yes; then
9808 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9813 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9814 if ${ac_cv_struct_tm+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 #include <sys/types.h>
9820 #include <time.h>
9823 main ()
9825 struct tm tm;
9826 int *p = &tm.tm_sec;
9827 return !p;
9829 return 0;
9831 _ACEOF
9832 if ac_fn_c_try_compile "$LINENO"; then :
9833 ac_cv_struct_tm=time.h
9834 else
9835 ac_cv_struct_tm=sys/time.h
9837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9840 $as_echo "$ac_cv_struct_tm" >&6; }
9841 if test $ac_cv_struct_tm = sys/time.h; then
9843 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9848 $as_echo_n "checking for inline... " >&6; }
9849 if ${ac_cv_c_inline+:} false; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 ac_cv_c_inline=no
9853 for ac_kw in inline __inline__ __inline; do
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9856 #ifndef __cplusplus
9857 typedef int foo_t;
9858 static $ac_kw foo_t static_foo () {return 0; }
9859 $ac_kw foo_t foo () {return 0; }
9860 #endif
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"; then :
9864 ac_cv_c_inline=$ac_kw
9866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9867 test "$ac_cv_c_inline" != no && break
9868 done
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9872 $as_echo "$ac_cv_c_inline" >&6; }
9874 case $ac_cv_c_inline in
9875 inline | yes) ;;
9877 case $ac_cv_c_inline in
9878 no) ac_val=;;
9879 *) ac_val=$ac_cv_c_inline;;
9880 esac
9881 cat >>confdefs.h <<_ACEOF
9882 #ifndef __cplusplus
9883 #define inline $ac_val
9884 #endif
9885 _ACEOF
9887 esac
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9891 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9892 if ${ac_cv_lib_regex_regcomp+:} false; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 ac_check_lib_save_LIBS=$LIBS
9896 LIBS="-lregex $LIBS"
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 char regcomp ();
9908 main ()
9910 return regcomp ();
9912 return 0;
9914 _ACEOF
9915 if ac_fn_c_try_link "$LINENO"; then :
9916 ac_cv_lib_regex_regcomp=yes
9917 else
9918 ac_cv_lib_regex_regcomp=no
9920 rm -f core conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9925 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9926 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
9927 cat >>confdefs.h <<_ACEOF
9928 #define HAVE_LIBREGEX 1
9929 _ACEOF
9931 LIBS="-lregex $LIBS"
9935 lib_for_regex=""
9936 if test $ac_cv_lib_regex_regcomp = yes
9937 then
9938 lib_for_regex="-lregex"
9943 pkg_failed=no
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9945 $as_echo_n "checking for ncurses... " >&6; }
9947 if test -n "$ncurses_CFLAGS"; then
9948 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
9949 elif test -n "$PKG_CONFIG"; then
9950 if test -n "$PKG_CONFIG" && \
9951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9952 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9953 ac_status=$?
9954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9955 test $ac_status = 0; }; then
9956 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9957 test "x$?" != "x0" && pkg_failed=yes
9958 else
9959 pkg_failed=yes
9961 else
9962 pkg_failed=untried
9964 if test -n "$ncurses_LIBS"; then
9965 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
9966 elif test -n "$PKG_CONFIG"; then
9967 if test -n "$PKG_CONFIG" && \
9968 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9969 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9970 ac_status=$?
9971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9972 test $ac_status = 0; }; then
9973 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9974 test "x$?" != "x0" && pkg_failed=yes
9975 else
9976 pkg_failed=yes
9978 else
9979 pkg_failed=untried
9984 if test $pkg_failed = yes; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9988 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9989 _pkg_short_errors_supported=yes
9990 else
9991 _pkg_short_errors_supported=no
9993 if test $_pkg_short_errors_supported = yes; then
9994 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9995 else
9996 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9998 # Put the nasty error message in config.log where it belongs
9999 echo "$ncurses_PKG_ERRORS" >&5
10001 have_ncurses=false
10002 elif test $pkg_failed = untried; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 $as_echo "no" >&6; }
10005 have_ncurses=false
10006 else
10007 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
10008 ncurses_LIBS=$pkg_cv_ncurses_LIBS
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10010 $as_echo "yes" >&6; }
10011 have_ncurses=true
10013 HAVE_NCURSES=$have_ncurses
10017 pkg_failed=no
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10019 $as_echo_n "checking for SYSTEMD... " >&6; }
10021 if test -n "$SYSTEMD_CFLAGS"; then
10022 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10023 elif test -n "$PKG_CONFIG"; then
10024 if test -n "$PKG_CONFIG" && \
10025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10026 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10027 ac_status=$?
10028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10029 test $ac_status = 0; }; then
10030 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
10031 test "x$?" != "x0" && pkg_failed=yes
10032 else
10033 pkg_failed=yes
10035 else
10036 pkg_failed=untried
10038 if test -n "$SYSTEMD_LIBS"; then
10039 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10040 elif test -n "$PKG_CONFIG"; then
10041 if test -n "$PKG_CONFIG" && \
10042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10043 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10044 ac_status=$?
10045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10046 test $ac_status = 0; }; then
10047 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
10048 test "x$?" != "x0" && pkg_failed=yes
10049 else
10050 pkg_failed=yes
10052 else
10053 pkg_failed=untried
10058 if test $pkg_failed = yes; then
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10062 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10063 _pkg_short_errors_supported=yes
10064 else
10065 _pkg_short_errors_supported=no
10067 if test $_pkg_short_errors_supported = yes; then
10068 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
10069 else
10070 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
10072 # Put the nasty error message in config.log where it belongs
10073 echo "$SYSTEMD_PKG_ERRORS" >&5
10075 pmda_systemd=false
10076 elif test $pkg_failed = untried; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10079 pmda_systemd=false
10080 else
10081 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10082 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10084 $as_echo "yes" >&6; }
10085 pmda_systemd=true
10087 if $pmda_systemd
10088 then
10090 else
10092 pkg_failed=no
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10094 $as_echo_n "checking for SYSTEMD... " >&6; }
10096 if test -n "$SYSTEMD_CFLAGS"; then
10097 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10098 elif test -n "$PKG_CONFIG"; then
10099 if test -n "$PKG_CONFIG" && \
10100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10101 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10102 ac_status=$?
10103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10104 test $ac_status = 0; }; then
10105 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
10106 test "x$?" != "x0" && pkg_failed=yes
10107 else
10108 pkg_failed=yes
10110 else
10111 pkg_failed=untried
10113 if test -n "$SYSTEMD_LIBS"; then
10114 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10115 elif test -n "$PKG_CONFIG"; then
10116 if test -n "$PKG_CONFIG" && \
10117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10118 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10119 ac_status=$?
10120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10121 test $ac_status = 0; }; then
10122 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
10123 test "x$?" != "x0" && pkg_failed=yes
10124 else
10125 pkg_failed=yes
10127 else
10128 pkg_failed=untried
10133 if test $pkg_failed = yes; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10138 _pkg_short_errors_supported=yes
10139 else
10140 _pkg_short_errors_supported=no
10142 if test $_pkg_short_errors_supported = yes; then
10143 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10144 else
10145 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10147 # Put the nasty error message in config.log where it belongs
10148 echo "$SYSTEMD_PKG_ERRORS" >&5
10150 pmda_systemd=false
10151 elif test $pkg_failed = untried; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10154 pmda_systemd=false
10155 else
10156 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10157 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159 $as_echo "yes" >&6; }
10160 pmda_systemd=true
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
10164 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
10165 PMDA_SYSTEMD=$pmda_systemd
10167 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10168 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }; fi
10171 pmda_infiniband=false
10172 if test "x$do_infiniband" != "xno"; then :
10174 for ac_header in infiniband/umad.h
10175 do :
10176 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10177 if test "x$ac_cv_header_infiniband_umad_h" = xyes; then :
10178 cat >>confdefs.h <<_ACEOF
10179 #define HAVE_INFINIBAND_UMAD_H 1
10180 _ACEOF
10182 for ac_header in infiniband/mad.h
10183 do :
10184 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10185 if test "x$ac_cv_header_infiniband_mad_h" = xyes; then :
10186 cat >>confdefs.h <<_ACEOF
10187 #define HAVE_INFINIBAND_MAD_H 1
10188 _ACEOF
10189 pmda_infiniband=true
10192 done
10197 done
10199 savedLIBS=$LIBS
10200 IB_LIBS=""
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10202 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10203 if ${ac_cv_lib_ibmad_madrpc_init+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-libmad $LIBS"
10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 char madrpc_init ();
10219 main ()
10221 return madrpc_init ();
10223 return 0;
10225 _ACEOF
10226 if ac_fn_c_try_link "$LINENO"; then :
10227 ac_cv_lib_ibmad_madrpc_init=yes
10228 else
10229 ac_cv_lib_ibmad_madrpc_init=no
10231 rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_lib_save_LIBS
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10236 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10237 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes; then :
10238 cat >>confdefs.h <<_ACEOF
10239 #define HAVE_LIBIBMAD 1
10240 _ACEOF
10242 LIBS="-libmad $LIBS"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10247 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10248 if ${ac_cv_lib_ibumad_umad_init+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 ac_check_lib_save_LIBS=$LIBS
10252 LIBS="-libumad $LIBS"
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char umad_init ();
10264 main ()
10266 return umad_init ();
10268 return 0;
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272 ac_cv_lib_ibumad_umad_init=yes
10273 else
10274 ac_cv_lib_ibumad_umad_init=no
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10281 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10282 if test "x$ac_cv_lib_ibumad_umad_init" = xyes; then :
10283 cat >>confdefs.h <<_ACEOF
10284 #define HAVE_LIBIBUMAD 1
10285 _ACEOF
10287 LIBS="-libumad $LIBS"
10291 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10292 then
10293 IB_LIBS="-libmad -libumad"
10294 LIBS="$IB_LIBS"
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10296 $as_echo_n "checking for port_performance_query_via... " >&6; }
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 char port_performance_query_via ();
10308 main ()
10310 return port_performance_query_via ();
10312 return 0;
10314 _ACEOF
10315 if ac_fn_c_try_link "$LINENO"; then :
10317 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10319 have_port_performance_query_via=true
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10321 $as_echo "yes" >&6; }
10322 else
10323 have_port_performance_query_via=false
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10330 $as_echo_n "checking for pma_query_via... " >&6; }
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10334 /* Override any GCC internal prototype to avoid an error.
10335 Use char because int might match the return type of a GCC
10336 builtin and then its argument prototype would still apply. */
10337 #ifdef __cplusplus
10338 extern "C"
10339 #endif
10340 char pma_query_via ();
10342 main ()
10344 return pma_query_via ();
10346 return 0;
10348 _ACEOF
10349 if ac_fn_c_try_link "$LINENO"; then :
10351 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10353 have_pma_query_via=true
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10355 $as_echo "yes" >&6; }
10356 else
10357 have_pma_query_via=false
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10361 rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
10363 LIBS=$savedLIBS
10364 if test $have_pma_query_via -o $have_port_performance_query_via
10365 then
10367 else
10368 pmda_infiniband=false
10370 else
10371 pmda_infiniband=false
10373 LIBS=$savedLIBS
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10378 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10379 PMDA_INFINIBAND=$pmda_infiniband
10381 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10382 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }; fi
10385 pmda_papi=false
10386 if test "x$do_papi" != "xno"; then :
10388 enable_papi=true
10390 saved_LDFLAGS="$LDFLAGS"
10391 saved_CFLAGS="$CFLAGS"
10392 savedLIBS=$LIBS
10394 CFLAGS="$papi_CFLAGS"
10395 LDFLAGS="$papi_LIBS"
10397 case "$do_papi" in
10398 yes|no|check)
10400 */*)
10401 PAPI_ROOTDIR=$do_papi;
10402 CFLAGS="-I$PAPI_ROOTDIR/include"
10403 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10407 pkg_failed=no
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10409 $as_echo_n "checking for papi... " >&6; }
10411 if test -n "$papi_CFLAGS"; then
10412 pkg_cv_papi_CFLAGS="$papi_CFLAGS"
10413 elif test -n "$PKG_CONFIG"; then
10414 if test -n "$PKG_CONFIG" && \
10415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10416 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10417 ac_status=$?
10418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10419 test $ac_status = 0; }; then
10420 pkg_cv_papi_CFLAGS=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10421 test "x$?" != "x0" && pkg_failed=yes
10422 else
10423 pkg_failed=yes
10425 else
10426 pkg_failed=untried
10428 if test -n "$papi_LIBS"; then
10429 pkg_cv_papi_LIBS="$papi_LIBS"
10430 elif test -n "$PKG_CONFIG"; then
10431 if test -n "$PKG_CONFIG" && \
10432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10433 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10434 ac_status=$?
10435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10436 test $ac_status = 0; }; then
10437 pkg_cv_papi_LIBS=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10438 test "x$?" != "x0" && pkg_failed=yes
10439 else
10440 pkg_failed=yes
10442 else
10443 pkg_failed=untried
10448 if test $pkg_failed = yes; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }
10452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10453 _pkg_short_errors_supported=yes
10454 else
10455 _pkg_short_errors_supported=no
10457 if test $_pkg_short_errors_supported = yes; then
10458 papi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10459 else
10460 papi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10462 # Put the nasty error message in config.log where it belongs
10463 echo "$papi_PKG_ERRORS" >&5
10465 as_fn_error $? "Package requirements ($do_papi) were not met:
10467 $papi_PKG_ERRORS
10469 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10470 installed software in a non-standard prefix.
10472 Alternatively, you may set the environment variables papi_CFLAGS
10473 and papi_LIBS to avoid the need to call pkg-config.
10474 See the pkg-config man page for more details." "$LINENO" 5
10475 elif test $pkg_failed = untried; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10480 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10481 is in your PATH or set the PKG_CONFIG environment variable to the full
10482 path to pkg-config.
10484 Alternatively, you may set the environment variables papi_CFLAGS
10485 and papi_LIBS to avoid the need to call pkg-config.
10486 See the pkg-config man page for more details.
10488 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10489 See \`config.log' for more details" "$LINENO" 5; }
10490 else
10491 papi_CFLAGS=$pkg_cv_papi_CFLAGS
10492 papi_LIBS=$pkg_cv_papi_LIBS
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10494 $as_echo "yes" >&6; }
10496 CFLAGS="$papi_CFLAGS"
10497 LDFLAGS="$papi_LIBS"
10500 esac
10502 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10504 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10505 if ${ac_cv_lib_papi_PAPI_library_init+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 ac_check_lib_save_LIBS=$LIBS
10509 LIBS="-lpapi $LIBS"
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10513 /* Override any GCC internal prototype to avoid an error.
10514 Use char because int might match the return type of a GCC
10515 builtin and then its argument prototype would still apply. */
10516 #ifdef __cplusplus
10517 extern "C"
10518 #endif
10519 char PAPI_library_init ();
10521 main ()
10523 return PAPI_library_init ();
10525 return 0;
10527 _ACEOF
10528 if ac_fn_c_try_link "$LINENO"; then :
10529 ac_cv_lib_papi_PAPI_library_init=yes
10530 else
10531 ac_cv_lib_papi_PAPI_library_init=no
10533 rm -f core conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10535 LIBS=$ac_check_lib_save_LIBS
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10538 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10539 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes; then :
10540 papi_libs="$LDFLAGS -lpapi"
10541 else
10542 enable_papi=false
10545 for ac_header in papi.h
10546 do :
10547 ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10548 if test "x$ac_cv_header_papi_h" = xyes; then :
10549 cat >>confdefs.h <<_ACEOF
10550 #define HAVE_PAPI_H 1
10551 _ACEOF
10552 papi_cflags="$CFLAGS"
10553 else
10554 enable_papi=false
10557 done
10559 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10560 then
10561 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10562 else
10563 pmda_papi=$enable_papi
10565 LIBS=$savedLIBS
10566 CFLAGS="$saved_CFLAGS"
10567 LDFLAGS="$saved_LDFLAGS"
10568 PAPI_CFLAGS=$papi_cflags
10570 PAPI_LIBS=$papi_libs
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10575 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10576 PMDA_PAPI=$pmda_papi
10578 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10579 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }; fi
10582 if test "x$pmda_papi" = "xtrue"; then :
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10585 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10586 cat <<End-of-File >conftest.c
10587 #include <papi.h>
10588 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10589 End-of-File
10590 (eval $ac_compile) 2>conftest.out
10591 cat conftest.out >&5
10592 if test -s conftest.out
10593 then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10596 else
10598 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10601 $as_echo "yes" >&6; }
10604 rm -f conftest.*
10608 pmda_perfevent=false
10609 if test "x$do_perfevent" != "xno" ; then :
10611 enable_perfevent=true
10613 savedLIBS=$LIBS
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10615 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10616 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-lpfm $LIBS"
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10624 /* Override any GCC internal prototype to avoid an error.
10625 Use char because int might match the return type of a GCC
10626 builtin and then its argument prototype would still apply. */
10627 #ifdef __cplusplus
10628 extern "C"
10629 #endif
10630 char pfm_get_os_event_encoding ();
10632 main ()
10634 return pfm_get_os_event_encoding ();
10636 return 0;
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10641 else
10642 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LIBS=$ac_check_lib_save_LIBS
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10649 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10650 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes; then :
10651 pfm_libs="-lpfm"
10652 else
10653 enable_perfevent=false
10656 for ac_header in perfmon/pfmlib_perf_event.h
10657 do :
10658 ac_fn_c_check_header_mongrel "$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10659 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes; then :
10660 cat >>confdefs.h <<_ACEOF
10661 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10662 _ACEOF
10664 else
10665 enable_perfevent=false
10668 done
10670 if test "$do_perfevent" != "check" -a "$enable_perfevent" != "true"
10671 then
10672 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10673 else
10674 pmda_perfevent=$enable_perfevent
10676 LIBS=$savedLIBS
10677 PFM_LIBS=$pfm_libs
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10682 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10683 PMDA_PERFEVENT=$pmda_perfevent
10685 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10686 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; }; fi
10689 pmda_rpm=false
10690 savedLIBS=$LIBS
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10692 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 #include <rpm/header.h>
10697 main ()
10699 (void)HEADERGET_EXT;
10701 return 0;
10703 _ACEOF
10704 if ac_fn_c_try_compile "$LINENO"; then :
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10706 $as_echo "yes" >&6; }
10707 pmda_rpm=true
10708 else
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10714 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10715 PMDA_RPM=$pmda_rpm
10717 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10718 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }; fi
10720 LIBS=$savedLIBS
10722 pmda_postfix=false
10723 for ac_prog in qshape
10725 # Extract the first word of "$ac_prog", so it can be a program name with args.
10726 set dummy $ac_prog; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if ${ac_cv_prog_QSHAPE+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 if test -n "$QSHAPE"; then
10733 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10734 else
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 as_dummy="path=$PATH:/usr/sbin"
10737 for as_dir in $as_dummy
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10743 ac_cv_prog_QSHAPE="$ac_prog"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10747 done
10748 done
10749 IFS=$as_save_IFS
10753 QSHAPE=$ac_cv_prog_QSHAPE
10754 if test -n "$QSHAPE"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10756 $as_echo "$QSHAPE" >&6; }
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10763 test -n "$QSHAPE" && break
10764 done
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10767 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10768 if test -n "$QSHAPE"
10769 then
10770 pmda_postfix=true
10771 else
10772 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10774 if test -f "$script"
10775 then
10776 pmda_postfix=true
10777 break
10779 done
10781 PMDA_POSTFIX=$pmda_postfix
10783 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10784 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }; fi
10788 pkg_failed=no
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10790 $as_echo_n "checking for libmicrohttpd... " >&6; }
10792 if test -n "$libmicrohttpd_CFLAGS"; then
10793 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
10794 elif test -n "$PKG_CONFIG"; then
10795 if test -n "$PKG_CONFIG" && \
10796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10797 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10798 ac_status=$?
10799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10800 test $ac_status = 0; }; then
10801 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10802 test "x$?" != "x0" && pkg_failed=yes
10803 else
10804 pkg_failed=yes
10806 else
10807 pkg_failed=untried
10809 if test -n "$libmicrohttpd_LIBS"; then
10810 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
10811 elif test -n "$PKG_CONFIG"; then
10812 if test -n "$PKG_CONFIG" && \
10813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10814 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10815 ac_status=$?
10816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10817 test $ac_status = 0; }; then
10818 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10819 test "x$?" != "x0" && pkg_failed=yes
10820 else
10821 pkg_failed=yes
10823 else
10824 pkg_failed=untried
10829 if test $pkg_failed = yes; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; }
10833 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10834 _pkg_short_errors_supported=yes
10835 else
10836 _pkg_short_errors_supported=no
10838 if test $_pkg_short_errors_supported = yes; then
10839 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10840 else
10841 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10843 # Put the nasty error message in config.log where it belongs
10844 echo "$libmicrohttpd_PKG_ERRORS" >&5
10846 have_libmicrohttpd=false
10847 elif test $pkg_failed = untried; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10850 have_libmicrohttpd=false
10851 else
10852 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
10853 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10855 $as_echo "yes" >&6; }
10856 have_libmicrohttpd=true
10858 HAVE_LIBMICROHTTPD=$have_libmicrohttpd
10862 pkg_failed=no
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10864 $as_echo_n "checking for cairo... " >&6; }
10866 if test -n "$cairo_CFLAGS"; then
10867 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
10868 elif test -n "$PKG_CONFIG"; then
10869 if test -n "$PKG_CONFIG" && \
10870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10871 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10872 ac_status=$?
10873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10874 test $ac_status = 0; }; then
10875 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10876 test "x$?" != "x0" && pkg_failed=yes
10877 else
10878 pkg_failed=yes
10880 else
10881 pkg_failed=untried
10883 if test -n "$cairo_LIBS"; then
10884 pkg_cv_cairo_LIBS="$cairo_LIBS"
10885 elif test -n "$PKG_CONFIG"; then
10886 if test -n "$PKG_CONFIG" && \
10887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10888 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10889 ac_status=$?
10890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10891 test $ac_status = 0; }; then
10892 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10893 test "x$?" != "x0" && pkg_failed=yes
10894 else
10895 pkg_failed=yes
10897 else
10898 pkg_failed=untried
10903 if test $pkg_failed = yes; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10908 _pkg_short_errors_supported=yes
10909 else
10910 _pkg_short_errors_supported=no
10912 if test $_pkg_short_errors_supported = yes; then
10913 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10914 else
10915 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10917 # Put the nasty error message in config.log where it belongs
10918 echo "$cairo_PKG_ERRORS" >&5
10920 have_cairo=false
10921 elif test $pkg_failed = untried; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10924 have_cairo=false
10925 else
10926 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
10927 cairo_LIBS=$pkg_cv_cairo_LIBS
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10929 $as_echo "yes" >&6; }
10930 have_cairo=true
10932 HAVE_CAIRO=$have_cairo
10935 enable_webapi=false
10936 if test "x$do_webapi" != "xno"; then :
10938 enable_webapi=true
10940 if test "$have_libmicrohttpd" != "true"
10941 then
10942 enable_webapi=false
10943 test "$do_webapi" != "check" && \
10944 as_fn_error $? "libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10945 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10946 then
10947 enable_webapi=false
10948 test "$do_webapi" != "check" && \
10949 as_fn_error $? "C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10955 enable_manager=false
10956 if test "x$do_manager" != "xno"; then :
10958 enable_manager=true
10960 if test "$target_os" = "mingw"
10961 then
10962 enable_manager=false
10963 test "$do_manager" != "check" && \
10964 as_fn_error $? "MinGW build, cannot enable daemon manager" "$LINENO" 5
10965 elif test "x$cxx" = "x"
10966 then
10967 enable_manager=false
10968 test "$do_manager" != "check" && \
10969 as_fn_error $? "C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10972 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10975 #ifndef _XOPEN_SOURCE
10976 #define _XOPEN_SOURCE 600
10977 #endif
10978 #include <stdio.h>
10981 main ()
10985 return 0;
10987 _ACEOF
10988 if ac_fn_c_try_compile "$LINENO"; then :
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10990 $as_echo "yes" >&6; }
10991 else
10992 enable_manager=false
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11002 $as_echo_n "checking return type of signal handlers... " >&6; }
11003 if ${ac_cv_type_signal+:} false; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 #include <sys/types.h>
11009 #include <signal.h>
11012 main ()
11014 return *(signal (0, 0)) (0) == 1;
11016 return 0;
11018 _ACEOF
11019 if ac_fn_c_try_compile "$LINENO"; then :
11020 ac_cv_type_signal=int
11021 else
11022 ac_cv_type_signal=void
11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11027 $as_echo "$ac_cv_type_signal" >&6; }
11029 cat >>confdefs.h <<_ACEOF
11030 #define RETSIGTYPE $ac_cv_type_signal
11031 _ACEOF
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
11035 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
11036 if ${ac_cv_func_wait3_rusage+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 if test "$cross_compiling" = yes; then :
11040 ac_cv_func_wait3_rusage=no
11041 else
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044 $ac_includes_default
11045 #include <sys/time.h>
11046 #include <sys/resource.h>
11047 #include <sys/wait.h>
11048 /* HP-UX has wait3 but does not fill in rusage at all. */
11050 main ()
11052 struct rusage r;
11053 int i;
11054 /* Use a field that we can force nonzero --
11055 voluntary context switches.
11056 For systems like NeXT and OSF/1 that don't set it,
11057 also use the system CPU time. And page faults (I/O) for Linux. */
11058 r.ru_nvcsw = 0;
11059 r.ru_stime.tv_sec = 0;
11060 r.ru_stime.tv_usec = 0;
11061 r.ru_majflt = r.ru_minflt = 0;
11062 switch (fork ())
11064 case 0: /* Child. */
11065 sleep(1); /* Give up the CPU. */
11066 _exit(0);
11067 break;
11068 case -1: /* What can we do? */
11069 _exit(0);
11070 break;
11071 default: /* Parent. */
11072 wait3(&i, 0, &r);
11073 /* Avoid "text file busy" from rm on fast HP-UX machines. */
11074 sleep(2);
11075 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
11076 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
11079 _ACEOF
11080 if ac_fn_c_try_run "$LINENO"; then :
11081 ac_cv_func_wait3_rusage=yes
11082 else
11083 ac_cv_func_wait3_rusage=no
11085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11086 conftest.$ac_objext conftest.beam conftest.$ac_ext
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
11091 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
11092 if test $ac_cv_func_wait3_rusage = yes; then
11094 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
11098 for ac_func in vprintf
11099 do :
11100 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11101 if test "x$ac_cv_func_vprintf" = xyes; then :
11102 cat >>confdefs.h <<_ACEOF
11103 #define HAVE_VPRINTF 1
11104 _ACEOF
11106 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11107 if test "x$ac_cv_func__doprnt" = xyes; then :
11109 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11114 done
11117 for ac_func in mktime nanosleep usleep unsetenv
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 select socket gethostname getpeerucred getpeereid
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 uname syslog __clone pipe2 fcntl ioctl
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 prctl setlinebuf waitpid atexit kill
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 chown fchmod getcwd scandir mkstemp
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 brk sbrk posix_memalign memalign valloc
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 signal sighold sigrelse tcgetattr
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 regex regcmp regexec regcomp
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 strtod strtol strtoll strtoull strndup strchrnul
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 getuid getgid
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 getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
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 getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
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
11261 for ac_func in sysinfo trace_back_stack backtrace
11262 do :
11263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11264 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11265 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11266 cat >>confdefs.h <<_ACEOF
11267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11268 _ACEOF
11271 done
11273 for ac_func in sendmsg recvmsg setns
11274 do :
11275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11277 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11278 cat >>confdefs.h <<_ACEOF
11279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11280 _ACEOF
11283 done
11286 if test $target_os != linux -a $target_os != freebsd -a $target_os != kfreebsd -a $target_os != netbsd; then
11287 for ac_func in readdir64
11288 do :
11289 ac_fn_c_check_func "$LINENO" "readdir64" "ac_cv_func_readdir64"
11290 if test "x$ac_cv_func_readdir64" = xyes; then :
11291 cat >>confdefs.h <<_ACEOF
11292 #define HAVE_READDIR64 1
11293 _ACEOF
11296 done
11300 if test $target_os = solaris
11301 then
11302 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11303 if test "x$ac_cv_type___int32_t" = xyes; then :
11305 else
11307 cat >>confdefs.h <<_ACEOF
11308 #define __int32_t int32_t
11309 _ACEOF
11313 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11314 if test "x$ac_cv_type___uint32_t" = xyes; then :
11316 else
11318 cat >>confdefs.h <<_ACEOF
11319 #define __uint32_t uint32_t
11320 _ACEOF
11324 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11325 if test "x$ac_cv_type___int64_t" = xyes; then :
11327 else
11329 cat >>confdefs.h <<_ACEOF
11330 #define __int64_t int64_t
11331 _ACEOF
11335 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11336 if test "x$ac_cv_type___uint64_t" = xyes; then :
11338 else
11340 cat >>confdefs.h <<_ACEOF
11341 #define __uint64_t uint64_t
11342 _ACEOF
11346 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11347 if test "x$ac_cv_type_uint_t" = xyes; then :
11349 else
11351 cat >>confdefs.h <<_ACEOF
11352 #define uint_t u_int32_t
11353 _ACEOF
11357 else
11358 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11359 if test "x$ac_cv_type___int32_t" = xyes; then :
11361 else
11363 cat >>confdefs.h <<_ACEOF
11364 #define __int32_t int
11365 _ACEOF
11369 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11370 if test "x$ac_cv_type___uint32_t" = xyes; then :
11372 else
11374 cat >>confdefs.h <<_ACEOF
11375 #define __uint32_t unsigned int
11376 _ACEOF
11380 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11381 if test "x$ac_cv_type___int64_t" = xyes; then :
11383 else
11385 cat >>confdefs.h <<_ACEOF
11386 #define __int64_t long long
11387 _ACEOF
11391 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11392 if test "x$ac_cv_type___uint64_t" = xyes; then :
11394 else
11396 cat >>confdefs.h <<_ACEOF
11397 #define __uint64_t unsigned long long
11398 _ACEOF
11402 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11403 if test "x$ac_cv_type_uint_t" = xyes; then :
11405 else
11407 cat >>confdefs.h <<_ACEOF
11408 #define uint_t unsigned int
11409 _ACEOF
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11416 $as_echo_n "checking for __psint_t ... " >&6; }
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11420 #include <sys/types.h>
11421 #include <stdlib.h>
11422 #include <stddef.h>
11425 main ()
11427 __psint_t psint;
11429 return 0;
11431 _ACEOF
11432 if ac_fn_c_try_compile "$LINENO"; then :
11434 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11436 $as_echo "yes" >&6; }
11437 else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11444 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11448 #include <stddef.h>
11449 #ifdef HAVE_MALLOC_H
11450 #include <malloc.h>
11451 #endif
11454 main ()
11456 ptrdiff_t ptrdiff;
11458 return 0;
11460 _ACEOF
11461 if ac_fn_c_try_compile "$LINENO"; then :
11463 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11465 $as_echo "yes" >&6; }
11466 else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11473 $as_echo_n "checking for uid_t ... " >&6; }
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11477 #include <sys/types.h>
11478 #ifdef HAVE_PWD_H
11479 #include <pwd.h>
11480 #endif
11483 main ()
11485 uid_t uid;
11487 return 0;
11489 _ACEOF
11490 if ac_fn_c_try_compile "$LINENO"; then :
11492 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11494 $as_echo "yes" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11501 $as_echo_n "checking for gid_t ... " >&6; }
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 #include <sys/types.h>
11506 #ifdef HAVE_GRP_H
11507 #include <grp.h>
11508 #endif
11511 main ()
11513 gid_t gid;
11515 return 0;
11517 _ACEOF
11518 if ac_fn_c_try_compile "$LINENO"; then :
11520 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11522 $as_echo "yes" >&6; }
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11529 $as_echo_n "checking for SID ... " >&6; }
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11533 #ifdef HAVE_WINDOWS_H
11534 #include <windows.h>
11535 #endif
11538 main ()
11540 SID sid;
11542 return 0;
11544 _ACEOF
11545 if ac_fn_c_try_compile "$LINENO"; then :
11547 $as_echo "#define HAVE_SID 1" >>confdefs.h
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11549 $as_echo "yes" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11557 $as_echo_n "checking for socklen_t ... " >&6; }
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 #include <sys/types.h>
11562 #ifdef HAVE_SYS_SOCKET_H
11563 #include <sys/socket.h>
11564 #endif
11567 main ()
11569 socklen_t len;
11571 return 0;
11573 _ACEOF
11574 if ac_fn_c_try_compile "$LINENO"; then :
11576 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11578 $as_echo "yes" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11588 #include <stdio.h>
11591 main ()
11593 long long x = 0LL;
11595 return 0;
11597 _ACEOF
11598 if ac_fn_c_try_compile "$LINENO"; then :
11600 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11608 #include <stdlib.h>
11609 #include <unistd.h>
11612 main ()
11614 char **x = _environ;
11616 return 0;
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11621 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11628 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11632 #ifdef HAVE_SYS_PRCTL_H
11633 #include <sys/prctl.h>
11634 #endif
11637 main ()
11639 int i = PR_TERMCHILD;
11641 return 0;
11643 _ACEOF
11644 if ac_fn_c_try_compile "$LINENO"; then :
11646 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11656 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11660 #ifdef HAVE_SYS_PRCTL_H
11661 #include <sys/prctl.h>
11662 #endif
11665 main ()
11667 int i = PR_SET_PDEATHSIG;
11669 return 0;
11671 _ACEOF
11672 if ac_fn_c_try_compile "$LINENO"; then :
11674 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676 $as_echo "yes" >&6; }
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11684 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11685 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 #include <sys/types.h>
11691 #include <termios.h>
11692 #ifdef TIOCGWINSZ
11694 #endif
11696 _ACEOF
11697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11698 $EGREP "yes" >/dev/null 2>&1; then :
11699 ac_cv_sys_tiocgwinsz_in_termios_h=yes
11700 else
11701 ac_cv_sys_tiocgwinsz_in_termios_h=no
11703 rm -f conftest*
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11707 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11709 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11711 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11712 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11717 #include <sys/types.h>
11718 #include <sys/ioctl.h>
11719 #ifdef TIOCGWINSZ
11721 #endif
11723 _ACEOF
11724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11725 $EGREP "yes" >/dev/null 2>&1; then :
11726 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
11727 else
11728 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11730 rm -f conftest*
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11734 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11736 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11738 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11745 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11746 save_CFLAGS="$CFLAGS"
11747 CFLAGS="-rdynamic"
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11752 main ()
11756 return 0;
11758 _ACEOF
11759 if ac_fn_c_try_link "$LINENO"; then :
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11762 rdynamic_flag=-rdynamic
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11766 rdynamic_flag=
11769 rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771 CFLAGS="$save_CFLAGS"
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11776 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11777 cat <<End-of-File >conftest.c
11778 #include <stdlib.h>
11779 #include <unistd.h>
11780 #include <dirent.h>
11781 static int
11782 my_select(const struct dirent *foo) { return 0; }
11783 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11784 End-of-File
11785 (eval $ac_compile) 2>conftest.out
11786 cat conftest.out >&5
11787 if test -s conftest.out
11788 then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11791 else
11793 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796 $as_echo "yes" >&6; }
11798 rm -f conftest.*
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11801 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11802 cat <<End-of-File >conftest.c
11803 #include <stdlib.h>
11804 #include <unistd.h>
11805 #include <dirent.h>
11806 int main() { struct dirent d; d.d_off = 0; }
11807 End-of-File
11808 (eval $ac_compile) 2>conftest.out
11809 cat conftest.out >&5
11810 if test -s conftest.out
11811 then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11814 else
11816 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11819 $as_echo "yes" >&6; }
11821 rm -f conftest.*
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11824 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11825 if test "$cross_compiling" = "yes"; then
11826 ans=$printf_p_prefix
11827 echo "cross-compile -> \"$ans\"" >&5
11828 else
11829 cat <<End-of-File >conftest.c
11830 #include <stdio.h>
11831 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11832 End-of-File
11833 (eval $ac_compile) 2>&5
11834 (eval $ac_link) 2>&5
11835 ans=`./conftest`
11836 echo "./conftest -> \"$ans\"" >&5
11838 case "$ans"
11840 0x*)
11842 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11845 $as_echo "yes" >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11851 esac
11852 rm -rf conftest conftest.*
11854 _do_type()
11856 # need to deal with this sort of cpp output ...
11857 # typedef long pid_t;
11858 # typedef unsigned int pid_t;
11859 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11860 # __extension__ typedef int pid_t;
11861 # typedef foo_t
11862 # pid_t;
11863 # typedef struct {
11864 # ....
11865 # } pid_t;
11866 # typedef ... *pid;
11867 # and chaining of the form
11868 # typedef long __pid_t;
11869 # typedef __pid_t pid_t;
11871 _raw=`$CPP conftest.c \
11872 | $SED \
11873 -e 's/[ ]__attribute__ ((.*));/;/' \
11874 -e 's/__extension__[ ][ ]*//' \
11875 | $AWK '
11876 /bozo/ { print; next }
11877 $1 == "typedef" { printf "%s",$0
11878 if ($NF ~ /;$/) {
11879 print ""
11880 next
11882 wantsemi = 1
11883 if ($0 ~ /{/) depth = 1
11884 next
11886 wantsemi == 1 { printf " %s",$0
11887 if ($0 ~ /{/) depth++
11888 if (depth) {
11889 if ($0 ~ /}/) depth--
11890 if (depth > 0) next
11892 if ($NF ~ /;$/) {
11893 print ""
11894 wantsemi = 0
11895 next
11897 }' \
11898 | $SED \
11899 -e 's/\*/* /g' \
11900 -e 's/^[ ]*//' \
11901 -e 's/;[ ]*$//' \
11902 | $AWK '
11903 $1 == "typedef" { map[$NF] = ""
11904 for (i = 2; i < NF; i++) {
11905 if (i == 2)
11906 map[$NF] = $i
11907 else
11908 map[$NF] = map[$NF] " " $i
11910 print $NF " -> " map[$NF] >"conftest.debug"
11911 next
11913 $2 == "bozo" { t = $1
11914 printf "best guess: %s",t >"conftest.debug"
11915 while (map[t] != "") {
11916 t = map[t]
11917 printf " -> %s",t >"conftest.debug"
11919 print "" >"conftest.debug"
11920 print t
11921 exit
11923 case "$_raw"
11925 int)
11926 _fmt='"d"'
11928 unsigned|'unsigned int')
11929 _fmt='"u"'
11931 long|'long int')
11932 _fmt='"ld"'
11934 'long long'|'long long int')
11935 if test $target_os = mingw; then
11936 _fmt='"I64d"'
11937 else
11938 _fmt='"lld"'
11941 'unsigned long'|'unsigned long int'|'long unsigned int')
11942 _fmt='"lu"'
11944 'unsigned long long'|'unsigned long long int')
11945 if test $target_os = mingw; then
11946 _fmt='"I64u"'
11947 else
11948 _fmt='"llu"'
11951 *\*) # pointer to a something
11952 _fmt='"p"'
11954 struct\ *) # not much can be done here ...
11955 _fmt='"p"'
11958 echo
11959 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11960 echo "... typedef mapping ..."
11961 cat conftest.debug
11962 rm -rf conftest conftest.*
11963 exit 1
11965 esac
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11969 $as_echo_n "checking printf type for pid_t... " >&6; }
11970 if test "$cross_compiling" = "yes"; then
11971 ans=$printf_fmt_pid
11972 echo "cross-compile -> \"$ans\"" >&5
11973 fmt_pid="$ans"
11974 else
11975 cat <<End-of-File >conftest.c
11976 #include <sys/types.h>
11977 #include <unistd.h>
11978 pid_t bozo;
11979 End-of-File
11980 _do_type
11981 fmt_pid="$_fmt"
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11984 $as_echo "$fmt_pid" >&6; }
11986 rm -rf conftest.c conftest.debug
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11989 $as_echo_n "checking printf type for int64_t ... " >&6; }
11990 if test "$cross_compiling" = "yes"; then
11991 ans=$printf_fmt_int64
11992 echo "cross-compile -> \"$ans\"" >&5
11993 else
11994 cat <<End-of-File >conftest.c
11995 #include <stdio.h>
11996 #include <stdint.h>
11997 #include <inttypes.h>
11998 int main()
12000 printf("\"%s\"\n", __PRI64_PREFIX "d");
12001 return(0);
12003 End-of-File
12004 ans=''
12005 (eval $ac_link) 2>&5
12006 if test -x ./conftest
12007 then
12008 ans=`./conftest`
12009 echo "./conftest -> \"$ans\"" >&5
12011 if test -z "$ans"
12012 then
12013 cat <<End-of-File >conftest.c
12014 #include <stdio.h>
12015 #include <stdint.h>
12016 #include <string.h>
12017 int main()
12019 char buf[17];
12020 int64_t bozo = 0x12345678abcdLL;
12021 sprintf(buf, "%lx", bozo);
12022 if (strcmp(buf, "12345678abcd") == 0)
12023 printf("\"ld\"\n");
12024 else {
12025 sprintf(buf, "%llx", bozo);
12026 if (strcmp(buf, "12345678abcd") == 0)
12027 printf("\"lld\"\n");
12029 return(0);
12031 End-of-File
12032 (eval $ac_link) 2>&5
12033 if test -x ./conftest
12034 then
12035 ans=`./conftest`
12036 echo "./conftest -> \"$ans\"" >&5
12040 if test -z "$ans"
12041 then
12042 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
12043 rm -rf conftest conftest.*
12044 exit 1
12046 fmt_int64="$ans"
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
12048 $as_echo "\"$fmt_int64\"" >&6; }
12050 fmt_uint64=`echo $fmt_int64 | sed -e 's/d"/u"/'`
12052 rm -rf conftest.* conftest
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
12055 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
12056 if test "$cross_compiling" = "yes"; then
12057 ans=$strtoint64
12058 echo "cross-compile -> \"$ans\"" >&5
12059 else
12060 cat <<End-of-File >conftest.c
12061 #include <stdio.h>
12062 #include <stdlib.h>
12063 main()
12065 long long int value = -1;
12066 value = strtol("1234567812345678", NULL, 16);
12067 if (value == 0x1234567812345678LL) {
12068 printf("strotol\n");
12069 exit(0);
12071 value = strtoll("1234567812345678", NULL, 16);
12072 if (value == 0x1234567812345678LL) {
12073 printf("strtoll\n");
12074 exit(0);
12076 exit(1);
12078 End-of-File
12079 (eval $ac_compile) 2>&5
12080 (eval $ac_link) 2>&5
12081 ans=`./conftest`
12082 echo "./conftest -> \"$ans\"" >&5
12084 case "$ans"
12086 strtol)
12087 $as_echo "#define strtoint64 strtol" >>confdefs.h
12089 $as_echo "#define strtouint64 strtoul" >>confdefs.h
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
12092 $as_echo "strtol" >&6; }
12094 strtoll)
12095 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12097 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
12100 $as_echo "strtoll" >&6; }
12103 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12105 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
12108 $as_echo "assuming strtoll" >&6; }
12110 esac
12111 rm -rf conftest conftest.*
12113 if test "$do_threads" = "check" -o "$do_threads" = "yes"
12114 then
12115 for ac_header in pthread.h
12116 do :
12117 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12118 if test "x$ac_cv_header_pthread_h" = xyes; then :
12119 cat >>confdefs.h <<_ACEOF
12120 #define HAVE_PTHREAD_H 1
12121 _ACEOF
12123 else
12125 if test "$do_threads" = "yes"
12126 then
12127 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
12132 done
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
12136 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139 #include <pthread.h>
12141 main ()
12143 pthread_mutex_t mymutex;
12145 return 0;
12147 _ACEOF
12148 if ac_fn_c_try_compile "$LINENO"; then :
12150 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12153 else
12155 if test "$do_threads" = "yes"
12156 then
12157 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
12167 $as_echo_n "checking where pthread_create() is defined... " >&6; }
12168 for cand in "" pthreads pthread ; do
12169 savedLIBS=$LIBS
12170 if test -n "$cand"
12171 then
12172 LIBS=`echo $LIBS -l$cand`
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 #include <pthread.h>
12180 main ()
12183 pthread_create(NULL, NULL, NULL, NULL);
12186 return 0;
12188 _ACEOF
12189 if ac_fn_c_try_link "$LINENO"; then :
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12191 $as_echo "lib${cand:-c}" >&6; }
12192 if test -z "$cand"
12193 then
12194 lib_for_pthreads="$cand"
12195 else
12196 lib_for_pthreads="-l$cand"
12198 LIBS=$savedLIBS
12199 break
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$savedLIBS
12204 done
12207 if test "$ac_cv_header_pthread_h" = "yes"
12208 then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12210 $as_echo_n "checking printf type for pthread_t... " >&6; }
12211 cat <<End-of-File >conftest.c
12212 #include <pthread.h>
12213 pthread_t bozo;
12214 End-of-File
12215 _do_type
12216 fmt_pthread="$_fmt"
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12218 $as_echo "$fmt_pthread" >&6; }
12220 rm -rf conftest.c conftest.debug
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12223 $as_echo_n "checking if compiler supports __thread... " >&6; }
12224 if test $target_os = netbsd
12225 then
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12228 #include <pthread.h>
12229 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12230 broken!
12231 #else
12232 __thread int x;
12233 #endif
12235 main ()
12239 return 0;
12241 _ACEOF
12242 if ac_fn_c_try_compile "$LINENO"; then :
12244 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12246 $as_echo "yes" >&6; }
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 else
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255 #include <pthread.h>
12256 __thread int x;
12258 main ()
12262 return 0;
12264 _ACEOF
12265 if ac_fn_c_try_compile "$LINENO"; then :
12267 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12269 $as_echo "yes" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12278 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281 #include <pthread.h>
12283 main ()
12285 pthread_barrier_t mybarrier;
12287 return 0;
12289 _ACEOF
12290 if ac_fn_c_try_compile "$LINENO"; then :
12292 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12294 $as_echo "yes" >&6; }
12295 else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12304 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12305 if test "$cross_compiling" = "yes"; then
12306 ans=$sizeof_suseconds_t
12307 echo "cross-compile -> \"$ans\"" >&5
12308 else
12309 cat <<End-of-File >conftest.c
12310 #include <sys/time.h>
12311 main() { printf("%d", (int)sizeof(suseconds_t)); }
12312 End-of-File
12313 (eval $ac_compile) 2>&5
12314 (eval $ac_link) 2>&5
12315 ans=`./conftest`
12316 echo "./conftest -> \"$ans\"" >&5
12317 rm -rf conftest conftest.*
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12320 $as_echo "$ans" >&6; }
12322 cat >>confdefs.h <<_ACEOF
12323 #define SIZEOF_SUSECONDS_T $ans
12324 _ACEOF
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12328 $as_echo_n "checking sizeof time_t... " >&6; }
12329 if test "$cross_compiling" = "yes"; then
12330 ans=$sizeof_time_t
12331 echo "cross-compile -> \"$ans\"" >&5
12332 else
12333 cat <<End-of-File >conftest.c
12334 #include <sys/time.h>
12335 main() { printf("%d", (int)sizeof(time_t)); }
12336 End-of-File
12337 (eval $ac_compile) 2>&5
12338 (eval $ac_link) 2>&5
12339 ans=`./conftest`
12340 echo "./conftest -> \"$ans\"" >&5
12341 rm -rf conftest conftest.*
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12344 $as_echo "$ans" >&6; }
12346 cat >>confdefs.h <<_ACEOF
12347 #define SIZEOF_TIME_T $ans
12348 _ACEOF
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12352 $as_echo_n "checking sizeof long... " >&6; }
12353 if test "$cross_compiling" = "yes"; then
12354 ans=$sizeof_long
12355 echo "cross-compile -> \"$ans\"" >&5
12356 else
12357 cat <<End-of-File >conftest.c
12358 #include <stdio.h>
12359 main() { printf("%d", (int)sizeof(long)); }
12360 End-of-File
12361 (eval $ac_compile) 2>&5
12362 (eval $ac_link) 2>&5
12363 ans=`./conftest`
12364 echo "./conftest -> \"$ans\"" >&5
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12367 $as_echo "$ans" >&6; }
12368 if test "$ans" = 4; then
12370 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12372 elif test "$ans" = 8; then
12374 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12376 else
12377 echo
12378 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12379 echo "sizeof(char *) -> $ans"
12380 rm -rf conftest conftest.*
12381 exit 1
12383 rm -rf conftest conftest.*
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12386 $as_echo_n "checking sizeof pointer... " >&6; }
12387 if test "$cross_compiling" = "yes"; then
12388 ans=$sizeof_pointer
12389 echo "cross-compile -> \"$ans\"" >&5
12390 else
12391 cat <<End-of-File >conftest.c
12392 #include <stdio.h>
12393 main() { printf("%d", (int)sizeof(char *)); }
12394 End-of-File
12395 (eval $ac_compile) 2>&5
12396 (eval $ac_link) 2>&5
12397 ans=`./conftest`
12398 echo "./conftest -> \"$ans\"" >&5
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12401 $as_echo "$ans" >&6; }
12402 if test "$ans" = 4; then
12404 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12406 PCP_PTR_SIZE=32
12407 elif test "$ans" = 8; then
12409 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12411 PCP_PTR_SIZE=64
12412 else
12413 echo
12414 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12415 echo "sizeof(char *) -> $ans"
12416 rm -rf conftest conftest.*
12417 exit 1
12419 rm -rf conftest conftest.*
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12422 $as_echo_n "checking sizeof int... " >&6; }
12423 if test "$cross_compiling" = "yes"; then
12424 ans=$sizeof_int
12425 echo "cross-compile -> \"$ans\"" >&5
12426 else
12427 cat <<End-of-File >conftest.c
12428 #include <stdio.h>
12429 main() { printf("%d", (int)sizeof(int)); }
12430 End-of-File
12431 (eval $ac_compile) 2>&5
12432 (eval $ac_link) 2>&5
12433 ans=`./conftest`
12434 echo "./conftest -> \"$ans\"" >&5
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12437 $as_echo "$ans" >&6; }
12438 if test "$ans" != 4
12439 then
12440 echo
12441 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12442 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12443 echo " the over-the-wire PDU formats"
12444 rm -rf conftest conftest.*
12445 exit 1
12447 rm -rf conftest conftest.*
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12450 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12451 if test "$cross_compiling" = "yes"; then
12452 ans=$bit_field_scheme
12453 echo "cross-compile -> \"$ans\"" >&5
12454 else
12455 cat <<End-of-File >conftest.c
12456 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12457 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12458 End-of-File
12459 (eval $ac_compile) 2>&5
12460 (eval $ac_link) 2>&5
12461 ans=`./conftest`
12462 echo "./conftest -> \"$ans\"" >&5
12464 case "$ans"
12466 1200*|*0012)
12467 # left-to-right starting from MSB (SGI cc on MIPS), or
12468 # left-to-right ending at LSB
12470 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12473 $as_echo "yes" >&6; }
12475 2100*|*0021)
12476 # right-to-left ending at MSB, or
12477 # right-to-left starting from LSB (gcc in Intel)
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12483 $as_echo "unknown" >&6; }
12484 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12485 rm -f conftest conftest.*
12486 exit 1
12488 esac
12489 rm -rf conftest conftest.*
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12494 #include <stdlib.h>
12495 #include <unistd.h>
12498 main ()
12501 __uint64_t x = 0;
12502 double y = (double)x;
12505 return 0;
12507 _ACEOF
12508 if ac_fn_c_try_link "$LINENO"; then :
12510 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12513 rm -f core conftest.err conftest.$ac_objext \
12514 conftest$ac_exeext conftest.$ac_ext
12516 for ac_func in basename
12517 do :
12518 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12519 if test "x$ac_cv_func_basename" = xyes; then :
12520 cat >>confdefs.h <<_ACEOF
12521 #define HAVE_BASENAME 1
12522 _ACEOF
12525 done
12527 if test $ac_cv_func_basename = yes
12528 then
12530 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12533 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12535 lib_for_basename=""
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12538 $as_echo_n "checking for basename in -lgen... " >&6; }
12539 if ${ac_cv_lib_gen_basename+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 ac_check_lib_save_LIBS=$LIBS
12543 LIBS="-lgen $LIBS"
12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12547 /* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12550 #ifdef __cplusplus
12551 extern "C"
12552 #endif
12553 char basename ();
12555 main ()
12557 return basename ();
12559 return 0;
12561 _ACEOF
12562 if ac_fn_c_try_link "$LINENO"; then :
12563 ac_cv_lib_gen_basename=yes
12564 else
12565 ac_cv_lib_gen_basename=no
12567 rm -f core conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext conftest.$ac_ext
12569 LIBS=$ac_check_lib_save_LIBS
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12572 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12573 if test "x$ac_cv_lib_gen_basename" = xyes; then :
12574 cat >>confdefs.h <<_ACEOF
12575 #define HAVE_LIBGEN 1
12576 _ACEOF
12578 LIBS="-lgen $LIBS"
12582 if test $ac_cv_lib_gen_basename = yes
12583 then
12585 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12588 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12590 lib_for_basename="-lgen"
12591 else
12592 lib_for_basename="-lpcp"
12597 lib_for_clock_gettime=
12598 for ac_func in clock_gettime
12599 do :
12600 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12601 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12602 cat >>confdefs.h <<_ACEOF
12603 #define HAVE_CLOCK_GETTIME 1
12604 _ACEOF
12607 done
12609 if test $ac_cv_func_clock_gettime = no
12610 then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12612 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12613 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 ac_check_lib_save_LIBS=$LIBS
12617 LIBS="-lrt $LIBS"
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12621 /* Override any GCC internal prototype to avoid an error.
12622 Use char because int might match the return type of a GCC
12623 builtin and then its argument prototype would still apply. */
12624 #ifdef __cplusplus
12625 extern "C"
12626 #endif
12627 char clock_gettime ();
12629 main ()
12631 return clock_gettime ();
12633 return 0;
12635 _ACEOF
12636 if ac_fn_c_try_link "$LINENO"; then :
12637 ac_cv_lib_rt_clock_gettime=yes
12638 else
12639 ac_cv_lib_rt_clock_gettime=no
12641 rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643 LIBS=$ac_check_lib_save_LIBS
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12646 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12647 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12648 cat >>confdefs.h <<_ACEOF
12649 #define HAVE_LIBRT 1
12650 _ACEOF
12652 LIBS="-lrt $LIBS"
12656 if test $ac_cv_lib_rt_clock_gettime = yes
12657 then
12659 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12661 lib_for_rt=-lrt
12666 lib_for_dlopen=
12667 for ac_func in dlopen
12668 do :
12669 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12670 if test "x$ac_cv_func_dlopen" = xyes; then :
12671 cat >>confdefs.h <<_ACEOF
12672 #define HAVE_DLOPEN 1
12673 _ACEOF
12676 done
12678 if test $ac_cv_func_dlopen = no
12679 then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12682 if ${ac_cv_lib_dl_dlopen+:} false; then :
12683 $as_echo_n "(cached) " >&6
12684 else
12685 ac_check_lib_save_LIBS=$LIBS
12686 LIBS="-ldl $LIBS"
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12690 /* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12693 #ifdef __cplusplus
12694 extern "C"
12695 #endif
12696 char dlopen ();
12698 main ()
12700 return dlopen ();
12702 return 0;
12704 _ACEOF
12705 if ac_fn_c_try_link "$LINENO"; then :
12706 ac_cv_lib_dl_dlopen=yes
12707 else
12708 ac_cv_lib_dl_dlopen=no
12710 rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LIBS=$ac_check_lib_save_LIBS
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12716 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12717 cat >>confdefs.h <<_ACEOF
12718 #define HAVE_LIBDL 1
12719 _ACEOF
12721 LIBS="-ldl $LIBS"
12725 if test $ac_cv_lib_dl_dlopen = yes
12726 then
12728 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12730 lib_for_dlopen=-ldl
12735 lib_for_math=
12736 for ac_func in flog10
12737 do :
12738 ac_fn_c_check_func "$LINENO" "flog10" "ac_cv_func_flog10"
12739 if test "x$ac_cv_func_flog10" = xyes; then :
12740 cat >>confdefs.h <<_ACEOF
12741 #define HAVE_FLOG10 1
12742 _ACEOF
12745 done
12747 if test $ac_cv_func_flog10 = no
12748 then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12750 $as_echo_n "checking for flog10 in -lm... " >&6; }
12751 if ${ac_cv_lib_m_flog10+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-lm $LIBS"
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char flog10 ();
12767 main ()
12769 return flog10 ();
12771 return 0;
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 ac_cv_lib_m_flog10=yes
12776 else
12777 ac_cv_lib_m_flog10=no
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12784 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12785 if test "x$ac_cv_lib_m_flog10" = xyes; then :
12786 cat >>confdefs.h <<_ACEOF
12787 #define HAVE_LIBM 1
12788 _ACEOF
12790 LIBS="-lm $LIBS"
12794 if test $ac_cv_lib_m_flog10 = yes
12795 then
12797 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12799 lib_for_math=-lm
12801 else
12803 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12806 for ac_func in pow
12807 do :
12808 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12809 if test "x$ac_cv_func_pow" = xyes; then :
12810 cat >>confdefs.h <<_ACEOF
12811 #define HAVE_POW 1
12812 _ACEOF
12815 done
12817 if test $ac_cv_func_pow = no
12818 then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12820 $as_echo_n "checking for pow in -lm... " >&6; }
12821 if ${ac_cv_lib_m_pow+:} false; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-lm $LIBS"
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12832 #ifdef __cplusplus
12833 extern "C"
12834 #endif
12835 char pow ();
12837 main ()
12839 return pow ();
12841 return 0;
12843 _ACEOF
12844 if ac_fn_c_try_link "$LINENO"; then :
12845 ac_cv_lib_m_pow=yes
12846 else
12847 ac_cv_lib_m_pow=no
12849 rm -f core conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12854 $as_echo "$ac_cv_lib_m_pow" >&6; }
12855 if test "x$ac_cv_lib_m_pow" = xyes; then :
12856 cat >>confdefs.h <<_ACEOF
12857 #define HAVE_LIBM 1
12858 _ACEOF
12860 LIBS="-lm $LIBS"
12864 if test $ac_cv_lib_m_pow = yes
12865 then
12867 $as_echo "#define HAVE_POW 1" >>confdefs.h
12869 lib_for_math=-lm
12871 else
12873 $as_echo "#define HAVE_POW 1" >>confdefs.h
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12877 $as_echo_n "checking for fpclassify()... " >&6; }
12878 ac_cv_func_fpclassify=no
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12882 #include <math.h>
12885 main ()
12888 double x = 123.456;
12889 if (fpclassify(x) == FP_NAN) exit(1);
12892 return 0;
12894 _ACEOF
12895 if ac_fn_c_try_link "$LINENO"; then :
12896 ac_cv_func_fpclassify=yes
12898 rm -f core conftest.err conftest.$ac_objext \
12899 conftest$ac_exeext conftest.$ac_ext
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12901 $as_echo "$ac_cv_func_fpclassify" >&6; }
12902 if test $ac_cv_func_fpclassify = no
12903 then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12905 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12906 savedLIBS=$LIBS
12907 LIBS=-lm
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12911 #include <math.h>
12914 main ()
12917 double x = 123.456;
12918 if (fpclassify(x) == FP_NAN) exit(1);
12921 return 0;
12923 _ACEOF
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 ac_cv_func_fpclassify=yes
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12930 $as_echo "$ac_cv_func_fpclassify" >&6; }
12931 if test $ac_cv_func_fpclassify = yes
12932 then
12933 lib_for_math=-lm
12935 LIBS=$savedLIBS
12937 if test $ac_cv_func_fpclassify = yes
12938 then
12940 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12942 else
12943 for ac_func in isnan
12944 do :
12945 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12946 if test "x$ac_cv_func_isnan" = xyes; then :
12947 cat >>confdefs.h <<_ACEOF
12948 #define HAVE_ISNAN 1
12949 _ACEOF
12952 done
12954 if test $ac_cv_func_isnan = no
12955 then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12957 $as_echo_n "checking for isnan in -lm... " >&6; }
12958 if ${ac_cv_lib_m_isnan+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 ac_check_lib_save_LIBS=$LIBS
12962 LIBS="-lm $LIBS"
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12969 #ifdef __cplusplus
12970 extern "C"
12971 #endif
12972 char isnan ();
12974 main ()
12976 return isnan ();
12978 return 0;
12980 _ACEOF
12981 if ac_fn_c_try_link "$LINENO"; then :
12982 ac_cv_lib_m_isnan=yes
12983 else
12984 ac_cv_lib_m_isnan=no
12986 rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12988 LIBS=$ac_check_lib_save_LIBS
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12991 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12992 if test "x$ac_cv_lib_m_isnan" = xyes; then :
12993 cat >>confdefs.h <<_ACEOF
12994 #define HAVE_LIBM 1
12995 _ACEOF
12997 LIBS="-lm $LIBS"
13001 if test $ac_cv_lib_m_isnan = yes
13002 then
13004 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13006 lib_for_math=-lm
13009 for ac_func in isnanf
13010 do :
13011 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
13012 if test "x$ac_cv_func_isnanf" = xyes; then :
13013 cat >>confdefs.h <<_ACEOF
13014 #define HAVE_ISNANF 1
13015 _ACEOF
13018 done
13020 if test $ac_cv_func_isnanf = no
13021 then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
13023 $as_echo_n "checking for isnanf in -lm... " >&6; }
13024 if ${ac_cv_lib_m_isnanf+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 ac_check_lib_save_LIBS=$LIBS
13028 LIBS="-lm $LIBS"
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 char isnanf ();
13040 main ()
13042 return isnanf ();
13044 return 0;
13046 _ACEOF
13047 if ac_fn_c_try_link "$LINENO"; then :
13048 ac_cv_lib_m_isnanf=yes
13049 else
13050 ac_cv_lib_m_isnanf=no
13052 rm -f core conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 LIBS=$ac_check_lib_save_LIBS
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
13057 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
13058 if test "x$ac_cv_lib_m_isnanf" = xyes; then :
13059 cat >>confdefs.h <<_ACEOF
13060 #define HAVE_LIBM 1
13061 _ACEOF
13063 LIBS="-lm $LIBS"
13067 if test $ac_cv_lib_m_isnanf = yes
13068 then
13070 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
13072 lib_for_math=-lm
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13080 #include <signal.h>
13082 main ()
13084 SIG_PF x;
13086 return 0;
13088 _ACEOF
13089 if ac_fn_c_try_link "$LINENO"; then :
13091 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
13094 rm -f core conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099 #include <signal.h>
13101 main ()
13103 int x = SA_SIGINFO;
13105 return 0;
13107 _ACEOF
13108 if ac_fn_c_try_link "$LINENO"; then :
13110 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 #include <signal.h>
13120 main ()
13122 int x = SIGPIPE;
13124 return 0;
13126 _ACEOF
13127 if ac_fn_c_try_link "$LINENO"; then :
13129 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137 #include <signal.h>
13139 main ()
13141 int x = SIGHUP;
13143 return 0;
13145 _ACEOF
13146 if ac_fn_c_try_link "$LINENO"; then :
13148 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
13151 rm -f core conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 #include <signal.h>
13158 main ()
13160 int x = SIGBUS;
13162 return 0;
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13167 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13175 #include <sys/wait.h>
13177 main ()
13179 typedef void (*SIGRET)(int);
13180 SIGRET x = SIG_IGN;
13183 return 0;
13185 _ACEOF
13186 if ac_fn_c_try_link "$LINENO"; then :
13188 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13194 have_stat_type=false
13195 have_stat_name=false
13196 if test $have_stat_name = false
13197 then
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200 #include <sys/stat.h>
13202 _ACEOF
13203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13204 $EGREP "[ ]st_mtimespec" >/dev/null 2>&1; then :
13205 have_stat_name=true;
13207 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13210 rm -f conftest*
13213 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
13214 then
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13217 #include <sys/stat.h>
13219 _ACEOF
13220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13221 $EGREP "[ ]st_mtime" >/dev/null 2>&1; then :
13222 have_stat_name=true;
13224 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13227 rm -f conftest*
13230 if test $have_stat_type = false
13231 then
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234 #include <sys/stat.h>
13236 _ACEOF
13237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13238 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13239 have_stat_type=true;
13241 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13244 rm -f conftest*
13247 if test $have_stat_type = false
13248 then
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251 #include <sys/stat.h>
13253 _ACEOF
13254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13255 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13256 have_stat_type=true;
13258 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13261 rm -f conftest*
13264 if test $have_stat_type = false
13265 then
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 #include <sys/stat.h>
13270 _ACEOF
13271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13272 $EGREP "timespec[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13273 have_stat_type=true;
13275 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13278 rm -f conftest*
13281 if test $have_stat_type = false
13282 then
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285 #include <sys/stat.h>
13287 _ACEOF
13288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13289 $EGREP "time_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13290 have_stat_type=true;
13292 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13295 rm -f conftest*
13298 if test $have_stat_type = false
13299 then
13300 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13301 rm -rf conftest conftest.*
13302 exit 1
13306 pcp_etc_dir=`eval echo $sysconfdir`
13307 pcp_etc_dir=`eval echo $pcp_etc_dir`
13309 pcp_saslconf_dir=`eval echo $sysconfdir/sasl2`
13310 pcp_saslconf_dir=`eval echo $pcp_saslconf_dir`
13312 pcp_sysconf_dir=`eval echo $sysconfdir/pcp`
13313 pcp_sysconf_dir=`eval echo $pcp_sysconf_dir`
13315 pcp_pmcdconf_path=$pcp_sysconf_dir/pmcd/pmcd.conf
13316 pcp_pmcdrclocal_path=$pcp_sysconf_dir/pmcd/rc.local
13317 pcp_pmcdoptions_path=$pcp_sysconf_dir/pmcd/pmcd.options
13318 pcp_pmwebdoptions_path=$pcp_sysconf_dir/pmwebd/pmwebd.options
13319 pcp_pmmgroptions_path=$pcp_sysconf_dir/pmmgr/pmmgr.options
13320 pcp_pmproxyoptions_path=$pcp_sysconf_dir/pmproxy/pmproxy.options
13321 pcp_pmiecontrol_path=$pcp_sysconf_dir/pmie/control
13322 pcp_pmsnapcontrol_path=$pcp_sysconf_dir/pmsnap/control
13323 pcp_pmloggercontrol_path=$pcp_sysconf_dir/pmlogger/control
13334 pcp_share_dir=`eval echo $datarootdir/pcp`
13335 pcp_share_dir=`eval echo $pcp_share_dir`
13338 pcp_binadm_dir=`eval echo $libexecdir/pcp/bin`
13339 pcp_binadm_dir=`eval echo $pcp_binadm_dir`
13342 pcp_var_dir=`eval echo $localstatedir/lib/pcp`
13343 pcp_var_dir=`eval echo $pcp_var_dir`
13347 # Check whether --with-configdir was given.
13348 if test "${with_configdir+set}" = set; then :
13349 withval=$with_configdir; pcp_config_dir=$withval
13350 else
13351 pcp_config_dir=$pcp_var_dir/config
13355 pcp_pmdas_dir=$pcp_var_dir/pmdas
13358 pcp_lib_dir=`eval echo $libdir`
13359 pcp_lib_dir=`eval echo $pcp_lib_dir`
13360 pcp_lib32_dir=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13365 # Check whether --with-perl_installdirs was given.
13366 if test "${with_perl_installdirs+set}" = set; then :
13367 withval=$with_perl_installdirs; perl_installdirs=$withval
13368 else
13369 perl_installdirs=vendor
13372 perl_installdirs=`eval echo $perl_installdirs`
13373 perl_installdirs=`eval echo $perl_installdirs`
13376 # Check whether --with-perl_install_base was given.
13377 if test "${with_perl_install_base+set}" = set; then :
13378 withval=$with_perl_install_base; perl_install_base=$withval
13379 else
13380 perl_install_base=$prefix
13383 perl_install_base=`eval echo $perl_install_base`
13384 perl_install_base=`eval echo $perl_install_base`
13388 # Check whether --with-python_prefix was given.
13389 if test "${with_python_prefix+set}" = set; then :
13390 withval=$with_python_prefix; python_prefix=$withval
13391 else
13392 python_prefix=$prefix
13395 python_prefix=`eval echo $python_prefix`
13396 python_prefix=`eval echo $python_prefix`
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13400 $as_echo_n "checking for X... " >&6; }
13403 # Check whether --with-x was given.
13404 if test "${with_x+set}" = set; then :
13405 withval=$with_x;
13408 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13409 if test "x$with_x" = xno; then
13410 # The user explicitly disabled X.
13411 have_x=disabled
13412 else
13413 case $x_includes,$x_libraries in #(
13414 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13415 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 # One or both of the vars are not set, and there is no cached value.
13419 ac_x_includes=no ac_x_libraries=no
13420 rm -f -r conftest.dir
13421 if mkdir conftest.dir; then
13422 cd conftest.dir
13423 cat >Imakefile <<'_ACEOF'
13424 incroot:
13425 @echo incroot='${INCROOT}'
13426 usrlibdir:
13427 @echo usrlibdir='${USRLIBDIR}'
13428 libdir:
13429 @echo libdir='${LIBDIR}'
13430 _ACEOF
13431 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13432 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13433 for ac_var in incroot usrlibdir libdir; do
13434 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13435 done
13436 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13437 for ac_extension in a so sl dylib la dll; do
13438 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13439 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13440 ac_im_usrlibdir=$ac_im_libdir; break
13442 done
13443 # Screen out bogus values from the imake configuration. They are
13444 # bogus both because they are the default anyway, and because
13445 # using them would break gcc on systems where it needs fixed includes.
13446 case $ac_im_incroot in
13447 /usr/include) ac_x_includes= ;;
13448 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13449 esac
13450 case $ac_im_usrlibdir in
13451 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13452 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13453 esac
13455 cd ..
13456 rm -f -r conftest.dir
13459 # Standard set of common directories for X headers.
13460 # Check X11 before X11Rn because it is often a symlink to the current release.
13461 ac_x_header_dirs='
13462 /usr/X11/include
13463 /usr/X11R7/include
13464 /usr/X11R6/include
13465 /usr/X11R5/include
13466 /usr/X11R4/include
13468 /usr/include/X11
13469 /usr/include/X11R7
13470 /usr/include/X11R6
13471 /usr/include/X11R5
13472 /usr/include/X11R4
13474 /usr/local/X11/include
13475 /usr/local/X11R7/include
13476 /usr/local/X11R6/include
13477 /usr/local/X11R5/include
13478 /usr/local/X11R4/include
13480 /usr/local/include/X11
13481 /usr/local/include/X11R7
13482 /usr/local/include/X11R6
13483 /usr/local/include/X11R5
13484 /usr/local/include/X11R4
13486 /usr/X386/include
13487 /usr/x386/include
13488 /usr/XFree86/include/X11
13490 /usr/include
13491 /usr/local/include
13492 /usr/unsupported/include
13493 /usr/athena/include
13494 /usr/local/x11r5/include
13495 /usr/lpp/Xamples/include
13497 /usr/openwin/include
13498 /usr/openwin/share/include'
13500 if test "$ac_x_includes" = no; then
13501 # Guess where to find include files, by looking for Xlib.h.
13502 # First, try using that file with no special directory specified.
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 #include <X11/Xlib.h>
13506 _ACEOF
13507 if ac_fn_c_try_cpp "$LINENO"; then :
13508 # We can compile using X headers with no special include directory.
13509 ac_x_includes=
13510 else
13511 for ac_dir in $ac_x_header_dirs; do
13512 if test -r "$ac_dir/X11/Xlib.h"; then
13513 ac_x_includes=$ac_dir
13514 break
13516 done
13518 rm -f conftest.err conftest.i conftest.$ac_ext
13519 fi # $ac_x_includes = no
13521 if test "$ac_x_libraries" = no; then
13522 # Check for the libraries.
13523 # See if we find them without any special options.
13524 # Don't add to $LIBS permanently.
13525 ac_save_LIBS=$LIBS
13526 LIBS="-lX11 $LIBS"
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13529 #include <X11/Xlib.h>
13531 main ()
13533 XrmInitialize ()
13535 return 0;
13537 _ACEOF
13538 if ac_fn_c_try_link "$LINENO"; then :
13539 LIBS=$ac_save_LIBS
13540 # We can link X programs with no special library path.
13541 ac_x_libraries=
13542 else
13543 LIBS=$ac_save_LIBS
13544 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13546 # Don't even attempt the hair of trying to link an X program!
13547 for ac_extension in a so sl dylib la dll; do
13548 if test -r "$ac_dir/libX11.$ac_extension"; then
13549 ac_x_libraries=$ac_dir
13550 break 2
13552 done
13553 done
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 fi # $ac_x_libraries = no
13559 case $ac_x_includes,$ac_x_libraries in #(
13560 no,* | *,no | *\'*)
13561 # Didn't find X, or a directory has "'" in its name.
13562 ac_cv_have_x="have_x=no";; #(
13564 # Record where we found X for the cache.
13565 ac_cv_have_x="have_x=yes\
13566 ac_x_includes='$ac_x_includes'\
13567 ac_x_libraries='$ac_x_libraries'"
13568 esac
13570 ;; #(
13571 *) have_x=yes;;
13572 esac
13573 eval "$ac_cv_have_x"
13574 fi # $with_x != no
13576 if test "$have_x" != yes; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13578 $as_echo "$have_x" >&6; }
13579 no_x=yes
13580 else
13581 # If each of the values was on the command line, it overrides each guess.
13582 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13583 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13584 # Update the cache value to reflect the command line values.
13585 ac_cv_have_x="have_x=yes\
13586 ac_x_includes='$x_includes'\
13587 ac_x_libraries='$x_libraries'"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13589 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13592 if test "$no_x" = yes; then
13593 # Not all programs may use this symbol, but it does not hurt to define it.
13595 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13597 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13598 else
13599 if test -n "$x_includes"; then
13600 X_CFLAGS="$X_CFLAGS -I$x_includes"
13603 # It would also be nice to do this for all -L options, not just this one.
13604 if test -n "$x_libraries"; then
13605 X_LIBS="$X_LIBS -L$x_libraries"
13606 # For Solaris; some versions of Sun CC require a space after -R and
13607 # others require no space. Words are not sufficient . . . .
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13609 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13610 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13611 ac_xsave_c_werror_flag=$ac_c_werror_flag
13612 ac_c_werror_flag=yes
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13617 main ()
13621 return 0;
13623 _ACEOF
13624 if ac_fn_c_try_link "$LINENO"; then :
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 X_LIBS="$X_LIBS -R$x_libraries"
13628 else
13629 LIBS="$ac_xsave_LIBS -R $x_libraries"
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13634 main ()
13638 return 0;
13640 _ACEOF
13641 if ac_fn_c_try_link "$LINENO"; then :
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13643 $as_echo "yes" >&6; }
13644 X_LIBS="$X_LIBS -R $x_libraries"
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13647 $as_echo "neither works" >&6; }
13649 rm -f core conftest.err conftest.$ac_objext \
13650 conftest$ac_exeext conftest.$ac_ext
13652 rm -f core conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13654 ac_c_werror_flag=$ac_xsave_c_werror_flag
13655 LIBS=$ac_xsave_LIBS
13658 # Check for system-dependent libraries X programs must link with.
13659 # Do this before checking for the system-independent R6 libraries
13660 # (-lICE), since we may need -lsocket or whatever for X linking.
13662 if test "$ISC" = yes; then
13663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13664 else
13665 # Martyn Johnson says this is needed for Ultrix, if the X
13666 # libraries were built with DECnet support. And Karl Berry says
13667 # the Alpha needs dnet_stub (dnet does not exist).
13668 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13672 /* Override any GCC internal prototype to avoid an error.
13673 Use char because int might match the return type of a GCC
13674 builtin and then its argument prototype would still apply. */
13675 #ifdef __cplusplus
13676 extern "C"
13677 #endif
13678 char XOpenDisplay ();
13680 main ()
13682 return XOpenDisplay ();
13684 return 0;
13686 _ACEOF
13687 if ac_fn_c_try_link "$LINENO"; then :
13689 else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13691 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13692 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 ac_check_lib_save_LIBS=$LIBS
13696 LIBS="-ldnet $LIBS"
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13700 /* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
13703 #ifdef __cplusplus
13704 extern "C"
13705 #endif
13706 char dnet_ntoa ();
13708 main ()
13710 return dnet_ntoa ();
13712 return 0;
13714 _ACEOF
13715 if ac_fn_c_try_link "$LINENO"; then :
13716 ac_cv_lib_dnet_dnet_ntoa=yes
13717 else
13718 ac_cv_lib_dnet_dnet_ntoa=no
13720 rm -f core conftest.err conftest.$ac_objext \
13721 conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_check_lib_save_LIBS
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13725 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13726 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13727 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13730 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13732 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13733 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13734 $as_echo_n "(cached) " >&6
13735 else
13736 ac_check_lib_save_LIBS=$LIBS
13737 LIBS="-ldnet_stub $LIBS"
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13741 /* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
13744 #ifdef __cplusplus
13745 extern "C"
13746 #endif
13747 char dnet_ntoa ();
13749 main ()
13751 return dnet_ntoa ();
13753 return 0;
13755 _ACEOF
13756 if ac_fn_c_try_link "$LINENO"; then :
13757 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13758 else
13759 ac_cv_lib_dnet_stub_dnet_ntoa=no
13761 rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763 LIBS=$ac_check_lib_save_LIBS
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13766 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13767 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13768 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13773 rm -f core conftest.err conftest.$ac_objext \
13774 conftest$ac_exeext conftest.$ac_ext
13775 LIBS="$ac_xsave_LIBS"
13777 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13778 # to get the SysV transport functions.
13779 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13780 # needs -lnsl.
13781 # The nsl library prevents programs from opening the X display
13782 # on Irix 5.2, according to T.E. Dickey.
13783 # The functions gethostbyname, getservbyname, and inet_addr are
13784 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13785 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13786 if test "x$ac_cv_func_gethostbyname" = xyes; then :
13790 if test $ac_cv_func_gethostbyname = no; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13792 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13793 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796 ac_check_lib_save_LIBS=$LIBS
13797 LIBS="-lnsl $LIBS"
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13801 /* Override any GCC internal prototype to avoid an error.
13802 Use char because int might match the return type of a GCC
13803 builtin and then its argument prototype would still apply. */
13804 #ifdef __cplusplus
13805 extern "C"
13806 #endif
13807 char gethostbyname ();
13809 main ()
13811 return gethostbyname ();
13813 return 0;
13815 _ACEOF
13816 if ac_fn_c_try_link "$LINENO"; then :
13817 ac_cv_lib_nsl_gethostbyname=yes
13818 else
13819 ac_cv_lib_nsl_gethostbyname=no
13821 rm -f core conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13823 LIBS=$ac_check_lib_save_LIBS
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13826 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13827 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13831 if test $ac_cv_lib_nsl_gethostbyname = no; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13833 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13834 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 ac_check_lib_save_LIBS=$LIBS
13838 LIBS="-lbsd $LIBS"
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13845 #ifdef __cplusplus
13846 extern "C"
13847 #endif
13848 char gethostbyname ();
13850 main ()
13852 return gethostbyname ();
13854 return 0;
13856 _ACEOF
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 ac_cv_lib_bsd_gethostbyname=yes
13859 else
13860 ac_cv_lib_bsd_gethostbyname=no
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13867 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13868 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13875 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13876 # socket/setsockopt and other routines are undefined under SCO ODT
13877 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13878 # on later versions), says Simon Leinen: it contains gethostby*
13879 # variants that don't use the name server (or something). -lsocket
13880 # must be given before -lnsl if both are needed. We assume that
13881 # if connect needs -lnsl, so does gethostbyname.
13882 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13883 if test "x$ac_cv_func_connect" = xyes; then :
13887 if test $ac_cv_func_connect = no; then
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13889 $as_echo_n "checking for connect in -lsocket... " >&6; }
13890 if ${ac_cv_lib_socket_connect+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 ac_check_lib_save_LIBS=$LIBS
13894 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13898 /* Override any GCC internal prototype to avoid an error.
13899 Use char because int might match the return type of a GCC
13900 builtin and then its argument prototype would still apply. */
13901 #ifdef __cplusplus
13902 extern "C"
13903 #endif
13904 char connect ();
13906 main ()
13908 return connect ();
13910 return 0;
13912 _ACEOF
13913 if ac_fn_c_try_link "$LINENO"; then :
13914 ac_cv_lib_socket_connect=yes
13915 else
13916 ac_cv_lib_socket_connect=no
13918 rm -f core conftest.err conftest.$ac_objext \
13919 conftest$ac_exeext conftest.$ac_ext
13920 LIBS=$ac_check_lib_save_LIBS
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13923 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13924 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13925 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13930 # Guillermo Gomez says -lposix is necessary on A/UX.
13931 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13932 if test "x$ac_cv_func_remove" = xyes; then :
13936 if test $ac_cv_func_remove = no; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13938 $as_echo_n "checking for remove in -lposix... " >&6; }
13939 if ${ac_cv_lib_posix_remove+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-lposix $LIBS"
13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13947 /* Override any GCC internal prototype to avoid an error.
13948 Use char because int might match the return type of a GCC
13949 builtin and then its argument prototype would still apply. */
13950 #ifdef __cplusplus
13951 extern "C"
13952 #endif
13953 char remove ();
13955 main ()
13957 return remove ();
13959 return 0;
13961 _ACEOF
13962 if ac_fn_c_try_link "$LINENO"; then :
13963 ac_cv_lib_posix_remove=yes
13964 else
13965 ac_cv_lib_posix_remove=no
13967 rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13972 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13973 if test "x$ac_cv_lib_posix_remove" = xyes; then :
13974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13979 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13980 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13981 if test "x$ac_cv_func_shmat" = xyes; then :
13985 if test $ac_cv_func_shmat = no; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13987 $as_echo_n "checking for shmat in -lipc... " >&6; }
13988 if ${ac_cv_lib_ipc_shmat+:} false; then :
13989 $as_echo_n "(cached) " >&6
13990 else
13991 ac_check_lib_save_LIBS=$LIBS
13992 LIBS="-lipc $LIBS"
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13996 /* Override any GCC internal prototype to avoid an error.
13997 Use char because int might match the return type of a GCC
13998 builtin and then its argument prototype would still apply. */
13999 #ifdef __cplusplus
14000 extern "C"
14001 #endif
14002 char shmat ();
14004 main ()
14006 return shmat ();
14008 return 0;
14010 _ACEOF
14011 if ac_fn_c_try_link "$LINENO"; then :
14012 ac_cv_lib_ipc_shmat=yes
14013 else
14014 ac_cv_lib_ipc_shmat=no
14016 rm -f core conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14021 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14022 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
14023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14029 # Check for libraries that X11R6 Xt/Xaw programs need.
14030 ac_save_LDFLAGS=$LDFLAGS
14031 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14032 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14033 # check for ICE first), but we must link in the order -lSM -lICE or
14034 # we get undefined symbols. So assume we have SM if we have ICE.
14035 # These have to be linked with before -lX11, unlike the other
14036 # libraries we check for below, so use a different variable.
14037 # John Interrante, Karl Berry
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14039 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14040 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 ac_check_lib_save_LIBS=$LIBS
14044 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14048 /* Override any GCC internal prototype to avoid an error.
14049 Use char because int might match the return type of a GCC
14050 builtin and then its argument prototype would still apply. */
14051 #ifdef __cplusplus
14052 extern "C"
14053 #endif
14054 char IceConnectionNumber ();
14056 main ()
14058 return IceConnectionNumber ();
14060 return 0;
14062 _ACEOF
14063 if ac_fn_c_try_link "$LINENO"; then :
14064 ac_cv_lib_ICE_IceConnectionNumber=yes
14065 else
14066 ac_cv_lib_ICE_IceConnectionNumber=no
14068 rm -f core conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14073 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14074 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
14075 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14078 LDFLAGS=$ac_save_LDFLAGS
14082 pcp_x11_incflags=$X_CFLAGS
14084 pcp_x11_libflags=$X_LIBS
14086 pcp_x11_extra=$X_EXTRA_LIBS
14088 pcp_x11_pre=$X_PRE_LIBS
14091 have_manpages=false
14092 have_gzipped_manpages=false
14093 have_bzip2ed_manpages=false
14094 have_lzmaed_manpages=false
14095 have_xzed_manpages=false
14096 need_old_tbl_header=false
14097 man_header=
14098 pcp_man_dir=`eval echo $mandir`
14099 pcp_man_dir=`eval echo $pcp_man_dir`
14101 for d in /usr/man /usr/share/man $pcp_man_dir
14103 for sd in man1 sman1
14105 if test -f $d/$sd/man.1.gz
14106 then
14107 have_gzipped_manpages=true
14108 have_manpages=true
14109 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
14110 break
14111 elif test -f $d/$sd/man.1.bz2
14112 then
14113 have_bzip2ed_manpages=true
14114 have_manpages=true
14115 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
14116 break
14117 elif test -f $d/$sd/man.1.lzma
14118 then
14119 have_lzmaed_manpages=true
14120 have_manpages=true
14121 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
14122 break
14123 elif test -f $d/$sd/man.1.xz
14124 then
14125 have_xzed_manpages=true
14126 have_manpages=true
14127 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
14128 break
14129 elif test -f $d/$sd/man.1
14130 then
14131 man_header=`head -1 $d/$sd/man.1`
14132 have_manpages=true
14133 break
14135 done
14136 done
14137 if test x"$man_header" = "x'\\\" t" -o x"$man_header" = "x'\\\" te" ; then
14138 need_old_tbl_header=true
14148 pcp_bin_dir=`eval echo $bindir`
14149 pcp_bin_dir=`eval echo $pcp_bin_dir`
14152 pcp_sbin_dir=`eval echo $sbindir`
14153 pcp_sbin_dir=`eval echo $pcp_sbin_dir`
14156 pcp_inc_dir=`eval echo $includedir/pcp`
14157 pcp_inc_dir=`eval echo $pcp_inc_dir`
14160 if test $target_os = linux; then
14161 pcp_books_dir=`eval echo $datarootdir/doc/pcp-doc`
14162 else
14163 pcp_books_dir=`eval echo $datarootdir/doc/pcp`
14165 pcp_books_dir=`eval echo $pcp_books_dir`
14166 pcp_html_dir=`eval echo $pcp_books_dir/html`
14170 if test $target_os = linux; then
14171 pcp_icons_dir=`eval echo $datarootdir/pcp-gui/pixmaps`
14172 else
14173 pcp_icons_dir=`eval echo $datarootdir/pcp/pixmaps`
14175 pcp_icons_dir=`eval echo $pcp_icons_dir`
14178 pcp_desktop_dir=`eval echo $datarootdir/applications`
14179 pcp_desktop_dir=`eval echo $pcp_desktop_dir`
14183 # Check whether --with-rcdir was given.
14184 if test "${with_rcdir+set}" = set; then :
14185 withval=$with_rcdir; pcp_rc_dir=$withval
14186 else
14188 if $enable_systemd
14189 then
14190 pcp_rc_dir="$pcp_share_dir/lib"
14191 else
14192 pcp_rc_dir="$pcp_etc_dir/init.d"
14199 # Check whether --with-sysconfigdir was given.
14200 if test "${with_sysconfigdir+set}" = set; then :
14201 withval=$with_sysconfigdir; pcp_sysconfig_dir=$withval
14202 else
14203 pcp_sysconfig_dir=$pcp_etc_dir/sysconfig
14209 # Check whether --with-logdir was given.
14210 if test "${with_logdir+set}" = set; then :
14211 withval=$with_logdir; pcp_log_dir=$withval
14212 else
14213 pcp_log_dir=$localstatedir/log/pcp
14216 pcp_log_dir=`eval echo $pcp_log_dir`
14217 pcp_log_dir=`eval echo $pcp_log_dir`
14221 # Check whether --with-rundir was given.
14222 if test "${with_rundir+set}" = set; then :
14223 withval=$with_rundir; pcp_run_dir=$withval
14224 else
14225 pcp_run_dir=$localstatedir/run/pcp
14228 pcp_run_dir=`eval echo $pcp_run_dir`
14229 pcp_run_dir=`eval echo $pcp_run_dir`
14233 # Check whether --with-tmpdir was given.
14234 if test "${with_tmpdir+set}" = set; then :
14235 withval=$with_tmpdir; pcp_tmpfile_dir=$withval
14236 else
14237 pcp_tmpfile_dir=$localstatedir/tmp
14240 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14241 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14244 pcp_tmp_dir=`eval echo $pcp_var_dir/tmp`
14248 # Check whether --with-docdir was given.
14249 if test "${with_docdir+set}" = set; then :
14250 withval=$with_docdir; pcp_doc_dir=$withval
14251 else
14252 PACKAGE=pcp-${PACKAGE_VERSION}; pcp_doc_dir=$docdir
14255 pcp_doc_dir=`eval echo $pcp_doc_dir`
14256 pcp_doc_dir=`eval echo $pcp_doc_dir`
14260 # Check whether --with-demosdir was given.
14261 if test "${with_demosdir+set}" = set; then :
14262 withval=$with_demosdir; pcp_demos_dir=$withval
14263 else
14264 pcp_demos_dir=$pcp_share_dir/demos
14269 if test -z "$XCONFIRM"
14270 then
14271 # Extract the first word of "xconfirm", so it can be a program name with args.
14272 set dummy xconfirm; ac_word=$2
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14274 $as_echo_n "checking for $ac_word... " >&6; }
14275 if ${ac_cv_path_ac_xconfirm_prog+:} false; then :
14276 $as_echo_n "(cached) " >&6
14277 else
14278 case $ac_xconfirm_prog in
14279 [\\/]* | ?:[\\/]*)
14280 ac_cv_path_ac_xconfirm_prog="$ac_xconfirm_prog" # Let the user override the test with a path.
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14286 IFS=$as_save_IFS
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14290 ac_cv_path_ac_xconfirm_prog="$as_dir/$ac_word$ac_exec_ext"
14291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14292 break 2
14294 done
14295 done
14296 IFS=$as_save_IFS
14298 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
14300 esac
14302 ac_xconfirm_prog=$ac_cv_path_ac_xconfirm_prog
14303 if test -n "$ac_xconfirm_prog"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14305 $as_echo "$ac_xconfirm_prog" >&6; }
14306 else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14312 else
14313 ac_xconfirm_prog=$XCONFIRM
14317 if test "$ac_cv_header_fcntl_h" = "yes"
14318 then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14320 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 #include <fcntl.h>
14325 main ()
14327 int i = FNDELAY;
14329 return 0;
14331 _ACEOF
14332 if ac_fn_c_try_compile "$LINENO"; then :
14334 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 $as_echo "yes" >&6; }
14338 else
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 if test "$ac_cv_header_libzfs_h" = "yes"
14346 then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14348 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351 #include <libzfs.h>
14353 main ()
14355 libzfs_handle_t *zh;
14356 zpool_handle_t *zp;
14357 nvlist_t *np;
14358 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14361 return 0;
14363 _ACEOF
14364 if ac_fn_c_try_compile "$LINENO"; then :
14366 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14369 $as_echo "yes" >&6; }
14370 else
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 $as_echo "no" >&6; }
14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14377 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14380 #include <libzfs.h>
14382 main ()
14384 libzfs_handle_t *zh;
14385 zpool_handle_t *zp;
14386 nvlist_t *np;
14387 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14390 return 0;
14392 _ACEOF
14393 if ac_fn_c_try_compile "$LINENO"; then :
14395 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14398 $as_echo "yes" >&6; }
14399 else
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14401 $as_echo "no" >&6; }
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14407 then
14408 enable_secure=true
14410 saved_CFLAGS="$CFLAGS"
14411 saved_CPPFLAGS="$CPPFLAGS"
14412 NSS_INC_DIRS="-I/usr/include/nss -I/usr/include/nss3"
14413 NSPR_INC_DIRS="-I/usr/include/nspr -I/usr/include/nspr4"
14414 CFLAGS="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14415 CPPFLAGS="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14417 for ac_header in nss/nss.h
14418 do :
14419 ac_fn_c_check_header_mongrel "$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14420 if test "x$ac_cv_header_nss_nss_h" = xyes; then :
14421 cat >>confdefs.h <<_ACEOF
14422 #define HAVE_NSS_NSS_H 1
14423 _ACEOF
14424 NSSCFLAGS=-I/usr/include/nss
14425 else
14427 for ac_header in nss3/nss.h
14428 do :
14429 ac_fn_c_check_header_mongrel "$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14430 if test "x$ac_cv_header_nss3_nss_h" = xyes; then :
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_NSS3_NSS_H 1
14433 _ACEOF
14434 NSSCFLAGS=-I/usr/include/nss3
14435 else
14437 enable_secure=false
14438 if test "$do_secure" = "yes"
14439 then
14440 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14445 done
14450 done
14454 for ac_header in nspr/nspr.h
14455 do :
14456 ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14457 if test "x$ac_cv_header_nspr_nspr_h" = xyes; then :
14458 cat >>confdefs.h <<_ACEOF
14459 #define HAVE_NSPR_NSPR_H 1
14460 _ACEOF
14461 NSPRCFLAGS=-I/usr/include/nspr
14462 else
14464 for ac_header in nspr4/nspr.h
14465 do :
14466 ac_fn_c_check_header_mongrel "$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14467 if test "x$ac_cv_header_nspr4_nspr_h" = xyes; then :
14468 cat >>confdefs.h <<_ACEOF
14469 #define HAVE_NSPR4_NSPR_H 1
14470 _ACEOF
14471 NSPRCFLAGS=-I/usr/include/nspr4
14472 else
14474 enable_secure=false
14475 if test "$do_secure" = "yes"
14476 then
14477 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14482 done
14487 done
14491 for ac_header in sasl/sasl.h
14492 do :
14493 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14494 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
14495 cat >>confdefs.h <<_ACEOF
14496 #define HAVE_SASL_SASL_H 1
14497 _ACEOF
14498 SASLCFLAGS=-I/usr/include/sasl
14499 else
14501 enable_secure=false
14502 if test "$do_secure" = "yes"
14503 then
14504 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14509 done
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14514 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14515 if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 ac_check_lib_save_LIBS=$LIBS
14519 LIBS="-lsasl2 $LIBS"
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14526 #ifdef __cplusplus
14527 extern "C"
14528 #endif
14529 char sasl_server_init ();
14531 main ()
14533 return sasl_server_init ();
14535 return 0;
14537 _ACEOF
14538 if ac_fn_c_try_link "$LINENO"; then :
14539 ac_cv_lib_sasl2_sasl_server_init=yes
14540 else
14541 ac_cv_lib_sasl2_sasl_server_init=no
14543 rm -f core conftest.err conftest.$ac_objext \
14544 conftest$ac_exeext conftest.$ac_ext
14545 LIBS=$ac_check_lib_save_LIBS
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14548 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14549 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
14550 lib_for_sasl="-lsasl2"
14551 else
14553 enable_secure=false
14554 if test "$do_secure" = "yes"
14555 then
14556 as_fn_error $? "cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14564 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14565 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 ac_check_lib_save_LIBS=$LIBS
14569 LIBS="-lssl $LIBS"
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14573 /* Override any GCC internal prototype to avoid an error.
14574 Use char because int might match the return type of a GCC
14575 builtin and then its argument prototype would still apply. */
14576 #ifdef __cplusplus
14577 extern "C"
14578 #endif
14579 char SSL_ImportFD ();
14581 main ()
14583 return SSL_ImportFD ();
14585 return 0;
14587 _ACEOF
14588 if ac_fn_c_try_link "$LINENO"; then :
14589 ac_cv_lib_ssl_SSL_ImportFD=yes
14590 else
14591 ac_cv_lib_ssl_SSL_ImportFD=no
14593 rm -f core conftest.err conftest.$ac_objext \
14594 conftest$ac_exeext conftest.$ac_ext
14595 LIBS=$ac_check_lib_save_LIBS
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14598 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14599 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes; then :
14600 lib_for_ssl="-lssl"
14601 else
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14604 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14605 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 ac_check_lib_save_LIBS=$LIBS
14609 LIBS="-lssl3 $LIBS"
14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611 /* end confdefs.h. */
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14616 #ifdef __cplusplus
14617 extern "C"
14618 #endif
14619 char SSL_ImportFD ();
14621 main ()
14623 return SSL_ImportFD ();
14625 return 0;
14627 _ACEOF
14628 if ac_fn_c_try_link "$LINENO"; then :
14629 ac_cv_lib_ssl3_SSL_ImportFD=yes
14630 else
14631 ac_cv_lib_ssl3_SSL_ImportFD=no
14633 rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635 LIBS=$ac_check_lib_save_LIBS
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14638 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14639 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes; then :
14640 lib_for_ssl="-lssl3"
14641 else
14643 enable_secure=false
14644 if test "$do_secure" = "yes"
14645 then
14646 as_fn_error $? "cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14657 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14658 if ${ac_cv_lib_nss_NSS_Init+:} false; then :
14659 $as_echo_n "(cached) " >&6
14660 else
14661 ac_check_lib_save_LIBS=$LIBS
14662 LIBS="-lnss $LIBS"
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14666 /* Override any GCC internal prototype to avoid an error.
14667 Use char because int might match the return type of a GCC
14668 builtin and then its argument prototype would still apply. */
14669 #ifdef __cplusplus
14670 extern "C"
14671 #endif
14672 char NSS_Init ();
14674 main ()
14676 return NSS_Init ();
14678 return 0;
14680 _ACEOF
14681 if ac_fn_c_try_link "$LINENO"; then :
14682 ac_cv_lib_nss_NSS_Init=yes
14683 else
14684 ac_cv_lib_nss_NSS_Init=no
14686 rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 LIBS=$ac_check_lib_save_LIBS
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14691 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14692 if test "x$ac_cv_lib_nss_NSS_Init" = xyes; then :
14693 lib_for_nss="-lnss"
14694 else
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14697 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14698 if ${ac_cv_lib_nss3_NSS_Init+:} false; then :
14699 $as_echo_n "(cached) " >&6
14700 else
14701 ac_check_lib_save_LIBS=$LIBS
14702 LIBS="-lnss3 $LIBS"
14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14706 /* Override any GCC internal prototype to avoid an error.
14707 Use char because int might match the return type of a GCC
14708 builtin and then its argument prototype would still apply. */
14709 #ifdef __cplusplus
14710 extern "C"
14711 #endif
14712 char NSS_Init ();
14714 main ()
14716 return NSS_Init ();
14718 return 0;
14720 _ACEOF
14721 if ac_fn_c_try_link "$LINENO"; then :
14722 ac_cv_lib_nss3_NSS_Init=yes
14723 else
14724 ac_cv_lib_nss3_NSS_Init=no
14726 rm -f core conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14728 LIBS=$ac_check_lib_save_LIBS
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14731 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14732 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes; then :
14733 lib_for_nss="-lnss3"
14734 else
14736 enable_secure=false
14737 if test "$do_secure" = "yes"
14738 then
14739 as_fn_error $? "cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14750 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14751 if ${ac_cv_lib_nspr_PR_Init+:} false; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 ac_check_lib_save_LIBS=$LIBS
14755 LIBS="-lnspr $LIBS"
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14759 /* Override any GCC internal prototype to avoid an error.
14760 Use char because int might match the return type of a GCC
14761 builtin and then its argument prototype would still apply. */
14762 #ifdef __cplusplus
14763 extern "C"
14764 #endif
14765 char PR_Init ();
14767 main ()
14769 return PR_Init ();
14771 return 0;
14773 _ACEOF
14774 if ac_fn_c_try_link "$LINENO"; then :
14775 ac_cv_lib_nspr_PR_Init=yes
14776 else
14777 ac_cv_lib_nspr_PR_Init=no
14779 rm -f core conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
14781 LIBS=$ac_check_lib_save_LIBS
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14784 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14785 if test "x$ac_cv_lib_nspr_PR_Init" = xyes; then :
14786 lib_for_nspr="-lnspr"
14787 else
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14790 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14791 if ${ac_cv_lib_nspr4_PR_Init+:} false; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 ac_check_lib_save_LIBS=$LIBS
14795 LIBS="-lnspr4 $LIBS"
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14799 /* Override any GCC internal prototype to avoid an error.
14800 Use char because int might match the return type of a GCC
14801 builtin and then its argument prototype would still apply. */
14802 #ifdef __cplusplus
14803 extern "C"
14804 #endif
14805 char PR_Init ();
14807 main ()
14809 return PR_Init ();
14811 return 0;
14813 _ACEOF
14814 if ac_fn_c_try_link "$LINENO"; then :
14815 ac_cv_lib_nspr4_PR_Init=yes
14816 else
14817 ac_cv_lib_nspr4_PR_Init=no
14819 rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
14821 LIBS=$ac_check_lib_save_LIBS
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14824 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14825 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes; then :
14826 lib_for_nspr="-lnspr4"
14827 else
14829 enable_secure=false
14830 if test "$do_secure" = "yes"
14831 then
14832 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14842 if test "$enable_secure" = "true"
14843 then
14845 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14850 CPPFLAGS="$saved_CPPFLAGS"
14851 CFLAGS="$saved_CFLAGS"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14855 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14856 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 ac_check_lib_save_LIBS=$LIBS
14860 LIBS="-latomic $LIBS"
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14864 /* Override any GCC internal prototype to avoid an error.
14865 Use char because int might match the return type of a GCC
14866 builtin and then its argument prototype would still apply. */
14867 #ifdef __cplusplus
14868 extern "C"
14869 #endif
14870 char __atomic_fetch_add_4 ();
14872 main ()
14874 return __atomic_fetch_add_4 ();
14876 return 0;
14878 _ACEOF
14879 if ac_fn_c_try_link "$LINENO"; then :
14880 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14881 else
14882 ac_cv_lib_atomic___atomic_fetch_add_4=no
14884 rm -f core conftest.err conftest.$ac_objext \
14885 conftest$ac_exeext conftest.$ac_ext
14886 LIBS=$ac_check_lib_save_LIBS
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14889 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14890 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes; then :
14891 lib_for_atomic="-latomic"
14896 if test -f /usr/include/sn/arsess.h
14897 then
14898 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
14899 else
14900 pcp_mpi_dirs=
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14905 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14909 #include <sys/types.h>
14910 #ifdef HAVE_SYS_SOCKET_H
14911 #include <sys/socket.h>
14912 #endif
14913 #ifdef HAVE_SYS_UN_H
14914 #include <sys/un.h>
14915 #endif
14918 main ()
14920 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14922 return 0;
14924 _ACEOF
14925 if ac_fn_c_try_compile "$LINENO"; then :
14927 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14929 $as_echo "yes" >&6; }
14930 else
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932 $as_echo "no" >&6; }
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14937 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14941 #include <sys/types.h>
14942 #ifdef HAVE_SYS_SOCKET_H
14943 #include <sys/socket.h>
14944 #endif
14945 #ifdef HAVE_SYS_UN_H
14946 #include <sys/un.h>
14947 #endif
14950 main ()
14952 struct ucred ucred; ucred.uid = 0;
14954 return 0;
14956 _ACEOF
14957 if ac_fn_c_try_compile "$LINENO"; then :
14959 $as_echo "#define HAVE_STRUCT_UCRED 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 struct timespec in time.h" >&5
14969 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14973 #include <time.h>
14976 main ()
14978 struct timespec foo;
14980 return 0;
14982 _ACEOF
14983 if ac_fn_c_try_compile "$LINENO"; then :
14985 $as_echo "#define HAVE_STRUCT_TIMESPEC 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 for altzone in time.h" >&5
14995 $as_echo_n "checking for altzone in time.h... " >&6; }
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14999 #include <time.h>
15002 main ()
15004 time_t az = altzone;
15006 return 0;
15008 _ACEOF
15009 if ac_fn_c_try_compile "$LINENO"; then :
15011 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15013 $as_echo "yes" >&6; }
15014 else
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15016 $as_echo "no" >&6; }
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
15021 $as_echo_n "checking if strftime knows about %z... " >&6; }
15022 if test "$cross_compiling" = yes; then :
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15024 $as_echo "no" >&6; }
15025 else
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15029 #include <time.h>
15030 int main () {
15031 char b[32]="";
15032 time_t t = time(NULL);
15033 struct tm * t1 = localtime (&t);
15034 if (strftime (b, 32, "%z", t1) < 3)
15035 return (1);
15036 if (strcmp(b, "%z") == 0)
15037 return(1);
15038 return (0);
15041 _ACEOF
15042 if ac_fn_c_try_run "$LINENO"; then :
15044 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15046 $as_echo "yes" >&6; }
15047 else
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15052 conftest.$ac_objext conftest.beam conftest.$ac_ext
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
15057 $as_echo_n "checking if strerror_r returns char *... " >&6; }
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060 #include <string.h>
15062 main ()
15064 strerror_r(0, NULL, 0)[0];
15066 return 0;
15068 _ACEOF
15069 if ac_fn_c_try_compile "$LINENO"; then :
15071 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15073 $as_echo "yes" >&6; }
15074 else
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15076 $as_echo "no" >&6; }
15078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 savedLIBS=$LIBS
15081 LIBS=
15082 lib_for_curses=
15083 lib_for_readline=
15084 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
15085 if test "x$ac_cv_func_readline" = xyes; then :
15087 else
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15090 $as_echo_n "checking for readline in -lreadline... " >&6; }
15091 if ${ac_cv_lib_readline_readline+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 ac_check_lib_save_LIBS=$LIBS
15095 LIBS="-lreadline $LIBS"
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15099 /* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15102 #ifdef __cplusplus
15103 extern "C"
15104 #endif
15105 char readline ();
15107 main ()
15109 return readline ();
15111 return 0;
15113 _ACEOF
15114 if ac_fn_c_try_link "$LINENO"; then :
15115 ac_cv_lib_readline_readline=yes
15116 else
15117 ac_cv_lib_readline_readline=no
15119 rm -f core conftest.err conftest.$ac_objext \
15120 conftest$ac_exeext conftest.$ac_ext
15121 LIBS=$ac_check_lib_save_LIBS
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15124 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15125 if test "x$ac_cv_lib_readline_readline" = xyes; then :
15126 cat >>confdefs.h <<_ACEOF
15127 #define HAVE_LIBREADLINE 1
15128 _ACEOF
15130 LIBS="-lreadline $LIBS"
15132 else
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
15135 $as_echo_n "checking for add_history in -lreadline... " >&6; }
15136 if ${ac_cv_lib_readline_add_history+:} false; then :
15137 $as_echo_n "(cached) " >&6
15138 else
15139 ac_check_lib_save_LIBS=$LIBS
15140 LIBS="-lreadline -lcurses $LIBS"
15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h. */
15144 /* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15147 #ifdef __cplusplus
15148 extern "C"
15149 #endif
15150 char add_history ();
15152 main ()
15154 return add_history ();
15156 return 0;
15158 _ACEOF
15159 if ac_fn_c_try_link "$LINENO"; then :
15160 ac_cv_lib_readline_add_history=yes
15161 else
15162 ac_cv_lib_readline_add_history=no
15164 rm -f core conftest.err conftest.$ac_objext \
15165 conftest$ac_exeext conftest.$ac_ext
15166 LIBS=$ac_check_lib_save_LIBS
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
15169 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
15170 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_LIBREADLINE 1
15173 _ACEOF
15175 LIBS="-lreadline $LIBS"
15185 if test $ac_cv_func_readline = yes
15186 then
15188 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15190 elif test $ac_cv_lib_readline_readline = yes
15191 then
15193 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15195 lib_for_readline=-lreadline
15196 elif test $ac_cv_lib_readline_add_history = yes
15197 then
15199 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15201 lib_for_curses=-lcurses
15202 lib_for_readline=-lreadline
15206 LIBS=$savedLIBS
15209 pkg_failed=no
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15211 $as_echo_n "checking for zlib... " >&6; }
15213 if test -n "$zlib_CFLAGS"; then
15214 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
15215 elif test -n "$PKG_CONFIG"; then
15216 if test -n "$PKG_CONFIG" && \
15217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15218 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15219 ac_status=$?
15220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15221 test $ac_status = 0; }; then
15222 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15223 test "x$?" != "x0" && pkg_failed=yes
15224 else
15225 pkg_failed=yes
15227 else
15228 pkg_failed=untried
15230 if test -n "$zlib_LIBS"; then
15231 pkg_cv_zlib_LIBS="$zlib_LIBS"
15232 elif test -n "$PKG_CONFIG"; then
15233 if test -n "$PKG_CONFIG" && \
15234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15235 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15236 ac_status=$?
15237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15238 test $ac_status = 0; }; then
15239 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15240 test "x$?" != "x0" && pkg_failed=yes
15241 else
15242 pkg_failed=yes
15244 else
15245 pkg_failed=untried
15250 if test $pkg_failed = yes; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15252 $as_echo "no" >&6; }
15254 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15255 _pkg_short_errors_supported=yes
15256 else
15257 _pkg_short_errors_supported=no
15259 if test $_pkg_short_errors_supported = yes; then
15260 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15261 else
15262 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15264 # Put the nasty error message in config.log where it belongs
15265 echo "$zlib_PKG_ERRORS" >&5
15267 have_zlib=false
15268 elif test $pkg_failed = untried; then
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270 $as_echo "no" >&6; }
15271 have_zlib=false
15272 else
15273 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
15274 zlib_LIBS=$pkg_cv_zlib_LIBS
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15276 $as_echo "yes" >&6; }
15277 have_zlib=true
15279 HAVE_ZLIB=$have_zlib
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15283 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15287 #include <netdb.h>
15288 int test = AI_ADDRCONFIG;
15291 main ()
15296 return 0;
15298 _ACEOF
15299 if ac_fn_c_try_compile "$LINENO"; then :
15301 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15303 $as_echo "yes" >&6; }
15304 else
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15306 $as_echo "no" >&6; }
15308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15311 have_parfait=false
15312 if test -f ./build/tar/parfait.tar.gz
15313 then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15315 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15316 have_parfait=true
15320 have_vector=false
15321 if test -f ./build/tar/vector.tar.gz
15322 then
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15324 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15325 have_vector=true
15329 have_webjs=false
15330 if test -f ./build/tar/webjs.tar.gz
15331 then
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15333 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15334 have_webjs=true
15341 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"
15343 cat >confcache <<\_ACEOF
15344 # This file is a shell script that caches the results of configure
15345 # tests run on this system so they can be shared between configure
15346 # scripts and configure runs, see configure's option --config-cache.
15347 # It is not useful on other systems. If it contains results you don't
15348 # want to keep, you may remove or edit it.
15350 # config.status only pays attention to the cache file if you give it
15351 # the --recheck option to rerun configure.
15353 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15354 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15355 # following values.
15357 _ACEOF
15359 # The following way of writing the cache mishandles newlines in values,
15360 # but we know of no workaround that is simple, portable, and efficient.
15361 # So, we kill variables containing newlines.
15362 # Ultrix sh set writes to stderr and can't be redirected directly,
15363 # and sets the high bit in the cache file unless we assign to the vars.
15365 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15366 eval ac_val=\$$ac_var
15367 case $ac_val in #(
15368 *${as_nl}*)
15369 case $ac_var in #(
15370 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15371 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15372 esac
15373 case $ac_var in #(
15374 _ | IFS | as_nl) ;; #(
15375 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15376 *) { eval $ac_var=; unset $ac_var;} ;;
15377 esac ;;
15378 esac
15379 done
15381 (set) 2>&1 |
15382 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15383 *${as_nl}ac_space=\ *)
15384 # `set' does not quote correctly, so add quotes: double-quote
15385 # substitution turns \\\\ into \\, and sed turns \\ into \.
15386 sed -n \
15387 "s/'/'\\\\''/g;
15388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15389 ;; #(
15391 # `set' quotes correctly as required by POSIX, so do not add quotes.
15392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15394 esac |
15395 sort
15397 sed '
15398 /^ac_cv_env_/b end
15399 t clear
15400 :clear
15401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15402 t end
15403 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15404 :end' >>confcache
15405 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15406 if test -w "$cache_file"; then
15407 if test "x$cache_file" != "x/dev/null"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15409 $as_echo "$as_me: updating cache $cache_file" >&6;}
15410 if test ! -f "$cache_file" || test -h "$cache_file"; then
15411 cat confcache >"$cache_file"
15412 else
15413 case $cache_file in #(
15414 */* | ?:*)
15415 mv -f confcache "$cache_file"$$ &&
15416 mv -f "$cache_file"$$ "$cache_file" ;; #(
15418 mv -f confcache "$cache_file" ;;
15419 esac
15422 else
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15424 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15427 rm -f confcache
15429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15430 # Let make expand exec_prefix.
15431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15433 DEFS=-DHAVE_CONFIG_H
15435 ac_libobjs=
15436 ac_ltlibobjs=
15438 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15439 # 1. Remove the extension, and $U if already installed.
15440 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15441 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15442 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15443 # will be set to the directory where LIBOBJS objects are built.
15444 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15445 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15446 done
15447 LIBOBJS=$ac_libobjs
15449 LTLIBOBJS=$ac_ltlibobjs
15453 : "${CONFIG_STATUS=./config.status}"
15454 ac_write_fail=0
15455 ac_clean_files_save=$ac_clean_files
15456 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15458 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15459 as_write_fail=0
15460 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15461 #! $SHELL
15462 # Generated by $as_me.
15463 # Run this file to recreate the current configuration.
15464 # Compiler output produced by configure, useful for debugging
15465 # configure, is in config.log if it exists.
15467 debug=false
15468 ac_cs_recheck=false
15469 ac_cs_silent=false
15471 SHELL=\${CONFIG_SHELL-$SHELL}
15472 export SHELL
15473 _ASEOF
15474 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15475 ## -------------------- ##
15476 ## M4sh Initialization. ##
15477 ## -------------------- ##
15479 # Be more Bourne compatible
15480 DUALCASE=1; export DUALCASE # for MKS sh
15481 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15482 emulate sh
15483 NULLCMD=:
15484 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15485 # is contrary to our usage. Disable this feature.
15486 alias -g '${1+"$@"}'='"$@"'
15487 setopt NO_GLOB_SUBST
15488 else
15489 case `(set -o) 2>/dev/null` in #(
15490 *posix*) :
15491 set -o posix ;; #(
15492 *) :
15494 esac
15498 as_nl='
15500 export as_nl
15501 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15502 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15503 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15504 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15505 # Prefer a ksh shell builtin over an external printf program on Solaris,
15506 # but without wasting forks for bash or zsh.
15507 if test -z "$BASH_VERSION$ZSH_VERSION" \
15508 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15509 as_echo='print -r --'
15510 as_echo_n='print -rn --'
15511 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15512 as_echo='printf %s\n'
15513 as_echo_n='printf %s'
15514 else
15515 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15516 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15517 as_echo_n='/usr/ucb/echo -n'
15518 else
15519 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15520 as_echo_n_body='eval
15521 arg=$1;
15522 case $arg in #(
15523 *"$as_nl"*)
15524 expr "X$arg" : "X\\(.*\\)$as_nl";
15525 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15526 esac;
15527 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15529 export as_echo_n_body
15530 as_echo_n='sh -c $as_echo_n_body as_echo'
15532 export as_echo_body
15533 as_echo='sh -c $as_echo_body as_echo'
15536 # The user is always right.
15537 if test "${PATH_SEPARATOR+set}" != set; then
15538 PATH_SEPARATOR=:
15539 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15540 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15541 PATH_SEPARATOR=';'
15546 # IFS
15547 # We need space, tab and new line, in precisely that order. Quoting is
15548 # there to prevent editors from complaining about space-tab.
15549 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15550 # splitting by setting IFS to empty value.)
15551 IFS=" "" $as_nl"
15553 # Find who we are. Look in the path if we contain no directory separator.
15554 as_myself=
15555 case $0 in #((
15556 *[\\/]* ) as_myself=$0 ;;
15557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15558 for as_dir in $PATH
15560 IFS=$as_save_IFS
15561 test -z "$as_dir" && as_dir=.
15562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15563 done
15564 IFS=$as_save_IFS
15567 esac
15568 # We did not find ourselves, most probably we were run as `sh COMMAND'
15569 # in which case we are not to be found in the path.
15570 if test "x$as_myself" = x; then
15571 as_myself=$0
15573 if test ! -f "$as_myself"; then
15574 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15575 exit 1
15578 # Unset variables that we do not need and which cause bugs (e.g. in
15579 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15580 # suppresses any "Segmentation fault" message there. '((' could
15581 # trigger a bug in pdksh 5.2.14.
15582 for as_var in BASH_ENV ENV MAIL MAILPATH
15583 do eval test x\${$as_var+set} = xset \
15584 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15585 done
15586 PS1='$ '
15587 PS2='> '
15588 PS4='+ '
15590 # NLS nuisances.
15591 LC_ALL=C
15592 export LC_ALL
15593 LANGUAGE=C
15594 export LANGUAGE
15596 # CDPATH.
15597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15600 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15601 # ----------------------------------------
15602 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15603 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15604 # script with STATUS, using 1 if that was 0.
15605 as_fn_error ()
15607 as_status=$1; test $as_status -eq 0 && as_status=1
15608 if test "$4"; then
15609 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15610 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15612 $as_echo "$as_me: error: $2" >&2
15613 as_fn_exit $as_status
15614 } # as_fn_error
15617 # as_fn_set_status STATUS
15618 # -----------------------
15619 # Set $? to STATUS, without forking.
15620 as_fn_set_status ()
15622 return $1
15623 } # as_fn_set_status
15625 # as_fn_exit STATUS
15626 # -----------------
15627 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15628 as_fn_exit ()
15630 set +e
15631 as_fn_set_status $1
15632 exit $1
15633 } # as_fn_exit
15635 # as_fn_unset VAR
15636 # ---------------
15637 # Portably unset VAR.
15638 as_fn_unset ()
15640 { eval $1=; unset $1;}
15642 as_unset=as_fn_unset
15643 # as_fn_append VAR VALUE
15644 # ----------------------
15645 # Append the text in VALUE to the end of the definition contained in VAR. Take
15646 # advantage of any shell optimizations that allow amortized linear growth over
15647 # repeated appends, instead of the typical quadratic growth present in naive
15648 # implementations.
15649 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15650 eval 'as_fn_append ()
15652 eval $1+=\$2
15654 else
15655 as_fn_append ()
15657 eval $1=\$$1\$2
15659 fi # as_fn_append
15661 # as_fn_arith ARG...
15662 # ------------------
15663 # Perform arithmetic evaluation on the ARGs, and store the result in the
15664 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15665 # must be portable across $(()) and expr.
15666 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15667 eval 'as_fn_arith ()
15669 as_val=$(( $* ))
15671 else
15672 as_fn_arith ()
15674 as_val=`expr "$@" || test $? -eq 1`
15676 fi # as_fn_arith
15679 if expr a : '\(a\)' >/dev/null 2>&1 &&
15680 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15681 as_expr=expr
15682 else
15683 as_expr=false
15686 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15687 as_basename=basename
15688 else
15689 as_basename=false
15692 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15693 as_dirname=dirname
15694 else
15695 as_dirname=false
15698 as_me=`$as_basename -- "$0" ||
15699 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15700 X"$0" : 'X\(//\)$' \| \
15701 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15702 $as_echo X/"$0" |
15703 sed '/^.*\/\([^/][^/]*\)\/*$/{
15704 s//\1/
15707 /^X\/\(\/\/\)$/{
15708 s//\1/
15711 /^X\/\(\/\).*/{
15712 s//\1/
15715 s/.*/./; q'`
15717 # Avoid depending upon Character Ranges.
15718 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15719 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15720 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15721 as_cr_digits='0123456789'
15722 as_cr_alnum=$as_cr_Letters$as_cr_digits
15724 ECHO_C= ECHO_N= ECHO_T=
15725 case `echo -n x` in #(((((
15726 -n*)
15727 case `echo 'xy\c'` in
15728 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15729 xy) ECHO_C='\c';;
15730 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15731 ECHO_T=' ';;
15732 esac;;
15734 ECHO_N='-n';;
15735 esac
15737 rm -f conf$$ conf$$.exe conf$$.file
15738 if test -d conf$$.dir; then
15739 rm -f conf$$.dir/conf$$.file
15740 else
15741 rm -f conf$$.dir
15742 mkdir conf$$.dir 2>/dev/null
15744 if (echo >conf$$.file) 2>/dev/null; then
15745 if ln -s conf$$.file conf$$ 2>/dev/null; then
15746 as_ln_s='ln -s'
15747 # ... but there are two gotchas:
15748 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15749 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15750 # In both cases, we have to default to `cp -pR'.
15751 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15752 as_ln_s='cp -pR'
15753 elif ln conf$$.file conf$$ 2>/dev/null; then
15754 as_ln_s=ln
15755 else
15756 as_ln_s='cp -pR'
15758 else
15759 as_ln_s='cp -pR'
15761 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15762 rmdir conf$$.dir 2>/dev/null
15765 # as_fn_mkdir_p
15766 # -------------
15767 # Create "$as_dir" as a directory, including parents if necessary.
15768 as_fn_mkdir_p ()
15771 case $as_dir in #(
15772 -*) as_dir=./$as_dir;;
15773 esac
15774 test -d "$as_dir" || eval $as_mkdir_p || {
15775 as_dirs=
15776 while :; do
15777 case $as_dir in #(
15778 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15779 *) as_qdir=$as_dir;;
15780 esac
15781 as_dirs="'$as_qdir' $as_dirs"
15782 as_dir=`$as_dirname -- "$as_dir" ||
15783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15784 X"$as_dir" : 'X\(//\)[^/]' \| \
15785 X"$as_dir" : 'X\(//\)$' \| \
15786 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15787 $as_echo X"$as_dir" |
15788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15789 s//\1/
15792 /^X\(\/\/\)[^/].*/{
15793 s//\1/
15796 /^X\(\/\/\)$/{
15797 s//\1/
15800 /^X\(\/\).*/{
15801 s//\1/
15804 s/.*/./; q'`
15805 test -d "$as_dir" && break
15806 done
15807 test -z "$as_dirs" || eval "mkdir $as_dirs"
15808 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15811 } # as_fn_mkdir_p
15812 if mkdir -p . 2>/dev/null; then
15813 as_mkdir_p='mkdir -p "$as_dir"'
15814 else
15815 test -d ./-p && rmdir ./-p
15816 as_mkdir_p=false
15820 # as_fn_executable_p FILE
15821 # -----------------------
15822 # Test if FILE is an executable regular file.
15823 as_fn_executable_p ()
15825 test -f "$1" && test -x "$1"
15826 } # as_fn_executable_p
15827 as_test_x='test -x'
15828 as_executable_p=as_fn_executable_p
15830 # Sed expression to map a string onto a valid CPP name.
15831 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15833 # Sed expression to map a string onto a valid variable name.
15834 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15837 exec 6>&1
15838 ## ----------------------------------- ##
15839 ## Main body of $CONFIG_STATUS script. ##
15840 ## ----------------------------------- ##
15841 _ASEOF
15842 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845 # Save the log message, to keep $0 and so on meaningful, and to
15846 # report actual input values of CONFIG_FILES etc. instead of their
15847 # values after options handling.
15848 ac_log="
15849 This file was extended by $as_me, which was
15850 generated by GNU Autoconf 2.69. Invocation command line was
15852 CONFIG_FILES = $CONFIG_FILES
15853 CONFIG_HEADERS = $CONFIG_HEADERS
15854 CONFIG_LINKS = $CONFIG_LINKS
15855 CONFIG_COMMANDS = $CONFIG_COMMANDS
15856 $ $0 $@
15858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15861 _ACEOF
15863 case $ac_config_files in *"
15864 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15865 esac
15867 case $ac_config_headers in *"
15868 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15869 esac
15872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 # Files that config.status was made for.
15874 config_files="$ac_config_files"
15875 config_headers="$ac_config_headers"
15877 _ACEOF
15879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15880 ac_cs_usage="\
15881 \`$as_me' instantiates files and other configuration actions
15882 from templates according to the current configuration. Unless the files
15883 and actions are specified as TAGs, all are instantiated by default.
15885 Usage: $0 [OPTION]... [TAG]...
15887 -h, --help print this help, then exit
15888 -V, --version print version number and configuration settings, then exit
15889 --config print configuration, then exit
15890 -q, --quiet, --silent
15891 do not print progress messages
15892 -d, --debug don't remove temporary files
15893 --recheck update $as_me by reconfiguring in the same conditions
15894 --file=FILE[:TEMPLATE]
15895 instantiate the configuration file FILE
15896 --header=FILE[:TEMPLATE]
15897 instantiate the configuration header FILE
15899 Configuration files:
15900 $config_files
15902 Configuration headers:
15903 $config_headers
15905 Report bugs to the package provider."
15907 _ACEOF
15908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15909 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15910 ac_cs_version="\\
15911 config.status
15912 configured by $0, generated by GNU Autoconf 2.69,
15913 with options \\"\$ac_cs_config\\"
15915 Copyright (C) 2012 Free Software Foundation, Inc.
15916 This config.status script is free software; the Free Software Foundation
15917 gives unlimited permission to copy, distribute and modify it."
15919 ac_pwd='$ac_pwd'
15920 srcdir='$srcdir'
15921 test -n "\$AWK" || AWK=awk
15922 _ACEOF
15924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15925 # The default lists apply if the user does not specify any file.
15926 ac_need_defaults=:
15927 while test $# != 0
15929 case $1 in
15930 --*=?*)
15931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15933 ac_shift=:
15935 --*=)
15936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15937 ac_optarg=
15938 ac_shift=:
15941 ac_option=$1
15942 ac_optarg=$2
15943 ac_shift=shift
15945 esac
15947 case $ac_option in
15948 # Handling of the options.
15949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15950 ac_cs_recheck=: ;;
15951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15952 $as_echo "$ac_cs_version"; exit ;;
15953 --config | --confi | --conf | --con | --co | --c )
15954 $as_echo "$ac_cs_config"; exit ;;
15955 --debug | --debu | --deb | --de | --d | -d )
15956 debug=: ;;
15957 --file | --fil | --fi | --f )
15958 $ac_shift
15959 case $ac_optarg in
15960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15961 '') as_fn_error $? "missing file argument" ;;
15962 esac
15963 as_fn_append CONFIG_FILES " '$ac_optarg'"
15964 ac_need_defaults=false;;
15965 --header | --heade | --head | --hea )
15966 $ac_shift
15967 case $ac_optarg in
15968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15969 esac
15970 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15971 ac_need_defaults=false;;
15972 --he | --h)
15973 # Conflict between --help and --header
15974 as_fn_error $? "ambiguous option: \`$1'
15975 Try \`$0 --help' for more information.";;
15976 --help | --hel | -h )
15977 $as_echo "$ac_cs_usage"; exit ;;
15978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15980 ac_cs_silent=: ;;
15982 # This is an error.
15983 -*) as_fn_error $? "unrecognized option: \`$1'
15984 Try \`$0 --help' for more information." ;;
15986 *) as_fn_append ac_config_targets " $1"
15987 ac_need_defaults=false ;;
15989 esac
15990 shift
15991 done
15993 ac_configure_extra_args=
15995 if $ac_cs_silent; then
15996 exec 6>/dev/null
15997 ac_configure_extra_args="$ac_configure_extra_args --silent"
16000 _ACEOF
16001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16002 if \$ac_cs_recheck; then
16003 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16004 shift
16005 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16006 CONFIG_SHELL='$SHELL'
16007 export CONFIG_SHELL
16008 exec "\$@"
16011 _ACEOF
16012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16013 exec 5>>config.log
16015 echo
16016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16017 ## Running $as_me. ##
16018 _ASBOX
16019 $as_echo "$ac_log"
16020 } >&5
16022 _ACEOF
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 _ACEOF
16026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16028 # Handling of arguments.
16029 for ac_config_target in $ac_config_targets
16031 case $ac_config_target in
16032 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
16033 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
16034 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
16035 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
16036 "src/include/builddefs") CONFIG_FILES="$CONFIG_FILES src/include/builddefs" ;;
16037 "src/include/pcp.conf") CONFIG_FILES="$CONFIG_FILES src/include/pcp.conf" ;;
16038 "pcp.lsm") CONFIG_FILES="$CONFIG_FILES pcp.lsm" ;;
16039 "debian/pcp.preinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.preinst.head" ;;
16040 "debian/pcp.postinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.postinst.head" ;;
16041 "build/tar/preinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/preinstall.head" ;;
16042 "build/tar/postinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/postinstall.head" ;;
16043 "build/GNUlocaldefs") CONFIG_FILES="$CONFIG_FILES build/GNUlocaldefs" ;;
16044 "build/mac/uninstall-pcp") CONFIG_FILES="$CONFIG_FILES build/mac/uninstall-pcp" ;;
16046 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16047 esac
16048 done
16051 # If the user did not use the arguments to specify the items to instantiate,
16052 # then the envvar interface is used. Set only those that are not.
16053 # We use the long form for the default assignment because of an extremely
16054 # bizarre bug on SunOS 4.1.3.
16055 if $ac_need_defaults; then
16056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16060 # Have a temporary directory for convenience. Make it in the build tree
16061 # simply because there is no reason against having it here, and in addition,
16062 # creating and moving files from /tmp can sometimes cause problems.
16063 # Hook for its removal unless debugging.
16064 # Note that there is a small window in which the directory will not be cleaned:
16065 # after its creation but before its name has been assigned to `$tmp'.
16066 $debug ||
16068 tmp= ac_tmp=
16069 trap 'exit_status=$?
16070 : "${ac_tmp:=$tmp}"
16071 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16073 trap 'as_fn_exit 1' 1 2 13 15
16075 # Create a (secure) tmp directory for tmp files.
16078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16079 test -d "$tmp"
16080 } ||
16082 tmp=./conf$$-$RANDOM
16083 (umask 077 && mkdir "$tmp")
16084 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16085 ac_tmp=$tmp
16087 # Set up the scripts for CONFIG_FILES section.
16088 # No need to generate them if there are no CONFIG_FILES.
16089 # This happens for instance with `./config.status config.h'.
16090 if test -n "$CONFIG_FILES"; then
16093 ac_cr=`echo X | tr X '\015'`
16094 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16095 # But we know of no other shell where ac_cr would be empty at this
16096 # point, so we can use a bashism as a fallback.
16097 if test "x$ac_cr" = x; then
16098 eval ac_cr=\$\'\\r\'
16100 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16101 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16102 ac_cs_awk_cr='\\r'
16103 else
16104 ac_cs_awk_cr=$ac_cr
16107 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16108 _ACEOF
16112 echo "cat >conf$$subs.awk <<_ACEOF" &&
16113 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16114 echo "_ACEOF"
16115 } >conf$$subs.sh ||
16116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16117 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16118 ac_delim='%!_!# '
16119 for ac_last_try in false false false false false :; do
16120 . ./conf$$subs.sh ||
16121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16123 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16124 if test $ac_delim_n = $ac_delim_num; then
16125 break
16126 elif $ac_last_try; then
16127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16128 else
16129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16131 done
16132 rm -f conf$$subs.sh
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16136 _ACEOF
16137 sed -n '
16139 s/^/S["/; s/!.*/"]=/
16142 s/^[^!]*!//
16143 :repl
16144 t repl
16145 s/'"$ac_delim"'$//
16146 t delim
16149 s/\(.\{148\}\)..*/\1/
16150 t more1
16151 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16154 b repl
16155 :more1
16156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16159 s/.\{148\}//
16160 t nl
16161 :delim
16163 s/\(.\{148\}\)..*/\1/
16164 t more2
16165 s/["\\]/\\&/g; s/^/"/; s/$/"/
16168 :more2
16169 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16172 s/.\{148\}//
16173 t delim
16174 ' <conf$$subs.awk | sed '
16175 /^[^""]/{
16177 s/\n//
16179 ' >>$CONFIG_STATUS || ac_write_fail=1
16180 rm -f conf$$subs.awk
16181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16182 _ACAWK
16183 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16184 for (key in S) S_is_set[key] = 1
16185 FS = "\a"
16189 line = $ 0
16190 nfields = split(line, field, "@")
16191 substed = 0
16192 len = length(field[1])
16193 for (i = 2; i < nfields; i++) {
16194 key = field[i]
16195 keylen = length(key)
16196 if (S_is_set[key]) {
16197 value = S[key]
16198 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16199 len += length(value) + length(field[++i])
16200 substed = 1
16201 } else
16202 len += 1 + keylen
16205 print line
16208 _ACAWK
16209 _ACEOF
16210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16211 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16212 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16213 else
16215 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16216 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16217 _ACEOF
16219 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16220 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16221 # trailing colons and then remove the whole line if VPATH becomes empty
16222 # (actually we leave an empty line to preserve line numbers).
16223 if test "x$srcdir" = x.; then
16224 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16226 s///
16227 s/^/:/
16228 s/[ ]*$/:/
16229 s/:\$(srcdir):/:/g
16230 s/:\${srcdir}:/:/g
16231 s/:@srcdir@:/:/g
16232 s/^:*//
16233 s/:*$//
16235 s/\(=[ ]*\).*/\1/
16237 s/\n//
16238 s/^[^=]*=[ ]*$//
16242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16243 fi # test -n "$CONFIG_FILES"
16245 # Set up the scripts for CONFIG_HEADERS section.
16246 # No need to generate them if there are no CONFIG_HEADERS.
16247 # This happens for instance with `./config.status Makefile'.
16248 if test -n "$CONFIG_HEADERS"; then
16249 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16250 BEGIN {
16251 _ACEOF
16253 # Transform confdefs.h into an awk script `defines.awk', embedded as
16254 # here-document in config.status, that substitutes the proper values into
16255 # config.h.in to produce config.h.
16257 # Create a delimiter string that does not exist in confdefs.h, to ease
16258 # handling of long lines.
16259 ac_delim='%!_!# '
16260 for ac_last_try in false false :; do
16261 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16262 if test -z "$ac_tt"; then
16263 break
16264 elif $ac_last_try; then
16265 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16266 else
16267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16269 done
16271 # For the awk script, D is an array of macro values keyed by name,
16272 # likewise P contains macro parameters if any. Preserve backslash
16273 # newline sequences.
16275 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16276 sed -n '
16277 s/.\{148\}/&'"$ac_delim"'/g
16278 t rset
16279 :rset
16280 s/^[ ]*#[ ]*define[ ][ ]*/ /
16281 t def
16283 :def
16284 s/\\$//
16285 t bsnl
16286 s/["\\]/\\&/g
16287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16288 D["\1"]=" \3"/p
16289 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16291 :bsnl
16292 s/["\\]/\\&/g
16293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16294 D["\1"]=" \3\\\\\\n"\\/p
16295 t cont
16296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16297 t cont
16299 :cont
16301 s/.\{148\}/&'"$ac_delim"'/g
16302 t clear
16303 :clear
16304 s/\\$//
16305 t bsnlc
16306 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16308 :bsnlc
16309 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16310 b cont
16311 ' <confdefs.h | sed '
16312 s/'"$ac_delim"'/"\\\
16313 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16316 for (key in D) D_is_set[key] = 1
16317 FS = "\a"
16319 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16320 line = \$ 0
16321 split(line, arg, " ")
16322 if (arg[1] == "#") {
16323 defundef = arg[2]
16324 mac1 = arg[3]
16325 } else {
16326 defundef = substr(arg[1], 2)
16327 mac1 = arg[2]
16329 split(mac1, mac2, "(") #)
16330 macro = mac2[1]
16331 prefix = substr(line, 1, index(line, defundef) - 1)
16332 if (D_is_set[macro]) {
16333 # Preserve the white space surrounding the "#".
16334 print prefix "define", macro P[macro] D[macro]
16335 next
16336 } else {
16337 # Replace #undef with comments. This is necessary, for example,
16338 # in the case of _POSIX_SOURCE, which is predefined and required
16339 # on some systems where configure will not decide to define it.
16340 if (defundef == "undef") {
16341 print "/*", prefix defundef, macro, "*/"
16342 next
16346 { print }
16347 _ACAWK
16348 _ACEOF
16349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16350 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16351 fi # test -n "$CONFIG_HEADERS"
16354 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16355 shift
16356 for ac_tag
16358 case $ac_tag in
16359 :[FHLC]) ac_mode=$ac_tag; continue;;
16360 esac
16361 case $ac_mode$ac_tag in
16362 :[FHL]*:*);;
16363 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16364 :[FH]-) ac_tag=-:-;;
16365 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16366 esac
16367 ac_save_IFS=$IFS
16368 IFS=:
16369 set x $ac_tag
16370 IFS=$ac_save_IFS
16371 shift
16372 ac_file=$1
16373 shift
16375 case $ac_mode in
16376 :L) ac_source=$1;;
16377 :[FH])
16378 ac_file_inputs=
16379 for ac_f
16381 case $ac_f in
16382 -) ac_f="$ac_tmp/stdin";;
16383 *) # Look for the file first in the build tree, then in the source tree
16384 # (if the path is not absolute). The absolute path cannot be DOS-style,
16385 # because $ac_f cannot contain `:'.
16386 test -f "$ac_f" ||
16387 case $ac_f in
16388 [\\/$]*) false;;
16389 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16390 esac ||
16391 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16392 esac
16393 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16394 as_fn_append ac_file_inputs " '$ac_f'"
16395 done
16397 # Let's still pretend it is `configure' which instantiates (i.e., don't
16398 # use $as_me), people would be surprised to read:
16399 # /* config.h. Generated by config.status. */
16400 configure_input='Generated from '`
16401 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16402 `' by configure.'
16403 if test x"$ac_file" != x-; then
16404 configure_input="$ac_file. $configure_input"
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16406 $as_echo "$as_me: creating $ac_file" >&6;}
16408 # Neutralize special characters interpreted by sed in replacement strings.
16409 case $configure_input in #(
16410 *\&* | *\|* | *\\* )
16411 ac_sed_conf_input=`$as_echo "$configure_input" |
16412 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16413 *) ac_sed_conf_input=$configure_input;;
16414 esac
16416 case $ac_tag in
16417 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16418 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16419 esac
16421 esac
16423 ac_dir=`$as_dirname -- "$ac_file" ||
16424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16425 X"$ac_file" : 'X\(//\)[^/]' \| \
16426 X"$ac_file" : 'X\(//\)$' \| \
16427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16428 $as_echo X"$ac_file" |
16429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16430 s//\1/
16433 /^X\(\/\/\)[^/].*/{
16434 s//\1/
16437 /^X\(\/\/\)$/{
16438 s//\1/
16441 /^X\(\/\).*/{
16442 s//\1/
16445 s/.*/./; q'`
16446 as_dir="$ac_dir"; as_fn_mkdir_p
16447 ac_builddir=.
16449 case "$ac_dir" in
16450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16453 # A ".." for each directory in $ac_dir_suffix.
16454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16455 case $ac_top_builddir_sub in
16456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16458 esac ;;
16459 esac
16460 ac_abs_top_builddir=$ac_pwd
16461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16462 # for backward compatibility:
16463 ac_top_builddir=$ac_top_build_prefix
16465 case $srcdir in
16466 .) # We are building in place.
16467 ac_srcdir=.
16468 ac_top_srcdir=$ac_top_builddir_sub
16469 ac_abs_top_srcdir=$ac_pwd ;;
16470 [\\/]* | ?:[\\/]* ) # Absolute name.
16471 ac_srcdir=$srcdir$ac_dir_suffix;
16472 ac_top_srcdir=$srcdir
16473 ac_abs_top_srcdir=$srcdir ;;
16474 *) # Relative name.
16475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16476 ac_top_srcdir=$ac_top_build_prefix$srcdir
16477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16478 esac
16479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16482 case $ac_mode in
16485 # CONFIG_FILE
16488 _ACEOF
16490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16491 # If the template does not know about datarootdir, expand it.
16492 # FIXME: This hack should be removed a few years after 2.60.
16493 ac_datarootdir_hack=; ac_datarootdir_seen=
16494 ac_sed_dataroot='
16495 /datarootdir/ {
16499 /@datadir@/p
16500 /@docdir@/p
16501 /@infodir@/p
16502 /@localedir@/p
16503 /@mandir@/p'
16504 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16505 *datarootdir*) ac_datarootdir_seen=yes;;
16506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16508 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16509 _ACEOF
16510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16511 ac_datarootdir_hack='
16512 s&@datadir@&$datadir&g
16513 s&@docdir@&$docdir&g
16514 s&@infodir@&$infodir&g
16515 s&@localedir@&$localedir&g
16516 s&@mandir@&$mandir&g
16517 s&\\\${datarootdir}&$datarootdir&g' ;;
16518 esac
16519 _ACEOF
16521 # Neutralize VPATH when `$srcdir' = `.'.
16522 # Shell code in configure.ac might set extrasub.
16523 # FIXME: do we really want to maintain this feature?
16524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525 ac_sed_extra="$ac_vpsub
16526 $extrasub
16527 _ACEOF
16528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16531 s|@configure_input@|$ac_sed_conf_input|;t t
16532 s&@top_builddir@&$ac_top_builddir_sub&;t t
16533 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16534 s&@srcdir@&$ac_srcdir&;t t
16535 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16536 s&@top_srcdir@&$ac_top_srcdir&;t t
16537 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16538 s&@builddir@&$ac_builddir&;t t
16539 s&@abs_builddir@&$ac_abs_builddir&;t t
16540 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16541 $ac_datarootdir_hack
16543 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16544 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16546 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16547 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16548 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16549 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16551 which seems to be undefined. Please make sure it is defined" >&5
16552 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16553 which seems to be undefined. Please make sure it is defined" >&2;}
16555 rm -f "$ac_tmp/stdin"
16556 case $ac_file in
16557 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16558 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16559 esac \
16560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16564 # CONFIG_HEADER
16566 if test x"$ac_file" != x-; then
16568 $as_echo "/* $configure_input */" \
16569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16570 } >"$ac_tmp/config.h" \
16571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16572 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16574 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16575 else
16576 rm -f "$ac_file"
16577 mv "$ac_tmp/config.h" "$ac_file" \
16578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16580 else
16581 $as_echo "/* $configure_input */" \
16582 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16583 || as_fn_error $? "could not create -" "$LINENO" 5
16588 esac
16590 done # for ac_tag
16593 as_fn_exit 0
16594 _ACEOF
16595 ac_clean_files=$ac_clean_files_save
16597 test $ac_write_fail = 0 ||
16598 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16601 # configure is writing to config.log, and then calls config.status.
16602 # config.status does its own redirection, appending to config.log.
16603 # Unfortunately, on DOS this fails, as config.log is still kept open
16604 # by configure, so config.status won't be able to write to it; its
16605 # output is simply discarded. So we exec the FD to /dev/null,
16606 # effectively closing config.log, so it can be properly (re)opened and
16607 # appended to by config.status. When coming back to configure, we
16608 # need to make the FD available again.
16609 if test "$no_create" != yes; then
16610 ac_cs_success=:
16611 ac_config_status_args=
16612 test "$silent" = yes &&
16613 ac_config_status_args="$ac_config_status_args --quiet"
16614 exec 5>/dev/null
16615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16616 exec 5>>config.log
16617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16618 # would make configure fail if this is the last instruction.
16619 $ac_cs_success || as_fn_exit 1
16621 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16623 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}