From 43c468926b1c683b3348ffbb6be5648a4cb3340a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 5 Sep 2018 13:42:19 +0200 Subject: [PATCH] Remove HAVE_FLOCKFILE and HAVE_GETCUNLOCKED custom defines in favour of AC_CHECK_FUNCS call --- acconfig.h | 6 ------ config.h.in | 6 ------ configure | 18 ------------------ configure.in | 8 -------- 4 files changed, 38 deletions(-) diff --git a/acconfig.h b/acconfig.h index 8d667442bc..d3b0ee4d3a 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 e838e776a4..9c7a06992b 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 193423fb7f..00ca246ca0 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 c6e1489964..652dd20199 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 #