Annotation of libaitrpc/configure.in, revision 1.3.2.2
1.1 misho 1: #
2: # $Author: misho $
1.3.2.2 ! misho 3: # $Id: configure.in,v 1.3.2.1 2011/08/18 15:10:22 misho Exp $
1.1 misho 4: #
1.3.2.1 misho 5: AC_INIT(libaitrpc, 1.2, misho@openbsd-bg.org)
1.1 misho 6: AC_CONFIG_SRCDIR([src/aitrpc.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: AC_CHECK_LIB([aitcrc], [crcFletcher16])
24:
25: # Checks for header files.
26: AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h unistd.h])
27:
28: # Checks for typedefs, structures, and compiler characteristics.
29: AC_C_INLINE
30: AC_TYPE_INT16_T
31: AC_TYPE_INT32_T
32: AC_TYPE_INT64_T
33: AC_TYPE_INT8_T
34: AC_TYPE_OFF_T
35: AC_TYPE_SIZE_T
36: AC_TYPE_UINT16_T
37: AC_TYPE_UINT32_T
38: AC_TYPE_UINT64_T
39: AC_TYPE_UINT8_T
40:
41: # Checks for library functions.
42: AC_FUNC_FORK
43: AC_FUNC_MALLOC
44: AC_FUNC_REALLOC
45: AC_CHECK_FUNCS([memset select socket strdup strerror])
1.2 misho 46: AC_CHECK_FUNCS([srandomdev])
1.1 misho 47: AC_CHECK_FUNCS([crcFletcher16 hash_fnv1])
1.3.2.2 ! misho 48: AC_CHECK_FUNCS([pthread_yield])
1.1 misho 49:
50: DEBUG=no
51: AC_MSG_CHECKING(Debug Build)
52: AC_ARG_ENABLE(debug,
53: [ --enable-debug Build library with debug information and additional messages],
54: [ DEBUG=$enableval
55: case "$enableval" in
56: yes)
57: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
58: CFLAGS="-g ${CFLAGS}"
59: ;;
60: *)
61: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
62: ;;
63: esac ],)
64: AC_MSG_RESULT($DEBUG)
65:
66: AC_CONFIG_FILES([Makefile
67: inc/Makefile
68: lib/Makefile
69: src/Makefile])
70: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>