configure.ac 1.1 KB

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