You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
858 B
Plaintext

dnl Process this file with autoconf to produce a configure script.
AC_INIT(libsexpr, m4_esyscmd([tr -d '\n' < VERSION]))
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([1.11])
AM_SILENT_RULES([yes])
AC_PROG_CC
LT_INIT
dnl *****************
dnl ***** options *****
dnl *****************
AC_ARG_ENABLE([build_examples],
AS_HELP_STRING([--enable-build-examples], [Enable examples build]))
AS_IF([test "x$enable_build_examples" = "xyes"], [
AC_DEFINE([BUILD_EXAMPLES], 1, [build of examples enabled])
])
AC_ARG_ENABLE([faststack_alloc],
AS_HELP_STRING([--enable-faststack-alloc], [Use faststack thread-safe alloc within parser]))
AS_IF([test "x$enable_faststack_alloc" = "xyes"], [
AC_DEFINE([USE_FASTSTACK_ALLOC], 1, [using faststack allocation within parser])
])
AC_OUTPUT([
Makefile
lib/libsexpr.pc
lib/Makefile
include/Makefile])