configure: Make the libcups soname check depend on the header check.
diff --git a/configure.ac b/configure.ac
index 0c5b1a4..7deadf5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -967,6 +967,12 @@
WINE_CHECK_SONAME(capi20,capi20_register)
fi
+dnl **** Check for cups ****
+if test "$ac_cv_header_cups_cups_h" = "yes"
+then
+ WINE_CHECK_SONAME(cups,cupsGetDefault)
+fi
+
dnl **** Check for gcc specific options ****
AC_SUBST(EXTRACFLAGS,"")
@@ -1115,7 +1121,6 @@
WINE_CHECK_SONAME(freetype,FT_Init_FreeType,,,[$X_LIBS])
WINE_CHECK_SONAME(GL,glXQueryExtension,,,[$X_LIBS $X_EXTRA_LIBS])
WINE_CHECK_SONAME(txc_dxtn,fetch_2d_texel_rgba_dxt1)
-WINE_CHECK_SONAME(cups,cupsGetDefault)
WINE_CHECK_SONAME(jack,jack_client_new)
WINE_CHECK_SONAME(fontconfig,FcInit)
WINE_CHECK_SONAME(ssl,SSL_library_init)