configure.ac 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. dnl
  2. dnl Process this file with autoconf to produce a configure script.
  3. dnl
  4. dnl Copyright (C) 2015 Alexander Andrejevic <theflash AT sdf DOT lonestar DOT org>
  5. dnl
  6. dnl This program is free software: you can redistribute it and/or modify
  7. dnl it under the terms of the GNU Affero General Public License as published
  8. dnl by the Free Software Foundation, either version 3 of the License, or
  9. dnl (at your option) any later version.
  10. dnl
  11. dnl This program is distributed in the hope that it will be useful,
  12. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. dnl GNU Affero General Public License for more details.
  15. dnl
  16. dnl You should have received a copy of the GNU Affero General Public License
  17. dnl along with this program. If not, see <http://www.gnu.org/licenses/>
  18. dnl
  19. AC_PREREQ([2.69])
  20. AC_INIT([intfictest], [0.1])
  21. AC_CONFIG_HEADERS([src/config.h])
  22. AM_INIT_AUTOMAKE([1.11.6 foreign])
  23. AC_CONFIG_FILES([Makefile src/Makefile])
  24. dnl Checks for programs
  25. AC_PROG_CC
  26. dnl Checks for header files.
  27. AC_CHECK_HEADERS([inttypes.h libintl.h malloc.h stddef.h stdlib.h string.h unistd.h])
  28. dnl Checks for typedefs, structures, and compiler characteristics.
  29. AC_TYPE_INT16_T
  30. AC_TYPE_INT32_T
  31. AC_TYPE_INT8_T
  32. AC_TYPE_SIZE_T
  33. AC_TYPE_UINT16_T
  34. AC_TYPE_UINT32_T
  35. AC_TYPE_UINT8_T
  36. dnl Checks for library functions.
  37. dnl Checks for required libraries
  38. PKG_CHECK_MODULES(INTFIC, [libintfic >= 0.1])
  39. AC_SUBST([INTFIC_CFLAGS])
  40. AC_SUBST([INTFIC_LIBS])
  41. AC_OUTPUT