* configure.in: Remove the argument from --with-gpm-mouse. The

directories for include files and libraries can be specified
using LDFLAGS and CPPFLAGS, as documented in the output of
"configure --help".
This commit is contained in:
Pavel Roskin 2002-09-30 01:25:58 +00:00
parent 89fb039e0f
commit 29d948d3fa
2 changed files with 20 additions and 21 deletions

View File

@ -1,5 +1,10 @@
2002-09-29 Pavel Roskin <proski@gnu.org> 2002-09-29 Pavel Roskin <proski@gnu.org>
* configure.in: Remove the argument from --with-gpm-mouse. The
directories for include files and libraries can be specified
using LDFLAGS and CPPFLAGS, as documented in the output of
"configure --help".
* configure.in: Complete rewrite of the screen library support. * configure.in: Complete rewrite of the screen library support.
Add new option --with-screen instead on --with-slang, Add new option --with-screen instead on --with-slang,
--with-included-slang and --with-ncurses. Only allow --with-included-slang and --with-ncurses. Only allow

View File

@ -258,31 +258,25 @@ if test x$use_vfs = xyes; then
vfs_type="Midnight Commander Virtual File System" vfs_type="Midnight Commander Virtual File System"
fi fi
dnl
dnl Check for gpm mouse support (Linux only)
dnl
mouse_lib="xterm only" mouse_lib="xterm only"
AC_ARG_WITH(gpm-mouse,
[ --with-gpm-mouse Compile with gpm mouse support (Linux only)
[[yes if found]]])
case $host_os in case $host_os in
linux*) linux*)
AC_ARG_WITH(gpm-mouse, if test x$with_gpm_mouse != xno; then
[ --with-gpm-mouse[[=base-dir]] Compile with gpm mouse support (Linux only) AC_CHECK_LIB(gpm, Gpm_Repeat,
[[yes if found]]], [AC_DEFINE(HAVE_LIBGPM, 1,
[if test x$withval != xno
then
if test x$withval != xyes
then
LDFLAGS="$LDFLAGS -L$withval/lib"
CPPFLAGS="$CPPFLAGS -I$withval/include"
fi
AC_DEFINE(HAVE_LIBGPM, 1,
[Define to enable gpm mouse support on Linux]) [Define to enable gpm mouse support on Linux])
mouse_lib="GPM and xterm" mouse_lib="gpm and xterm"
MCLIBS="-lgpm $MCLIBS" MCLIBS="$MCLIBS -lgpm"],
fi], [AC_MSG_WARN([libgpm is missing or older than 0.18])
[AC_CHECK_LIB(gpm, Gpm_Repeat,
[AC_DEFINE(HAVE_LIBGPM)
mouse_lib="GPM and xterm"
MCLIBS="-lgpm $MCLIBS"],
[AC_MSG_WARN([libgpm is missing or older than 0.18])],
[$LIBS])
]) ])
fi
;; ;;
esac esac