Skip to content

Commit

Permalink
oops: AC_RUN_IFELSE gets offended if I don't give it a AC_LANG_PROGRAM
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Jun 18, 2012
1 parent adbdeaf commit 8c01581
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8c01581

Please sign in to comment.