From 742ec4efee2529797113b2e4e2d696124ccd0788 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 13 Aug 2006 14:28:32 +0000 Subject: [PATCH] * should now be able to build jam on Zeta, too. git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@18504 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- jam/Jamfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jam/Jamfile b/jam/Jamfile index daafdcfa52..d3fc183509 100644 --- a/jam/Jamfile +++ b/jam/Jamfile @@ -133,7 +133,6 @@ if $(VMS) } if $(OS) = BEOS { - DEFINES += _ZETA_USING_DEPRECATED_API_=1 ; } # @@ -145,7 +144,14 @@ LinkLibraries jam : libjam.a ; GenFile jambase.c : mkjambase Jambase ; if $(OS) = BEOS { - LINKLIBS on jam += -lnet ; + local haveBone = [ GLOB /boot/develop/headers/be/bone/arpa : inet.h ] ; + if ! $(haveBone) { + LINKLIBS on jam += -lnet ; + } + local haveZeta = [ GLOB /boot/beos/system/lib : libzeta.so ] ; + if $(haveZeta) { + DEFINES += _ZETA_USING_DEPRECATED_API_=1 ; + } } Library libjam.a :