aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/configure.ac
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-04-15 16:03:15 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2021-04-15 16:07:46 -0700
commit2694bce941fcb662ffa2896dc8e886211779ba36 (patch)
tree11164a14a8206c70806391fe5392882adb48d00e /sim/erc32/configure.ac
parent32b14776a020a336a574328cabf5a21387dbc180 (diff)
downloadgdb-2694bce941fcb662ffa2896dc8e886211779ba36.zip
gdb-2694bce941fcb662ffa2896dc8e886211779ba36.tar.gz
gdb-2694bce941fcb662ffa2896dc8e886211779ba36.tar.bz2
sim erc32: Add include path for readline.
Add a READLINE_CFLAGS variable which adds the include path to the in-tree readline when using the in-tree readline library. sim/erc32/ChangeLog: * Makefile.in (READLINE_SRC, READLINE_CFLAGS): Add. (SIM_EXTRA_CFLAGS): Add READLINE_CFLAGS. * configure: Rebuild. * configure.ac (READLINE_CFLAGS): Add.
Diffstat (limited to 'sim/erc32/configure.ac')
-rw-r--r--sim/erc32/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/erc32/configure.ac b/sim/erc32/configure.ac
index 8b7b688..cf7ec5f 100644
--- a/sim/erc32/configure.ac
+++ b/sim/erc32/configure.ac
@@ -39,9 +39,12 @@ AC_SUBST(TERMCAP)
# src/readline (if it's there) is configured before src/sim.
if test -r ../../readline/Makefile; then
READLINE=../../readline/readline/libreadline.a
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
else
AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
AC_ERROR([the required "readline" library is missing]), $TERMCAP)
+ READLINE_CFLAGS=
fi
AC_SUBST(READLINE)
+AC_SUBST(READLINE_CFLAGS)
SIM_AC_OUTPUT