diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/build/m4/check_cc.m4 | 3 | ||||
-rw-r--r-- | source4/lib/charset/config.m4 | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4 index f1b4f82cec..324ddb3c03 100644 --- a/source4/build/m4/check_cc.m4 +++ b/source4/build/m4/check_cc.m4 @@ -72,7 +72,8 @@ if test -n "$VISIBILITY_CFLAGS"; then OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" - AC_TRY_RUN([ + AC_TRY_LINK([], + [ void vis_foo1(void) {} __attribute__((visibility("default"))) void vis_foo2(void) {} #include "${srcdir-.}/build/tests/trivial.c" diff --git a/source4/lib/charset/config.m4 b/source4/lib/charset/config.m4 index fb845aa67c..453de9fe26 100644 --- a/source4/lib/charset/config.m4 +++ b/source4/lib/charset/config.m4 @@ -10,7 +10,10 @@ int main() if (cd == 0 || cd == (iconv_t)-1) return -1; return 0; } - ],[AC_MSG_RESULT(yes); $3],[AC_MSG_RESULT(no); $4]) + ], + [AC_MSG_RESULT(yes); $3], + [AC_MSG_RESULT(no); $4], + [AC_MSG_RESULT(cross); $4]) ]) dnl SMB_CHECK_ICONV_DIR(dir,action-if-found,action-if-not-found) |