Annotation of embedtools/configure.in, revision 1.2.2.3
1.2.2.1 misho 1: AC_INIT(embedtools, 1.1, misho@elwix.org)
1.2 misho 2: AC_CONFIG_SRCDIR([src/cfexec.c])
3: AC_CONFIG_HEADERS([inc/config.h])
4:
5: # Checks for programs.
6: AC_PROG_CC
7: AC_PROG_INSTALL
8:
9: AC_CANONICAL_HOST
10: AC_CANONICAL_TARGET
11:
12: AC_CHECK_TOOL(MKDEP, mkdep, no)
13: AC_SUBST(MKDEP)
14:
1.2.2.2 misho 15: OS=$(uname)
16: AC_SUBST(OS)
17:
1.2 misho 18: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
19: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
20:
21: # Checks for libraries.
22: AC_CHECK_LIB([aitcfg], [LoadConfig])
23: AC_CHECK_LIB([aitcrc], [crcAdler])
24: AC_CHECK_LIB([aitio], [io_TrimStr])
25: AC_CHECK_LIB([aitsync], [syncDelta])
26: AC_CHECK_LIB([axl], [axl_init])
27: AC_CHECK_LIB([crypto], [MD5_Init])
28: AC_CHECK_LIB([util], [openpty])
29:
30: # Checks for header files.
31: AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h paths.h stdlib.h string.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h utmp.h utmpx.h])
32: AC_CHECK_HEADERS([libutil.h])
33:
34: # Checks for typedefs, structures, and compiler characteristics.
35: AC_C_INLINE
36: AC_TYPE_MODE_T
37: AC_TYPE_OFF_T
38: AC_TYPE_PID_T
39: AC_TYPE_SIZE_T
40: AC_TYPE_SSIZE_T
41: AC_TYPE_UID_T
42: AC_TYPE_UINT32_T
43: AC_TYPE_UINT8_T
44:
45: # Checks for library functions.
46: AC_FUNC_FORK
47: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
48: AC_FUNC_MALLOC
49: AC_FUNC_MMAP
50: AC_FUNC_REALLOC
51: AC_FUNC_WAIT3
1.2.2.3 ! misho 52: AC_CHECK_FUNCS([alarm bzero dup2 endpwent getcwd gethostbyname gethostname inet_ntoa isascii memmove memset munmap select socket strcasecmp strchr strdup strerror strrchr strspn strstr strtol strtoul strtonum])
1.2 misho 53: AC_CHECK_FUNCS([kldnext kldfirstmod modfnext modstat kldload])
54:
55: DEBUG=no
56: AC_MSG_CHECKING(Debug Build)
57: AC_ARG_ENABLE(debug,
58: [ --enable-debug Build library with debug information and additional messages],
59: [ DEBUG=$enableval
60: case "$enableval" in
61: yes)
62: AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
63: CFLAGS="-g ${CFLAGS}"
64: ;;
65: *)
66: AC_DEFINE(NDEBUG,, [Build w/o assert() support])
67: ;;
68: esac ],)
69: AC_MSG_RESULT($DEBUG)
70:
71: AC_CONFIG_FILES([Makefile
72: bin/Makefile
73: inc/Makefile
74: src/Makefile])
75: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>