2012-07-11 16:45:09 +02:00
|
|
|
|
dnl -*- Autoconf -*-
|
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2012-06-28 13:42:48 +02:00
|
|
|
|
|
2023-12-21 11:56:58 +01:00
|
|
|
|
AC_INIT([fdk-aac], [2.0.3], [http://sourceforge.net/projects/opencore-amr/])
|
2012-06-28 13:42:48 +02:00
|
|
|
|
AC_CONFIG_AUX_DIR(.)
|
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2012-07-11 17:00:39 +02:00
|
|
|
|
AM_INIT_AUTOMAKE([tar-ustar foreign])
|
2012-06-28 13:42:48 +02:00
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
|
2012-07-01 11:15:32 +02:00
|
|
|
|
dnl Various options for configure
|
|
|
|
|
AC_ARG_ENABLE([example],
|
|
|
|
|
[AS_HELP_STRING([--enable-example],
|
|
|
|
|
[enable example encoding program (default is no)])],
|
|
|
|
|
[example=$enableval], [example=no])
|
|
|
|
|
|
|
|
|
|
dnl Automake conditionals to set
|
|
|
|
|
AM_CONDITIONAL(EXAMPLE, test x$example = xyes)
|
|
|
|
|
|
2012-07-11 16:45:09 +02:00
|
|
|
|
dnl Checks for programs.
|
2012-07-01 11:15:32 +02:00
|
|
|
|
AC_PROG_CC
|
2012-06-28 13:42:48 +02:00
|
|
|
|
AC_PROG_CXX
|
2012-07-11 17:02:52 +02:00
|
|
|
|
LT_INIT
|
2012-06-28 13:42:48 +02:00
|
|
|
|
|
2014-06-23 09:44:02 +02:00
|
|
|
|
AC_SEARCH_LIBS([sin], [m])
|
2012-07-14 00:58:31 +02:00
|
|
|
|
|
2012-07-11 16:45:09 +02:00
|
|
|
|
dnl soname version to use
|
|
|
|
|
dnl goes by ‘current[:revision[:age]]’ with the soname ending up as
|
|
|
|
|
dnl current.age.revision
|
2023-12-21 11:56:58 +01:00
|
|
|
|
FDK_AAC_VERSION=2:3:0
|
2013-07-27 00:59:16 +02:00
|
|
|
|
|
|
|
|
|
AS_IF([test x$enable_shared = xyes], [LIBS_PRIVATE=$LIBS], [LIBS_PUBLIC=$LIBS])
|
2012-06-28 13:42:48 +02:00
|
|
|
|
AC_SUBST(FDK_AAC_VERSION)
|
2013-07-27 00:59:16 +02:00
|
|
|
|
AC_SUBST(LIBS_PUBLIC)
|
|
|
|
|
AC_SUBST(LIBS_PRIVATE)
|
2012-06-28 13:42:48 +02:00
|
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
|
fdk-aac.pc])
|
|
|
|
|
AC_OUTPUT
|