summaryrefslogtreecommitdiff
path: root/configure.in
blob: dcc974aed93df9030f3fd879d3d70c2813e4b7e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
AC_INIT([src/sms_main.c])
AM_INIT_AUTOMAKE([sms-utils], [1.0.0])
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/modem_at0"], [set the default device])

AC_OUTPUT([Makefile src/Makefile])