summaryrefslogtreecommitdiffstats
path: root/libs/libnet-1.1.x/patches/160-endian_cache.patch
blob: 74603273fbc596d24972a0c55e5b5a48081f4fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -281,6 +281,7 @@ dnl
 AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
     [AC_MSG_CHECKING(machine endianess)
 
+    if \! test x${ac_cv_libnet_endianess+set} = xset ; then
     cat > conftest.c << EOF
 #       include <stdio.h>
 #       include <stdlib.h>
@@ -332,6 +333,7 @@ dnl failed to compile for some reason
             fi                                
         fi
         rm -f conftest* core core.conftest
+	fi
 
         AC_MSG_RESULT($ac_cv_libnet_endianess)