Skip to content

Commit

Permalink
Make these build with new win32 build system.
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Dec 19, 2003
1 parent 836e786 commit 51c342e
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 1 deletion.
22 changes: 22 additions & 0 deletions ext/pdf/config.w32
@@ -0,0 +1,22 @@
// $Id$
// vim:ft=javascript

ARG_WITH("pdf", "PDF support", "no");

if (PHP_PDF != "no") {

if (CHECK_HEADER_ADD_INCLUDE("pdflib.h", "CFLAGS_PDF", PHP_PDF) &&
CHECK_LIB("libtiff.lib", "pdf", PHP_PDF) &&
CHECK_LIB("libpng.lib", "pdf", PHP_PDF) &&
CHECK_LIB("zlib.lib", "pdf", PHP_PDF) &&
CHECK_LIB("gdi32.lib", "pdf", PHP_PDF) &&
CHECK_LIB("pdflib.lib", "pdf", PHP_PDF)) {
EXTENSION('pdf', 'pdf.c');

AC_DEFINE('HAVE_PDFLIB', 1);

} else {
WARNING("pdf not enabled; libraries and headers not found");
}
}

18 changes: 18 additions & 0 deletions ext/pspell/config.w32
@@ -0,0 +1,18 @@
// $Id$
// vim:ft=javascript

ARG_WITH("pspell", "pspell/aspell (whatever it's called this month) support", "no");

if (PHP_PSPELL != "no") {

if (CHECK_HEADER_ADD_INCLUDE("pspell.h", "CFLAGS_PSPELL", PHP_PHP_BUILD + "\\include\\pspell;" + PHP_PSPELL) &&
CHECK_LIB("aspell-15.lib", "pspell", PHP_PSPELL)) {
EXTENSION('pspell', 'pspell.c');

AC_DEFINE('HAVE_PSPELL', 1);

} else {
WARNING("pspell not enabled; libraries and headers not found");
}
}

18 changes: 18 additions & 0 deletions ext/snmp/config.w32
@@ -0,0 +1,18 @@
// $Id$
// vim:ft=javascript

ARG_WITH("snmp", "SNMP support", "no");

if (PHP_SNMP != "no") {

if (CHECK_HEADER_ADD_INCLUDE("snmp.h", "CFLAGS_SNMP", PHP_PHP_BUILD + "\\include\\ucd-snmp;" + PHP_PHP_BUILD + "\\include\\net-snmp;" + PHP_SNMP) &&
CHECK_LIB("libsnmp.lib", "snmp", PHP_SNMP)) {
EXTENSION('snmp', 'snmp.c');

AC_DEFINE('HAVE_SNMP', 1);

} else {
WARNING("snmp not enabled; libraries and headers not found");
}
}

6 changes: 5 additions & 1 deletion ext/snmp/snmp.c
Expand Up @@ -91,7 +91,11 @@
#include "keytools.h"
#include "parse.h"
#include "mib.h"
#include "version.h"
#ifndef PHP_WIN32
/* this doesn't appear to be needed under win32 (perhaps at all)
* and the header file is not present in my UCD-SNMP headers */
# include "version.h"
#endif
#include "transform_oids.h"
#endif
/* Ugly macro, since the length of OIDs in UCD-SNMP and NET-SNMP
Expand Down
15 changes: 15 additions & 0 deletions ext/sockets/config.w32
@@ -0,0 +1,15 @@
// $Id$
// vim:ft=javascript

ARG_ENABLE("sockets", "SOCKETS support", "no");

if (PHP_SOCKETS != "no") {

if (CHECK_LIB("ws2_32.lib", "sockets", PHP_SOCKETS)) {
EXTENSION('sockets', 'sockets.c php_sockets_win.c');
AC_DEFINE('HAVE_SOCKETS', 1);
} else {
WARNING("sockets not enabled; libraries and headers not found");
}
}

18 changes: 18 additions & 0 deletions ext/sybase_ct/config.w32
@@ -0,0 +1,18 @@

// $Id$
// vim:ft=javascript

ARG_WITH("sybase-ct", "SYBASE_CT support", "no");

if (PHP_SYBASE_CT != "no") {

if (CHECK_HEADER_ADD_INCLUDE("ctpublic.h", "CFLAGS_SYBASE_CT", PHP_PHP_BUILD + "\\sybase\\include;" + PHP_SYBASE_CT) &&
CHECK_LIB("libcs.lib", "sybase_ct", PHP_PHP_BUILD + "\\sybase\\lib;" + PHP_SYBASE_CT) &&
CHECK_LIB("libct.lib", "sybase_ct", PHP_PHP_BUILD + "\\sybase\\lib;" + PHP_SYBASE_CT)) {
EXTENSION('sybase_ct', 'php_sybase_ct.c');
AC_DEFINE('HAVE_SYBASE_CT', 1);
} else {
WARNING("sybase_ct not enabled; libraries and headers not found");
}
}

19 changes: 19 additions & 0 deletions ext/tidy/config.w32
@@ -0,0 +1,19 @@
// $Id$
// vim:ft=javascript

ARG_WITH("tidy", "TIDY support", "no");

if (PHP_TIDY != "no") {
if (CHECK_LIB("libtidy.lib", "tidy", PHP_TIDY) &&
(
CHECK_HEADER_ADD_INCLUDE("tidy.h", "CFLAGS_TIDY") ||
CHECK_HEADER_ADD_INCLUDE("tidy/tidy.h", "CFLAGS_TIDY", null, null, true) ||
CHECK_HEADER_ADD_INCLUDE("libtidy/tidy.h", "CFLAGS_TIDY", null, null, true)
)) {
EXTENSION("tidy", "tidy.c");
AC_DEFINE('HAVE_TIDY', 1, 'Have TIDY library');
} else {
WARNING("tidy not enabled; libraries and headers not found");
}
}

0 comments on commit 51c342e

Please sign in to comment.