Annotation of libaitio/configure.in, revision 1.20.2.3
1.1 misho 1: #
2: # $Author: misho $
1.20.2.3! misho 3: # $Id: configure.in,v 1.20.2.2 2012/05/19 00:19:55 misho Exp $
1.1 misho 4: #
1.20.2.1 misho 5: AC_INIT(libaitio, 3.1, misho@elwix.org)
1.1 misho 6: AC_CONFIG_SRCDIR([src/aitio.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
9: # Checks for programs.
10: AC_PROG_CC
11: AC_PROG_INSTALL
12:
13: AC_CANONICAL_HOST
14: AC_CANONICAL_TARGET
15:
16: AC_CHECK_TOOL(MKDEP, mkdep, no)
17: AC_SUBST(MKDEP)
18:
19: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
20: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
21:
1.8 misho 22: AC_CHECK_LIB([crypto], [EVP_CipherInit_ex])
1.13 misho 23: AC_CHECK_LIB([util], [forkpty])
1.20 misho 24: AC_CHECK_LIB([rt], [aio_read])
1.8 misho 25:
1.1 misho 26: # Checks for header files.
27: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
28:
29: # Checks for typedefs, structures, and compiler characteristics.
30: AC_C_INLINE
31:
32: # Checks for library functions.
33: AC_FUNC_MALLOC
34: AC_FUNC_REALLOC
35: AC_CHECK_FUNCS([memset regcomp strchr strerror])
36:
37: DEBUG=no
38: AC_MSG_CHECKING(Debug Build)
39: AC_ARG_ENABLE(debug,
40: [ --enable-debug Build library with debug information and additional messages],
41: [ DEBUG=$enableval
42: case "$enableval" in
43: yes)
44: CFLAGS="-g ${CFLAGS}"
45: ;;
46: *)
47: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
48: ;;
49: esac ],)
50: AC_MSG_RESULT($DEBUG)
51:
1.7 misho 52: AIO=no
1.5 misho 53: AC_MSG_CHECKING(AIO Build)
54: AC_ARG_ENABLE(aio,
1.20.2.3! misho 55: [ --enable-aio Build library with AIO operations ],
1.5 misho 56: [ AIO=$enableval
57: case "$enableval" in
58: yes)
59: AC_DEFINE(AIO_OPS,, [Build library with AIO operations])
60: ;;
61: *)
62: ;;
1.7 misho 63: esac ],)
1.5 misho 64: AC_MSG_RESULT($AIO)
65:
1.20.2.3! misho 66: MPOOL=no
! 67: AC_MSG_CHECKING(Use ELWIX MPOOL)
! 68: AC_ARG_ENABLE(mpool,
! 69: [ --enable-mpool Build library with MPOOL operations ],
! 70: [ MPOOL=$enableval
! 71: case "$enableval" in
! 72: yes)
! 73: AC_DEFINE(USE_MPOOL,, [Build library with MPOOL operations])
! 74: ;;
! 75: *)
! 76: ;;
! 77: esac ],)
! 78: AC_MSG_RESULT($MPOOL)
! 79:
1.1 misho 80: AC_CONFIG_FILES([Makefile
81: inc/Makefile
82: lib/Makefile
83: src/Makefile])
84: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>