diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2005-05-05 03:42:02 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2005-05-05 03:42:02 +0000 |
commit | 4a2a2686740b09cb3a7e2947f08ba8d638949329 (patch) | |
tree | 5e28c808bcc8aa2e68dccc6626f6cff5e7ccc85c | |
parent | 5cfd5a0c98ac5b7526514b7d3764be9ce0714900 (diff) | |
download | gdb-4a2a2686740b09cb3a7e2947f08ba8d638949329.zip gdb-4a2a2686740b09cb3a7e2947f08ba8d638949329.tar.gz gdb-4a2a2686740b09cb3a7e2947f08ba8d638949329.tar.bz2 |
* Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.
* configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC.
* configure, config.in, Makefile.in: Regenerate.
* sysdep.h (stpcpy): Revert last change.
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/Makefile.am | 2 | ||||
-rw-r--r-- | bfd/Makefile.in | 2 | ||||
-rw-r--r-- | bfd/config.in | 5 | ||||
-rwxr-xr-x | bfd/configure | 6 | ||||
-rw-r--r-- | bfd/configure.in | 1 | ||||
-rw-r--r-- | bfd/sysdep.h | 4 |
7 files changed, 22 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 204ad1b..87ec00d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,12 @@ 2005-05-05 Hans-Peter Nilsson <hp@axis.com> + * Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here. + * configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC. + * configure, config.in, Makefile.in: Regenerate. + * sysdep.h (stpcpy): Revert last change. + +2005-05-05 Hans-Peter Nilsson <hp@axis.com> + * sysdep.h (stpcpy): Wrap declaration in parentheses. 2005-05-04 H.J. Lu <hongjiu.lu@intel.com> diff --git a/bfd/Makefile.am b/bfd/Makefile.am index 88278a8..c476a21 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -598,7 +598,7 @@ BFD_LIBS = @bfd_libs@ BFD_MACHINES = @bfd_machines@ TDEFAULTS = @tdefaults@ -INCLUDES = -D_GNU_SOURCE @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) -I$(srcdir)/../intl -I../intl +INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) -I$(srcdir)/../intl -I../intl # C source files that correspond to .o's. SOURCE_CFILES = \ diff --git a/bfd/Makefile.in b/bfd/Makefile.in index e1c73a7..0043b29 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -839,7 +839,7 @@ BFD_BACKENDS = @bfd_backends@ BFD_LIBS = @bfd_libs@ BFD_MACHINES = @bfd_machines@ TDEFAULTS = @tdefaults@ -INCLUDES = -D_GNU_SOURCE @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) -I$(srcdir)/../intl -I../intl +INCLUDES = @HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) -I$(srcdir)/../intl -I../intl # C source files that correspond to .o's. SOURCE_CFILES = \ diff --git a/bfd/config.in b/bfd/config.in index b716983..6bdbb6a 100644 --- a/bfd/config.in +++ b/bfd/config.in @@ -337,6 +337,11 @@ /* Version number of package */ #undef VERSION +/* Enable GNU extensions on systems that have them. */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif + /* Define to empty if `const' does not conform to ANSI C. */ #undef const diff --git a/bfd/configure b/bfd/configure index 06e04ca..a852b86 100755 --- a/bfd/configure +++ b/bfd/configure @@ -5138,6 +5138,12 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu +cat >>confdefs.h <<\_ACEOF +#define _GNU_SOURCE 1 +_ACEOF + + + ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. diff --git a/bfd/configure.in b/bfd/configure.in index 0443d37..b27e820 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -70,6 +70,7 @@ bfd_default_target_size=32 # host stuff: AC_PROG_CC +AC_GNU_SOURCE ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw" CY_GNU_GETTEXT diff --git a/bfd/sysdep.h b/bfd/sysdep.h index d9469ef..a9ea6b4 100644 --- a/bfd/sysdep.h +++ b/bfd/sysdep.h @@ -126,9 +126,7 @@ extern PTR realloc (); #endif #if !HAVE_DECL_STPCPY -/* With glibc, not exposed without -D__USE_GNU, but some old versions - (2.2.5-34 on RH 7.3) still expose the macro. */ -extern char *(stpcpy) (char *__dest, const char *__src); +extern char *stpcpy (char *__dest, const char *__src); #endif #if !HAVE_DECL_STRSTR |