AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS)
-INCLUDES = -D_GNU_SOURCE \
+INCLUDES = \
-I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../elfcpp \
-DLOCALEDIR="\"$(datadir)/locale\"" \
-DBINDIR="\"$(bindir)\"" -DTOOLBINDIR="\"$(tooldir)/bin\"" \
tooldir = $(exec_prefix)/$(target_alias)
ACLOCAL_AMFLAGS = -I ../bfd -I ../config
AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS)
-INCLUDES = -D_GNU_SOURCE \
+INCLUDES = \
-I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../elfcpp \
-DLOCALEDIR="\"$(datadir)/locale\"" \
-DBINDIR="\"$(bindir)\"" -DTOOLBINDIR="\"$(tooldir)/bin\"" \
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
+
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif
echo "${ECHO_T}no, using $LN_S" >&6
fi
+
+
+cat >>confdefs.h <<\_ACEOF
+#define _GNU_SOURCE 1
+_ACEOF
+
+
+
# If we haven't got the data from the intl directory,
# assume NLS is disabled.
USE_NLS=no
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_LN_S
+
+AC_GNU_SOURCE
+
ZW_GNU_GETTEXT_SISTER_DIR
AM_PO_SUBDIRS
# eventually.
AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS) -fmerge-constants
-INCLUDES = -D_GNU_SOURCE \
+INCLUDES = \
-I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../../include \
-I$(srcdir)/../../elfcpp \
-DLOCALEDIR="\"$(datadir)/locale\"" \
# it on. This may need to be controlled by a configure option
# eventually.
AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS) -fmerge-constants
-INCLUDES = -D_GNU_SOURCE \
+INCLUDES = \
-I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../../include \
-I$(srcdir)/../../elfcpp \
-DLOCALEDIR="\"$(datadir)/locale\"" \