Skip to content

Commit

Permalink
added config.w32
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed May 14, 2014
1 parent 219435d commit a15901b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config.w32
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

ARG_WITH("mosquitto", "include hrtime support", "no");

if (PHP_MOSQUITTO != "no") {
if (CHECK_HEADER_ADD_INCLUDE("mosquitto.h", "CFLAGS_MOSQUITTO", PHP_PHP_BUILD + "\\include;" + PHP_MOSQUITTO)
&& CHECK_LIB("mosquitto.lib", "mosquitto", PHP_PHP_BUILD + "\\lib;" + PHP_MOSQUITTO)) {

EXTENSION('mosquitto', 'mosquitto.c mosquitto_message.c');
AC_DEFINE('HAVE_MOSQUITTO', 1);

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

}

1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<file role="src" name="mosquitto_message.c"/>

<file role="src" name="config.m4"/>
<file role="src" name="config.w32"/>
</dir>
</contents>

Expand Down

0 comments on commit a15901b

Please sign in to comment.