# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(cStringBuffer, 0.1.6, mooneer@translator.cx) AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([src/csb_obj.c]) AC_CONFIG_HEADER([config.h]) # Checks for programs. AC_PROG_CC AC_PROG_LIBTOOL # Checks for libraries. # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_REALLOC AC_CHECK_FUNCS([memmove memset]) RSSH_CHECK_PTHREADS RSSH_ENABLE_PTHREADS AC_ARG_ENABLE([optimized-allocator], AC_HELP_STRING([--enable-optimized-allocator], [This enables an alternate allocator that may increase performance.]), [AC_DEFINE(CSB_OPTIMIZE_AND_EAT_RAM, [], [Enables alternate allocator.])]) AC_CONFIG_FILES([Makefile src/Makefile m4/Makefile tests/Makefile doc/Makefile]) AC_OUTPUT