File:  [ELWIX - Embedded LightWeight unIX -] / libaitcli / configure.in
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Fri Jun 4 11:32:47 2010 UTC (14 years ago) by misho
Branches: MAIN
CVS tags: cli2_0, HEAD, CLI1_0
prepare to tag

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.2 2010/06/04 11:32:47 misho Exp $
    4: #
    5: AC_INIT(libaitcli, 1.1, misho@openbsd-bg.org)
    6: AC_CONFIG_SRCDIR([src/aitcli.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(readline, [readline])
   24: AC_CHECK_LIB(util, [forkpty])
   25: AC_CHECK_LIB(aittelnet, [telnetRecv])
   26: 
   27: # Checks for header files.
   28: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
   29: 
   30: # Checks for typedefs, structures, and compiler characteristics.
   31: AC_C_INLINE
   32: 
   33: # Checks for library functions.
   34: AC_CHECK_FUNCS([memset strdup strerror])
   35: AC_CHECK_FUNCS([readline])
   36: AC_CHECK_FUNCS([forkpty])
   37: AC_CHECK_FUNCS([telnetRecv telnetSend])
   38: 
   39: DEBUG=no
   40: AC_MSG_CHECKING(Debug Build)
   41: AC_ARG_ENABLE(debug,
   42: 	[  --enable-debug          Build library with debug information and additional messages],
   43: 	[ DEBUG=$enableval
   44: 		case "$enableval" in
   45: 			yes)
   46: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   47: 				CFLAGS="-g ${CFLAGS}"
   48: 				;;
   49: 			*)
   50: 				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
   51: 				;;
   52: 		esac ],)
   53: AC_MSG_RESULT($DEBUG)
   54: 
   55: AC_CONFIG_FILES([Makefile
   56:                  inc/Makefile
   57:                  lib/Makefile
   58:                  src/Makefile])
   59: AC_OUTPUT

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