configure.ac 691 B

1234567891011121314151617181920212223
  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_PREREQ(2.59)
  3. AC_INIT(OPCUAServer, 1.0)
  4. AC_CANONICAL_SYSTEM
  5. AM_INIT_AUTOMAKE()
  6. AC_PROG_CC
  7. AM_PROG_CC_C_O
  8. AC_CHECK_LIB([m],[exp],,AC_MSG_ERROR([Libm missing]))
  9. PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],[have_check="yes"],AC_MSG_WARN([Check not found; cannot run unit tests!])
  10. [have_check="no"])
  11. AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
  12. AM_CONDITIONAL([TARGET_WIN],[test "${host_os}" = "mingw32"])
  13. AM_CONDITIONAL([TARGET_LINUX],[test "${host_os}" = "linux-gnu" || test "${host_os}" = "linux"])
  14. AC_PROG_LIBTOOL
  15. AC_CONFIG_MACRO_DIR([m4])
  16. AC_CONFIG_FILES(Makefile src/Makefile tests/Makefile)
  17. AC_OUTPUT