Annotation of libaitsess/configure.in, revision 1.2.2.1
1.2 misho 1: #
2: # $Author: misho $
1.2.2.1 ! misho 3: # $Id: configure.in,v 1.2 2011/04/30 21:35:21 misho Exp $
1.2 misho 4: #
1.2.2.1 ! misho 5: AC_INIT(libaitsess, 2.1, misho@openbsd-bg.org)
1.2 misho 6: AC_CONFIG_SRCDIR([src/aitsess.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:
22: # Checks for libraries.
23:
24: # Checks for header files.
25:
26: # Checks for typedefs, structures, and compiler characteristics.
27: AC_C_CONST
28: AC_C_INLINE
29:
30: # Checks for library functions.
31: AC_FUNC_MALLOC
32: AC_FUNC_MMAP
33: AC_CHECK_FUNCS([bzero memset munmap])
34:
35: # It's stupid, but not all platforms have union semun, even those that need it.
36: AC_MSG_CHECKING(looking for union semun in sys/sem.h)
37: AC_TRY_COMPILE([
38: #include <sys/types.h>
39: #include <sys/ipc.h>
40: #include <sys/sem.h>
41: ],[
42: union semun arg;
43: semctl(0, 0, 0, arg);
44: ], [
45: AC_DEFINE(HAVE_UNION_SEMUN,, [union semun])
46: ] msg=yes, msg=no )
47: AC_MSG_RESULT([$msg])
48:
49: DEBUG=no
50: AC_MSG_CHECKING(Debug Build)
51: AC_ARG_ENABLE(debug,
52: [ --enable-debug Build library with debug information and additional messages],
53: [ DEBUG=$enableval
54: case "$enableval" in
55: yes)
56: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
57: CFLAGS="-g ${CFLAGS}"
58: ;;
59: *)
60: ;;
61: esac ],)
62: AC_MSG_RESULT($DEBUG)
63:
64: AC_CONFIG_FILES([Makefile
65: inc/Makefile
66: lib/Makefile
67: src/Makefile])
68: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>