From: Ondřej Surý Date: Wed, 5 Sep 2018 11:42:19 +0000 (+0200) Subject: Remove HAVE_FLOCKFILE and HAVE_GETCUNLOCKED custom defines in favour of AC_CHECK_FUNC... X-Git-Tag: v9.13.4~157^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43c468926b1c683b3348ffbb6be5648a4cb3340a;p=thirdparty%2Fbind9.git Remove HAVE_FLOCKFILE and HAVE_GETCUNLOCKED custom defines in favour of AC_CHECK_FUNCS call --- diff --git a/acconfig.h b/acconfig.h index 8d667442bcb..d3b0ee4d3a5 100644 --- a/acconfig.h +++ b/acconfig.h @@ -17,12 +17,6 @@ ***/ @TOP@ -/** define if flockfile() is available */ -#undef HAVE_FLOCKFILE - -/** define if getc_unlocked() is available */ -#undef HAVE_GETCUNLOCKED - /** define if the system has a random number generating device */ #undef PATH_RANDOMDEV diff --git a/config.h.in b/config.h.in index e838e776a41..9c7a06992b0 100644 --- a/config.h.in +++ b/config.h.in @@ -17,12 +17,6 @@ *** it does not get installed. ***/ -/** define if flockfile() is available */ -#undef HAVE_FLOCKFILE - -/** define if getc_unlocked() is available */ -#undef HAVE_GETCUNLOCKED - /** define if the system has a random number generating device */ #undef PATH_RANDOMDEV diff --git a/configure b/configure index 193423fb7fd..00ca246ca0c 100755 --- a/configure +++ b/configure @@ -16943,24 +16943,6 @@ _ACEOF fi -# -# flockfile is usually provided by pthreads, but we may want to use it -# even if compiled with --disable-threads. getc_unlocked might also not -# be defined. -# -ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" -if test "x$ac_cv_func_flockfile" = xyes; then : - $as_echo "#define HAVE_FLOCKFILE 1" >>confdefs.h - -fi - -ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" -if test "x$ac_cv_func_getc_unlocked" = xyes; then : - $as_echo "#define HAVE_GETCUNLOCKED 1" >>confdefs.h - -fi - - # # Large File # diff --git a/configure.in b/configure.in index c6e14899646..652dd201992 100644 --- a/configure.in +++ b/configure.in @@ -1526,14 +1526,6 @@ AC_SUBST(ZLIB) # AC_CHECK_LIB(scf, smf_enable_instance) -# -# flockfile is usually provided by pthreads, but we may want to use it -# even if compiled with --disable-threads. getc_unlocked might also not -# be defined. -# -AC_CHECK_FUNC(flockfile, AC_DEFINE(HAVE_FLOCKFILE),) -AC_CHECK_FUNC(getc_unlocked, AC_DEFINE(HAVE_GETCUNLOCKED),) - # # Large File #