From dbd6c48a552238d33e80a703feb901ade0c1a2b8 Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Fri, 1 Jul 2005 14:18:12 +0000 Subject: [PATCH] * using AC_GNU_SOURCE instead of -D _GNU_SOURCE * fixed a typo? in dbus-protocol ("% s" -> " %s") git-svn-id: file:///home/lennart/svn/public/avahi/trunk@159 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-client/Makefile.am | 2 +- avahi-common/Makefile.am | 2 +- avahi-core/Makefile.am | 2 +- avahi-daemon/Makefile.am | 1 - avahi-daemon/dbus-protocol.c | 2 +- avahi-discover/Makefile.am | 2 +- avahi-dnsconfd/Makefile.am | 1 - configure.ac | 1 + 8 files changed, 6 insertions(+), 7 deletions(-) diff --git a/avahi-client/Makefile.am b/avahi-client/Makefile.am index f4d60a4..8f9dce0 100644 --- a/avahi-client/Makefile.am +++ b/avahi-client/Makefile.am @@ -17,7 +17,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -AM_CFLAGS=-I$(top_srcdir) -D_GNU_SOURCE +AM_CFLAGS=-I$(top_srcdir) # GLIB 2.0 AM_CFLAGS+=$(GLIB20_CFLAGS) diff --git a/avahi-common/Makefile.am b/avahi-common/Makefile.am index b8532c0..ffadb3c 100644 --- a/avahi-common/Makefile.am +++ b/avahi-common/Makefile.am @@ -17,7 +17,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -AM_CFLAGS=-I$(top_srcdir) -D_GNU_SOURCE +AM_CFLAGS=-I$(top_srcdir) # GLIB 2.0 AM_CFLAGS+=$(GLIB20_CFLAGS) diff --git a/avahi-core/Makefile.am b/avahi-core/Makefile.am index fb9ffea..8280560 100644 --- a/avahi-core/Makefile.am +++ b/avahi-core/Makefile.am @@ -17,7 +17,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -AM_CFLAGS=-I$(top_srcdir) -D_GNU_SOURCE +AM_CFLAGS=-I$(top_srcdir) # GLIB 2.0 AM_CFLAGS+=$(GLIB20_CFLAGS) diff --git a/avahi-daemon/Makefile.am b/avahi-daemon/Makefile.am index 6ad5421..9ea1733 100644 --- a/avahi-daemon/Makefile.am +++ b/avahi-daemon/Makefile.am @@ -22,7 +22,6 @@ servicedir=$(pkgsysconfdir)/services AM_CFLAGS= \ -I$(top_srcdir) \ - -D_GNU_SOURCE \ -DAVAHI_SERVICE_DIRECTORY=\"$(servicedir)\" \ -DAVAHI_CONFIG_FILE=\"$(pkgsysconfdir)/avahi.conf\" diff --git a/avahi-daemon/dbus-protocol.c b/avahi-daemon/dbus-protocol.c index 2d1db32..4bd9caa 100644 --- a/avahi-daemon/dbus-protocol.c +++ b/avahi-daemon/dbus-protocol.c @@ -53,7 +53,7 @@ do_register (DBusConnection *conn, DBusMessage *message) return DBUS_HANDLER_RESULT_NOT_YET_HANDLED; } - g_message ("Register received from: %s (dbus:% s)", s, dbus_message_get_sender (message)); + g_message ("Register received from: %s (dbus: %s)", s, dbus_message_get_sender (message)); return DBUS_HANDLER_RESULT_HANDLED; } diff --git a/avahi-discover/Makefile.am b/avahi-discover/Makefile.am index 7b0c7fa..338f528 100644 --- a/avahi-discover/Makefile.am +++ b/avahi-discover/Makefile.am @@ -17,7 +17,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. -AM_CFLAGS=-I$(top_srcdir) -D_GNU_SOURCE +AM_CFLAGS=-I$(top_srcdir) AM_CFLAGS+=$(GLIB20_CFLAGS) $(GTK20_CFLAGS) $(GLADE20_CFLAGS) AM_LDADD=$(GLIB20_LIBS) $(GTK20_LIBS) $(GLADE20_LIBS) diff --git a/avahi-dnsconfd/Makefile.am b/avahi-dnsconfd/Makefile.am index d3bd833..5e55a94 100644 --- a/avahi-dnsconfd/Makefile.am +++ b/avahi-dnsconfd/Makefile.am @@ -21,7 +21,6 @@ pkgsysconfdir=$(sysconfdir)/avahi AM_CFLAGS= \ -I$(top_srcdir) \ - -D_GNU_SOURCE \ -DAVAHI_DNSCONF_SCRIPT=\"$(pkgsysconfdir)/dnsconf.action\" # GLIB 2.0 diff --git a/configure.ac b/configure.ac index 05b48c1..65c0b11 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,7 @@ fi # Checks for programs. AC_PROG_CC +AC_GNU_SOURCE AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S -- 2.39.5