Annotation of suX/configure.in, revision 1.4.2.1
1.1 misho 1: #
2: # $Author: misho $
1.4.2.1 ! misho 3: # $Id: configure.in,v 1.4 2013/04/10 00:04:10 misho Exp $
1.1 misho 4: #
1.4.2.1 ! misho 5: AC_INIT(suX, 3.2, misho@aitnet.org)
1.1 misho 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.
1.3 misho 23: AC_CHECK_LIB([pthread], [pthread_create])
1.2 misho 24: AC_CHECK_LIB([util], [setusercontext])
1.3 misho 25: AC_CHECK_LIB([elwix], [array_Args])
26: AC_CHECK_LIB([aitcfg], [cfgLoadConfig])
1.1 misho 27:
28: # Checks for header files.
29: AC_CHECK_HEADERS([stdlib.h string.h sys/param.h syslog.h unistd.h])
30:
31: # Checks for typedefs, structures, and compiler characteristics.
32: AC_C_INLINE
33:
34: # Checks for library functions.
35: AC_CHECK_FUNCS([endgrent endpwent getcwd strcasecmp strerror strrchr strtol])
36:
1.2 misho 37: STATIC=no
38: AC_MSG_CHECKING(Static build)
39: AC_ARG_ENABLE(static,
40: [ --enable-static Build static program ],
41: [ STATIC=$enableval
42: case "$enableval" in
43: yes)
44: LDFLAGS="-static ${LDFLAGS}"
45: ;;
46: *)
47: ;;
48: esac ],)
49: AC_MSG_RESULT($STATIC)
50:
1.1 misho 51: DEBUG=no
52: AC_MSG_CHECKING(Debug Build)
53: AC_ARG_ENABLE(debug,
54: [ --enable-debug Build program with debug information and additional messages],
55: [ DEBUG=$enableval
56: case "$enableval" in
57: yes)
58: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
59: CFLAGS="-g ${CFLAGS}"
60: ;;
61: *)
62: AC_DEFINE(NDEBUG,, [Turn off debug asserts])
63: ;;
64: esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
65: AC_MSG_RESULT($DEBUG)
66:
67: AC_CONFIG_FILES([Makefile
68: bin/Makefile
69: inc/Makefile
70: src/Makefile])
71: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>