readline detection fixes by Edward Rudd.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 16 May 2002 02:45:09 +0000
changeset 218 9415dcace296
parent 217 6fb0f6dcd91e
child 219 b2f4564c219f
readline detection fixes by Edward Rudd.
configure.in
--- a/configure.in	Fri May 10 17:36:52 2002 +0000
+++ b/configure.in	Thu May 16 02:45:09 2002 +0000
@@ -174,13 +174,13 @@
               , enable_readline=yes)
 if test x$enable_readline = xyes; then
   AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes)
-  AC_CHECK_LIB(readline, readline, have_readline_lib=yes)
+  AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lcurses)
   AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes)
-  AC_CHECK_LIB(readline, add_history, have_history_lib=yes)
+  AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lcurses)
   if test x$have_readline_hdr = xyes -a x$have_readline_lib = xyes; then
     if test x$have_history_hdr = xyes -a x$have_history_lib = xyes; then
       AC_DEFINE(PHYSFS_HAVE_READLINE)
-      LIBS="$LIBS -lreadline"
+      LIBS="$LIBS -lreadline -lcurses"
     fi
   fi
 fi