PATCH: cups-devel compile problem
Marcus Meissner
marcus at jet.franken.de
Sun Apr 29 08:49:53 CDT 2001
Hi,
I was not checking for presence of cups/cups.h, only for presence
of cupsGetPPD in -lcups, which would happen if one only installs the
CUPS runtime.
Thanks to Gerard Patel for spotting this :)
Ciao, Marcus
Changelog:
added check for cups/cups.h header file and a warning if we
find only runtime libraries, but no headers.
Index: configure.in
===================================================================
RCS file: /home/wine/wine/configure.in,v
retrieving revision 1.196
diff -u -r1.196 configure.in
--- configure.in 2001/04/27 18:02:46 1.196
+++ configure.in 2001/04/29 14:51:34
@@ -370,9 +374,13 @@
CUPSLIBS=""
dnl **** Check for CUPS ****
+wine_cv_warn_cups_h=no
AC_CHECK_LIB(cups,cupsGetPPD,
- AC_DEFINE(HAVE_CUPS)
- CUPSLIBS="-lcups"
+ AC_CHECK_HEADER(cups/cups.h,
+ AC_DEFINE(HAVE_CUPS)
+ CUPSLIBS="-lcups"
+ ),
+ wine_cv_warn_cups_h=yes
)
AC_SUBST(CUPSLIBS)
@@ -1308,6 +1328,13 @@
echo "*** support before reporting bugs."
fi
+if test "$wine_cv_warn_cups_h" = "yes"
+then
+ echo
+ echo "*** Note: You have cups runtime libraries, but no development"
+ echo "*** libraries. Install the cups-devel package or whichever package"
+ echo "*** contains cups.h to enable CUPS support in WINE."
+fi
echo
echo "Configure finished. Do 'make depend && make' to compile Wine."
More information about the wine-patches
mailing list