1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-02-16 19:30:34 +01:00
fdk-aac/configure.ac

48 lines
1.4 KiB
Plaintext
Raw Normal View History

dnl -*- Autoconf -*-
dnl Process this file with autoconf to produce a configure script.
AC_INIT([fdk-aac], [2.0.1], [http://sourceforge.net/projects/opencore-amr/])
AC_CONFIG_AUX_DIR(.)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([tar-ustar foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
2012-07-01 12:15:32 +03: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])
if test x$example = xyes; then
PKG_CHECK_MODULES([libavcodec], [libavcodec], [libavcodec=yes], [libavcodec=no])
PKG_CHECK_MODULES([libavutil], [libavutil], [libavutil=yes], [libavutil=no])
fi
2012-07-01 12:15:32 +03:00
dnl Automake conditionals to set
AM_CONDITIONAL(EXAMPLE, test x$example = xyes)
AM_CONDITIONAL(HAVE_LIBAVCODEC, test x$libavcodec = xyes)
2012-07-01 12:15:32 +03:00
dnl Checks for programs.
2012-07-01 12:15:32 +03:00
AC_PROG_CC
AC_PROG_CXX
LT_INIT
AC_SEARCH_LIBS([sin], [m])
dnl soname version to use
dnl goes by current[:revision[:age]] with the soname ending up as
dnl current.age.revision
FDK_AAC_VERSION=2:1:0
AS_IF([test x$enable_shared = xyes], [LIBS_PRIVATE=$LIBS], [LIBS_PUBLIC=$LIBS])
AC_SUBST(FDK_AAC_VERSION)
AC_SUBST(LIBS_PUBLIC)
AC_SUBST(LIBS_PRIVATE)
AC_CONFIG_FILES([Makefile
fdk-aac.pc])
AC_OUTPUT
if test x$example = xyes; then
AC_MSG_NOTICE([Found libavcodec: ${libavcodec}])
fi