From: James Peach Date: Sun, 13 May 2007 04:38:44 +0000 (+0000) Subject: r22821: Replace unnecessary AC_TRY_RUN with AC_TRY_LINK. Fixes bug #2287. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~477 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0268eafc26f6d6da25eca582241b136b5a3245ad;p=thirdparty%2Fsamba.git r22821: Replace unnecessary AC_TRY_RUN with AC_TRY_LINK. Fixes bug #2287. --- diff --git a/source/configure.in b/source/configure.in index 863496a0962..d4fe277fb44 100644 --- a/source/configure.in +++ b/source/configure.in @@ -2214,11 +2214,12 @@ if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then fi AC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[ -AC_TRY_RUN([ +AC_TRY_LINK([ #include -#include +#include ], [ int main() { struct timeval tv; return gettimeofday(&tv, NULL);}], - samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=cross)]) + samba_cv_HAVE_GETTIMEOFDAY_TZ=yes, + samba_cv_HAVE_GETTIMEOFDAY_TZ=no)]) if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available]) fi