File:  [ELWIX - Embedded LightWeight unIX -] / embedtools / configure.in
Revision 1.4.2.1: download - view: text, annotated - select for diffs - revision graph
Fri Jan 18 13:18:14 2013 UTC (11 years, 7 months ago) by misho
Branches: tools2_0
Diff to: branchpoint 1.4: preferred, unified
new ver 2.0, change headers & apis

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

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