]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
XXX Hack to allow tor-fw-helper to be built on Windows
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>
Wed, 20 Jul 2011 15:07:13 +0000 (16:07 +0100)
committerSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>
Thu, 21 Jul 2011 12:09:50 +0000 (13:09 +0100)
For some reason, --with-libminiupnpc-dir doesn't work on Windows, so this
hardcodes /local/lib as the path in which libminiupnpc.a can be found.
Also, libminiupnpc needs libws2_32 and libiphlpapi under Windows, so this
hardcodes these libraries when building the ./configure test program.
These changes almost certainly break *nix, so should be fixed before merge.

configure.in

index 0a018628dbb28e08aa7517ef585988ca67fe180e..f1113554852160acf3e741a7082314b9498aafe1 100644 (file)
@@ -559,7 +559,7 @@ dnl There are no packages for Debian or Redhat as of this patch
 
 if test "$upnp" = "true"; then
     AC_DEFINE(MINIUPNPC, 1, [Define to 1 if we are building with UPnP.])
-    TOR_SEARCH_LIBRARY(libminiupnpc, $trylibminiupnpcdir, [-lminiupnpc],
+    TOR_SEARCH_LIBRARY(libminiupnpc, $trylibminiupnpcdir, [-lminiupnpc -lws2_32 -liphlpapi],
         [#include <miniupnpc/miniwget.h>
          #include <miniupnpc/miniupnpc.h>
          #include <miniupnpc/upnpcommands.h>],
@@ -567,7 +567,7 @@ if test "$upnp" = "true"; then
          const char * minissdpdsock, int sameport);],
         [upnpDiscover(1, 0, 0, 0); exit(0);],
         [--with-libminiupnpc-dir],
-        [/usr/lib/])
+        [/local/lib/])
 fi
 
 AC_SYS_LARGEFILE