Annotation of libaitcli/configure.in, revision 1.1.1.1.2.1

1.1       misho       1: #
                      2: # $Author: misho $
1.1.1.1.2.1! misho       3: # $Id: configure.in,v 1.1.1.1 2010/04/16 13:20:29 misho Exp $
1.1       misho       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: 
                     25: # Checks for header files.
                     26: AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h termios.h unistd.h])
                     27: 
                     28: # Checks for typedefs, structures, and compiler characteristics.
                     29: AC_C_INLINE
                     30: 
                     31: # Checks for library functions.
                     32: AC_CHECK_FUNCS([memset strdup strerror])
1.1.1.1.2.1! misho      33: AC_CHECK_FUNCS([readline])
1.1       misho      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:                                AC_DEFINE(NDEBUG,, [Build w/o assert() support])
                     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>