You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

124 lines
3.4 KiB

  1. AC_INIT(xapp, 1.0.2)
  2. AC_CONFIG_SRCDIR(libxapp)
  3. AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz tar-ustar])
  4. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  5. AC_CONFIG_HEADERS([config.h])
  6. AC_CONFIG_MACRO_DIR([m4])
  7. # Before making a release, the LT_VERSION string should be modified.
  8. # The string is of the form C:R:A.
  9. # - If interfaces have been changed or added, but binary compatibility has
  10. # been preserved, change to C+1:0:A+1
  11. # - If binary compatibility has been broken (eg removed or changed interfaces)
  12. # change to C+1:0:0
  13. # - If the interface is the same as the previous version, change to C:R+1:A
  14. LT_VERSION=1:0:0
  15. AC_SUBST(LT_VERSION)
  16. LT_PREREQ([2.2.6])
  17. LT_INIT([dlopen win32-dll disable-static])
  18. IT_PROG_INTLTOOL([0.40.6])
  19. AC_PROG_CC
  20. PKG_PROG_PKG_CONFIG
  21. GNOME_COMPILE_WARNINGS([maximum])
  22. GNOME_MAINTAINER_MODE_DEFINES
  23. AC_ARG_ENABLE(deprecation_flags,
  24. [AC_HELP_STRING([--enable-deprecation-flags],
  25. [use *_DISABLE_DEPRECATED flags @<:@default=no@:>@])],,
  26. [enable_deprecation_flags=no])
  27. if test "x$enable_deprecation_flags" = "xyes"; then
  28. DISABLE_DEPRECATED_CFLAGS=$DISABLE_DEPRECATED
  29. AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
  30. fi
  31. dnl If you add a version number here, you *must* add an AC_SUBST line for
  32. dnl it too, or it will never make it into the spec file!
  33. GDK_PIXBUF_REQUIRED=2.22.0
  34. GTK_REQUIRED=3.3.16
  35. GLIB_REQUIRED=2.37.3
  36. AC_SUBST(GTK_REQUIRED)
  37. AC_SUBST(GLIB_REQUIRED)
  38. AC_SUBST(GDK_PIXBUF_REQUIRED)
  39. PKG_CHECK_MODULES(XLIB, x11,
  40. X11_PACKAGE=x11,
  41. [X11_PACKAGE=
  42. AC_PATH_XTRA
  43. if test "x$no_x" = xyes; then
  44. AC_MSG_ERROR("no (requires X development libraries)")
  45. else
  46. XLIB_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
  47. XLIB_CFLAGS=$X_CFLAGS
  48. fi])
  49. AC_SUBST(X11_PACKAGE)
  50. AC_SUBST(XLIB_CFLAGS)
  51. AC_SUBST(XLIB_LIBS)
  52. dnl pkg-config dependency checks
  53. PKG_CHECK_MODULES(XAPP, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED
  54. gtk+-3.0 >= $GTK_REQUIRED
  55. glib-2.0 >= $GLIB_REQUIRED
  56. gio-2.0 >= $GLIB_REQUIRED
  57. cairo
  58. libgnomekbdui)
  59. dnl Language Support
  60. GETTEXT_PACKAGE=xapp
  61. AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
  62. [The gettext translation domain])
  63. AC_SUBST(GETTEXT_PACKAGE)
  64. AM_GLIB_GNU_GETTEXT
  65. GLIB_GSETTINGS
  66. GOBJECT_INTROSPECTION_CHECK([0.9.7])
  67. AC_CONFIG_FILES([
  68. Makefile
  69. libxapp/Makefile
  70. libxapp/xapp.pc
  71. libxapp/xapp-uninstalled.pc
  72. schemas/Makefile
  73. po/Makefile.in
  74. files/Makefile
  75. ])
  76. AC_OUTPUT
  77. dnl ---------------------------------------------------------------------------
  78. dnl - Show summary
  79. dnl ---------------------------------------------------------------------------
  80. echo "
  81. prefix: ${prefix}
  82. exec_prefix: ${exec_prefix}
  83. libdir: ${libdir}
  84. bindir: ${bindir}
  85. sbindir: ${sbindir}
  86. sysconfdir: ${sysconfdir}
  87. localstatedir: ${localstatedir}
  88. datadir: ${datadir}
  89. source code location: ${srcdir}
  90. compiler: ${CC}
  91. cflags: ${CFLAGS}
  92. Maintainer mode: ${USE_MAINTAINER_MODE}
  93. Use *_DISABLE_DEPRECATED: ${enable_deprecation_flags}
  94. "