Annotation of libaitsync/configure.in, revision 1.3

1.1       misho       1: #
                      2: # $Author: misho $
1.3     ! misho       3: # $Id: configure.in,v 1.2.2.1 2011/05/09 14:37:55 misho Exp $
1.1       misho       4: #
1.3     ! misho       5: AC_INIT(libaitsync, 1.1, misho@aitbg.com)
1.1       misho       6: AC_CONFIG_SRCDIR([src/aitsync.c])
                      7: AC_CONFIG_HEADERS([inc/config.h])
                      8: 
                      9: # Checks for programs.
                     10: AC_PROG_CC
                     11: AC_PROG_RANLIB
                     12: AC_PROG_INSTALL
                     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: AC_CHECK_LIB([z], [deflate])
                     25: 
                     26: # Checks for header files.
                     27: AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/param.h unistd.h])
                     28: 
                     29: # Checks for typedefs, structures, and compiler characteristics.
                     30: AC_C_INLINE
                     31: AC_TYPE_OFF_T
                     32: AC_TYPE_SIZE_T
                     33: 
                     34: # Checks for library functions.
                     35: AC_FUNC_MALLOC
                     36: AC_FUNC_MMAP
                     37: AC_FUNC_REALLOC
                     38: AC_CHECK_FUNCS([memset munmap])
1.2       misho      39: AC_CHECK_FUNCS([mkstemps])
1.1       misho      40: 
                     41: DEBUG=no
                     42: AC_MSG_CHECKING(Debug Build)
                     43: AC_ARG_ENABLE(debug,
                     44:        [  --enable-debug          Build library with debug information and additional messages],
                     45:        [ DEBUG=$enableval
                     46:                case "$enableval" in
                     47:                        yes)
                     48:                                AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
                     49:                                CFLAGS="-g ${CFLAGS}"
                     50:                                ;;
                     51:                        *)
                     52:                                AC_DEFINE(NDEBUG,, [Build w/o assert() support])
                     53:                                ;;
                     54:                esac ],)
                     55: AC_MSG_RESULT($DEBUG)
                     56: 
                     57: AC_CONFIG_FILES([Makefile
                     58:                  inc/Makefile
                     59:                  lib/Makefile
                     60:                  src/Makefile])
                     61: AC_OUTPUT

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