summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-27 00:46:57 +0000
committerStef Walter <stef@memberwebs.com>2006-01-27 00:46:57 +0000
commita188ff414ac5d33ce1daa9e71a54fe64c052a0ff (patch)
tree88f16dafa8fe7cfcfb87eab8d59c483826f5101a
parent94dc650256935aa0c5cfff7675e535c54bb8c9b7 (diff)
Get a copy of configure.in for rrdbot
-rw-r--r--configure.in45
1 files changed, 45 insertions, 0 deletions
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..53d234e
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,45 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(rrdui, 0.2, nielsen@memberwebs.com)
+AM_INIT_AUTOMAKE(rrdui, 0.2)
+
+LDFLAGS="$LDFLAGS -L/usr/local/lib"
+CFLAGS="$CFLAGS -I/usr/local/include"
+
+AC_CONFIG_SRCDIR([src/rrdbotd.c])
+AM_CONFIG_HEADER([config.h])
+
+# Debug mode
+AC_ARG_ENABLE(debug,
+ AC_HELP_STRING([--enable-debug],
+ [Compile binaries in debug mode]))
+
+if test "$enable_debug" = "yes"; then
+ CFLAGS="$CFLAGS -g -O0"
+ AC_DEFINE_UNQUOTED(_DEBUG, 1, [In debug mode])
+ echo "enabling debug compile mode"
+fi
+
+dnl Check for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_RANLIB
+
+dnl Checks for libraries
+AC_CHECK_LIB(rrd, rrd_update, ,
+ [echo "ERROR: librrd not found."; exit 1])
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_C_INLINE
+
+dnl Check for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([rrd.h], , [echo "ERROR: rrd headers not found"])
+dnl TODO: AC_CHECK_HEADERS
+
+AC_MSG_RESULT()
+
+AC_CONFIG_FILES([Makefile
+ src/Makefile
+ src/bsnmp/Makefile])
+AC_OUTPUT