configure.ac 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This program is free software; you can redistribute it and/or
  2. # modify it under the terms of the GNU General Public License
  3. # as published by the Free Software Foundation; either version 2
  4. # of the License, or (at your option) any later version.
  5. #
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. # GNU General Public License for more details.
  10. #
  11. # Author: g0tsu
  12. # Email: g0tsu at dnmx.0rg
  13. AC_INIT([libhighlight], [0.0.1], [bug-automake@gnu.org])
  14. AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
  15. AC_PROG_CC
  16. AM_PROG_AR
  17. AC_CHECK_HEADERS([stdint.h stdlib.h string.h unistd.h])
  18. AC_CONFIG_MACRO_DIRS([m4])
  19. #CFLAGS="-fsanitize=address -ggdb -Wall"
  20. AC_ARG_ENABLE([html],
  21. AS_HELP_STRING([--enable-html], [enable html support]))
  22. AS_IF([test "x$enable_html" = "xyes"], [
  23. AC_DEFINE(CONFIG_USE_HTML, 1, [enable html support])
  24. ])
  25. AC_CHECK_HEADERS([stdlib.h])
  26. AC_CONFIG_HEADERS([config.h])
  27. AC_CONFIG_FILES([
  28. Makefile
  29. src/Makefile
  30. test/Makefile
  31. highlight/Makefile
  32. ])
  33. LT_INIT
  34. AC_OUTPUT