Also, update --enable-dbus help to reflect the current default (now show
--disable-dbus).
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10842
7a7537e8-13f0-0310-91df-
b6672ffda945
dnl
dnl Common configuration stuff for CUPS.
dnl
-dnl Copyright 2007-2012 by Apple Inc.
+dnl Copyright 2007-2013 by Apple Inc.
dnl Copyright 1997-2007 by Easy Software Products, all rights reserved.
dnl
dnl These coded instructions, statements, and computer programs are the
AC_DEFINE(HAVE_LIBZ)
LIBZ="-lz"
LIBS="$LIBS -lz"
+ AC_CHECK_LIB(z, inflateCopy, AC_DEFINE(HAVE_INFLATECOPY))
if test "x$GZIP" != z; then
INSTALL_GZIP="-z"
fi))
DBUSDIR=""
fi
-AC_ARG_ENABLE(dbus, [ --enable-dbus build with DBUS support])
+AC_ARG_ENABLE(dbus, [ --disable-dbus build without DBUS support])
AC_ARG_WITH(dbusdir, [ --with-dbusdir set DBUS configuration directory ],
DBUSDIR="$withval")
*/
#undef HAVE_LIBZ
+#undef HAVE_INFLATECOPY
/*
#ifdef HAVE_LIBZ
if (http->coding)
{
+# ifdef HAVE_INFLATECOPY
int zerr; /* Decompressor error */
z_stream stream; /* Copy of decompressor stream */
}
bytes = length - http->stream.avail_out;
+
+# else
+ DEBUG_puts("2httpPeek: No inflateCopy on this platform, httpPeek does not "
+ "work with compressed streams.");
+ return (-1);
+# endif /* HAVE_INFLATECOPY */
}
else
#endif /* HAVE_LIBZ */
*
* IPP utilities for CUPS.
*
- * Copyright 2007-2012 by Apple Inc.
+ * Copyright 2007-2013 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
#ifndef O_BINARY
# define O_BINARY 0
#endif /* O_BINARY */
+#ifndef MSG_DONTWAIT
+# define MSG_DONTWAIT 0
+#endif /* !MSG_DONTWAIT */
/*
*/
#define HAVE_LIBZ 1
+#define HAVE_INFLATECOPY 1
/*
*/
#define HAVE_LIBZ 1
+#define HAVE_INFLATECOPY 1
/*