1 dnl Detection and configuration of the visibility feature of gcc
2 dnl Vincent Torri 2006-02-11
4 dnl GCC_CHECK_VISIBILITY([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
5 dnl Check the visibility feature of gcc
7 AC_DEFUN([GCC_CHECK_VISIBILITY],
8 [AC_MSG_CHECKING([whether ${CC} supports symbol visibility])
10 CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
14 #pragma GCC visibility push(hidden)
16 #pragma GCC visibility pop
23 [Defined if GCC supports the visibility feature])
24 m4_if([$1], [], [:], [$1])
26 [m4_if([$2], [], [:], [$2])