File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / configure.in
Revision 1.6: download - view: text, annotated - select for diffs - revision graph
Sun May 1 17:24:28 2011 UTC (13 years ago) by misho
Branches: MAIN
CVS tags: cfg5_0, cfg4_1, HEAD, CFG4_0
ver 4.0

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.6 2011/05/01 17:24:28 misho Exp $
    4: #
    5: AC_INIT(libaitcfg, 4.0, misho@openbsd-bg.org)
    6: AC_CONFIG_SRCDIR([src/aitcfg.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([aitio], [io_TrimStr])
   24: 
   25: # Checks for header files.
   26: 
   27: # Checks for typedefs, structures, and compiler characteristics.
   28: AC_C_CONST
   29: AC_C_INLINE
   30: 
   31: # Checks for library functions.
   32: AC_FUNC_MALLOC
   33: AC_FUNC_REALLOC
   34: AC_CHECK_FUNCS([bzero memmove memset strchr strspn])
   35: 
   36: DEBUG=no
   37: AC_MSG_CHECKING(Debug Build)
   38: AC_ARG_ENABLE(debug,
   39: 	[  --enable-debug          Build library with debug information and additional messages],
   40: 	[ DEBUG=$enableval
   41: 		case "$enableval" in
   42: 			yes)
   43: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   44: 				CFLAGS="-g ${CFLAGS}"
   45: 				;;
   46: 			*)
   47: 				;;
   48: 		esac ],)
   49: AC_MSG_RESULT($DEBUG)
   50: 
   51: AC_CONFIG_FILES([Makefile
   52: 		inc/Makefile
   53: 		lib/Makefile
   54: 		src/Makefile])
   55: AC_OUTPUT

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