--- a/m4/xiph_curl.m4
+++ b/m4/xiph_curl.m4
@@ -52,7 +52,7 @@ AC_CHECK_HEADERS([curl/curl.h],, curl_ok="no")
 AC_MSG_CHECKING(for libcurl)
 if test "$curl_ok" = "yes"
 then
-    AC_RUN_IFELSE(AC_LANG_SOURCE([
+    AC_COMPILE_IFELSE(AC_LANG_SOURCE([
 #include <curl/curl.h>
 int main()
 {
