summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJames Maki <jmaki@multitech.com>2010-04-23 11:58:20 -0500
committerJames Maki <jmaki@multitech.com>2010-04-23 11:58:20 -0500
commit14fb44b17123b27e562379f51b75ee889982688d (patch)
tree3c2344f5c42396ab839638ee12f7c2f66a2656cb /configure.in
downloadsms-utils-14fb44b17123b27e562379f51b75ee889982688d.tar.gz
sms-utils-14fb44b17123b27e562379f51b75ee889982688d.tar.bz2
sms-utils-14fb44b17123b27e562379f51b75ee889982688d.zip
initial commit
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..430967d
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,29 @@
+AC_INIT([src/sms_main.c])
+AM_INIT_AUTOMAKE([sms-utils], [0.0.3])
+AM_CONFIG_HEADER([config.h])
+
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+
+AC_HEADER_STDC
+
+AC_CHECK_HEADERS([ \
+stdio.h stdlib.h unistd.h getopt.h errno.h time.h termios.h \
+ctype.h sys/types.h sys/stat.h fcntl.h stdarg.h string.h printf.h \
+stdint.h sys/ioctl.h linux/limits.h \
+], [],AC_MSG_ERROR([
+required header missing]))
+
+AC_CHECK_FUNCS([register_printf_specifier], [], [])
+
+AC_CHECK_LIB([yaml], [yaml_parser_initialize], [], [], [])
+AC_CHECK_LIB([ssl], [SSL_connect], [], [], [])
+AC_CHECK_LIB([esmtp], [smtp_create_session], [], [], [-lssl])
+
+AC_DEFINE([DEBUG], 0, [set to 1 to enable debug])
+AC_DEFINE([CONFIG_USE_SYSLOG], 0, [set to 1 to use syslog for logging])
+AC_DEFINE([DEFAULT_DEVICE], ["/dev/ttyS1"], [set the default device])
+
+AC_OUTPUT([Makefile src/Makefile])
+