configure.ac 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. AC_PREREQ(2.60)
  2. m4_include([Source/autotools/Versions.m4])
  3. AC_INIT([WebKitGTK],[webkit_major_version.webkit_minor_version.webkit_micro_version],[http://bugs.webkit.org/])
  4. AC_CONFIG_MACRO_DIR([Source/autotools])
  5. AC_CONFIG_AUX_DIR([Source/autotools])
  6. AC_SUBST(ACLOCAL_AMFLAGS, "-I Source/autotools")
  7. AC_CONFIG_HEADERS([autotoolsconfig.h])
  8. AC_CONFIG_SRCDIR([Source/WebCore/config.h])
  9. WEBKIT_MAJOR_VERSION=webkit_major_version
  10. WEBKIT_MINOR_VERSION=webkit_minor_version
  11. WEBKIT_MICRO_VERSION=webkit_micro_version
  12. WEBKIT_USER_AGENT_MAJOR_VERSION=webkit_user_agent_major_version
  13. WEBKIT_USER_AGENT_MINOR_VERSION=webkit_user_agent_minor_version
  14. AC_SUBST(WEBKIT_MAJOR_VERSION)
  15. AC_SUBST(WEBKIT_MINOR_VERSION)
  16. AC_SUBST(WEBKIT_MICRO_VERSION)
  17. AC_SUBST(WEBKIT_USER_AGENT_MAJOR_VERSION)
  18. AC_SUBST(WEBKIT_USER_AGENT_MINOR_VERSION)
  19. AC_DEFINE([USER_AGENT_GTK_MAJOR_VERSION], [webkit_user_agent_major_version], [The major version used in user agent string])
  20. AC_DEFINE([USER_AGENT_GTK_MINOR_VERSION], [webkit_user_agent_minor_version], [The minor version used in user agent string])
  21. m4_include([Source/autotools/CheckSystemAndBasicDependencies.m4])
  22. m4_include([Source/autotools/SetupLibtool.m4])
  23. m4_include([Source/autotools/ReadCommandLineArguments.m4])
  24. m4_include([Source/autotools/FindDependencies.m4])
  25. m4_include([Source/autotools/SetupCompilerFlags.m4])
  26. m4_include([Source/autotools/SetupAutoconfHeader.m4])
  27. m4_include([Source/autotools/SetupWebKitFeatures.m4])
  28. # We would put AM_INIT_AUTOMAKE into SetupAutomake.m4, but seems to cause autoconf errors.
  29. AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
  30. m4_include([Source/autotools/SetupAutomake.m4])
  31. ######################################################################################
  32. # Processing of configuration files
  33. ######################################################################################
  34. AC_CONFIG_FILES([
  35. GNUmakefile Source/WebCore/platform/gtk/po/POTFILES
  36. Source/JavaScriptCore/javascriptcoregtk-${WEBKITGTK_API_VERSION}.pc:Source/JavaScriptCore/javascriptcoregtk.pc.in
  37. JavaScriptCore-${WEBKITGTK_API_VERSION}.gir:Source/JavaScriptCore/JavaScriptCore.gir.in])
  38. if test "$enable_webkit1" = "yes"; then
  39. AC_CONFIG_FILES([
  40. Source/WebKit/gtk/webkit/webkitversion.h
  41. Source/WebKit/gtk/${WEBKITGTK_PC_NAME}-${WEBKITGTK_API_VERSION}.pc:Source/WebKit/gtk/webkit.pc.in])
  42. fi
  43. if test "$enable_webkit2" = "yes"; then
  44. AC_CONFIG_FILES([
  45. DerivedSources/WebKit2/webkit2gtk/webkit2/WebKitVersion.h:Source/WebKit2/UIProcess/API/gtk/WebKitVersion.h.in
  46. Source/WebKit2/webkit2gtk-${WEBKITGTK_API_VERSION}.pc:Source/WebKit2/webkit2gtk.pc.in])
  47. fi
  48. m4_include([Source/autotools/PrintBuildConfiguration.m4])