Imported Debian version 0.1.3.1
[deb_fdk-aac.git] / configure.ac
CommitLineData
56e73ff7
DM
1dnl -*- Autoconf -*-
2dnl Process this file with autoconf to produce a configure script.
3
4AC_INIT([fdk-aac], [0.1.3], [http://sourceforge.net/projects/opencore-amr/])
5AC_CONFIG_AUX_DIR(.)
6AC_CONFIG_MACRO_DIR([m4])
7AM_INIT_AUTOMAKE([tar-ustar foreign])
8m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9
10dnl Various options for configure
11AC_ARG_ENABLE([example],
12 [AS_HELP_STRING([--enable-example],
13 [enable example encoding program (default is no)])],
14 [example=$enableval], [example=no])
15
16dnl Automake conditionals to set
17AM_CONDITIONAL(EXAMPLE, test x$example = xyes)
18
19dnl Checks for programs.
20AC_PROG_CC
21AC_PROG_CXX
22LT_INIT
23
24AC_CHECK_LIB([m], [sin])
25
26dnl soname version to use
27dnl goes by ‘current[:revision[:age]]’ with the soname ending up as
28dnl current.age.revision
29FDK_AAC_VERSION=0:4:0
30
31AS_IF([test x$enable_shared = xyes], [LIBS_PRIVATE=$LIBS], [LIBS_PUBLIC=$LIBS])
32AC_SUBST(FDK_AAC_VERSION)
33AC_SUBST(LIBS_PUBLIC)
34AC_SUBST(LIBS_PRIVATE)
35
36AC_CONFIG_FILES([Makefile
37 fdk-aac.pc])
38AC_OUTPUT