]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
oops: AC_RUN_IFELSE gets offended if I don't give it a AC_LANG_PROGRAM
authorNick Mathewson <nickm@torproject.org>
Mon, 18 Jun 2012 15:47:05 +0000 (11:47 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 18 Jun 2012 15:48:45 +0000 (11:48 -0400)
acinclude.m4

index ae14411f6bbe483301a0a9238804fd46096d3995..9ab684877a09010330dff377b5df4ef7b6f3cb58 100644 (file)
@@ -71,14 +71,12 @@ AC_DEFUN([TOR_CHECK_LDFLAGS], [
     CFLAGS="$CFLAGS -pedantic -Werror"
     LDFLAGS="$LDFLAGS $2 $1"
     LIBS="$LIBS $3"
-    AC_RUN_IFELSE([
-#include <stdio.h>
-int main(int argc, char **argv) { fputs("", stdout); return 0; }],
-                   [AS_VAR_SET(VAR,yes)],
-                   [AS_VAR_SET(VAR,no)],
-                  [AC_TRY_LINK([], [return 0;],
-                                    [AS_VAR_SET(VAR,yes)],
-                                    [AS_VAR_SET(VAR,no)])])
+    AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [fputs("", stdout)])],
+                  [AS_VAR_SET(VAR,yes)],
+                  [AS_VAR_SET(VAR,no)],
+                 [AC_TRY_LINK([], [return 0;],
+                                   [AS_VAR_SET(VAR,yes)],
+                                   [AS_VAR_SET(VAR,no)])])
     CFLAGS="$tor_saved_CFLAGS"
     LDFLAGS="$tor_saved_LDFLAGS"
     LIBS="$tor_saved_LIBS"