configure.ac 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Copyright (C) 2011 Michael McMaster <michael@codesrc.com>
  2. #
  3. # This file is part of libzipper.
  4. #
  5. # libzipper is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # libzipper is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with libzipper. If not, see <http://www.gnu.org/licenses/>.
  17. AC_INIT([libzipper], m4_esyscmd_s([cat VERSION]), [michael@codesrc.com])
  18. AC_CANONICAL_HOST
  19. AC_CANONICAL_TARGET
  20. AM_INIT_AUTOMAKE([foreign])
  21. AC_CONFIG_HEADERS([autoconfig.h])
  22. AC_CONFIG_FILES([Makefile Doxyfile libzipper1.pc zipper.1])
  23. AM_MAINTAINER_MODE
  24. AC_SUBST([libzipper_version], m4_esyscmd_s([cat VERSION]))
  25. AC_PROG_CXX
  26. AC_LANG([C++])
  27. AM_PROG_LIBTOOL
  28. AC_FUNC_STRERROR_R
  29. AM_CONDITIONAL(HAVE_GNU_STRERROR,[test x$ac_cv_func_strerror_r_char_p = xyes])
  30. AC_CHECK_FUNCS([pread pwrite utimes localtime_r])
  31. AM_CONDITIONAL(HAVE_PREAD,[test x$ac_cv_func_pread = xyes])
  32. AM_CONDITIONAL(HAVE_PWRITE,[test x$ac_cv_func_pwrite = xyes])
  33. AM_CONDITIONAL(HAVE_UTIMES,[test x$ac_cv_func_utimes = xyes])
  34. DX_DOXYGEN_FEATURE([ON])
  35. DX_HTML_FEATURE([ON])
  36. DX_CHM_FEATURE(OFF)
  37. DX_CHI_FEATURE(OFF)
  38. DX_MAN_FEATURE(OFF)
  39. DX_RTF_FEATURE(OFF)
  40. DX_XML_FEATURE(OFF)
  41. DX_PDF_FEATURE(OFF)
  42. DX_PS_FEATURE(OFF)
  43. DX_INIT_DOXYGEN([libzipper], [Doxyfile], [doc])
  44. PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.3],,
  45. AC_MSG_ERROR([zlib 1.2.3 or newer not found.])
  46. )
  47. AC_OUTPUT