$NetBSD: patch-ab,v 1.10 2006/09/19 22:03:54 joerg Exp $ --- configure.orig 2006-08-06 16:31:00.000000000 +0000 +++ configure @@ -4237,38 +4237,13 @@ else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -char (*f) (); -#ifdef F77_DUMMY_MAIN -# ifdef __cplusplus - extern "C" -# endif - int F77_DUMMY_MAIN() { return 1; } -#endif +#include + int main () { -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -f = $ac_func; -#endif - - ; - return 0; + return gettimeofday(NULL, NULL); } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext @@ -5959,9 +5934,9 @@ echo "$as_me: WARNING: unable to link st fi fi fi -CPPFLAGS="" -LDFLAGS="" -LIBS="" +CPPFLAGS="$SAVE_CPPFLAGS" +LDFLAGS="$SAVE_LDFLAGS" +LIBS="$SAVE_LIBS" #-------------------------------------------------------------------- # Handle different systems case by case