Annotation of libaitmqtt/configure.in, revision 1.8.2.4
1.1 misho 1: #
2: # $Author: misho $
1.8.2.4 ! misho 3: # $Id: configure.in,v 1.8.2.3 2016/09/14 15:52:36 misho Exp $
1.1 misho 4: #
1.8.2.1 misho 5: AC_INIT(libaitmqtt, 1.8, misho@elwix.org)
1.1 misho 6: AC_CONFIG_SRCDIR([src/aitmqtt.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
1.7 misho 9: ac_cv_func_malloc_0_nonnull="yes"
10: ac_cv_func_realloc_0_nonnull="yes"
11:
1.1 misho 12: # Checks for programs.
13: AC_PROG_CC
14: AC_PROG_INSTALL
1.8.2.2 misho 15: AC_PROG_RANLIB
1.1 misho 16:
17: AC_CANONICAL_HOST
18: AC_CANONICAL_TARGET
19:
1.8.2.2 misho 20: AC_CHECK_TOOL(MKDEP, mkdep, ../mkdep)
1.1 misho 21: AC_SUBST(MKDEP)
22:
1.8 misho 23: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
24: LDFLAGS="${LDFLAGS}"
1.1 misho 25:
26:
27: # Checks for libraries.
28:
29: # Checks for header files.
30: AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
31:
32: # Checks for typedefs, structures, and compiler characteristics.
33: AC_C_INLINE
34:
35: # Checks for library functions.
36: AC_FUNC_MALLOC
37: AC_FUNC_REALLOC
1.8.2.3 misho 38: AC_CHECK_FUNCS([memset strdup strerror strtol strlcpy strlcat])
1.1 misho 39:
40: DEBUG=no
41: AC_MSG_CHECKING(Debug Build)
42: AC_ARG_ENABLE(debug,
43: [ --enable-debug Build library with debug information and additional messages],
44: [ DEBUG=$enableval
45: case "$enableval" in
46: yes)
47: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
48: CFLAGS="-g ${CFLAGS}"
49: ;;
50: *)
51: AC_DEFINE(NDEBUG,, [Turn off debug asserts])
52: ;;
53: esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
54: AC_MSG_RESULT($DEBUG)
55:
1.8.2.4 ! misho 56: ELWIX=no
! 57: AC_MSG_CHECKING(With libelwix Build)
! 58: AC_ARG_WITH(elwix,
! 59: [ --with-elwix Build library with libelwix memory managemant],
! 60: [ ELWIX=$withval
! 61: case "$withval" in
! 62: yes)
! 63: AC_DEFINE(__ELWIX,, [Build libraries with libelwix memory managemant])
! 64: CFLAGS="-g ${CFLAGS}"
! 65: LIBS="-lelwix"
! 66: ;;
! 67: *)
! 68: ;;
! 69: esac ],)
! 70: AC_MSG_RESULT($ELWIX)
! 71:
1.1 misho 72: AC_CONFIG_FILES([Makefile
73: inc/Makefile
74: lib/Makefile
75: src/Makefile])
1.8.2.3 misho 76: AC_OUTPUT()
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>