Annotation of libaitcli/configure.in, revision 1.7.2.1
1.1 misho 1: #
2: # $Author: misho $
1.7.2.1 ! misho 3: # $Id: configure.in,v 1.7 2013/05/30 09:16:42 misho Exp $
1.1 misho 4: #
1.7.2.1 ! misho 5: AC_INIT(libaitcli, 3.1, misho@elwix.org)
1.1 misho 6: AC_CONFIG_SRCDIR([src/aitcli.c])
7: AC_CONFIG_HEADERS([inc/config.h])
8:
1.7 misho 9: ac_cv_func_malloc_0_nonnull="yes"
10: ac_cv_func_realloc_0_nonnull="yes"
11:
1.1 misho 12: # Checks for programs.
13: AC_PROG_CC
14: AC_PROG_INSTALL
15:
16: AC_CANONICAL_HOST
17: AC_CANONICAL_TARGET
18:
19: AC_CHECK_TOOL(MKDEP, mkdep, no)
20: AC_SUBST(MKDEP)
21:
22: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
23: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
24:
25: # Checks for libraries.
1.2 misho 26: AC_CHECK_LIB(util, [forkpty])
1.7 misho 27: AC_CHECK_LIB(elwix, [str_Trim])
1.1 misho 28:
29: # Checks for header files.
1.4 misho 30: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h libutil.h])
1.1 misho 31:
32: # Checks for typedefs, structures, and compiler characteristics.
33: AC_C_INLINE
34:
35: # Checks for library functions.
36: AC_CHECK_FUNCS([memset strdup strerror])
1.7 misho 37: AC_CHECK_FUNCS([str_Trim])
1.2 misho 38: AC_CHECK_FUNCS([forkpty])
1.1 misho 39:
40: DEBUG=no
41: AC_MSG_CHECKING(Debug Build)
42: AC_ARG_ENABLE(debug,
43: [ --enable-debug Build library with debug information and additional messages],
44: [ DEBUG=$enableval
45: case "$enableval" in
46: yes)
47: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
48: CFLAGS="-g ${CFLAGS}"
49: ;;
50: *)
51: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
52: ;;
53: esac ],)
54: AC_MSG_RESULT($DEBUG)
55:
56: AC_CONFIG_FILES([Makefile
57: inc/Makefile
58: lib/Makefile
59: src/Makefile])
60: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>