1 m4_define([VERSION_H],m4_esyscmd([cat version.h]))
3 m4_define({{XX_VERSION}},m4_bregexp(VERSION_H,{{^const.*"\(.+\)";}},{{\1}}))
6 AC_INIT([fdkaac], [XX_VERSION], [honeycomb77@gmail.com])
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_MACRO_DIR([m4])
15 AC_CHECK_HEADERS([sys/time.h])
16 AC_CHECK_HEADERS([localcharset.h langinfo.h endian.h byteswap.h])
17 AC_CHECK_HEADERS([fdk-aac/aacenc_lib.h], ,
18 AC_MSG_ERROR([libfdk-aac is required]))
31 AC_CHECK_TYPES([ptrdiff_t])
35 AC_CHECK_FUNCS([sigaction gettimeofday nl_langinfo strdup _vscprintf])
36 AC_CHECK_FUNC(getopt_long)
37 AM_CONDITIONAL([FDK_NO_GETOPT_LONG],[test "$ac_cv_func_getopt_long" != "yes"])
38 AC_SEARCH_LIBS([aacEncOpen],[fdk-aac],[],[],[])
50 AM_CONDITIONAL([FDK_PLATFORM_POSIX],[test "$X_PLATFORM" = "posix"])
51 AM_CONDITIONAL([FDK_PLATFORM_WIN32],[test "$X_PLATFORM" = "win32"])
53 AC_CONFIG_FILES([Makefile])