File:  [ELWIX - Embedded LightWeight unIX -] / libaitrpc / configure.in
Revision 1.17: download - view: text, annotated - select for diffs - revision graph
Tue Apr 2 15:50:13 2013 UTC (11 years, 2 months ago) by misho
Branches: MAIN
CVS tags: rpc5_2, RPC5_1, HEAD
version 5.1

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.17 2013/04/02 15:50:13 misho Exp $
    4: #
    5: AC_INIT(libaitrpc, 5.1, misho@elwix.org)
    6: AC_CONFIG_SRCDIR([src/aitrpc.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: # Checks for libraries.
   23: AC_CHECK_LIB([pthread], [pthread_create])
   24: AC_CHECK_LIB([elwix], [array_Init])
   25: AC_CHECK_LIB([aitsched], [schedInit])
   26: 
   27: # Checks for header files.
   28: AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h unistd.h])
   29: 
   30: # Checks for typedefs, structures, and compiler characteristics.
   31: AC_C_INLINE
   32: AC_TYPE_INT16_T
   33: AC_TYPE_INT32_T
   34: AC_TYPE_INT64_T
   35: AC_TYPE_INT8_T
   36: AC_TYPE_UINT16_T
   37: AC_TYPE_UINT32_T
   38: AC_TYPE_UINT64_T
   39: AC_TYPE_UINT8_T
   40: 
   41: # Checks for library functions.
   42: AC_FUNC_FORK
   43: AC_FUNC_MALLOC
   44: AC_FUNC_REALLOC
   45: AC_CHECK_FUNCS([memset select socket strdup strerror])
   46: AC_CHECK_FUNCS([srandomdev])
   47: AC_CHECK_FUNCS([crcFletcher16 hash_fnv1])
   48: AC_CHECK_FUNCS([pthread_yield])
   49: AC_CHECK_FUNCS([array_Init array_Destroy])
   50: AC_CHECK_FUNCS([schedInit schedEnd])
   51: 
   52: DEBUG=no
   53: AC_MSG_CHECKING(Debug Build)
   54: AC_ARG_ENABLE(debug,
   55: 	[  --enable-debug          Build library with debug information and additional messages],
   56: 	[ DEBUG=$enableval
   57: 		case "$enableval" in
   58: 			yes)
   59: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   60: 				CFLAGS="-g ${CFLAGS}"
   61: 				;;
   62: 			*)
   63: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   64: 				;;
   65: 		esac ],)
   66: AC_MSG_RESULT($DEBUG)
   67: 
   68: CLI_RES_ZC=no
   69: AC_MSG_CHECKING(Client zero-copy return variables)
   70: AC_ARG_ENABLE(cli-res-zcpy, 
   71: 	[  --enable-cli-res-zcpy   Build library with zero-copy return array from RPC client ], 
   72: 	[ CLI_RES_ZC=$enableval
   73: 	 	case "$enableval" in
   74: 			yes)
   75: 				AC_DEFINE(CLI_RES_ZCOPY,, 
   76: 					  [Build library with zero-copy return array from RPC client])
   77: 				;;
   78: 			*)
   79: 				;;
   80: 		esac ],)
   81: AC_MSG_RESULT($CLI_RES_ZC)
   82: 
   83: AC_CONFIG_FILES([Makefile
   84:                  inc/Makefile
   85:                  lib/Makefile
   86:                  src/Makefile])
   87: AC_OUTPUT

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