1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

When cross-compiling, we do some better checking for the NI_WITHSCOPEID option instead of just assuming it is present.

This commit is contained in:
Daniel Stenberg 2005-03-22 18:02:06 +00:00
parent bd7021d05b
commit 4e555c7b32

View File

@ -322,8 +322,24 @@ dnl program worked:
[ ac_cv_working_ni_withscopeid="yes" ], [ ac_cv_working_ni_withscopeid="yes" ],
dnl program failed: dnl program failed:
[ ac_cv_working_ni_withscopeid="no" ], [ ac_cv_working_ni_withscopeid="no" ],
dnl we cross-compile: dnl we cross-compile, check the headers using the preprocessor
[ ac_cv_working_ni_withscopeid="yes" ] [
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_RUN_IFELSE
]) dnl end of AC_CACHE_CHECK ]) dnl end of AC_CACHE_CHECK