- if test $cross_compiling != no; then
- # The test below defaults to 'no' when cross compiling.
- # We default to yes if memcmp appears to exist, which works
- # better for MinGW.
- AC_CACHE_CHECK([whether cross-compiling target has memcmp],
- [gl_cv_func_memcmp_working],
- [AC_LINK_IFELSE([
- AC_LANG_PROGRAM([[#include <string.h>
- ]], [[int ret = memcmp ("foo", "bar", 0);]])],
- [gl_cv_func_memcmp_working=yes],
- [gl_cv_func_memcmp_working=no])])
- fi