configure.in 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. AC_INIT(tap, 1.01)
  2. AC_CONFIG_SRCDIR(src/tap.c)
  3. AM_INIT_AUTOMAKE([foreign])
  4. AC_PROG_CC
  5. AC_PROG_LIBTOOL
  6. AC_PROG_INSTALL
  7. # Checks for libraries
  8. case "$host" in
  9. *-*-*freebsd4*)
  10. LDFLAGS="$LDFLAGS -pthread"
  11. HAVE_LIBPTHREAD=1
  12. ;;
  13. *)
  14. AC_CHECK_LIB(pthread, main)
  15. ;;
  16. esac
  17. # Checks for header files
  18. AC_HEADER_STDC
  19. AC_CHECK_HEADERS([stdlib.h])
  20. AC_CHECK_HEADERS([pthread.h])
  21. # Checks for typedefs, structures, and compiler characteristics.
  22. AC_C_CONST
  23. # Checks for library functions.
  24. AC_FUNC_VPRINTF
  25. AC_CHECK_FUNCS([atexit])
  26. AC_CONFIG_FILES([Makefile
  27. src/Makefile
  28. tests/Makefile
  29. tests/diag/Makefile
  30. tests/fail/Makefile
  31. tests/ok/Makefile
  32. tests/ok/ok-hash/Makefile
  33. tests/ok/ok-numeric/Makefile
  34. tests/ok/ok/Makefile
  35. tests/pass/Makefile
  36. tests/plan/Makefile
  37. tests/plan/no-tests/Makefile
  38. tests/plan/no_plan/Makefile
  39. tests/plan/not-enough-tests/Makefile
  40. tests/plan/sane/Makefile
  41. tests/plan/skip_all/Makefile
  42. tests/plan/too-many-plans/Makefile
  43. tests/plan/too-many-tests/Makefile
  44. tests/skip/Makefile
  45. tests/todo/Makefile
  46. ])
  47. AC_OUTPUT