mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
Define PACKAGE macro in all sims' config.h.
Some of the common includes in include/gdb such as callback.h include bfd.h. But there was a recent change in bfd-in.h to require that config.h be included before bfd.h can be included: /* PR 14072: Ensure that config.h is included first. */ #if !defined PACKAGE && !defined PACKAGE_VERSION #error config.h must be included before this header #endif PACKAGE_VERSION is always defined by default by the AC_INIT autoconf macro, but PACKAGE isn't. This patch updates the SIM_AC_COMMON macro to define it, and then regenerates all configure scripts and config.in files. sim/common/changeLog: * acinclude.m4 (SIM_AC_COMMON): Define PACKAGE. * config.in, configure: Regenerate. sim/ChangeLog: * configure: Regenerate. sim/arm/ChangeLog: * config.in, configure: Regenerate. sim/avr/ChangeLog: * config.in, configure: Regenerate. sim/bfin/ChangeLog: * config.in, configure: Regenerate. sim/cr16/ChangeLog: * config.in, configure: Regenerate. sim/cris/ChangeLog: * config.in, configure: Regenerate. sim/d10v/ChangeLog: * config.in, configure: Regenerate. sim/erc32/ChangeLog: * config.in, configure: Regenerate. sim/frv/ChangeLog: * config.in, configure: Regenerate. sim/h8300/ChangeLog: * config.in, configure: Regenerate. sim/iq2000/ChangeLog: * config.in, configure: Regenerate. sim/lm32/ChangeLog: * config.in, configure: Regenerate. sim/m32c/ChangeLog: * config.in, configure: Regenerate. sim/m32r/ChangeLog: * config.in, configure: Regenerate. sim/m68hc11/ChangeLog: * config.in, configure: Regenerate. sim/mcore/ChangeLog: * config.in, configure: Regenerate. sim/microblaze/ChangeLog: * config.in, configure: Regenerate. sim/mips/ChangeLog: * config.in, configure: Regenerate. sim/mn10300/ChangeLog: * config.in, configure: Regenerate. sim/moxie/ChangeLog: * config.in, configure: Regenerate. sim/ppc/ChangeLog: * configure: Regenerate. sim/rl78/ChangeLog: * config.in, configure: Regenerate. sim/rx/ChangeLog: * config.in, configure: Regenerate. sim/sh/ChangeLog: * config.in, configure: Regenerate. sim/sh64/ChangeLog: * config.in, configure: Regenerate. sim/v850/ChangeLog: * config.in, configure: Regenerate. sim/testsuite/ChangeLog: * configure: Regenerate.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2012-06-16 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* acinclude.m4 (SIM_AC_COMMON): Define PACKAGE.
|
||||
* config.in, configure: Regenerate.
|
||||
|
||||
2012-05-24 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* sim-signal.h (sim_signal_to_target): Rename to ...
|
||||
|
@ -47,6 +47,13 @@ AR=${AR-ar}
|
||||
AC_SUBST(AR)
|
||||
AC_PROG_RANLIB
|
||||
|
||||
# Some of the common include files depend on bfd.h, and bfd.h checks
|
||||
# that config.h is included first by testing that the PACKAGE macro
|
||||
# is defined.
|
||||
PACKAGE=sim
|
||||
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of this package. ])
|
||||
AC_SUBST(PACKAGE)
|
||||
|
||||
# Dependency checking.
|
||||
ZW_CREATE_DEPDIR
|
||||
ZW_PROG_COMPILER_DEPENDENCIES([CC])
|
||||
|
@ -139,6 +139,9 @@
|
||||
/* Define to 1 if you have the `__setfpucw' function. */
|
||||
#undef HAVE___SETFPUCW
|
||||
|
||||
/* Name of this package. */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
|
12
sim/common/configure
vendored
12
sim/common/configure
vendored
@ -620,6 +620,7 @@ MAKE
|
||||
CCDEPMODE
|
||||
DEPDIR
|
||||
am__leading_dot
|
||||
PACKAGE
|
||||
RANLIB
|
||||
AR
|
||||
HDEFINES
|
||||
@ -3854,6 +3855,17 @@ else
|
||||
fi
|
||||
|
||||
|
||||
# Some of the common include files depend on bfd.h, and bfd.h checks
|
||||
# that config.h is included first by testing that the PACKAGE macro
|
||||
# is defined.
|
||||
PACKAGE=sim
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PACKAGE "$PACKAGE"
|
||||
_ACEOF
|
||||
|
||||
|
||||
|
||||
# Dependency checking.
|
||||
ac_config_commands="$ac_config_commands depdir"
|
||||
|
||||
|
Reference in New Issue
Block a user