Annotation of mqtt/configure.in, revision 1.3.2.1
1.2 misho 1: #
2: # $Author: misho $
1.3.2.1 ! misho 3: # $Id: configure.in,v 1.3 2013/01/18 09:43:27 misho Exp $
1.2 misho 4: #
1.3.2.1 ! misho 5: AC_INIT(mqtt, 2.0, misho@elwix.org)
1.2 misho 6: AC_CONFIG_HEADERS(inc/config.h)
7: AC_CONFIG_SRCDIR(src/mqttd.c)
8:
9: # Checks for programs.
10: AC_PROG_CC
11: AC_PROG_RANLIB
12: AC_PROG_INSTALL
13:
14: AC_CANONICAL_HOST
15: AC_CANONICAL_TARGET
16:
17: AC_CHECK_TOOL(MKDEP, mkdep, no)
18: AC_SUBST(MKDEP)
19:
1.3 misho 20: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
21: LDFLAGS="${LDFLAGS}"
1.2 misho 22:
23:
24: # Checks for libraries.
25: AC_CHECK_LIB([util], openpty)
26: AC_CHECK_LIB([crypto], BF_set_key)
27: AC_CHECK_LIB([pthread], pthread_create)
28: AC_CHECK_LIB([sqlite3], sqlite3_reset)
1.3.2.1 ! misho 29: AC_CHECK_LIB([elwix], ait_allocVar)
1.2 misho 30: AC_CHECK_LIB([aitcfg], cfgLoadConfig)
31: AC_CHECK_LIB([aitmqtt], mqtt_msgAlloc)
32: AC_CHECK_LIB([aitsched], schedRun)
33:
34: # Checks for header files.
35: AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h syslog.h unistd.h])
36:
37: # Checks for typedefs, structures, and compiler characteristics.
38: AC_C_INLINE
39:
40: # Checks for library functions.
41: AC_FUNC_FORK
42: AC_FUNC_MALLOC
43: AC_FUNC_MMAP
44: AC_FUNC_REALLOC
45: AC_CHECK_FUNCS([dup2 gettimeofday memmove memset mkdir munmap regcomp strchr strdup strerror strtol])
46:
47: DEBUG=no
48: AC_MSG_CHECKING(Debug Build)
49: AC_ARG_ENABLE(debug,
50: [ --enable-debug Build library with debug information and additional messages],
51: [ DEBUG=$enableval
52: case "$enableval" in
53: yes)
54: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
55: CFLAGS="-g ${CFLAGS}"
56: ;;
57: *)
58: AC_DEFINE(NDEBUG,, [Turn off debug asserts])
59: ;;
60: esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
61: AC_MSG_RESULT($DEBUG)
62:
1.3 misho 63: SQLITE3DIR="/usr/local"
64: AC_MSG_CHECKING(SQLite3 install directory)
65: AC_ARG_WITH(sqlite3dir,
66: [ --with-sqlite3dir=<dir> Custom SQLite3 install directory ],
67: [ SQLITE3DIR="$withval" ], )
68: AC_MSG_RESULT($SQLITE3DIR)
69: AC_SUBST(SQLITE3DIR)
70:
1.2 misho 71: AC_CONFIG_FILES([Makefile
72: bin/Makefile
73: inc/Makefile
74: lib/Makefile
75: src/Makefile])
76: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>