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.

configure.ac.in 8.7 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. dnl
  2. dnl Copyright (c) 2004 - 2008 The Xfce development team
  3. dnl
  4. dnl 2005-2007 Jasper Huijsmans <jasper@xfce.org>
  5. dnl 2006-2008 Nick Schermer <nick@xfce.org>
  6. dnl
  7. dnl ***************************
  8. dnl *** Version information ***
  9. dnl ***************************
  10. m4_define([libxfce4panel_verinfo], [4:0:0]) dnl current:revision:age
  11. m4_define([libxfce4panel_version_api], [1.0])
  12. m4_define([xfce4_panel_config_version], [2])
  13. m4_define([xfce4_panel_version_major], [4])
  14. m4_define([xfce4_panel_version_minor], [10])
  15. m4_define([xfce4_panel_version_micro], [1])
  16. m4_define([xfce4_panel_version_nano], []) dnl leave this empty to have no nano version
  17. m4_define([xfce4_panel_version_build], [@REVISION@])
  18. m4_define([xfce4_panel_version_tag], [])
  19. m4_define([xfce4_panel_version], [xfce4_panel_version_major().xfce4_panel_version_minor().xfce4_panel_version_micro()ifelse(xfce4_panel_version_nano(), [], [], [.xfce4_panel_version_nano()])ifelse(xfce4_panel_version_tag(), [git], [xfce4_panel_version_tag()-xfce4_panel_version_build()], [xfce4_panel_version_tag()])])
  20. dnl *******************************************
  21. dnl *** Debugging support for GIT snapshots ***
  22. dnl *******************************************
  23. m4_define([panel_debug_default], [ifelse(xfce4_panel_version_tag(), [git], [yes], [minimum])])
  24. dnl ***************************
  25. dnl *** Initialize autoconf ***
  26. dnl ***************************
  27. AC_COPYRIGHT([Copyright (c) 2002 - 2011
  28. The Xfce development team. All rights reserved.
  29. Written for Xfce by Jasper Huijsmans <jasper@xfce.org>
  30. and Nick Schermer <nick@xfce.org>.])
  31. AC_INIT([xfce4-panel], [xfce4_panel_version], [http://bugzilla.xfce.org/], [xfce4-panel])
  32. AC_PREREQ([2.50])
  33. AC_REVISION([xfce4_panel_version_build])
  34. dnl ***************************
  35. dnl *** Initialize automake ***
  36. dnl ***************************
  37. AC_CONFIG_HEADERS([config.h])
  38. AM_INIT_AUTOMAKE([1.8 no-dist-gzip dist-bzip2 tar-ustar])
  39. AM_MAINTAINER_MODE()
  40. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  41. dnl ******************************
  42. dnl *** Set helper path prefix ***
  43. dnl ******************************
  44. AC_ARG_WITH([helper-path-prefix],
  45. [AC_HELP_STRING([--with-helper-path-prefix=PATH],
  46. [Path prefix under which helper executables will be installed (default: $libdir)])],
  47. [HELPER_PATH_PREFIX="$withval"],
  48. [HELPER_PATH_PREFIX="$libdir"])
  49. AC_SUBST([HELPER_PATH_PREFIX])
  50. dnl *******************************
  51. dnl *** Check for UNIX variants ***
  52. dnl *******************************
  53. AC_AIX()
  54. AC_ISC_POSIX()
  55. dnl ********************************
  56. dnl *** Check for basic programs ***
  57. dnl ********************************
  58. AC_PROG_CC()
  59. AM_PROG_CC_C_O()
  60. AC_PROG_LD()
  61. AC_PROG_INSTALL()
  62. AC_PROG_INTLTOOL()
  63. AC_CHECK_PROGS([PERL], [perl5 perl])
  64. m4_ifdef([AC_PROG_SED], [AC_PROG_SED], [AC_CHECK_PROG(SED, sed, sed)])
  65. dnl **************************
  66. dnl *** Initialize libtool ***
  67. dnl **************************
  68. LT_PREREQ([2.2.6])
  69. LT_INIT([disable-static])
  70. dnl **************************************
  71. dnl *** Substitute version information ***
  72. dnl **************************************
  73. LIBXFCE4PANEL_VERINFO=libxfce4panel_verinfo()
  74. AC_SUBST([LIBXFCE4PANEL_VERINFO])
  75. dnl **************************
  76. dnl *** Substitute version ***
  77. dnl **************************
  78. LIBXFCE4PANEL_VERSION=xfce4_panel_version()
  79. LIBXFCE4PANEL_VERSION_API=libxfce4panel_version_api()
  80. LIBXFCE4PANEL_VERSION_MAJOR=xfce4_panel_version_major()
  81. LIBXFCE4PANEL_VERSION_MINOR=xfce4_panel_version_minor()
  82. LIBXFCE4PANEL_VERSION_MICRO=xfce4_panel_version_micro()
  83. AC_SUBST([LIBXFCE4PANEL_VERSION])
  84. AC_SUBST([LIBXFCE4PANEL_VERSION_API])
  85. AC_SUBST([LIBXFCE4PANEL_VERSION_MAJOR])
  86. AC_SUBST([LIBXFCE4PANEL_VERSION_MINOR])
  87. AC_SUBST([LIBXFCE4PANEL_VERSION_MICRO])
  88. dnl *********************************
  89. dnl *** Substitute config version ***
  90. dnl *********************************
  91. XFCE4_PANEL_CONFIG_VERSION=xfce4_panel_config_version()
  92. AC_DEFINE([XFCE4_PANEL_CONFIG_VERSION], xfce4_panel_config_version(), [config migration version])
  93. AC_SUBST([XFCE4_PANEL_CONFIG_VERSION])
  94. dnl **********************************
  95. dnl *** Check for standard headers ***
  96. dnl **********************************
  97. AC_HEADER_STDC()
  98. AC_CHECK_HEADERS([stdlib.h unistd.h locale.h stdio.h errno.h time.h string.h \
  99. math.h sys/types.h sys/wait.h memory.h signal.h sys/prctl.h \
  100. libintl.h])
  101. AC_CHECK_FUNCS([bind_textdomain_codeset])
  102. dnl ******************************
  103. dnl *** Check for i18n support ***
  104. dnl ******************************
  105. XDT_I18N([@LINGUAS@])
  106. dnl *******************************
  107. dnl *** Check for X11 installed ***
  108. dnl *******************************
  109. XDT_CHECK_LIBX11_REQUIRE()
  110. dnl ***********************************
  111. dnl *** Check for required packages ***
  112. dnl ***********************************
  113. XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.9.0])
  114. XDT_CHECK_PACKAGE([GARCON], [garcon-1], [0.1.5])
  115. XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.9.0])
  116. XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.9.0])
  117. XDT_CHECK_PACKAGE([EXO], [exo-1], [0.7.2])
  118. XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.20.0])
  119. XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.24.0])
  120. XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.24.0])
  121. XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.24.0])
  122. XDT_CHECK_PACKAGE([DBUS], [dbus-glib-1], [0.73])
  123. XDT_CHECK_PACKAGE([CAIRO], [cairo], [1.0.0])
  124. XDT_CHECK_PACKAGE([LIBWNCK], [libwnck-1.0], [2.30])
  125. dnl **********************************
  126. dnl *** Optional GIO UNIX features ***
  127. dnl **********************************
  128. XDT_CHECK_OPTIONAL_PACKAGE([GIO_UNIX], [gio-unix-2.0],
  129. [2.24.0], [gio-unix], [GIO UNIX features])
  130. dnl *************************
  131. dnl *** Check for gtk-doc ***
  132. dnl *************************
  133. GTK_DOC_CHECK([1.9])
  134. dnl ***********************************
  135. dnl *** Check for debugging support ***
  136. dnl ***********************************
  137. XDT_FEATURE_DEBUG([panel_debug_default])
  138. dnl **************************************
  139. dnl *** Check for linker optimizations ***
  140. dnl **************************************
  141. XDT_FEATURE_LINKER_OPTS()
  142. dnl ****************************************
  143. dnl *** Check for ELF visibility support ***
  144. dnl ****************************************
  145. AC_ARG_ENABLE([visibility], AC_HELP_STRING([--disable-visibility], [Do not use ELF visibility attributes]), [], [enable_visibility=yes])
  146. have_gnuc_visibility=no
  147. if test x"$enable_visibility" != x"no"; then
  148. dnl Check whether the compiler supports the visibility attribute
  149. save_CFLAGS="$CFLAGS"
  150. CFLAGS="$CFLAGS -Wall -Werror"
  151. AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
  152. AC_COMPILE_IFELSE(AC_LANG_SOURCE(
  153. [
  154. void test_default (void);
  155. void test_hidden (void);
  156. void __attribute__ ((visibility("default"))) test_default (void) {}
  157. void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
  158. int main (int argc, char **argv) { test_default (); test_hidden (); return 0; }
  159. ]),
  160. [
  161. have_gnuc_visibility=yes
  162. AC_MSG_RESULT([yes])
  163. ],
  164. [
  165. AC_MSG_RESULT([no])
  166. ])
  167. CFLAGS="$save_CFLAGS"
  168. fi
  169. if test x"$have_gnuc_visibility" = x"yes"; then
  170. CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
  171. fi
  172. AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test x"$have_gnuc_visibility" = x"yes"])
  173. dnl *************************************
  174. dnl *** Compensate for broken gtk-doc ***
  175. dnl *************************************
  176. XDT_SUPPORTED_FLAGS([GTK_DOC_EXTRA_CFLAGS], [-Wno-sign-compare])
  177. AC_SUBST([GTK_DOC_EXTRA_CFLAGS])
  178. dnl *********************************
  179. dnl *** Substitute platform flags ***
  180. dnl *********************************
  181. AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
  182. AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
  183. AC_SUBST([PLATFORM_CPPFLAGS])
  184. AC_MSG_CHECKING([PLATFORM_CFLAGS])
  185. AC_MSG_RESULT([$PLATFORM_CFLAGS])
  186. AC_SUBST([PLATFORM_CFLAGS])
  187. AC_MSG_CHECKING([PLATFORM_LDFLAGS])
  188. AC_MSG_RESULT([$PLATFORM_LDFLAGS])
  189. AC_SUBST([PLATFORM_LDFLAGS])
  190. AC_OUTPUT([
  191. Makefile
  192. common/Makefile
  193. docs/Makefile
  194. docs/references/Makefile
  195. docs/references/version.xml
  196. icons/Makefile
  197. icons/16x16/Makefile
  198. icons/22x22/Makefile
  199. icons/24x24/Makefile
  200. icons/32x32/Makefile
  201. icons/48x48/Makefile
  202. icons/scalable/Makefile
  203. libxfce4panel/Makefile
  204. libxfce4panel/libxfce4panel-1.0.pc
  205. libxfce4panel/libxfce4panel-config.h
  206. migrate/Makefile
  207. migrate/default.xml
  208. panel/Makefile
  209. wrapper/Makefile
  210. plugins/Makefile
  211. plugins/actions/Makefile
  212. plugins/applicationsmenu/Makefile
  213. plugins/clock/Makefile
  214. plugins/directorymenu/Makefile
  215. plugins/launcher/Makefile
  216. plugins/pager/Makefile
  217. plugins/separator/Makefile
  218. plugins/showdesktop/Makefile
  219. plugins/systray/Makefile
  220. plugins/tasklist/Makefile
  221. plugins/windowmenu/Makefile
  222. po/Makefile.in
  223. ])
  224. dnl ***************************
  225. dnl *** Print configuration ***
  226. dnl ***************************
  227. echo
  228. echo "Build Configuration:"
  229. echo
  230. echo "* Debug Support: $enable_debug"
  231. echo "* GNU Visibility: $have_gnuc_visibility"
  232. echo