configure.ac 725 B

12345678910111213141516171819202122232425262728
  1. AC_PREREQ(2.59)
  2. AC_INIT([libtpl], [1.4], [thanson@users.sourceforge.net])
  3. AC_CONFIG_SRCDIR(src/tpl.c)
  4. AC_CONFIG_AUX_DIR(config)
  5. AC_CONFIG_HEADERS(config/config.h)
  6. AM_INIT_AUTOMAKE
  7. AC_PROG_CC
  8. dnl next 4 lines are a hack to avoid libtool's
  9. dnl needless checks for C++ and Fortran compilers
  10. m4_undefine([AC_PROG_CXX])
  11. m4_defun([AC_PROG_CXX],[])
  12. m4_undefine([AC_PROG_F77])
  13. m4_defun([AC_PROG_F77],[])
  14. AC_PROG_LIBTOOL
  15. dnl detect Cygwin or MinGW and use mmap family replacements
  16. AC_CONFIG_LIBOBJ_DIR(src/win)
  17. case $host in
  18. *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  19. AC_LIBOBJ(mmap)
  20. AC_MSG_NOTICE([using custom mmap for Cygwin/MinGW])
  21. ;;
  22. esac
  23. AC_CONFIG_FILES(src/win/Makefile src/Makefile Makefile)
  24. AC_OUTPUT