PR #336: since we can't use function overriding (due to problems with it on
OSX) always include the _json_c_strerror function but only enable it with a flag during tests.
This commit is contained in:
1 parent
730ab7b019
commit
fcad0ec015
6 files changed
+19
-27
No files matched your search
@@ -23,22 +23,6 @@ else
|
||||
AC_MSG_RESULT([RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(strerror-override,
|
||||
AS_HELP_STRING([--enable-strerror-override],
|
||||
[Override strerror() function with internal version.]),
|
||||
[if test x$enableval = xyes; then
|
||||
enable_strerror_override=yes
|
||||
AC_DEFINE(ENABLE_STRERROR_OVERRIDE, 1, [Override strerror() with internal version])
|
||||
fi])
|
||||
|
||||
AM_CONDITIONAL([ENABLE_STRERROR_OVERRIDE], [test "x$enable_strerror_override" = "xyes"])
|
||||
|
||||
if test "x$enable_strerror_override" = "xyes"; then
|
||||
AC_MSG_RESULT([Overriding `strerror()` function with internal version])
|
||||
else
|
||||
AC_MSG_RESULT([Using libc's `strerror()` function])
|
||||
fi
|
||||
|
||||
# enable silent build by default
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||
|
||||
|
||||
Reference in new issue
Block a user