File:  [ELWIX - Embedded LightWeight unIX -] / libaitwww / configure.in
Revision 1.11: download - view: text, annotated - select for diffs - revision graph
Wed Sep 14 15:12:22 2016 UTC (7 years, 8 months ago) by misho
Branches: MAIN
CVS tags: www3_4, WWW3_3, HEAD
version 3.3

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.11 2016/09/14 15:12:22 misho Exp $
    4: #
    5: AC_INIT(libaitwww, 3.3, misho@elwix.org)
    6: AC_CONFIG_SRCDIR([src/aitwww.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: AC_PROG_RANLIB
   16: 
   17: # Checks for libraries.
   18: AC_CANONICAL_HOST
   19: AC_CANONICAL_TARGET
   20: 
   21: AC_CHECK_TOOL(MKDEP, mkdep, ../mkdep)
   22: AC_SUBST(MKDEP)
   23: 
   24: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
   25: LDFLAGS="${LDFLAGS}"
   26: 
   27: 
   28: AC_CHECK_LIB(elwix, [mpool_malloc])
   29: 
   30: # Checks for header files.
   31: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h unistd.h aitio.h])
   32: 
   33: # Checks for typedefs, structures, and compiler characteristics.
   34: AC_C_INLINE
   35: AC_TYPE_SIZE_T
   36: 
   37: # Checks for library functions.
   38: AC_FUNC_MALLOC
   39: AC_FUNC_REALLOC
   40: AC_CHECK_FUNCS([memchr memset strcasecmp strchr strcspn strdup strerror strncasecmp strspn strstr strtol])
   41: 
   42: DEBUG=no
   43: AC_MSG_CHECKING(Debug Build)
   44: AC_ARG_ENABLE(debug,
   45: 	[  --enable-debug          Build library with debug information and additional messages],
   46: 	[ DEBUG=$enableval
   47: 		case "$enableval" in
   48: 			yes)
   49: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   50: 				CFLAGS="-g ${CFLAGS}"
   51: 				;;
   52: 			*)
   53: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   54: 				;;
   55: 		esac ],)
   56: AC_MSG_RESULT($DEBUG)
   57: 
   58: 
   59: AC_CONFIG_FILES([Makefile
   60:                  inc/Makefile
   61:                  lib/Makefile
   62:                  src/Makefile])
   63: AC_OUTPUT

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