fdkaac/configure.ac

64 lines
1.5 KiB
Plaintext
Raw Normal View History

2013-01-04 17:10:05 +01:00
m4_define([VERSION_H],m4_esyscmd([cat version.h]))
changequote({{,}})dnl
m4_define({{XX_VERSION}},m4_bregexp(VERSION_H,{{^const.*"\(.+\)";}},{{\1}}))
changequote([,])dnl
AC_INIT([fdkaac], [XX_VERSION], [honeycomb77@gmail.com])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([.])
2013-01-04 17:10:05 +01:00
AM_INIT_AUTOMAKE
AC_PROG_CC
2013-01-05 06:20:23 +01:00
AM_PROG_CC_C_O
2020-09-21 15:36:54 +02:00
AC_CHECK_TOOL(RC, windres,)
2013-01-04 17:10:05 +01:00
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_HEADERS([libcharset.h langinfo.h endian.h byteswap.h])
PKG_CHECK_MODULES([FDK_AAC],[fdk-aac])
2013-01-04 17:10:05 +01:00
AC_C_INLINE
AC_C_BIGENDIAN
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])
AC_SYS_LARGEFILE
AC_CHECK_TYPES([struct __timeb64],[],[],[[#include <sys/timeb.h>]])
2013-01-04 17:10:05 +01:00
AC_FUNC_FSEEKO
2013-02-20 02:29:12 +01:00
AC_CHECK_FUNCS([sigaction gettimeofday nl_langinfo _vscprintf fseeko64])
AC_CHECK_FUNC(getopt_long)
AM_CONDITIONAL([FDK_NO_GETOPT_LONG],[test "$ac_cv_func_getopt_long" != "yes"])
AC_SEARCH_LIBS([aacEncOpen],[fdk-aac],[],[],[])
2013-01-04 17:10:05 +01:00
CHARSET_LIB=
AC_CHECK_LIB([iconv], [locale_charset],
[CHARSET_LIB=-liconv],
[AC_CHECK_LIB([charset], [locale_charset], [CHARSET_LIB=-lcharset])])
AC_SUBST([CHARSET_LIB])
2013-01-04 17:10:05 +01:00
AC_CANONICAL_HOST
X_PLATFORM=posix
case ${host} in
*-*-mingw*)
X_PLATFORM=win32
;;
*)
AM_ICONV
esac
AM_CONDITIONAL([FDK_PLATFORM_POSIX],[test "$X_PLATFORM" = "posix"])
AM_CONDITIONAL([FDK_PLATFORM_WIN32],[test "$X_PLATFORM" = "win32"])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT