build: Expose whether symbol hiding is on

Adding the CARES_SYMBOL_HIDING definition allows the test suite to
detect whether internal symbols are available or not.
This commit is contained in:
David Drysdale 2016-01-11 17:42:52 +00:00
parent ace90cce05
commit 8042524c70
1 changed files with 4 additions and 0 deletions

View File

@ -388,5 +388,9 @@ AC_DEFUN([CARES_CONFIGURE_SYMBOL_HIDING], [
fi
AM_CONDITIONAL(DOING_CARES_SYMBOL_HIDING, test x$doing_symbol_hiding = xyes)
AC_SUBST(CFLAG_CARES_SYMBOL_HIDING)
if test "$doing_symbol_hiding" = "yes"; then
AC_DEFINE_UNQUOTED(CARES_SYMBOL_HIDING, 1,
[Defined for build with symbol hiding.])
fi
])