We use getline, so leverage gnulib to provide fallback implementation.
+2021-05-29 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Add gnulib to configdirs for sim.
+ * configure: Regenerate.
+
2021-05-24 Maciej W. Rozycki <macro@orcam.me.uk>
* MAINTAINERS: Update path to readline config.{sub,guess} files.
*\ gdbserver\ *)
configdirs="${configdirs} gnulib gdbsupport"
;;
+ *\ sim\ *)
+ configdirs="${configdirs} gnulib"
+ ;;
esac
# Strip out unwanted targets.
*\ gdbserver\ *)
configdirs="${configdirs} gnulib gdbsupport"
;;
+ *\ sim\ *)
+ configdirs="${configdirs} gnulib"
+ ;;
esac
# Strip out unwanted targets.
+2021-05-29 Mike Frysinger <vapier@gentoo.org>
+
+ * Make-common.in (GNULIB_BUILDDIR): Define.
+ Include $(GNULIB_BUILDDIR)/Makefile.gnulib.inc.
+ (CSEARCH): Add -I../...
+ (ALL_CFLAGS): Add $(INCGNU).
+ (EXTRA_LIBS): Add $(LIBGNU).
+ * defs.h: Include gnulib/config.h. Undefine PACKAGE* defines.
+
2021-05-17 Mike Frysinger <vapier@gentoo.org>
* sim-base.h (SIM_HAVE_COMMON_SIM_STATE): Delete.
srcroot = $(srcdir)/../..
srcsim = $(srcdir)/..
+# Helper code from gnulib.
+GNULIB_BUILDDIR = ../../gnulib
+include $(GNULIB_BUILDDIR)/Makefile.gnulib.inc
+
prefix = @prefix@
exec_prefix = @exec_prefix@
-I../../include -I$(srcroot)/include \
-I../../bfd -I$(srcroot)/bfd \
-I../../opcodes -I$(srcroot)/opcodes \
+ -I../.. \
@INCINTL@
-ALL_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(SIM_EXTRA_CFLAGS) $(CFLAGS)
+ALL_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(INCGNU) $(SIM_EXTRA_CFLAGS) $(CFLAGS)
BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(CSEARCH)
COMMON_DEP_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(SIM_EXTRA_CFLAGS)
CONFIG_LIBS = @LIBS@ $(ZLIB)
LIBDEPS = $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL_DEP) $(LIBIBERTY_LIB)
EXTRA_LIBS = $(BFD_LIB) $(OPCODES_LIB) $(LIBINTL) $(LIBIBERTY_LIB) \
- $(CONFIG_LIBS) $(SIM_EXTRA_LIBS) $(LIBDL)
+ $(CONFIG_LIBS) $(SIM_EXTRA_LIBS) $(LIBDL) $(LIBGNU)
LIB_OBJS = callback.o modules.o syscall.o targ-map.o version.o \
$(SIM_OBJS)
#ifdef HAVE_CONFIG_H
+/* Include gnulib's various configure tests. */
+#include "gnulib/config.h"
+
+/* Reset macros that our config.h will provide. */
+#undef PACKAGE
+#undef PACKAGE_BUGREPORT
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_URL
+#undef PACKAGE_VERSION
+
/* Include sim's various configure tests. */
#include "config.h"
+2021-05-29 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (INCLUDES): Add -I../..
+
2021-05-16 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (gentmap): Pass -DUSE_CONFIG_H.
BFD_INCLUDES = -I../../bfd -I$(srcdir)/../../bfd
GDB_INCLUDES = -I../../gdb -I$(srcdir)/../../gdb -I$(srcdir)/../../gdb/config
-INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES) $(BFD_INCLUDES) $(GDB_INCLUDES)
+INCLUDES = -I. -I$(srcdir) $(LIB_INCLUDES) $(BFD_INCLUDES) $(GDB_INCLUDES) -I../..
LIBIBERTY_LIB = ../../libiberty/libiberty.a
BFD_LIB = ../../bfd/libbfd.a