summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-22 18:02:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-22 18:02:06 +0000
commit4e555c7b3238ebe48d7fcee304eab977f48679d4 (patch)
treefb09a11a66f1f9800712f2c1b4e12bdf0d89b09f /acinclude.m4
parentbd7021d05bb365cdd84cdf93a53fc597e4052121 (diff)
downloadcurl-4e555c7b3238ebe48d7fcee304eab977f48679d4.tar.gz
When cross-compiling, we do some better checking for the NI_WITHSCOPEID option instead of just assuming it is present.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m420
1 files changed, 18 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index d6d0cbb3c..73e8348e2 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -322,8 +322,24 @@ dnl program worked:
[ ac_cv_working_ni_withscopeid="yes" ],
dnl program failed:
[ ac_cv_working_ni_withscopeid="no" ],
-dnl we cross-compile:
-[ ac_cv_working_ni_withscopeid="yes" ]
+dnl we cross-compile, check the headers using the preprocessor
+[
+
+ AC_EGREP_CPP(WORKS,
+[
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+
+#ifdef NI_WITHSCOPEID
+WORKS
+#endif
+],
+ ac_cv_working_ni_withscopeid="yes",
+ ac_cv_working_ni_withscopeid="no" )
+
+ ]
) dnl end of AC_RUN_IFELSE
]) dnl end of AC_CACHE_CHECK