Annotation of libaitcfg/configure.in, revision 1.7.2.1
1.2 misho 1: #
2: # $Author: misho $
1.7.2.1 ! misho 3: # $Id: configure.in,v 1.7 2012/04/04 13:11:48 misho Exp $
1.2 misho 4: #
1.7.2.1 ! misho 5: AC_INIT(libaitcfg, 5.1, misho@elwix.org)
1.2 misho 6: AC_CONFIG_SRCDIR([src/aitcfg.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.
1.7 misho 23: AC_CHECK_LIB([pthread], [pthread_mutex_lock])
1.6 misho 24: AC_CHECK_LIB([aitio], [io_TrimStr])
1.7 misho 25: AC_CHECK_LIB([aitcrc], [crcFletcher16])
1.2 misho 26:
27: # Checks for header files.
28:
29: # Checks for typedefs, structures, and compiler characteristics.
30: AC_C_CONST
31: AC_C_INLINE
32:
33: # Checks for library functions.
34: AC_FUNC_MALLOC
35: AC_FUNC_REALLOC
36: AC_CHECK_FUNCS([bzero memmove memset strchr strspn])
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: *)
1.7 misho 49: AC_DEFINE(NDEBUG,, [No debug, remove asserts])
1.2 misho 50: ;;
51: esac ],)
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>