configure.ac 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. AC_PREREQ(2.59)
  2. AC_INIT([b2l-material-editor],[0.1])
  3. AC_CHECK_PROG(BISON,bison,bison)
  4. AM_INIT_AUTOMAKE([foreign subdir-objects no-define])
  5. AS_IF([test x$BISON != xbison],AC_MSG_ERROR([Could not find bison]))
  6. AC_CHECK_PROG(FLEX,flex,flex)
  7. AS_IF([test x$FLEX != xflex],AC_MSG_ERROR([Could not find flex]))
  8. AC_CHECK_LIB([dl],[dlopen],,AC_MSG_ERROR([Could not find libdl]))
  9. AC_CHECK_LIB([m],[sin],,AC_MSG_ERROR([Could not find libm]))
  10. AC_CHECK_LIB([glplatform],[glplatform_init],,AC_MSG_ERROR([Could not find libglplatform]))
  11. AC_MSG_CHECKING([if bison is new enough])
  12. dir=`mktemp -d`
  13. bison $srcdir/tests/test.y -o $dir/test.c || BISON=no
  14. rm -r $dir
  15. test $BISON = no && AC_MSG_ERROR([Bison version 3.0.4 or newer is required])
  16. AC_MSG_RESULT([yes])
  17. PKG_CHECK_MODULES(GLIB2,glib-2.0)
  18. PKG_CHECK_MODULES(GTK3,gtk+-3.0)
  19. PKG_CHECK_MODULES(GDKPIXBUF2,gdk-pixbuf-2.0)
  20. PKG_CHECK_MODULES(GMODULE2,gmodule-2.0)
  21. PKG_CHECK_MODULES(LIBFFI,libffi)
  22. PKG_CHECK_MODULES(GOBJECT_INTROSPECTION,gobject-introspection-1.0)
  23. AC_PROG_CC
  24. AC_PROG_RANLIB
  25. AC_CONFIG_FILES([Makefile])
  26. AC_OUTPUT