Alexandre Julliard : configure: Remove some no longer used libcurses checks .

Alexandre Julliard julliard at wine.codeweavers.com
Mon Dec 18 05:34:26 CST 2006


Module: wine
Branch: master
Commit: 8f1d42eba42964e694ce21ac8ed3015b562bc36c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8f1d42eba42964e694ce21ac8ed3015b562bc36c

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat Dec 16 17:01:37 2006 +0100

configure: Remove some no longer used libcurses checks.

---

 configure           |   47 ++++++++++++-----------------------------------
 configure.ac        |   27 +++++++++------------------
 include/config.h.in |    6 ------
 3 files changed, 21 insertions(+), 59 deletions(-)

diff --git a/configure b/configure
index d7c208b..1ba9d3b 100755
--- a/configure
+++ b/configure
@@ -704,7 +704,6 @@ XML2INCL
 XSLTLIBS
 XSLTINCL
 HALINCL
-CURSESLIBS
 sane_devel
 SANELIBS
 SANEINCL
@@ -1362,7 +1361,6 @@ Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --without-opengl        do not use OpenGL
-  --without-curses        do not use curses
   --with-wine-tools=<dir> use Wine tools from directory <dir>
   --with-x                use the X Window System
 
@@ -1863,12 +1861,6 @@ if test "${with_opengl+set}" = set; then
 fi
 
 
-# Check whether --with-curses was given.
-if test "${with_curses+set}" = set; then
-  withval=$with_curses;
-fi
-
-
 # Check whether --with-wine-tools was given.
 if test "${with_wine_tools+set}" = set; then
   withval=$with_wine_tools;
@@ -10915,11 +10907,9 @@ fi
 fi
 
 CURSESLIBS=""
-if test "x$with_curses" != "xno"
+if test "$ac_cv_header_ncurses_h" = "yes"
 then
-    if test "$ac_cv_header_ncurses_h" = "yes"
-    then
-        { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
+    { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -10997,17 +10987,12 @@ fi
 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
 if test $ac_cv_lib_ncurses_waddch = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_LIBNCURSES 1
-_ACEOF
-
-             CURSESLIBS="-lncurses"
+  CURSESLIBS="-lncurses"
 fi
 
-    elif test "$ac_cv_header_curses_h" = "yes"
-    then
-        { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
+elif test "$ac_cv_header_curses_h" = "yes"
+then
+    { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
 if test "${ac_cv_lib_curses_waddch+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -11085,17 +11070,12 @@ fi
 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
 if test $ac_cv_lib_curses_waddch = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_LIBCURSES 1
-_ACEOF
-
-             CURSESLIBS="-lcurses"
+  CURSESLIBS="-lcurses"
 fi
 
-    fi
-    ac_save_LIBS="$LIBS"
-    LIBS="$LIBS $CURSESLIBS"
+fi
+ac_save_LIBS="$LIBS"
+LIBS="$LIBS $CURSESLIBS"
 
 for ac_func in mousemask
 do
@@ -11206,9 +11186,7 @@ _ACEOF
 fi
 done
 
-    LIBS="$ac_save_LIBS"
-fi
-
+LIBS="$ac_save_LIBS"
 
 # Extract the first word of "sane-config", so it can be a program name with args.
 set dummy sane-config; ac_word=$2
@@ -24821,7 +24799,6 @@ XML2INCL!$XML2INCL$ac_delim
 XSLTLIBS!$XSLTLIBS$ac_delim
 XSLTINCL!$XSLTINCL$ac_delim
 HALINCL!$HALINCL$ac_delim
-CURSESLIBS!$CURSESLIBS$ac_delim
 sane_devel!$sane_devel$ac_delim
 SANELIBS!$SANELIBS$ac_delim
 SANEINCL!$SANEINCL$ac_delim
@@ -24878,7 +24855,7 @@ LIBOBJS!$LIBOBJS$ac_delim
 LTLIBOBJS!$LTLIBOBJS$ac_delim
 _ACEOF
 
-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
     break
   elif $ac_last_try; then
     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
diff --git a/configure.ac b/configure.ac
index 7ddc521..f44e3eb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,6 @@ AC_ARG_ENABLE(win16, AC_HELP_STRING([--d
 AC_ARG_ENABLE(win64, AC_HELP_STRING([--enable-win64], [build a Win64 emulator on AMD64 (won't run Win32 binaries)]))
 
 AC_ARG_WITH(opengl,    AC_HELP_STRING([--without-opengl],[do not use OpenGL]))
-AC_ARG_WITH(curses,    AC_HELP_STRING([--without-curses],[do not use curses]))
 AC_ARG_WITH(wine-tools,AC_HELP_STRING([--with-wine-tools=<dir>],[use Wine tools from directory <dir>]))
 
 AC_CANONICAL_HOST
@@ -520,25 +519,17 @@ fi
 
 dnl **** Check which curses lib to use ***
 CURSESLIBS=""
-if test "x$with_curses" != "xno"
+if test "$ac_cv_header_ncurses_h" = "yes"
 then
-    if test "$ac_cv_header_ncurses_h" = "yes"
-    then
-        AC_CHECK_LIB(ncurses,waddch,
-            [AC_DEFINE(HAVE_LIBNCURSES, 1, [Define if you have the ncurses library (-lncurses)])
-             CURSESLIBS="-lncurses"])
-    elif test "$ac_cv_header_curses_h" = "yes"
-    then
-        AC_CHECK_LIB(curses,waddch,
-            [AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have the curses library (-lcurses)])
-             CURSESLIBS="-lcurses"])
-    fi
-    ac_save_LIBS="$LIBS"
-    LIBS="$LIBS $CURSESLIBS"
-    AC_CHECK_FUNCS(mousemask)
-    LIBS="$ac_save_LIBS"
+    AC_CHECK_LIB(ncurses,waddch,[CURSESLIBS="-lncurses"])
+elif test "$ac_cv_header_curses_h" = "yes"
+then
+    AC_CHECK_LIB(curses,waddch,[CURSESLIBS="-lcurses"])
 fi
-AC_SUBST(CURSESLIBS)
+ac_save_LIBS="$LIBS"
+LIBS="$LIBS $CURSESLIBS"
+AC_CHECK_FUNCS(mousemask)
+LIBS="$ac_save_LIBS"
 
 dnl **** Check for SANE ****
 AC_CHECK_PROG(sane_devel,sane-config,sane-config,no)
diff --git a/include/config.h.in b/include/config.h.in
index 24052dc..11bd3bb 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -306,18 +306,12 @@
 /* Define to 1 if you have the <libaudioio.h> header file. */
 #undef HAVE_LIBAUDIOIO_H
 
-/* Define if you have the curses library (-lcurses) */
-#undef HAVE_LIBCURSES
-
 /* Define if you have the hal library */
 #undef HAVE_LIBHAL
 
 /* Define to 1 if you have the `i386' library (-li386). */
 #undef HAVE_LIBI386
 
-/* Define if you have the ncurses library (-lncurses) */
-#undef HAVE_LIBNCURSES
-
 /* Define to 1 if you have the `nsl' library (-lnsl). */
 #undef HAVE_LIBNSL
 




More information about the wine-cvs mailing list