Permalink
Browse files

Re-merge ax_check_link_flag improvements.

  • Loading branch information...
1 parent e64f87a commit 1534f484105de6060267b4c7a5b3c90b7957a871 @jedisct1 committed Mar 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 m4/ax_check_link_flag.m4
View
@@ -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])

0 comments on commit 1534f48

Please sign in to comment.