Skip to content

Commit

Permalink
Re-merge ax_check_link_flag improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Mar 16, 2012
1 parent e64f87a commit 1534f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion m4/ax_check_link_flag.m4
Expand Up @@ -60,7 +60,8 @@ AC_DEFUN([AX_CHECK_LINK_FLAG],
AC_CACHE_CHECK([whether the linker accepts $1], CACHEVAR, [
ax_check_save_flags=$LDFLAGS
LDFLAGS="$LDFLAGS $4 $1"
AC_LINK_IFELSE([AC_LANG_PROGRAM()],
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]],
[[char x[42U];if (fgets(x,1000,stdin)) puts(x)]])],
[AS_VAR_SET(CACHEVAR,[yes])],
[AS_VAR_SET(CACHEVAR,[no])])
LDFLAGS=$ax_check_save_flags])
Expand Down

0 comments on commit 1534f48

Please sign in to comment.