Annotation of embedtools/configure.in, revision 1.1.2.1
1.1.2.1 ! misho 1: AC_INIT(embedtools, 1.0, misho@elwix.org)
! 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:
! 15: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
! 16: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
! 17:
! 18: # Checks for libraries.
! 19: AC_CHECK_LIB([aitcfg], [LoadConfig])
! 20: AC_CHECK_LIB([aitcrc], [crcAdler])
! 21: AC_CHECK_LIB([aitio], [io_TrimStr])
! 22: AC_CHECK_LIB([aitsync], [syncDelta])
! 23: AC_CHECK_LIB([axl], [axl_init])
! 24: AC_CHECK_LIB([crypto], [MD5_Init])
! 25: AC_CHECK_LIB([util], [openpty])
! 26:
! 27: # Checks for header files.
! 28: 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])
! 29:
! 30: # Checks for typedefs, structures, and compiler characteristics.
! 31: AC_C_INLINE
! 32: AC_TYPE_MODE_T
! 33: AC_TYPE_OFF_T
! 34: AC_TYPE_PID_T
! 35: AC_TYPE_SIZE_T
! 36: AC_TYPE_SSIZE_T
! 37: AC_TYPE_UID_T
! 38: AC_TYPE_UINT32_T
! 39: AC_TYPE_UINT8_T
! 40:
! 41: # Checks for library functions.
! 42: AC_FUNC_FORK
! 43: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
! 44: AC_FUNC_MALLOC
! 45: AC_FUNC_MMAP
! 46: AC_FUNC_REALLOC
! 47: AC_FUNC_WAIT3
! 48: 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])
! 49: AC_CHECK_FUNCS([kldnext kldfirstmod modfnext modstat kldload])
! 50:
! 51: DEBUG=no
! 52: AC_MSG_CHECKING(Debug Build)
! 53: AC_ARG_ENABLE(debug,
! 54: [ --enable-debug Build library 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,, [Build w/o assert() support])
! 63: ;;
! 64: esac ],)
! 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>