Annotation of libaitio/configure.in, revision 1.23.2.1
1.1 misho 1: #
2: # $Author: misho $
1.23.2.1! misho 3: # $Id: configure.in,v 1.23 2012/07/22 20:39:45 misho Exp $
1.1 misho 4: #
1.23.2.1! misho 5: AC_INIT(libaitio, 3.3, 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.23 misho 23: AC_CHECK_LIB([pthread], [pthread_mutex_init])
1.13 misho 24: AC_CHECK_LIB([util], [forkpty])
1.20 misho 25: AC_CHECK_LIB([rt], [aio_read])
1.8 misho 26:
1.1 misho 27: # Checks for header files.
28: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
29:
30: # Checks for typedefs, structures, and compiler characteristics.
31: AC_C_INLINE
32:
33: # Checks for library functions.
34: AC_FUNC_MALLOC
35: AC_FUNC_REALLOC
36: AC_CHECK_FUNCS([memset regcomp strchr strerror])
37:
38: DEBUG=no
39: AC_MSG_CHECKING(Debug Build)
40: AC_ARG_ENABLE(debug,
41: [ --enable-debug Build library with debug information and additional messages],
42: [ DEBUG=$enableval
43: case "$enableval" in
44: yes)
45: CFLAGS="-g ${CFLAGS}"
46: ;;
47: *)
48: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
49: ;;
50: esac ],)
51: AC_MSG_RESULT($DEBUG)
52:
1.7 misho 53: AIO=no
1.5 misho 54: AC_MSG_CHECKING(AIO Build)
55: AC_ARG_ENABLE(aio,
1.22 misho 56: [ --enable-aio Build library with AIO operations ],
1.5 misho 57: [ AIO=$enableval
58: case "$enableval" in
59: yes)
60: AC_DEFINE(AIO_OPS,, [Build library with AIO operations])
61: ;;
62: *)
63: ;;
1.7 misho 64: esac ],)
1.5 misho 65: AC_MSG_RESULT($AIO)
66:
1.22 misho 67: #MPOOL=no
68: #AC_MSG_CHECKING(Use ELWIX MPOOL)
69: #AC_ARG_ENABLE(mpool,
70: # [ --enable-mpool Build library with MPOOL operations ],
71: # [ MPOOL=$enableval
72: # case "$enableval" in
73: # yes)
74: # AC_DEFINE(USE_MPOOL,, [Build library with MPOOL operations])
75: # ;;
76: # *)
77: # ;;
78: # esac ],)
79: #AC_MSG_RESULT($MPOOL)
80:
1.1 misho 81: AC_CONFIG_FILES([Makefile
82: inc/Makefile
83: lib/Makefile
84: src/Makefile])
85: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>