]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Follow-up for r11164: made sure that the --build-id=none configure test works (was...
authorBart Van Assche <bvanassche@acm.org>
Thu, 10 Jun 2010 06:26:21 +0000 (06:26 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 10 Jun 2010 06:26:21 +0000 (06:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11169

configure.in

index 906ff846128b4480378bd0bbe8a12837cb72e66b..f06c922fccaf839e2c432a1e42cf9725436dca65 100644 (file)
@@ -1285,9 +1285,8 @@ AC_MSG_CHECKING([if gcc accepts -Wl,--build-id=none])
 safe_CFLAGS=$CFLAGS
 CFLAGS="-Wl,--build-id=none"
 
-AC_TRY_COMPILE(
-[ ],
-[return 0; ],
+AC_LINK_IFELSE(
+[AC_LANG_PROGRAM([ ], [return 0;])],
 [
   AC_SUBST([FLAG_NO_BUILD_ID], ["-Wl,--build-id=none"])
   AC_MSG_RESULT([yes])