File:  [ELWIX - Embedded LightWeight unIX -] / libaitpelco / configure.in
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sun Jul 22 22:21:49 2012 UTC (11 years, 10 months ago) by misho
Branches: MAIN
CVS tags: pelco1_2, PELCO1_1, HEAD
version 1.1

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.2 2012/07/22 22:21:49 misho Exp $
    4: #
    5: AC_INIT(libaitpelco, 1.1, misho@openbsd-bg.org)
    6: AC_CONFIG_SRCDIR([src/aitpelco.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: # Checks for programs.
   10: AC_PROG_CC
   11: AC_PROG_INSTALL
   12: AC_PROG_RANLIB
   13: 
   14: AC_CANONICAL_HOST
   15: AC_CANONICAL_TARGET
   16: 
   17: AC_CHECK_TOOL(MKDEP, mkdep, no)
   18: AC_SUBST(MKDEP)
   19: 
   20: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
   21: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
   22: 
   23: # Checks for libraries.
   24: # FIXME: Replace `main' with a function in `-laitcrc':
   25: AC_CHECK_LIB([aitcrc], [crcPelco])
   26: 
   27: # Checks for header files.
   28: 
   29: # Checks for typedefs, structures, and compiler characteristics.
   30: AC_C_CONST
   31: AC_C_INLINE
   32: 
   33: # Checks for library functions.
   34: AC_FUNC_MALLOC
   35: AC_CHECK_FUNCS([memset])
   36: 
   37: DEBUG=no
   38: AC_MSG_CHECKING(Debug Build)
   39: AC_ARG_ENABLE(debug,
   40: 	[  --enable-debug          Build library with debug information and additional messages],
   41: 	[ DEBUG=$enableval
   42: 		case "$enableval" in
   43: 			yes)
   44: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   45: 				CFLAGS="-g ${CFLAGS}"
   46: 				;;
   47: 			*)
   48: 				AC_DEFINE(NDEBUG,, [Turn off asserts])
   49: 				;;
   50: 		esac ],)
   51: AC_MSG_RESULT($DEBUG)
   52: 
   53: AC_CONFIG_FILES([Makefile
   54: 		inc/Makefile
   55: 		lib/Makefile
   56: 		src/Makefile])
   57: AC_OUTPUT

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