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