openbsd-ports/net/netatalk/stable/patches/patch-configure

22 lines
684 B
Plaintext

$OpenBSD: patch-configure,v 1.2 2003/08/22 11:18:19 naddy Exp $
--- configure.orig Tue Jun 10 01:55:15 2003
+++ configure Mon Aug 18 11:18:16 2003
@@ -14515,10 +14515,16 @@ echo "${ECHO_T} * OpenBSD specific confi
#define BSD4_4 1
_ACEOF
- cat >>confdefs.h <<\_ACEOF
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
+ # Use the same ELF test as for NetBSD here for OpenBSD
+ # NetBSD ELF machines don't have to have DLSYM_PREPEND_UNDERSCO$
+ # If this test is true, it's not an ELF box.
+ # This REALLY should be a configure test.
+ cat >>confdefs.h <<\_ACEOF
#define DLSYM_PREPEND_UNDERSCORE 1
_ACEOF
+ fi
cat >>confdefs.h <<\_ACEOF
#define UAM_DHX 1