diff -Naur tor-0.2.2.35/configure.in tor-0.2.2.35-haiku/configure.in
|
old
|
new
|
|
| 215 | 215 | |
| 216 | 216 | AC_C_BIGENDIAN |
| 217 | 217 | |
| 218 | | AC_SEARCH_LIBS(socket, [socket]) |
| | 218 | AC_SEARCH_LIBS(socket, [socket network]) |
| 219 | 219 | AC_SEARCH_LIBS(gethostbyname, [nsl]) |
| 220 | 220 | AC_SEARCH_LIBS(dlopen, [dl]) |
| 221 | 221 | AC_SEARCH_LIBS(inet_aton, [resolv]) |
| … |
… |
|
| 340 | 340 | fi |
| 341 | 341 | AC_SUBST(TOR_LIBEVENT_LIBS) |
| 342 | 342 | |
| | 343 | dnl ------------------------------------------------------ |
| | 344 | dnl Where do you live, libm? |
| | 345 | |
| | 346 | dnl On some platforms (Haiku/BeOS) the math library is |
| | 347 | dnl part of libroot. In which case don't link against lm |
| | 348 | TOR_LIB_MATH="" |
| | 349 | save_LIBS="$LIBS" |
| | 350 | AC_SEARCH_LIBS(cos, [m], , AC_MSG_ERROR([Could not find libm and libcore does not provide the functions.])) |
| | 351 | if test "$ac_cv_search_cos" != "none required"; then |
| | 352 | TOR_LIB_MATH="$ac_cv_search_cos" |
| | 353 | fi |
| | 354 | LIBS="$save_LIBS" |
| | 355 | AC_SUBST(TOR_LIB_MATH) |
| 343 | 356 | |
| 344 | 357 | dnl ------------------------------------------------------ |
| 345 | 358 | dnl Where do you live, openssl? And how do we call you? |
diff -Naur tor-0.2.2.35/src/or/Makefile.am tor-0.2.2.35-haiku/src/or/Makefile.am
|
old
|
new
|
|
| 43 | 43 | tor_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@ |
| 44 | 44 | tor_LDADD = ./libtor.a ../common/libor.a ../common/libor-crypto.a \ |
| 45 | 45 | ../common/libor-event.a \ |
| 46 | | @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ |
| | 46 | @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ |
| 47 | 47 | |
| 48 | 48 | noinst_HEADERS = buffers.h circuitbuild.h circuitlist.h circuituse.h \ |
| 49 | 49 | command.h config.h connection_edge.h connection.h connection_or.h \ |
diff -Naur tor-0.2.2.35/src/test/Makefile.am tor-0.2.2.35-haiku/src/test/Makefile.am
|
old
|
new
|
|
| 25 | 25 | @TOR_LDFLAGS_libevent@ |
| 26 | 26 | test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \ |
| 27 | 27 | ../common/libor-event.a \ |
| 28 | | @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ |
| | 28 | @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ |
| 29 | 29 | |
| 30 | 30 | noinst_HEADERS = tinytest.h tinytest_macros.h test.h |
diff -Naur tor-0.2.2.35/src/tools/Makefile.am tor-0.2.2.35-haiku/src/tools/Makefile.am
|
old
|
new
|
|
| 3 | 3 | |
| 4 | 4 | tor_resolve_SOURCES = tor-resolve.c |
| 5 | 5 | tor_resolve_LDFLAGS = @TOR_LDFLAGS_libevent@ |
| 6 | | tor_resolve_LDADD = ../common/libor.a -lm @TOR_LIBEVENT_LIBS@ @TOR_LIB_WS32@ |
| | 6 | tor_resolve_LDADD = ../common/libor.a @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_LIB_WS32@ |
| 7 | 7 | |
| 8 | 8 | tor_gencert_SOURCES = tor-gencert.c |
| 9 | 9 | tor_gencert_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \ |
| 10 | 10 | @TOR_LDFLAGS_libevent@ |
| 11 | 11 | tor_gencert_LDADD = ../common/libor.a ../common/libor-crypto.a \ |
| 12 | | -lm @TOR_ZLIB_LIBS@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ |
| | 12 | @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ |
| 13 | 13 | |
| 14 | 14 | tor_checkkey_SOURCES = tor-checkkey.c |
| 15 | 15 | tor_checkkey_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \ |
| 16 | 16 | @TOR_LDFLAGS_libevent@ |
| 17 | 17 | tor_checkkey_LDADD = ../common/libor.a ../common/libor-crypto.a \ |
| 18 | | -lm @TOR_ZLIB_LIBS@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ |
| | 18 | @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ |