Fix for non-__va_copy systems. I had used AC_TRY_COMPILE, but even though
authorJim McDonough <jmcd@samba.org>
Thu, 16 May 2002 20:28:52 +0000 (20:28 +0000)
committerJim McDonough <jmcd@samba.org>
Thu, 16 May 2002 20:28:52 +0000 (20:28 +0000)
__va_copy wasn't defined, it compiled as though it were a function, but
fails on a link.  Oops.
(This used to be commit d3222ecd1a024fd2e7ba72b1bc10a400d398a364)

source3/configure
source3/configure.in

index 07176f0c02f2339438cdd40f5b5e878c3b0189b3..9bfb347b06ca7556781dac6654cda5a77d302a0c 100755 (executable)
@@ -9753,7 +9753,7 @@ int main() {
 __va_copy(ap1,ap2);
 ; return 0; }
 EOF
-if { (eval echo configure:9757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   samba_cv_HAVE_VA_COPY=yes
 else
index a5460b70dea5c9bde0736173fa03eeebd47c6bc6..51722d6eb19e56b7a992d1e285161e3e4cf8b90c 100644 (file)
@@ -1174,7 +1174,7 @@ if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
 fi
 
 AC_CACHE_CHECK([for __va_copy],samba_cv_HAVE_VA_COPY,[
-AC_TRY_COMPILE([#include <stdarg.h>
+AC_TRY_LINK([#include <stdarg.h>
 va_list ap1,ap2;], [__va_copy(ap1,ap2);],
 samba_cv_HAVE_VA_COPY=yes,samba_cv_HAVE_VA_COPY=no)])
 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then