# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([mmparser], [1.0.0]) AM_INIT_AUTOMAKE([-Wall -Werror gnu foreign subdir-objects]) AM_MAINTAINER_MODE AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) MMPARSER_VERSION=1.0.0 MMPARSER_MAJOR=1 MMPARSER_MINOR=0 MMPARSER_RELEASE=0 # Checks for programs. AM_PROG_AS AC_PROG_CC AM_PROG_CC_C_O AC_PROG_CXX AC_PROG_LIBTOOL AC_PROG_AWK AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET PKG_PROG_PKG_CONFIG # Checks for libraries. AC_ARG_WITH([mmosal-headers], [AS_HELP_STRING([--with-mmosal-headers=DIR], [location of mm-osal headers])], [CPPFLAGS="$CPPFLAGS -I$withval"]) AC_SUBST([MMPARSER_VERSION]) # Checks for header files. AC_CHECK_HEADERS([wchar.h]) # Checks for typedefs, structures, and compiler characteristics. AC_CHECK_HEADER_STDBOOL AC_TYPE_INT32_T AC_TYPE_INT64_T AC_TYPE_SIZE_T AC_TYPE_SSIZE_T AC_TYPE_UINT32_T AC_TYPE_UINT64_T AC_TYPE_UINT8_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_REALLOC AC_CHECK_FUNCS([memset strcasecmp strncasecmp]) AC_CONFIG_FILES([Makefile Api/Makefile ]) AC_OUTPUT