_SOCKET_H # include #endif #if HAVE_LINUX_INET_DIAG_H # include #endif " if test "x$ac_cv_header_linux_inet_diag_h" = xyes then : printf "%s\n" "#define HAVE_LINUX_INET_DIAG_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "linux/netdevice.h" "ac_cv_header_linux_netdevice_h" " #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_SOCKET_H # include #endif #if HAVE_LINUX_IF_H # include #endif " if test "x$ac_cv_header_linux_netdevice_h" = xyes then : printf "%s\n" "#define HAVE_LINUX_NETDEVICE_H 1" >>confdefs.h fi # For ethstat module for ac_header in linux/sockios.h do : ac_fn_c_check_header_compile "$LINENO" "linux/sockios.h" "ac_cv_header_linux_sockios_h" " #if HAVE_SYS_IOCTL_H # include #endif #if HAVE_NET_IF_H # include #endif " if test "x$ac_cv_header_linux_sockios_h" = xyes then : printf "%s\n" "#define HAVE_LINUX_SOCKIOS_H 1" >>confdefs.h have_linux_sockios_h="yes" else case e in #( e) have_linux_sockios_h="no" ;; esac fi done for ac_header in linux/ethtool.h do : ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" " #if HAVE_SYS_IOCTL_H # include #endif #if HAVE_NET_IF_H # include #endif #if HAVE_LINUX_SOCKIOS_H # include #endif " if test "x$ac_cv_header_linux_ethtool_h" = xyes then : printf "%s\n" "#define HAVE_LINUX_ETHTOOL_H 1" >>confdefs.h have_linux_ethtool_h="yes" else case e in #( e) have_linux_ethtool_h="no" ;; esac fi done # For ipvs module have_linux_ip_vs_h="no" have_net_ip_vs_h="no" have_ip_vs_h="no" ip_vs_h_needs_kernel_cflags="no" if test "x$ac_system" = "xLinux" then for ac_header in linux/ip_vs.h do : ac_fn_c_check_header_compile "$LINENO" "linux/ip_vs.h" "ac_cv_header_linux_ip_vs_h" "$ac_includes_default" if test "x$ac_cv_header_linux_ip_vs_h" = xyes then : printf "%s\n" "#define HAVE_LINUX_IP_VS_H 1" >>confdefs.h have_linux_ip_vs_h="yes" fi done for ac_header in net/ip_vs.h do : ac_fn_c_check_header_compile "$LINENO" "net/ip_vs.h" "ac_cv_header_net_ip_vs_h" "$ac_includes_default" if test "x$ac_cv_header_net_ip_vs_h" = xyes then : printf "%s\n" "#define HAVE_NET_IP_VS_H 1" >>confdefs.h have_net_ip_vs_h="yes" fi done for ac_header in ip_vs.h do : ac_fn_c_check_header_compile "$LINENO" "ip_vs.h" "ac_cv_header_ip_vs_h" "$ac_includes_default" if test "x$ac_cv_header_ip_vs_h" = xyes then : printf "%s\n" "#define HAVE_IP_VS_H 1" >>confdefs.h have_ip_vs_h="yes" fi done if test "x$have_linux_ip_vs_h$have_net_ip_vs_h$have_ip_vs_h" = "xnonono" && test -d "$KERNEL_DIR" then SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $KERNEL_CFLAGS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Did not find ip_vs.h. Trying again using headers from $KERNEL_DIR." >&5 printf "%s\n" "$as_me: Did not find ip_vs.h. Trying again using headers from $KERNEL_DIR." >&6;} for ac_header in linux/ip_vs.h do : ac_fn_c_check_header_compile "$LINENO" "linux/ip_vs.h" "ac_cv_header_linux_ip_vs_h" "$ac_includes_default" if test "x$ac_cv_header_linux_ip_vs_h" = xyes then : printf "%s\n" "#define HAVE_LINUX_IP_VS_H 1" >>confdefs.h have_linux_ip_vs_h="yes" fi done for ac_header in net/ip_vs.h do : ac_fn_c_check_header_compile "$LINENO" "net/ip_vs.h" "ac_cv_header_net_ip_vs_h" "$ac_includes_default" if test "x$ac_cv_header_net_ip_vs_h" = xyes then : printf "%s\n" "#define HAVE_NET_IP_VS_H 1" >>confdefs.h have_net_ip_vs_h="yes" fi done for ac_header in ip_vs.h do : ac_fn_c_check_header_compile "$LINENO" "ip_vs.h" "ac_cv_header_ip_vs_h" "$ac_includes_default" if test "x$ac_cv_header_ip_vs_h" = xyes then : printf "%s\n" "#define HAVE_IP_VS_H 1" >>confdefs.h have_ip_vs_h="yes" fi done if test "x$have_linux_ip_vs_h" = "xyes" || test "x$have_net_ip_vs_h" = "xyes" || test "x$have_ip_vs_h" = "xyes" then ip_vs_h_needs_kernel_cflags="yes" fi CFLAGS="$SAVE_CFLAGS" fi fi if test "x$ip_vs_h_needs_kernel_cflags" = "xyes"; then IP_VS_H_NEEDS_KERNEL_CFLAGS_TRUE= IP_VS_H_NEEDS_KERNEL_CFLAGS_FALSE='#' else IP_VS_H_NEEDS_KERNEL_CFLAGS_TRUE='#' IP_VS_H_NEEDS_KERNEL_CFLAGS_FALSE= fi # For quota module ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" " #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_PARAM_H # include #endif " if test "x$ac_cv_header_sys_ucred_h" = xyes then : printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h fi # For mount interface ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_PARAM_H # include #endif " if test "x$ac_cv_header_sys_mount_h" = xyes then : printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h fi # For the email plugin ac_fn_c_check_header_compile "$LINENO" "linux/un.h" "ac_cv_header_linux_un_h" " #if HAVE_SYS_SOCKET_H # include #endif " if test "x$ac_cv_header_linux_un_h" = xyes then : printf "%s\n" "#define HAVE_LINUX_UN_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" if test "x$ac_cv_header_pwd_h" = xyes then : printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" if test "x$ac_cv_header_grp_h" = xyes then : printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" if test "x$ac_cv_header_sys_un_h" = xyes then : printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" if test "x$ac_cv_header_ctype_h" = xyes then : printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" if test "x$ac_cv_header_limits_h" = xyes then : printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "xfs/xqm.h" "ac_cv_header_xfs_xqm_h" "$ac_includes_default" if test "x$ac_cv_header_xfs_xqm_h" = xyes then : printf "%s\n" "#define HAVE_XFS_XQM_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "fs_info.h" "ac_cv_header_fs_info_h" "$ac_includes_default" if test "x$ac_cv_header_fs_info_h" = xyes then : printf "%s\n" "#define HAVE_FS_INFO_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "fshelp.h" "ac_cv_header_fshelp_h" "$ac_includes_default" if test "x$ac_cv_header_fshelp_h" = xyes then : printf "%s\n" "#define HAVE_FSHELP_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" if test "x$ac_cv_header_paths_h" = xyes then : printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default" if test "x$ac_cv_header_mntent_h" = xyes then : printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "mnttab.h" "ac_cv_header_mnttab_h" "$ac_includes_default" if test "x$ac_cv_header_mnttab_h" = xyes then : printf "%s\n" "#define HAVE_MNTTAB_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/fstyp.h" "ac_cv_header_sys_fstyp_h" "$ac_includes_default" if test "x$ac_cv_header_sys_fstyp_h" = xyes then : printf "%s\n" "#define HAVE_SYS_FSTYP_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/fs_types.h" "ac_cv_header_sys_fs_types_h" "$ac_includes_default" if test "x$ac_cv_header_sys_fs_types_h" = xyes then : printf "%s\n" "#define HAVE_SYS_FS_TYPES_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/mntent.h" "ac_cv_header_sys_mntent_h" "$ac_includes_default" if test "x$ac_cv_header_sys_mntent_h" = xyes then : printf "%s\n" "#define HAVE_SYS_MNTENT_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/mnttab.h" "ac_cv_header_sys_mnttab_h" "$ac_includes_default" if test "x$ac_cv_header_sys_mnttab_h" = xyes then : printf "%s\n" "#define HAVE_SYS_MNTTAB_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" if test "x$ac_cv_header_sys_statfs_h" = xyes then : printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" if test "x$ac_cv_header_sys_statvfs_h" = xyes then : printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" if test "x$ac_cv_header_sys_vfs_h" = xyes then : printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/vfstab.h" "ac_cv_header_sys_vfstab_h" "$ac_includes_default" if test "x$ac_cv_header_sys_vfstab_h" = xyes then : printf "%s\n" "#define HAVE_SYS_VFSTAB_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "sys/vmmeter.h" "ac_cv_header_sys_vmmeter_h" "$ac_includes_default" if test "x$ac_cv_header_sys_vmmeter_h" = xyes then : printf "%s\n" "#define HAVE_SYS_VMMETER_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "kvm.h" "ac_cv_header_kvm_h" "$ac_includes_default" if test "x$ac_cv_header_kvm_h" = xyes then : printf "%s\n" "#define HAVE_KVM_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default" if test "x$ac_cv_header_wordexp_h" = xyes then : printf "%s\n" "#define HAVE_WORDEXP_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" if test "x$ac_cv_header_locale_h" = xyes then : printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h fi # For the dns plugin ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default" if test "x$ac_cv_header_arpa_nameser_h" = xyes then : printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" " #if HAVE_ARPA_NAMESER_H # include #endif " if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes then : printf "%s\n" "#define HAVE_ARPA_NAMESER_COMPAT_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "#if HAVE_SYS_SOCKET_H # include #endif " if test "x$ac_cv_header_net_if_arp_h" = xyes then : printf "%s\n" "#define HAVE_NET_IF_ARP_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "net/ppp_defs.h" "ac_cv_header_net_ppp_defs_h" "$ac_includes_default" if test "x$ac_cv_header_net_ppp_defs_h" = xyes then : printf "%s\n" "#define HAVE_NET_PPP_DEFS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "net/if_ppp.h" "ac_cv_header_net_if_ppp_h" "#if HAVE_NET_PPP_DEFS_H # include #endif " if test "x$ac_cv_header_net_if_ppp_h" = xyes then : printf "%s\n" "#define HAVE_NET_IF_PPP_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#if HAVE_STDINT_H # include #endif #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_SOCKET_H # include #endif #if HAVE_NET_IF_H # include #endif #if HAVE_NETINET_IN_H # include #endif " if test "x$ac_cv_header_netinet_if_ether_h" = xyes then : printf "%s\n" "#define HAVE_NETINET_IF_ETHER_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "netinet/ip_compat.h" "ac_cv_header_netinet_ip_compat_h" "$ac_includes_default" if test "x$ac_cv_header_netinet_ip_compat_h" = xyes then : printf "%s\n" "#define HAVE_NETINET_IP_COMPAT_H 1" >>confdefs.h fi have_net_pfvar_h="no" for ac_header in net/pfvar.h do : ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" " #if HAVE_SYS_IOCTL_H # include #endif #if HAVE_SYS_SOCKET_H # include #endif #if HAVE_NET_IF_H # include #endif " if test "x$ac_cv_header_net_pfvar_h" = xyes then : printf "%s\n" "#define HAVE_NET_PFVAR_H 1" >>confdefs.h have_net_pfvar_h="yes" else case e in #( e) have_net_pfvar_h="no" ;; esac fi done # For the multimeter plugin have_termios_h="no" for ac_header in termios.h do : ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" if test "x$ac_cv_header_termios_h" = xyes then : printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h have_termios_h="yes" fi done # For the turbostat plugin have_asm_msrindex_h="no" for ac_header in asm/msr-index.h do : ac_fn_c_check_header_compile "$LINENO" "asm/msr-index.h" "ac_cv_header_asm_msr_index_h" "$ac_includes_default" if test "x$ac_cv_header_asm_msr_index_h" = xyes then : printf "%s\n" "#define HAVE_ASM_MSR_INDEX_H 1" >>confdefs.h have_asm_msrindex_h="yes" fi done if test "x$have_asm_msrindex_h" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether asm/msr-index.h has MSR_CORE_C3_RESIDENCY" >&5 printf %s "checking whether asm/msr-index.h has MSR_CORE_C3_RESIDENCY... " >&6; } if test ${c_cv_have_usable_asm_msrindex_h+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int y = MSR_CORE_C3_RESIDENCY; return(y); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_have_usable_asm_msrindex_h="yes" else case e in #( e) c_cv_have_usable_asm_msrindex_h="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_usable_asm_msrindex_h" >&5 printf "%s\n" "$c_cv_have_usable_asm_msrindex_h" >&6; } fi have_cpuid_h="no" for ac_header in cpuid.h do : ac_fn_c_check_header_compile "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default" if test "x$ac_cv_header_cpuid_h" = xyes then : printf "%s\n" "#define HAVE_CPUID_H 1" >>confdefs.h have_cpuid_h="yes" fi done ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" if test "x$ac_cv_header_sys_capability_h" = xyes then : printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h fi # # Checks for typedefs, structures, and compiler characteristics. # { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 printf %s "checking for an ANSI C-conforming const... " >&6; } if test ${ac_cv_c_const+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main (void) { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* IBM XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_const=yes else case e in #( e) ac_cv_c_const=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 printf "%s\n" "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then printf "%s\n" "#define const /**/" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 printf %s "checking for inline... " >&6; } if test ${ac_cv_c_inline+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo (void) {return 0; } $ac_kw foo_t foo (void) {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test "$ac_cv_c_inline" != no && break done ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 printf "%s\n" "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" if test "x$ac_cv_type_off_t" = xyes then : else case e in #( e) printf "%s\n" "#define off_t long int" >>confdefs.h ;; esac fi ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default " if test "x$ac_cv_type_pid_t" = xyes then : else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined _WIN64 && !defined __CYGWIN__ LLP64 #endif int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_pid_type='int' else case e in #( e) ac_pid_type='__int64' ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h ;; esac fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes then : else case e in #( e) printf "%s\n" "#define size_t unsigned int" >>confdefs.h ;; esac fi ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" if test "x$ac_cv_type_ssize_t" = xyes then : else case e in #( e) printf "%s\n" "#define ssize_t int" >>confdefs.h ;; esac fi ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" if test "x$ac_cv_type_uid_t" = xyes then : else case e in #( e) printf "%s\n" "#define uid_t int" >>confdefs.h ;; esac fi ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" if test "x$ac_cv_type_gid_t" = xyes then : else case e in #( e) printf "%s\n" "#define gid_t int" >>confdefs.h ;; esac fi ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" case $ac_cv_c_uint32_t in #( no|yes) ;; #( *) printf "%s\n" "#define _UINT32_T 1" >>confdefs.h printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h ;; esac # Obsolete code to be removed. if test $ac_cv_header_sys_time_h = yes; then printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi # End of obsolete code. # # Checks for library functions. # ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" if test "x$ac_cv_func_gettimeofday" = xyes then : printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" if test "x$ac_cv_func_select" = xyes then : printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" if test "x$ac_cv_func_strdup" = xyes then : printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" if test "x$ac_cv_func_strtol" = xyes then : printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" if test "x$ac_cv_func_getaddrinfo" = xyes then : printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" if test "x$ac_cv_func_getnameinfo" = xyes then : printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" if test "x$ac_cv_func_strchr" = xyes then : printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" if test "x$ac_cv_func_memcpy" = xyes then : printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" if test "x$ac_cv_func_strstr" = xyes then : printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp" if test "x$ac_cv_func_strcmp" = xyes then : printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp" if test "x$ac_cv_func_strncmp" = xyes then : printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strncpy" "ac_cv_func_strncpy" if test "x$ac_cv_func_strncpy" = xyes then : printf "%s\n" "#define HAVE_STRNCPY 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen" if test "x$ac_cv_func_strlen" = xyes then : printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" if test "x$ac_cv_func_strncasecmp" = xyes then : printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" if test "x$ac_cv_func_strcasecmp" = xyes then : printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog" if test "x$ac_cv_func_openlog" = xyes then : printf "%s\n" "#define HAVE_OPENLOG 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "closelog" "ac_cv_func_closelog" if test "x$ac_cv_func_closelog" = xyes then : printf "%s\n" "#define HAVE_CLOSELOG 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" if test "x$ac_cv_func_sysconf" = xyes then : printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" if test "x$ac_cv_func_setenv" = xyes then : printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "if_indextoname" "ac_cv_func_if_indextoname" if test "x$ac_cv_func_if_indextoname" = xyes then : printf "%s\n" "#define HAVE_IF_INDEXTONAME 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" if test "x$ac_cv_func_setlocale" = xyes then : printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h fi ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_strerror_r" = xyes then : ac_have_decl=1 else case e in #( e) ac_have_decl=0 ;; esac fi printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h if test $ac_cv_have_decl_strerror_r = yes; then # For backward compatibility's sake, define HAVE_STRERROR_R. # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well # as AC_CHECK_DECLS_ONCE.) printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 printf %s "checking whether strerror_r returns char *... " >&6; } if test ${ac_cv_func_strerror_r_char_p+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_cv_func_strerror_r_char_p=no if test $ac_cv_have_decl_strerror_r = yes; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { char buf[100]; char x = *strerror_r (0, buf, sizeof buf); char *p = strerror_r (0, buf, sizeof buf); return !p || x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_func_strerror_r_char_p=yes fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } if test $ac_cv_func_strerror_r_char_p = yes; then printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h fi SAVE_CFLAGS="$CFLAGS" # Emulate behavior of src/Makefile.am if test "x$GCC" = "xyes" then CFLAGS="$CFLAGS -Wall -Werror" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strtok_r" >&5 printf %s "checking for strtok_r... " >&6; } if test ${c_cv_have_strtok_r_default+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main (void) { char buffer[] = "foo,bar,baz"; char *token; char *dummy; char *saveptr; dummy = buffer; saveptr = NULL; while ((token = strtok_r (dummy, ",", &saveptr)) != NULL) { dummy = NULL; printf ("token = %s;\n", token); } ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : c_cv_have_strtok_r_default="yes" else case e in #( e) c_cv_have_strtok_r_default="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strtok_r_default" >&5 printf "%s\n" "$c_cv_have_strtok_r_default" >&6; } if test "x$c_cv_have_strtok_r_default" = "xno" then CFLAGS="$CFLAGS -D_REENTRANT=1" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs _REENTRANT" >&5 printf %s "checking if strtok_r needs _REENTRANT... " >&6; } if test ${c_cv_have_strtok_r_reentrant+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main (void) { char buffer[] = "foo,bar,baz"; char *token; char *dummy; char *saveptr; dummy = buffer; saveptr = NULL; while ((token = strtok_r (dummy, ",", &saveptr)) != NULL) { dummy = NULL; printf ("token = %s;\n", token); } ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : c_cv_have_strtok_r_reentrant="yes" else case e in #( e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "strtok_r isn't available. Please file a bugreport! See 'config.log' for more details" "$LINENO" 5; } ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strtok_r_reentrant" >&5 printf "%s\n" "$c_cv_have_strtok_r_reentrant" >&6; } fi CFLAGS="$SAVE_CFLAGS" if test "x$c_cv_have_strtok_r_reentrant" = "xyes" then CFLAGS="$CFLAGS -D_REENTRANT=1" fi ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" if test "x$ac_cv_func_getpwnam_r" = xyes then : printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r" if test "x$ac_cv_func_getgrnam_r" = xyes then : printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups" if test "x$ac_cv_func_setgroups" = xyes then : printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp" if test "x$ac_cv_func_regcomp" = xyes then : printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "regerror" "ac_cv_func_regerror" if test "x$ac_cv_func_regerror" = xyes then : printf "%s\n" "#define HAVE_REGERROR 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec" if test "x$ac_cv_func_regexec" = xyes then : printf "%s\n" "#define HAVE_REGEXEC 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "regfree" "ac_cv_func_regfree" if test "x$ac_cv_func_regfree" = xyes then : printf "%s\n" "#define HAVE_REGFREE 1" >>confdefs.h fi socket_needs_socket="no" for ac_func in socket do : ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" if test "x$ac_cv_func_socket" = xyes then : printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 printf %s "checking for socket in -lsocket... " >&6; } if test ${ac_cv_lib_socket_socket+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char socket (void); int main (void) { return socket (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_socket_socket=yes else case e in #( e) ac_cv_lib_socket_socket=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } if test "x$ac_cv_lib_socket_socket" = xyes then : socket_needs_socket="yes" else case e in #( e) as_fn_error $? "cannot find socket" "$LINENO" 5 ;; esac fi ;; esac fi done if test "x$socket_needs_socket" = "xyes"; then BUILD_WITH_LIBSOCKET_TRUE= BUILD_WITH_LIBSOCKET_FALSE='#' else BUILD_WITH_LIBSOCKET_TRUE='#' BUILD_WITH_LIBSOCKET_FALSE= fi clock_gettime_needs_rt="no" clock_gettime_needs_posix4="no" have_clock_gettime="no" for ac_func in clock_gettime do : ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" if test "x$ac_cv_func_clock_gettime" = xyes then : printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h have_clock_gettime="yes" fi done if test "x$have_clock_gettime" = "xno" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 printf %s "checking for clock_gettime in -lrt... " >&6; } if test ${ac_cv_lib_rt_clock_gettime+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char clock_gettime (void); int main (void) { return clock_gettime (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rt_clock_gettime=yes else case e in #( e) ac_cv_lib_rt_clock_gettime=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } if test "x$ac_cv_lib_rt_clock_gettime" = xyes then : clock_gettime_needs_rt="yes" have_clock_gettime="yes" fi fi if test "x$have_clock_gettime" = "xno" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lposix4" >&5 printf %s "checking for clock_gettime in -lposix4... " >&6; } if test ${ac_cv_lib_posix4_clock_gettime+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lposix4 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char clock_gettime (void); int main (void) { return clock_gettime (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_posix4_clock_gettime=yes else case e in #( e) ac_cv_lib_posix4_clock_gettime=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_clock_gettime" >&5 printf "%s\n" "$ac_cv_lib_posix4_clock_gettime" >&6; } if test "x$ac_cv_lib_posix4_clock_gettime" = xyes then : clock_gettime_needs_posix4="yes" have_clock_gettime="yes" fi fi if test "x$have_clock_gettime" = "xyes" then printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find clock_gettime" >&5 printf "%s\n" "$as_me: WARNING: cannot find clock_gettime" >&2;} fi nanosleep_needs_rt="no" nanosleep_needs_posix4="no" for ac_func in nanosleep do : ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" if test "x$ac_cv_func_nanosleep" = xyes then : printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 printf %s "checking for nanosleep in -lrt... " >&6; } if test ${ac_cv_lib_rt_nanosleep+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char nanosleep (void); int main (void) { return nanosleep (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rt_nanosleep=yes else case e in #( e) ac_cv_lib_rt_nanosleep=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } if test "x$ac_cv_lib_rt_nanosleep" = xyes then : nanosleep_needs_rt="yes" else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 printf %s "checking for nanosleep in -lposix4... " >&6; } if test ${ac_cv_lib_posix4_nanosleep+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lposix4 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char nanosleep (void); int main (void) { return nanosleep (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_posix4_nanosleep=yes else case e in #( e) ac_cv_lib_posix4_nanosleep=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 printf "%s\n" "$ac_cv_lib_posix4_nanosleep" >&6; } if test "x$ac_cv_lib_posix4_nanosleep" = xyes then : nanosleep_needs_posix4="yes" else case e in #( e) as_fn_error $? "cannot find nanosleep" "$LINENO" 5 ;; esac fi ;; esac fi ;; esac fi done if test "x$clock_gettime_needs_rt" = "xyes" || test "x$nanosleep_needs_rt" = "xyes"; then BUILD_WITH_LIBRT_TRUE= BUILD_WITH_LIBRT_FALSE='#' else BUILD_WITH_LIBRT_TRUE='#' BUILD_WITH_LIBRT_FALSE= fi if test "x$clock_gettime_needs_posix4" = "xyes" || test "x$nanosleep_needs_posix4" = "xyes"; then BUILD_WITH_LIBPOSIX4_TRUE= BUILD_WITH_LIBPOSIX4_FALSE='#' else BUILD_WITH_LIBPOSIX4_TRUE='#' BUILD_WITH_LIBPOSIX4_FALSE= fi for ac_func in sysctl do : ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl" if test "x$ac_cv_func_sysctl" = xyes then : printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h have_sysctl="yes" else case e in #( e) have_sysctl="no" ;; esac fi done for ac_func in sysctlbyname do : ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname" if test "x$ac_cv_func_sysctlbyname" = xyes then : printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h have_sysctlbyname="yes" else case e in #( e) have_sysctlbyname="no" ;; esac fi done for ac_func in host_statistics do : ac_fn_c_check_func "$LINENO" "host_statistics" "ac_cv_func_host_statistics" if test "x$ac_cv_func_host_statistics" = xyes then : printf "%s\n" "#define HAVE_HOST_STATISTICS 1" >>confdefs.h have_host_statistics="yes" else case e in #( e) have_host_statistics="no" ;; esac fi done for ac_func in processor_info do : ac_fn_c_check_func "$LINENO" "processor_info" "ac_cv_func_processor_info" if test "x$ac_cv_func_processor_info" = xyes then : printf "%s\n" "#define HAVE_PROCESSOR_INFO 1" >>confdefs.h have_processor_info="yes" else case e in #( e) have_processor_info="no" ;; esac fi done for ac_func in thread_info do : ac_fn_c_check_func "$LINENO" "thread_info" "ac_cv_func_thread_info" if test "x$ac_cv_func_thread_info" = xyes then : printf "%s\n" "#define HAVE_THREAD_INFO 1" >>confdefs.h have_thread_info="yes" else case e in #( e) have_thread_info="no" ;; esac fi done for ac_func in statfs do : ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs" if test "x$ac_cv_func_statfs" = xyes then : printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h have_statfs="yes" else case e in #( e) have_statfs="no" ;; esac fi done for ac_func in statvfs do : ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" if test "x$ac_cv_func_statvfs" = xyes then : printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h have_statvfs="yes" else case e in #( e) have_statvfs="no" ;; esac fi done for ac_func in getifaddrs do : ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" if test "x$ac_cv_func_getifaddrs" = xyes then : printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h have_getifaddrs="yes" else case e in #( e) have_getifaddrs="no" ;; esac fi done for ac_func in getloadavg do : ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" if test "x$ac_cv_func_getloadavg" = xyes then : printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h have_getloadavg="yes" else case e in #( e) have_getloadavg="no" ;; esac fi done for ac_func in syslog do : ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" if test "x$ac_cv_func_syslog" = xyes then : printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h have_syslog="yes" else case e in #( e) have_syslog="no" ;; esac fi done for ac_func in getutent do : ac_fn_c_check_func "$LINENO" "getutent" "ac_cv_func_getutent" if test "x$ac_cv_func_getutent" = xyes then : printf "%s\n" "#define HAVE_GETUTENT 1" >>confdefs.h have_getutent="yes" else case e in #( e) have_getutent="no" ;; esac fi done for ac_func in getutxent do : ac_fn_c_check_func "$LINENO" "getutxent" "ac_cv_func_getutxent" if test "x$ac_cv_func_getutxent" = xyes then : printf "%s\n" "#define HAVE_GETUTXENT 1" >>confdefs.h have_getutxent="yes" else case e in #( e) have_getutxent="no" ;; esac fi done # Check for strptime {{{ if test "x$GCC" = "xyes" then SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Wextra -Werror" fi for ac_func in strptime do : ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" if test "x$ac_cv_func_strptime" = xyes then : printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h have_strptime="yes" else case e in #( e) have_strptime="no" ;; esac fi done if test "x$have_strptime" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime is exported by default" >&5 printf %s "checking whether strptime is exported by default... " >&6; } if test ${c_cv_have_strptime_default+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { struct tm stm; (void) strptime ("2010-12-30%13:42:42", "%Y-%m-%dT%T", &stm); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_have_strptime_default="yes" else case e in #( e) c_cv_have_strptime_default="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strptime_default" >&5 printf "%s\n" "$c_cv_have_strptime_default" >&6; } fi if test "x$have_strptime" = "xyes" && test "x$c_cv_have_strptime_default" = "xno" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strptime needs standards mode" >&5 printf %s "checking whether strptime needs standards mode... " >&6; } if test ${c_cv_have_strptime_standards+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _ISOC99_SOURCE # define _ISOC99_SOURCE 1 #endif #ifndef _POSIX_C_SOURCE # define _POSIX_C_SOURCE 200112L #endif #ifndef _XOPEN_SOURCE # define _XOPEN_SOURCE 500 #endif #include int main (void) { struct tm stm; (void) strptime ("2010-12-30%13:42:42", "%Y-%m-%dT%T", &stm); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_have_strptime_standards="yes" else case e in #( e) c_cv_have_strptime_standards="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strptime_standards" >&5 printf "%s\n" "$c_cv_have_strptime_standards" >&6; } if test "x$c_cv_have_strptime_standards" = "xyes" then printf "%s\n" "#define STRPTIME_NEEDS_STANDARDS 1" >>confdefs.h else have_strptime="no" fi fi if test "x$GCC" = "xyes" then CFLAGS="$SAVE_CFLAGS" fi # }}} Check for strptime for ac_func in swapctl do : ac_fn_c_check_func "$LINENO" "swapctl" "ac_cv_func_swapctl" if test "x$ac_cv_func_swapctl" = xyes then : printf "%s\n" "#define HAVE_SWAPCTL 1" >>confdefs.h have_swapctl="yes" else case e in #( e) have_swapctl="no" ;; esac fi done if test "x$have_swapctl" = "xyes"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether swapctl takes two arguments" >&5 printf %s "checking whether swapctl takes two arguments... " >&6; } if test ${c_cv_have_swapctl_two_args+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_SYS_SWAP_H && !defined(_LP64) && _FILE_OFFSET_BITS == 64 # undef _FILE_OFFSET_BITS # undef _LARGEFILE64_SOURCE #endif #include #include #include #include int main (void) { int num = swapctl(0, NULL); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_have_swapctl_two_args="yes" else case e in #( e) c_cv_have_swapctl_two_args="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_swapctl_two_args" >&5 printf "%s\n" "$c_cv_have_swapctl_two_args" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether swapctl takes three arguments" >&5 printf %s "checking whether swapctl takes three arguments... " >&6; } if test ${c_cv_have_swapctl_three_args+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if HAVE_SYS_SWAP_H && !defined(_LP64) && _FILE_OFFSET_BITS == 64 # undef _FILE_OFFSET_BITS # undef _LARGEFILE64_SOURCE #endif #include #include #include #include int main (void) { int num = swapctl(0, NULL, 0); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_have_swapctl_three_args="yes" else case e in #( e) c_cv_have_swapctl_three_args="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_swapctl_three_args" >&5 printf "%s\n" "$c_cv_have_swapctl_three_args" >&6; } fi # Check for different versions of `swapctl' here.. if test "x$have_swapctl" = "xyes"; then if test "x$c_cv_have_swapctl_two_args" = "xyes"; then printf "%s\n" "#define HAVE_SWAPCTL_TWO_ARGS 1" >>confdefs.h fi if test "x$c_cv_have_swapctl_three_args" = "xyes"; then printf "%s\n" "#define HAVE_SWAPCTL_THREE_ARGS 1" >>confdefs.h fi fi # Check for NAN # Check whether --with-nan-emulation was given. if test ${with_nan_emulation+y} then : withval=$with_nan_emulation; if test "x$withval" = "xno"; then nan_type="none" else if test "x$withval" = "xyes"; then nan_type="zero" else nan_type="$withval" fi; fi else case e in #( e) nan_type="none" ;; esac fi if test "x$nan_type" = "xnone"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NAN is defined by default" >&5 printf %s "checking whether NAN is defined by default... " >&6; } if test ${c_cv_have_nan_default+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include static double foo = NAN; int main (void) { if (isnan (foo)) return 0; else return 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_have_nan_default="yes" else case e in #( e) c_cv_have_nan_default="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_nan_default" >&5 printf "%s\n" "$c_cv_have_nan_default" >&6; } if test "x$c_cv_have_nan_default" = "xyes" then nan_type="default" fi fi if test "x$nan_type" = "xnone"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NAN is defined by __USE_ISOC99" >&5 printf %s "checking whether NAN is defined by __USE_ISOC99... " >&6; } if test ${c_cv_have_nan_isoc+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #define __USE_ISOC99 1 #include static double foo = NAN; int main (void) { if (isnan (foo)) return 0; else return 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_have_nan_isoc="yes" else case e in #( e) c_cv_have_nan_isoc="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_nan_isoc" >&5 printf "%s\n" "$c_cv_have_nan_isoc" >&6; } if test "x$c_cv_have_nan_isoc" = "xyes" then nan_type="isoc99" fi fi if test "x$nan_type" = "xnone"; then SAVE_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -lm" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NAN can be defined by 0/0" >&5 printf %s "checking whether NAN can be defined by 0/0... " >&6; } if test ${c_cv_have_nan_zero+y} then : printf %s "(cached) " >&6 else case e in #( e) if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See 'config.log' for more details" "$LINENO" 5; } else case e in #( e) # ac_fn_c_try_run LINENO # ---------------------- # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that # executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } then : ac_retval=0 else case e in #( e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status ;; esac fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifdef NAN # undef NAN #endif #define NAN (0.0 / 0.0) #ifndef isnan # define isnan(f) ((f) != (f)) #endif static double foo = NAN; int main (void) { if (isnan (foo)) return 0; else return 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : c_cv_have_nan_zero="yes" else case e in #( e) c_cv_have_nan_zero="no" ;; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_nan_zero" >&5 printf "%s\n" "$c_cv_have_nan_zero" >&6; } LDFLAGS=$SAVE_LDFLAGS if test "x$c_cv_have_nan_zero" = "xyes" then nan_type="zero" fi fi if test "x$nan_type" = "xdefault"; then printf "%s\n" "#define NAN_STATIC_DEFAULT 1" >>confdefs.h else if test "x$nan_type" = "xisoc99"; then printf "%s\n" "#define NAN_STATIC_ISOC 1" >>confdefs.h else if test "x$nan_type" = "xzero"; then printf "%s\n" "#define NAN_ZERO_ZERO 1" >>confdefs.h else as_fn_error $? "Didn't find out how to statically initialize variables to NAN. Sorry." "$LINENO" 5 fi; fi; fi # Check whether --with-fp-layout was given. if test ${with_fp_layout+y} then : withval=$with_fp_layout; if test "x$withval" = "xnothing"; then fp_layout_type="nothing" else if test "x$withval" = "xendianflip"; then fp_layout_type="endianflip" else if test "x$withval" = "xintswap"; then fp_layout_type="intswap" else as_fn_error $? "Invalid argument for --with-fp-layout. Valid arguments are: nothing, endianflip, intswap" "$LINENO" 5; fi; fi; fi else case e in #( e) fp_layout_type="unknown" ;; esac fi if test "x$fp_layout_type" = "xunknown"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if doubles are stored in x86 representation" >&5 printf %s "checking if doubles are stored in x86 representation... " >&6; } if test ${c_cv_fp_layout_need_nothing+y} then : printf %s "(cached) " >&6 else case e in #( e) if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See 'config.log' for more details" "$LINENO" 5; } else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #if HAVE_STDINT_H # include #endif #if HAVE_INTTYPES_H # include #endif #if HAVE_STDBOOL_H # include #endif int main (void) { uint64_t i0; uint64_t i1; uint8_t c[8]; double d; d = 8.642135e130; memcpy ((void *) &i0, (void *) &d, 8); i1 = i0; memcpy ((void *) c, (void *) &i1, 8); if ((c[0] == 0x2f) && (c[1] == 0x25) && (c[2] == 0xc0) && (c[3] == 0xc7) && (c[4] == 0x43) && (c[5] == 0x2b) && (c[6] == 0x1f) && (c[7] == 0x5b)) return (0); else return (1); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : c_cv_fp_layout_need_nothing="yes" else case e in #( e) c_cv_fp_layout_need_nothing="no" ;; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_fp_layout_need_nothing" >&5 printf "%s\n" "$c_cv_fp_layout_need_nothing" >&6; } if test "x$c_cv_fp_layout_need_nothing" = "xyes"; then fp_layout_type="nothing" fi fi if test "x$fp_layout_type" = "xunknown"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if endianflip converts to x86 representation" >&5 printf %s "checking if endianflip converts to x86 representation... " >&6; } if test ${c_cv_fp_layout_need_endianflip+y} then : printf %s "(cached) " >&6 else case e in #( e) if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See 'config.log' for more details" "$LINENO" 5; } else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #if HAVE_STDINT_H # include #endif #if HAVE_INTTYPES_H # include #endif #if HAVE_STDBOOL_H # include #endif #define endianflip(A) ((((uint64_t)(A) & 0xff00000000000000LL) >> 56) | \ (((uint64_t)(A) & 0x00ff000000000000LL) >> 40) | \ (((uint64_t)(A) & 0x0000ff0000000000LL) >> 24) | \ (((uint64_t)(A) & 0x000000ff00000000LL) >> 8) | \ (((uint64_t)(A) & 0x00000000ff000000LL) << 8) | \ (((uint64_t)(A) & 0x0000000000ff0000LL) << 24) | \ (((uint64_t)(A) & 0x000000000000ff00LL) << 40) | \ (((uint64_t)(A) & 0x00000000000000ffLL) << 56)) int main (void) { uint64_t i0; uint64_t i1; uint8_t c[8]; double d; d = 8.642135e130; memcpy ((void *) &i0, (void *) &d, 8); i1 = endianflip (i0); memcpy ((void *) c, (void *) &i1, 8); if ((c[0] == 0x2f) && (c[1] == 0x25) && (c[2] == 0xc0) && (c[3] == 0xc7) && (c[4] == 0x43) && (c[5] == 0x2b) && (c[6] == 0x1f) && (c[7] == 0x5b)) return (0); else return (1); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : c_cv_fp_layout_need_endianflip="yes" else case e in #( e) c_cv_fp_layout_need_endianflip="no" ;; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_fp_layout_need_endianflip" >&5 printf "%s\n" "$c_cv_fp_layout_need_endianflip" >&6; } if test "x$c_cv_fp_layout_need_endianflip" = "xyes"; then fp_layout_type="endianflip" fi fi if test "x$fp_layout_type" = "xunknown"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if intswap converts to x86 representation" >&5 printf %s "checking if intswap converts to x86 representation... " >&6; } if test ${c_cv_fp_layout_need_intswap+y} then : printf %s "(cached) " >&6 else case e in #( e) if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot run test program while cross compiling See 'config.log' for more details" "$LINENO" 5; } else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #if HAVE_STDINT_H # include #endif #if HAVE_INTTYPES_H # include #endif #if HAVE_STDBOOL_H # include #endif #define intswap(A) ((((uint64_t)(A) & 0xffffffff00000000LL) >> 32) | \ (((uint64_t)(A) & 0x00000000ffffffffLL) << 32)) int main (void) { uint64_t i0; uint64_t i1; uint8_t c[8]; double d; d = 8.642135e130; memcpy ((void *) &i0, (void *) &d, 8); i1 = intswap (i0); memcpy ((void *) c, (void *) &i1, 8); if ((c[0] == 0x2f) && (c[1] == 0x25) && (c[2] == 0xc0) && (c[3] == 0xc7) && (c[4] == 0x43) && (c[5] == 0x2b) && (c[6] == 0x1f) && (c[7] == 0x5b)) return (0); else return (1); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO" then : c_cv_fp_layout_need_intswap="yes" else case e in #( e) c_cv_fp_layout_need_intswap="no" ;; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_fp_layout_need_intswap" >&5 printf "%s\n" "$c_cv_fp_layout_need_intswap" >&6; } if test "x$c_cv_fp_layout_need_intswap" = "xyes"; then fp_layout_type="intswap" fi fi if test "x$fp_layout_type" = "xnothing"; then printf "%s\n" "#define FP_LAYOUT_NEED_NOTHING 1" >>confdefs.h else if test "x$fp_layout_type" = "xendianflip"; then printf "%s\n" "#define FP_LAYOUT_NEED_ENDIANFLIP 1" >>confdefs.h else if test "x$fp_layout_type" = "xintswap"; then printf "%s\n" "#define FP_LAYOUT_NEED_INTSWAP 1" >>confdefs.h else as_fn_error $? "Didn't find out how doubles are stored in memory. Sorry." "$LINENO" 5 fi; fi; fi # --with-useragent {{{ # Check whether --with-useragent was given. if test ${with_useragent+y} then : withval=$with_useragent; if test "x$withval" != "xno" && test "x$withval" != "xyes" then printf "%s\n" "#define COLLECTD_USERAGENT \"$withval\"" >>confdefs.h fi fi # }}} have_getfsstat="no" for ac_func in getfsstat do : ac_fn_c_check_func "$LINENO" "getfsstat" "ac_cv_func_getfsstat" if test "x$ac_cv_func_getfsstat" = xyes then : printf "%s\n" "#define HAVE_GETFSSTAT 1" >>confdefs.h have_getfsstat="yes" fi done have_getvfsstat="no" for ac_func in getvfsstat do : ac_fn_c_check_func "$LINENO" "getvfsstat" "ac_cv_func_getvfsstat" if test "x$ac_cv_func_getvfsstat" = xyes then : printf "%s\n" "#define HAVE_GETVFSSTAT 1" >>confdefs.h have_getvfsstat="yes" fi done have_listmntent="no" for ac_func in listmntent do : ac_fn_c_check_func "$LINENO" "listmntent" "ac_cv_func_listmntent" if test "x$ac_cv_func_listmntent" = xyes then : printf "%s\n" "#define HAVE_LISTMNTENT 1" >>confdefs.h have_listmntent="yes" fi done have_getmntent="no" for ac_func in getmntent do : ac_fn_c_check_func "$LINENO" "getmntent" "ac_cv_func_getmntent" if test "x$ac_cv_func_getmntent" = xyes then : printf "%s\n" "#define HAVE_GETMNTENT 1" >>confdefs.h have_getmntent="c" fi done if test "x$have_getmntent" = "xno"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getmntent in -lsun" >&5 printf %s "checking for getmntent in -lsun... " >&6; } if test ${ac_cv_lib_sun_getmntent+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsun $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char getmntent (void); int main (void) { return getmntent (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_sun_getmntent=yes else case e in #( e) ac_cv_lib_sun_getmntent=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getmntent" >&5 printf "%s\n" "$ac_cv_lib_sun_getmntent" >&6; } if test "x$ac_cv_lib_sun_getmntent" = xyes then : have_getmntent="sun" fi fi if test "x$have_getmntent" = "xno"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getmntent in -lseq" >&5 printf %s "checking for getmntent in -lseq... " >&6; } if test ${ac_cv_lib_seq_getmntent+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lseq $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char getmntent (void); int main (void) { return getmntent (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_seq_getmntent=yes else case e in #( e) ac_cv_lib_seq_getmntent=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seq_getmntent" >&5 printf "%s\n" "$ac_cv_lib_seq_getmntent" >&6; } if test "x$ac_cv_lib_seq_getmntent" = xyes then : have_getmntent="seq" fi fi if test "x$have_getmntent" = "xno"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getmntent in -lgen" >&5 printf %s "checking for getmntent in -lgen... " >&6; } if test ${ac_cv_lib_gen_getmntent+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgen $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char getmntent (void); int main (void) { return getmntent (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_gen_getmntent=yes else case e in #( e) ac_cv_lib_gen_getmntent=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getmntent" >&5 printf "%s\n" "$ac_cv_lib_gen_getmntent" >&6; } if test "x$ac_cv_lib_gen_getmntent" = xyes then : have_getmntent="gen" fi fi if test "x$have_getmntent" = "xc"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getmntent takes one argument" >&5 printf %s "checking whether getmntent takes one argument... " >&6; } if test ${c_cv_have_one_getmntent+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "$srcdir/src/utils_mount.h" int main (void) { FILE *fh; struct mntent *me; fh = setmntent ("/etc/mtab", "r"); me = getmntent (fh); return(me->mnt_passno); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_have_one_getmntent="yes" else case e in #( e) c_cv_have_one_getmntent="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_one_getmntent" >&5 printf "%s\n" "$c_cv_have_one_getmntent" >&6; } { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getmntent takes two arguments" >&5 printf %s "checking whether getmntent takes two arguments... " >&6; } if test ${c_cv_have_two_getmntent+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include "$srcdir/src/utils_mount.h" int main (void) { FILE *fh; struct mnttab mt; int status; fh = fopen ("/etc/mnttab", "r"); status = getmntent (fh, &mt); return(status); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_have_two_getmntent="yes" else case e in #( e) c_cv_have_two_getmntent="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_two_getmntent" >&5 printf "%s\n" "$c_cv_have_two_getmntent" >&6; } fi # Check for different versions of `getmntent' here.. if test "x$have_getmntent" = "xc"; then if test "x$c_cv_have_one_getmntent" = "xyes"; then printf "%s\n" "#define HAVE_ONE_GETMNTENT 1" >>confdefs.h fi if test "x$c_cv_have_two_getmntent" = "xyes"; then printf "%s\n" "#define HAVE_TWO_GETMNTENT 1" >>confdefs.h fi fi if test "x$have_getmntent" = "xsun"; then printf "%s\n" "#define HAVE_SUN_GETMNTENT 1" >>confdefs.h fi if test "x$have_getmntent" = "xseq"; then printf "%s\n" "#define HAVE_SEQ_GETMNTENT 1" >>confdefs.h fi if test "x$have_getmntent" = "xgen"; then printf "%s\n" "#define HAVE_GEN_GETMNTENT 1" >>confdefs.h fi # Check for htonll { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if have htonll defined" >&5 printf %s "checking if have htonll defined... " >&6; } if test ${c_cv_have_htonll+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_INTTYPES_H # include #endif int main (void) { return htonll(0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : c_cv_have_htonll="yes" else case e in #( e) c_cv_have_htonll="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_htonll" >&5 printf "%s\n" "$c_cv_have_htonll" >&6; } if test "x$c_cv_have_htonll" = "xyes" then printf "%s\n" "#define HAVE_HTONLL 1" >>confdefs.h fi # Check for structures ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_ibytes" "ac_cv_member_struct_if_data_ifi_ibytes" " #include #include #include " if test "x$ac_cv_member_struct_if_data_ifi_ibytes" = xyes then : printf "%s\n" "#define HAVE_STRUCT_IF_DATA_IFI_IBYTES 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_IF_DATA 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_opackets" "ac_cv_member_struct_if_data_ifi_opackets" " #include #include #include " if test "x$ac_cv_member_struct_if_data_ifi_opackets" = xyes then : printf "%s\n" "#define HAVE_STRUCT_IF_DATA_IFI_OPACKETS 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_IF_DATA 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_ierrors" "ac_cv_member_struct_if_data_ifi_ierrors" " #include #include #include " if test "x$ac_cv_member_struct_if_data_ifi_ierrors" = xyes then : printf "%s\n" "#define HAVE_STRUCT_IF_DATA_IFI_IERRORS 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_IF_DATA 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct net_device_stats" "rx_bytes" "ac_cv_member_struct_net_device_stats_rx_bytes" " #include #include #include #include " if test "x$ac_cv_member_struct_net_device_stats_rx_bytes" = xyes then : printf "%s\n" "#define HAVE_STRUCT_NET_DEVICE_STATS_RX_BYTES 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_NET_DEVICE_STATS 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct net_device_stats" "tx_packets" "ac_cv_member_struct_net_device_stats_tx_packets" " #include #include #include #include " if test "x$ac_cv_member_struct_net_device_stats_tx_packets" = xyes then : printf "%s\n" "#define HAVE_STRUCT_NET_DEVICE_STATS_TX_PACKETS 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_NET_DEVICE_STATS 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct net_device_stats" "rx_errors" "ac_cv_member_struct_net_device_stats_rx_errors" " #include #include #include #include " if test "x$ac_cv_member_struct_net_device_stats_rx_errors" = xyes then : printf "%s\n" "#define HAVE_STRUCT_NET_DEVICE_STATS_RX_ERRORS 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_NET_DEVICE_STATS 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct inet_diag_req" "id" "ac_cv_member_struct_inet_diag_req_id" " #include " if test "x$ac_cv_member_struct_inet_diag_req_id" = xyes then : printf "%s\n" "#define HAVE_STRUCT_INET_DIAG_REQ_ID 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_LINUX_INET_DIAG_REQ 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct inet_diag_req" "idiag_states" "ac_cv_member_struct_inet_diag_req_idiag_states" " #include " if test "x$ac_cv_member_struct_inet_diag_req_idiag_states" = xyes then : printf "%s\n" "#define HAVE_STRUCT_INET_DIAG_REQ_IDIAG_STATES 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_LINUX_INET_DIAG_REQ 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct ip_mreqn" "imr_ifindex" "ac_cv_member_struct_ip_mreqn_imr_ifindex" " #include #include " if test "x$ac_cv_member_struct_ip_mreqn_imr_ifindex" = xyes then : printf "%s\n" "#define HAVE_STRUCT_IP_MREQN_IMR_IFINDEX 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_pid" "ac_cv_member_struct_kinfo_proc_ki_pid" " #include #include #include #include " if test "x$ac_cv_member_struct_kinfo_proc_ki_pid" = xyes then : printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_KI_PID 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_FREEBSD 1" >>confdefs.h have_struct_kinfo_proc_freebsd="yes" else case e in #( e) have_struct_kinfo_proc_freebsd="no" ;; esac fi ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_rssize" "ac_cv_member_struct_kinfo_proc_ki_rssize" " #include #include #include #include " if test "x$ac_cv_member_struct_kinfo_proc_ki_rssize" = xyes then : printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_KI_RSSIZE 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_FREEBSD 1" >>confdefs.h have_struct_kinfo_proc_freebsd="yes" else case e in #( e) have_struct_kinfo_proc_freebsd="no" ;; esac fi ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_rusage" "ac_cv_member_struct_kinfo_proc_ki_rusage" " #include #include #include #include " if test "x$ac_cv_member_struct_kinfo_proc_ki_rusage" = xyes then : printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_KI_RUSAGE 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_FREEBSD 1" >>confdefs.h have_struct_kinfo_proc_freebsd="yes" else case e in #( e) have_struct_kinfo_proc_freebsd="no" ;; esac fi ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_pid" "ac_cv_member_struct_kinfo_proc_p_pid" " #include #include #include " if test "x$ac_cv_member_struct_kinfo_proc_p_pid" = xyes then : printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_P_PID 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_OPENBSD 1" >>confdefs.h have_struct_kinfo_proc_openbsd="yes" else case e in #( e) have_struct_kinfo_proc_openbsd="no" ;; esac fi ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_vm_rssize" "ac_cv_member_struct_kinfo_proc_p_vm_rssize" " #include #include #include " if test "x$ac_cv_member_struct_kinfo_proc_p_vm_rssize" = xyes then : printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_P_VM_RSSIZE 1" >>confdefs.h printf "%s\n" "#define HAVE_STRUCT_KINFO_PROC_OPENBSD 1" >>confdefs.h have_struct_kinfo_proc_openbsd="yes" else case e in #( e) have_struct_kinfo_proc_openbsd="no" ;; esac fi ac_fn_c_check_member "$LINENO" "struct udphdr" "uh_dport" "ac_cv_member_struct_udphdr_uh_dport" "#define _BSD_SOURCE #define _DEFAULT_SOURCE #if HAVE_STDINT_H # include #endif #if HAVE_SYS_TYPES_H # include #endif #if HAVE_NETINET_IN_SYSTM_H # include #endif #if HAVE_NETINET_IN_H # include #endif #if HAVE_NETINET_IP_H # include #endif #if HAVE_NETINET_UDP_H # include #endif " if test "x$ac_cv_member_struct_udphdr_uh_dport" = xyes then : printf "%s\n" "#define HAVE_STRUCT_UDPHDR_UH_DPORT 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct udphdr" "uh_sport" "ac_cv_member_struct_udphdr_uh_sport" "#define _BSD_SOURCE #define _DEFAULT_SOURCE #if HAVE_STDINT_H # include #endif #if HAVE_SYS_TYPES_H # include #endif #if HAVE_NETINET_IN_SYSTM_H # include #endif #if HAVE_NETINET_IN_H # include #endif #if HAVE_NETINET_IP_H # include #endif #if HAVE_NETINET_UDP_H # include #endif " if test "x$ac_cv_member_struct_udphdr_uh_sport" = xyes then : printf "%s\n" "#define HAVE_STRUCT_UDPHDR_UH_SPORT 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct udphdr" "dest" "ac_cv_member_struct_udphdr_dest" "#define _BSD_SOURCE #define _DEFAULT_SOURCE #if HAVE_STDINT_H # include #endif #if HAVE_SYS_TYPES_H # include #endif #if HAVE_NETINET_IN_SYSTM_H # include #endif #if HAVE_NETINET_IN_H # include #endif #if HAVE_NETINET_IP_H # include #endif #if HAVE_NETINET_UDP_H # include #endif " if test "x$ac_cv_member_struct_udphdr_dest" = xyes then : printf "%s\n" "#define HAVE_STRUCT_UDPHDR_DEST 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "struct udphdr" "source" "ac_cv_member_struct_udphdr_source" "#define _BSD_SOURCE #define _DEFAULT_SOURCE #if HAVE_STDINT_H # include #endif #if HAVE_SYS_TYPES_H # include #endif #if HAVE_NETINET_IN_SYSTM_H # include #endif #if HAVE_NETINET_IN_H # include #endif #if HAVE_NETINET_IP_H # include #endif #if HAVE_NETINET_UDP_H # include #endif " if test "x$ac_cv_member_struct_udphdr_source" = xyes then : printf "%s\n" "#define HAVE_STRUCT_UDPHDR_SOURCE 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "kstat_io_t" "nwritten" "ac_cv_member_kstat_io_t_nwritten" " #if HAVE_KSTAT_H # include #endif " if test "x$ac_cv_member_kstat_io_t_nwritten" = xyes then : printf "%s\n" "#define HAVE_KSTAT_IO_T_NWRITTEN 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "kstat_io_t" "writes" "ac_cv_member_kstat_io_t_writes" " #if HAVE_KSTAT_H # include #endif " if test "x$ac_cv_member_kstat_io_t_writes" = xyes then : printf "%s\n" "#define HAVE_KSTAT_IO_T_WRITES 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "kstat_io_t" "nwrites" "ac_cv_member_kstat_io_t_nwrites" " #if HAVE_KSTAT_H # include #endif " if test "x$ac_cv_member_kstat_io_t_nwrites" = xyes then : printf "%s\n" "#define HAVE_KSTAT_IO_T_NWRITES 1" >>confdefs.h fi ac_fn_c_check_member "$LINENO" "kstat_io_t" "wtime" "ac_cv_member_kstat_io_t_wtime" " #if HAVE_KSTAT_H # include #endif " if test "x$ac_cv_member_kstat_io_t_wtime" = xyes then : printf "%s\n" "#define HAVE_KSTAT_IO_T_WTIME 1" >>confdefs.h fi # # Checks for libraries begin here # with_libresolv="yes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 printf %s "checking for res_search in -lresolv... " >&6; } if test ${ac_cv_lib_resolv_res_search+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lresolv $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char res_search (void); int main (void) { return res_search (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_resolv_res_search=yes else case e in #( e) ac_cv_lib_resolv_res_search=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 printf "%s\n" "$ac_cv_lib_resolv_res_search" >&6; } if test "x$ac_cv_lib_resolv_res_search" = xyes then : printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h else case e in #( e) with_libresolv="no" ;; esac fi if test "x$with_libresolv" = "xyes"; then BUILD_WITH_LIBRESOLV_TRUE= BUILD_WITH_LIBRESOLV_FALSE='#' else BUILD_WITH_LIBRESOLV_TRUE='#' BUILD_WITH_LIBRESOLV_FALSE= fi with_libhal="yes" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libhal_device_property_exists in -lhal" >&5 printf %s "checking for libhal_device_property_exists in -lhal... " >&6; } if test ${ac_cv_lib_hal_libhal_device_property_exists+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lhal $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char libhal_device_property_exists (void); int main (void) { return libhal_device_property_exists (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_hal_libhal_device_property_exists=yes else case e in #( e) ac_cv_lib_hal_libhal_device_property_exists=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hal_libhal_device_property_exists" >&5 printf "%s\n" "$ac_cv_lib_hal_libhal_device_property_exists" >&6; } if test "x$ac_cv_lib_hal_libhal_device_property_exists" = xyes then : printf "%s\n" "#define HAVE_LIBHAL 1" >>confdefs.h else case e in #( e) with_libhal="no" ;; esac fi if test "x$with_libhal" = "xyes"; then if test "x$PKG_CONFIG" != "x"; then BUILD_WITH_LIBHAL_CFLAGS="`$PKG_CONFIG --cflags hal`" BUILD_WITH_LIBHAL_LIBS="`$PKG_CONFIG --libs hal`" fi fi if test "x$ac_system" = "xAIX" then with_perfstat="yes" with_procinfo="yes" else with_perfstat="no (AIX only)" with_procinfo="no (AIX only)" fi if test "x$with_perfstat" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perfstat_reset in -lperfstat" >&5 printf %s "checking for perfstat_reset in -lperfstat... " >&6; } if test ${ac_cv_lib_perfstat_perfstat_reset+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lperfstat $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char perfstat_reset (void); int main (void) { return perfstat_reset (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_perfstat_perfstat_reset=yes else case e in #( e) ac_cv_lib_perfstat_perfstat_reset=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_reset" >&5 printf "%s\n" "$ac_cv_lib_perfstat_perfstat_reset" >&6; } if test "x$ac_cv_lib_perfstat_perfstat_reset" = xyes then : with_perfstat="yes" else case e in #( e) with_perfstat="no (perfstat not found)" ;; esac fi # AC_CHECK_HEADERS(sys/protosw.h libperfstat.h,, [with_perfstat="no (perfstat not found)"]) fi if test "x$with_perfstat" = "xyes" then printf "%s\n" "#define HAVE_PERFSTAT 1" >>confdefs.h # struct members pertaining to donation have been added to libperfstat somewhere between AIX5.3ML5 and AIX5.3ML9 ac_fn_c_check_member "$LINENO" "perfstat_partition_type_t" "b.donate_enabled" "ac_cv_member_perfstat_partition_type_t_b_donate_enabled" "#include >confdefs.h fi fi if test "x$with_perfstat" = "xyes"; then BUILD_WITH_PERFSTAT_TRUE= BUILD_WITH_PERFSTAT_FALSE='#' else BUILD_WITH_PERFSTAT_TRUE='#' BUILD_WITH_PERFSTAT_FALSE= fi # Processes plugin under AIX. if test "x$with_procinfo" = "xyes" then for ac_header in procinfo.h do : ac_fn_c_check_header_compile "$LINENO" "procinfo.h" "ac_cv_header_procinfo_h" "$ac_includes_default" if test "x$ac_cv_header_procinfo_h" = xyes then : printf "%s\n" "#define HAVE_PROCINFO_H 1" >>confdefs.h else case e in #( e) with_procinfo="no (procinfo.h not found)" ;; esac fi done fi if test "x$with_procinfo" = "xyes" then printf "%s\n" "#define HAVE_PROCINFO_H 1" >>confdefs.h fi if test "x$ac_system" = "xSolaris" then with_kstat="yes" with_devinfo="yes" else with_kstat="no (Solaris only)" with_devinfo="no (Solaris only)" fi if test "x$with_kstat" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 printf %s "checking for kstat_open in -lkstat... " >&6; } if test ${ac_cv_lib_kstat_kstat_open+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lkstat $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char kstat_open (void); int main (void) { return kstat_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_kstat_kstat_open=yes else case e in #( e) ac_cv_lib_kstat_kstat_open=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 printf "%s\n" "$ac_cv_lib_kstat_kstat_open" >&6; } if test "x$ac_cv_lib_kstat_kstat_open" = xyes then : with_kstat="yes" else case e in #( e) with_kstat="no (libkstat not found)" ;; esac fi fi if test "x$with_kstat" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for di_init in -ldevinfo" >&5 printf %s "checking for di_init in -ldevinfo... " >&6; } if test ${ac_cv_lib_devinfo_di_init+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldevinfo $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char di_init (void); int main (void) { return di_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_devinfo_di_init=yes else case e in #( e) ac_cv_lib_devinfo_di_init=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devinfo_di_init" >&5 printf "%s\n" "$ac_cv_lib_devinfo_di_init" >&6; } if test "x$ac_cv_lib_devinfo_di_init" = xyes then : with_devinfo="yes" else case e in #( e) with_devinfo="no (not found)" ;; esac fi for ac_header in kstat.h do : ac_fn_c_check_header_compile "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default" if test "x$ac_cv_header_kstat_h" = xyes then : printf "%s\n" "#define HAVE_KSTAT_H 1" >>confdefs.h else case e in #( e) with_kstat="no (kstat.h not found)" ;; esac fi done fi if test "x$with_kstat" = "xyes" then printf "%s\n" "#define HAVE_LIBKSTAT 1" >>confdefs.h fi if test "x$with_kstat" = "xyes"; then BUILD_WITH_LIBKSTAT_TRUE= BUILD_WITH_LIBKSTAT_FALSE='#' else BUILD_WITH_LIBKSTAT_TRUE='#' BUILD_WITH_LIBKSTAT_FALSE= fi if test "x$with_devinfo" = "xyes"; then BUILD_WITH_LIBDEVINFO_TRUE= BUILD_WITH_LIBDEVINFO_FALSE='#' else BUILD_WITH_LIBDEVINFO_TRUE='#' BUILD_WITH_LIBDEVINFO_FALSE= fi with_libiokit="no" if test "x$ac_system" = "xDarwin" then with_libiokit="yes" else with_libiokit="no" fi if test "x$with_libiokit" = "xyes"; then BUILD_WITH_LIBIOKIT_TRUE= BUILD_WITH_LIBIOKIT_FALSE='#' else BUILD_WITH_LIBIOKIT_TRUE='#' BUILD_WITH_LIBIOKIT_FALSE= fi with_libkvm="no" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_getprocs in -lkvm" >&5 printf %s "checking for kvm_getprocs in -lkvm... " >&6; } if test ${ac_cv_lib_kvm_kvm_getprocs+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lkvm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char kvm_getprocs (void); int main (void) { return kvm_getprocs (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_kvm_kvm_getprocs=yes else case e in #( e) ac_cv_lib_kvm_kvm_getprocs=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_getprocs" >&5 printf "%s\n" "$ac_cv_lib_kvm_kvm_getprocs" >&6; } if test "x$ac_cv_lib_kvm_kvm_getprocs" = xyes then : with_kvm_getprocs="yes" else case e in #( e) with_kvm_getprocs="no" ;; esac fi if test "x$with_kvm_getprocs" = "xyes" then printf "%s\n" "#define HAVE_LIBKVM_GETPROCS 1" >>confdefs.h with_libkvm="yes" fi if test "x$with_kvm_getprocs" = "xyes"; then BUILD_WITH_LIBKVM_GETPROCS_TRUE= BUILD_WITH_LIBKVM_GETPROCS_FALSE='#' else BUILD_WITH_LIBKVM_GETPROCS_TRUE='#' BUILD_WITH_LIBKVM_GETPROCS_FALSE= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_getswapinfo in -lkvm" >&5 printf %s "checking for kvm_getswapinfo in -lkvm... " >&6; } if test ${ac_cv_lib_kvm_kvm_getswapinfo+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lkvm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char kvm_getswapinfo (void); int main (void) { return kvm_getswapinfo (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_kvm_kvm_getswapinfo=yes else case e in #( e) ac_cv_lib_kvm_kvm_getswapinfo=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_getswapinfo" >&5 printf "%s\n" "$ac_cv_lib_kvm_kvm_getswapinfo" >&6; } if test "x$ac_cv_lib_kvm_kvm_getswapinfo" = xyes then : with_kvm_getswapinfo="yes" else case e in #( e) with_kvm_getswapinfo="no" ;; esac fi if test "x$with_kvm_getswapinfo" = "xyes" then printf "%s\n" "#define HAVE_LIBKVM_GETSWAPINFO 1" >>confdefs.h with_libkvm="yes" fi if test "x$with_kvm_getswapinfo" = "xyes"; then BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE= BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE='#' else BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE='#' BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_nlist in -lkvm" >&5 printf %s "checking for kvm_nlist in -lkvm... " >&6; } if test ${ac_cv_lib_kvm_kvm_nlist+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lkvm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char kvm_nlist (void); int main (void) { return kvm_nlist (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_kvm_kvm_nlist=yes else case e in #( e) ac_cv_lib_kvm_kvm_nlist=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_nlist" >&5 printf "%s\n" "$ac_cv_lib_kvm_kvm_nlist" >&6; } if test "x$ac_cv_lib_kvm_kvm_nlist" = xyes then : with_kvm_nlist="yes" else case e in #( e) with_kvm_nlist="no" ;; esac fi if test "x$with_kvm_nlist" = "xyes" then ac_fn_c_check_header_compile "$LINENO" "bsd/nlist.h" "ac_cv_header_bsd_nlist_h" "$ac_includes_default" if test "x$ac_cv_header_bsd_nlist_h" = xyes then : printf "%s\n" "#define HAVE_BSD_NLIST_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" if test "x$ac_cv_header_nlist_h" = xyes then : printf "%s\n" "#define HAVE_NLIST_H 1" >>confdefs.h fi printf "%s\n" "#define HAVE_LIBKVM_NLIST 1" >>confdefs.h with_libkvm="yes" fi if test "x$with_kvm_nlist" = "xyes"; then BUILD_WITH_LIBKVM_NLIST_TRUE= BUILD_WITH_LIBKVM_NLIST_FALSE='#' else BUILD_WITH_LIBKVM_NLIST_TRUE='#' BUILD_WITH_LIBKVM_NLIST_FALSE= fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_openfiles in -lkvm" >&5 printf %s "checking for kvm_openfiles in -lkvm... " >&6; } if test ${ac_cv_lib_kvm_kvm_openfiles+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lkvm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char kvm_openfiles (void); int main (void) { return kvm_openfiles (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_kvm_kvm_openfiles=yes else case e in #( e) ac_cv_lib_kvm_kvm_openfiles=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_openfiles" >&5 printf "%s\n" "$ac_cv_lib_kvm_kvm_openfiles" >&6; } if test "x$ac_cv_lib_kvm_kvm_openfiles" = xyes then : with_kvm_openfiles="yes" else case e in #( e) with_kvm_openfiles="no" ;; esac fi if test "x$with_kvm_openfiles" = "xyes" then printf "%s\n" "#define HAVE_LIBKVM_NLIST 1" >>confdefs.h with_libkvm="yes" fi if test "x$with_kvm_openfiles" = "xyes"; then BUILD_WITH_LIBKVM_OPENFILES_TRUE= BUILD_WITH_LIBKVM_OPENFILES_FALSE='#' else BUILD_WITH_LIBKVM_OPENFILES_TRUE='#' BUILD_WITH_LIBKVM_OPENFILES_FALSE= fi # --with-libaquaero5 {{{ # Check whether --with-libaquaero5 was given. if test ${with_libaquaero5+y} then : withval=$with_libaquaero5; if test "x$withval" = "xyes" then with_libaquaero5="yes" else if test "x$withval" = "xno" then with_libaquaero5="no" else with_libaquaero5="yes" LIBAQUAERO5_CFLAGS="$LIBAQUAERO5_CFLAGS -I$withval/src" LIBAQUAERO5_LDFLAGS="$LIBAQUAERO5_LDFLAGS -L$withval/obj" fi; fi else case e in #( e) with_libaquaero5="yes" ;; esac fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $LIBAQUAERO5_CFLAGS" LDFLAGS="$LDFLAGS $LIBAQUAERO5_LDFLAGS" if test "x$with_libaquaero5" = "xyes" then if test "x$LIBAQUAERO5_CFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libaquaero5 CPPFLAGS: $LIBAQUAERO5_CFLAGS" >&5 printf "%s\n" "$as_me: libaquaero5 CPPFLAGS: $LIBAQUAERO5_CFLAGS" >&6;} fi for ac_header in libaquaero5.h do : ac_fn_c_check_header_compile "$LINENO" "libaquaero5.h" "ac_cv_header_libaquaero5_h" "$ac_includes_default" if test "x$ac_cv_header_libaquaero5_h" = xyes then : printf "%s\n" "#define HAVE_LIBAQUAERO5_H 1" >>confdefs.h with_libaquaero5="yes" else case e in #( e) with_libaquaero5="no (libaquaero5.h not found)" ;; esac fi done fi if test "x$with_libaquaero5" = "xyes" then if test "x$LIBAQUAERO5_LDFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libaquaero5 LDFLAGS: $LIBAQUAERO5_LDFLAGS" >&5 printf "%s\n" "$as_me: libaquaero5 LDFLAGS: $LIBAQUAERO5_LDFLAGS" >&6;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libaquaero5_poll in -laquaero5" >&5 printf %s "checking for libaquaero5_poll in -laquaero5... " >&6; } if test ${ac_cv_lib_aquaero5_libaquaero5_poll+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-laquaero5 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char libaquaero5_poll (void); int main (void) { return libaquaero5_poll (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_aquaero5_libaquaero5_poll=yes else case e in #( e) ac_cv_lib_aquaero5_libaquaero5_poll=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aquaero5_libaquaero5_poll" >&5 printf "%s\n" "$ac_cv_lib_aquaero5_libaquaero5_poll" >&6; } if test "x$ac_cv_lib_aquaero5_libaquaero5_poll" = xyes then : with_libaquaero5="yes" else case e in #( e) with_libaquaero5="no (symbol 'libaquaero5_poll' not found)" ;; esac fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_libaquaero5" = "xyes" then BUILD_WITH_LIBAQUAERO5_CFLAGS="$LIBAQUAERO5_CFLAGS" BUILD_WITH_LIBAQUAERO5_LDFLAGS="$LIBAQUAERO5_LDFLAGS" fi if test "x$with_libaquaero5" = "xyes"; then BUILD_WITH_LIBAQUAERO5_TRUE= BUILD_WITH_LIBAQUAERO5_FALSE='#' else BUILD_WITH_LIBAQUAERO5_TRUE='#' BUILD_WITH_LIBAQUAERO5_FALSE= fi # }}} # --with-libhiredis {{{ # Check whether --with-libhiredis was given. if test ${with_libhiredis+y} then : withval=$with_libhiredis; if test "x$withval" = "xyes" then with_libhiredis="yes" else if test "x$withval" = "xno" then with_libhiredis="no" else with_libhiredis="yes" LIBHIREDIS_CPPFLAGS="$LIBHIREDIS_CPPFLAGS -I$withval/include" LIBHIREDIS_LDFLAGS="$LIBHIREDIS_LDFLAGS -L$withval/lib" fi; fi else case e in #( e) with_libhiredis="yes" ;; esac fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $LIBHIREDIS_CPPFLAGS" LDFLAGS="$LDFLAGS $LIBHIREDIS_LDFLAGS" if test "x$with_libhiredis" = "xyes" then if test "x$LIBHIREDIS_CPPFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libhiredis CPPFLAGS: $LIBHIREDIS_CPPFLAGS" >&5 printf "%s\n" "$as_me: libhiredis CPPFLAGS: $LIBHIREDIS_CPPFLAGS" >&6;} fi for ac_header in hiredis/hiredis.h do : ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default" if test "x$ac_cv_header_hiredis_hiredis_h" = xyes then : printf "%s\n" "#define HAVE_HIREDIS_HIREDIS_H 1" >>confdefs.h with_libhiredis="yes" else case e in #( e) with_libhiredis="no (hiredis.h not found)" ;; esac fi done fi if test "x$with_libhiredis" = "xyes" then if test "x$LIBHIREDIS_LDFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libhiredis LDFLAGS: $LIBHIREDIS_LDFLAGS" >&5 printf "%s\n" "$as_me: libhiredis LDFLAGS: $LIBHIREDIS_LDFLAGS" >&6;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redisCommand in -lhiredis" >&5 printf %s "checking for redisCommand in -lhiredis... " >&6; } if test ${ac_cv_lib_hiredis_redisCommand+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lhiredis $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char redisCommand (void); int main (void) { return redisCommand (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_hiredis_redisCommand=yes else case e in #( e) ac_cv_lib_hiredis_redisCommand=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hiredis_redisCommand" >&5 printf "%s\n" "$ac_cv_lib_hiredis_redisCommand" >&6; } if test "x$ac_cv_lib_hiredis_redisCommand" = xyes then : with_libhiredis="yes" else case e in #( e) with_libhiredis="no (symbol 'redisCommand' not found)" ;; esac fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_libhiredis" = "xyes" then BUILD_WITH_LIBHIREDIS_CPPFLAGS="$LIBHIREDIS_CPPFLAGS" BUILD_WITH_LIBHIREDIS_LDFLAGS="$LIBHIREDIS_LDFLAGS" fi if test "x$with_libhiredis" = "xyes"; then BUILD_WITH_LIBHIREDIS_TRUE= BUILD_WITH_LIBHIREDIS_FALSE='#' else BUILD_WITH_LIBHIREDIS_TRUE='#' BUILD_WITH_LIBHIREDIS_FALSE= fi # }}} # --with-libcurl {{{ with_curl_config="curl-config" with_curl_cflags="" with_curl_libs="" # Check whether --with-libcurl was given. if test ${with_libcurl+y} then : withval=$with_libcurl; if test "x$withval" = "xno" then with_libcurl="no" else if test "x$withval" = "xyes" then with_libcurl="yes" else if test -f "$withval" && test -x "$withval" then with_curl_config="$withval" with_libcurl="yes" else if test -x "$withval/bin/curl-config" then with_curl_config="$withval/bin/curl-config" with_libcurl="yes" fi; fi with_libcurl="yes" fi; fi else case e in #( e) with_libcurl="yes" ;; esac fi if test "x$with_libcurl" = "xyes" then with_curl_cflags=`$with_curl_config --cflags 2>/dev/null` curl_config_status=$? if test $curl_config_status -ne 0 then with_libcurl="no ($with_curl_config failed)" else SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_curl_cflags" for ac_header in curl/curl.h do : ac_fn_c_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" if test "x$ac_cv_header_curl_curl_h" = xyes then : printf "%s\n" "#define HAVE_CURL_CURL_H 1" >>confdefs.h else case e in #( e) with_libcurl="no (curl/curl.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi fi if test "x$with_libcurl" = "xyes" then with_curl_libs=`$with_curl_config --libs 2>/dev/null` curl_config_status=$? if test $curl_config_status -ne 0 then with_libcurl="no ($with_curl_config failed)" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 printf %s "checking for curl_easy_init in -lcurl... " >&6; } if test ${ac_cv_lib_curl_curl_easy_init+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcurl $with_curl_libs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char curl_easy_init (void); int main (void) { return curl_easy_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_curl_curl_easy_init=yes else case e in #( e) ac_cv_lib_curl_curl_easy_init=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 printf "%s\n" "$ac_cv_lib_curl_curl_easy_init" >&6; } if test "x$ac_cv_lib_curl_curl_easy_init" = xyes then : with_libcurl="yes" else case e in #( e) with_libcurl="no (symbol 'curl_easy_init' not found)" ;; esac fi ac_fn_check_decl "$LINENO" "CURLOPT_USERNAME" "ac_cv_have_decl_CURLOPT_USERNAME" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_CURLOPT_USERNAME" = xyes then : have_curlopt_username="yes" else case e in #( e) have_curlopt_username="no" ;; esac fi ac_fn_check_decl "$LINENO" "CURLOPT_TIMEOUT_MS" "ac_cv_have_decl_CURLOPT_TIMEOUT_MS" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_CURLOPT_TIMEOUT_MS" = xyes then : have_curlopt_timeout="yes" else case e in #( e) have_curlopt_timeout="no" ;; esac fi fi fi if test "x$with_libcurl" = "xyes" then BUILD_WITH_LIBCURL_CFLAGS="$with_curl_cflags" BUILD_WITH_LIBCURL_LIBS="$with_curl_libs" if test "x$have_curlopt_username" = "xyes" then printf "%s\n" "#define HAVE_CURLOPT_USERNAME 1" >>confdefs.h fi if test "x$have_curlopt_timeout" = "xyes" then printf "%s\n" "#define HAVE_CURLOPT_TIMEOUT_MS 1" >>confdefs.h fi fi if test "x$with_libcurl" = "xyes"; then BUILD_WITH_LIBCURL_TRUE= BUILD_WITH_LIBCURL_FALSE='#' else BUILD_WITH_LIBCURL_TRUE='#' BUILD_WITH_LIBCURL_FALSE= fi # }}} # --with-libdbi {{{ with_libdbi_cppflags="" with_libdbi_ldflags="" # Check whether --with-libdbi was given. if test ${with_libdbi+y} then : withval=$with_libdbi; if test "x$withval" != "xno" && test "x$withval" != "xyes" then with_libdbi_cppflags="-I$withval/include" with_libdbi_ldflags="-L$withval/lib" with_libdbi="yes" else with_libdbi="$withval" fi else case e in #( e) with_libdbi="yes" ;; esac fi if test "x$with_libdbi" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libdbi_cppflags" for ac_header in dbi/dbi.h do : ac_fn_c_check_header_compile "$LINENO" "dbi/dbi.h" "ac_cv_header_dbi_dbi_h" "$ac_includes_default" if test "x$ac_cv_header_dbi_dbi_h" = xyes then : printf "%s\n" "#define HAVE_DBI_DBI_H 1" >>confdefs.h with_libdbi="yes" else case e in #( e) with_libdbi="no (dbi/dbi.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libdbi" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_libdbi_cppflags" LDFLAGS="$LDFLAGS $with_libdbi_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize in -ldbi" >&5 printf %s "checking for dbi_initialize in -ldbi... " >&6; } if test ${ac_cv_lib_dbi_dbi_initialize+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-ldbi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char dbi_initialize (void); int main (void) { return dbi_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_dbi_dbi_initialize=yes else case e in #( e) ac_cv_lib_dbi_dbi_initialize=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize" >&5 printf "%s\n" "$ac_cv_lib_dbi_dbi_initialize" >&6; } if test "x$ac_cv_lib_dbi_dbi_initialize" = xyes then : with_libdbi="yes" else case e in #( e) with_libdbi="no (Symbol 'dbi_initialize' not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libdbi" = "xyes" then BUILD_WITH_LIBDBI_CPPFLAGS="$with_libdbi_cppflags" BUILD_WITH_LIBDBI_LDFLAGS="$with_libdbi_ldflags" BUILD_WITH_LIBDBI_LIBS="-ldbi" fi if test "x$with_libdbi" = "xyes"; then BUILD_WITH_LIBDBI_TRUE= BUILD_WITH_LIBDBI_FALSE='#' else BUILD_WITH_LIBDBI_TRUE='#' BUILD_WITH_LIBDBI_FALSE= fi # }}} # --with-libesmtp {{{ # Check whether --with-libesmtp was given. if test ${with_libesmtp+y} then : withval=$with_libesmtp; if test "x$withval" != "xno" && test "x$withval" != "xyes" then LDFLAGS="$LDFLAGS -L$withval/lib" CPPFLAGS="$CPPFLAGS -I$withval/include -D_THREAD_SAFE" with_libesmtp="yes" else with_libesmtp="$withval" fi else case e in #( e) with_libesmtp="yes" ;; esac fi if test "x$with_libesmtp" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5 printf %s "checking for smtp_create_session in -lesmtp... " >&6; } if test ${ac_cv_lib_esmtp_smtp_create_session+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lesmtp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char smtp_create_session (void); int main (void) { return smtp_create_session (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_esmtp_smtp_create_session=yes else case e in #( e) ac_cv_lib_esmtp_smtp_create_session=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5 printf "%s\n" "$ac_cv_lib_esmtp_smtp_create_session" >&6; } if test "x$ac_cv_lib_esmtp_smtp_create_session" = xyes then : printf "%s\n" "#define HAVE_LIBESMTP 1" >>confdefs.h else case e in #( e) with_libesmtp="no (libesmtp not found)" ;; esac fi fi if test "x$with_libesmtp" = "xyes" then for ac_header in libesmtp.h do : ac_fn_c_check_header_compile "$LINENO" "libesmtp.h" "ac_cv_header_libesmtp_h" "$ac_includes_default" if test "x$ac_cv_header_libesmtp_h" = xyes then : printf "%s\n" "#define HAVE_LIBESMTP_H 1" >>confdefs.h printf "%s\n" "#define HAVE_LIBESMTP_H 1" >>confdefs.h else case e in #( e) with_libesmtp="no (libesmtp.h not found)" ;; esac fi done fi if test "x$with_libesmtp" = "xyes" then collect_libesmtp=1 else collect_libesmtp=0 fi printf "%s\n" "#define COLLECT_LIBESMTP $collect_libesmtp" >>confdefs.h if test "x$with_libesmtp" = "xyes"; then BUILD_WITH_LIBESMTP_TRUE= BUILD_WITH_LIBESMTP_FALSE='#' else BUILD_WITH_LIBESMTP_TRUE='#' BUILD_WITH_LIBESMTP_FALSE= fi # }}} # --with-libganglia {{{ # Check whether --with-libganglia was given. if test ${with_libganglia+y} then : withval=$with_libganglia; if test -f "$withval" && test -x "$withval" then with_libganglia_config="$withval" with_libganglia="yes" else if test -f "$withval/bin/ganglia-config" && test -x "$withval/bin/ganglia-config" then with_libganglia_config="$withval/bin/ganglia-config" with_libganglia="yes" else if test -d "$withval" then GANGLIA_CPPFLAGS="-I$withval/include" GANGLIA_LDFLAGS="-L$withval/lib" with_libganglia="yes" else with_libganglia_config="ganglia-config" with_libganglia="$withval" fi; fi; fi else case e in #( e) with_libganglia_config="ganglia-config" with_libganglia="yes" ;; esac fi if test "x$with_libganglia" = "xyes" && test "x$with_libganglia_config" != "x" then if test "x$GANGLIA_CPPFLAGS" = "x" then GANGLIA_CPPFLAGS=`"$with_libganglia_config" --cflags 2>/dev/null` fi if test "x$GANGLIA_LDFLAGS" = "x" then GANGLIA_LDFLAGS=`"$with_libganglia_config" --ldflags 2>/dev/null` fi if test "x$GANGLIA_LIBS" = "x" then GANGLIA_LIBS=`"$with_libganglia_config" --libs 2>/dev/null` fi fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $GANGLIA_CPPFLAGS" LDFLAGS="$LDFLAGS $GANGLIA_LDFLAGS" if test "x$with_libganglia" = "xyes" then for ac_header in gm_protocol.h do : ac_fn_c_check_header_compile "$LINENO" "gm_protocol.h" "ac_cv_header_gm_protocol_h" "$ac_includes_default" if test "x$ac_cv_header_gm_protocol_h" = xyes then : printf "%s\n" "#define HAVE_GM_PROTOCOL_H 1" >>confdefs.h printf "%s\n" "#define HAVE_GM_PROTOCOL_H 1" >>confdefs.h else case e in #( e) with_libganglia="no (gm_protocol.h not found)" ;; esac fi done fi if test "x$with_libganglia" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdr_Ganglia_value_msg in -lganglia" >&5 printf %s "checking for xdr_Ganglia_value_msg in -lganglia... " >&6; } if test ${ac_cv_lib_ganglia_xdr_Ganglia_value_msg+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lganglia $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char xdr_Ganglia_value_msg (void); int main (void) { return xdr_Ganglia_value_msg (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_ganglia_xdr_Ganglia_value_msg=yes else case e in #( e) ac_cv_lib_ganglia_xdr_Ganglia_value_msg=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ganglia_xdr_Ganglia_value_msg" >&5 printf "%s\n" "$ac_cv_lib_ganglia_xdr_Ganglia_value_msg" >&6; } if test "x$ac_cv_lib_ganglia_xdr_Ganglia_value_msg" = xyes then : printf "%s\n" "#define HAVE_LIBGANGLIA 1" >>confdefs.h else case e in #( e) with_libganglia="no (symbol xdr_Ganglia_value_msg not found)" ;; esac fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_libganglia" = "xyes"; then BUILD_WITH_LIBGANGLIA_TRUE= BUILD_WITH_LIBGANGLIA_FALSE='#' else BUILD_WITH_LIBGANGLIA_TRUE='#' BUILD_WITH_LIBGANGLIA_FALSE= fi # }}} # --with-libgcrypt {{{ GCRYPT_CPPFLAGS="$GCRYPT_CPPFLAGS" GCRYPT_LDFLAGS="$GCRYPT_LDFLAGS" GCRYPT_LIBS="$GCRYPT_LIBS" # Check whether --with-libgcrypt was given. if test ${with_libgcrypt+y} then : withval=$with_libgcrypt; if test -f "$withval" && test -x "$withval" then with_libgcrypt_config="$withval" with_libgcrypt="yes" else if test -f "$withval/bin/gcrypt-config" && test -x "$withval/bin/gcrypt-config" then with_libgcrypt_config="$withval/bin/gcrypt-config" with_libgcrypt="yes" else if test -d "$withval" then GCRYPT_CPPFLAGS="$GCRYPT_CPPFLAGS -I$withval/include" GCRYPT_LDFLAGS="$GCRYPT_LDFLAGS -L$withval/lib" with_libgcrypt="yes" else with_libgcrypt_config="gcrypt-config" with_libgcrypt="$withval" fi; fi; fi else case e in #( e) with_libgcrypt_config="libgcrypt-config" with_libgcrypt="yes" ;; esac fi if test "x$with_libgcrypt" = "xyes" && test "x$with_libgcrypt_config" != "x" then if test "x$GCRYPT_CPPFLAGS" = "x" then GCRYPT_CPPFLAGS=`"$with_libgcrypt_config" --cflags 2>/dev/null` fi if test "x$GCRYPT_LDFLAGS" = "x" then gcrypt_exec_prefix=`"$with_libgcrypt_config" --exec-prefix 2>/dev/null` GCRYPT_LDFLAGS="-L$gcrypt_exec_prefix/lib" fi if test "x$GCRYPT_LIBS" = "x" then GCRYPT_LIBS=`"$with_libgcrypt_config" --libs 2>/dev/null` fi fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $GCRYPT_CPPFLAGS" LDFLAGS="$LDFLAGS $GCRYPT_LDFLAGS" if test "x$with_libgcrypt" = "xyes" then if test "x$GCRYPT_CPPFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: gcrypt CPPFLAGS: $GCRYPT_CPPFLAGS" >&5 printf "%s\n" "$as_me: gcrypt CPPFLAGS: $GCRYPT_CPPFLAGS" >&6;} fi for ac_header in gcrypt.h do : ac_fn_c_check_header_compile "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" if test "x$ac_cv_header_gcrypt_h" = xyes then : printf "%s\n" "#define HAVE_GCRYPT_H 1" >>confdefs.h with_libgcrypt="yes" else case e in #( e) with_libgcrypt="no (gcrypt.h not found)" ;; esac fi done fi if test "x$with_libgcrypt" = "xyes" then if test "x$GCRYPT_LDFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: gcrypt LDFLAGS: $GCRYPT_LDFLAGS" >&5 printf "%s\n" "$as_me: gcrypt LDFLAGS: $GCRYPT_LDFLAGS" >&6;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_hash_buffer in -lgcrypt" >&5 printf %s "checking for gcry_md_hash_buffer in -lgcrypt... " >&6; } if test ${ac_cv_lib_gcrypt_gcry_md_hash_buffer+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lgcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char gcry_md_hash_buffer (void); int main (void) { return gcry_md_hash_buffer (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_gcrypt_gcry_md_hash_buffer=yes else case e in #( e) ac_cv_lib_gcrypt_gcry_md_hash_buffer=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_hash_buffer" >&5 printf "%s\n" "$ac_cv_lib_gcrypt_gcry_md_hash_buffer" >&6; } if test "x$ac_cv_lib_gcrypt_gcry_md_hash_buffer" = xyes then : with_libgcrypt="yes" else case e in #( e) with_libgcrypt="no (symbol gcry_md_hash_buffer not found)" ;; esac fi if test "$with_libgcrypt" != "no"; then GCRYPT_CPPFLAGS="$LIBGCRYPT_CPPFLAGS $LIBGCRYPT_CFLAGS" GCRYPT_LIBS="$LIBGCRYPT_LIBS" fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_libgcrypt" = "xyes" then printf "%s\n" "#define HAVE_LIBGCRYPT 1" >>confdefs.h fi if test "x$with_libgcrypt" = "xyes"; then BUILD_WITH_LIBGCRYPT_TRUE= BUILD_WITH_LIBGCRYPT_FALSE='#' else BUILD_WITH_LIBGCRYPT_TRUE='#' BUILD_WITH_LIBGCRYPT_FALSE= fi # }}} # --with-libiptc {{{ # Check whether --with-libiptc was given. if test ${with_libiptc+y} then : withval=$with_libiptc; if test "x$withval" = "xyes" then with_libiptc="pkgconfig" else if test "x$withval" = "xno" then with_libiptc="no" else with_libiptc="yes" with_libiptc_cflags="-I$withval/include" with_libiptc_libs="-L$withval/lib" fi; fi else case e in #( e) if test "x$ac_system" = "xLinux" then with_libiptc="pkgconfig" else with_libiptc="no (Linux only)" fi ;; esac fi if test "x$with_libiptc" = "xpkgconfig" && test "x$PKG_CONFIG" = "x" then with_libiptc="no (Don't have pkg-config)" fi if test "x$with_libiptc" = "xpkgconfig" then $PKG_CONFIG --exists 'libiptc' 2>/dev/null if test $? -ne 0 then with_libiptc="no (pkg-config doesn't know libiptc)" fi fi if test "x$with_libiptc" = "xpkgconfig" then with_libiptc_cflags="`$PKG_CONFIG --cflags 'libiptc'`" if test $? -ne 0 then with_libiptc="no ($PKG_CONFIG failed)" fi with_libiptc_libs="`$PKG_CONFIG --libs 'libiptc'`" if test $? -ne 0 then with_libiptc="no ($PKG_CONFIG failed)" fi fi SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libiptc_cflags" # check whether the header file for libiptc is available. if test "x$with_libiptc" = "xpkgconfig" then for ac_header in libiptc/libiptc.h libiptc/libip6tc.h do : as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes" then : cat >>confdefs.h <<_ACEOF #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 _ACEOF else case e in #( e) with_libiptc="no (header file missing)" ;; esac fi done fi # If the header file is available, check for the required type declaractions. # They may be missing in old versions of libiptc. In that case, they will be # declared in the iptables plugin. if test "x$with_libiptc" = "xpkgconfig" then ac_fn_c_check_type "$LINENO" "iptc_handle_t" "ac_cv_type_iptc_handle_t" "$ac_includes_default" if test "x$ac_cv_type_iptc_handle_t" = xyes then : printf "%s\n" "#define HAVE_IPTC_HANDLE_T 1" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "ip6tc_handle_t" "ac_cv_type_ip6tc_handle_t" "$ac_includes_default" if test "x$ac_cv_type_ip6tc_handle_t" = xyes then : printf "%s\n" "#define HAVE_IP6TC_HANDLE_T 1" >>confdefs.h fi fi # Check for the iptc_init symbol in the library. # This could be in iptc or ip4tc if test "x$with_libiptc" = "xpkgconfig" then SAVE_LIBS="$LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iptc_init" >&5 printf %s "checking for library containing iptc_init... " >&6; } if test ${ac_cv_search_iptc_init+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char iptc_init (void); int main (void) { return iptc_init (); ; return 0; } _ACEOF for ac_lib in '' iptc ip4tc do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $with_libiptc_libs $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO" then : ac_cv_search_iptc_init=$ac_res fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext if test ${ac_cv_search_iptc_init+y} then : break fi done if test ${ac_cv_search_iptc_init+y} then : else case e in #( e) ac_cv_search_iptc_init=no ;; esac fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iptc_init" >&5 printf "%s\n" "$ac_cv_search_iptc_init" >&6; } ac_res=$ac_cv_search_iptc_init if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" with_libiptc="pkgconfig" else case e in #( e) with_libiptc="no" ;; esac fi LIBS="$SAVE_LIBS" fi if test "x$with_libiptc" = "xpkgconfig" then with_libiptc="yes" fi CPPFLAGS="$SAVE_CPPFLAGS" if test "x$with_libiptc" = "xyes"; then BUILD_WITH_LIBIPTC_TRUE= BUILD_WITH_LIBIPTC_FALSE='#' else BUILD_WITH_LIBIPTC_TRUE='#' BUILD_WITH_LIBIPTC_FALSE= fi if test "x$with_libiptc" = "xyes" then BUILD_WITH_LIBIPTC_CPPFLAGS="$with_libiptc_cflags" BUILD_WITH_LIBIPTC_LDFLAGS="$with_libiptc_libs" fi # }}} # --with-java {{{ with_java_home="$JAVA_HOME" if test "x$with_java_home" = "x" then with_java_home="/usr/lib/jvm" fi with_java_vmtype="client" with_java_cflags="" with_java_libs="" JAVAC="$JAVAC" JAR="$JAR" # Check whether --with-java was given. if test ${with_java+y} then : withval=$with_java; if test "x$withval" = "xno" then with_java="no" else if test "x$withval" = "xyes" then with_java="yes" else with_java_home="$withval" with_java="yes" fi; fi else case e in #( e) with_java="yes" ;; esac fi if test "x$with_java" = "xyes" then if test -d "$with_java_home" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jni.h" >&5 printf %s "checking for jni.h... " >&6; } TMPVAR=`find -L "$with_java_home" -name jni.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1` if test "x$TMPVAR" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $TMPVAR" >&5 printf "%s\n" "found in $TMPVAR" >&6; } JAVA_CPPFLAGS="$JAVA_CPPFLAGS -I$TMPVAR" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 printf "%s\n" "not found" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jni_md.h" >&5 printf %s "checking for jni_md.h... " >&6; } TMPVAR=`find -L "$with_java_home" -name jni_md.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1` if test "x$TMPVAR" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $TMPVAR" >&5 printf "%s\n" "found in $TMPVAR" >&6; } JAVA_CPPFLAGS="$JAVA_CPPFLAGS -I$TMPVAR" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 printf "%s\n" "not found" >&6; } fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjvm.so" >&5 printf %s "checking for libjvm.so... " >&6; } TMPVAR=`find -L "$with_java_home" -name libjvm.so -type f -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1` if test "x$TMPVAR" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $TMPVAR" >&5 printf "%s\n" "found in $TMPVAR" >&6; } JAVA_LDFLAGS="$JAVA_LDFLAGS -L$TMPVAR -Wl,-rpath -Wl,$TMPVAR" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 printf "%s\n" "not found" >&6; } fi if test "x$JAVAC" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for javac" >&5 printf %s "checking for javac... " >&6; } TMPVAR=`find -L "$with_java_home" -name javac -type f 2>/dev/null | head -n 1` if test "x$TMPVAR" != "x" then JAVAC="$TMPVAR" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 printf "%s\n" "$JAVAC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 printf "%s\n" "not found" >&6; } fi fi if test "x$JAR" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jar" >&5 printf %s "checking for jar... " >&6; } TMPVAR=`find -L "$with_java_home" -name jar -type f 2>/dev/null | head -n 1` if test "x$TMPVAR" != "x" then JAR="$TMPVAR" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 printf "%s\n" "$JAR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 printf "%s\n" "not found" >&6; } fi fi else if test "x$with_java_home" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME: No such directory: $with_java_home" >&5 printf "%s\n" "$as_me: WARNING: JAVA_HOME: No such directory: $with_java_home" >&2;} fi; fi fi if test "x$JAVA_CPPFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building with JAVA_CPPFLAGS set to: $JAVA_CPPFLAGS" >&5 printf "%s\n" "$as_me: Building with JAVA_CPPFLAGS set to: $JAVA_CPPFLAGS" >&6;} fi if test "x$JAVA_CFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building with JAVA_CFLAGS set to: $JAVA_CFLAGS" >&5 printf "%s\n" "$as_me: Building with JAVA_CFLAGS set to: $JAVA_CFLAGS" >&6;} fi if test "x$JAVA_LDFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building with JAVA_LDFLAGS set to: $JAVA_LDFLAGS" >&5 printf "%s\n" "$as_me: Building with JAVA_LDFLAGS set to: $JAVA_LDFLAGS" >&6;} fi if test "x$JAVAC" = "x" then with_javac_path="$PATH" if test "x$with_java_home" != "x" then with_javac_path="$with_java_home:with_javac_path" if test -d "$with_java_home/bin" then with_javac_path="$with_java_home/bin:with_javac_path" fi fi # Extract the first word of "javac", so it can be a program name with args. set dummy javac; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_JAVAC+y} then : printf %s "(cached) " >&6 else case e in #( e) case $JAVAC in [\\/]* | ?:[\\/]*) ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in "$with_javac_path" do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_JAVAC="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac ;; esac fi JAVAC=$ac_cv_path_JAVAC if test -n "$JAVAC"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 printf "%s\n" "$JAVAC" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test "x$JAVAC" = "x" then with_java="no (javac not found)" fi if test "x$JAR" = "x" then with_jar_path="$PATH" if test "x$with_java_home" != "x" then with_jar_path="$with_java_home:$with_jar_path" if test -d "$with_java_home/bin" then with_jar_path="$with_java_home/bin:$with_jar_path" fi fi # Extract the first word of "jar", so it can be a program name with args. set dummy jar; ac_word=$2 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_JAR+y} then : printf %s "(cached) " >&6 else case e in #( e) case $JAR in [\\/]* | ?:[\\/]*) ac_cv_path_JAR="$JAR" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in "$with_jar_path" do IFS=$as_save_IFS case $as_dir in #((( '') as_dir=./ ;; */) ;; *) as_dir=$as_dir/ ;; esac for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_path_JAR="$as_dir$ac_word$ac_exec_ext" printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac ;; esac fi JAR=$ac_cv_path_JAR if test -n "$JAR"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 printf "%s\n" "$JAR" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi fi if test "x$JAR" = "x" then with_java="no (jar not found)" fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_CFLAGS="$CFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $JAVA_CPPFLAGS" CFLAGS="$CFLAGS $JAVA_CFLAGS" LDFLAGS="$LDFLAGS $JAVA_LDFLAGS" if test "x$with_java" = "xyes" then for ac_header in jni.h do : ac_fn_c_check_header_compile "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default" if test "x$ac_cv_header_jni_h" = xyes then : printf "%s\n" "#define HAVE_JNI_H 1" >>confdefs.h else case e in #( e) with_java="no (jni.h not found)" ;; esac fi done fi if test "x$with_java" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JNI_CreateJavaVM in -ljvm" >&5 printf %s "checking for JNI_CreateJavaVM in -ljvm... " >&6; } if test ${ac_cv_lib_jvm_JNI_CreateJavaVM+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-ljvm $JAVA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char JNI_CreateJavaVM (void); int main (void) { return JNI_CreateJavaVM (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_jvm_JNI_CreateJavaVM=yes else case e in #( e) ac_cv_lib_jvm_JNI_CreateJavaVM=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jvm_JNI_CreateJavaVM" >&5 printf "%s\n" "$ac_cv_lib_jvm_JNI_CreateJavaVM" >&6; } if test "x$ac_cv_lib_jvm_JNI_CreateJavaVM" = xyes then : with_java="yes" else case e in #( e) with_java="no (libjvm not found)" ;; esac fi fi if test "x$with_java" = "xyes" then JAVA_LIBS="$JAVA_LIBS -ljvm" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building with JAVA_LIBS set to: $JAVA_LIBS" >&5 printf "%s\n" "$as_me: Building with JAVA_LIBS set to: $JAVA_LIBS" >&6;} fi CPPFLAGS="$SAVE_CPPFLAGS" CFLAGS="$SAVE_CFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_java" = "xyes"; then BUILD_WITH_JAVA_TRUE= BUILD_WITH_JAVA_FALSE='#' else BUILD_WITH_JAVA_TRUE='#' BUILD_WITH_JAVA_FALSE= fi # }}} # --with-libldap {{{ # Check whether --with-libldap was given. if test ${with_libldap+y} then : withval=$with_libldap; if test "x$withval" = "xyes" then with_libldap="yes" else if test "x$withval" = "xno" then with_libldap="no" else with_libldap="yes" LIBLDAP_CPPFLAGS="$LIBLDAP_CPPFLAGS -I$withval/include" LIBLDAP_LDFLAGS="$LIBLDAP_LDFLAGS -L$withval/lib" fi; fi else case e in #( e) with_libldap="yes" ;; esac fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $LIBLDAP_CPPFLAGS" LDFLAGS="$LDFLAGS $LIBLDAP_LDFLAGS" if test "x$with_libldap" = "xyes" then if test "x$LIBLDAP_CPPFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libldap CPPFLAGS: $LIBLDAP_CPPFLAGS" >&5 printf "%s\n" "$as_me: libldap CPPFLAGS: $LIBLDAP_CPPFLAGS" >&6;} fi for ac_header in ldap.h do : ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default" if test "x$ac_cv_header_ldap_h" = xyes then : printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h with_libldap="yes" else case e in #( e) with_libldap="no ('ldap.h' not found)" ;; esac fi done fi if test "x$with_libldap" = "xyes" then if test "x$LIBLDAP_LDFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libldap LDFLAGS: $LIBLDAP_LDFLAGS" >&5 printf "%s\n" "$as_me: libldap LDFLAGS: $LIBLDAP_LDFLAGS" >&6;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5 printf %s "checking for ldap_initialize in -lldap... " >&6; } if test ${ac_cv_lib_ldap_ldap_initialize+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lldap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char ldap_initialize (void); int main (void) { return ldap_initialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_ldap_ldap_initialize=yes else case e in #( e) ac_cv_lib_ldap_ldap_initialize=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5 printf "%s\n" "$ac_cv_lib_ldap_ldap_initialize" >&6; } if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes then : with_libldap="yes" else case e in #( e) with_libldap="no (symbol 'ldap_initialize' not found)" ;; esac fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_libldap" = "xyes" then BUILD_WITH_LIBLDAP_CPPFLAGS="$LIBLDAP_CPPFLAGS" BUILD_WITH_LIBLDAP_LDFLAGS="$LIBLDAP_LDFLAGS" fi if test "x$with_libldap" = "xyes"; then BUILD_WITH_LIBLDAP_TRUE= BUILD_WITH_LIBLDAP_FALSE='#' else BUILD_WITH_LIBLDAP_TRUE='#' BUILD_WITH_LIBLDAP_FALSE= fi # }}} # --with-liblvm2app {{{ with_liblvm2app_cppflags="" with_liblvm2app_ldflags="" # Check whether --with-liblvm2app was given. if test ${with_liblvm2app+y} then : withval=$with_liblvm2app; if test "x$withval" != "xno" && test "x$withval" != "xyes" then with_liblvm2app_cppflags="-I$withval/include" with_liblvm2app_ldflags="-L$withval/lib" with_liblvm2app="yes" else with_liblvm2app="$withval" fi else case e in #( e) with_liblvm2app="yes" ;; esac fi if test "x$with_liblvm2app" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_liblvm2app_cppflags" for ac_header in lvm2app.h do : ac_fn_c_check_header_compile "$LINENO" "lvm2app.h" "ac_cv_header_lvm2app_h" "$ac_includes_default" if test "x$ac_cv_header_lvm2app_h" = xyes then : printf "%s\n" "#define HAVE_LVM2APP_H 1" >>confdefs.h with_liblvm2app="yes" else case e in #( e) with_liblvm2app="no (lvm2app.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_liblvm2app" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_liblvm2app_cppflags" LDFLAGS="$LDFLAGS $with_liblvm2app_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lvm_lv_get_property in -llvm2app" >&5 printf %s "checking for lvm_lv_get_property in -llvm2app... " >&6; } if test ${ac_cv_lib_lvm2app_lvm_lv_get_property+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-llvm2app $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char lvm_lv_get_property (void); int main (void) { return lvm_lv_get_property (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_lvm2app_lvm_lv_get_property=yes else case e in #( e) ac_cv_lib_lvm2app_lvm_lv_get_property=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lvm2app_lvm_lv_get_property" >&5 printf "%s\n" "$ac_cv_lib_lvm2app_lvm_lv_get_property" >&6; } if test "x$ac_cv_lib_lvm2app_lvm_lv_get_property" = xyes then : with_liblvm2app="yes" else case e in #( e) with_liblvm2app="no (Symbol 'lvm_lv_get_property' not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_liblvm2app" = "xyes" then BUILD_WITH_LIBLVM2APP_CPPFLAGS="$with_liblvm2app_cppflags" BUILD_WITH_LIBLVM2APP_LDFLAGS="$with_liblvm2app_ldflags" BUILD_WITH_LIBLVM2APP_LIBS="-llvm2app" printf "%s\n" "#define HAVE_LIBLVM2APP 1" >>confdefs.h fi if test "x$with_liblvm2app" = "xyes"; then BUILD_WITH_LIBLVM2APP_TRUE= BUILD_WITH_LIBLVM2APP_FALSE='#' else BUILD_WITH_LIBLVM2APP_TRUE='#' BUILD_WITH_LIBLVM2APP_FALSE= fi # }}} # --with-libmemcached {{{ with_libmemcached_cppflags="" with_libmemcached_ldflags="" # Check whether --with-libmemcached was given. if test ${with_libmemcached+y} then : withval=$with_libmemcached; if test "x$withval" != "xno" && test "x$withval" != "xyes" then with_libmemcached_cppflags="-I$withval/include" with_libmemcached_ldflags="-L$withval/lib" with_libmemcached="yes" else with_libmemcached="$withval" fi else case e in #( e) with_libmemcached="yes" ;; esac fi if test "x$with_libmemcached" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libmemcached_cppflags" for ac_header in libmemcached/memcached.h do : ac_fn_c_check_header_compile "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default" if test "x$ac_cv_header_libmemcached_memcached_h" = xyes then : printf "%s\n" "#define HAVE_LIBMEMCACHED_MEMCACHED_H 1" >>confdefs.h with_libmemcached="yes" else case e in #( e) with_libmemcached="no (libmemcached/memcached.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libmemcached" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_libmemcached_cppflags" LDFLAGS="$LDFLAGS $with_libmemcached_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memcached_create in -lmemcached" >&5 printf %s "checking for memcached_create in -lmemcached... " >&6; } if test ${ac_cv_lib_memcached_memcached_create+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lmemcached $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char memcached_create (void); int main (void) { return memcached_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_memcached_memcached_create=yes else case e in #( e) ac_cv_lib_memcached_memcached_create=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached_create" >&5 printf "%s\n" "$ac_cv_lib_memcached_memcached_create" >&6; } if test "x$ac_cv_lib_memcached_memcached_create" = xyes then : with_libmemcached="yes" else case e in #( e) with_libmemcached="no (Symbol 'memcached_create' not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libmemcached" = "xyes" then BUILD_WITH_LIBMEMCACHED_CPPFLAGS="$with_libmemcached_cppflags" BUILD_WITH_LIBMEMCACHED_LDFLAGS="$with_libmemcached_ldflags" BUILD_WITH_LIBMEMCACHED_LIBS="-lmemcached" printf "%s\n" "#define HAVE_LIBMEMCACHED 1" >>confdefs.h fi if test "x$with_libmemcached" = "xyes"; then BUILD_WITH_LIBMEMCACHED_TRUE= BUILD_WITH_LIBMEMCACHED_FALSE='#' else BUILD_WITH_LIBMEMCACHED_TRUE='#' BUILD_WITH_LIBMEMCACHED_FALSE= fi # }}} # --with-libmodbus {{{ with_libmodbus_config="" with_libmodbus_cflags="" with_libmodbus_libs="" # Check whether --with-libmodbus was given. if test ${with_libmodbus+y} then : withval=$with_libmodbus; if test "x$withval" = "xno" then with_libmodbus="no" else if test "x$withval" = "xyes" then with_libmodbus="use_pkgconfig" else if test -d "$with_libmodbus/lib" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not checking for libmodbus: Manually configured" >&5 printf "%s\n" "$as_me: Not checking for libmodbus: Manually configured" >&6;} with_libmodbus_cflags="-I$withval/include" with_libmodbus_libs="-L$withval/lib -lmodbus" with_libmodbus="yes" fi; fi; fi else case e in #( e) with_libmodbus="use_pkgconfig" ;; esac fi # configure using pkg-config if test "x$with_libmodbus" = "xuse_pkgconfig" then if test "x$PKG_CONFIG" = "x" then with_libmodbus="no (Don't have pkg-config)" fi fi if test "x$with_libmodbus" = "xuse_pkgconfig" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for libmodbus using $PKG_CONFIG" >&5 printf "%s\n" "$as_me: Checking for libmodbus using $PKG_CONFIG" >&6;} $PKG_CONFIG --exists 'libmodbus' 2>/dev/null if test $? -ne 0 then with_libmodbus="no (pkg-config doesn't know libmodbus)" fi fi if test "x$with_libmodbus" = "xuse_pkgconfig" then with_libmodbus_cflags="`$PKG_CONFIG --cflags 'libmodbus'`" if test $? -ne 0 then with_libmodbus="no ($PKG_CONFIG failed)" fi with_libmodbus_libs="`$PKG_CONFIG --libs 'libmodbus'`" if test $? -ne 0 then with_libmodbus="no ($PKG_CONFIG failed)" fi fi if test "x$with_libmodbus" = "xuse_pkgconfig" then with_libmodbus="yes" fi # with_libmodbus_cflags and with_libmodbus_libs are set up now, let's do # the actual checks. if test "x$with_libmodbus" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libmodbus_cflags" for ac_header in modbus/modbus.h do : ac_fn_c_check_header_compile "$LINENO" "modbus/modbus.h" "ac_cv_header_modbus_modbus_h" "$ac_includes_default" if test "x$ac_cv_header_modbus_modbus_h" = xyes then : printf "%s\n" "#define HAVE_MODBUS_MODBUS_H 1" >>confdefs.h else case e in #( e) with_libmodbus="no (modbus/modbus.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libmodbus" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_libmodbus_cflags" LDFLAGS="$LDFLAGS $with_libmodbus_libs" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for modbus_connect in -lmodbus" >&5 printf %s "checking for modbus_connect in -lmodbus... " >&6; } if test ${ac_cv_lib_modbus_modbus_connect+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lmodbus $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char modbus_connect (void); int main (void) { return modbus_connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_modbus_modbus_connect=yes else case e in #( e) ac_cv_lib_modbus_modbus_connect=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_modbus_modbus_connect" >&5 printf "%s\n" "$ac_cv_lib_modbus_modbus_connect" >&6; } if test "x$ac_cv_lib_modbus_modbus_connect" = xyes then : with_libmodbus="yes" else case e in #( e) with_libmodbus="no (symbol modbus_connect not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libmodbus" = "xyes" then BUILD_WITH_LIBMODBUS_CFLAGS="$with_libmodbus_cflags" BUILD_WITH_LIBMODBUS_LIBS="$with_libmodbus_libs" fi # }}} # --with-libmongoc {{{ # Check whether --with-libmongoc was given. if test ${with_libmongoc+y} then : withval=$with_libmongoc; if test "x$withval" = "xyes" then with_libmongoc="yes" else if test "x$withval" = "xno" then with_libmongoc="no" else with_libmongoc="yes" LIBMONGOC_CPPFLAGS="$LIBMONGOC_CPPFLAGS -I$withval/include" LIBMONGOC_LDFLAGS="$LIBMONGOC_LDFLAGS -L$withval/lib" fi; fi else case e in #( e) with_libmongoc="yes" ;; esac fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $LIBMONGOC_CPPFLAGS" LDFLAGS="$LDFLAGS $LIBMONGOC_LDFLAGS" if test "x$with_libmongoc" = "xyes" then if test "x$LIBMONGOC_CPPFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libmongoc CPPFLAGS: $LIBMONGOC_CPPFLAGS" >&5 printf "%s\n" "$as_me: libmongoc CPPFLAGS: $LIBMONGOC_CPPFLAGS" >&6;} fi for ac_header in mongo.h do : ac_fn_c_check_header_compile "$LINENO" "mongo.h" "ac_cv_header_mongo_h" "#if HAVE_STDINT_H # define MONGO_HAVE_STDINT 1 #else # define MONGO_USE_LONG_LONG_INT 1 #endif " if test "x$ac_cv_header_mongo_h" = xyes then : printf "%s\n" "#define HAVE_MONGO_H 1" >>confdefs.h with_libmongoc="yes" else case e in #( e) with_libmongoc="no ('mongo.h' not found)" ;; esac fi done fi if test "x$with_libmongoc" = "xyes" then if test "x$LIBMONGOC_LDFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libmongoc LDFLAGS: $LIBMONGOC_LDFLAGS" >&5 printf "%s\n" "$as_me: libmongoc LDFLAGS: $LIBMONGOC_LDFLAGS" >&6;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mongo_run_command in -lmongoc" >&5 printf %s "checking for mongo_run_command in -lmongoc... " >&6; } if test ${ac_cv_lib_mongoc_mongo_run_command+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lmongoc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char mongo_run_command (void); int main (void) { return mongo_run_command (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_mongoc_mongo_run_command=yes else case e in #( e) ac_cv_lib_mongoc_mongo_run_command=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mongoc_mongo_run_command" >&5 printf "%s\n" "$ac_cv_lib_mongoc_mongo_run_command" >&6; } if test "x$ac_cv_lib_mongoc_mongo_run_command" = xyes then : with_libmongoc="yes" else case e in #( e) with_libmongoc="no (symbol 'mongo_run_command' not found)" ;; esac fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_libmongoc" = "xyes" then BUILD_WITH_LIBMONGOC_CPPFLAGS="$LIBMONGOC_CPPFLAGS" BUILD_WITH_LIBMONGOC_LDFLAGS="$LIBMONGOC_LDFLAGS" fi if test "x$with_libmongoc" = "xyes"; then BUILD_WITH_LIBMONGOC_TRUE= BUILD_WITH_LIBMONGOC_FALSE='#' else BUILD_WITH_LIBMONGOC_TRUE='#' BUILD_WITH_LIBMONGOC_FALSE= fi # }}} # --with-libmysql {{{ with_mysql_config="mysql_config" with_mysql_cflags="" with_mysql_libs="" # Check whether --with-libmysql was given. if test ${with_libmysql+y} then : withval=$with_libmysql; if test "x$withval" = "xno" then with_libmysql="no" else if test "x$withval" = "xyes" then with_libmysql="yes" else if test -f "$withval" && test -x "$withval"; then with_mysql_config="$withval" else if test -x "$withval/bin/mysql_config" then with_mysql_config="$withval/bin/mysql_config" fi; fi with_libmysql="yes" fi; fi else case e in #( e) with_libmysql="yes" ;; esac fi if test "x$with_libmysql" = "xyes" then with_mysql_cflags=`$with_mysql_config --cflags 2>/dev/null` mysql_config_status=$? if test $mysql_config_status -ne 0 then with_libmysql="no ($with_mysql_config failed)" else SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_mysql_cflags" have_mysql_h="no" have_mysql_mysql_h="no" for ac_header in mysql.h do : ac_fn_c_check_header_compile "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default" if test "x$ac_cv_header_mysql_h" = xyes then : printf "%s\n" "#define HAVE_MYSQL_H 1" >>confdefs.h have_mysql_h="yes" fi done if test "x$have_mysql_h" = "xno" then for ac_header in mysql/mysql.h do : ac_fn_c_check_header_compile "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default" if test "x$ac_cv_header_mysql_mysql_h" = xyes then : printf "%s\n" "#define HAVE_MYSQL_MYSQL_H 1" >>confdefs.h have_mysql_mysql_h="yes" fi done fi if test "x$have_mysql_h$have_mysql_mysql_h" = "xnono" then with_libmysql="no (mysql.h not found)" fi CPPFLAGS="$SAVE_CPPFLAGS" fi fi if test "x$with_libmysql" = "xyes" then with_mysql_libs=`$with_mysql_config --libs_r 2>/dev/null` mysql_config_status=$? if test $mysql_config_status -ne 0 then with_libmysql="no ($with_mysql_config failed)" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 printf %s "checking for mysql_init in -lmysqlclient... " >&6; } if test ${ac_cv_lib_mysqlclient_mysql_init+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lmysqlclient $with_mysql_libs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char mysql_init (void); int main (void) { return mysql_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_mysqlclient_mysql_init=yes else case e in #( e) ac_cv_lib_mysqlclient_mysql_init=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 printf "%s\n" "$ac_cv_lib_mysqlclient_mysql_init" >&6; } if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes then : with_libmysql="yes" else case e in #( e) with_libmysql="no (symbol 'mysql_init' not found)" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mysql_get_server_version in -lmysqlclient" >&5 printf %s "checking for mysql_get_server_version in -lmysqlclient... " >&6; } if test ${ac_cv_lib_mysqlclient_mysql_get_server_version+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lmysqlclient $with_mysql_libs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char mysql_get_server_version (void); int main (void) { return mysql_get_server_version (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_mysqlclient_mysql_get_server_version=yes else case e in #( e) ac_cv_lib_mysqlclient_mysql_get_server_version=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_get_server_version" >&5 printf "%s\n" "$ac_cv_lib_mysqlclient_mysql_get_server_version" >&6; } if test "x$ac_cv_lib_mysqlclient_mysql_get_server_version" = xyes then : with_libmysql="yes" else case e in #( e) with_libmysql="no (symbol 'mysql_get_server_version' not found)" ;; esac fi fi fi if test "x$with_libmysql" = "xyes" then BUILD_WITH_LIBMYSQL_CFLAGS="$with_mysql_cflags" BUILD_WITH_LIBMYSQL_LIBS="$with_mysql_libs" fi if test "x$with_libmysql" = "xyes"; then BUILD_WITH_LIBMYSQL_TRUE= BUILD_WITH_LIBMYSQL_FALSE='#' else BUILD_WITH_LIBMYSQL_TRUE='#' BUILD_WITH_LIBMYSQL_FALSE= fi # }}} # --with-libmnl {{{ with_libmnl_cflags="" with_libmnl_libs="" # Check whether --with-libmnl was given. if test ${with_libmnl+y} then : withval=$with_libmnl; echo "libmnl: withval = $withval" if test "x$withval" = "xyes" then with_libmnl="yes" else if test "x$withval" = "xno" then with_libmnl="no" else if test -d "$withval/include" then with_libmnl_cflags="-I$withval/include" with_libmnl_libs="-L$withval/lib -lmnl" with_libmnl="yes" else as_fn_error $? "\"no such directory: $withval/include\"" "$LINENO" 5 fi fi; fi else case e in #( e) if test "x$ac_system" = "xLinux" then with_libmnl="yes" else with_libmnl="no (Linux only library)" fi ;; esac fi if test "x$PKG_CONFIG" = "x" then with_libmnl="no (Don't have pkg-config)" fi if test "x$with_libmnl" = "xyes" then if $PKG_CONFIG --exists libmnl 2>/dev/null; then with_libmnl_cflags="$with_libmnl_ldflags `$PKG_CONFIG --cflags libmnl`" with_libmnl_libs="$with_libmnl_libs `$PKG_CONFIG --libs libmnl`" fi for ac_header in libmnl.h libmnl/libmnl.h do : as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include #include #include #include #include #include " if eval test \"x\$"$as_ac_Header"\" = x"yes" then : cat >>confdefs.h <<_ACEOF #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 _ACEOF with_libmnl="yes" break fi done ac_fn_c_check_header_compile "$LINENO" "linux/gen_stats.h" "ac_cv_header_linux_gen_stats_h" "#include #include #include #include " if test "x$ac_cv_header_linux_gen_stats_h" = xyes then : printf "%s\n" "#define HAVE_LINUX_GEN_STATS_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "linux/pkt_sched.h" "ac_cv_header_linux_pkt_sched_h" "#include #include #include #include " if test "x$ac_cv_header_linux_pkt_sched_h" = xyes then : printf "%s\n" "#define HAVE_LINUX_PKT_SCHED_H 1" >>confdefs.h fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include #include int main (void) { int retval = TCA_STATS2; return (retval); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : printf "%s\n" "#define HAVE_TCA_STATS2 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #include #include int main (void) { int retval = TCA_STATS; return (retval); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : printf "%s\n" "#define HAVE_TCA_STATS 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test "x$with_libmnl" = "xyes" then ac_fn_c_check_member "$LINENO" "struct rtnl_link_stats64" "tx_window_errors" "ac_cv_member_struct_rtnl_link_stats64_tx_window_errors" " #include " if test "x$ac_cv_member_struct_rtnl_link_stats64_tx_window_errors" = xyes then : printf "%s\n" "#define HAVE_STRUCT_RTNL_LINK_STATS64_TX_WINDOW_ERRORS 1" >>confdefs.h printf "%s\n" "#define HAVE_RTNL_LINK_STATS64 1" >>confdefs.h fi fi if test "x$with_libmnl" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mnl_nlmsg_get_payload in -lmnl" >&5 printf %s "checking for mnl_nlmsg_get_payload in -lmnl... " >&6; } if test ${ac_cv_lib_mnl_mnl_nlmsg_get_payload+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lmnl $with_libmnl_libs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char mnl_nlmsg_get_payload (void); int main (void) { return mnl_nlmsg_get_payload (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_mnl_mnl_nlmsg_get_payload=yes else case e in #( e) ac_cv_lib_mnl_mnl_nlmsg_get_payload=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mnl_mnl_nlmsg_get_payload" >&5 printf "%s\n" "$ac_cv_lib_mnl_mnl_nlmsg_get_payload" >&6; } if test "x$ac_cv_lib_mnl_mnl_nlmsg_get_payload" = xyes then : with_libmnl="yes" else case e in #( e) with_libmnl="no (symbol 'mnl_nlmsg_get_payload' not found)" ;; esac fi fi if test "x$with_libmnl" = "xyes" then printf "%s\n" "#define HAVE_LIBMNL 1" >>confdefs.h BUILD_WITH_LIBMNL_CFLAGS="$with_libmnl_cflags" BUILD_WITH_LIBMNL_LIBS="$with_libmnl_libs" fi if test "x$with_libmnl" = "xyes"; then BUILD_WITH_LIBMNL_TRUE= BUILD_WITH_LIBMNL_FALSE='#' else BUILD_WITH_LIBMNL_TRUE='#' BUILD_WITH_LIBMNL_FALSE= fi # }}} # --with-libnetapp {{{ LIBNETAPP_CPPFLAGS="$LIBNETAPP_CPPFLAGS" LIBNETAPP_LDFLAGS="$LIBNETAPP_LDFLAGS" LIBNETAPP_LIBS="$LIBNETAPP_LIBS" # Check whether --with-libnetapp was given. if test ${with_libnetapp+y} then : withval=$with_libnetapp; if test -d "$withval" then LIBNETAPP_CPPFLAGS="$LIBNETAPP_CPPFLAGS -I$withval/include" LIBNETAPP_LDFLAGS="$LIBNETAPP_LDFLAGS -L$withval/lib" with_libnetapp="yes" else with_libnetapp="$withval" fi else case e in #( e) with_libnetapp="yes" ;; esac fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $LIBNETAPP_CPPFLAGS" LDFLAGS="$LDFLAGS $LIBNETAPP_LDFLAGS" if test "x$with_libnetapp" = "xyes" then if test "x$LIBNETAPP_CPPFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: netapp CPPFLAGS: $LIBNETAPP_CPPFLAGS" >&5 printf "%s\n" "$as_me: netapp CPPFLAGS: $LIBNETAPP_CPPFLAGS" >&6;} fi for ac_header in netapp_api.h do : ac_fn_c_check_header_compile "$LINENO" "netapp_api.h" "ac_cv_header_netapp_api_h" "$ac_includes_default" if test "x$ac_cv_header_netapp_api_h" = xyes then : printf "%s\n" "#define HAVE_NETAPP_API_H 1" >>confdefs.h with_libnetapp="yes" else case e in #( e) with_libnetapp="no (netapp_api.h not found)" ;; esac fi done fi if test "x$with_libnetapp" = "xyes" then if test "x$LIBNETAPP_LDFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: netapp LDFLAGS: $LIBNETAPP_LDFLAGS" >&5 printf "%s\n" "$as_me: netapp LDFLAGS: $LIBNETAPP_LDFLAGS" >&6;} fi if test "x$LIBNETAPP_LIBS" = "x" then LIBNETAPP_LIBS="-lpthread -lxml -ladt -lssl -lm -lcrypto -lz" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: netapp LIBS: $LIBNETAPP_LIBS" >&5 printf "%s\n" "$as_me: netapp LIBS: $LIBNETAPP_LIBS" >&6;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for na_server_invoke_elem in -lnetapp" >&5 printf %s "checking for na_server_invoke_elem in -lnetapp... " >&6; } if test ${ac_cv_lib_netapp_na_server_invoke_elem+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetapp $LIBNETAPP_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char na_server_invoke_elem (void); int main (void) { return na_server_invoke_elem (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_netapp_na_server_invoke_elem=yes else case e in #( e) ac_cv_lib_netapp_na_server_invoke_elem=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netapp_na_server_invoke_elem" >&5 printf "%s\n" "$ac_cv_lib_netapp_na_server_invoke_elem" >&6; } if test "x$ac_cv_lib_netapp_na_server_invoke_elem" = xyes then : with_libnetapp="yes" else case e in #( e) with_libnetapp="no (symbol na_server_invoke_elem not found)" ;; esac fi LIBNETAPP_LIBS="-lnetapp $LIBNETAPP_LIBS" fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_libnetapp" = "xyes" then printf "%s\n" "#define HAVE_LIBNETAPP 1" >>confdefs.h fi if test "x$with_libnetapp" = "xyes"; then BUILD_WITH_LIBNETAPP_TRUE= BUILD_WITH_LIBNETAPP_FALSE='#' else BUILD_WITH_LIBNETAPP_TRUE='#' BUILD_WITH_LIBNETAPP_FALSE= fi # }}} # --with-libnetsnmp {{{ with_snmp_config="net-snmp-config" with_snmp_cflags="" with_snmp_libs="" # Check whether --with-libnetsnmp was given. if test ${with_libnetsnmp+y} then : withval=$with_libnetsnmp; if test "x$withval" = "xno" then with_libnetsnmp="no" else if test "x$withval" = "xyes" then with_libnetsnmp="yes" else if test -x "$withval" then with_snmp_config="$withval" with_libnetsnmp="yes" else with_snmp_config="$withval/bin/net-snmp-config" with_libnetsnmp="yes" fi fi; fi else case e in #( e) with_libnetsnmp="yes" ;; esac fi if test "x$with_libnetsnmp" = "xyes" then with_snmp_cflags=`$with_snmp_config --cflags 2>/dev/null` snmp_config_status=$? if test $snmp_config_status -ne 0 then with_libnetsnmp="no ($with_snmp_config failed)" else SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_snmp_cflags" for ac_header in net-snmp/net-snmp-config.h do : ac_fn_c_check_header_compile "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default" if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes then : printf "%s\n" "#define HAVE_NET_SNMP_NET_SNMP_CONFIG_H 1" >>confdefs.h else case e in #( e) with_libnetsnmp="no (net-snmp/net-snmp-config.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi fi if test "x$with_libnetsnmp" = "xyes" then with_snmp_libs=`$with_snmp_config --libs 2>/dev/null` snmp_config_status=$? if test $snmp_config_status -ne 0 then with_libnetsnmp="no ($with_snmp_config failed)" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -lnetsnmp" >&5 printf %s "checking for init_snmp in -lnetsnmp... " >&6; } if test ${ac_cv_lib_netsnmp_init_snmp+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lnetsnmp $with_snmp_libs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char init_snmp (void); int main (void) { return init_snmp (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_netsnmp_init_snmp=yes else case e in #( e) ac_cv_lib_netsnmp_init_snmp=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_init_snmp" >&5 printf "%s\n" "$ac_cv_lib_netsnmp_init_snmp" >&6; } if test "x$ac_cv_lib_netsnmp_init_snmp" = xyes then : with_libnetsnmp="yes" else case e in #( e) with_libnetsnmp="no (libnetsnmp not found)" ;; esac fi fi fi if test "x$with_libnetsnmp" = "xyes" then BUILD_WITH_LIBSNMP_CFLAGS="$with_snmp_cflags" BUILD_WITH_LIBSNMP_LIBS="$with_snmp_libs" fi if test "x$with_libnetsnmp" = "xyes"; then BUILD_WITH_LIBNETSNMP_TRUE= BUILD_WITH_LIBNETSNMP_FALSE='#' else BUILD_WITH_LIBNETSNMP_TRUE='#' BUILD_WITH_LIBNETSNMP_FALSE= fi # }}} # --with-liboconfig {{{ with_own_liboconfig="no" liboconfig_LDFLAGS="$LDFLAGS" liboconfig_CPPFLAGS="$CPPFLAGS" # Check whether --with-liboconfig was given. if test ${with_liboconfig+y} then : withval=$with_liboconfig; if test "x$withval" != "xno" && test "x$withval" != "xyes" then if test -d "$withval/lib" then liboconfig_LDFLAGS="$LDFLAGS -L$withval/lib" fi if test -d "$withval/include" then liboconfig_CPPFLAGS="$CPPFLAGS -I$withval/include" fi fi if test "x$withval" = "xno" then as_fn_error $? "\"liboconfig is required\"" "$LINENO" 5 fi else case e in #( e) with_liboconfig="yes" ;; esac fi save_LDFLAGS="$LDFLAGS" save_CPPFLAGS="$CPPFLAGS" LDFLAGS="$liboconfig_LDFLAGS" CPPFLAGS="$liboconfig_CPPFLAGS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for oconfig_parse_fh in -loconfig" >&5 printf %s "checking for oconfig_parse_fh in -loconfig... " >&6; } if test ${ac_cv_lib_oconfig_oconfig_parse_fh+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-loconfig $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char oconfig_parse_fh (void); int main (void) { return oconfig_parse_fh (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_oconfig_oconfig_parse_fh=yes else case e in #( e) ac_cv_lib_oconfig_oconfig_parse_fh=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oconfig_oconfig_parse_fh" >&5 printf "%s\n" "$ac_cv_lib_oconfig_oconfig_parse_fh" >&6; } if test "x$ac_cv_lib_oconfig_oconfig_parse_fh" = xyes then : with_liboconfig="yes" with_own_liboconfig="no" else case e in #( e) with_liboconfig="yes" with_own_liboconfig="yes" LDFLAGS="$save_LDFLAGS" CPPFLAGS="$save_CPPFLAGS" ;; esac fi if test "x$with_own_liboconfig" = "xyes"; then BUILD_WITH_OWN_LIBOCONFIG_TRUE= BUILD_WITH_OWN_LIBOCONFIG_FALSE='#' else BUILD_WITH_OWN_LIBOCONFIG_TRUE='#' BUILD_WITH_OWN_LIBOCONFIG_FALSE= fi if test "x$with_own_liboconfig" = "xyes" then with_liboconfig="yes (shipped version)" fi # }}} # --with-liboping {{{ # Check whether --with-liboping was given. if test ${with_liboping+y} then : withval=$with_liboping; if test "x$withval" = "xyes" then with_liboping="yes" else if test "x$withval" = "xno" then with_liboping="no" else with_liboping="yes" LIBOPING_CPPFLAGS="$LIBOPING_CPPFLAGS -I$withval/include" LIBOPING_LDFLAGS="$LIBOPING_LDFLAGS -L$withval/lib" fi; fi else case e in #( e) with_liboping="yes" ;; esac fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $LIBOPING_CPPFLAGS" LDFLAGS="$LDFLAGS $LIBOPING_LDFLAGS" if test "x$with_liboping" = "xyes" then if test "x$LIBOPING_CPPFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: liboping CPPFLAGS: $LIBOPING_CPPFLAGS" >&5 printf "%s\n" "$as_me: liboping CPPFLAGS: $LIBOPING_CPPFLAGS" >&6;} fi for ac_header in oping.h do : ac_fn_c_check_header_compile "$LINENO" "oping.h" "ac_cv_header_oping_h" "$ac_includes_default" if test "x$ac_cv_header_oping_h" = xyes then : printf "%s\n" "#define HAVE_OPING_H 1" >>confdefs.h with_liboping="yes" else case e in #( e) with_liboping="no (oping.h not found)" ;; esac fi done fi if test "x$with_liboping" = "xyes" then if test "x$LIBOPING_LDFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: liboping LDFLAGS: $LIBOPING_LDFLAGS" >&5 printf "%s\n" "$as_me: liboping LDFLAGS: $LIBOPING_LDFLAGS" >&6;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ping_construct in -loping" >&5 printf %s "checking for ping_construct in -loping... " >&6; } if test ${ac_cv_lib_oping_ping_construct+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-loping $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char ping_construct (void); int main (void) { return ping_construct (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_oping_ping_construct=yes else case e in #( e) ac_cv_lib_oping_ping_construct=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oping_ping_construct" >&5 printf "%s\n" "$ac_cv_lib_oping_ping_construct" >&6; } if test "x$ac_cv_lib_oping_ping_construct" = xyes then : with_liboping="yes" else case e in #( e) with_liboping="no (symbol 'ping_construct' not found)" ;; esac fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_liboping" = "xyes" then BUILD_WITH_LIBOPING_CPPFLAGS="$LIBOPING_CPPFLAGS" BUILD_WITH_LIBOPING_LDFLAGS="$LIBOPING_LDFLAGS" fi if test "x$with_liboping" = "xyes"; then BUILD_WITH_LIBOPING_TRUE= BUILD_WITH_LIBOPING_FALSE='#' else BUILD_WITH_LIBOPING_TRUE='#' BUILD_WITH_LIBOPING_FALSE= fi # }}} # --with-oracle {{{ with_oracle_cppflags="" with_oracle_libs="" # Check whether --with-oracle was given. if test ${with_oracle+y} then : withval=$with_oracle; if test "x$withval" = "xyes" then if test "x$ORACLE_HOME" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Use of the Oracle library has been forced, but the environment variable ORACLE_HOME is not set." >&5 printf "%s\n" "$as_me: WARNING: Use of the Oracle library has been forced, but the environment variable ORACLE_HOME is not set." >&2;} fi with_oracle="yes" else if test "x$withval" = "xno" then with_oracle="no" else with_oracle="yes" ORACLE_HOME="$withval" fi; fi else case e in #( e) if test "x$ORACLE_HOME" = "x" then with_oracle="no (ORACLE_HOME is not set)" else with_oracle="yes" fi ;; esac fi if test "x$ORACLE_HOME" != "x" then with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public" if test -e "$ORACLE_HOME/lib/ldflags" then with_oracle_libs=`cat "$ORACLE_HOME/lib/ldflags"` fi #with_oracle_libs="-L$ORACLE_HOME/lib $with_oracle_libs -lclntsh" with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh" fi if test "x$with_oracle" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_oracle_cppflags" for ac_header in oci.h do : ac_fn_c_check_header_compile "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default" if test "x$ac_cv_header_oci_h" = xyes then : printf "%s\n" "#define HAVE_OCI_H 1" >>confdefs.h with_oracle="yes" else case e in #( e) with_oracle="no (oci.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_oracle" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LIBS="$LIBS" CPPFLAGS="$CPPFLAGS $with_oracle_cppflags" LIBS="$LIBS $with_oracle_libs" ac_fn_c_check_func "$LINENO" "OCIEnvCreate" "ac_cv_func_OCIEnvCreate" if test "x$ac_cv_func_OCIEnvCreate" = xyes then : with_oracle="yes" else case e in #( e) with_oracle="no (Symbol 'OCIEnvCreate' not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LIBS="$SAVE_LIBS" fi if test "x$with_oracle" = "xyes" then BUILD_WITH_ORACLE_CFLAGS="$with_oracle_cppflags" BUILD_WITH_ORACLE_LIBS="$with_oracle_libs" fi # }}} # --with-libowcapi {{{ with_libowcapi_cppflags="" with_libowcapi_libs="-lowcapi" # Check whether --with-libowcapi was given. if test ${with_libowcapi+y} then : withval=$with_libowcapi; if test "x$withval" != "xno" && test "x$withval" != "xyes" then with_libowcapi_cppflags="-I$withval/include" with_libowcapi_libs="-L$withval/lib -lowcapi" with_libowcapi="yes" else with_libowcapi="$withval" fi else case e in #( e) with_libowcapi="yes" ;; esac fi if test "x$with_libowcapi" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$with_libowcapi_cppflags" for ac_header in owcapi.h do : ac_fn_c_check_header_compile "$LINENO" "owcapi.h" "ac_cv_header_owcapi_h" "$ac_includes_default" if test "x$ac_cv_header_owcapi_h" = xyes then : printf "%s\n" "#define HAVE_OWCAPI_H 1" >>confdefs.h with_libowcapi="yes" else case e in #( e) with_libowcapi="no (owcapi.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libowcapi" = "xyes" then SAVE_LDFLAGS="$LDFLAGS" SAVE_CPPFLAGS="$CPPFLAGS" LDFLAGS="$with_libowcapi_libs" CPPFLAGS="$with_libowcapi_cppflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OW_get in -lowcapi" >&5 printf %s "checking for OW_get in -lowcapi... " >&6; } if test ${ac_cv_lib_owcapi_OW_get+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lowcapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char OW_get (void); int main (void) { return OW_get (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_owcapi_OW_get=yes else case e in #( e) ac_cv_lib_owcapi_OW_get=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_owcapi_OW_get" >&5 printf "%s\n" "$ac_cv_lib_owcapi_OW_get" >&6; } if test "x$ac_cv_lib_owcapi_OW_get" = xyes then : with_libowcapi="yes" else case e in #( e) with_libowcapi="no (libowcapi not found)" ;; esac fi LDFLAGS="$SAVE_LDFLAGS" CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libowcapi" = "xyes" then BUILD_WITH_LIBOWCAPI_CPPFLAGS="$with_libowcapi_cppflags" BUILD_WITH_LIBOWCAPI_LIBS="$with_libowcapi_libs" fi # }}} # --with-libpcap {{{ # Check whether --with-libpcap was given. if test ${with_libpcap+y} then : withval=$with_libpcap; if test "x$withval" != "xno" && test "x$withval" != "xyes" then LDFLAGS="$LDFLAGS -L$withval/lib" CPPFLAGS="$CPPFLAGS -I$withval/include" with_libpcap="yes" else with_libpcap="$withval" fi else case e in #( e) with_libpcap="yes" ;; esac fi if test "x$with_libpcap" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5 printf %s "checking for pcap_open_live in -lpcap... " >&6; } if test ${ac_cv_lib_pcap_pcap_open_live+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpcap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char pcap_open_live (void); int main (void) { return pcap_open_live (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_pcap_pcap_open_live=yes else case e in #( e) ac_cv_lib_pcap_pcap_open_live=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5 printf "%s\n" "$ac_cv_lib_pcap_pcap_open_live" >&6; } if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes then : printf "%s\n" "#define HAVE_LIBPCAP 1" >>confdefs.h else case e in #( e) with_libpcap="no (libpcap not found)" ;; esac fi fi if test "x$with_libpcap" = "xyes" then for ac_header in pcap.h do : ac_fn_c_check_header_compile "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default" if test "x$ac_cv_header_pcap_h" = xyes then : printf "%s\n" "#define HAVE_PCAP_H 1" >>confdefs.h else case e in #( e) with_libpcap="no (pcap.h not found)" ;; esac fi done fi if test "x$with_libpcap" = "xyes" then for ac_header in pcap-bpf.h do : ac_fn_c_check_header_compile "$LINENO" "pcap-bpf.h" "ac_cv_header_pcap_bpf_h" "$ac_includes_default" if test "x$ac_cv_header_pcap_bpf_h" = xyes then : printf "%s\n" "#define HAVE_PCAP_BPF_H 1" >>confdefs.h else case e in #( e) with_libpcap="no (pcap-bpf.h not found)" ;; esac fi done fi if test "x$with_libpcap" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libpcap has PCAP_ERROR_IFACE_NOT_UP" >&5 printf %s "checking whether libpcap has PCAP_ERROR_IFACE_NOT_UP... " >&6; } if test ${c_cv_libpcap_have_pcap_error_iface_not_up+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main (void) { int val = PCAP_ERROR_IFACE_NOT_UP; return(val); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO" then : c_cv_libpcap_have_pcap_error_iface_not_up="yes" else case e in #( e) c_cv_libpcap_have_pcap_error_iface_not_up="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_libpcap_have_pcap_error_iface_not_up" >&5 printf "%s\n" "$c_cv_libpcap_have_pcap_error_iface_not_up" >&6; } fi if test "x$c_cv_libpcap_have_pcap_error_iface_not_up" != "xyes" then with_libpcap="no (pcap.h misses PCAP_ERROR_IFACE_NOT_UP)" fi if test "x$with_libpcap" = "xyes"; then BUILD_WITH_LIBPCAP_TRUE= BUILD_WITH_LIBPCAP_FALSE='#' else BUILD_WITH_LIBPCAP_TRUE='#' BUILD_WITH_LIBPCAP_FALSE= fi # }}} # --with-libperl {{{ perl_interpreter="perl" # Check whether --with-libperl was given. if test ${with_libperl+y} then : withval=$with_libperl; if test -f "$withval" && test -x "$withval" then perl_interpreter="$withval" with_libperl="yes" else if test "x$withval" != "xno" && test "x$withval" != "xyes" then LDFLAGS="$LDFLAGS -L$withval/lib" CPPFLAGS="$CPPFLAGS -I$withval/include" perl_interpreter="$withval/bin/perl" with_libperl="yes" else with_libperl="$withval" fi; fi else case e in #( e) with_libperl="yes" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 printf %s "checking for perl... " >&6; } perl_interpreter=`which "$perl_interpreter" 2> /dev/null` if test -x "$perl_interpreter" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($perl_interpreter)" >&5 printf "%s\n" "yes ($perl_interpreter)" >&6; } else perl_interpreter="" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } fi PERL="$perl_interpreter" if test "x$with_libperl" = "xyes" \ && test -n "$perl_interpreter" then SAVE_CFLAGS="$CFLAGS" SAVE_LIBS="$LIBS" PERL_CFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ccopts` PERL_LIBS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ldopts` CFLAGS="$CFLAGS $PERL_CFLAGS" LIBS="$LIBS $PERL_LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5 printf %s "checking for libperl... " >&6; } if test ${c_cv_have_libperl+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define PERL_NO_GET_CONTEXT #include #include #include int main (void) { dTHX; load_module (PERL_LOADMOD_NOIMPORT, newSVpv ("Collectd::Plugin::FooBar", 24), Nullsv); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : c_cv_have_libperl="yes" else case e in #( e) c_cv_have_libperl="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_libperl" >&5 printf "%s\n" "$c_cv_have_libperl" >&6; } if test "x$c_cv_have_libperl" = "xyes" then printf "%s\n" "#define HAVE_LIBPERL 1" >>confdefs.h else with_libperl="no" fi CFLAGS="$SAVE_CFLAGS" LIBS="$SAVE_LIBS" else if test -z "$perl_interpreter"; then with_libperl="no (no perl interpreter found)" c_cv_have_libperl="no" fi; fi if test "x$with_libperl" = "xyes"; then BUILD_WITH_LIBPERL_TRUE= BUILD_WITH_LIBPERL_FALSE='#' else BUILD_WITH_LIBPERL_TRUE='#' BUILD_WITH_LIBPERL_FALSE= fi if test "x$with_libperl" = "xyes" then SAVE_CFLAGS="$CFLAGS" SAVE_LIBS="$LIBS" CFLAGS="$CFLAGS $PERL_CFLAGS" LIBS="$LIBS $PERL_LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if perl supports ithreads" >&5 printf %s "checking if perl supports ithreads... " >&6; } if test ${c_cv_have_perl_ithreads+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #if !defined(USE_ITHREADS) # error "Perl does not support ithreads!" #endif /* !defined(USE_ITHREADS) */ int main (void) { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : c_cv_have_perl_ithreads="yes" else case e in #( e) c_cv_have_perl_ithreads="no" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_perl_ithreads" >&5 printf "%s\n" "$c_cv_have_perl_ithreads" >&6; } if test "x$c_cv_have_perl_ithreads" = "xyes" then printf "%s\n" "#define HAVE_PERL_ITHREADS 1" >>confdefs.h fi CFLAGS="$SAVE_CFLAGS" LIBS="$SAVE_LIBS" fi if test "x$with_libperl" = "xyes" then SAVE_CFLAGS="$CFLAGS" SAVE_LIBS="$LIBS" # trigger an error if Perl_load_module*() uses __attribute__nonnull__(3) # (see issues #41 and #42) CFLAGS="$CFLAGS $PERL_CFLAGS -Wall -Werror" LIBS="$LIBS $PERL_LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken Perl_load_module()" >&5 printf %s "checking for broken Perl_load_module()... " >&6; } if test ${c_cv_have_broken_perl_load_module+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define PERL_NO_GET_CONTEXT #include #include #include int main (void) { dTHX; load_module (PERL_LOADMOD_NOIMPORT, newSVpv ("Collectd::Plugin::FooBar", 24), Nullsv); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : c_cv_have_broken_perl_load_module="no" else case e in #( e) c_cv_have_broken_perl_load_module="yes" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_broken_perl_load_module" >&5 printf "%s\n" "$c_cv_have_broken_perl_load_module" >&6; } CFLAGS="$SAVE_CFLAGS" LIBS="$SAVE_LIBS" fi if test "x$c_cv_have_broken_perl_load_module" = "xyes"; then HAVE_BROKEN_PERL_LOAD_MODULE_TRUE= HAVE_BROKEN_PERL_LOAD_MODULE_FALSE='#' else HAVE_BROKEN_PERL_LOAD_MODULE_TRUE='#' HAVE_BROKEN_PERL_LOAD_MODULE_FALSE= fi if test "x$with_libperl" = "xyes" then SAVE_CFLAGS="$CFLAGS" SAVE_LIBS="$LIBS" CFLAGS="$CFLAGS $PERL_CFLAGS" LIBS="$LIBS $PERL_LIBS" ac_fn_c_check_member "$LINENO" "struct mgvtbl" "svt_local" "ac_cv_member_struct_mgvtbl_svt_local" " #include #include #include " if test "x$ac_cv_member_struct_mgvtbl_svt_local" = xyes then : have_struct_mgvtbl_svt_local="yes" else case e in #( e) have_struct_mgvtbl_svt_local="no" ;; esac fi if test "x$have_struct_mgvtbl_svt_local" = "xyes" then printf "%s\n" "#define HAVE_PERL_STRUCT_MGVTBL_SVT_LOCAL 1" >>confdefs.h fi CFLAGS="$SAVE_CFLAGS" LIBS="$SAVE_LIBS" fi # }}} # --with-libpq {{{ with_pg_config="pg_config" with_libpq_includedir="" with_libpq_libdir="" with_libpq_cppflags="" with_libpq_ldflags="" # Check whether --with-libpq was given. if test ${with_libpq+y} then : withval=$with_libpq; if test "x$withval" = "xno" then with_libpq="no" else if test "x$withval" = "xyes" then with_libpq="yes" else if test -f "$withval" && test -x "$withval"; then with_pg_config="$withval" else if test -x "$withval/bin/pg_config" then with_pg_config="$withval/bin/pg_config" fi; fi with_libpq="yes" fi; fi else case e in #( e) with_libpq="yes" ;; esac fi if test "x$with_libpq" = "xyes" then with_libpq_includedir=`$with_pg_config --includedir 2> /dev/null` pg_config_status=$? if test $pg_config_status -eq 0 then if test -n "$with_libpq_includedir"; then for dir in $with_libpq_includedir; do with_libpq_cppflags="$with_libpq_cppflags -I$dir" done fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $with_pg_config returned with status $pg_config_status" >&5 printf "%s\n" "$as_me: WARNING: $with_pg_config returned with status $pg_config_status" >&2;} fi SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libpq_cppflags" for ac_header in libpq-fe.h do : ac_fn_c_check_header_compile "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" if test "x$ac_cv_header_libpq_fe_h" = xyes then : printf "%s\n" "#define HAVE_LIBPQ_FE_H 1" >>confdefs.h else case e in #( e) with_libpq="no (libpq-fe.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libpq" = "xyes" then with_libpq_libdir=`$with_pg_config --libdir 2> /dev/null` pg_config_status=$? if test $pg_config_status -eq 0 then if test -n "$with_libpq_libdir"; then for dir in $with_libpq_libdir; do with_libpq_ldflags="$with_libpq_ldflags -L$dir" done fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $with_pg_config returned with status $pg_config_status" >&5 printf "%s\n" "$as_me: WARNING: $with_pg_config returned with status $pg_config_status" >&2;} fi SAVE_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $with_libpq_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5 printf %s "checking for PQconnectdb in -lpq... " >&6; } if test ${ac_cv_lib_pq_PQconnectdb+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpq $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char PQconnectdb (void); int main (void) { return PQconnectdb (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_pq_PQconnectdb=yes else case e in #( e) ac_cv_lib_pq_PQconnectdb=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5 printf "%s\n" "$ac_cv_lib_pq_PQconnectdb" >&6; } if test "x$ac_cv_lib_pq_PQconnectdb" = xyes then : with_libpq="yes" else case e in #( e) with_libpq="no (symbol 'PQconnectdb' not found)" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PQserverVersion in -lpq" >&5 printf %s "checking for PQserverVersion in -lpq... " >&6; } if test ${ac_cv_lib_pq_PQserverVersion+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpq $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char PQserverVersion (void); int main (void) { return PQserverVersion (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_pq_PQserverVersion=yes else case e in #( e) ac_cv_lib_pq_PQserverVersion=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQserverVersion" >&5 printf "%s\n" "$ac_cv_lib_pq_PQserverVersion" >&6; } if test "x$ac_cv_lib_pq_PQserverVersion" = xyes then : with_libpq="yes" else case e in #( e) with_libpq="no (symbol 'PQserverVersion' not found)" ;; esac fi LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libpq" = "xyes" then BUILD_WITH_LIBPQ_CPPFLAGS="$with_libpq_cppflags" BUILD_WITH_LIBPQ_LDFLAGS="$with_libpq_ldflags" fi if test "x$with_libpq" = "xyes"; then BUILD_WITH_LIBPQ_TRUE= BUILD_WITH_LIBPQ_FALSE='#' else BUILD_WITH_LIBPQ_TRUE='#' BUILD_WITH_LIBPQ_FALSE= fi # }}} # --with-libpthread {{{ # Check whether --with-libpthread was given. if test ${with_libpthread+y} then : withval=$with_libpthread; if test "x$withval" != "xno" \ && test "x$withval" != "xyes" then LDFLAGS="$LDFLAGS -L$withval/lib" CPPFLAGS="$CPPFLAGS -I$withval/include" with_libpthread="yes" else if test "x$withval" = "xno" then with_libpthread="no (disabled)" fi fi else case e in #( e) with_libpthread="yes" ;; esac fi if test "x$with_libpthread" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 printf %s "checking for pthread_create in -lpthread... " >&6; } if test ${ac_cv_lib_pthread_pthread_create+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char pthread_create (void); int main (void) { return pthread_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_pthread_pthread_create=yes else case e in #( e) ac_cv_lib_pthread_pthread_create=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } if test "x$ac_cv_lib_pthread_pthread_create" = xyes then : with_libpthread="yes" else case e in #( e) with_libpthread="no (libpthread not found)" ;; esac fi fi if test "x$with_libpthread" = "xyes" then for ac_header in pthread.h do : ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_h" = xyes then : printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h else case e in #( e) with_libpthread="no (pthread.h not found)" ;; esac fi done fi if test "x$with_libpthread" = "xyes" then collect_pthread=1 else collect_pthread=0 fi printf "%s\n" "#define HAVE_LIBPTHREAD $collect_pthread" >>confdefs.h if test "x$with_libpthread" = "xyes"; then BUILD_WITH_LIBPTHREAD_TRUE= BUILD_WITH_LIBPTHREAD_FALSE='#' else BUILD_WITH_LIBPTHREAD_TRUE='#' BUILD_WITH_LIBPTHREAD_FALSE= fi # }}} # --with-python {{{ with_python_prog="" with_python_path="$PATH" # Check whether --with-python was given. if test ${with_python+y} then : withval=$with_python; if test "x$withval" = "xyes" || test "x$withval" = "xno" then with_python="$withval" else if test -x "$withval" then with_python_prog="$withval" with_python_path="`dirname \"$withval\"`$PATH_SEPARATOR$with_python_path" with_python="yes" else if test -d "$withval" then with_python_path="$withval$PATH_SEPARATOR$with_python_path" with_python="yes" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Argument not recognized: $withval" >&5 printf "%s\n" "$as_me: WARNING: Argument not recognized: $withval" >&2;} fi; fi; fi else case e in #( e) with_python="yes" ;; esac fi SAVE_PATH="$PATH" SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" SAVE_LIBS="$LIBS" PATH="$with_python_path" if test "x$with_python" = "xyes" && test "x$with_python_prog" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python" >&5 printf %s "checking for python... " >&6; } with_python_prog="`which python 2>/dev/null`" if test "x$with_python_prog" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 printf "%s\n" "not found" >&6; } with_python="no (interpreter not found)" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_python_prog" >&5 printf "%s\n" "$with_python_prog" >&6; } fi fi if test "x$with_python" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python CPPFLAGS" >&5 printf %s "checking for Python CPPFLAGS... " >&6; } python_include_path=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_python_inc())" | "$with_python_prog" 2>&1` python_config_status=$? if test "$python_config_status" -ne 0 || test "x$python_include_path" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed with status $python_config_status (output: $python_include_path)" >&5 printf "%s\n" "failed with status $python_config_status (output: $python_include_path)" >&6; } with_python="no" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $python_include_path" >&5 printf "%s\n" "$python_include_path" >&6; } fi fi if test "x$with_python" = "xyes" then CPPFLAGS="-I$python_include_path $CPPFLAGS" for ac_header in Python.h do : ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" if test "x$ac_cv_header_Python_h" = xyes then : printf "%s\n" "#define HAVE_PYTHON_H 1" >>confdefs.h with_python="yes" else case e in #( e) with_python="no ('Python.h' not found)" ;; esac fi done fi if test "x$with_python" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python LDFLAGS" >&5 printf %s "checking for Python LDFLAGS... " >&6; } python_library_path=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_config_vars(\"LIBDIR\").__getitem__(0))" | "$with_python_prog" 2>&1` python_config_status=$? if test "$python_config_status" -ne 0 || test "x$python_library_path" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed with status $python_config_status (output: $python_library_path)" >&5 printf "%s\n" "failed with status $python_config_status (output: $python_library_path)" >&6; } with_python="no" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $python_library_path" >&5 printf "%s\n" "$python_library_path" >&6; } fi fi if test "x$with_python" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python LIBS" >&5 printf %s "checking for Python LIBS... " >&6; } python_library_flags=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_config_vars(\"BLDLIBRARY\").__getitem__(0))" | "$with_python_prog" 2>&1` python_config_status=$? if test "$python_config_status" -ne 0 || test "x$python_library_flags" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed with status $python_config_status (output: $python_library_flags)" >&5 printf "%s\n" "failed with status $python_config_status (output: $python_library_flags)" >&6; } with_python="no" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $python_library_flags" >&5 printf "%s\n" "$python_library_flags" >&6; } fi fi if test "x$with_python" = "xyes" then LDFLAGS="-L$python_library_path $LDFLAGS" LIBS="$python_library_flags $LIBS" ac_fn_c_check_func "$LINENO" "PyObject_CallFunction" "ac_cv_func_PyObject_CallFunction" if test "x$ac_cv_func_PyObject_CallFunction" = xyes then : with_python="yes" else case e in #( e) with_python="no (Symbol 'PyObject_CallFunction' not found)" ;; esac fi fi PATH="$SAVE_PATH" CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" LIBS="$SAVE_LIBS" if test "x$with_python" = "xyes" then BUILD_WITH_PYTHON_CPPFLAGS="-I$python_include_path" BUILD_WITH_PYTHON_LDFLAGS="-L$python_library_path" BUILD_WITH_PYTHON_LIBS="$python_library_flags" fi # }}} --with-python # --with-librabbitmq {{{ with_librabbitmq_cppflags="" with_librabbitmq_ldflags="" # Check whether --with-librabbitmq was given. if test ${with_librabbitmq+y} then : withval=$with_librabbitmq; if test "x$withval" != "xno" && test "x$withval" != "xyes" then with_librabbitmq_cppflags="-I$withval/include" with_librabbitmq_ldflags="-L$withval/lib" with_librabbitmq="yes" else with_librabbitmq="$withval" fi else case e in #( e) with_librabbitmq="yes" ;; esac fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_librabbitmq_cppflags" LDFLAGS="$LDFLAGS $with_librabbitmq_ldflags" if test "x$with_librabbitmq" = "xyes" then for ac_header in amqp.h do : ac_fn_c_check_header_compile "$LINENO" "amqp.h" "ac_cv_header_amqp_h" "$ac_includes_default" if test "x$ac_cv_header_amqp_h" = xyes then : printf "%s\n" "#define HAVE_AMQP_H 1" >>confdefs.h with_librabbitmq="yes" else case e in #( e) with_librabbitmq="no (amqp.h not found)" ;; esac fi done fi if test "x$with_librabbitmq" = "xyes" then # librabbitmq up to version 0.9.1 provides "library_errno", later # versions use "library_error". The library does not provide a version # macro :( Use "AC_CHECK_MEMBERS" (plural) for automatic defines. ac_fn_c_check_member "$LINENO" "amqp_rpc_reply_t" "library_errno" "ac_cv_member_amqp_rpc_reply_t_library_errno" " #if HAVE_STDLIB_H # include #endif #if HAVE_STDIO_H # include #endif #if HAVE_STDINT_H # include #endif #if HAVE_INTTYPES_H # include #endif #include " if test "x$ac_cv_member_amqp_rpc_reply_t_library_errno" = xyes then : printf "%s\n" "#define HAVE_AMQP_RPC_REPLY_T_LIBRARY_ERRNO 1" >>confdefs.h fi fi if test "x$with_librabbitmq" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for amqp_basic_publish in -lrabbitmq" >&5 printf %s "checking for amqp_basic_publish in -lrabbitmq... " >&6; } if test ${ac_cv_lib_rabbitmq_amqp_basic_publish+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrabbitmq $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char amqp_basic_publish (void); int main (void) { return amqp_basic_publish (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rabbitmq_amqp_basic_publish=yes else case e in #( e) ac_cv_lib_rabbitmq_amqp_basic_publish=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rabbitmq_amqp_basic_publish" >&5 printf "%s\n" "$ac_cv_lib_rabbitmq_amqp_basic_publish" >&6; } if test "x$ac_cv_lib_rabbitmq_amqp_basic_publish" = xyes then : with_librabbitmq="yes" else case e in #( e) with_librabbitmq="no (Symbol 'amqp_basic_publish' not found)" ;; esac fi fi if test "x$with_librabbitmq" = "xyes" then BUILD_WITH_LIBRABBITMQ_CPPFLAGS="$with_librabbitmq_cppflags" BUILD_WITH_LIBRABBITMQ_LDFLAGS="$with_librabbitmq_ldflags" BUILD_WITH_LIBRABBITMQ_LIBS="-lrabbitmq" printf "%s\n" "#define HAVE_LIBRABBITMQ 1" >>confdefs.h fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_librabbitmq" = "xyes"; then BUILD_WITH_LIBRABBITMQ_TRUE= BUILD_WITH_LIBRABBITMQ_FALSE='#' else BUILD_WITH_LIBRABBITMQ_TRUE='#' BUILD_WITH_LIBRABBITMQ_FALSE= fi with_amqp_tcp_socket="no" if test "x$with_librabbitmq" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" SAVE_LIBS="$LIBS" CPPFLAGS="$CPPFLAGS $with_librabbitmq_cppflags" LDFLAGS="$LDFLAGS $with_librabbitmq_ldflags" LIBS="-lrabbitmq" ac_fn_c_check_header_compile "$LINENO" "amqp_tcp_socket.h" "ac_cv_header_amqp_tcp_socket_h" "$ac_includes_default" if test "x$ac_cv_header_amqp_tcp_socket_h" = xyes then : printf "%s\n" "#define HAVE_AMQP_TCP_SOCKET_H 1" >>confdefs.h fi ac_fn_c_check_header_compile "$LINENO" "amqp_socket.h" "ac_cv_header_amqp_socket_h" "$ac_includes_default" if test "x$ac_cv_header_amqp_socket_h" = xyes then : printf "%s\n" "#define HAVE_AMQP_SOCKET_H 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "amqp_tcp_socket_new" "ac_cv_func_amqp_tcp_socket_new" if test "x$ac_cv_func_amqp_tcp_socket_new" = xyes then : with_amqp_tcp_socket="yes" else case e in #( e) with_amqp_tcp_socket="no" ;; esac fi if test "x$with_amqp_tcp_socket" = "xyes" then printf "%s\n" "#define HAVE_AMQP_TCP_SOCKET 1" >>confdefs.h fi ac_fn_check_decl "$LINENO" "amqp_socket_close" "ac_cv_have_decl_amqp_socket_close" " #include #ifdef HAVE_AMQP_TCP_SOCKET_H # include #endif #ifdef HAVE_AMQP_SOCKET_H # include #endif " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_amqp_socket_close" = xyes then : ac_have_decl=1 else case e in #( e) ac_have_decl=0 ;; esac fi printf "%s\n" "#define HAVE_DECL_AMQP_SOCKET_CLOSE $ac_have_decl" >>confdefs.h if test $ac_have_decl = 1 then : amqp_socket_close_decl="yes" else case e in #( e) amqp_socket_close_decl="no" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" LIBS="$SAVE_LIBS" fi # }}} # --with-librdkafka {{{ # Check whether --with-librdkafka was given. if test ${with_librdkafka+y} then : withval=$with_librdkafka; if test "x$withval" != "xno" && test "x$withval" != "xyes" then with_librdkafka_cppflags="-I$withval/include" with_librdkafka_ldflags="-L$withval/lib" with_librdkafka_rpath="$withval/lib" with_librdkafka="yes" else with_librdkafka="$withval" fi else case e in #( e) with_librdkafka="yes" ;; esac fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_librdkafka_cppflags" LDFLAGS="$LDFLAGS $with_librdkafka_ldflags" if test "x$with_librdkafka" = "xyes" then for ac_header in librdkafka/rdkafka.h do : ac_fn_c_check_header_compile "$LINENO" "librdkafka/rdkafka.h" "ac_cv_header_librdkafka_rdkafka_h" "$ac_includes_default" if test "x$ac_cv_header_librdkafka_rdkafka_h" = xyes then : printf "%s\n" "#define HAVE_LIBRDKAFKA_RDKAFKA_H 1" >>confdefs.h with_librdkafka="yes" else case e in #( e) with_librdkafka="no (librdkafka/rdkafka.h not found)" ;; esac fi done fi if test "x$with_librdkafka" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_new in -lrdkafka" >&5 printf %s "checking for rd_kafka_new in -lrdkafka... " >&6; } if test ${ac_cv_lib_rdkafka_rd_kafka_new+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrdkafka $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char rd_kafka_new (void); int main (void) { return rd_kafka_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rdkafka_rd_kafka_new=yes else case e in #( e) ac_cv_lib_rdkafka_rd_kafka_new=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_new" >&5 printf "%s\n" "$ac_cv_lib_rdkafka_rd_kafka_new" >&6; } if test "x$ac_cv_lib_rdkafka_rd_kafka_new" = xyes then : with_librdkafka="yes" else case e in #( e) with_librdkafka="no (Symbol 'rd_kafka_new' not found)" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_conf_set_log_cb in -lrdkafka" >&5 printf %s "checking for rd_kafka_conf_set_log_cb in -lrdkafka... " >&6; } if test ${ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrdkafka $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char rd_kafka_conf_set_log_cb (void); int main (void) { return rd_kafka_conf_set_log_cb (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb=yes else case e in #( e) ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb" >&5 printf "%s\n" "$ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb" >&6; } if test "x$ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb" = xyes then : with_librdkafka_log_cb="yes" else case e in #( e) with_librdkafka_log_cb="no" ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_set_logger in -lrdkafka" >&5 printf %s "checking for rd_kafka_set_logger in -lrdkafka... " >&6; } if test ${ac_cv_lib_rdkafka_rd_kafka_set_logger+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrdkafka $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char rd_kafka_set_logger (void); int main (void) { return rd_kafka_set_logger (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rdkafka_rd_kafka_set_logger=yes else case e in #( e) ac_cv_lib_rdkafka_rd_kafka_set_logger=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_set_logger" >&5 printf "%s\n" "$ac_cv_lib_rdkafka_rd_kafka_set_logger" >&6; } if test "x$ac_cv_lib_rdkafka_rd_kafka_set_logger" = xyes then : with_librdkafka_logger="yes" else case e in #( e) with_librdkafka_logger="no" ;; esac fi fi if test "x$with_librdkafka" = "xyes" then BUILD_WITH_LIBRDKAFKA_CPPFLAGS="$with_librdkafka_cppflags" BUILD_WITH_LIBRDKAFKA_LDFLAGS="$with_librdkafka_ldflags" if test "x$with_librdkafka_rpath" != "x" then BUILD_WITH_LIBRDKAFKA_LIBS="-Wl,-rpath,$with_librdkafka_rpath -lrdkafka" else BUILD_WITH_LIBRDKAFKA_LIBS="-lrdkafka" fi printf "%s\n" "#define HAVE_LIBRDKAFKA 1" >>confdefs.h if test "x$with_librdkafka_log_cb" = "xyes" then printf "%s\n" "#define HAVE_LIBRDKAFKA_LOG_CB 1" >>confdefs.h fi if test "x$with_librdkafka_logger" = "xyes" then printf "%s\n" "#define HAVE_LIBRDKAFKA_LOGGER 1" >>confdefs.h fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_librdkafka" = "xyes"; then BUILD_WITH_LIBRDKAFKA_TRUE= BUILD_WITH_LIBRDKAFKA_FALSE='#' else BUILD_WITH_LIBRDKAFKA_TRUE='#' BUILD_WITH_LIBRDKAFKA_FALSE= fi # }}} # --with-librouteros {{{ # Check whether --with-librouteros was given. if test ${with_librouteros+y} then : withval=$with_librouteros; if test "x$withval" = "xyes" then with_librouteros="yes" else if test "x$withval" = "xno" then with_librouteros="no" else with_librouteros="yes" LIBROUTEROS_CPPFLAGS="$LIBROUTEROS_CPPFLAGS -I$withval/include" LIBROUTEROS_LDFLAGS="$LIBROUTEROS_LDFLAGS -L$withval/lib" fi; fi else case e in #( e) with_librouteros="yes" ;; esac fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $LIBROUTEROS_CPPFLAGS" LDFLAGS="$LDFLAGS $LIBROUTEROS_LDFLAGS" if test "x$with_librouteros" = "xyes" then if test "x$LIBROUTEROS_CPPFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: librouteros CPPFLAGS: $LIBROUTEROS_CPPFLAGS" >&5 printf "%s\n" "$as_me: librouteros CPPFLAGS: $LIBROUTEROS_CPPFLAGS" >&6;} fi for ac_header in routeros_api.h do : ac_fn_c_check_header_compile "$LINENO" "routeros_api.h" "ac_cv_header_routeros_api_h" "$ac_includes_default" if test "x$ac_cv_header_routeros_api_h" = xyes then : printf "%s\n" "#define HAVE_ROUTEROS_API_H 1" >>confdefs.h with_librouteros="yes" else case e in #( e) with_librouteros="no (routeros_api.h not found)" ;; esac fi done fi if test "x$with_librouteros" = "xyes" then if test "x$LIBROUTEROS_LDFLAGS" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: librouteros LDFLAGS: $LIBROUTEROS_LDFLAGS" >&5 printf "%s\n" "$as_me: librouteros LDFLAGS: $LIBROUTEROS_LDFLAGS" >&6;} fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ros_interface in -lrouteros" >&5 printf %s "checking for ros_interface in -lrouteros... " >&6; } if test ${ac_cv_lib_routeros_ros_interface+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrouteros $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char ros_interface (void); int main (void) { return ros_interface (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_routeros_ros_interface=yes else case e in #( e) ac_cv_lib_routeros_ros_interface=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_routeros_ros_interface" >&5 printf "%s\n" "$ac_cv_lib_routeros_ros_interface" >&6; } if test "x$ac_cv_lib_routeros_ros_interface" = xyes then : with_librouteros="yes" else case e in #( e) with_librouteros="no (symbol 'ros_interface' not found)" ;; esac fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_librouteros" = "xyes" then BUILD_WITH_LIBROUTEROS_CPPFLAGS="$LIBROUTEROS_CPPFLAGS" BUILD_WITH_LIBROUTEROS_LDFLAGS="$LIBROUTEROS_LDFLAGS" fi if test "x$with_librouteros" = "xyes"; then BUILD_WITH_LIBROUTEROS_TRUE= BUILD_WITH_LIBROUTEROS_FALSE='#' else BUILD_WITH_LIBROUTEROS_TRUE='#' BUILD_WITH_LIBROUTEROS_FALSE= fi # }}} # --with-librrd {{{ # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given]) librrd_cflags="" librrd_ldflags="" librrd_threadsafe="yes" librrd_rrdc_update="no" # Check whether --with-librrd was given. if test ${with_librrd+y} then : withval=$with_librrd; if test "x$withval" != "xno" && test "x$withval" != "xyes" then librrd_cflags="-I$withval/include" librrd_ldflags="-L$withval/lib" with_librrd="yes" else with_librrd="$withval" fi else case e in #( e) with_librrd="yes" ;; esac fi if test "x$with_librrd" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $librrd_cflags" LDFLAGS="$LDFLAGS $librrd_ldflags" for ac_header in rrd.h do : ac_fn_c_check_header_compile "$LINENO" "rrd.h" "ac_cv_header_rrd_h" "$ac_includes_default" if test "x$ac_cv_header_rrd_h" = xyes then : printf "%s\n" "#define HAVE_RRD_H 1" >>confdefs.h else case e in #( e) with_librrd="no (rrd.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_librrd" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $librrd_cflags" LDFLAGS="$LDFLAGS $librrd_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rrd_update_r in -lrrd_th" >&5 printf %s "checking for rrd_update_r in -lrrd_th... " >&6; } if test ${ac_cv_lib_rrd_th_rrd_update_r+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrrd_th -lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char rrd_update_r (void); int main (void) { return rrd_update_r (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rrd_th_rrd_update_r=yes else case e in #( e) ac_cv_lib_rrd_th_rrd_update_r=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_th_rrd_update_r" >&5 printf "%s\n" "$ac_cv_lib_rrd_th_rrd_update_r" >&6; } if test "x$ac_cv_lib_rrd_th_rrd_update_r" = xyes then : with_librrd="yes" librrd_ldflags="$librrd_ldflags -lrrd_th -lm" else case e in #( e) librrd_threadsafe="no" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rrd_update in -lrrd" >&5 printf %s "checking for rrd_update in -lrrd... " >&6; } if test ${ac_cv_lib_rrd_rrd_update+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrrd -lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char rrd_update (void); int main (void) { return rrd_update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rrd_rrd_update=yes else case e in #( e) ac_cv_lib_rrd_rrd_update=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_rrd_update" >&5 printf "%s\n" "$ac_cv_lib_rrd_rrd_update" >&6; } if test "x$ac_cv_lib_rrd_rrd_update" = xyes then : with_librrd="yes" librrd_ldflags="$librrd_ldflags -lrrd -lm" else case e in #( e) with_librrd="no (symbol 'rrd_update' not found)" ;; esac fi ;; esac fi if test "x$librrd_threadsafe" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rrdc_update in -lrrd_th" >&5 printf %s "checking for rrdc_update in -lrrd_th... " >&6; } if test ${ac_cv_lib_rrd_th_rrdc_update+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrrd_th $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char rrdc_update (void); int main (void) { return rrdc_update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rrd_th_rrdc_update=yes else case e in #( e) ac_cv_lib_rrd_th_rrdc_update=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_th_rrdc_update" >&5 printf "%s\n" "$ac_cv_lib_rrd_th_rrdc_update" >&6; } if test "x$ac_cv_lib_rrd_th_rrdc_update" = xyes then : librrd_rrdc_update="yes" else case e in #( e) librrd_rrdc_update="no" ;; esac fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rrdc_update in -lrrd" >&5 printf %s "checking for rrdc_update in -lrrd... " >&6; } if test ${ac_cv_lib_rrd_rrdc_update+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lrrd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char rrdc_update (void); int main (void) { return rrdc_update (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_rrd_rrdc_update=yes else case e in #( e) ac_cv_lib_rrd_rrdc_update=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_rrdc_update" >&5 printf "%s\n" "$ac_cv_lib_rrd_rrdc_update" >&6; } if test "x$ac_cv_lib_rrd_rrdc_update" = xyes then : librrd_rrdc_update="yes" else case e in #( e) librrd_rrdc_update="no" ;; esac fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_librrd" = "xyes" then BUILD_WITH_LIBRRD_CFLAGS="$librrd_cflags" BUILD_WITH_LIBRRD_LDFLAGS="$librrd_ldflags" fi if test "x$librrd_threadsafe" = "xyes" then printf "%s\n" "#define HAVE_THREADSAFE_LIBRRD 1" >>confdefs.h fi # }}} # --with-libsensors {{{ with_sensors_cflags="" with_sensors_ldflags="" # Check whether --with-libsensors was given. if test ${with_libsensors+y} then : withval=$with_libsensors; if test "x$withval" = "xno" then with_libsensors="no" else with_libsensors="yes" if test "x$withval" != "xyes" then with_sensors_cflags="-I$withval/include" with_sensors_ldflags="-L$withval/lib" with_libsensors="yes" fi fi else case e in #( e) if test "x$ac_system" = "xLinux" then with_libsensors="yes" else with_libsensors="no (Linux only library)" fi ;; esac fi if test "x$with_libsensors" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_sensors_cflags" # AC_CHECK_HEADERS(sensors/sensors.h, # [ # AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the header file.]) # ], # [with_libsensors="no (sensors/sensors.h not found)"]) for ac_header in sensors/sensors.h do : ac_fn_c_check_header_compile "$LINENO" "sensors/sensors.h" "ac_cv_header_sensors_sensors_h" "$ac_includes_default" if test "x$ac_cv_header_sensors_sensors_h" = xyes then : printf "%s\n" "#define HAVE_SENSORS_SENSORS_H 1" >>confdefs.h else case e in #( e) with_libsensors="no (sensors/sensors.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libsensors" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_sensors_cflags" LDFLAGS="$LDFLAGS $with_sensors_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5 printf %s "checking for sensors_init in -lsensors... " >&6; } if test ${ac_cv_lib_sensors_sensors_init+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsensors $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sensors_init (void); int main (void) { return sensors_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_sensors_sensors_init=yes else case e in #( e) ac_cv_lib_sensors_sensors_init=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5 printf "%s\n" "$ac_cv_lib_sensors_sensors_init" >&6; } if test "x$ac_cv_lib_sensors_sensors_init" = xyes then : printf "%s\n" "#define HAVE_LIBSENSORS 1" >>confdefs.h else case e in #( e) with_libsensors="no (libsensors not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libsensors" = "xyes" then BUILD_WITH_LIBSENSORS_CFLAGS="$with_sensors_cflags" BUILD_WITH_LIBSENSORS_LDFLAGS="$with_sensors_ldflags" fi if test "x$with_libsensors" = "xyes"; then BUILD_WITH_LM_SENSORS_TRUE= BUILD_WITH_LM_SENSORS_FALSE='#' else BUILD_WITH_LM_SENSORS_TRUE='#' BUILD_WITH_LM_SENSORS_FALSE= fi # }}} # --with-libsigrok {{{ with_libsigrok_cflags="" with_libsigrok_ldflags="" # Check whether --with-libsigrok was given. if test ${with_libsigrok+y} then : withval=$with_libsigrok; if test "x$withval" = "xno" then with_libsigrok="no" else with_libsigrok="yes" if test "x$withval" != "xyes" then with_libsigrok_cflags="-I$withval/include" with_libsigrok_ldflags="-L$withval/lib" fi fi else case e in #( e) with_libsigrok="yes" ;; esac fi # libsigrok has a glib dependency if test "x$with_libsigrok" = "xyes" then with_libsigrok="no (glib not available)" fi # libsigrok headers if test "x$with_libsigrok" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libsigrok_cflags" for ac_header in libsigrok/libsigrok.h do : ac_fn_c_check_header_compile "$LINENO" "libsigrok/libsigrok.h" "ac_cv_header_libsigrok_libsigrok_h" "$ac_includes_default" if test "x$ac_cv_header_libsigrok_libsigrok_h" = xyes then : printf "%s\n" "#define HAVE_LIBSIGROK_LIBSIGROK_H 1" >>confdefs.h else case e in #( e) with_libsigrok="no (libsigrok/libsigrok.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi # libsigrok library if test "x$with_libsigrok" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_libsigrok_cflags" LDFLAGS="$LDFLAGS $with_libsigrok_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sr_init in -lsigrok" >&5 printf %s "checking for sr_init in -lsigrok... " >&6; } if test ${ac_cv_lib_sigrok_sr_init+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lsigrok $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sr_init (void); int main (void) { return sr_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_sigrok_sr_init=yes else case e in #( e) ac_cv_lib_sigrok_sr_init=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sigrok_sr_init" >&5 printf "%s\n" "$ac_cv_lib_sigrok_sr_init" >&6; } if test "x$ac_cv_lib_sigrok_sr_init" = xyes then : printf "%s\n" "#define HAVE_LIBSIGROK 1" >>confdefs.h else case e in #( e) with_libsigrok="no (libsigrok not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libsigrok" = "xyes" then BUILD_WITH_LIBSIGROK_CFLAGS="$with_libsigrok_cflags" BUILD_WITH_LIBSIGROK_LDFLAGS="$with_libsigrok_ldflags" fi if test "x$with_libsigrok" = "xyes"; then BUILD_WITH_LIBSIGROK_TRUE= BUILD_WITH_LIBSIGROK_FALSE='#' else BUILD_WITH_LIBSIGROK_TRUE='#' BUILD_WITH_LIBSIGROK_FALSE= fi # }}} # --with-libstatgrab {{{ with_libstatgrab_cflags="" with_libstatgrab_ldflags="" # Check whether --with-libstatgrab was given. if test ${with_libstatgrab+y} then : withval=$with_libstatgrab; if test "x$withval" != "xno" \ && test "x$withval" != "xyes" then with_libstatgrab_cflags="-I$withval/include" with_libstatgrab_ldflags="-L$withval/lib -lstatgrab" with_libstatgrab="yes" with_libstatgrab_pkg_config="no" else with_libstatgrab="$withval" with_libstatgrab_pkg_config="yes" fi else case e in #( e) with_libstatgrab="yes" with_libstatgrab_pkg_config="yes" ;; esac fi if test "x$with_libstatgrab" = "xyes" \ && test "x$with_libstatgrab_pkg_config" = "xyes" then if test "x$PKG_CONFIG" != "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config for libstatgrab" >&5 printf %s "checking pkg-config for libstatgrab... " >&6; } temp_result="found" $PKG_CONFIG --exists libstatgrab 2>/dev/null if test "$?" != "0" then with_libstatgrab_pkg_config="no" with_libstatgrab="no (pkg-config doesn't know libstatgrab)" temp_result="not found" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5 printf "%s\n" "$temp_result" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config not available, trying to guess flags for the statgrab library." >&5 printf "%s\n" "$as_me: pkg-config not available, trying to guess flags for the statgrab library." >&6;} with_libstatgrab_pkg_config="no" with_libstatgrab_ldflags="$with_libstatgrab_ldflags -lstatgrab" fi fi if test "x$with_libstatgrab" = "xyes" \ && test "x$with_libstatgrab_pkg_config" = "xyes" \ && test "x$with_libstatgrab_cflags" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstatgrab CFLAGS" >&5 printf %s "checking for libstatgrab CFLAGS... " >&6; } temp_result="`$PKG_CONFIG --cflags libstatgrab`" if test "$?" = "0" then with_libstatgrab_cflags="$temp_result" else with_libstatgrab="no ($PKG_CONFIG --cflags libstatgrab failed)" temp_result="$PKG_CONFIG --cflags libstatgrab failed" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5 printf "%s\n" "$temp_result" >&6; } fi if test "x$with_libstatgrab" = "xyes" \ && test "x$with_libstatgrab_pkg_config" = "xyes" \ && test "x$with_libstatgrab_ldflags" = "x" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstatgrab LDFLAGS" >&5 printf %s "checking for libstatgrab LDFLAGS... " >&6; } temp_result="`$PKG_CONFIG --libs libstatgrab`" if test "$?" = "0" then with_libstatgrab_ldflags="$temp_result" else with_libstatgrab="no ($PKG_CONFIG --libs libstatgrab failed)" temp_result="$PKG_CONFIG --libs libstatgrab failed" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5 printf "%s\n" "$temp_result" >&6; } fi if test "x$with_libstatgrab" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libstatgrab_cflags" for ac_header in statgrab.h do : ac_fn_c_check_header_compile "$LINENO" "statgrab.h" "ac_cv_header_statgrab_h" "$ac_includes_default" if test "x$ac_cv_header_statgrab_h" = xyes then : printf "%s\n" "#define HAVE_STATGRAB_H 1" >>confdefs.h with_libstatgrab="yes" else case e in #( e) with_libstatgrab="no (statgrab.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libstatgrab" = "xyes" then SAVE_CFLAGS="$CFLAGS" SAVE_LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS $with_libstatgrab_cflags" LDFLAGS="$LDFLAGS $with_libstatgrab_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sg_init in -lstatgrab" >&5 printf %s "checking for sg_init in -lstatgrab... " >&6; } if test ${ac_cv_lib_statgrab_sg_init+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lstatgrab $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sg_init (void); int main (void) { return sg_init (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_statgrab_sg_init=yes else case e in #( e) ac_cv_lib_statgrab_sg_init=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_statgrab_sg_init" >&5 printf "%s\n" "$ac_cv_lib_statgrab_sg_init" >&6; } if test "x$ac_cv_lib_statgrab_sg_init" = xyes then : with_libstatgrab="yes" else case e in #( e) with_libstatgrab="no (symbol sg_init not found)" ;; esac fi CFLAGS="$SAVE_CFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libstatgrab" = "xyes" then SAVE_CFLAGS="$CFLAGS" SAVE_LIBS="$LIBS" CFLAGS="$CFLAGS $with_libstatgrab_cflags" LDFLAGS="$LDFLAGS $with_libstatgrab_ldflags" LIBS="-lstatgrab $LIBS" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libstatgrab >= 0.90" >&5 printf %s "checking if libstatgrab >= 0.90... " >&6; } if test ${c_cv_have_libstatgrab_0_90+y} then : printf %s "(cached) " >&6 else case e in #( e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main (void) { if (sg_init()) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : c_cv_have_libstatgrab_0_90="no" else case e in #( e) c_cv_have_libstatgrab_0_90="yes" ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_libstatgrab_0_90" >&5 printf "%s\n" "$c_cv_have_libstatgrab_0_90" >&6; } CFLAGS="$SAVE_CFLAGS" LDFLAGS="$SAVE_LDFLAGS" LIBS="$SAVE_LIBS" fi if test "x$with_libstatgrab" = "xyes"; then BUILD_WITH_LIBSTATGRAB_TRUE= BUILD_WITH_LIBSTATGRAB_FALSE='#' else BUILD_WITH_LIBSTATGRAB_TRUE='#' BUILD_WITH_LIBSTATGRAB_FALSE= fi if test "x$with_libstatgrab" = "xyes" then printf "%s\n" "#define HAVE_LIBSTATGRAB 1" >>confdefs.h BUILD_WITH_LIBSTATGRAB_CFLAGS="$with_libstatgrab_cflags" BUILD_WITH_LIBSTATGRAB_LDFLAGS="$with_libstatgrab_ldflags" if test "x$c_cv_have_libstatgrab_0_90" = "xyes" then printf "%s\n" "#define HAVE_LIBSTATGRAB_0_90 1" >>confdefs.h fi fi # }}} # --with-libtokyotyrant {{{ with_libtokyotyrant_cppflags="" with_libtokyotyrant_ldflags="" with_libtokyotyrant_libs="" # Check whether --with-libtokyotyrant was given. if test ${with_libtokyotyrant+y} then : withval=$with_libtokyotyrant; if test "x$withval" = "xno" then with_libtokyotyrant="no" else if test "x$withval" = "xyes" then with_libtokyotyrant="yes" else with_libtokyotyrant_cppflags="-I$withval/include" with_libtokyotyrant_ldflags="-L$withval/include" with_libtokyotyrant_libs="-ltokyotyrant" with_libtokyotyrant="yes" fi; fi else case e in #( e) with_libtokyotyrant="yes" ;; esac fi if test "x$with_libtokyotyrant" = "xyes" then if $PKG_CONFIG --exists tokyotyrant then with_libtokyotyrant_cppflags="$with_libtokyotyrant_cppflags `$PKG_CONFIG --cflags tokyotyrant`" with_libtokyotyrant_ldflags="$with_libtokyotyrant_ldflags `$PKG_CONFIG --libs-only-L tokyotyrant`" with_libtokyotyrant_libs="$with_libtokyotyrant_libs `$PKG_CONFIG --libs-only-l tokyotyrant`" fi fi SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_libtokyotyrant_cppflags" LDFLAGS="$LDFLAGS $with_libtokyotyrant_ldflags" if test "x$with_libtokyotyrant" = "xyes" then for ac_header in tcrdb.h do : ac_fn_c_check_header_compile "$LINENO" "tcrdb.h" "ac_cv_header_tcrdb_h" "$ac_includes_default" if test "x$ac_cv_header_tcrdb_h" = xyes then : printf "%s\n" "#define HAVE_TCRDB_H 1" >>confdefs.h printf "%s\n" "#define HAVE_TCRDB_H 1" >>confdefs.h else case e in #( e) with_libtokyotyrant="no (tcrdb.h not found)" ;; esac fi done fi if test "x$with_libtokyotyrant" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcrdbrnum in -ltokyotyrant" >&5 printf %s "checking for tcrdbrnum in -ltokyotyrant... " >&6; } if test ${ac_cv_lib_tokyotyrant_tcrdbrnum+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-ltokyotyrant $with_libtokyotyrant_libs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char tcrdbrnum (void); int main (void) { return tcrdbrnum (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_tokyotyrant_tcrdbrnum=yes else case e in #( e) ac_cv_lib_tokyotyrant_tcrdbrnum=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tokyotyrant_tcrdbrnum" >&5 printf "%s\n" "$ac_cv_lib_tokyotyrant_tcrdbrnum" >&6; } if test "x$ac_cv_lib_tokyotyrant_tcrdbrnum" = xyes then : printf "%s\n" "#define HAVE_LIBTOKYOTYRANT 1" >>confdefs.h else case e in #( e) with_libtokyotyrant="no (symbol tcrdbrnum not found)" ;; esac fi fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" if test "x$with_libtokyotyrant" = "xyes" then BUILD_WITH_LIBTOKYOTYRANT_CPPFLAGS="$with_libtokyotyrant_cppflags" BUILD_WITH_LIBTOKYOTYRANT_LDFLAGS="$with_libtokyotyrant_ldflags" BUILD_WITH_LIBTOKYOTYRANT_LIBS="$with_libtokyotyrant_libs" fi if test "x$with_libtokyotyrant" = "xyes"; then BUILD_WITH_LIBTOKYOTYRANT_TRUE= BUILD_WITH_LIBTOKYOTYRANT_FALSE='#' else BUILD_WITH_LIBTOKYOTYRANT_TRUE='#' BUILD_WITH_LIBTOKYOTYRANT_FALSE= fi # }}} # --with-libudev {{{ with_libudev_cflags="" with_libudev_ldflags="" # Check whether --with-libudev was given. if test ${with_libudev+y} then : withval=$with_libudev; if test "x$withval" = "xno" then with_libudev="no" else with_libudev="yes" if test "x$withval" != "xyes" then with_libudev_cflags="-I$withval/include" with_libudev_ldflags="-L$withval/lib" with_libudev="yes" fi fi else case e in #( e) if test "x$ac_system" = "xLinux" then with_libudev="yes" else with_libudev="no (Linux only library)" fi ;; esac fi if test "x$with_libudev" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libudev_cflags" for ac_header in libudev.h do : ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default" if test "x$ac_cv_header_libudev_h" = xyes then : printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h else case e in #( e) with_libudev="no (libudev.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libudev" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_libudev_cflags" LDFLAGS="$LDFLAGS $with_libudev_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev_new in -ludev" >&5 printf %s "checking for udev_new in -ludev... " >&6; } if test ${ac_cv_lib_udev_udev_new+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-ludev $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char udev_new (void); int main (void) { return udev_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_udev_udev_new=yes else case e in #( e) ac_cv_lib_udev_udev_new=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_new" >&5 printf "%s\n" "$ac_cv_lib_udev_udev_new" >&6; } if test "x$ac_cv_lib_udev_udev_new" = xyes then : printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h else case e in #( e) with_libudev="no (libudev not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libudev" = "xyes" then BUILD_WITH_LIBUDEV_CFLAGS="$with_libudev_cflags" BUILD_WITH_LIBUDEV_LDFLAGS="$with_libudev_ldflags" fi if test "x$with_libudev" = "xyes"; then BUILD_WITH_LIBUDEV_TRUE= BUILD_WITH_LIBUDEV_FALSE='#' else BUILD_WITH_LIBUDEV_TRUE='#' BUILD_WITH_LIBUDEV_FALSE= fi # }}} # --with-libupsclient {{{ with_libupsclient_config="" with_libupsclient_cflags="" with_libupsclient_libs="" # Check whether --with-libupsclient was given. if test ${with_libupsclient+y} then : withval=$with_libupsclient; if test "x$withval" = "xno" then with_libupsclient="no" else if test "x$withval" = "xyes" then with_libupsclient="use_pkgconfig" else if test -x "$withval" then with_libupsclient_config="$withval" with_libupsclient="use_libupsclient_config" else if test -x "$withval/bin/libupsclient-config" then with_libupsclient_config="$withval/bin/libupsclient-config" with_libupsclient="use_libupsclient_config" else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not checking for libupsclient: Manually configured" >&5 printf "%s\n" "$as_me: Not checking for libupsclient: Manually configured" >&6;} with_libupsclient_cflags="-I$withval/include" with_libupsclient_libs="-L$withval/lib -lupsclient" with_libupsclient="yes" fi; fi fi; fi else case e in #( e) with_libupsclient="use_pkgconfig" ;; esac fi # configure using libupsclient-config if test "x$with_libupsclient" = "xuse_libupsclient_config" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for libupsclient using $with_libupsclient_config" >&5 printf "%s\n" "$as_me: Checking for libupsclient using $with_libupsclient_config" >&6;} with_libupsclient_cflags="`$with_libupsclient_config --cflags`" if test $? -ne 0 then with_libupsclient="no ($with_libupsclient_config failed)" fi with_libupsclient_libs="`$with_libupsclient_config --libs`" if test $? -ne 0 then with_libupsclient="no ($with_libupsclient_config failed)" fi fi if test "x$with_libupsclient" = "xuse_libupsclient_config" then with_libupsclient="yes" fi # configure using pkg-config if test "x$with_libupsclient" = "xuse_pkgconfig" then if test "x$PKG_CONFIG" = "x" then with_libupsclient="no (Don't have pkg-config)" fi fi if test "x$with_libupsclient" = "xuse_pkgconfig" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for libupsclient using $PKG_CONFIG" >&5 printf "%s\n" "$as_me: Checking for libupsclient using $PKG_CONFIG" >&6;} $PKG_CONFIG --exists 'libupsclient' 2>/dev/null if test $? -ne 0 then with_libupsclient="no (pkg-config doesn't know libupsclient)" fi fi if test "x$with_libupsclient" = "xuse_pkgconfig" then with_libupsclient_cflags="`$PKG_CONFIG --cflags 'libupsclient'`" if test $? -ne 0 then with_libupsclient="no ($PKG_CONFIG failed)" fi with_libupsclient_libs="`$PKG_CONFIG --libs 'libupsclient'`" if test $? -ne 0 then with_libupsclient="no ($PKG_CONFIG failed)" fi fi if test "x$with_libupsclient" = "xuse_pkgconfig" then with_libupsclient="yes" fi # with_libupsclient_cflags and with_libupsclient_libs are set up now, let's do # the actual checks. if test "x$with_libupsclient" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libupsclient_cflags" for ac_header in upsclient.h do : ac_fn_c_check_header_compile "$LINENO" "upsclient.h" "ac_cv_header_upsclient_h" "$ac_includes_default" if test "x$ac_cv_header_upsclient_h" = xyes then : printf "%s\n" "#define HAVE_UPSCLIENT_H 1" >>confdefs.h else case e in #( e) with_libupsclient="no (upsclient.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libupsclient" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_libupsclient_cflags" LDFLAGS="$LDFLAGS $with_libupsclient_libs" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for upscli_connect in -lupsclient" >&5 printf %s "checking for upscli_connect in -lupsclient... " >&6; } if test ${ac_cv_lib_upsclient_upscli_connect+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lupsclient $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char upscli_connect (void); int main (void) { return upscli_connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_upsclient_upscli_connect=yes else case e in #( e) ac_cv_lib_upsclient_upscli_connect=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_upsclient_upscli_connect" >&5 printf "%s\n" "$ac_cv_lib_upsclient_upscli_connect" >&6; } if test "x$ac_cv_lib_upsclient_upscli_connect" = xyes then : with_libupsclient="yes" else case e in #( e) with_libupsclient="no (symbol upscli_connect not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libupsclient" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libupsclient_cflags" ac_fn_c_check_type "$LINENO" "UPSCONN_t" "ac_cv_type_UPSCONN_t" "#include #include #include " if test "x$ac_cv_type_UPSCONN_t" = xyes then : printf "%s\n" "#define HAVE_UPSCONN_T 1" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "UPSCONN" "ac_cv_type_UPSCONN" "#include #include #include " if test "x$ac_cv_type_UPSCONN" = xyes then : printf "%s\n" "#define HAVE_UPSCONN 1" >>confdefs.h fi CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libupsclient" = "xyes" then BUILD_WITH_LIBUPSCLIENT_CFLAGS="$with_libupsclient_cflags" BUILD_WITH_LIBUPSCLIENT_LIBS="$with_libupsclient_libs" fi # }}} # --with-libxmms {{{ with_xmms_config="xmms-config" with_xmms_cflags="" with_xmms_libs="" # Check whether --with-libxmms was given. if test ${with_libxmms+y} then : withval=$with_libxmms; if test "x$withval" != "xno" \ && test "x$withval" != "xyes" then if test -f "$withval" && test -x "$withval"; then with_xmms_config="$withval" else if test -x "$withval/bin/xmms-config" then with_xmms_config="$withval/bin/xmms-config" fi; fi with_libxmms="yes" else if test "x$withval" = "xno" then with_libxmms="no" else with_libxmms="yes" fi; fi else case e in #( e) with_libxmms="yes" ;; esac fi if test "x$with_libxmms" = "xyes" then with_xmms_cflags=`$with_xmms_config --cflags 2>/dev/null` xmms_config_status=$? if test $xmms_config_status -ne 0 then with_libxmms="no" fi fi if test "x$with_libxmms" = "xyes" then with_xmms_libs=`$with_xmms_config --libs 2>/dev/null` xmms_config_status=$? if test $xmms_config_status -ne 0 then with_libxmms="no" fi fi if test "x$with_libxmms" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmms_remote_get_info in -lxmms" >&5 printf %s "checking for xmms_remote_get_info in -lxmms... " >&6; } if test ${ac_cv_lib_xmms_xmms_remote_get_info+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lxmms $with_xmms_libs $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char xmms_remote_get_info (void); int main (void) { return xmms_remote_get_info (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_xmms_xmms_remote_get_info=yes else case e in #( e) ac_cv_lib_xmms_xmms_remote_get_info=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xmms_xmms_remote_get_info" >&5 printf "%s\n" "$ac_cv_lib_xmms_xmms_remote_get_info" >&6; } if test "x$ac_cv_lib_xmms_xmms_remote_get_info" = xyes then : BUILD_WITH_LIBXMMS_CFLAGS="$with_xmms_cflags" BUILD_WITH_LIBXMMS_LIBS="$with_xmms_libs" else case e in #( e) with_libxmms="no" ;; esac fi fi with_libxmms_numeric=0 if test "x$with_libxmms" = "xyes" then with_libxmms_numeric=1 fi printf "%s\n" "#define HAVE_LIBXMMS $with_libxmms_numeric" >>confdefs.h if test "x$with_libxmms" = "xyes"; then BUILD_WITH_LIBXMMS_TRUE= BUILD_WITH_LIBXMMS_FALSE='#' else BUILD_WITH_LIBXMMS_TRUE='#' BUILD_WITH_LIBXMMS_FALSE= fi # }}} # --with-libyajl {{{ with_libyajl_cppflags="" with_libyajl_ldflags="" # Check whether --with-libyajl was given. if test ${with_libyajl+y} then : withval=$with_libyajl; if test "x$withval" != "xno" && test "x$withval" != "xyes" then with_libyajl_cppflags="-I$withval/include" with_libyajl_ldflags="-L$withval/lib" with_libyajl="yes" else with_libyajl="$withval" fi else case e in #( e) with_libyajl="yes" ;; esac fi if test "x$with_libyajl" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libyajl_cppflags" for ac_header in yajl/yajl_parse.h do : ac_fn_c_check_header_compile "$LINENO" "yajl/yajl_parse.h" "ac_cv_header_yajl_yajl_parse_h" "$ac_includes_default" if test "x$ac_cv_header_yajl_yajl_parse_h" = xyes then : printf "%s\n" "#define HAVE_YAJL_YAJL_PARSE_H 1" >>confdefs.h with_libyajl="yes" else case e in #( e) with_libyajl="no (yajl/yajl_parse.h not found)" ;; esac fi done ac_fn_c_check_header_compile "$LINENO" "yajl/yajl_version.h" "ac_cv_header_yajl_yajl_version_h" "$ac_includes_default" if test "x$ac_cv_header_yajl_yajl_version_h" = xyes then : printf "%s\n" "#define HAVE_YAJL_YAJL_VERSION_H 1" >>confdefs.h fi CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libyajl" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_libyajl_cppflags" LDFLAGS="$LDFLAGS $with_libyajl_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for yajl_alloc in -lyajl" >&5 printf %s "checking for yajl_alloc in -lyajl... " >&6; } if test ${ac_cv_lib_yajl_yajl_alloc+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lyajl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char yajl_alloc (void); int main (void) { return yajl_alloc (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_yajl_yajl_alloc=yes else case e in #( e) ac_cv_lib_yajl_yajl_alloc=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yajl_yajl_alloc" >&5 printf "%s\n" "$ac_cv_lib_yajl_yajl_alloc" >&6; } if test "x$ac_cv_lib_yajl_yajl_alloc" = xyes then : with_libyajl="yes" else case e in #( e) with_libyajl="no (Symbol 'yajl_alloc' not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libyajl" = "xyes" then BUILD_WITH_LIBYAJL_CPPFLAGS="$with_libyajl_cppflags" BUILD_WITH_LIBYAJL_LDFLAGS="$with_libyajl_ldflags" BUILD_WITH_LIBYAJL_LIBS="-lyajl" printf "%s\n" "#define HAVE_LIBYAJL 1" >>confdefs.h fi if test "x$with_libyajl" = "xyes"; then BUILD_WITH_LIBYAJL_TRUE= BUILD_WITH_LIBYAJL_FALSE='#' else BUILD_WITH_LIBYAJL_TRUE='#' BUILD_WITH_LIBYAJL_FALSE= fi # }}} # --with-mic {{{ with_mic_cflags="-I/opt/intel/mic/sysmgmt/sdk/include" with_mic_ldpath="-L/opt/intel/mic/sysmgmt/sdk/lib/Linux" with_mic_libs="" # Check whether --with-mic was given. if test ${with_mic+y} then : withval=$with_mic; if test "x$withval" = "xno" then with_mic="no" else if test "x$withval" = "xyes" then with_mic="yes" else if test -d "$with_mic/lib" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not checking for Intel Mic: Manually configured" >&5 printf "%s\n" "$as_me: Not checking for Intel Mic: Manually configured" >&6;} with_mic_cflags="-I$withval/include" with_mic_ldpath="-L$withval/lib/Linux" with_mic_libs="-lMicAccessSDK -lscif -lpthread" with_mic="yes" fi; fi; fi else case e in #( e) with_mic="yes" ;; esac fi if test "x$with_mic" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_mic_cflags" for ac_header in MicAccessApi.h do : ac_fn_c_check_header_compile "$LINENO" "MicAccessApi.h" "ac_cv_header_MicAccessApi_h" "$ac_includes_default" if test "x$ac_cv_header_MicAccessApi_h" = xyes then : printf "%s\n" "#define HAVE_MICACCESSAPI_H 1" >>confdefs.h else case e in #( e) with_mic="no (MicAccessApi not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_mic" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_mic_cflags" LDFLAGS="$LDFLAGS $with_mic_ldpath" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MicInitAPI in -lMicAccessSDK" >&5 printf %s "checking for MicInitAPI in -lMicAccessSDK... " >&6; } if test ${ac_cv_lib_MicAccessSDK_MicInitAPI+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lMicAccessSDK -lscif -lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char MicInitAPI (void); int main (void) { return MicInitAPI (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_MicAccessSDK_MicInitAPI=yes else case e in #( e) ac_cv_lib_MicAccessSDK_MicInitAPI=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MicAccessSDK_MicInitAPI" >&5 printf "%s\n" "$ac_cv_lib_MicAccessSDK_MicInitAPI" >&6; } if test "x$ac_cv_lib_MicAccessSDK_MicInitAPI" = xyes then : with_mic_ldpath="$with_mic_ldpath" with_mic_libs="-lMicAccessSDK -lscif -lpthread" else case e in #( e) with_mic="no (symbol MicInitAPI not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_mic" = "xyes" then BUILD_WITH_MIC_CPPFLAGS="$with_mic_cflags" BUILD_WITH_MIC_LIBPATH="$with_mic_ldpath" BUILD_WITH_MIC_LDADD="$with_mic_libs" fi #}}} # --with-libvarnish {{{ with_libvarnish_cppflags="" with_libvarnish_cflags="" with_libvarnish_libs="" # Check whether --with-libvarnish was given. if test ${with_libvarnish+y} then : withval=$with_libvarnish; if test "x$withval" = "xno" then with_libvarnish="no" else if test "x$withval" = "xyes" then with_libvarnish="use_pkgconfig" else if test -d "$with_libvarnish/lib" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Not checking for libvarnish: Manually configured" >&5 printf "%s\n" "$as_me: Not checking for libvarnish: Manually configured" >&6;} with_libvarnish_cflags="-I$withval/include" with_libvarnish_libs="-L$withval/lib -lvarnishapi" with_libvarnish="yes" fi; fi; fi else case e in #( e) with_libvarnish="use_pkgconfig" ;; esac fi # configure using pkg-config if test "x$with_libvarnish" = "xuse_pkgconfig" then if test "x$PKG_CONFIG" = "x" then with_libvarnish="no (Don't have pkg-config)" fi fi if test "x$with_libvarnish" = "xuse_pkgconfig" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking for varnishapi using $PKG_CONFIG" >&5 printf "%s\n" "$as_me: Checking for varnishapi using $PKG_CONFIG" >&6;} $PKG_CONFIG --exists 'varnishapi' 2>/dev/null if test $? -ne 0 then with_libvarnish="no (pkg-config doesn't know varnishapi)" fi fi if test "x$with_libvarnish" = "xuse_pkgconfig" then with_libvarnish_cflags="`$PKG_CONFIG --cflags 'varnishapi'`" if test $? -ne 0 then with_libvarnish="no ($PKG_CONFIG failed)" fi with_libvarnish_libs="`$PKG_CONFIG --libs 'varnishapi'`" if test $? -ne 0 then with_libvarnish="no ($PKG_CONFIG failed)" fi fi if test "x$with_libvarnish" = "xuse_pkgconfig" then with_libvarnish="yes" fi # with_libvarnish_cflags and with_libvarnish_libs are set up now, let's do # the actual checks. if test "x$with_libvarnish" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libvarnish_cflags" for ac_header in varnish/vapi/vsc.h do : ac_fn_c_check_header_compile "$LINENO" "varnish/vapi/vsc.h" "ac_cv_header_varnish_vapi_vsc_h" "$ac_includes_default" if test "x$ac_cv_header_varnish_vapi_vsc_h" = xyes then : printf "%s\n" "#define HAVE_VARNISH_VAPI_VSC_H 1" >>confdefs.h printf "%s\n" "#define HAVE_VARNISH_V4 1" >>confdefs.h else case e in #( e) for ac_header in varnish/vsc.h do : ac_fn_c_check_header_compile "$LINENO" "varnish/vsc.h" "ac_cv_header_varnish_vsc_h" "$ac_includes_default" if test "x$ac_cv_header_varnish_vsc_h" = xyes then : printf "%s\n" "#define HAVE_VARNISH_VSC_H 1" >>confdefs.h printf "%s\n" "#define HAVE_VARNISH_V3 1" >>confdefs.h else case e in #( e) for ac_header in varnish/varnishapi.h do : ac_fn_c_check_header_compile "$LINENO" "varnish/varnishapi.h" "ac_cv_header_varnish_varnishapi_h" "$ac_includes_default" if test "x$ac_cv_header_varnish_varnishapi_h" = xyes then : printf "%s\n" "#define HAVE_VARNISH_VARNISHAPI_H 1" >>confdefs.h printf "%s\n" "#define HAVE_VARNISH_V2 1" >>confdefs.h else case e in #( e) with_libvarnish="no (found none of the varnish header files)" ;; esac fi done ;; esac fi done ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libvarnish" = "xyes" then BUILD_WITH_LIBVARNISH_CFLAGS="$with_libvarnish_cflags" BUILD_WITH_LIBVARNISH_LIBS="$with_libvarnish_libs" fi # }}} # pkg-config --exists 'libxml-2.0'; pkg-config --exists libvirt {{{ with_libxml2="no (pkg-config isn't available)" with_libxml2_cflags="" with_libxml2_ldflags="" with_libvirt="no (pkg-config isn't available)" with_libvirt_cflags="" with_libvirt_ldflags="" if test "x$PKG_CONFIG" != "x" then $PKG_CONFIG --exists 'libxml-2.0' 2>/dev/null if test "$?" = "0" then with_libxml2="yes" else with_libxml2="no (pkg-config doesn't know libxml-2.0)" fi $PKG_CONFIG --exists libvirt 2>/dev/null if test "$?" = "0" then with_libvirt="yes" else with_libvirt="no (pkg-config doesn't know libvirt)" fi fi if test "x$with_libxml2" = "xyes" then with_libxml2_cflags="`$PKG_CONFIG --cflags libxml-2.0`" if test $? -ne 0 then with_libxml2="no" fi with_libxml2_ldflags="`$PKG_CONFIG --libs libxml-2.0`" if test $? -ne 0 then with_libxml2="no" fi fi if test "x$with_libxml2" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libxml2_cflags" for ac_header in libxml/parser.h do : ac_fn_c_check_header_compile "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" if test "x$ac_cv_header_libxml_parser_h" = xyes then : printf "%s\n" "#define HAVE_LIBXML_PARSER_H 1" >>confdefs.h else case e in #( e) with_libxml2="no (libxml/parser.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libxml2" = "xyes" then SAVE_CFLAGS="$CFLAGS" SAVE_LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS $with_libxml2_cflags" LDFLAGS="$LDFLAGS $with_libxml2_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlXPathEval in -lxml2" >&5 printf %s "checking for xmlXPathEval in -lxml2... " >&6; } if test ${ac_cv_lib_xml2_xmlXPathEval+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lxml2 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char xmlXPathEval (void); int main (void) { return xmlXPathEval (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_xml2_xmlXPathEval=yes else case e in #( e) ac_cv_lib_xml2_xmlXPathEval=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlXPathEval" >&5 printf "%s\n" "$ac_cv_lib_xml2_xmlXPathEval" >&6; } if test "x$ac_cv_lib_xml2_xmlXPathEval" = xyes then : with_libxml2="yes" else case e in #( e) with_libxml2="no (symbol xmlXPathEval not found)" ;; esac fi CFLAGS="$SAVE_CFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libxml2" = "xyes"; then BUILD_WITH_LIBXML2_CFLAGS="$with_libxml2_cflags" BUILD_WITH_LIBXML2_LIBS="$with_libxml2_ldflags" fi if test "x$with_libvirt" = "xyes" then with_libvirt_cflags="`$PKG_CONFIG --cflags libvirt`" if test $? -ne 0 then with_libvirt="no" fi with_libvirt_ldflags="`$PKG_CONFIG --libs libvirt`" if test $? -ne 0 then with_libvirt="no" fi fi if test "x$with_libvirt" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libvirt_cflags" for ac_header in libvirt/libvirt.h do : ac_fn_c_check_header_compile "$LINENO" "libvirt/libvirt.h" "ac_cv_header_libvirt_libvirt_h" "$ac_includes_default" if test "x$ac_cv_header_libvirt_libvirt_h" = xyes then : printf "%s\n" "#define HAVE_LIBVIRT_LIBVIRT_H 1" >>confdefs.h else case e in #( e) with_libvirt="no (libvirt/libvirt.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libvirt" = "xyes" then SAVE_CFLAGS="$CFLAGS" SAVE_LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS $with_libvirt_cflags" LDFLAGS="$LDFLAGS $with_libvirt_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for virDomainBlockStats in -lvirt" >&5 printf %s "checking for virDomainBlockStats in -lvirt... " >&6; } if test ${ac_cv_lib_virt_virDomainBlockStats+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-lvirt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char virDomainBlockStats (void); int main (void) { return virDomainBlockStats (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_virt_virDomainBlockStats=yes else case e in #( e) ac_cv_lib_virt_virDomainBlockStats=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_virt_virDomainBlockStats" >&5 printf "%s\n" "$ac_cv_lib_virt_virDomainBlockStats" >&6; } if test "x$ac_cv_lib_virt_virDomainBlockStats" = xyes then : with_libvirt="yes" else case e in #( e) with_libvirt="no (symbol virDomainBlockStats not found)" ;; esac fi CFLAGS="$SAVE_CFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libvirt" = "xyes"; then BUILD_WITH_LIBVIRT_CFLAGS="$with_libvirt_cflags" BUILD_WITH_LIBVIRT_LIBS="$with_libvirt_ldflags" fi # }}} # $PKG_CONFIG --exists OpenIPMIpthread {{{ with_libopenipmipthread="yes" with_libopenipmipthread_cflags="" with_libopenipmipthread_libs="" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config" >&5 printf %s "checking for pkg-config... " >&6; } temp_result="no" if test "x$PKG_CONFIG" = "x" then with_libopenipmipthread="no" temp_result="no" else temp_result="$PKG_CONFIG" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5 printf "%s\n" "$temp_result" >&6; } if test "x$with_libopenipmipthread" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libOpenIPMIpthread" >&5 printf %s "checking for libOpenIPMIpthread... " >&6; } $PKG_CONFIG --exists OpenIPMIpthread 2>/dev/null if test "$?" != "0" then with_libopenipmipthread="no (pkg-config doesn't know OpenIPMIpthread)" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_libopenipmipthread" >&5 printf "%s\n" "$with_libopenipmipthread" >&6; } fi if test "x$with_libopenipmipthread" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libOpenIPMIpthread CFLAGS" >&5 printf %s "checking for libOpenIPMIpthread CFLAGS... " >&6; } temp_result="`$PKG_CONFIG --cflags OpenIPMIpthread`" if test "$?" = "0" then with_libopenipmipthread_cflags="$temp_result" else with_libopenipmipthread="no ($PKG_CONFIG --cflags OpenIPMIpthread failed)" temp_result="$PKG_CONFIG --cflags OpenIPMIpthread failed" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5 printf "%s\n" "$temp_result" >&6; } fi if test "x$with_libopenipmipthread" = "xyes" then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libOpenIPMIpthread LDFLAGS" >&5 printf %s "checking for libOpenIPMIpthread LDFLAGS... " >&6; } temp_result="`$PKG_CONFIG --libs OpenIPMIpthread`" if test "$?" = "0" then with_libopenipmipthread_ldflags="$temp_result" else with_libopenipmipthread="no ($PKG_CONFIG --libs OpenIPMIpthread failed)" temp_result="$PKG_CONFIG --libs OpenIPMIpthread failed" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5 printf "%s\n" "$temp_result" >&6; } fi if test "x$with_libopenipmipthread" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libopenipmipthread_cflags" for ac_header in OpenIPMI/ipmi_smi.h do : ac_fn_c_check_header_compile "$LINENO" "OpenIPMI/ipmi_smi.h" "ac_cv_header_OpenIPMI_ipmi_smi_h" "#include #include #include #include " if test "x$ac_cv_header_OpenIPMI_ipmi_smi_h" = xyes then : printf "%s\n" "#define HAVE_OPENIPMI_IPMI_SMI_H 1" >>confdefs.h with_libopenipmipthread="yes" else case e in #( e) with_libopenipmipthread="no (OpenIPMI/ipmi_smi.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libopenipmipthread" = "xyes" then BUILD_WITH_OPENIPMI_CFLAGS="$with_libopenipmipthread_cflags" BUILD_WITH_OPENIPMI_LIBS="$with_libopenipmipthread_ldflags" fi # }}} # --with-libatasmart {{{ with_libatasmart_cppflags="" with_libatasmart_ldflags="" # Check whether --with-libatasmart was given. if test ${with_libatasmart+y} then : withval=$with_libatasmart; if test "x$withval" != "xno" && test "x$withval" != "xyes" then with_libatasmart_cppflags="-I$withval/include" with_libatasmart_ldflags="-L$withval/lib" with_libatasmart="yes" else with_libatasmart="$withval" fi else case e in #( e) if test "x$ac_system" = "xLinux" then with_libatasmart="yes" else with_libatasmart="no (Linux only library)" fi ;; esac fi if test "x$with_libatasmart" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $with_libatasmart_cppflags" for ac_header in atasmart.h do : ac_fn_c_check_header_compile "$LINENO" "atasmart.h" "ac_cv_header_atasmart_h" "$ac_includes_default" if test "x$ac_cv_header_atasmart_h" = xyes then : printf "%s\n" "#define HAVE_ATASMART_H 1" >>confdefs.h with_libatasmart="yes" else case e in #( e) with_libatasmart="no (atasmart.h not found)" ;; esac fi done CPPFLAGS="$SAVE_CPPFLAGS" fi if test "x$with_libatasmart" = "xyes" then SAVE_CPPFLAGS="$CPPFLAGS" SAVE_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS $with_libatasmart_cppflags" LDFLAGS="$LDFLAGS $with_libatasmart_ldflags" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sk_disk_open in -latasmart" >&5 printf %s "checking for sk_disk_open in -latasmart... " >&6; } if test ${ac_cv_lib_atasmart_sk_disk_open+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS LIBS="-latasmart $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. The 'extern "C"' is for builds by C++ compilers; although this is not generally supported in C code supporting it here has little cost and some practical benefit (sr 110532). */ #ifdef __cplusplus extern "C" #endif char sk_disk_open (void); int main (void) { return sk_disk_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_atasmart_sk_disk_open=yes else case e in #( e) ac_cv_lib_atasmart_sk_disk_open=no ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS ;; esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atasmart_sk_disk_open" >&5 printf "%s\n" "$ac_cv_lib_atasmart_sk_disk_open" >&6; } if test "x$ac_cv_lib_atasmart_sk_disk_open" = xyes then : with_libatasmart="yes" else case e in #( e) with_libatasmart="no (Symbol 'sk_disk_open' not found)" ;; esac fi CPPFLAGS="$SAVE_CPPFLAGS" LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libatasmart" = "xyes" then BUILD_WITH_LIBATASMART_CPPFLAGS="$with_libatasmart_cppflags" BUILD_WITH_LIBATASMART_LDFLAGS="$with_libatasmart_ldflags" BUILD_WITH_LIBATASMART_LIBS="-latasmart" printf "%s\n" "#define HAVE_LIBATASMART 1" >>confdefs.h fi if test "x$with_libatasmart" = "xyes"; then BUILD_WITH_LIBATASMART_TRUE= BUILD_WITH_LIBATASMART_FALSE='#' else BUILD_WITH_LIBATASMART_TRUE='#' BUILD_WITH_LIBATASMART_FALSE= fi # }}} PKG_CHECK_MODULES(LIBNOTIFY, libnotify, with_libnotify="yes", if test "x$LIBNOTIFY_PKG_ERRORS" = "x"; then with_libnotify="no" else with_libnotify="no ($LIBNOTIFY_PKG_ERRORS)" fi) # Check for enabled/disabled features # # AC_COLLECTD(name, enable/disable, info-text, feature/module) # ------------------------------------------------------------ # AC_COLLECTD(name, enable/disable, info-text, feature/module) # AC_PLUGIN(name, default, info) # ------------------------------------------------------------ # AC_PLUGIN(name, default, info) # FIXME: Remove these calls to `AC_COLLECTD' and then remove that macro. # Check whether --enable-debug was given. if test ${enable_debug+y} then : enableval=$enable_debug; else case e in #( e) enable_debug='no' ;; esac fi # AC_ARG_ENABLE if test "x$enable_debug" = "xno" then collectd_debug=0 else if test "x$enable_debug" = "xyes" then collectd_debug=1 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: please specify either --enable-debug or --disable-debug; enabling debug." >&5 printf "%s\n" "$as_me: please specify either --enable-debug or --disable-debug; enabling debug." >&6;} collectd_debug=1 enable_debug='yes' fi fi printf "%s\n" "#define COLLECT_DEBUG $collectd_debug" >>confdefs.h if test "x$enable_debug" = "xyes"; then BUILD_FEATURE_DEBUG_TRUE= BUILD_FEATURE_DEBUG_FALSE='#' else BUILD_FEATURE_DEBUG_TRUE='#' BUILD_FEATURE_DEBUG_FALSE= fi # Check whether --enable-daemon was given. if test ${enable_daemon+y} then : enableval=$enable_daemon; else case e in #( e) enable_daemon='yes' ;; esac fi # AC_ARG_ENABLE if test "x$enable_daemon" = "xno" then collectd_daemon=0 else if test "x$enable_daemon" = "xyes" then collectd_daemon=1 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: please specify either --enable-daemon or --disable-daemon; enabling daemon." >&5 printf "%s\n" "$as_me: please specify either --enable-daemon or --disable-daemon; enabling daemon." >&6;} collectd_daemon=1 enable_daemon='yes' fi fi printf "%s\n" "#define COLLECT_DAEMON $collectd_daemon" >>confdefs.h if test "x$enable_daemon" = "xyes"; then BUILD_FEATURE_DAEMON_TRUE= BUILD_FEATURE_DAEMON_FALSE='#' else BUILD_FEATURE_DAEMON_TRUE='#' BUILD_FEATURE_DAEMON_FALSE= fi # Check whether --enable-getifaddrs was given. if test ${enable_getifaddrs+y} then : enableval=$enable_getifaddrs; else case e in #( e) enable_getifaddrs='no' ;; esac fi # AC_ARG_ENABLE if test "x$enable_getifaddrs" = "xno" then collectd_getifaddrs=0 else if test "x$enable_getifaddrs" = "xyes" then collectd_getifaddrs=1 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: please specify either --enable-getifaddrs or --disable-getifaddrs; enabling getifaddrs." >&5 printf "%s\n" "$as_me: please specify either --enable-getifaddrs or --disable-getifaddrs; enabling getifaddrs." >&6;} collectd_getifaddrs=1 enable_getifaddrs='yes' fi fi printf "%s\n" "#define COLLECT_GETIFADDRS $collectd_getifaddrs" >>confdefs.h if test "x$enable_getifaddrs" = "xyes"; then BUILD_FEATURE_GETIFADDRS_TRUE= BUILD_FEATURE_GETIFADDRS_FALSE='#' else BUILD_FEATURE_GETIFADDRS_TRUE='#' BUILD_FEATURE_GETIFADDRS_FALSE= fi dependency_warning="no" dependency_error="no" plugin_ascent="no" plugin_barometer="no" plugin_battery="no" plugin_bind="no" plugin_ceph="no" plugin_cgroups="no" plugin_conntrack="no" plugin_contextswitch="no" plugin_cpu="no" plugin_cpufreq="no" plugin_curl_json="no" plugin_curl_xml="no" plugin_df="no" plugin_disk="no" plugin_drbd="no" plugin_entropy="no" plugin_ethstat="no" plugin_fscache="no" plugin_interface="no" plugin_ipmi="no" plugin_ipvs="no" plugin_irq="no" plugin_load="no" plugin_log_logstash="no" plugin_memory="no" plugin_multimeter="no" plugin_nfs="no" plugin_numa="no" plugin_perl="no" plugin_processes="no" plugin_protocols="no" plugin_serial="no" plugin_swap="no" plugin_tape="no" plugin_tcpconns="no" plugin_ted="no" plugin_thermal="no" plugin_turbostat="no" plugin_uptime="no" plugin_users="no" plugin_virt="no" plugin_vmem="no" plugin_vserver="no" plugin_wireless="no" plugin_zfs_arc="no" plugin_zookeeper="no" # Linux if test "x$ac_system" = "xLinux" then plugin_battery="yes" plugin_conntrack="yes" plugin_contextswitch="yes" plugin_cgroups="yes" plugin_cpu="yes" plugin_cpufreq="yes" plugin_disk="yes" plugin_drbd="yes" plugin_entropy="yes" plugin_fscache="yes" plugin_interface="yes" plugin_ipc="yes" plugin_irq="yes" plugin_load="yes" plugin_lvm="yes" plugin_memory="yes" plugin_nfs="yes" plugin_numa="yes" plugin_processes="yes" plugin_protocols="yes" plugin_serial="yes" plugin_swap="yes" plugin_tcpconns="yes" plugin_thermal="yes" plugin_uptime="yes" plugin_vmem="yes" plugin_vserver="yes" plugin_wireless="yes" plugin_zfs_arc="yes" if test "x$have_linux_ip_vs_h" = "xyes" || test "x$have_net_ip_vs_h" = "xyes" || test "x$have_ip_vs_h" = "xyes" then plugin_ipvs="yes" fi if test "x$c_cv_have_usable_asm_msrindex_h" = "xyes" && test "x$have_cpuid_h" = "xyes" then plugin_turbostat="yes" fi fi if test "x$ac_system" = "xOpenBSD" then plugin_tcpconns="yes" fi # Mac OS X devices if test "x$with_libiokit" = "xyes" then plugin_battery="yes" plugin_disk="yes" fi # AIX if test "x$ac_system" = "xAIX" then plugin_tcpconns="yes" plugin_ipc="yes" fi # FreeBSD if test "x$ac_system" = "xFreeBSD" then plugin_zfs_arc="yes" fi if test "x$with_perfstat" = "xyes" then plugin_cpu="yes" plugin_contextswitch="yes" plugin_disk="yes" plugin_memory="yes" plugin_swap="yes" plugin_interface="yes" plugin_load="yes" plugin_uptime="yes" fi if test "x$with_procinfo" = "xyes" then plugin_processes="yes" fi # Solaris if test "x$with_kstat" = "xyes" then plugin_nfs="yes" plugin_processes="yes" plugin_uptime="yes" plugin_zfs_arc="yes" fi if test "x$with_devinfo$with_kstat" = "xyesyes" then plugin_cpu="yes" plugin_disk="yes" plugin_interface="yes" plugin_memory="yes" plugin_tape="yes" fi # libi2c-dev with_libi2c="no" if test "x$ac_system" = "xLinux" then ac_fn_check_decl "$LINENO" "i2c_smbus_read_i2c_block_data" "ac_cv_have_decl_i2c_smbus_read_i2c_block_data" "#include #include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_i2c_smbus_read_i2c_block_data" = xyes then : with_libi2c="yes" else case e in #( e) with_libi2c="no (symbol i2c_smbus_read_i2c_block_data not found - have you installed libi2c-dev ?)" ;; esac fi fi if test "x$with_libi2c" = "xyes" then plugin_barometer="yes" fi # libstatgrab if test "x$with_libstatgrab" = "xyes" then plugin_cpu="yes" plugin_disk="yes" plugin_interface="yes" plugin_load="yes" plugin_memory="yes" plugin_swap="yes" plugin_users="yes" fi if test "x$with_libcurl" = "xyes" && test "x$with_libxml2" = "xyes" then plugin_ascent="yes" if test "x$have_strptime" = "xyes" then plugin_bind="yes" fi fi if test "x$with_libopenipmipthread" = "xyes" then plugin_ipmi="yes" fi if test "x$with_libcurl" = "xyes" && test "x$with_libyajl" = "xyes" then plugin_curl_json="yes" fi if test "x$with_libcurl" = "xyes" && test "x$with_libxml2" = "xyes" then plugin_curl_xml="yes" fi if test "x$with_libyajl" = "xyes" then plugin_ceph="yes" fi if test "x$have_processor_info" = "xyes" then plugin_cpu="yes" fi if test "x$have_sysctl" = "xyes" then plugin_cpu="yes" plugin_memory="yes" plugin_uptime="yes" if test "x$ac_system" = "xDarwin" then plugin_swap="yes" fi fi if test "x$have_sysctlbyname" = "xyes" then plugin_contextswitch="yes" plugin_cpu="yes" plugin_memory="yes" plugin_tcpconns="yes" fi # Df plugin: Check if we know how to determine mount points first. #if test "x$have_listmntent" = "xyes"; then # plugin_df="yes" #fi if test "x$have_getvfsstat" = "xyes" || test "x$have_getfsstat" = "xyes" then plugin_df="yes" fi if test "x$c_cv_have_two_getmntent" = "xyes" || test "x$have_getmntent" = "xgen" || test "x$have_getmntent" = "xsun" then plugin_df="yes" fi #if test "x$have_getmntent" = "xseq" #then # plugin_df="yes" #fi if test "x$c_cv_have_one_getmntent" = "xyes" then plugin_df="yes" fi # Df plugin: Check if we have either `statfs' or `statvfs' second. if test "x$plugin_df" = "xyes" then plugin_df="no" if test "x$have_statfs" = "xyes" then plugin_df="yes" fi if test "x$have_statvfs" = "xyes" then plugin_df="yes" fi fi if test "x$have_linux_sockios_h$have_linux_ethtool_h" = "xyesyes" then plugin_ethstat="yes" fi if test "x$have_getifaddrs" = "xyes" then plugin_interface="yes" fi if test "x$have_getloadavg" = "xyes" then plugin_load="yes" fi if test "x$with_libyajl" = "xyes" then plugin_log_logstash="yes" fi if test "x$c_cv_have_libperl$c_cv_have_perl_ithreads" = "xyesyes" then plugin_perl="yes" fi # Mac OS X memory interface if test "x$have_host_statistics" = "xyes" then plugin_memory="yes" fi if test "x$have_termios_h" = "xyes" then if test "x$ac_system" != "xAIX" then plugin_multimeter="yes" fi plugin_ted="yes" fi if test "x$have_thread_info" = "xyes" then plugin_processes="yes" fi if test "x$with_kvm_getprocs" = "xyes" && test "x$have_struct_kinfo_proc_freebsd" = "xyes" then plugin_processes="yes" fi if test "x$with_kvm_getprocs" = "xyes" && test "x$have_struct_kinfo_proc_openbsd" = "xyes" then plugin_processes="yes" fi if test "x$with_kvm_getswapinfo" = "xyes" then plugin_swap="yes" fi if test "x$have_swapctl" = "xyes" && test "x$c_cv_have_swapctl_two_args" = "xyes" then plugin_swap="yes" fi if test "x$with_kvm_openfiles$with_kvm_nlist" = "xyesyes" then plugin_tcpconns="yes" fi if test "x$have_getutent" = "xyes" then plugin_users="yes" fi if test "x$have_getutxent" = "xyes" then plugin_users="yes" fi if test "x$with_libxml2" = "xyes" && test "x$with_libvirt" = "xyes" then plugin_virt="yes" fi # Check whether --enable-all-plugins was given. if test ${enable_all_plugins+y} then : enableval=$enable_all_plugins; if test "x$enableval" = "xyes" then enable_all_plugins="yes" else if test "x$enableval" = "xauto" then enable_all_plugins="auto" else enable_all_plugins="no" fi; fi else case e in #( e) enable_all_plugins="auto" ;; esac fi enable_plugin="no" force="no" # Check whether --enable-aggregation was given. if test ${enable_aggregation+y} then : enableval=$enable_aggregation; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_AGGREGATION 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_AGGREGATION_TRUE= BUILD_PLUGIN_AGGREGATION_FALSE='#' else BUILD_PLUGIN_AGGREGATION_TRUE='#' BUILD_PLUGIN_AGGREGATION_FALSE= fi enable_aggregation="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-amqp was given. if test ${enable_amqp+y} then : enableval=$enable_amqp; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_librabbitmq" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_librabbitmq" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_AMQP 1" >>confdefs.h if test "x$with_librabbitmq" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_AMQP_TRUE= BUILD_PLUGIN_AMQP_FALSE='#' else BUILD_PLUGIN_AMQP_TRUE='#' BUILD_PLUGIN_AMQP_FALSE= fi enable_amqp="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-apache was given. if test ${enable_apache+y} then : enableval=$enable_apache; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libcurl" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_APACHE 1" >>confdefs.h if test "x$with_libcurl" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_APACHE_TRUE= BUILD_PLUGIN_APACHE_FALSE='#' else BUILD_PLUGIN_APACHE_TRUE='#' BUILD_PLUGIN_APACHE_FALSE= fi enable_apache="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-apcups was given. if test ${enable_apcups+y} then : enableval=$enable_apcups; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_APCUPS 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_APCUPS_TRUE= BUILD_PLUGIN_APCUPS_FALSE='#' else BUILD_PLUGIN_APCUPS_TRUE='#' BUILD_PLUGIN_APCUPS_FALSE= fi enable_apcups="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-apple_sensors was given. if test ${enable_apple_sensors+y} then : enableval=$enable_apple_sensors; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libiokit" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libiokit" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_APPLE_SENSORS 1" >>confdefs.h if test "x$with_libiokit" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_APPLE_SENSORS_TRUE= BUILD_PLUGIN_APPLE_SENSORS_FALSE='#' else BUILD_PLUGIN_APPLE_SENSORS_TRUE='#' BUILD_PLUGIN_APPLE_SENSORS_FALSE= fi enable_apple_sensors="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-aquaero was given. if test ${enable_aquaero+y} then : enableval=$enable_aquaero; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libaquaero5" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libaquaero5" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_AQUAERO 1" >>confdefs.h if test "x$with_libaquaero5" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_AQUAERO_TRUE= BUILD_PLUGIN_AQUAERO_FALSE='#' else BUILD_PLUGIN_AQUAERO_TRUE='#' BUILD_PLUGIN_AQUAERO_FALSE= fi enable_aquaero="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-ascent was given. if test ${enable_ascent+y} then : enableval=$enable_ascent; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_ascent" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_ascent" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_ASCENT 1" >>confdefs.h if test "x$plugin_ascent" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_ASCENT_TRUE= BUILD_PLUGIN_ASCENT_FALSE='#' else BUILD_PLUGIN_ASCENT_TRUE='#' BUILD_PLUGIN_ASCENT_FALSE= fi enable_ascent="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-barometer was given. if test ${enable_barometer+y} then : enableval=$enable_barometer; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_barometer" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_barometer" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_BAROMETER 1" >>confdefs.h if test "x$plugin_barometer" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_BAROMETER_TRUE= BUILD_PLUGIN_BAROMETER_FALSE='#' else BUILD_PLUGIN_BAROMETER_TRUE='#' BUILD_PLUGIN_BAROMETER_FALSE= fi enable_barometer="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-battery was given. if test ${enable_battery+y} then : enableval=$enable_battery; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_battery" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_battery" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_BATTERY 1" >>confdefs.h if test "x$plugin_battery" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_BATTERY_TRUE= BUILD_PLUGIN_BATTERY_FALSE='#' else BUILD_PLUGIN_BATTERY_TRUE='#' BUILD_PLUGIN_BATTERY_FALSE= fi enable_battery="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-bind was given. if test ${enable_bind+y} then : enableval=$enable_bind; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_bind" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_bind" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_BIND 1" >>confdefs.h if test "x$plugin_bind" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_BIND_TRUE= BUILD_PLUGIN_BIND_FALSE='#' else BUILD_PLUGIN_BIND_TRUE='#' BUILD_PLUGIN_BIND_FALSE= fi enable_bind="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-ceph was given. if test ${enable_ceph+y} then : enableval=$enable_ceph; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_ceph" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_ceph" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CEPH 1" >>confdefs.h if test "x$plugin_ceph" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CEPH_TRUE= BUILD_PLUGIN_CEPH_FALSE='#' else BUILD_PLUGIN_CEPH_TRUE='#' BUILD_PLUGIN_CEPH_FALSE= fi enable_ceph="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-conntrack was given. if test ${enable_conntrack+y} then : enableval=$enable_conntrack; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_conntrack" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_conntrack" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CONNTRACK 1" >>confdefs.h if test "x$plugin_conntrack" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CONNTRACK_TRUE= BUILD_PLUGIN_CONNTRACK_FALSE='#' else BUILD_PLUGIN_CONNTRACK_TRUE='#' BUILD_PLUGIN_CONNTRACK_FALSE= fi enable_conntrack="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-contextswitch was given. if test ${enable_contextswitch+y} then : enableval=$enable_contextswitch; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_contextswitch" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_contextswitch" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CONTEXTSWITCH 1" >>confdefs.h if test "x$plugin_contextswitch" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CONTEXTSWITCH_TRUE= BUILD_PLUGIN_CONTEXTSWITCH_FALSE='#' else BUILD_PLUGIN_CONTEXTSWITCH_TRUE='#' BUILD_PLUGIN_CONTEXTSWITCH_FALSE= fi enable_contextswitch="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-cpufreq was given. if test ${enable_cpufreq+y} then : enableval=$enable_cpufreq; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_cpufreq" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_cpufreq" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CPUFREQ 1" >>confdefs.h if test "x$plugin_cpufreq" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CPUFREQ_TRUE= BUILD_PLUGIN_CPUFREQ_FALSE='#' else BUILD_PLUGIN_CPUFREQ_TRUE='#' BUILD_PLUGIN_CPUFREQ_FALSE= fi enable_cpufreq="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-cpu was given. if test ${enable_cpu+y} then : enableval=$enable_cpu; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_cpu" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_cpu" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CPU 1" >>confdefs.h if test "x$plugin_cpu" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CPU_TRUE= BUILD_PLUGIN_CPU_FALSE='#' else BUILD_PLUGIN_CPU_TRUE='#' BUILD_PLUGIN_CPU_FALSE= fi enable_cpu="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-csv was given. if test ${enable_csv+y} then : enableval=$enable_csv; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CSV 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CSV_TRUE= BUILD_PLUGIN_CSV_FALSE='#' else BUILD_PLUGIN_CSV_TRUE='#' BUILD_PLUGIN_CSV_FALSE= fi enable_csv="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-curl was given. if test ${enable_curl+y} then : enableval=$enable_curl; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libcurl" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CURL 1" >>confdefs.h if test "x$with_libcurl" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CURL_TRUE= BUILD_PLUGIN_CURL_FALSE='#' else BUILD_PLUGIN_CURL_TRUE='#' BUILD_PLUGIN_CURL_FALSE= fi enable_curl="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-curl_json was given. if test ${enable_curl_json+y} then : enableval=$enable_curl_json; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_curl_json" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_curl_json" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CURL_JSON 1" >>confdefs.h if test "x$plugin_curl_json" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CURL_JSON_TRUE= BUILD_PLUGIN_CURL_JSON_FALSE='#' else BUILD_PLUGIN_CURL_JSON_TRUE='#' BUILD_PLUGIN_CURL_JSON_FALSE= fi enable_curl_json="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-curl_xml was given. if test ${enable_curl_xml+y} then : enableval=$enable_curl_xml; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_curl_xml" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_curl_xml" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CURL_XML 1" >>confdefs.h if test "x$plugin_curl_xml" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CURL_XML_TRUE= BUILD_PLUGIN_CURL_XML_FALSE='#' else BUILD_PLUGIN_CURL_XML_TRUE='#' BUILD_PLUGIN_CURL_XML_FALSE= fi enable_curl_xml="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-cgroups was given. if test ${enable_cgroups+y} then : enableval=$enable_cgroups; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_cgroups" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_cgroups" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_CGROUPS 1" >>confdefs.h if test "x$plugin_cgroups" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_CGROUPS_TRUE= BUILD_PLUGIN_CGROUPS_FALSE='#' else BUILD_PLUGIN_CGROUPS_TRUE='#' BUILD_PLUGIN_CGROUPS_FALSE= fi enable_cgroups="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-dbi was given. if test ${enable_dbi+y} then : enableval=$enable_dbi; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libdbi" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libdbi" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_DBI 1" >>confdefs.h if test "x$with_libdbi" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_DBI_TRUE= BUILD_PLUGIN_DBI_FALSE='#' else BUILD_PLUGIN_DBI_TRUE='#' BUILD_PLUGIN_DBI_FALSE= fi enable_dbi="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-df was given. if test ${enable_df+y} then : enableval=$enable_df; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_df" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_df" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_DF 1" >>confdefs.h if test "x$plugin_df" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_DF_TRUE= BUILD_PLUGIN_DF_FALSE='#' else BUILD_PLUGIN_DF_TRUE='#' BUILD_PLUGIN_DF_FALSE= fi enable_df="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-disk was given. if test ${enable_disk+y} then : enableval=$enable_disk; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_disk" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_disk" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_DISK 1" >>confdefs.h if test "x$plugin_disk" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_DISK_TRUE= BUILD_PLUGIN_DISK_FALSE='#' else BUILD_PLUGIN_DISK_TRUE='#' BUILD_PLUGIN_DISK_FALSE= fi enable_disk="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-drbd was given. if test ${enable_drbd+y} then : enableval=$enable_drbd; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_drbd" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_drbd" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_DRBD 1" >>confdefs.h if test "x$plugin_drbd" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_DRBD_TRUE= BUILD_PLUGIN_DRBD_FALSE='#' else BUILD_PLUGIN_DRBD_TRUE='#' BUILD_PLUGIN_DRBD_FALSE= fi enable_drbd="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-dns was given. if test ${enable_dns+y} then : enableval=$enable_dns; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libpcap" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libpcap" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_DNS 1" >>confdefs.h if test "x$with_libpcap" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_DNS_TRUE= BUILD_PLUGIN_DNS_FALSE='#' else BUILD_PLUGIN_DNS_TRUE='#' BUILD_PLUGIN_DNS_FALSE= fi enable_dns="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-email was given. if test ${enable_email+y} then : enableval=$enable_email; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_EMAIL 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_EMAIL_TRUE= BUILD_PLUGIN_EMAIL_FALSE='#' else BUILD_PLUGIN_EMAIL_TRUE='#' BUILD_PLUGIN_EMAIL_FALSE= fi enable_email="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-entropy was given. if test ${enable_entropy+y} then : enableval=$enable_entropy; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_entropy" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_entropy" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_ENTROPY 1" >>confdefs.h if test "x$plugin_entropy" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_ENTROPY_TRUE= BUILD_PLUGIN_ENTROPY_FALSE='#' else BUILD_PLUGIN_ENTROPY_TRUE='#' BUILD_PLUGIN_ENTROPY_FALSE= fi enable_entropy="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-ethstat was given. if test ${enable_ethstat+y} then : enableval=$enable_ethstat; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_ethstat" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_ethstat" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_ETHSTAT 1" >>confdefs.h if test "x$plugin_ethstat" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_ETHSTAT_TRUE= BUILD_PLUGIN_ETHSTAT_FALSE='#' else BUILD_PLUGIN_ETHSTAT_TRUE='#' BUILD_PLUGIN_ETHSTAT_FALSE= fi enable_ethstat="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-exec was given. if test ${enable_exec+y} then : enableval=$enable_exec; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_EXEC 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_EXEC_TRUE= BUILD_PLUGIN_EXEC_FALSE='#' else BUILD_PLUGIN_EXEC_TRUE='#' BUILD_PLUGIN_EXEC_FALSE= fi enable_exec="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-fhcount was given. if test ${enable_fhcount+y} then : enableval=$enable_fhcount; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_FHCOUNT 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_FHCOUNT_TRUE= BUILD_PLUGIN_FHCOUNT_FALSE='#' else BUILD_PLUGIN_FHCOUNT_TRUE='#' BUILD_PLUGIN_FHCOUNT_FALSE= fi enable_fhcount="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-filecount was given. if test ${enable_filecount+y} then : enableval=$enable_filecount; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_FILECOUNT 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_FILECOUNT_TRUE= BUILD_PLUGIN_FILECOUNT_FALSE='#' else BUILD_PLUGIN_FILECOUNT_TRUE='#' BUILD_PLUGIN_FILECOUNT_FALSE= fi enable_filecount="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-fscache was given. if test ${enable_fscache+y} then : enableval=$enable_fscache; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_fscache" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_fscache" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_FSCACHE 1" >>confdefs.h if test "x$plugin_fscache" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_FSCACHE_TRUE= BUILD_PLUGIN_FSCACHE_FALSE='#' else BUILD_PLUGIN_FSCACHE_TRUE='#' BUILD_PLUGIN_FSCACHE_FALSE= fi enable_fscache="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-gmond was given. if test ${enable_gmond+y} then : enableval=$enable_gmond; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libganglia" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libganglia" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_GMOND 1" >>confdefs.h if test "x$with_libganglia" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_GMOND_TRUE= BUILD_PLUGIN_GMOND_FALSE='#' else BUILD_PLUGIN_GMOND_TRUE='#' BUILD_PLUGIN_GMOND_FALSE= fi enable_gmond="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-hddtemp was given. if test ${enable_hddtemp+y} then : enableval=$enable_hddtemp; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_HDDTEMP 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_HDDTEMP_TRUE= BUILD_PLUGIN_HDDTEMP_FALSE='#' else BUILD_PLUGIN_HDDTEMP_TRUE='#' BUILD_PLUGIN_HDDTEMP_FALSE= fi enable_hddtemp="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-interface was given. if test ${enable_interface+y} then : enableval=$enable_interface; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_interface" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_interface" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_INTERFACE 1" >>confdefs.h if test "x$plugin_interface" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_INTERFACE_TRUE= BUILD_PLUGIN_INTERFACE_FALSE='#' else BUILD_PLUGIN_INTERFACE_TRUE='#' BUILD_PLUGIN_INTERFACE_FALSE= fi enable_interface="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-ipc was given. if test ${enable_ipc+y} then : enableval=$enable_ipc; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_ipc" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_ipc" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_IPC 1" >>confdefs.h if test "x$plugin_ipc" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_IPC_TRUE= BUILD_PLUGIN_IPC_FALSE='#' else BUILD_PLUGIN_IPC_TRUE='#' BUILD_PLUGIN_IPC_FALSE= fi enable_ipc="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-ipmi was given. if test ${enable_ipmi+y} then : enableval=$enable_ipmi; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_ipmi" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_ipmi" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_IPMI 1" >>confdefs.h if test "x$plugin_ipmi" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_IPMI_TRUE= BUILD_PLUGIN_IPMI_FALSE='#' else BUILD_PLUGIN_IPMI_TRUE='#' BUILD_PLUGIN_IPMI_FALSE= fi enable_ipmi="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-iptables was given. if test ${enable_iptables+y} then : enableval=$enable_iptables; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libiptc" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libiptc" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_IPTABLES 1" >>confdefs.h if test "x$with_libiptc" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_IPTABLES_TRUE= BUILD_PLUGIN_IPTABLES_FALSE='#' else BUILD_PLUGIN_IPTABLES_TRUE='#' BUILD_PLUGIN_IPTABLES_FALSE= fi enable_iptables="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-ipvs was given. if test ${enable_ipvs+y} then : enableval=$enable_ipvs; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_ipvs" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_ipvs" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_IPVS 1" >>confdefs.h if test "x$plugin_ipvs" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_IPVS_TRUE= BUILD_PLUGIN_IPVS_FALSE='#' else BUILD_PLUGIN_IPVS_TRUE='#' BUILD_PLUGIN_IPVS_FALSE= fi enable_ipvs="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-irq was given. if test ${enable_irq+y} then : enableval=$enable_irq; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_irq" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_irq" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_IRQ 1" >>confdefs.h if test "x$plugin_irq" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_IRQ_TRUE= BUILD_PLUGIN_IRQ_FALSE='#' else BUILD_PLUGIN_IRQ_TRUE='#' BUILD_PLUGIN_IRQ_FALSE= fi enable_irq="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-java was given. if test ${enable_java+y} then : enableval=$enable_java; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_java" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_java" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_JAVA 1" >>confdefs.h if test "x$with_java" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_JAVA_TRUE= BUILD_PLUGIN_JAVA_FALSE='#' else BUILD_PLUGIN_JAVA_TRUE='#' BUILD_PLUGIN_JAVA_FALSE= fi enable_java="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-load was given. if test ${enable_load+y} then : enableval=$enable_load; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_load" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_load" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_LOAD 1" >>confdefs.h if test "x$plugin_load" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_LOAD_TRUE= BUILD_PLUGIN_LOAD_FALSE='#' else BUILD_PLUGIN_LOAD_TRUE='#' BUILD_PLUGIN_LOAD_FALSE= fi enable_load="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-logfile was given. if test ${enable_logfile+y} then : enableval=$enable_logfile; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_LOGFILE 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_LOGFILE_TRUE= BUILD_PLUGIN_LOGFILE_FALSE='#' else BUILD_PLUGIN_LOGFILE_TRUE='#' BUILD_PLUGIN_LOGFILE_FALSE= fi enable_logfile="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-log_logstash was given. if test ${enable_log_logstash+y} then : enableval=$enable_log_logstash; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_log_logstash" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_log_logstash" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_LOG_LOGSTASH 1" >>confdefs.h if test "x$plugin_log_logstash" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_LOG_LOGSTASH_TRUE= BUILD_PLUGIN_LOG_LOGSTASH_FALSE='#' else BUILD_PLUGIN_LOG_LOGSTASH_TRUE='#' BUILD_PLUGIN_LOG_LOGSTASH_FALSE= fi enable_log_logstash="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-lpar was given. if test ${enable_lpar+y} then : enableval=$enable_lpar; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_perfstat" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_perfstat" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_LPAR 1" >>confdefs.h if test "x$with_perfstat" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_LPAR_TRUE= BUILD_PLUGIN_LPAR_FALSE='#' else BUILD_PLUGIN_LPAR_TRUE='#' BUILD_PLUGIN_LPAR_FALSE= fi enable_lpar="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-lvm was given. if test ${enable_lvm+y} then : enableval=$enable_lvm; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_liblvm2app" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_liblvm2app" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_LVM 1" >>confdefs.h if test "x$with_liblvm2app" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_LVM_TRUE= BUILD_PLUGIN_LVM_FALSE='#' else BUILD_PLUGIN_LVM_TRUE='#' BUILD_PLUGIN_LVM_FALSE= fi enable_lvm="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-madwifi was given. if test ${enable_madwifi+y} then : enableval=$enable_madwifi; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$have_linux_wireless_h" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$have_linux_wireless_h" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MADWIFI 1" >>confdefs.h if test "x$have_linux_wireless_h" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MADWIFI_TRUE= BUILD_PLUGIN_MADWIFI_FALSE='#' else BUILD_PLUGIN_MADWIFI_TRUE='#' BUILD_PLUGIN_MADWIFI_FALSE= fi enable_madwifi="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-match_empty_counter was given. if test ${enable_match_empty_counter+y} then : enableval=$enable_match_empty_counter; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MATCH_EMPTY_COUNTER 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE= BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE='#' else BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE='#' BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE= fi enable_match_empty_counter="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-match_hashed was given. if test ${enable_match_hashed+y} then : enableval=$enable_match_hashed; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MATCH_HASHED 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MATCH_HASHED_TRUE= BUILD_PLUGIN_MATCH_HASHED_FALSE='#' else BUILD_PLUGIN_MATCH_HASHED_TRUE='#' BUILD_PLUGIN_MATCH_HASHED_FALSE= fi enable_match_hashed="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-match_regex was given. if test ${enable_match_regex+y} then : enableval=$enable_match_regex; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MATCH_REGEX 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MATCH_REGEX_TRUE= BUILD_PLUGIN_MATCH_REGEX_FALSE='#' else BUILD_PLUGIN_MATCH_REGEX_TRUE='#' BUILD_PLUGIN_MATCH_REGEX_FALSE= fi enable_match_regex="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-match_timediff was given. if test ${enable_match_timediff+y} then : enableval=$enable_match_timediff; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MATCH_TIMEDIFF 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE= BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE='#' else BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE='#' BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE= fi enable_match_timediff="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-match_value was given. if test ${enable_match_value+y} then : enableval=$enable_match_value; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MATCH_VALUE 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MATCH_VALUE_TRUE= BUILD_PLUGIN_MATCH_VALUE_FALSE='#' else BUILD_PLUGIN_MATCH_VALUE_TRUE='#' BUILD_PLUGIN_MATCH_VALUE_FALSE= fi enable_match_value="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-mbmon was given. if test ${enable_mbmon+y} then : enableval=$enable_mbmon; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MBMON 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MBMON_TRUE= BUILD_PLUGIN_MBMON_FALSE='#' else BUILD_PLUGIN_MBMON_TRUE='#' BUILD_PLUGIN_MBMON_FALSE= fi enable_mbmon="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-md was given. if test ${enable_md+y} then : enableval=$enable_md; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$have_linux_raid_md_u_h" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$have_linux_raid_md_u_h" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MD 1" >>confdefs.h if test "x$have_linux_raid_md_u_h" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MD_TRUE= BUILD_PLUGIN_MD_FALSE='#' else BUILD_PLUGIN_MD_TRUE='#' BUILD_PLUGIN_MD_FALSE= fi enable_md="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-memcachec was given. if test ${enable_memcachec+y} then : enableval=$enable_memcachec; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libmemcached" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libmemcached" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MEMCACHEC 1" >>confdefs.h if test "x$with_libmemcached" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MEMCACHEC_TRUE= BUILD_PLUGIN_MEMCACHEC_FALSE='#' else BUILD_PLUGIN_MEMCACHEC_TRUE='#' BUILD_PLUGIN_MEMCACHEC_FALSE= fi enable_memcachec="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-memcached was given. if test ${enable_memcached+y} then : enableval=$enable_memcached; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MEMCACHED 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MEMCACHED_TRUE= BUILD_PLUGIN_MEMCACHED_FALSE='#' else BUILD_PLUGIN_MEMCACHED_TRUE='#' BUILD_PLUGIN_MEMCACHED_FALSE= fi enable_memcached="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-memory was given. if test ${enable_memory+y} then : enableval=$enable_memory; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_memory" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_memory" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MEMORY 1" >>confdefs.h if test "x$plugin_memory" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MEMORY_TRUE= BUILD_PLUGIN_MEMORY_FALSE='#' else BUILD_PLUGIN_MEMORY_TRUE='#' BUILD_PLUGIN_MEMORY_FALSE= fi enable_memory="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-mic was given. if test ${enable_mic+y} then : enableval=$enable_mic; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_mic" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_mic" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MIC 1" >>confdefs.h if test "x$with_mic" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MIC_TRUE= BUILD_PLUGIN_MIC_FALSE='#' else BUILD_PLUGIN_MIC_TRUE='#' BUILD_PLUGIN_MIC_FALSE= fi enable_mic="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-modbus was given. if test ${enable_modbus+y} then : enableval=$enable_modbus; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libmodbus" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libmodbus" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MODBUS 1" >>confdefs.h if test "x$with_libmodbus" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MODBUS_TRUE= BUILD_PLUGIN_MODBUS_FALSE='#' else BUILD_PLUGIN_MODBUS_TRUE='#' BUILD_PLUGIN_MODBUS_FALSE= fi enable_modbus="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-multimeter was given. if test ${enable_multimeter+y} then : enableval=$enable_multimeter; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_multimeter" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_multimeter" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MULTIMETER 1" >>confdefs.h if test "x$plugin_multimeter" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MULTIMETER_TRUE= BUILD_PLUGIN_MULTIMETER_FALSE='#' else BUILD_PLUGIN_MULTIMETER_TRUE='#' BUILD_PLUGIN_MULTIMETER_FALSE= fi enable_multimeter="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-mysql was given. if test ${enable_mysql+y} then : enableval=$enable_mysql; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libmysql" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libmysql" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_MYSQL 1" >>confdefs.h if test "x$with_libmysql" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_MYSQL_TRUE= BUILD_PLUGIN_MYSQL_FALSE='#' else BUILD_PLUGIN_MYSQL_TRUE='#' BUILD_PLUGIN_MYSQL_FALSE= fi enable_mysql="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-netapp was given. if test ${enable_netapp+y} then : enableval=$enable_netapp; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libnetapp" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libnetapp" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NETAPP 1" >>confdefs.h if test "x$with_libnetapp" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NETAPP_TRUE= BUILD_PLUGIN_NETAPP_FALSE='#' else BUILD_PLUGIN_NETAPP_TRUE='#' BUILD_PLUGIN_NETAPP_FALSE= fi enable_netapp="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-netlink was given. if test ${enable_netlink+y} then : enableval=$enable_netlink; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libmnl" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libmnl" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NETLINK 1" >>confdefs.h if test "x$with_libmnl" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NETLINK_TRUE= BUILD_PLUGIN_NETLINK_FALSE='#' else BUILD_PLUGIN_NETLINK_TRUE='#' BUILD_PLUGIN_NETLINK_FALSE= fi enable_netlink="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-network was given. if test ${enable_network+y} then : enableval=$enable_network; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NETWORK 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NETWORK_TRUE= BUILD_PLUGIN_NETWORK_FALSE='#' else BUILD_PLUGIN_NETWORK_TRUE='#' BUILD_PLUGIN_NETWORK_FALSE= fi enable_network="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-nfs was given. if test ${enable_nfs+y} then : enableval=$enable_nfs; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_nfs" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_nfs" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NFS 1" >>confdefs.h if test "x$plugin_nfs" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NFS_TRUE= BUILD_PLUGIN_NFS_FALSE='#' else BUILD_PLUGIN_NFS_TRUE='#' BUILD_PLUGIN_NFS_FALSE= fi enable_nfs="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-nginx was given. if test ${enable_nginx+y} then : enableval=$enable_nginx; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libcurl" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NGINX 1" >>confdefs.h if test "x$with_libcurl" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NGINX_TRUE= BUILD_PLUGIN_NGINX_FALSE='#' else BUILD_PLUGIN_NGINX_TRUE='#' BUILD_PLUGIN_NGINX_FALSE= fi enable_nginx="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-dummy_plugin was given. if test ${enable_dummy_plugin+y} then : enableval=$enable_dummy_plugin; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libnotify" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libnotify" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_DUMMY_PLUGIN 1" >>confdefs.h if test "x$with_libnotify" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_DUMMY_PLUGIN_TRUE= BUILD_PLUGIN_DUMMY_PLUGIN_FALSE='#' else BUILD_PLUGIN_DUMMY_PLUGIN_TRUE='#' BUILD_PLUGIN_DUMMY_PLUGIN_FALSE= fi enable_dummy_plugin="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-notify_desktop was given. if test ${enable_notify_desktop+y} then : enableval=$enable_notify_desktop; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libnotify" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libnotify" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NOTIFY_DESKTOP 1" >>confdefs.h if test "x$with_libnotify" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE= BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE='#' else BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE='#' BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE= fi enable_notify_desktop="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-notify_email was given. if test ${enable_notify_email+y} then : enableval=$enable_notify_email; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libesmtp" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libesmtp" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NOTIFY_EMAIL 1" >>confdefs.h if test "x$with_libesmtp" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NOTIFY_EMAIL_TRUE= BUILD_PLUGIN_NOTIFY_EMAIL_FALSE='#' else BUILD_PLUGIN_NOTIFY_EMAIL_TRUE='#' BUILD_PLUGIN_NOTIFY_EMAIL_FALSE= fi enable_notify_email="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-ntpd was given. if test ${enable_ntpd+y} then : enableval=$enable_ntpd; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NTPD 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NTPD_TRUE= BUILD_PLUGIN_NTPD_FALSE='#' else BUILD_PLUGIN_NTPD_TRUE='#' BUILD_PLUGIN_NTPD_FALSE= fi enable_ntpd="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-numa was given. if test ${enable_numa+y} then : enableval=$enable_numa; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_numa" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_numa" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NUMA 1" >>confdefs.h if test "x$plugin_numa" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NUMA_TRUE= BUILD_PLUGIN_NUMA_FALSE='#' else BUILD_PLUGIN_NUMA_TRUE='#' BUILD_PLUGIN_NUMA_FALSE= fi enable_numa="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-nut was given. if test ${enable_nut+y} then : enableval=$enable_nut; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libupsclient" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libupsclient" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_NUT 1" >>confdefs.h if test "x$with_libupsclient" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_NUT_TRUE= BUILD_PLUGIN_NUT_FALSE='#' else BUILD_PLUGIN_NUT_TRUE='#' BUILD_PLUGIN_NUT_FALSE= fi enable_nut="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-olsrd was given. if test ${enable_olsrd+y} then : enableval=$enable_olsrd; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_OLSRD 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_OLSRD_TRUE= BUILD_PLUGIN_OLSRD_FALSE='#' else BUILD_PLUGIN_OLSRD_TRUE='#' BUILD_PLUGIN_OLSRD_FALSE= fi enable_olsrd="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-onewire was given. if test ${enable_onewire+y} then : enableval=$enable_onewire; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libowcapi" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libowcapi" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_ONEWIRE 1" >>confdefs.h if test "x$with_libowcapi" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_ONEWIRE_TRUE= BUILD_PLUGIN_ONEWIRE_FALSE='#' else BUILD_PLUGIN_ONEWIRE_TRUE='#' BUILD_PLUGIN_ONEWIRE_FALSE= fi enable_onewire="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-openldap was given. if test ${enable_openldap+y} then : enableval=$enable_openldap; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libldap" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libldap" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_OPENLDAP 1" >>confdefs.h if test "x$with_libldap" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_OPENLDAP_TRUE= BUILD_PLUGIN_OPENLDAP_FALSE='#' else BUILD_PLUGIN_OPENLDAP_TRUE='#' BUILD_PLUGIN_OPENLDAP_FALSE= fi enable_openldap="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-openvpn was given. if test ${enable_openvpn+y} then : enableval=$enable_openvpn; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_OPENVPN 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_OPENVPN_TRUE= BUILD_PLUGIN_OPENVPN_FALSE='#' else BUILD_PLUGIN_OPENVPN_TRUE='#' BUILD_PLUGIN_OPENVPN_FALSE= fi enable_openvpn="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-oracle was given. if test ${enable_oracle+y} then : enableval=$enable_oracle; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_oracle" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_oracle" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_ORACLE 1" >>confdefs.h if test "x$with_oracle" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_ORACLE_TRUE= BUILD_PLUGIN_ORACLE_FALSE='#' else BUILD_PLUGIN_ORACLE_TRUE='#' BUILD_PLUGIN_ORACLE_FALSE= fi enable_oracle="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-perl was given. if test ${enable_perl+y} then : enableval=$enable_perl; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_perl" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_perl" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_PERL 1" >>confdefs.h if test "x$plugin_perl" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_PERL_TRUE= BUILD_PLUGIN_PERL_FALSE='#' else BUILD_PLUGIN_PERL_TRUE='#' BUILD_PLUGIN_PERL_FALSE= fi enable_perl="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-pf was given. if test ${enable_pf+y} then : enableval=$enable_pf; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$have_net_pfvar_h" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$have_net_pfvar_h" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_PF 1" >>confdefs.h if test "x$have_net_pfvar_h" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_PF_TRUE= BUILD_PLUGIN_PF_FALSE='#' else BUILD_PLUGIN_PF_TRUE='#' BUILD_PLUGIN_PF_FALSE= fi enable_pf="$enable_plugin" # FIXME: Check for libevent, too. enable_plugin="no" force="no" # Check whether --enable-pinba was given. if test ${enable_pinba+y} then : enableval=$enable_pinba; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$have_protoc_c" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$have_protoc_c" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_PINBA 1" >>confdefs.h if test "x$have_protoc_c" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_PINBA_TRUE= BUILD_PLUGIN_PINBA_FALSE='#' else BUILD_PLUGIN_PINBA_TRUE='#' BUILD_PLUGIN_PINBA_FALSE= fi enable_pinba="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-ping was given. if test ${enable_ping+y} then : enableval=$enable_ping; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_liboping" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_liboping" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_PING 1" >>confdefs.h if test "x$with_liboping" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_PING_TRUE= BUILD_PLUGIN_PING_FALSE='#' else BUILD_PLUGIN_PING_TRUE='#' BUILD_PLUGIN_PING_FALSE= fi enable_ping="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-postgresql was given. if test ${enable_postgresql+y} then : enableval=$enable_postgresql; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libpq" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libpq" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_POSTGRESQL 1" >>confdefs.h if test "x$with_libpq" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_POSTGRESQL_TRUE= BUILD_PLUGIN_POSTGRESQL_FALSE='#' else BUILD_PLUGIN_POSTGRESQL_TRUE='#' BUILD_PLUGIN_POSTGRESQL_FALSE= fi enable_postgresql="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-powerdns was given. if test ${enable_powerdns+y} then : enableval=$enable_powerdns; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_POWERDNS 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_POWERDNS_TRUE= BUILD_PLUGIN_POWERDNS_FALSE='#' else BUILD_PLUGIN_POWERDNS_TRUE='#' BUILD_PLUGIN_POWERDNS_FALSE= fi enable_powerdns="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-processes was given. if test ${enable_processes+y} then : enableval=$enable_processes; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_processes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_processes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_PROCESSES 1" >>confdefs.h if test "x$plugin_processes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_PROCESSES_TRUE= BUILD_PLUGIN_PROCESSES_FALSE='#' else BUILD_PLUGIN_PROCESSES_TRUE='#' BUILD_PLUGIN_PROCESSES_FALSE= fi enable_processes="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-protocols was given. if test ${enable_protocols+y} then : enableval=$enable_protocols; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_protocols" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_protocols" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_PROTOCOLS 1" >>confdefs.h if test "x$plugin_protocols" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_PROTOCOLS_TRUE= BUILD_PLUGIN_PROTOCOLS_FALSE='#' else BUILD_PLUGIN_PROTOCOLS_TRUE='#' BUILD_PLUGIN_PROTOCOLS_FALSE= fi enable_protocols="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-python was given. if test ${enable_python+y} then : enableval=$enable_python; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_python" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_python" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_PYTHON 1" >>confdefs.h if test "x$with_python" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_PYTHON_TRUE= BUILD_PLUGIN_PYTHON_FALSE='#' else BUILD_PLUGIN_PYTHON_TRUE='#' BUILD_PLUGIN_PYTHON_FALSE= fi enable_python="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-redis was given. if test ${enable_redis+y} then : enableval=$enable_redis; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libhiredis" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libhiredis" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_REDIS 1" >>confdefs.h if test "x$with_libhiredis" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_REDIS_TRUE= BUILD_PLUGIN_REDIS_FALSE='#' else BUILD_PLUGIN_REDIS_TRUE='#' BUILD_PLUGIN_REDIS_FALSE= fi enable_redis="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-routeros was given. if test ${enable_routeros+y} then : enableval=$enable_routeros; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_librouteros" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_librouteros" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_ROUTEROS 1" >>confdefs.h if test "x$with_librouteros" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_ROUTEROS_TRUE= BUILD_PLUGIN_ROUTEROS_FALSE='#' else BUILD_PLUGIN_ROUTEROS_TRUE='#' BUILD_PLUGIN_ROUTEROS_FALSE= fi enable_routeros="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-rrdcached was given. if test ${enable_rrdcached+y} then : enableval=$enable_rrdcached; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$librrd_rrdc_update" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$librrd_rrdc_update" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_RRDCACHED 1" >>confdefs.h if test "x$librrd_rrdc_update" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_RRDCACHED_TRUE= BUILD_PLUGIN_RRDCACHED_FALSE='#' else BUILD_PLUGIN_RRDCACHED_TRUE='#' BUILD_PLUGIN_RRDCACHED_FALSE= fi enable_rrdcached="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-rrdtool was given. if test ${enable_rrdtool+y} then : enableval=$enable_rrdtool; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_librrd" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_librrd" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_RRDTOOL 1" >>confdefs.h if test "x$with_librrd" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_RRDTOOL_TRUE= BUILD_PLUGIN_RRDTOOL_FALSE='#' else BUILD_PLUGIN_RRDTOOL_TRUE='#' BUILD_PLUGIN_RRDTOOL_FALSE= fi enable_rrdtool="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-sensors was given. if test ${enable_sensors+y} then : enableval=$enable_sensors; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libsensors" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libsensors" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_SENSORS 1" >>confdefs.h if test "x$with_libsensors" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_SENSORS_TRUE= BUILD_PLUGIN_SENSORS_FALSE='#' else BUILD_PLUGIN_SENSORS_TRUE='#' BUILD_PLUGIN_SENSORS_FALSE= fi enable_sensors="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-serial was given. if test ${enable_serial+y} then : enableval=$enable_serial; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_serial" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_serial" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_SERIAL 1" >>confdefs.h if test "x$plugin_serial" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_SERIAL_TRUE= BUILD_PLUGIN_SERIAL_FALSE='#' else BUILD_PLUGIN_SERIAL_TRUE='#' BUILD_PLUGIN_SERIAL_FALSE= fi enable_serial="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-sigrok was given. if test ${enable_sigrok+y} then : enableval=$enable_sigrok; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libsigrok" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libsigrok" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_SIGROK 1" >>confdefs.h if test "x$with_libsigrok" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_SIGROK_TRUE= BUILD_PLUGIN_SIGROK_FALSE='#' else BUILD_PLUGIN_SIGROK_TRUE='#' BUILD_PLUGIN_SIGROK_FALSE= fi enable_sigrok="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-smart was given. if test ${enable_smart+y} then : enableval=$enable_smart; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libatasmart" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libatasmart" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_SMART 1" >>confdefs.h if test "x$with_libatasmart" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_SMART_TRUE= BUILD_PLUGIN_SMART_FALSE='#' else BUILD_PLUGIN_SMART_TRUE='#' BUILD_PLUGIN_SMART_FALSE= fi enable_smart="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-snmp was given. if test ${enable_snmp+y} then : enableval=$enable_snmp; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libnetsnmp" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libnetsnmp" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_SNMP 1" >>confdefs.h if test "x$with_libnetsnmp" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_SNMP_TRUE= BUILD_PLUGIN_SNMP_FALSE='#' else BUILD_PLUGIN_SNMP_TRUE='#' BUILD_PLUGIN_SNMP_FALSE= fi enable_snmp="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-statsd was given. if test ${enable_statsd+y} then : enableval=$enable_statsd; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_STATSD 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_STATSD_TRUE= BUILD_PLUGIN_STATSD_FALSE='#' else BUILD_PLUGIN_STATSD_TRUE='#' BUILD_PLUGIN_STATSD_FALSE= fi enable_statsd="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-swap was given. if test ${enable_swap+y} then : enableval=$enable_swap; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_swap" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_swap" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_SWAP 1" >>confdefs.h if test "x$plugin_swap" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_SWAP_TRUE= BUILD_PLUGIN_SWAP_FALSE='#' else BUILD_PLUGIN_SWAP_TRUE='#' BUILD_PLUGIN_SWAP_FALSE= fi enable_swap="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-syslog was given. if test ${enable_syslog+y} then : enableval=$enable_syslog; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$have_syslog" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$have_syslog" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_SYSLOG 1" >>confdefs.h if test "x$have_syslog" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_SYSLOG_TRUE= BUILD_PLUGIN_SYSLOG_FALSE='#' else BUILD_PLUGIN_SYSLOG_TRUE='#' BUILD_PLUGIN_SYSLOG_FALSE= fi enable_syslog="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-table was given. if test ${enable_table+y} then : enableval=$enable_table; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TABLE 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TABLE_TRUE= BUILD_PLUGIN_TABLE_FALSE='#' else BUILD_PLUGIN_TABLE_TRUE='#' BUILD_PLUGIN_TABLE_FALSE= fi enable_table="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-tail was given. if test ${enable_tail+y} then : enableval=$enable_tail; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TAIL 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TAIL_TRUE= BUILD_PLUGIN_TAIL_FALSE='#' else BUILD_PLUGIN_TAIL_TRUE='#' BUILD_PLUGIN_TAIL_FALSE= fi enable_tail="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-tail_csv was given. if test ${enable_tail_csv+y} then : enableval=$enable_tail_csv; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TAIL_CSV 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TAIL_CSV_TRUE= BUILD_PLUGIN_TAIL_CSV_FALSE='#' else BUILD_PLUGIN_TAIL_CSV_TRUE='#' BUILD_PLUGIN_TAIL_CSV_FALSE= fi enable_tail_csv="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-tape was given. if test ${enable_tape+y} then : enableval=$enable_tape; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_tape" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_tape" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TAPE 1" >>confdefs.h if test "x$plugin_tape" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TAPE_TRUE= BUILD_PLUGIN_TAPE_FALSE='#' else BUILD_PLUGIN_TAPE_TRUE='#' BUILD_PLUGIN_TAPE_FALSE= fi enable_tape="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-target_notification was given. if test ${enable_target_notification+y} then : enableval=$enable_target_notification; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TARGET_NOTIFICATION 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE= BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE='#' else BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE='#' BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE= fi enable_target_notification="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-target_replace was given. if test ${enable_target_replace+y} then : enableval=$enable_target_replace; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TARGET_REPLACE 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TARGET_REPLACE_TRUE= BUILD_PLUGIN_TARGET_REPLACE_FALSE='#' else BUILD_PLUGIN_TARGET_REPLACE_TRUE='#' BUILD_PLUGIN_TARGET_REPLACE_FALSE= fi enable_target_replace="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-target_scale was given. if test ${enable_target_scale+y} then : enableval=$enable_target_scale; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TARGET_SCALE 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TARGET_SCALE_TRUE= BUILD_PLUGIN_TARGET_SCALE_FALSE='#' else BUILD_PLUGIN_TARGET_SCALE_TRUE='#' BUILD_PLUGIN_TARGET_SCALE_FALSE= fi enable_target_scale="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-target_set was given. if test ${enable_target_set+y} then : enableval=$enable_target_set; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TARGET_SET 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TARGET_SET_TRUE= BUILD_PLUGIN_TARGET_SET_FALSE='#' else BUILD_PLUGIN_TARGET_SET_TRUE='#' BUILD_PLUGIN_TARGET_SET_FALSE= fi enable_target_set="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-target_v5upgrade was given. if test ${enable_target_v5upgrade+y} then : enableval=$enable_target_v5upgrade; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TARGET_V5UPGRADE 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE= BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE='#' else BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE='#' BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE= fi enable_target_v5upgrade="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-tcpconns was given. if test ${enable_tcpconns+y} then : enableval=$enable_tcpconns; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_tcpconns" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_tcpconns" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TCPCONNS 1" >>confdefs.h if test "x$plugin_tcpconns" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TCPCONNS_TRUE= BUILD_PLUGIN_TCPCONNS_FALSE='#' else BUILD_PLUGIN_TCPCONNS_TRUE='#' BUILD_PLUGIN_TCPCONNS_FALSE= fi enable_tcpconns="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-teamspeak2 was given. if test ${enable_teamspeak2+y} then : enableval=$enable_teamspeak2; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TEAMSPEAK2 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TEAMSPEAK2_TRUE= BUILD_PLUGIN_TEAMSPEAK2_FALSE='#' else BUILD_PLUGIN_TEAMSPEAK2_TRUE='#' BUILD_PLUGIN_TEAMSPEAK2_FALSE= fi enable_teamspeak2="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-ted was given. if test ${enable_ted+y} then : enableval=$enable_ted; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_ted" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_ted" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TED 1" >>confdefs.h if test "x$plugin_ted" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TED_TRUE= BUILD_PLUGIN_TED_FALSE='#' else BUILD_PLUGIN_TED_TRUE='#' BUILD_PLUGIN_TED_FALSE= fi enable_ted="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-thermal was given. if test ${enable_thermal+y} then : enableval=$enable_thermal; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_thermal" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_thermal" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_THERMAL 1" >>confdefs.h if test "x$plugin_thermal" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_THERMAL_TRUE= BUILD_PLUGIN_THERMAL_FALSE='#' else BUILD_PLUGIN_THERMAL_TRUE='#' BUILD_PLUGIN_THERMAL_FALSE= fi enable_thermal="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-threshold was given. if test ${enable_threshold+y} then : enableval=$enable_threshold; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_THRESHOLD 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_THRESHOLD_TRUE= BUILD_PLUGIN_THRESHOLD_FALSE='#' else BUILD_PLUGIN_THRESHOLD_TRUE='#' BUILD_PLUGIN_THRESHOLD_FALSE= fi enable_threshold="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-tokyotyrant was given. if test ${enable_tokyotyrant+y} then : enableval=$enable_tokyotyrant; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libtokyotyrant" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libtokyotyrant" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TOKYOTYRANT 1" >>confdefs.h if test "x$with_libtokyotyrant" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TOKYOTYRANT_TRUE= BUILD_PLUGIN_TOKYOTYRANT_FALSE='#' else BUILD_PLUGIN_TOKYOTYRANT_TRUE='#' BUILD_PLUGIN_TOKYOTYRANT_FALSE= fi enable_tokyotyrant="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-turbostat was given. if test ${enable_turbostat+y} then : enableval=$enable_turbostat; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_turbostat" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_turbostat" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_TURBOSTAT 1" >>confdefs.h if test "x$plugin_turbostat" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_TURBOSTAT_TRUE= BUILD_PLUGIN_TURBOSTAT_FALSE='#' else BUILD_PLUGIN_TURBOSTAT_TRUE='#' BUILD_PLUGIN_TURBOSTAT_FALSE= fi enable_turbostat="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-unixsock was given. if test ${enable_unixsock+y} then : enableval=$enable_unixsock; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_UNIXSOCK 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_UNIXSOCK_TRUE= BUILD_PLUGIN_UNIXSOCK_FALSE='#' else BUILD_PLUGIN_UNIXSOCK_TRUE='#' BUILD_PLUGIN_UNIXSOCK_FALSE= fi enable_unixsock="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-uptime was given. if test ${enable_uptime+y} then : enableval=$enable_uptime; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_uptime" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_uptime" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_UPTIME 1" >>confdefs.h if test "x$plugin_uptime" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_UPTIME_TRUE= BUILD_PLUGIN_UPTIME_FALSE='#' else BUILD_PLUGIN_UPTIME_TRUE='#' BUILD_PLUGIN_UPTIME_FALSE= fi enable_uptime="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-users was given. if test ${enable_users+y} then : enableval=$enable_users; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_users" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_users" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_USERS 1" >>confdefs.h if test "x$plugin_users" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_USERS_TRUE= BUILD_PLUGIN_USERS_FALSE='#' else BUILD_PLUGIN_USERS_TRUE='#' BUILD_PLUGIN_USERS_FALSE= fi enable_users="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-uuid was given. if test ${enable_uuid+y} then : enableval=$enable_uuid; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_UUID 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_UUID_TRUE= BUILD_PLUGIN_UUID_FALSE='#' else BUILD_PLUGIN_UUID_TRUE='#' BUILD_PLUGIN_UUID_FALSE= fi enable_uuid="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-varnish was given. if test ${enable_varnish+y} then : enableval=$enable_varnish; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libvarnish" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libvarnish" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_VARNISH 1" >>confdefs.h if test "x$with_libvarnish" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_VARNISH_TRUE= BUILD_PLUGIN_VARNISH_FALSE='#' else BUILD_PLUGIN_VARNISH_TRUE='#' BUILD_PLUGIN_VARNISH_FALSE= fi enable_varnish="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-virt was given. if test ${enable_virt+y} then : enableval=$enable_virt; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_virt" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_virt" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_VIRT 1" >>confdefs.h if test "x$plugin_virt" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_VIRT_TRUE= BUILD_PLUGIN_VIRT_FALSE='#' else BUILD_PLUGIN_VIRT_TRUE='#' BUILD_PLUGIN_VIRT_FALSE= fi enable_virt="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-vmem was given. if test ${enable_vmem+y} then : enableval=$enable_vmem; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_vmem" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_vmem" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_VMEM 1" >>confdefs.h if test "x$plugin_vmem" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_VMEM_TRUE= BUILD_PLUGIN_VMEM_FALSE='#' else BUILD_PLUGIN_VMEM_TRUE='#' BUILD_PLUGIN_VMEM_FALSE= fi enable_vmem="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-vserver was given. if test ${enable_vserver+y} then : enableval=$enable_vserver; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_vserver" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_vserver" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_VSERVER 1" >>confdefs.h if test "x$plugin_vserver" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_VSERVER_TRUE= BUILD_PLUGIN_VSERVER_FALSE='#' else BUILD_PLUGIN_VSERVER_TRUE='#' BUILD_PLUGIN_VSERVER_FALSE= fi enable_vserver="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-wireless was given. if test ${enable_wireless+y} then : enableval=$enable_wireless; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_wireless" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_wireless" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WIRELESS 1" >>confdefs.h if test "x$plugin_wireless" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WIRELESS_TRUE= BUILD_PLUGIN_WIRELESS_FALSE='#' else BUILD_PLUGIN_WIRELESS_TRUE='#' BUILD_PLUGIN_WIRELESS_FALSE= fi enable_wireless="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-write_graphite was given. if test ${enable_write_graphite+y} then : enableval=$enable_write_graphite; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WRITE_GRAPHITE 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WRITE_GRAPHITE_TRUE= BUILD_PLUGIN_WRITE_GRAPHITE_FALSE='#' else BUILD_PLUGIN_WRITE_GRAPHITE_TRUE='#' BUILD_PLUGIN_WRITE_GRAPHITE_FALSE= fi enable_write_graphite="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-write_http was given. if test ${enable_write_http+y} then : enableval=$enable_write_http; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libcurl" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WRITE_HTTP 1" >>confdefs.h if test "x$with_libcurl" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WRITE_HTTP_TRUE= BUILD_PLUGIN_WRITE_HTTP_FALSE='#' else BUILD_PLUGIN_WRITE_HTTP_TRUE='#' BUILD_PLUGIN_WRITE_HTTP_FALSE= fi enable_write_http="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-write_kafka was given. if test ${enable_write_kafka+y} then : enableval=$enable_write_kafka; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_librdkafka" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_librdkafka" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WRITE_KAFKA 1" >>confdefs.h if test "x$with_librdkafka" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WRITE_KAFKA_TRUE= BUILD_PLUGIN_WRITE_KAFKA_FALSE='#' else BUILD_PLUGIN_WRITE_KAFKA_TRUE='#' BUILD_PLUGIN_WRITE_KAFKA_FALSE= fi enable_write_kafka="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-write_log was given. if test ${enable_write_log+y} then : enableval=$enable_write_log; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WRITE_LOG 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WRITE_LOG_TRUE= BUILD_PLUGIN_WRITE_LOG_FALSE='#' else BUILD_PLUGIN_WRITE_LOG_TRUE='#' BUILD_PLUGIN_WRITE_LOG_FALSE= fi enable_write_log="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-write_mongodb was given. if test ${enable_write_mongodb+y} then : enableval=$enable_write_mongodb; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libmongoc" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libmongoc" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WRITE_MONGODB 1" >>confdefs.h if test "x$with_libmongoc" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WRITE_MONGODB_TRUE= BUILD_PLUGIN_WRITE_MONGODB_FALSE='#' else BUILD_PLUGIN_WRITE_MONGODB_TRUE='#' BUILD_PLUGIN_WRITE_MONGODB_FALSE= fi enable_write_mongodb="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-write_redis was given. if test ${enable_write_redis+y} then : enableval=$enable_write_redis; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libhiredis" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libhiredis" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WRITE_REDIS 1" >>confdefs.h if test "x$with_libhiredis" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WRITE_REDIS_TRUE= BUILD_PLUGIN_WRITE_REDIS_FALSE='#' else BUILD_PLUGIN_WRITE_REDIS_TRUE='#' BUILD_PLUGIN_WRITE_REDIS_FALSE= fi enable_write_redis="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-write_riemann was given. if test ${enable_write_riemann+y} then : enableval=$enable_write_riemann; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$have_protoc_c" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$have_protoc_c" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WRITE_RIEMANN 1" >>confdefs.h if test "x$have_protoc_c" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WRITE_RIEMANN_TRUE= BUILD_PLUGIN_WRITE_RIEMANN_FALSE='#' else BUILD_PLUGIN_WRITE_RIEMANN_TRUE='#' BUILD_PLUGIN_WRITE_RIEMANN_FALSE= fi enable_write_riemann="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-write_sensu was given. if test ${enable_write_sensu+y} then : enableval=$enable_write_sensu; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WRITE_SENSU 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WRITE_SENSU_TRUE= BUILD_PLUGIN_WRITE_SENSU_FALSE='#' else BUILD_PLUGIN_WRITE_SENSU_TRUE='#' BUILD_PLUGIN_WRITE_SENSU_FALSE= fi enable_write_sensu="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-write_tsdb was given. if test ${enable_write_tsdb+y} then : enableval=$enable_write_tsdb; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_WRITE_TSDB 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_WRITE_TSDB_TRUE= BUILD_PLUGIN_WRITE_TSDB_FALSE='#' else BUILD_PLUGIN_WRITE_TSDB_TRUE='#' BUILD_PLUGIN_WRITE_TSDB_FALSE= fi enable_write_tsdb="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-xmms was given. if test ${enable_xmms+y} then : enableval=$enable_xmms; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$with_libxmms" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$with_libxmms" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_XMMS 1" >>confdefs.h if test "x$with_libxmms" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_XMMS_TRUE= BUILD_PLUGIN_XMMS_FALSE='#' else BUILD_PLUGIN_XMMS_TRUE='#' BUILD_PLUGIN_XMMS_FALSE= fi enable_xmms="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-zfs_arc was given. if test ${enable_zfs_arc+y} then : enableval=$enable_zfs_arc; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "x$plugin_zfs_arc" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "x$plugin_zfs_arc" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_ZFS_ARC 1" >>confdefs.h if test "x$plugin_zfs_arc" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_ZFS_ARC_TRUE= BUILD_PLUGIN_ZFS_ARC_FALSE='#' else BUILD_PLUGIN_ZFS_ARC_TRUE='#' BUILD_PLUGIN_ZFS_ARC_FALSE= fi enable_zfs_arc="$enable_plugin" enable_plugin="no" force="no" # Check whether --enable-zookeeper was given. if test ${enable_zookeeper+y} then : enableval=$enable_zookeeper; if test "x$enableval" = "xyes" then enable_plugin="yes" else if test "x$enableval" = "xforce" then enable_plugin="yes" force="yes" else enable_plugin="no (disabled on command line)" fi; fi else case e in #( e) if test "x$enable_all_plugins" = "xauto" then if test "xyes" = "xyes" then enable_plugin="yes" else enable_plugin="no" fi else enable_plugin="$enable_all_plugins" fi ;; esac fi if test "x$enable_plugin" = "xyes" then if test "xyes" = "xyes" || test "x$force" = "xyes" then printf "%s\n" "#define HAVE_PLUGIN_ZOOKEEPER 1" >>confdefs.h if test "xyes" != "xyes" then dependency_warning="yes" fi else # User passed "yes" but dependency checking yielded "no" => Dependency problem. dependency_error="yes" enable_plugin="no (dependency error)" fi fi if test "x$enable_plugin" = "xyes"; then BUILD_PLUGIN_ZOOKEEPER_TRUE= BUILD_PLUGIN_ZOOKEEPER_FALSE='#' else BUILD_PLUGIN_ZOOKEEPER_TRUE='#' BUILD_PLUGIN_ZOOKEEPER_FALSE= fi enable_zookeeper="$enable_plugin" # Load either syslog or logfile LOAD_PLUGIN_SYSLOG="" LOAD_PLUGIN_LOGFILE="" LOAD_PLUGIN_LOG_LOGSTASH="" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which default log plugin to load" >&5 printf %s "checking which default log plugin to load... " >&6; } default_log_plugin="none" if test "x$enable_syslog" = "xyes" then default_log_plugin="syslog" else LOAD_PLUGIN_SYSLOG="##" fi if test "x$enable_logfile" = "xyes" then if test "x$default_log_plugin" = "xnone" then default_log_plugin="logfile" else LOAD_PLUGIN_LOGFILE="#" fi else LOAD_PLUGIN_LOGFILE="##" fi if test "x$enable_log_logstash" = "xyes" then LOAD_PLUGIN_LOG_LOGSTASH="#" else LOAD_PLUGIN_LOG_LOGSTASH="##" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_log_plugin" >&5 printf "%s\n" "$default_log_plugin" >&6; } DEFAULT_LOG_LEVEL="info" if test "x$enable_debug" = "xyes" then DEFAULT_LOG_LEVEL="debug" fi # Load only one of rrdtool, network, csv in the default config. LOAD_PLUGIN_RRDTOOL="" LOAD_PLUGIN_NETWORK="" LOAD_PLUGIN_CSV="" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which default write plugin to load" >&5 printf %s "checking which default write plugin to load... " >&6; } default_write_plugin="none" if test "x$enable_rrdtool" = "xyes" then default_write_plugin="rrdtool" else LOAD_PLUGIN_RRDTOOL="##" fi if test "x$enable_network" = "xyes" then if test "x$default_write_plugin" = "xnone" then default_write_plugin="network" else LOAD_PLUGIN_NETWORK="#" fi else LOAD_PLUGIN_NETWORK="##" fi if test "x$enable_csv" = "xyes" then if test "x$default_write_plugin" = "xnone" then default_write_plugin="csv" else LOAD_PLUGIN_CSV="#" fi else LOAD_PLUGIN_CSV="##" fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_write_plugin" >&5 printf "%s\n" "$default_write_plugin" >&6; } if test "x$ac_system" = "xLinux" \ && test "x$have_linux_ip_vs_h$have_net_ip_vs_h$have_ip_vs_h" = "xnonono" then enable_ipvs="$enable_ipvs (ip_vs.h not found)" fi if test "x$ip_vs_h_needs_kernel_cflags" = "xyes" then enable_ipvs="$enable_ipvs (needs $KERNEL_CFLAGS)" fi PERL_BINDINGS_OPTIONS="PREFIX=${prefix}" # Check whether --with-perl-bindings was given. if test ${with_perl_bindings+y} then : withval=$with_perl_bindings; if test "x$withval" != "xno" && test "x$withval" != "xyes" then PERL_BINDINGS_OPTIONS="$withval" with_perl_bindings="yes" else with_perl_bindings="$withval" fi else case e in #( e) if test -n "$perl_interpreter" then with_perl_bindings="yes" else with_perl_bindings="no (no perl interpreter found)" fi ;; esac fi if test "x$with_perl_bindings" = "xyes" then PERL_BINDINGS="perl" else PERL_BINDINGS="" fi LCC_VERSION_MAJOR=`echo $PACKAGE_VERSION | cut -d'.' -f1` LCC_VERSION_MINOR=`echo $PACKAGE_VERSION | cut -d'.' -f2` LCC_VERSION_PATCH=`echo $PACKAGE_VERSION | cut -d'.' -f3` LCC_VERSION_EXTRA=`echo $PACKAGE_VERSION | cut -d'.' -f4-` LCC_VERSION_STRING="$LCC_VERSION_MAJOR.$LCC_VERSION_MINOR.$LCC_VERSION_PATCH" ac_config_files="$ac_config_files src/libcollectdclient/collectd/lcc_features.h" ac_config_files="$ac_config_files Makefile src/Makefile src/daemon/Makefile src/collectd.conf src/libcollectdclient/Makefile src/libcollectdclient/libcollectdclient.pc src/liboconfig/Makefile bindings/Makefile bindings/java/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # 'ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi LT_CONFIG_H=src/config.h _ltdl_libobjs= _ltdl_ltlibobjs= if test -n "$_LT_LIBOBJS"; then # Remove the extension. _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" done fi ltdl_LIBOBJS=$_ltdl_libobjs ltdl_LTLIBOBJS=$_ltdl_ltlibobjs { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 printf %s "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 printf "%s\n" "done" >&6; } if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi # Check whether --enable-year2038 was given. if test ${enable_year2038+y} then : enableval=$enable_year2038; fi if test -z "${COMPILER_IS_GCC_TRUE}" && test -z "${COMPILER_IS_GCC_FALSE}"; then as_fn_error $? "conditional \"COMPILER_IS_GCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_PROTOC_C_TRUE}" && test -z "${HAVE_PROTOC_C_FALSE}"; then as_fn_error $? "conditional \"HAVE_PROTOC_C\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then as_fn_error $? "conditional \"BUILD_LINUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_SOLARIS_TRUE}" && test -z "${BUILD_SOLARIS_FALSE}"; then as_fn_error $? "conditional \"BUILD_SOLARIS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_DARWIN_TRUE}" && test -z "${BUILD_DARWIN_FALSE}"; then as_fn_error $? "conditional \"BUILD_DARWIN\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_OPENBSD_TRUE}" && test -z "${BUILD_OPENBSD_FALSE}"; then as_fn_error $? "conditional \"BUILD_OPENBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_AIX_TRUE}" && test -z "${BUILD_AIX_FALSE}"; then as_fn_error $? "conditional \"BUILD_AIX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then as_fn_error $? "conditional \"BUILD_FREEBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_FEATURE_STANDARDS_TRUE}" && test -z "${BUILD_FEATURE_STANDARDS_FALSE}"; then as_fn_error $? "conditional \"BUILD_FEATURE_STANDARDS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${IP_VS_H_NEEDS_KERNEL_CFLAGS_TRUE}" && test -z "${IP_VS_H_NEEDS_KERNEL_CFLAGS_FALSE}"; then as_fn_error $? "conditional \"IP_VS_H_NEEDS_KERNEL_CFLAGS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBSOCKET_TRUE}" && test -z "${BUILD_WITH_LIBSOCKET_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBSOCKET\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBRT_TRUE}" && test -z "${BUILD_WITH_LIBRT_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBRT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBPOSIX4_TRUE}" && test -z "${BUILD_WITH_LIBPOSIX4_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBPOSIX4\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBRESOLV_TRUE}" && test -z "${BUILD_WITH_LIBRESOLV_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBRESOLV\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_PERFSTAT_TRUE}" && test -z "${BUILD_WITH_PERFSTAT_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_PERFSTAT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBKSTAT_TRUE}" && test -z "${BUILD_WITH_LIBKSTAT_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBKSTAT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBDEVINFO_TRUE}" && test -z "${BUILD_WITH_LIBDEVINFO_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBDEVINFO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBIOKIT_TRUE}" && test -z "${BUILD_WITH_LIBIOKIT_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBIOKIT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBKVM_GETPROCS_TRUE}" && test -z "${BUILD_WITH_LIBKVM_GETPROCS_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_GETPROCS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE}" && test -z "${BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_GETSWAPINFO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBKVM_NLIST_TRUE}" && test -z "${BUILD_WITH_LIBKVM_NLIST_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_NLIST\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBKVM_OPENFILES_TRUE}" && test -z "${BUILD_WITH_LIBKVM_OPENFILES_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_OPENFILES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBAQUAERO5_TRUE}" && test -z "${BUILD_WITH_LIBAQUAERO5_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBAQUAERO5\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBHIREDIS_TRUE}" && test -z "${BUILD_WITH_LIBHIREDIS_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBHIREDIS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBCURL_TRUE}" && test -z "${BUILD_WITH_LIBCURL_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBCURL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBDBI_TRUE}" && test -z "${BUILD_WITH_LIBDBI_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBDBI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBESMTP_TRUE}" && test -z "${BUILD_WITH_LIBESMTP_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBESMTP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBGANGLIA_TRUE}" && test -z "${BUILD_WITH_LIBGANGLIA_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBGANGLIA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBGCRYPT_TRUE}" && test -z "${BUILD_WITH_LIBGCRYPT_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBGCRYPT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBIPTC_TRUE}" && test -z "${BUILD_WITH_LIBIPTC_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBIPTC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_JAVA_TRUE}" && test -z "${BUILD_WITH_JAVA_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_JAVA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBLDAP_TRUE}" && test -z "${BUILD_WITH_LIBLDAP_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBLDAP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBLVM2APP_TRUE}" && test -z "${BUILD_WITH_LIBLVM2APP_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBLVM2APP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBMEMCACHED_TRUE}" && test -z "${BUILD_WITH_LIBMEMCACHED_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBMEMCACHED\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBMONGOC_TRUE}" && test -z "${BUILD_WITH_LIBMONGOC_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBMONGOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBMYSQL_TRUE}" && test -z "${BUILD_WITH_LIBMYSQL_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBMYSQL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBMNL_TRUE}" && test -z "${BUILD_WITH_LIBMNL_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBMNL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBNETAPP_TRUE}" && test -z "${BUILD_WITH_LIBNETAPP_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBNETAPP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBNETSNMP_TRUE}" && test -z "${BUILD_WITH_LIBNETSNMP_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBNETSNMP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_OWN_LIBOCONFIG_TRUE}" && test -z "${BUILD_WITH_OWN_LIBOCONFIG_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_OWN_LIBOCONFIG\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBOPING_TRUE}" && test -z "${BUILD_WITH_LIBOPING_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBOPING\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBPCAP_TRUE}" && test -z "${BUILD_WITH_LIBPCAP_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBPCAP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBPERL_TRUE}" && test -z "${BUILD_WITH_LIBPERL_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBPERL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_BROKEN_PERL_LOAD_MODULE_TRUE}" && test -z "${HAVE_BROKEN_PERL_LOAD_MODULE_FALSE}"; then as_fn_error $? "conditional \"HAVE_BROKEN_PERL_LOAD_MODULE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBPQ_TRUE}" && test -z "${BUILD_WITH_LIBPQ_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBPQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBPTHREAD_TRUE}" && test -z "${BUILD_WITH_LIBPTHREAD_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBPTHREAD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBRABBITMQ_TRUE}" && test -z "${BUILD_WITH_LIBRABBITMQ_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBRABBITMQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBRDKAFKA_TRUE}" && test -z "${BUILD_WITH_LIBRDKAFKA_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBRDKAFKA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBROUTEROS_TRUE}" && test -z "${BUILD_WITH_LIBROUTEROS_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBROUTEROS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LM_SENSORS_TRUE}" && test -z "${BUILD_WITH_LM_SENSORS_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LM_SENSORS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBSIGROK_TRUE}" && test -z "${BUILD_WITH_LIBSIGROK_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBSIGROK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBSTATGRAB_TRUE}" && test -z "${BUILD_WITH_LIBSTATGRAB_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBSTATGRAB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBTOKYOTYRANT_TRUE}" && test -z "${BUILD_WITH_LIBTOKYOTYRANT_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBTOKYOTYRANT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBUDEV_TRUE}" && test -z "${BUILD_WITH_LIBUDEV_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBUDEV\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBXMMS_TRUE}" && test -z "${BUILD_WITH_LIBXMMS_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBXMMS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBYAJL_TRUE}" && test -z "${BUILD_WITH_LIBYAJL_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBYAJL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_WITH_LIBATASMART_TRUE}" && test -z "${BUILD_WITH_LIBATASMART_FALSE}"; then as_fn_error $? "conditional \"BUILD_WITH_LIBATASMART\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_FEATURE_DEBUG_TRUE}" && test -z "${BUILD_FEATURE_DEBUG_FALSE}"; then as_fn_error $? "conditional \"BUILD_FEATURE_DEBUG\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_FEATURE_DAEMON_TRUE}" && test -z "${BUILD_FEATURE_DAEMON_FALSE}"; then as_fn_error $? "conditional \"BUILD_FEATURE_DAEMON\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_FEATURE_GETIFADDRS_TRUE}" && test -z "${BUILD_FEATURE_GETIFADDRS_FALSE}"; then as_fn_error $? "conditional \"BUILD_FEATURE_GETIFADDRS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_AGGREGATION_TRUE}" && test -z "${BUILD_PLUGIN_AGGREGATION_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_AGGREGATION\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_AMQP_TRUE}" && test -z "${BUILD_PLUGIN_AMQP_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_AMQP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_APACHE_TRUE}" && test -z "${BUILD_PLUGIN_APACHE_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_APACHE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_APCUPS_TRUE}" && test -z "${BUILD_PLUGIN_APCUPS_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_APCUPS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_APPLE_SENSORS_TRUE}" && test -z "${BUILD_PLUGIN_APPLE_SENSORS_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_APPLE_SENSORS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_AQUAERO_TRUE}" && test -z "${BUILD_PLUGIN_AQUAERO_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_AQUAERO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_ASCENT_TRUE}" && test -z "${BUILD_PLUGIN_ASCENT_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_ASCENT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_BAROMETER_TRUE}" && test -z "${BUILD_PLUGIN_BAROMETER_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_BAROMETER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_BATTERY_TRUE}" && test -z "${BUILD_PLUGIN_BATTERY_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_BATTERY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_BIND_TRUE}" && test -z "${BUILD_PLUGIN_BIND_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_BIND\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CEPH_TRUE}" && test -z "${BUILD_PLUGIN_CEPH_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CEPH\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CONNTRACK_TRUE}" && test -z "${BUILD_PLUGIN_CONNTRACK_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CONNTRACK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CONTEXTSWITCH_TRUE}" && test -z "${BUILD_PLUGIN_CONTEXTSWITCH_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CONTEXTSWITCH\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CPUFREQ_TRUE}" && test -z "${BUILD_PLUGIN_CPUFREQ_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CPUFREQ\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CPU_TRUE}" && test -z "${BUILD_PLUGIN_CPU_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CPU\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CSV_TRUE}" && test -z "${BUILD_PLUGIN_CSV_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CSV\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CURL_TRUE}" && test -z "${BUILD_PLUGIN_CURL_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CURL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CURL_JSON_TRUE}" && test -z "${BUILD_PLUGIN_CURL_JSON_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CURL_JSON\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CURL_XML_TRUE}" && test -z "${BUILD_PLUGIN_CURL_XML_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CURL_XML\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_CGROUPS_TRUE}" && test -z "${BUILD_PLUGIN_CGROUPS_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_CGROUPS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_DBI_TRUE}" && test -z "${BUILD_PLUGIN_DBI_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_DBI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_DF_TRUE}" && test -z "${BUILD_PLUGIN_DF_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_DF\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_DISK_TRUE}" && test -z "${BUILD_PLUGIN_DISK_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_DISK\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_DRBD_TRUE}" && test -z "${BUILD_PLUGIN_DRBD_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_DRBD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_DNS_TRUE}" && test -z "${BUILD_PLUGIN_DNS_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_DNS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_EMAIL_TRUE}" && test -z "${BUILD_PLUGIN_EMAIL_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_EMAIL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_ENTROPY_TRUE}" && test -z "${BUILD_PLUGIN_ENTROPY_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_ENTROPY\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_ETHSTAT_TRUE}" && test -z "${BUILD_PLUGIN_ETHSTAT_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_ETHSTAT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_EXEC_TRUE}" && test -z "${BUILD_PLUGIN_EXEC_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_EXEC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_FHCOUNT_TRUE}" && test -z "${BUILD_PLUGIN_FHCOUNT_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_FHCOUNT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_FILECOUNT_TRUE}" && test -z "${BUILD_PLUGIN_FILECOUNT_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_FILECOUNT\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_FSCACHE_TRUE}" && test -z "${BUILD_PLUGIN_FSCACHE_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_FSCACHE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_PLUGIN_GMOND_TRUE}" && test -z "${BUILD_PLUGIN_GMOND_FALSE}"; then as_fn_error $? "conditional \"BUILD_PLUGIN_GMOND\" was never defined. Usually this means the macro