AC_PATH_PROG(PKGCONFIG, pkg-config)
dnl Check for libraries...
+AC_SEARCH_LIBS(fmod, m)
AC_SEARCH_LIBS(crypt, crypt)
AC_SEARCH_LIBS(getspent, sec gen)
echo Creating $@...
$(DSO) $(DSOFLAGS) -Wl,-bexport:libcups_s.exp -o libcups_s.o \
$(LIBOBJS) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
- $(COMMONLIBS) $(LIBZ) -lm
+ $(COMMONLIBS) $(LIBZ)
$(RM) $@
$(AR) $(ARFLAGS) $@ libcups_s.o
#include "cups-private.h"
#include <fcntl.h>
+#include <math.h>
#ifdef WIN32
# include <tchar.h>
#else
}
# elif defined(HAVE_GNUTLS)
+ (void)any_root;
+
credentials = (gnutls_certificate_client_credentials *)
malloc(sizeof(gnutls_certificate_client_credentials));
if (credentials == NULL)
return (-1);
}
- _sspiSetAllowsAnyRoot(http->tls_credentials, TRUE);
+ _sspiSetAllowsAnyRoot(http->tls_credentials, any_root);
_sspiSetAllowsExpiredCerts(http->tls_credentials, TRUE);
if (!_sspiConnect(http->tls_credentials, http->hostname))
cupsFileClose(fp);
- if (cupsFinishDocument(CUPS_HTTP_DEFAULT, argv[1]) != HTTP_OK)
+ if (cupsFinishDocument(CUPS_HTTP_DEFAULT, argv[1]) > IPP_OK_SUBST)
{
puts("Unable to finish document!");
return (1);
{
int i, j, k; /* Looping vars */
http_t *http; /* HTTP connection */
- http_encryption_t encrypt; /* Encryption type */
+ http_encryption_t encryption; /* Encryption type */
http_status_t status; /* Status of GET command */
int failures; /* Number of test failures */
char buffer[8192]; /* Input buffer */
if (!strcasecmp(scheme, "https") || !strcasecmp(scheme, "ipps") ||
port == 443)
- encrypt = HTTP_ENCRYPT_ALWAYS;
+ encryption = HTTP_ENCRYPT_ALWAYS;
else
- encrypt = HTTP_ENCRYPT_IF_REQUESTED;
+ encryption = HTTP_ENCRYPT_IF_REQUESTED;
- http = httpConnectEncrypt(hostname, port, encrypt);
+ http = httpConnectEncrypt(hostname, port, encryption);
if (http == NULL)
{
perror(hostname);
libcupsimage.so.2 libcupsimage.sl.2: $(IMAGEOBJS)
echo Linking $@...
$(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(IMAGEOBJS) $(DSOLIBS) \
- -L../cups $(LINKCUPS) -lm
+ -L../cups $(LINKCUPS)
$(RM) `basename $@ .2`
$(LN) $@ `basename $@ .2`
echo Linking 32-bit $@...
-mkdir 32bit
$(DSO) $(ARCH32FLAGS) $(DSO32FLAGS) -o $@ $(IMAGE32OBJS) $(DSOLIBS) \
- -L../cups/32bit $(LINKCUPS) -lm
+ -L../cups/32bit $(LINKCUPS)
#
echo Linking 64-bit $@...
-mkdir 64bit
$(DSO) $(ARCH64FLAGS) $(DSO64FLAGS) -o $@ $(IMAGE64OBJS) $(DSOLIBS) \
- -L../cups/64bit $(LINKCUPS) -lm
+ -L../cups/64bit $(LINKCUPS)
#
-install_name $(libdir)/$@ \
-current_version 2.3.0 \
-compatibility_version 2.0.0 \
- $(IMAGEOBJS) $(DSOLIBS) -L../cups $(LINKCUPS) -lm
+ $(IMAGEOBJS) $(DSOLIBS) -L../cups $(LINKCUPS)
$(RM) libcupsimage.dylib
$(LN) $@ libcupsimage.dylib
libcupsimage_s.a: $(IMAGEOBJS) libcupsimage_s.exp
echo Linking $@...
$(DSO) $(DSOFLAGS) -Wl,-berok,-bexport:libcupsimage_s.exp \
- -o libcupsimage_s.o $(IMAGEOBJS) $(DSOLIBS) -lm
+ -o libcupsimage_s.o $(IMAGEOBJS) $(DSOLIBS)
$(RM) $@
$(AR) $(ARFLAGS) $@ libcupsimage_s.o
pstops: pstops.o common.o ../cups/$(LIBCUPS)
echo Linking $@...
- $(CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS) -lm
+ $(CC) $(LDFLAGS) -o $@ pstops.o common.o $(LIBS)
#
strncpy(tformat, bufformat, format - bufformat);
tformat[format - bufformat] = '\0';
- bytes += cupsFilePrintf(fp, tformat, va_arg(ap, int));
+# ifdef HAVE_LONG_LONG
+ if (size == 'L')
+ bytes += cupsFilePrintf(fp, tformat, va_arg(ap, long long));
+ else
+# endif /* HAVE_LONG_LONG */
+ if (size == 'l')
+ bytes += cupsFilePrintf(fp, tformat, va_arg(ap, long));
+ else
+ bytes += cupsFilePrintf(fp, tformat, va_arg(ap, int));
break;
case 'p' : // Pointer value
ppd->matches += 3;
break;
}
+ else if (!_cups_strncasecmp(ppd->record.products[i], product,
+ product_len))
+ {
+ ppd->matches += 2;
+ break;
+ }
}
if (psversion)
cupstestppd: cupstestppd.o ../cups/$(LIBCUPS) ../filter/$(LIBCUPSIMAGE)
echo Linking $@...
- $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS) -lm
+ $(CC) $(LDFLAGS) -o $@ cupstestppd.o $(LINKCUPSIMAGE) $(IMGLIBS) $(LIBS)
cupstestppd-static: cupstestppd.o ../cups/$(LIBCUPSSTATIC) ../filter/libcupsimage.a
echo Linking $@...
#include <cups/file-private.h>
#include <regex.h>
#include <sys/stat.h>
-
+#ifndef WIN32
+# include <signal.h>
+#endif /* WIN32 */
#ifndef O_BINARY
# define O_BINARY 0
#endif /* !O_BINARY */
static void print_xml_trailer(int success, const char *message);
static void set_variable(_cups_vars_t *vars, const char *name,
const char *value);
+#ifndef WIN32
static void sigterm_handler(int sig);
+#endif /* WIN32 */
static int timeout_cb(http_t *http, void *user_data);
static void usage(void) __attribute__((noreturn));
static int validate_attr(ipp_attribute_t *attr, int print);
/* Global data */
+#ifndef WIN32
/*
* Catch SIGINT and SIGTERM...
*/
signal(SIGINT, sigterm_handler);
signal(SIGTERM, sigterm_handler);
+#endif /* !WIN32 */
/*
* Initialize the locale and variables...
}
+#ifndef WIN32
/*
* 'sigterm_handler()' - Handle SIGINT and SIGTERM.
*/
Cancel = 1;
}
+#endif /* !WIN32 */
/*