Package list xapp / 2e0dc57
update some files modified by the build Michael Webster 4 years ago
3 changed file(s) with 41 addition(s) and 46 deletion(s). Raw diff Collapse all Expand all
00 dnl -*- mode: autoconf -*-
11
2 # serial 1
2 # serial 2
33
44 dnl Usage:
55 dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
99 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
1010 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
1111
12 ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"])
13 AC_MSG_CHECKING([for gtk-doc])
14 PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no])
15 AC_MSG_RESULT($have_gtk_doc)
16
17 if test "$have_gtk_doc" = "no"; then
18 AC_MSG_WARN([
19 You will not be able to create source packages with 'make dist'
20 because $gtk_doc_requires is not found.])
21 fi
22
1223 dnl check for tools we added during development
13 AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
24 dnl Use AC_CHECK_PROG to avoid the check target using an absolute path that
25 dnl may not be writable by the user. Currently, automake requires that the
26 dnl test name must end in '.test'.
27 dnl https://bugzilla.gnome.org/show_bug.cgi?id=701638
28 AC_CHECK_PROG([GTKDOC_CHECK],[gtkdoc-check],[gtkdoc-check.test])
29 AC_PATH_PROG([GTKDOC_CHECK_PATH],[gtkdoc-check])
1430 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
1531 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
1632
2743 [use gtk-doc to build documentation [[default=no]]]),,
2844 [enable_gtk_doc=no])
2945
30 if test x$enable_gtk_doc = xyes; then
31 ifelse([$1],[],
32 [PKG_CHECK_EXISTS([gtk-doc],,
33 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
34 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
35 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
36 dnl don't check for glib if we build glib
37 if test "x$PACKAGE_NAME" != "xglib"; then
38 dnl don't fail if someone does not have glib
39 PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,)
40 fi
46 AC_MSG_CHECKING([whether to build gtk-doc documentation])
47 AC_MSG_RESULT($enable_gtk_doc)
48
49 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
50 AC_MSG_ERROR([
51 You must have $gtk_doc_requires installed to build documentation for
52 $PACKAGE_NAME. Please install gtk-doc or disable building the
53 documentation by adding '--disable-gtk-doc' to '[$]0'.])
4154 fi
4255
43 AC_MSG_CHECKING([whether to build gtk-doc documentation])
44 AC_MSG_RESULT($enable_gtk_doc)
56 dnl don't check for glib if we build glib
57 if test "x$PACKAGE_NAME" != "xglib"; then
58 dnl don't fail if someone does not have glib
59 PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,[:])
60 fi
4561
4662 dnl enable/disable output formats
4763 AC_ARG_ENABLE([gtk-doc-html],
5773 enable_gtk_doc_pdf=no
5874 fi
5975
76 if test -z "$AM_DEFAULT_VERBOSITY"; then
77 AM_DEFAULT_VERBOSITY=1
78 fi
79 AC_SUBST([AM_DEFAULT_VERBOSITY])
6080
81 AM_CONDITIONAL([HAVE_GTK_DOC], [test x$have_gtk_doc = xyes])
6182 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
6283 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
6384 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
153153
154154 # Substitute ALL_LINGUAS so we can use it in po/Makefile
155155 AC_SUBST(ALL_LINGUAS)
156
157 # Set DATADIRNAME correctly if it is not set yet
158 # (copied from glib-gettext.m4)
159 if test -z "$DATADIRNAME"; then
160 AC_LINK_IFELSE(
161 [AC_LANG_PROGRAM([[]],
162 [[extern int _nl_msg_cat_cntr;
163 return _nl_msg_cat_cntr]])],
164 [DATADIRNAME=share],
165 [case $host in
166 *-*-solaris*)
167 dnl On Solaris, if bind_textdomain_codeset is in libc,
168 dnl GNU format message catalog is always supported,
169 dnl since both are added to the libc all together.
170 dnl Hence, we'd like to go with DATADIRNAME=share
171 dnl in this case.
172 AC_CHECK_FUNC(bind_textdomain_codeset,
173 [DATADIRNAME=share], [DATADIRNAME=lib])
174 ;;
175 *)
176 [DATADIRNAME=lib]
177 ;;
178 esac])
179 fi
180 AC_SUBST(DATADIRNAME)
181156
182157 IT_PO_SUBDIR([po])
183158
3232 datadir = @datadir@
3333 datarootdir = @datarootdir@
3434 libdir = @libdir@
35 DATADIRNAME = @DATADIRNAME@
36 itlocaledir = $(prefix)/$(DATADIRNAME)/locale
35 localedir = @localedir@
3736 subdir = po
3837 install_sh = @install_sh@
3938 # Automake >= 1.8 provides @mkdir_p@.
7978
8079 .po.pox:
8180 $(MAKE) $(GETTEXT_PACKAGE).pot
82 $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
81 $(MSGMERGE) $* $(GETTEXT_PACKAGE).pot -o $*.pox
8382
8483 .po.mo:
8584 $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
107106 install-data-yes: all
108107 linguas="$(USE_LINGUAS)"; \
109108 for lang in $$linguas; do \
110 dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
109 dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
111110 $(mkdir_p) $$dir; \
112111 if test -r $$lang.gmo; then \
113112 $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
141140 uninstall:
142141 linguas="$(USE_LINGUAS)"; \
143142 for lang in $$linguas; do \
144 rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
145 rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
143 rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
144 rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
146145 done
147146
148147 check: all $(GETTEXT_PACKAGE).pot