File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / configure.in
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Mon Mar 22 15:15:48 2010 UTC (14 years, 1 month ago) by misho
Branches: MAIN
CVS tags: cfg4_0, HEAD, CFG3_2
new version corrected mirge 3.2

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

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