Annotation of libaitsched/configure.in, revision 1.6.2.1
1.1 misho 1: #
2: # $Author: misho $
1.6.2.1 ! misho 3: # $Id: configure.in,v 1.6 2012/05/14 12:09:12 misho Exp $
1.1 misho 4: #
1.6.2.1 ! misho 5: AC_INIT(libaitsched, 1.6, misho@openbsd-bg.org)
1.1 misho 6: AC_CONFIG_SRCDIR([src/aitsched.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
9: # Checks for programs.
10: AC_PROG_CC
11: AC_PROG_INSTALL
12: AC_PROG_RANLIB
13:
14: AC_CANONICAL_HOST
15: AC_CANONICAL_TARGET
16:
17: AC_CHECK_TOOL(MKDEP, mkdep, no)
18: AC_SUBST(MKDEP)
19:
20: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
21: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
22:
1.4 misho 23:
1.1 misho 24: # Checks for libraries.
1.4 misho 25: AC_CHECK_LIB([pthread], [pthread_create])
1.1 misho 26:
27: # Checks for header files.
28: AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h])
29:
30: # Checks for typedefs, structures, and compiler characteristics.
31: AC_C_INLINE
32: AC_TYPE_SIZE_T
33:
34: # Checks for library functions.
35: AC_FUNC_MALLOC
36: AC_CHECK_FUNCS([clock_gettime memset 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: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
46: CFLAGS="-g ${CFLAGS}"
47: ;;
48: *)
49: AC_DEFINE(NDEBUG,, [Turn off debug asserts])
50: ;;
51: esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
52: AC_MSG_RESULT($DEBUG)
53:
54: AC_CONFIG_FILES([Makefile
55: inc/Makefile
56: lib/Makefile
57: src/Makefile])
58: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>