1dnl                                               -*- Autoconf -*-
2dnl Process this file with autoconf to produce a configure script.
3
4AC_INIT([vo-aacenc], [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])])
9AM_MAINTAINER_MODE
10
11dnl Various options for configure
12AC_ARG_ENABLE([armv5e],
13            [AS_HELP_STRING([--enable-armv5e],
14               [enable ARMV5E assembler (default is no)])],
15            [armv5e=$enableval], [armv5e=no])
16AC_ARG_ENABLE([armv7neon],
17            [AS_HELP_STRING([--enable-armv7neon],
18               [enable ARMV7 neon assembler (default is no)])],
19            [armv7neon=$enableval], [armv7neon=no])
20
21AC_ARG_ENABLE([example],
22            [AS_HELP_STRING([--enable-example],
23                [enable example encoding program (default is no)])],
24            [example=$enableval], [example=no])
25
26dnl Automake conditionals to set
27AM_CONDITIONAL(ARMV5E, test x$armv5e = xyes)
28AM_CONDITIONAL(ARMV7NEON, test x$armv7neon = xyes)
29AM_CONDITIONAL(EXAMPLE, test x$example = xyes)
30
31dnl Checks for programs.
32AM_PROG_AS
33AC_PROG_CC_C99
34
35dnl Setup for libtool
36LT_INIT
37
38dnl soname version to use
39dnl goes by ‘current[:revision[:age]]’ with the soname ending up as
40dnl current.age.revision.
41VO_AACENC_VERSION=0:4:0
42AC_SUBST(VO_AACENC_VERSION)
43
44AC_CONFIG_FILES([Makefile
45                 vo-aacenc.pc])
46AC_OUTPUT
47