blob: 589a72ec7fe6f73277aa96b5c3c40733703c22d9 [file] [log] [blame]
AC_DEFUN([ACX_VISIBILITY],[
AC_ARG_ENABLE(
[visibility],
[AS_HELP_STRING([--disable-visibility],[disable hidden visibilty link mode @<:@enabled@:>@])],
[enable_visibility="${enableval}"],
[enable_visibility="yes"]
)
if test "${enable_visibility}" = "yes"; then
CFLAGS="${CFLAGS} -fvisibility=hidden"
CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
AC_DEFINE(CRYPTOKI_VISIBILITY, 1,
[Define to default visibility of PKCS@%:@11 entry points])
fi
])