configure.ac 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
  5. dnl AC_CONFIG_SRCDIR([src/main-window.h])
  6. PKG_CHECK_MODULES([MYAPP], [gtkmm-3.0 >= 3.8.0])
  7. PKG_CHECK_MODULES([GLOOX], [gloox >= 1.0.0], [enable_gloox=yes], [enable_gloox=no])
  8. if test x$enable_gloox = xno ; then
  9. AC_MSG_NOTICE([Error - gloox is required to build the app])
  10. else
  11. AC_SUBST(GLOOX_CFLAGS)
  12. AC_SUBST(GLOOX_LIBS)
  13. AC_DEFINE(HAVE_GLOOX, 1, [gloox provides jabber implementation])
  14. fi
  15. AM_INIT_AUTOMAKE
  16. AC_CONFIG_HEADERS([config.h])
  17. AC_CONFIG_MACRO_DIR([m4])
  18. # Checks for programs.
  19. AC_PROG_CXX
  20. AX_CXX_COMPILE_STDCXX_11([ext], [mandatory])
  21. dnl ACX_PTHREAD(
  22. dnl [AC_DEFINE([HAVE_PTHREAD], [1],
  23. dnl [Define if you have POSIX threads libraries and header files.])
  24. dnl LIBS="$PTHREAD_LIBS $LIBS"
  25. dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  26. dnl CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
  27. dnl CC="$PTHREAD_CC"
  28. dnl CXX="$PTHREAD_CXX"])
  29. # AC_PROG_CC
  30. # Checks for libraries.
  31. AC_SEARCH_LIBS([pthread_create],[pthread])
  32. # Checks for header files.
  33. AC_CHECK_HEADERS([string.h])
  34. # Checks for typedefs, structures, and compiler characteristics.
  35. # Checks for library functions.
  36. AC_CONFIG_FILES([Makefile
  37. src/Makefile])
  38. AC_OUTPUT