File:  [ELWIX - Embedded LightWeight unIX -] / libaitcfg / configure.in
Revision 1.1.2.4: download - view: text, annotated - select for diffs - revision graph
Tue Sep 30 14:58:53 2008 UTC (15 years, 7 months ago) by misho
Branches: cfg3_0
revert

    1: AC_INIT(libaitcfg, 3.0, misho@openbsd-bg.org)
    2: AC_CONFIG_SRCDIR([src/aitcfg.c])
    3: AC_CONFIG_HEADERS([inc/config.h])
    4: 
    5: # Checks for programs.
    6: AC_PROG_CC
    7: AC_PROG_INSTALL
    8: 
    9: AC_CANONICAL_HOST
   10: AC_CANONICAL_TARGET
   11: 
   12: AC_CHECK_TOOL(MKDEP, mkdep, no)
   13: AC_SUBST(MKDEP)
   14: 
   15: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
   16: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
   17: 
   18: # Checks for libraries.
   19: 
   20: # Checks for header files.
   21: 
   22: # Checks for typedefs, structures, and compiler characteristics.
   23: AC_C_CONST
   24: AC_C_INLINE
   25: 
   26: # Checks for library functions.
   27: AC_FUNC_MALLOC
   28: AC_FUNC_REALLOC
   29: AC_CHECK_FUNCS([bzero memmove memset strchr strspn])
   30: 
   31: DEBUG=no
   32: AC_MSG_CHECKING(Debug Build)
   33: AC_ARG_ENABLE(debug,
   34: 	[  --enable-debug          Build library with debug information and additional messages],
   35: 	[ DEBUG=$enableval
   36: 		case "$enableval" in
   37: 			yes)
   38: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   39: 				;;
   40: 			*)
   41: 				;;
   42: 		esac ],)
   43: AC_MSG_RESULT($DEBUG)
   44: 
   45: AC_CONFIG_FILES([Makefile
   46: 		inc/Makefile
   47: 		lib/Makefile
   48: 		src/Makefile])
   49: AC_OUTPUT

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