Huw Davies : configure: Remove no longer used checks for libkstat.

Alexandre Julliard julliard at winehq.org
Thu Aug 19 16:00:05 CDT 2021


Module: wine
Branch: master
Commit: 028c9832fe0fc67cf9e624054ae157e5e67ae041
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=028c9832fe0fc67cf9e624054ae157e5e67ae041

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Aug 19 08:53:46 2021 +0100

configure: Remove no longer used checks for libkstat.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure           | 51 ---------------------------------------------------
 configure.ac        |  9 ---------
 include/config.h.in |  6 ------
 3 files changed, 66 deletions(-)

diff --git a/configure b/configure
index dbbe3a5395d..d7ae3b5f437 100755
--- a/configure
+++ b/configure
@@ -639,7 +639,6 @@ VKD3D_CFLAGS
 NETAPI_LIBS
 NETAPI_CFLAGS
 PROCSTAT_LIBS
-KSTAT_LIBS
 MPG123_LIBS
 MPG123_CFLAGS
 TIFF_LIBS
@@ -7501,7 +7500,6 @@ for ac_header in \
 	gsm/gsm.h \
 	ieeefp.h \
 	inet/mib2.h \
-	kstat.h \
 	libproc.h \
 	link.h \
 	linux/cdrom.h \
@@ -16480,54 +16478,6 @@ then
     enable_xaudio2_9=${enable_xaudio2_9:-no}
 fi
 
-if test "$ac_cv_header_kstat_h" = "yes"
-then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
-$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
-if ${ac_cv_lib_kstat_kstat_open+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lkstat  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char kstat_open ();
-int
-main ()
-{
-return kstat_open ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_kstat_kstat_open=yes
-else
-  ac_cv_lib_kstat_kstat_open=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
-$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
-if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
-
-$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
-
-                  KSTAT_LIBS="-lkstat"
-
-fi
-
-fi
-
 if test "$ac_cv_header_libprocstat_h" = "yes"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
@@ -20034,7 +19984,6 @@ TIFF_CFLAGS = $TIFF_CFLAGS
 TIFF_LIBS = $TIFF_LIBS
 MPG123_CFLAGS = $MPG123_CFLAGS
 MPG123_LIBS = $MPG123_LIBS
-KSTAT_LIBS = $KSTAT_LIBS
 PROCSTAT_LIBS = $PROCSTAT_LIBS
 NETAPI_CFLAGS = $NETAPI_CFLAGS
 NETAPI_LIBS = $NETAPI_LIBS
diff --git a/configure.ac b/configure.ac
index a143f6d3d2a..c58076ed1d6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -468,7 +468,6 @@ AC_CHECK_HEADERS(\
 	gsm/gsm.h \
 	ieeefp.h \
 	inet/mib2.h \
-	kstat.h \
 	libproc.h \
 	link.h \
 	linux/cdrom.h \
@@ -1944,14 +1943,6 @@ then
     enable_xaudio2_9=${enable_xaudio2_9:-no}
 fi
 
-dnl **** Check for libkstat ****
-if test "$ac_cv_header_kstat_h" = "yes"
-then
-    AC_CHECK_LIB(kstat,kstat_open,
-                 [AC_DEFINE(HAVE_LIBKSTAT, 1, [Define to 1 if you have the `kstat' library (-lkstat).])
-                  AC_SUBST(KSTAT_LIBS,"-lkstat")])
-fi
-
 dnl **** Check for libprocstat ****
 if test "$ac_cv_header_libprocstat_h" = "yes"
 then
diff --git a/include/config.h.in b/include/config.h.in
index 24f7b64ffd3..b1918d46ed1 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -234,9 +234,6 @@
 /* Define to 1 if you have the <krb5/krb5.h> header file. */
 #undef HAVE_KRB5_KRB5_H
 
-/* Define to 1 if you have the <kstat.h> header file. */
-#undef HAVE_KSTAT_H
-
 /* Define to 1 if you have the <lber.h> header file. */
 #undef HAVE_LBER_H
 
@@ -279,9 +276,6 @@
 /* Define to 1 if you have the `gettextpo' library (-lgettextpo). */
 #undef HAVE_LIBGETTEXTPO
 
-/* Define to 1 if you have the `kstat' library (-lkstat). */
-#undef HAVE_LIBKSTAT
-
 /* Define to 1 if you have the `procstat' library (-lprocstat). */
 #undef HAVE_LIBPROCSTAT
 




More information about the wine-cvs mailing list