Annotation of libaitcfg/configure.in, revision 1.1.2.5

1.1.2.5 ! misho       1: #
        !             2: # $Author: misho $
        !             3: # $Id: configure.in,v 4.0.2.2 2008/03/27 12:00:47 misho Exp $
        !             4: #
1.1.2.1   misho       5: AC_INIT(libaitcfg, 3.0, 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: 
1.1.2.3   misho      35: DEBUG=no
1.1.2.1   misho      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)
1.1.2.4   misho      42:                                AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
1.1.2.1   misho      43:                                ;;
                     44:                        *)
                     45:                                ;;
                     46:                esac ],)
                     47: AC_MSG_RESULT($DEBUG)
                     48: 
                     49: AC_CONFIG_FILES([Makefile
                     50:                inc/Makefile
                     51:                lib/Makefile
                     52:                src/Makefile])
                     53: AC_OUTPUT

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