Skip to content
Snippets Groups Projects
Commit 4e34d4a8 authored by Julian Seward's avatar Julian Seward
Browse files

[project @ 1999-11-12 16:22:08 by sewardj]

Add checks for readline library (as opposed to headers).
parent 93bce5a7
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,9 @@ ...@@ -63,6 +63,9 @@
/* Define if you support the production (and use) of Win32 DLLs. */ /* Define if you support the production (and use) of Win32 DLLs. */
#undef HAVE_WIN32_DLL_SUPPORT #undef HAVE_WIN32_DLL_SUPPORT
/* Define if you have and want to use readline in Hugs. */
#undef HAVE_LIBREADLINE
/* Define if C Symbols have a leading underscore added by the compiler */ /* Define if C Symbols have a leading underscore added by the compiler */
#undef LEADING_UNDERSCORE #undef LEADING_UNDERSCORE
......
...@@ -615,7 +615,17 @@ AC_CHECK_LIB(iberty, xmalloc) ...@@ -615,7 +615,17 @@ AC_CHECK_LIB(iberty, xmalloc)
AC_CHECK_LIB(bfd, bfd_init) AC_CHECK_LIB(bfd, bfd_init)
dnl ** check for readline, for Hugs dnl ** check for readline, for Hugs
AC_CHECK_LIB(readline, readline) AC_CHECK_LIB(readline, readline,
[
AC_DEFINE(HAVE_LIBREADLINE,1)
HaveLibReadline=YES
],
[
AC_DEFINE(HAVE_LIBREADLINE,0)
HaveLibReadline=NO
])
AC_SUBST(HaveLibReadline)
dnl ################################################################ dnl ################################################################
dnl Check for libraries dnl Check for libraries
......
...@@ -233,6 +233,7 @@ GhcLibsWithReadline=NO ...@@ -233,6 +233,7 @@ GhcLibsWithReadline=NO
# (no path == in standard include path) # (no path == in standard include path)
# #
ReadlineIncludePath= ReadlineIncludePath=
HaveLibReadline=@HaveLibReadline@
# Strip local symbols from libraries? This can make the libraries smaller, # Strip local symbols from libraries? This can make the libraries smaller,
# but makes debugging somewhat more difficult. Doesn't work with all ld's. # but makes debugging somewhat more difficult. Doesn't work with all ld's.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment