File:  [ELWIX - Embedded LightWeight unIX -] / libaitio / configure.in
Revision 1.31.2.1: download - view: text, annotated - select for diffs - revision graph
Wed Dec 19 11:03:44 2012 UTC (11 years, 10 months ago) by misho
Branches: io4_1
Diff to: branchpoint 1.31: preferred, unified
new ver 4.1

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

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