diff --git a/configure.in b/configure.in index df21200..1bdea4b 100644 --- a/configure.in +++ b/configure.in @@ -32,13 +32,14 @@ if test x$enable_readline != xno; then VL_LIB_READLINE fi -CFLAGS="$CFLAGS -Wall -Werror" - -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile] - [pdp12-emu.spec] - [libpdp12/Makefile] - [libpdp12utils/Makefile] - [frontend/Makefile] - [frontend/console/Makefile]) +CFLAGS="$CFLAGS $SDL_CFLAGS -Wall -Werror" +LIBS="$LIBS $SDL_LIBS" + +AM_CONFIG_HEADER(config.h) +AC_CONFIG_FILES([Makefile \ + pdp12-emu.spec \ + libpdp12/Makefile \ + libpdp12utils/Makefile \ + frontend/Makefile \ + frontend/console/Makefile]) AC_OUTPUT diff --git a/frontend/console/readln.h b/frontend/console/readln.h index ab8bcee..eb8f7b0 100644 --- a/frontend/console/readln.h +++ b/frontend/console/readln.h @@ -31,6 +31,7 @@ extern char *readline (); # endif /* !defined(HAVE_READLINE_H) */ #else /* !defined(HAVE_READLINE_READLINE_H) */ /* no readline */ +char* readln_basic(const char* prompt); #define readline(p) readln_basic(p) #endif /* HAVE_LIBREADLINE */ diff --git a/frontend/console/shell.c b/frontend/console/shell.c index ede9bf0..a5a84f7 100644 --- a/frontend/console/shell.c +++ b/frontend/console/shell.c @@ -25,6 +25,7 @@ #include #include +#include #include #include