Annotation of libaitsess/configure.in, revision 1.1.2.2
1.1.2.1 misho 1: #
2: # $Author: misho $
1.1.2.2 ! misho 3: # $Id: configure.in,v 1.1.2.1 2008/09/30 20:11:27 misho Exp $
1.1.2.1 misho 4: #
5: AC_INIT(libaitsess, 2.0, misho@openbsd-bg.org)
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: DEBUG=no
36: AC_MSG_CHECKING(Debug Build)
37: AC_ARG_ENABLE(debug,
38: [ --enable-debug Build library with debug information and additional messages],
39: [ DEBUG=$enableval
40: case "$enableval" in
41: yes)
42: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
1.1.2.2 ! misho 43: CFLAGS="-g ${CFLAGS}"
1.1.2.1 misho 44: ;;
45: *)
46: ;;
47: esac ],)
48: AC_MSG_RESULT($DEBUG)
49:
50: AC_CONFIG_FILES([Makefile
51: inc/Makefile
52: lib/Makefile
53: src/Makefile])
54: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>