2 # Process this file with autoconf to produce a configure script.
4 AC_INIT([opencore-amr], [0.1.2], [https://sourceforge.net/apps/trac/opencore-amr/])
6 AC_CONFIG_MACRO_DIR([m4])
7 AM_INIT_AUTOMAKE([tar-ustar])
8 AC_CONFIG_HEADERS([config.h])
11 # Cross compiling support
15 # Various options for configure
16 AC_ARG_ENABLE([compile-c],
17 [AS_HELP_STRING([--enable-compile-c],
18 [enable compiling as C program (default is yes)])],
19 [compile_as_c=$enableval],
22 # Automake conditionals to set
23 AM_CONDITIONAL(COMPILE_AS_C, test x$compile_as_c = xyes)
25 # Checks for programs.
34 AC_SUBST(LIBTOOL_DEPS)
36 # Checks for libraries.
37 AC_CHECK_LIB([m], [main])
39 # Checks for header files.
40 AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
42 # Checks for typedefs, structures, and compiler characteristics.
54 # Checks for library functions.
56 AC_CHECK_FUNCS([memset])
58 # OpenCORE AMR soname version to use
59 # goes by ‘current[:revision[:age]]’ with the soname ending up as
60 # current.age.revision.
61 OPENCORE_AMRNB_VERSION=0:2:0
62 OPENCORE_AMRWB_VERSION=0:2:0
63 AC_SUBST(OPENCORE_AMRNB_VERSION)
64 AC_SUBST(OPENCORE_AMRWB_VERSION)
66 AC_CONFIG_FILES([Makefile
70 amrnb/opencore-amrnb.pc
71 amrwb/opencore-amrwb.pc])