Annotation of libaitio/configure.in, revision 1.51.2.2
1.1 misho 1: #
2: # $Author: misho $
1.51.2.2! misho 3: # $Id: configure.in,v 1.51.2.1 2013/12/18 12:41:03 misho Exp $
1.1 misho 4: #
1.51.2.1 misho 5: AC_INIT(libaitio, 6.9, misho@elwix.org)
1.1 misho 6: AC_CONFIG_SRCDIR([src/aitio.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
1.35 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
15:
16: AC_CANONICAL_HOST
17: AC_CANONICAL_TARGET
18:
19: AC_CHECK_TOOL(MKDEP, mkdep, no)
20: AC_SUBST(MKDEP)
21:
1.51.2.2! misho 22: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
! 23: LDFLAGS="${LDFLAGS}"
1.1 misho 24:
1.8 misho 25: AC_CHECK_LIB([crypto], [EVP_CipherInit_ex])
1.23 misho 26: AC_CHECK_LIB([pthread], [pthread_mutex_init])
1.13 misho 27: AC_CHECK_LIB([util], [forkpty])
1.20 misho 28: AC_CHECK_LIB([rt], [aio_read])
1.33 misho 29: AC_CHECK_LIB([elwix], [crcFletcher16])
1.43 misho 30: AC_CHECK_LIB([aitsched], [schedRead])
1.8 misho 31:
1.1 misho 32: # Checks for header files.
33: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
34:
35: # Checks for typedefs, structures, and compiler characteristics.
36: AC_C_INLINE
37:
38: # Checks for library functions.
1.33 misho 39: AC_FUNC_MMAP
40: AC_CHECK_FUNCS([bzero memset munmap])
41: AC_CHECK_FUNCS([pthread_create pthread_exit])
42: AC_CHECK_FUNCS([shm_open shm_unlink])
43:
44: # It's stupid, but not all platforms have union semun, even those that need it.
45: AC_MSG_CHECKING(looking for union semun in sys/sem.h)
46: AC_TRY_COMPILE([
47: #include <sys/types.h>
48: #include <sys/ipc.h>
49: #include <sys/sem.h>
50: ],[
51: union semun arg;
52: semctl(0, 0, 0, arg);
53: ], [
54: AC_DEFINE(HAVE_UNION_SEMUN,, [union semun])
55: ] msg=yes, msg=no )
56: AC_MSG_RESULT([$msg])
1.1 misho 57:
58: DEBUG=no
59: AC_MSG_CHECKING(Debug Build)
60: AC_ARG_ENABLE(debug,
61: [ --enable-debug Build library with debug information and additional messages],
62: [ DEBUG=$enableval
63: case "$enableval" in
64: yes)
65: CFLAGS="-g ${CFLAGS}"
66: ;;
67: *)
68: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
69: ;;
70: esac ],)
71: AC_MSG_RESULT($DEBUG)
72:
1.7 misho 73: AIO=no
1.5 misho 74: AC_MSG_CHECKING(AIO Build)
75: AC_ARG_ENABLE(aio,
1.22 misho 76: [ --enable-aio Build library with AIO operations ],
1.5 misho 77: [ AIO=$enableval
78: case "$enableval" in
79: yes)
80: AC_DEFINE(AIO_OPS,, [Build library with AIO operations])
81: ;;
82: *)
83: ;;
1.7 misho 84: esac ],)
1.5 misho 85: AC_MSG_RESULT($AIO)
86:
1.1 misho 87: AC_CONFIG_FILES([Makefile
88: inc/Makefile
89: lib/Makefile
90: src/Makefile])
91: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>