Annotation of libaitcfg/configure.in, revision 1.14.2.1

1.2       misho       1: #
                      2: # $Author: misho $
1.14.2.1! misho       3: # $Id: configure.in,v 1.14 2013/01/17 13:27:39 misho Exp $
1.2       misho       4: #
1.14.2.1! misho       5: AC_INIT(libaitcfg, 7.0, misho@elwix.org)
1.2       misho       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.
1.7       misho      23: AC_CHECK_LIB([pthread], [pthread_mutex_lock])
1.14.2.1! misho      24: AC_CHECK_LIB([elwix], [str_Trim])
1.2       misho      25: 
                     26: # Checks for header files.
                     27: 
                     28: # Checks for typedefs, structures, and compiler characteristics.
                     29: AC_C_CONST
                     30: AC_C_INLINE
                     31: 
                     32: # Checks for library functions.
                     33: AC_FUNC_MALLOC
                     34: AC_FUNC_REALLOC
                     35: AC_CHECK_FUNCS([bzero memmove memset strchr strspn])
                     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:                        *)
1.7       misho      48:                                AC_DEFINE(NDEBUG,, [No debug, remove asserts])
1.2       misho      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>