Annotation of libaitcfg/configure.in, revision 1.30
1.2 misho 1: #
2: # $Author: misho $
1.30 ! misho 3: # $Id: configure.in,v 1.29.2.1 2022/12/05 22:32:08 misho Exp $
1.2 misho 4: #
1.30 ! misho 5: AC_INIT(libaitcfg, 9.3, misho@elwix.org)
1.2 misho 6: AC_CONFIG_SRCDIR([src/aitcfg.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
1.15 misho 9: ac_cv_func_malloc_0_nonnull="yes"
10: ac_cv_func_realloc_0_nonnull="yes"
11:
1.2 misho 12: # Checks for programs.
13: AC_PROG_CC
14: AC_PROG_INSTALL
1.22 misho 15: AC_PROG_RANLIB
1.2 misho 16:
17: AC_CANONICAL_HOST
18: AC_CANONICAL_TARGET
19:
1.22 misho 20: AC_CHECK_TOOL(MKDEP, mkdep, ../mkdep)
1.2 misho 21: AC_SUBST(MKDEP)
22:
1.17 misho 23: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
24: LDFLAGS="${LDFLAGS}"
1.2 misho 25:
26: # Checks for libraries.
1.7 misho 27: AC_CHECK_LIB([pthread], [pthread_mutex_lock])
1.15 misho 28: AC_CHECK_LIB([elwix], [str_Trim])
1.2 misho 29:
30: # Checks for header files.
31:
32: # Checks for typedefs, structures, and compiler characteristics.
33: AC_C_CONST
34: AC_C_INLINE
35:
36: # Checks for library functions.
37: AC_FUNC_MALLOC
38: AC_FUNC_REALLOC
39: AC_CHECK_FUNCS([bzero memmove memset strchr strspn])
40:
41: DEBUG=no
42: AC_MSG_CHECKING(Debug Build)
43: AC_ARG_ENABLE(debug,
44: [ --enable-debug Build library with debug information and additional messages],
45: [ DEBUG=$enableval
46: case "$enableval" in
47: yes)
48: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
49: CFLAGS="-g ${CFLAGS}"
50: ;;
51: *)
1.7 misho 52: AC_DEFINE(NDEBUG,, [No debug, remove asserts])
1.2 misho 53: ;;
54: esac ],)
55: AC_MSG_RESULT($DEBUG)
56:
57: AC_CONFIG_FILES([Makefile
58: inc/Makefile
59: lib/Makefile
60: src/Makefile])
61: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>