2012-04-05 05:46:51 -07:00
|
|
|
diff --git a/glib/Makefile.am b/glib/Makefile.am
|
2014-02-03 15:41:27 -08:00
|
|
|
index 4f60a02..583b914 100644
|
2012-04-05 05:46:51 -07:00
|
|
|
--- a/glib/Makefile.am
|
|
|
|
|
+++ b/glib/Makefile.am
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -6,14 +6,8 @@ include $(top_srcdir)/glib.mk
|
2012-04-05 05:46:51 -07:00
|
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
|
|
|
|
|
|
2014-02-03 15:41:27 -08:00
|
|
|
-SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs tests
|
2012-04-05 05:46:51 -07:00
|
|
|
-DIST_SUBDIRS = $(SUBDIRS) build
|
|
|
|
|
-
|
|
|
|
|
-bin_SCRIPTS = glib-gettextize
|
2014-02-03 15:41:27 -08:00
|
|
|
-
|
|
|
|
|
-if OS_LINUX
|
|
|
|
|
-TESTS += check-abis.sh
|
|
|
|
|
-endif
|
2012-04-05 05:46:51 -07:00
|
|
|
+SUBDIRS = . m4macros glib
|
|
|
|
|
+DIST_SUBDIRS = $(SUBDIRS)
|
|
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
|
-DG_LOG_DOMAIN=g_log_domain_glib \
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -22,85 +16,19 @@ AM_CPPFLAGS = \
|
2012-04-05 05:46:51 -07:00
|
|
|
-DGLIB_COMPILATION
|
|
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
|
- ChangeLog.pre-2-20 \
|
|
|
|
|
- ChangeLog.pre-2-18 \
|
|
|
|
|
- ChangeLog.pre-2-16 \
|
|
|
|
|
- ChangeLog.pre-2-14 \
|
|
|
|
|
- ChangeLog.pre-2-12 \
|
|
|
|
|
- ChangeLog.pre-2-10 \
|
|
|
|
|
- ChangeLog.pre-2-8 \
|
|
|
|
|
- ChangeLog.pre-2-6 \
|
|
|
|
|
- ChangeLog.pre-2-4 \
|
|
|
|
|
- ChangeLog.pre-2-2 \
|
|
|
|
|
- ChangeLog.pre-2-0 \
|
|
|
|
|
- ChangeLog.pre-1-2 \
|
|
|
|
|
- glib-zip.in \
|
|
|
|
|
- NEWS.pre-1-3 \
|
|
|
|
|
acglib.m4 \
|
|
|
|
|
- sanity_check \
|
|
|
|
|
- README.commits \
|
|
|
|
|
README.in \
|
|
|
|
|
- INSTALL.in \
|
|
|
|
|
- README.win32 \
|
|
|
|
|
- HACKING \
|
|
|
|
|
- autogen.sh \
|
2014-02-03 15:41:27 -08:00
|
|
|
glib.mk \
|
|
|
|
|
- glib-tap.mk \
|
|
|
|
|
- tap-test \
|
2012-04-05 05:46:51 -07:00
|
|
|
- makefile.msc \
|
|
|
|
|
- msvc_recommended_pragmas.h \
|
|
|
|
|
- config.h.win32.in \
|
|
|
|
|
- po/po2tbl.sed.in \
|
|
|
|
|
- glib-2.0.pc.in \
|
|
|
|
|
- gobject-2.0.pc.in \
|
|
|
|
|
- gmodule-2.0.pc.in \
|
|
|
|
|
- gmodule-export-2.0.pc.in \
|
|
|
|
|
- gmodule-no-export-2.0.pc.in \
|
|
|
|
|
- gthread-2.0.pc.in \
|
|
|
|
|
- gio-2.0.pc.in \
|
|
|
|
|
- gio-unix-2.0.pc.in \
|
2014-02-03 15:41:27 -08:00
|
|
|
- gio-windows-2.0.pc.in \
|
|
|
|
|
- check-abis.sh \
|
|
|
|
|
- gtk-doc.make \
|
|
|
|
|
$(NULL)
|
2012-04-05 05:46:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# These may be in the builddir too
|
2014-02-03 15:41:27 -08:00
|
|
|
BUILT_EXTRA_DIST += \
|
|
|
|
|
README \
|
2012-04-05 05:46:51 -07:00
|
|
|
- INSTALL \
|
|
|
|
|
- ChangeLog \
|
|
|
|
|
- config.h.win32 \
|
2014-02-03 15:41:27 -08:00
|
|
|
$(NULL)
|
2012-04-05 05:46:51 -07:00
|
|
|
|
|
|
|
|
CONFIGURE_DEPENDENCIES = acglib.m4
|
|
|
|
|
|
|
|
|
|
-ChangeLog:
|
|
|
|
|
- $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \
|
|
|
|
|
- (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GLIB_2_20_0^^.. --stat) | fmt --split-only > $@.tmp \
|
|
|
|
|
- && mv -f $@.tmp $@ \
|
|
|
|
|
- || ($(RM) $@.tmp; \
|
|
|
|
|
- echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
|
|
|
|
|
- (test -f $@ || echo git-log is required to generate this file >> $@)); \
|
|
|
|
|
- else \
|
|
|
|
|
- test -f $@ || \
|
|
|
|
|
- (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
|
|
|
|
|
- echo A git checkout and git-log is required to generate this file >> $@); \
|
|
|
|
|
- fi
|
|
|
|
|
-
|
|
|
|
|
-pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
-pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gio-2.0.pc
|
|
|
|
|
-
|
|
|
|
|
-if OS_UNIX
|
|
|
|
|
-pkgconfig_DATA += gio-unix-2.0.pc
|
|
|
|
|
-endif
|
|
|
|
|
-
|
|
|
|
|
-if OS_WIN32
|
|
|
|
|
-pkgconfig_DATA += gio-windows-2.0.pc
|
|
|
|
|
-endif
|
|
|
|
|
-
|
|
|
|
|
-$(pkgconfig_DATA): config.status
|
|
|
|
|
-
|
|
|
|
|
# build documentation when doing distcheck
|
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man --disable-maintainer-mode
|
|
|
|
|
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -111,7 +39,7 @@ distclean-local: lcov-clean
|
2012-04-05 05:46:51 -07:00
|
|
|
rm -f $(BUILT_EXTRA_DIST); \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
-.PHONY: files release sanity snapshot ChangeLog
|
|
|
|
|
+.PHONY: files release sanity snapshot
|
|
|
|
|
|
|
|
|
|
files:
|
|
|
|
|
@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
|
|
|
|
|
diff --git a/glib/configure.ac b/glib/configure.ac
|
2014-02-03 15:41:27 -08:00
|
|
|
index 797cb92..295e008 100644
|
2012-04-05 05:46:51 -07:00
|
|
|
--- a/glib/configure.ac
|
|
|
|
|
+++ b/glib/configure.ac
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -435,28 +435,9 @@ AS_IF([ test x"$glib_native_win32" = xyes], [
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
|
-dnl zlib support
|
|
|
|
|
-dnl
|
|
|
|
|
-PKG_CHECK_MODULES([ZLIB], [zlib], [found_zlib=yes], [found_zlib=no])
|
|
|
|
|
-AS_IF([test "x$found_zlib" = "xno"], [
|
|
|
|
|
- AC_CHECK_LIB(z, inflate, [AC_CHECK_HEADER(zlib.h, found_zlib=yes)])
|
|
|
|
|
- if test "x$found_zlib" = "xno" ; then
|
|
|
|
|
- AC_MSG_ERROR([*** Working zlib library and headers not found ***])
|
|
|
|
|
- fi
|
|
|
|
|
- ZLIB_LIBS='-lz'
|
|
|
|
|
- AC_SUBST(ZLIB_LIBS)
|
|
|
|
|
-])
|
|
|
|
|
-
|
|
|
|
|
-PKG_CHECK_MODULES(LIBFFI, [libffi >= 3.0.0])
|
|
|
|
|
-AC_SUBST(LIBFFI_CFLAGS)
|
|
|
|
|
-AC_SUBST(LIBFFI_LIBS)
|
|
|
|
|
-
|
|
|
|
|
-dnl
|
2012-04-05 05:46:51 -07:00
|
|
|
dnl gettext support
|
|
|
|
|
dnl
|
|
|
|
|
|
|
|
|
|
-ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
|
|
|
|
|
-AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
|
2012-06-04 15:16:07 -07:00
|
|
|
GLIB_GNU_GETTEXT
|
|
|
|
|
|
|
|
|
|
if test "$gt_cv_have_gettext" != "yes" ; then
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -1739,27 +1720,6 @@ AC_ARG_WITH(gio-module-dir,
|
|
|
|
|
GIO_MODULE_DIR=$with_gio_module_dir
|
|
|
|
|
AC_SUBST(GIO_MODULE_DIR)
|
|
|
|
|
|
|
|
|
|
-dnl **********************************
|
|
|
|
|
-dnl *** Check for libselinux (GIO) ***
|
|
|
|
|
-dnl **********************************
|
|
|
|
|
-AC_ARG_ENABLE(selinux,
|
|
|
|
|
- AS_HELP_STRING([--disable-selinux],
|
|
|
|
|
- [build without selinux support]))
|
|
|
|
|
-msg_selinux=no
|
|
|
|
|
-SELINUX_LIBS=
|
|
|
|
|
-AS_IF([ test "x$enable_selinux" != "xno"], [
|
|
|
|
|
-
|
|
|
|
|
- AC_CHECK_LIB(selinux, is_selinux_enabled,
|
|
|
|
|
- [AC_CHECK_HEADERS(selinux/selinux.h,
|
|
|
|
|
- [AC_CHECK_LIB(selinux, lgetfilecon_raw,
|
|
|
|
|
- [AC_DEFINE(HAVE_SELINUX, 1, [Define to 1 if libselinux is available])
|
|
|
|
|
- SELINUX_LIBS="-lselinux"
|
|
|
|
|
- msg_selinux=yes])
|
|
|
|
|
- ])
|
|
|
|
|
- ])
|
|
|
|
|
-])
|
|
|
|
|
-AC_SUBST(SELINUX_LIBS)
|
|
|
|
|
-
|
|
|
|
|
dnl *****************************
|
|
|
|
|
dnl ** Check for inotify (GIO) **
|
|
|
|
|
dnl *****************************
|
|
|
|
|
@@ -1799,118 +1759,6 @@ int main() { return 0; } ]])],
|
2012-05-14 15:59:11 -07:00
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_FEN, [test "$fen_support" = "yes"])
|
|
|
|
|
|
|
|
|
|
-dnl ****************************
|
|
|
|
|
-dnl *** Checks for FAM (GIO) ***
|
|
|
|
|
-dnl ****************************
|
|
|
|
|
-
|
|
|
|
|
-should_disable_fam=no
|
|
|
|
|
-
|
|
|
|
|
-AC_ARG_ENABLE(fam,
|
2014-02-03 15:41:27 -08:00
|
|
|
- AS_HELP_STRING([--disable-fam],
|
2012-05-14 15:59:11 -07:00
|
|
|
- [don't use fam for file system monitoring]),
|
|
|
|
|
- [
|
|
|
|
|
- if test "x$enable_fam" = "xno"; then
|
|
|
|
|
- should_disable_fam=yes
|
|
|
|
|
- fi
|
|
|
|
|
- ]
|
|
|
|
|
- )
|
|
|
|
|
-fam_support=no
|
|
|
|
|
-FAM_LIBS=
|
|
|
|
|
-if test "x$should_disable_fam" = "xno"; then
|
|
|
|
|
-AC_CHECK_LIB(fam, FAMOpen,
|
|
|
|
|
- [AC_CHECK_HEADERS(fam.h,
|
|
|
|
|
- [AC_DEFINE(HAVE_FAM, [], [Define if we have FAM])
|
|
|
|
|
- AC_CHECK_LIB(fam, FAMNoExists,
|
|
|
|
|
- AC_DEFINE(HAVE_FAM_NO_EXISTS, [], [Define if we have FAMNoExists in fam]))
|
|
|
|
|
- FAM_LIBS="-lfam"]
|
|
|
|
|
- fam_support=yes,
|
|
|
|
|
- AC_MSG_WARN(*** FAM support will not be built (header files not found) ***))],
|
|
|
|
|
- AC_MSG_WARN(*** FAM support will not be built (FAM library not found) ***))
|
|
|
|
|
-AC_SUBST(FAM_LIBS)
|
|
|
|
|
-fi
|
|
|
|
|
-AM_CONDITIONAL(HAVE_FAM, [test "$fam_support" = "yes"])
|
|
|
|
|
-
|
2014-02-03 15:41:27 -08:00
|
|
|
-
|
|
|
|
|
-dnl *****************************
|
|
|
|
|
-dnl *** Check for xattr (GIO) ***
|
|
|
|
|
-dnl *****************************
|
|
|
|
|
-AC_ARG_ENABLE(xattr,
|
|
|
|
|
- AS_HELP_STRING([--disable-xattr], [build without xattr support]))
|
|
|
|
|
-msg_xattr=no
|
|
|
|
|
-XATTR_LIBS=
|
|
|
|
|
-AS_IF([ test "x$enable_xattr" != "xno"], [
|
|
|
|
|
-
|
|
|
|
|
-dnl either glibc or libattr can provide xattr support
|
|
|
|
|
-
|
|
|
|
|
-dnl for both of them, we check for getxattr being in
|
|
|
|
|
-dnl the library and a valid xattr header.
|
|
|
|
|
-
|
|
|
|
|
-dnl try glibc
|
|
|
|
|
- AC_CHECK_LIB(c, getxattr,
|
|
|
|
|
- [AC_CHECK_HEADERS(sys/xattr.h,
|
|
|
|
|
- [AC_DEFINE(HAVE_XATTR, 1, [Define to 1 if xattr is available])
|
|
|
|
|
- msg_xattr=yes])
|
|
|
|
|
- ])
|
|
|
|
|
-
|
|
|
|
|
- AS_IF([ test "x$msg_xattr" != "xyes"], [
|
|
|
|
|
-dnl failure. try libattr
|
|
|
|
|
- AC_CHECK_LIB(attr, getxattr,
|
|
|
|
|
- [AC_CHECK_HEADERS(attr/xattr.h,
|
|
|
|
|
- [AC_DEFINE(HAVE_XATTR, 1, [Define to 1 if xattr is available])
|
|
|
|
|
- XATTR_LIBS="-lattr"
|
|
|
|
|
- msg_xattr=yes])
|
|
|
|
|
- ])
|
|
|
|
|
- ])
|
|
|
|
|
-
|
|
|
|
|
- AS_IF([ test "x$msg_xattr" = "xyes"], [
|
|
|
|
|
- AC_MSG_CHECKING([for XATTR_NOFOLLOW])
|
|
|
|
|
- AC_TRY_COMPILE([
|
|
|
|
|
- #include <stdio.h>
|
|
|
|
|
- #ifdef HAVE_SYS_TYPES_H
|
|
|
|
|
- #include <sys/types.h>
|
|
|
|
|
- #endif
|
|
|
|
|
- #ifdef HAVE_SYS_XATTR_H
|
|
|
|
|
- #include <sys/xattr.h>
|
|
|
|
|
- #elif HAVE_ATTR_XATTR_H
|
|
|
|
|
- #include <attr/xattr.h>
|
|
|
|
|
- #endif
|
|
|
|
|
- ],
|
|
|
|
|
- [ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);],
|
|
|
|
|
- [
|
|
|
|
|
- AC_DEFINE([HAVE_XATTR_NOFOLLOW], [1], [Define to 1 if xattr API uses XATTR_NOFOLLOW])
|
|
|
|
|
- AC_MSG_RESULT([yes])
|
|
|
|
|
- ],
|
|
|
|
|
- [AC_MSG_RESULT([no])]
|
|
|
|
|
- )
|
|
|
|
|
- ])
|
|
|
|
|
-])
|
|
|
|
|
-AC_SUBST(XATTR_LIBS)
|
|
|
|
|
-
|
|
|
|
|
-dnl ************************
|
|
|
|
|
-dnl *** check for libelf ***
|
|
|
|
|
-dnl ************************
|
|
|
|
|
-AC_ARG_ENABLE(libelf,
|
|
|
|
|
- AS_HELP_STRING([--disable-libelf], [build without libelf support]))
|
|
|
|
|
-AS_IF([ test "x$enable_libelf" != "xno"],[
|
|
|
|
|
-PKG_CHECK_MODULES([LIBELF], [libelf >= 0.8.12], [have_libelf=yes], [have_libelf=maybe])
|
|
|
|
|
-AS_IF([ test $have_libelf = maybe ], [
|
|
|
|
|
- glib_save_LIBS=$LIBS
|
|
|
|
|
- AC_CHECK_LIB([elf], [elf_begin], [:], [have_libelf=no])
|
|
|
|
|
- AC_CHECK_LIB([elf], [elf_getshdrstrndx], [:], [have_libelf=no])
|
|
|
|
|
- AC_CHECK_LIB([elf], [elf_getshdrnum], [:], [have_libelf=no])
|
|
|
|
|
- AC_CHECK_HEADER([libelf.h], [:], [have_libelf=no])
|
|
|
|
|
- LIBS=$glib_save_LIBS
|
|
|
|
|
-
|
|
|
|
|
- if test $have_libelf != no; then
|
|
|
|
|
- LIBELF_LIBS=-lelf
|
|
|
|
|
- have_libelf=yes
|
|
|
|
|
- fi
|
|
|
|
|
-])
|
|
|
|
|
-])
|
|
|
|
|
-
|
|
|
|
|
-if test x$have_libelf = xyes; then
|
|
|
|
|
- AC_DEFINE(HAVE_LIBELF, 1, [Define if libelf is available])
|
|
|
|
|
-fi
|
2012-05-14 15:59:11 -07:00
|
|
|
|
2014-02-03 15:41:27 -08:00
|
|
|
dnl ****************************************
|
|
|
|
|
dnl *** platform dependent source checks ***
|
|
|
|
|
@@ -2707,122 +2555,6 @@ AS_IF([ test $cross_compiling = yes ], [
|
2012-04-05 05:46:51 -07:00
|
|
|
fi
|
2014-02-03 15:41:27 -08:00
|
|
|
])
|
2012-04-05 05:46:51 -07:00
|
|
|
|
|
|
|
|
-dnl **************************
|
|
|
|
|
-dnl *** Checks for gtk-doc ***
|
|
|
|
|
-dnl **************************
|
2014-02-03 15:41:27 -08:00
|
|
|
-# gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
|
|
|
|
|
-# it on it's own line.
|
|
|
|
|
-m4_ifdef([GTK_DOC_CHECK], [
|
2012-04-05 05:46:51 -07:00
|
|
|
-GTK_DOC_CHECK([1.15], [--flavour no-tmpl])
|
2014-02-03 15:41:27 -08:00
|
|
|
-],[
|
|
|
|
|
-AM_CONDITIONAL([ENABLE_GTK_DOC],[false])
|
|
|
|
|
-])
|
2012-04-05 05:46:51 -07:00
|
|
|
-
|
|
|
|
|
-AC_ARG_ENABLE(man,
|
2014-02-03 15:41:27 -08:00
|
|
|
- [AS_HELP_STRING([--enable-man],
|
|
|
|
|
- [generate man pages [default=auto]])],,
|
|
|
|
|
- enable_man=maybe)
|
2012-04-05 05:46:51 -07:00
|
|
|
-
|
2014-02-03 15:41:27 -08:00
|
|
|
-AS_IF([test "$enable_man" != no], [
|
|
|
|
|
- AC_PATH_PROG([XSLTPROC], [xsltproc])
|
|
|
|
|
- AS_IF([test -z "$XSLTPROC"], [
|
|
|
|
|
- AS_IF([test "$enable_man" = yes], [
|
|
|
|
|
- AC_MSG_ERROR([xsltproc is required for --enable-man])
|
|
|
|
|
- ])
|
2012-04-05 05:46:51 -07:00
|
|
|
- enable_man=no
|
2014-02-03 15:41:27 -08:00
|
|
|
- ])
|
|
|
|
|
-])
|
2012-04-05 05:46:51 -07:00
|
|
|
-
|
2014-02-03 15:41:27 -08:00
|
|
|
-AS_IF([ test "$enable_man" != no ], [
|
|
|
|
|
- dnl check for DocBook DTD in the local catalog
|
2012-04-05 05:46:51 -07:00
|
|
|
- JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
|
2014-02-03 15:41:27 -08:00
|
|
|
- [DocBook XML DTD V4.1.2], [have_docbook_dtd=yes], [have_docbook_dtd=no])
|
|
|
|
|
- AS_IF([test "$have_docbook_dtd" != yes], [
|
|
|
|
|
- AS_IF([test "$enable_man" = yes ], [
|
|
|
|
|
- AC_MSG_ERROR([DocBook DTD is required for --enable-man])
|
|
|
|
|
- ])
|
|
|
|
|
- enable_man=no
|
|
|
|
|
- ])
|
|
|
|
|
-])
|
|
|
|
|
-
|
|
|
|
|
-AS_IF([test "$enable_man" != no], [
|
|
|
|
|
- dnl check for DocBook XSL stylesheets in the local catalog
|
2012-04-05 05:46:51 -07:00
|
|
|
- JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
|
2014-02-03 15:41:27 -08:00
|
|
|
- [DocBook XSL Stylesheets], [have_docbook_style=yes],[have_docbook_style=no])
|
|
|
|
|
- AS_IF([ test "$have_docbook_dtd" != yes ], [
|
|
|
|
|
- AS_IF([ test "$enable_man" = yes ], [
|
|
|
|
|
- AC_MSG_ERROR([DocBook XSL Stylesheets are required for --enable-man])
|
|
|
|
|
- ])
|
|
|
|
|
- enable_man=no
|
|
|
|
|
- ])
|
|
|
|
|
-])
|
2012-04-05 05:46:51 -07:00
|
|
|
-
|
2014-02-03 15:41:27 -08:00
|
|
|
-AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
|
|
|
|
|
-
|
|
|
|
|
-AC_MSG_CHECKING([whether to generate man pages])
|
|
|
|
|
-AS_IF([ test "$enable_man" != no ], [
|
|
|
|
|
- AC_MSG_RESULT([yes])
|
|
|
|
|
-], [
|
|
|
|
|
- AC_MSG_RESULT([no])
|
|
|
|
|
-])
|
2012-04-05 05:46:51 -07:00
|
|
|
-
|
2012-08-14 13:07:35 -07:00
|
|
|
-dnl
|
|
|
|
|
-dnl Tracing
|
|
|
|
|
-dnl
|
|
|
|
|
-
|
|
|
|
|
-AC_ARG_ENABLE([dtrace],
|
|
|
|
|
- [AS_HELP_STRING([--enable-dtrace],
|
|
|
|
|
- [include tracing support for dtrace])])
|
|
|
|
|
-have_dtrace=no
|
|
|
|
|
-AC_MSG_CHECKING([whether to include dtrace tracing support])
|
2014-02-03 15:41:27 -08:00
|
|
|
-AS_IF([ test "x$enable_dtrace" != xno], [
|
2012-08-14 13:07:35 -07:00
|
|
|
- if test x$glib_have_carbon = xyes; then
|
|
|
|
|
- AC_MSG_RESULT([no (not yet compatible with MacOS dtrace)])
|
|
|
|
|
- else
|
|
|
|
|
- AC_MSG_RESULT([yes])
|
|
|
|
|
- AC_CHECK_PROGS(DTRACE, dtrace)
|
|
|
|
|
- if test -z "$DTRACE"; then
|
|
|
|
|
- if test "x$enable_dtrace" = xyes; then
|
|
|
|
|
- AC_MSG_ERROR([dtrace not found])
|
|
|
|
|
- fi
|
|
|
|
|
- else
|
|
|
|
|
- AC_CHECK_HEADER([sys/sdt.h],have_dtrace=yes,
|
|
|
|
|
- [if test "x$enable_dtrace" = xyes; then
|
|
|
|
|
- AC_MSG_ERROR([dtrace support needs sys/sdt.h header])
|
|
|
|
|
- fi])
|
|
|
|
|
- fi
|
|
|
|
|
- fi
|
2014-02-03 15:41:27 -08:00
|
|
|
-], [
|
2012-08-14 13:07:35 -07:00
|
|
|
- AC_MSG_RESULT([no])
|
2014-02-03 15:41:27 -08:00
|
|
|
-])
|
2012-08-14 13:07:35 -07:00
|
|
|
-if test "x$have_dtrace" = xyes; then
|
|
|
|
|
- AC_DEFINE([HAVE_DTRACE], [1], [Define to 1 if using dtrace probes.])
|
|
|
|
|
-fi
|
|
|
|
|
-AM_CONDITIONAL([ENABLE_DTRACE], [test x$have_dtrace = xyes ])
|
|
|
|
|
-
|
|
|
|
|
-AC_MSG_CHECKING([whether to include systemtap tracing support])
|
|
|
|
|
-AC_ARG_ENABLE([systemtap],
|
|
|
|
|
- [AS_HELP_STRING([--enable-systemtap],
|
|
|
|
|
- [include tracing support for systemtap])])
|
|
|
|
|
-have_systemtap=no
|
|
|
|
|
-if test "x$enable_systemtap" != xno -a "x$have_dtrace" = xyes; then
|
|
|
|
|
- have_systemtap=yes
|
|
|
|
|
-fi
|
|
|
|
|
-AC_MSG_RESULT(${have_systemtap})
|
|
|
|
|
-
|
|
|
|
|
-AM_CONDITIONAL([ENABLE_SYSTEMTAP], [test x$have_systemtap = xyes])
|
|
|
|
|
-
|
|
|
|
|
-AC_ARG_WITH([tapset-install-dir],
|
|
|
|
|
- AS_HELP_STRING([--with-tapset-install-dir=DIR],
|
|
|
|
|
- [path where systemtap tapsets are installed [DATADIR/systemtap/tapset]]),
|
|
|
|
|
- [if test "x${withval}" = x; then
|
|
|
|
|
- ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
|
|
|
|
|
- else
|
|
|
|
|
- ABS_TAPSET_DIR="${withval}"
|
|
|
|
|
- fi],
|
|
|
|
|
- [ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"])
|
|
|
|
|
-AC_SUBST(ABS_TAPSET_DIR)
|
|
|
|
|
-
|
|
|
|
|
dnl ************************************
|
|
|
|
|
dnl *** Enable lcov coverage reports ***
|
|
|
|
|
dnl ************************************
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -3630,20 +3362,6 @@ typedef unsigned $gint64 guint64;])
|
|
|
|
|
AC_CHECK_TYPE([unsigned long])
|
|
|
|
|
AC_CHECK_ALIGNOF([unsigned long])
|
|
|
|
|
|
|
|
|
|
-# Check for libdbus1 - Optional - is only used in the GDBus test cases
|
|
|
|
|
-#
|
|
|
|
|
-# 1.2.14 required for dbus_message_set_serial
|
|
|
|
|
-PKG_CHECK_MODULES(DBUS1,
|
|
|
|
|
- dbus-1 >= 1.2.14,
|
|
|
|
|
- [AC_DEFINE(HAVE_DBUS1, 1, [Define if dbus-1 is available]) have_dbus1=yes],
|
|
|
|
|
- have_dbus1=no)
|
|
|
|
|
-AC_SUBST(DBUS1_CFLAGS)
|
|
|
|
|
-AC_SUBST(DBUS1_LIBS)
|
|
|
|
|
-AM_CONDITIONAL(HAVE_DBUS1, [test "x$have_dbus1" = "xyes"])
|
|
|
|
|
-
|
|
|
|
|
-AC_CHECK_PROGS([DBUS_DAEMON], [dbus-daemon])
|
|
|
|
|
-AM_CONDITIONAL([HAVE_DBUS_DAEMON], [test x$DBUS_DAEMON = xdbus-daemon ])
|
|
|
|
|
-
|
|
|
|
|
dnl
|
|
|
|
|
dnl Check for -Bsymbolic-functions linker flag used to avoid
|
|
|
|
|
dnl intra-library PLT jumps, if available.
|
|
|
|
|
@@ -3751,92 +3469,22 @@ AC_SUBST(gio_INCLUDES)
|
2012-04-05 05:46:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
|
-glib-2.0.pc
|
|
|
|
|
-gmodule-2.0.pc
|
|
|
|
|
-gmodule-export-2.0.pc
|
|
|
|
|
-gmodule-no-export-2.0.pc
|
|
|
|
|
-gthread-2.0.pc
|
|
|
|
|
-gobject-2.0.pc
|
|
|
|
|
-gio-2.0.pc
|
|
|
|
|
-gio-unix-2.0.pc
|
|
|
|
|
-gio-windows-2.0.pc
|
|
|
|
|
-glib-zip
|
|
|
|
|
-glib-gettextize
|
|
|
|
|
Makefile
|
|
|
|
|
-build/Makefile
|
|
|
|
|
-build/win32/Makefile
|
|
|
|
|
-build/win32/dirent/Makefile
|
|
|
|
|
-build/win32/vs9/Makefile
|
|
|
|
|
-build/win32/vs10/Makefile
|
2014-02-03 15:41:27 -08:00
|
|
|
-build/win32/vs11/Makefile
|
2012-04-05 05:46:51 -07:00
|
|
|
glib/Makefile
|
|
|
|
|
-glib/glib.stp
|
|
|
|
|
glib/libcharset/Makefile
|
|
|
|
|
glib/gnulib/Makefile
|
|
|
|
|
glib/pcre/Makefile
|
|
|
|
|
glib/update-pcre/Makefile
|
|
|
|
|
-glib/tests/Makefile
|
|
|
|
|
-gmodule/Makefile
|
|
|
|
|
-gmodule/gmoduleconf.h
|
|
|
|
|
-gobject/Makefile
|
|
|
|
|
-gobject/gobject.stp
|
|
|
|
|
-gobject/glib-mkenums
|
|
|
|
|
-gobject/tests/Makefile
|
|
|
|
|
-gthread/Makefile
|
|
|
|
|
-gio/Makefile
|
|
|
|
|
-gio/gdbus-2.0/codegen/Makefile
|
|
|
|
|
-gio/gdbus-2.0/codegen/config.py
|
2014-02-03 15:41:27 -08:00
|
|
|
-gio/gnetworking.h
|
2012-04-05 05:46:51 -07:00
|
|
|
-gio/xdgmime/Makefile
|
|
|
|
|
-gio/inotify/Makefile
|
2014-02-03 15:41:27 -08:00
|
|
|
-gio/kqueue/Makefile
|
2012-04-05 05:46:51 -07:00
|
|
|
-gio/fen/Makefile
|
|
|
|
|
-gio/fam/Makefile
|
|
|
|
|
-gio/win32/Makefile
|
|
|
|
|
-gio/tests/Makefile
|
|
|
|
|
-gio/tests/gdbus-object-manager-example/Makefile
|
2014-02-03 15:41:27 -08:00
|
|
|
-gio/tests/services/Makefile
|
|
|
|
|
-gio/tests/services/org.gtk.GDBus.Examples.ObjectManager.service
|
2012-04-05 05:46:51 -07:00
|
|
|
-po/Makefile.in
|
|
|
|
|
-docs/Makefile
|
|
|
|
|
-docs/reference/Makefile
|
|
|
|
|
-docs/reference/glib/Makefile
|
|
|
|
|
-docs/reference/glib/version.xml
|
|
|
|
|
-docs/reference/gobject/Makefile
|
|
|
|
|
-docs/reference/gobject/version.xml
|
|
|
|
|
-docs/reference/gio/Makefile
|
|
|
|
|
-docs/reference/gio/gdbus-object-manager-example/Makefile
|
|
|
|
|
-docs/reference/gio/version.xml
|
|
|
|
|
-tests/Makefile
|
|
|
|
|
-tests/gobject/Makefile
|
|
|
|
|
-tests/refcount/Makefile
|
|
|
|
|
m4macros/Makefile
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
-AC_CONFIG_COMMANDS([chmod-scripts],
|
|
|
|
|
-[chmod 0755 glib-zip
|
|
|
|
|
-chmod 0755 glib-gettextize
|
|
|
|
|
-chmod 0755 gobject/glib-mkenums])
|
|
|
|
|
-
|
|
|
|
|
# we want to invoke this macro solely so that the config.status script
|
|
|
|
|
# and automake generated makefiles know about these generated files.
|
|
|
|
|
# They are only needed to distcheck the package
|
|
|
|
|
if false; then
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
|
- INSTALL
|
|
|
|
|
README
|
|
|
|
|
- config.h.win32
|
|
|
|
|
- glib/glibconfig.h.win32
|
|
|
|
|
- glib/makefile.msc
|
|
|
|
|
glib/glib.rc
|
|
|
|
|
- gmodule/makefile.msc
|
|
|
|
|
- gmodule/gmodule.rc
|
|
|
|
|
- gobject/makefile.msc
|
|
|
|
|
- gobject/gobject.rc
|
|
|
|
|
- gthread/makefile.msc
|
|
|
|
|
- gthread/gthread.rc
|
|
|
|
|
- gio/gio.rc
|
|
|
|
|
- tests/makefile.msc
|
|
|
|
|
])
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
diff --git a/glib/glib/Makefile.am b/glib/glib/Makefile.am
|
2014-02-03 15:41:27 -08:00
|
|
|
index 1330755..07b0141 100644
|
2012-04-05 05:46:51 -07:00
|
|
|
--- a/glib/glib/Makefile.am
|
|
|
|
|
+++ b/glib/glib/Makefile.am
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -31,8 +31,8 @@ else
|
2012-04-05 05:46:51 -07:00
|
|
|
MAYBE_PCRE = pcre
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
-SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . tests
|
|
|
|
|
-DIST_SUBDIRS = libcharset gnulib pcre update-pcre tests
|
2014-02-03 15:41:27 -08:00
|
|
|
+SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre .
|
2012-04-05 05:46:51 -07:00
|
|
|
+DIST_SUBDIRS = libcharset gnulib pcre update-pcre
|
|
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
|
$(glib_INCLUDES) \
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -53,12 +53,10 @@ MIRRORING_TAB_SOURCE = \
|
2012-04-05 05:46:51 -07:00
|
|
|
# The compilation of GRegex can be disabled, but the source files must
|
|
|
|
|
# be distributed.
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
|
- makefile.msc.in \
|
|
|
|
|
glib.rc.in \
|
|
|
|
|
gen-iswide-table.py \
|
|
|
|
|
gen-unicode-tables.pl \
|
|
|
|
|
gen-script-table.pl \
|
|
|
|
|
- glibconfig.h.win32.in \
|
|
|
|
|
gregex.c \
|
2014-02-03 15:41:27 -08:00
|
|
|
gregex.h \
|
|
|
|
|
win_iconv.c \
|
|
|
|
|
@@ -71,8 +69,6 @@ CLEANFILES += libglib-gdb.py
|
2012-04-05 05:46:51 -07:00
|
|
|
|
|
|
|
|
# These may be in the builddir too
|
2014-02-03 15:41:27 -08:00
|
|
|
BUILT_EXTRA_DIST += \
|
2012-04-05 05:46:51 -07:00
|
|
|
- makefile.msc \
|
|
|
|
|
- glibconfig.h.win32 \
|
|
|
|
|
glib.rc
|
|
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libglib-2.0.la
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -101,7 +97,6 @@ deprecated_sources = \
|
2012-04-05 05:46:51 -07:00
|
|
|
|
|
|
|
|
libglib_2_0_la_SOURCES = \
|
|
|
|
|
$(deprecated_sources) \
|
|
|
|
|
- glib_probes.d \
|
|
|
|
|
garray.c \
|
|
|
|
|
gasyncqueue.c \
|
|
|
|
|
gasyncqueueprivate.h \
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -359,29 +354,6 @@ libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
|
2012-04-05 05:46:51 -07:00
|
|
|
|
|
|
|
|
INSTALL_PROGS=
|
|
|
|
|
|
|
|
|
|
-if ENABLE_DTRACE
|
2014-02-03 15:41:27 -08:00
|
|
|
-DTCOMPILE = $(patsubst -W%,,$(LTCOMPILE))
|
|
|
|
|
-DTCFLAGS = $(patsubst -W%,,$(CFLAGS))
|
|
|
|
|
-
|
|
|
|
|
-glib_probes.h: glib_probes.d
|
2012-04-05 05:46:51 -07:00
|
|
|
- $(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp
|
|
|
|
|
- @$(SED) -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp
|
2014-02-03 15:41:27 -08:00
|
|
|
-
|
|
|
|
|
-glib_probes.lo: glib_probes.d
|
|
|
|
|
- $(AM_V_GEN) env CC="$(DTCOMPILE)" CFLAGS="$(DTCFLAGS)" $(DTRACE) -G -s $< -o $@
|
|
|
|
|
-
|
|
|
|
|
-BUILT_SOURCES += glib_probes.h glib_probes.lo
|
2012-04-05 05:46:51 -07:00
|
|
|
-CLEANFILES += glib_probes.h glib_probes.h.tmp
|
2014-02-03 15:41:27 -08:00
|
|
|
-libglib_2_0_la_LIBADD += glib_probes.lo
|
2012-04-05 05:46:51 -07:00
|
|
|
-endif
|
|
|
|
|
-
|
|
|
|
|
-if ENABLE_SYSTEMTAP
|
|
|
|
|
-tapset_in_files = glib.stp.in
|
|
|
|
|
-tapsetdir = @ABS_TAPSET_DIR@
|
|
|
|
|
-tapset_DATA = $(tapset_in_files:.stp.in=.stp)
|
|
|
|
|
-EXTRA_DIST += $(tapset_in_files)
|
|
|
|
|
-endif
|
|
|
|
|
-
|
|
|
|
|
gspawn-win32-helper-console.c:
|
|
|
|
|
echo '#define HELPER_CONSOLE' >$@
|
|
|
|
|
echo '#include "gspawn-win32-helper.c"' >>$@
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -443,7 +415,7 @@ endif
|
2012-04-05 05:46:51 -07:00
|
|
|
glib-2.0.lib: libglib-2.0.la glib.def
|
|
|
|
|
lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libglib-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/glib.def -out:$@
|
|
|
|
|
|
|
|
|
|
-dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/glib.vcproj ../build/win32/vs10/glib.vcxproj ../build/win32/vs10/glib.vcxproj.filters
|
|
|
|
|
+dist-hook: $(BUILT_EXTRA_DIST)
|
|
|
|
|
files='$(BUILT_EXTRA_DIST)'; \
|
|
|
|
|
for f in $$files; do \
|
|
|
|
|
if test -f $$f; then d=.; else d=$(srcdir); fi; \
|
|
|
|
|
diff --git a/glib/glib/gnulib/Makefile.am b/glib/glib/gnulib/Makefile.am
|
2014-02-03 15:41:27 -08:00
|
|
|
index 931230e..06ce41c 100644
|
2012-04-05 05:46:51 -07:00
|
|
|
--- a/glib/glib/gnulib/Makefile.am
|
|
|
|
|
+++ b/glib/glib/gnulib/Makefile.am
|
2014-02-03 15:41:27 -08:00
|
|
|
@@ -22,6 +22,3 @@ libgnulib_la_SOURCES = \
|
2012-04-05 05:46:51 -07:00
|
|
|
printf.c \
|
|
|
|
|
printf.h \
|
|
|
|
|
g-gnulib.h
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-EXTRA_DIST += makefile.msc
|