File:  [ELWIX - Embedded LightWeight unIX -] / embedtools / configure.in
Revision 1.14: download - view: text, annotated - select for diffs - revision graph
Fri Jun 30 08:41:50 2017 UTC (6 years, 10 months ago) by misho
Branches: MAIN
CVS tags: tools3_0, TOOLS2_9, HEAD
ver 2.9

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

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