File:  [ELWIX - Embedded LightWeight unIX -] / embedtools / configure.in
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sun Jul 22 22:46:46 2012 UTC (11 years, 10 months ago) by misho
Branches: MAIN
CVS tags: tools1_2, TOOLS1_1, HEAD
version 1.1

    1: AC_INIT(embedtools, 1.1, 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: OS=$(uname)
   16: AC_SUBST(OS)
   17: 
   18: CFLAGS="-Wall -O2 -fPIC -g -DINET6 ${CFLAGS}"
   19: LDFLAGS="${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([aitwww], [www_XMLGet])
   27: AC_CHECK_LIB([axl], [axl_init])
   28: AC_CHECK_LIB([crypto], [MD5_Init])
   29: AC_CHECK_LIB([util], [openpty])
   30: 
   31: # Checks for header files.
   32: 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])
   33: AC_CHECK_HEADERS([libutil.h])
   34: 
   35: # Checks for typedefs, structures, and compiler characteristics.
   36: AC_C_INLINE
   37: AC_TYPE_MODE_T
   38: AC_TYPE_OFF_T
   39: AC_TYPE_PID_T
   40: AC_TYPE_SIZE_T
   41: AC_TYPE_SSIZE_T
   42: AC_TYPE_UID_T
   43: AC_TYPE_UINT32_T
   44: AC_TYPE_UINT8_T
   45: 
   46: # Checks for library functions.
   47: AC_FUNC_FORK
   48: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
   49: AC_FUNC_MALLOC
   50: AC_FUNC_MMAP
   51: AC_FUNC_REALLOC
   52: AC_FUNC_WAIT3
   53: 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])
   54: AC_CHECK_FUNCS([kldnext kldfirstmod modfnext modstat kldload])
   55: 
   56: DEBUG=no
   57: AC_MSG_CHECKING(Debug Build)
   58: AC_ARG_ENABLE(debug,
   59: 	[  --enable-debug          Build library with debug information and additional messages],
   60: 	[ DEBUG=$enableval
   61: 		case "$enableval" in
   62: 			yes)
   63: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   64: 				CFLAGS="-g ${CFLAGS}"
   65: 				;;
   66: 			*)
   67: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   68: 				;;
   69: 		esac ],)
   70: AC_MSG_RESULT($DEBUG)
   71: 
   72: AC_CONFIG_FILES([Makefile
   73:                  bin/Makefile
   74:                  inc/Makefile
   75:                  src/Makefile])
   76: AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>