configure.ac 825 B

1234567891011121314151617181920212223242526272829303132
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([lua-clangc], [0.0.1], [cedlemo@gmx.com])
  5. AC_CONFIG_SRCDIR([configure.ac])
  6. AC_CONFIG_HEADERS([config.h])
  7. # Checks for programs.
  8. AC_PROG_CC(clang gcc)
  9. # Checks for libraries.
  10. PKG_CHECK_MODULES([DEPS], [lua])
  11. LUA_VERSION=$(pkg-config --modversion lua | awk -F "." '{print $1"."$2}')
  12. AC_SUBST([LUA_VERSION])
  13. libdir=$prefix/lib/lua/$LUA_VERSION/clangc
  14. # Checks for header files.
  15. AC_CHECK_HEADERS([string.h stdlib.h clang-c/Index.h])
  16. # Checks for typedefs, structures, and compiler characteristics.
  17. # Checks for library functions.
  18. AM_INIT_AUTOMAKE(1.13 dist-bzip2 foreign subdir-objects)
  19. LT_PREREQ(2.4)
  20. LT_INIT
  21. AC_CONFIG_FILES([
  22. Makefile
  23. src/init.lua
  24. ])
  25. AC_OUTPUT