File:  [ELWIX - Embedded LightWeight unIX -] / libaitrpc / configure.in
Revision 1.20: download - view: text, annotated - select for diffs - revision graph
Tue Aug 13 00:09:35 2013 UTC (10 years, 10 months ago) by misho
Branches: MAIN
CVS tags: rpc6_0, rpc5_5, RPC5_4, HEAD
version 5.4

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.20 2013/08/13 00:09:35 misho Exp $
    4: #
    5: AC_INIT(libaitrpc, 5.4, misho@elwix.org)
    6: AC_CONFIG_SRCDIR([src/aitrpc.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: ac_cv_func_malloc_0_nonnull="yes"
   10: ac_cv_func_realloc_0_nonnull="yes"
   11: 
   12: # Checks for programs.
   13: AC_PROG_CC
   14: AC_PROG_INSTALL
   15: 
   16: AC_CANONICAL_HOST
   17: AC_CANONICAL_TARGET
   18: 
   19: AC_CHECK_TOOL(MKDEP, mkdep, no)
   20: AC_SUBST(MKDEP)
   21: 
   22: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
   23: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
   24: 
   25: # Checks for libraries.
   26: AC_CHECK_LIB([pthread], [pthread_create])
   27: AC_CHECK_LIB([elwix], [array_Init])
   28: AC_CHECK_LIB([aitsched], [schedInit])
   29: 
   30: # Checks for header files.
   31: AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdlib.h string.h sys/param.h sys/socket.h unistd.h])
   32: 
   33: # Checks for typedefs, structures, and compiler characteristics.
   34: AC_C_INLINE
   35: AC_TYPE_INT16_T
   36: AC_TYPE_INT32_T
   37: AC_TYPE_INT64_T
   38: AC_TYPE_INT8_T
   39: AC_TYPE_UINT16_T
   40: AC_TYPE_UINT32_T
   41: AC_TYPE_UINT64_T
   42: AC_TYPE_UINT8_T
   43: 
   44: # Checks for library functions.
   45: AC_FUNC_FORK
   46: AC_FUNC_MALLOC
   47: AC_FUNC_REALLOC
   48: AC_CHECK_FUNCS([memset select socket strdup strerror])
   49: AC_CHECK_FUNCS([srandomdev])
   50: AC_CHECK_FUNCS([crcFletcher16 hash_fnv1])
   51: AC_CHECK_FUNCS([pthread_yield])
   52: AC_CHECK_FUNCS([array_Init array_Destroy])
   53: AC_CHECK_FUNCS([schedInit schedEnd])
   54: 
   55: DEBUG=no
   56: AC_MSG_CHECKING(Debug Build)
   57: AC_ARG_ENABLE(debug,
   58: 	[  --enable-debug          Build library with debug information and additional messages],
   59: 	[ DEBUG=$enableval
   60: 		case "$enableval" in
   61: 			yes)
   62: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   63: 				CFLAGS="-g ${CFLAGS}"
   64: 				;;
   65: 			*)
   66: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   67: 				;;
   68: 		esac ],)
   69: AC_MSG_RESULT($DEBUG)
   70: 
   71: CLI_RES_ZC=no
   72: AC_MSG_CHECKING(Client zero-copy return variables)
   73: AC_ARG_ENABLE(cli-res-zcpy, 
   74: 	[  --enable-cli-res-zcpy   Build library with zero-copy return array from RPC client ], 
   75: 	[ CLI_RES_ZC=$enableval
   76: 	 	case "$enableval" in
   77: 			yes)
   78: 				AC_DEFINE(CLI_RES_ZCOPY,, 
   79: 					  [Build library with zero-copy return array from RPC client])
   80: 				;;
   81: 			*)
   82: 				;;
   83: 		esac ],)
   84: AC_MSG_RESULT($CLI_RES_ZC)
   85: 
   86: AC_CONFIG_FILES([Makefile
   87:                  inc/Makefile
   88:                  lib/Makefile
   89:                  src/Makefile])
   90: AC_OUTPUT

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