projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/types.db: Remove unused type "pinba_view".
[collectd.git]
/
configure.in
diff --git
a/configure.in
b/configure.in
index
84cccba
..
75ac706
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-118,7
+118,7
@@
AC_HEADER_SYS_WAIT
AC_HEADER_DIRENT
AC_HEADER_STDBOOL
AC_HEADER_DIRENT
AC_HEADER_STDBOOL
-AC_CHECK_HEADERS(stdio.h
stdint.h
errno.h math.h stdarg.h syslog.h fcntl.h signal.h assert.h sys/types.h sys/socket.h sys/select.h poll.h netdb.h arpa/inet.h sys/resource.h sys/param.h kstat.h regex.h sys/ioctl.h endian.h sys/isa_defs.h)
+AC_CHECK_HEADERS(stdio.h errno.h math.h stdarg.h syslog.h fcntl.h signal.h assert.h sys/types.h sys/socket.h sys/select.h poll.h netdb.h arpa/inet.h sys/resource.h sys/param.h kstat.h regex.h sys/ioctl.h endian.h sys/isa_defs.h)
# For ping library
AC_CHECK_HEADERS(netinet/in_systm.h, [], [],
# For ping library
AC_CHECK_HEADERS(netinet/in_systm.h, [], [],
@@
-480,10
+480,17
@@
AC_HEADER_TIME
# Checks for library functions.
#
AC_PROG_GCC_TRADITIONAL
# Checks for library functions.
#
AC_PROG_GCC_TRADITIONAL
-AC_CHECK_FUNCS(gettimeofday select strdup strtol getaddrinfo getnameinfo strchr memcpy strstr strcmp strncmp strncpy strlen strncasecmp strcasecmp openlog closelog sysconf if_indextoname)
+AC_CHECK_FUNCS(gettimeofday select strdup strtol getaddrinfo getnameinfo strchr memcpy strstr strcmp strncmp strncpy strlen strncasecmp strcasecmp openlog closelog sysconf
setenv
if_indextoname)
AC_FUNC_STRERROR_R
AC_FUNC_STRERROR_R
+SAVE_CFLAGS="$CFLAGS"
+# Emulate behavior of src/Makefile.am
+if test "x$GCC" = "xyes"
+then
+ CFLAGS="$CFLAGS -Wall -Werror"
+fi
+
AC_CACHE_CHECK([for strtok_r],
[c_cv_have_strtok_r_default],
AC_LINK_IFELSE(
AC_CACHE_CHECK([for strtok_r],
[c_cv_have_strtok_r_default],
AC_LINK_IFELSE(
@@
-514,7
+521,6
@@
AC_CACHE_CHECK([for strtok_r],
if test "x$c_cv_have_strtok_r_default" = "xno"
then
if test "x$c_cv_have_strtok_r_default" = "xno"
then
- SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -D_REENTRANT=1"
AC_CACHE_CHECK([if strtok_r needs _REENTRANT],
CFLAGS="$CFLAGS -D_REENTRANT=1"
AC_CACHE_CHECK([if strtok_r needs _REENTRANT],
@@
-546,6
+552,12
@@
then
)
fi
)
fi
+CFLAGS="$SAVE_CFLAGS"
+if test "x$c_cv_have_strtok_r_reentrant" = "xyes"
+then
+ CFLAGS="$CFLAGS -D_REENTRANT=1"
+fi
+
AC_CHECK_FUNCS(getpwnam_r getgrnam_r setgroups regcomp regerror regexec regfree)
socket_needs_socket="no"
AC_CHECK_FUNCS(getpwnam_r getgrnam_r setgroups regcomp regerror regexec regfree)
socket_needs_socket="no"
@@
-718,6
+730,9
@@
if test "x$fp_layout_type" = "xunknown"; then
#if HAVE_STDINT_H
# include <stdint.h>
#endif
#if HAVE_STDINT_H
# include <stdint.h>
#endif
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
#if HAVE_STDBOOL_H
# include <stdbool.h>
#endif
#if HAVE_STDBOOL_H
# include <stdbool.h>
#endif
@@
-762,6
+777,9
@@
if test "x$fp_layout_type" = "xunknown"; then
#if HAVE_STDINT_H
# include <stdint.h>
#endif
#if HAVE_STDINT_H
# include <stdint.h>
#endif
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
#if HAVE_STDBOOL_H
# include <stdbool.h>
#endif
#if HAVE_STDBOOL_H
# include <stdbool.h>
#endif
@@
-814,6
+832,9
@@
if test "x$fp_layout_type" = "xunknown"; then
#if HAVE_STDINT_H
# include <stdint.h>
#endif
#if HAVE_STDINT_H
# include <stdint.h>
#endif
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
#if HAVE_STDBOOL_H
# include <stdbool.h>
#endif
#if HAVE_STDBOOL_H
# include <stdbool.h>
#endif
@@
-946,12
+967,12
@@
fi
AC_MSG_CHECKING([if have htonll defined])
have_htonll="no"
AC_MSG_CHECKING([if have htonll defined])
have_htonll="no"
- AC_
RUN
_IFELSE([
+ AC_
LINK
_IFELSE([
AC_LANG_PROGRAM([
#include <sys/types.h>
#include <netinet/in.h>
AC_LANG_PROGRAM([
#include <sys/types.h>
#include <netinet/in.h>
-#if
def
HAVE_INTTYPES_H
-#
include <inttypes.h>
+#if HAVE_INTTYPES_H
+#
include <inttypes.h>
#endif
], [
return htonll(0);
#endif
], [
return htonll(0);
@@
-4009,7
+4030,7
@@
then
plugin_vserver="yes"
plugin_wireless="yes"
plugin_vserver="yes"
plugin_wireless="yes"
- if test "x$have_net_ip_vs_h" = "xyes"
-o
"x$have_ip_vs_h" = "xyes"
+ if test "x$have_net_ip_vs_h" = "xyes"
|| test
"x$have_ip_vs_h" = "xyes"
then
plugin_ipvs="yes"
fi
then
plugin_ipvs="yes"
fi
@@
-4479,7
+4500,7
@@
then
with_librrd="yes (warning: librrd is not thread-safe)"
fi
with_librrd="yes (warning: librrd is not thread-safe)"
fi
-if test "x$with_libiptc" = "xyes"
-a
"x$with_own_libiptc" = "xyes"
+if test "x$with_libiptc" = "xyes"
&& test
"x$with_own_libiptc" = "xyes"
then
with_libiptc="yes (shipped version)"
fi
then
with_libiptc="yes (shipped version)"
fi