From 13ecb01de8a6ace6840823dad93179a3ee1f3049 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 27 Jun 2007 19:46:53 +0000 Subject: r23637: fix detection of visibility attribute support James: AC_TRY_LINK() has a different syntax as AC_TRY_RUN() :-) so this was wrong: http://websvn.samba.org/cgi-bin/viewcvs.cgi?rev=20697&view=rev metze (This used to be commit 0a97de3804cbfc593c0cfc62e61fbfe87d2cf368) --- source4/build/m4/check_cc.m4 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4 index b618897f06..586ba9b814 100644 --- a/source4/build/m4/check_cc.m4 +++ b/source4/build/m4/check_cc.m4 @@ -71,11 +71,10 @@ if test -n "$VISIBILITY_CFLAGS"; then OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" - AC_TRY_LINK([], - [ + AC_TRY_LINK([ void vis_foo1(void) {} __attribute__((visibility("default"))) void vis_foo2(void) {} - #include "${srcdir-.}/build/tests/trivial.c" + ],[ ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_VISIBILITY_ATTR,1,[Whether the C compiler supports the visibility attribute]) -- cgit