File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / configure.in
Revision 1.10: download - view: text, annotated - select for diffs - revision graph
Tue May 3 15:41:00 2011 UTC (13 years, 6 months ago) by misho
Branches: MAIN
CVS tags: io1_9, IO1_8, HEAD
add new feature
split-order array

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.10 2011/05/03 15:41:00 misho Exp $
    4: #
    5: AC_INIT(libaitio, 1.8, misho@elwix.org)
    6: AC_CONFIG_SRCDIR([src/aitio.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: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
   20: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
   21: 
   22: AC_CHECK_LIB([crypto], [EVP_CipherInit_ex])
   23: 
   24: # Checks for header files.
   25: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
   26: 
   27: # Checks for typedefs, structures, and compiler characteristics.
   28: AC_C_INLINE
   29: 
   30: # Checks for library functions.
   31: AC_FUNC_MALLOC
   32: AC_FUNC_REALLOC
   33: AC_CHECK_FUNCS([memset regcomp strchr strerror])
   34: 
   35: DEBUG=no
   36: AC_MSG_CHECKING(Debug Build)
   37: AC_ARG_ENABLE(debug,
   38: 	[  --enable-debug          Build library with debug information and additional messages],
   39: 	[ DEBUG=$enableval
   40: 		case "$enableval" in
   41: 			yes)
   42: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   43: 				CFLAGS="-g ${CFLAGS}"
   44: 				;;
   45: 			*)
   46: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   47: 				;;
   48: 		esac ],)
   49: AC_MSG_RESULT($DEBUG)
   50: 
   51: AIO=no
   52: AC_MSG_CHECKING(AIO Build)
   53: AC_ARG_ENABLE(aio,
   54: 	[  --enable-aio            Build library with AIO operations], 
   55: 	[ AIO=$enableval
   56: 		case "$enableval" in
   57: 			yes)
   58: 				AC_DEFINE(AIO_OPS,, [Build library with AIO operations])
   59: 				;;
   60: 			*)
   61: 				;;
   62: 		esac ],)
   63: AC_MSG_RESULT($AIO)
   64: 
   65: AC_CONFIG_FILES([Makefile
   66:                  inc/Makefile
   67:                  lib/Makefile
   68:                  src/Makefile])
   69: AC_OUTPUT

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