File physfs-1.0.1-ncurses.diff of Package physfs

Index: physfs-1.0.1/configure.in
===================================================================
--- physfs-1.0.1.orig/configure.in
+++ physfs-1.0.1/configure.in
@@ -221,9 +221,9 @@ AC_ARG_ENABLE(readline,
 
 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, , -lcurses)
+  AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lncurses)
   AC_CHECK_HEADER(readline/history.h, have_history_hdr=yes)
-  AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lcurses)
+  AC_CHECK_LIB(readline, add_history, have_history_lib=yes, , -lncurses)
   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], 1, [define if we have readline])
Index: physfs-1.0.1/test/Makefile.am
===================================================================
--- physfs-1.0.1.orig/test/Makefile.am
+++ physfs-1.0.1/test/Makefile.am
@@ -5,7 +5,7 @@ bin_PROGRAMS = test_physfs
 INCLUDES = -I$(top_srcdir)
 
 if BUILD_READLINE
-test_physfs_LDFLAGS="-lreadline -lcurses"
+test_physfs_LDFLAGS="-lreadline -lncurses"
 endif
 
 test_physfs_LDADD = ../libphysfs.la
openSUSE Build Service is sponsored by