File:  [ELWIX - Embedded LightWeight unIX -] / libaitsched / configure.in
Revision 1.18: download - view: text, annotated - select for diffs - revision graph
Thu Aug 23 02:33:12 2012 UTC (11 years, 9 months ago) by misho
Branches: MAIN
CVS tags: sched3_4, SCHED3_3, HEAD
version 3.3

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.18 2012/08/23 02:33:12 misho Exp $
    4: #
    5: AC_INIT(libaitsched, 3.3, misho@openbsd-bg.org)
    6: AC_CONFIG_SRCDIR([src/aitsched.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: # Checks for programs.
   10: AC_PROG_CC
   11: AC_PROG_INSTALL
   12: AC_PROG_RANLIB
   13: 
   14: AC_CANONICAL_HOST
   15: AC_CANONICAL_TARGET
   16: 
   17: AC_CHECK_TOOL(MKDEP, mkdep, no)
   18: AC_SUBST(MKDEP)
   19: 
   20: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
   21: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
   22: 
   23: 
   24: # Checks for libraries.
   25: AC_CHECK_LIB([pthread], [pthread_create])
   26: AC_CHECK_LIB([rt], [aio_read])
   27: 
   28: # Checks for header files.
   29: AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h])
   30: 
   31: # Checks for typedefs, structures, and compiler characteristics.
   32: AC_C_INLINE
   33: AC_TYPE_SIZE_T
   34: 
   35: # Checks for library functions.
   36: AC_FUNC_MALLOC
   37: AC_CHECK_FUNCS([clock_gettime memset 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: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   47: 				CFLAGS="-g ${CFLAGS}"
   48: 				;;
   49: 			*)
   50: 				AC_DEFINE(NDEBUG,, [Turn off debug asserts])
   51: 				;;
   52: 		esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
   53: AC_MSG_RESULT($DEBUG)
   54: 
   55: AIO=no
   56: AC_MSG_CHECKING(AIO Builtin support)
   57: AC_ARG_ENABLE(aio,
   58: 	[  --enable-aio            Build scheduler library with AIO operations ], 
   59: 	[ AIO=$enableval
   60: 		case "$enableval" in
   61: 			yes)
   62: 				AC_DEFINE(AIO_SUPPORT,, [Build scheduler library with AIO operations])
   63: 				;;
   64: 			*)
   65: 				;;
   66: 		esac ],)
   67: AC_MSG_RESULT($AIO)
   68: 
   69: AC_CONFIG_FILES([Makefile
   70:                  inc/Makefile
   71:                  lib/Makefile
   72:                  src/Makefile])
   73: AC_OUTPUT()

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