Annotation of suX/configure.in, revision 1.1.1.1
1.1 misho 1: #
2: # $Author: misho $
3: # $Id: configure.in,v 1.2.2.1 2010/06/13 16:29:02 misho Exp $
4: #
5: AC_INIT(suX, 2.0, misho@aitnet.org)
6: AC_CONFIG_SRCDIR([src/sux.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([aitcfg], [LoadConfig])
24: AC_CHECK_LIB([aitio], [io_arrayMake])
25: AC_CHECK_LIB([util], [setusercontext])
26:
27: # Checks for header files.
28: AC_CHECK_HEADERS([stdlib.h string.h sys/param.h syslog.h unistd.h])
29:
30: # Checks for typedefs, structures, and compiler characteristics.
31: AC_C_INLINE
32:
33: # Checks for library functions.
34: AC_CHECK_FUNCS([endgrent endpwent getcwd strcasecmp strerror strrchr strtol])
35:
36: DEBUG=no
37: AC_MSG_CHECKING(Debug Build)
38: AC_ARG_ENABLE(debug,
39: [ --enable-debug Build program with debug information and additional messages],
40: [ DEBUG=$enableval
41: case "$enableval" in
42: yes)
43: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
44: CFLAGS="-g ${CFLAGS}"
45: ;;
46: *)
47: AC_DEFINE(NDEBUG,, [Turn off debug asserts])
48: ;;
49: esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
50: AC_MSG_RESULT($DEBUG)
51:
52: AC_CONFIG_FILES([Makefile
53: bin/Makefile
54: inc/Makefile
55: src/Makefile])
56: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>