File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / configure.in
Revision 1.23: download - view: text, annotated - select for diffs - revision graph
Sun Jul 22 20:39:45 2012 UTC (11 years, 10 months ago) by misho
Branches: MAIN
CVS tags: io3_3, IO3_2, HEAD
version 3.2

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.23 2012/07/22 20:39:45 misho Exp $
    4: #
    5: AC_INIT(libaitio, 3.2, 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: AC_CHECK_LIB([pthread], [pthread_mutex_init])
   24: AC_CHECK_LIB([util], [forkpty])
   25: AC_CHECK_LIB([rt], [aio_read])
   26: 
   27: # Checks for header files.
   28: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
   29: 
   30: # Checks for typedefs, structures, and compiler characteristics.
   31: AC_C_INLINE
   32: 
   33: # Checks for library functions.
   34: AC_FUNC_MALLOC
   35: AC_FUNC_REALLOC
   36: AC_CHECK_FUNCS([memset regcomp strchr strerror])
   37: 
   38: DEBUG=no
   39: AC_MSG_CHECKING(Debug Build)
   40: AC_ARG_ENABLE(debug,
   41: 	[  --enable-debug          Build library with debug information and additional messages],
   42: 	[ DEBUG=$enableval
   43: 		case "$enableval" in
   44: 			yes)
   45: 				CFLAGS="-g ${CFLAGS}"
   46: 				;;
   47: 			*)
   48: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   49: 				;;
   50: 		esac ],)
   51: AC_MSG_RESULT($DEBUG)
   52: 
   53: AIO=no
   54: AC_MSG_CHECKING(AIO Build)
   55: AC_ARG_ENABLE(aio,
   56: 	[  --enable-aio            Build library with AIO operations ], 
   57: 	[ AIO=$enableval
   58: 		case "$enableval" in
   59: 			yes)
   60: 				AC_DEFINE(AIO_OPS,, [Build library with AIO operations])
   61: 				;;
   62: 			*)
   63: 				;;
   64: 		esac ],)
   65: AC_MSG_RESULT($AIO)
   66: 
   67: #MPOOL=no
   68: #AC_MSG_CHECKING(Use ELWIX MPOOL)
   69: #AC_ARG_ENABLE(mpool, 
   70: #	[  --enable-mpool          Build library with MPOOL operations ], 
   71: #	[ MPOOL=$enableval 
   72: #	 	case "$enableval" in
   73: #			yes)
   74: #				AC_DEFINE(USE_MPOOL,, [Build library with MPOOL operations])
   75: #				;;
   76: #			*)
   77: #				;;
   78: #		esac ],)
   79: #AC_MSG_RESULT($MPOOL)
   80: 
   81: AC_CONFIG_FILES([Makefile
   82:                  inc/Makefile
   83:                  lib/Makefile
   84:                  src/Makefile])
   85: AC_OUTPUT

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