From 073f612baa6e0aada604fe22b8d98eb03fb3290e Mon Sep 17 00:00:00 2001 From: Yutaro Sakamoto Date: Fri, 11 Oct 2024 19:17:00 +0900 Subject: [PATCH 1/2] [WIP]: wip --- config.h.in | 3 --- configure | 1 - configure.ac | 1 - 3 files changed, 5 deletions(-) diff --git a/config.h.in b/config.h.in index 6fbf66ec..20bcd066 100644 --- a/config.h.in +++ b/config.h.in @@ -60,9 +60,6 @@ the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE -/* curses has color_set function */ -#undef HAVE_COLOR_SET - /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT diff --git a/configure b/configure index ab62668d..5d1735cc 100755 --- a/configure +++ b/configure @@ -3549,7 +3549,6 @@ fi - printf "%s\n" "#define __USE_STRING_INLINES 1" >>confdefs.h diff --git a/configure.ac b/configure.ac index 77876630..af846d48 100644 --- a/configure.ac +++ b/configure.ac @@ -71,7 +71,6 @@ AH_TEMPLATE([COB_HAS_INLINE], [Can use inline keyword]) AH_TEMPLATE([COB_NO_SELFOPEN], [Can not dlopen self]) AH_TEMPLATE([COB_STRFTIME], [Can use strftime for timezone]) AH_TEMPLATE([COB_LI_IS_LL], [long int is long long]) -AH_TEMPLATE([HAVE_COLOR_SET], [curses has color_set function]) AC_DEFINE(__USE_STRING_INLINES) From 3e60b348ca581d6072c594dfa42215b9afdcbdc9 Mon Sep 17 00:00:00 2001 From: Yutaro Sakamoto Date: Fri, 11 Oct 2024 19:26:00 +0900 Subject: [PATCH 2/2] [Remove]: a dependency on gettimeofday --- config.h.in | 3 --- configure | 6 ------ configure.ac | 2 +- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/config.h.in b/config.h.in index 20bcd066..5fdfd0db 100644 --- a/config.h.in +++ b/config.h.in @@ -82,9 +82,6 @@ /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT -/* Define to 1 if you have the `gettimeofday' function. */ -#undef HAVE_GETTIMEOFDAY - /* Define if you have the iconv() function and it works. */ #undef HAVE_ICONV diff --git a/configure b/configure index 5d1735cc..f6b06a19 100755 --- a/configure +++ b/configure @@ -20250,12 +20250,6 @@ then : printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h fi -ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" -if test "x$ac_cv_func_gettimeofday" = xyes -then : - printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h - -fi # Check for timezone diff --git a/configure.ac b/configure.ac index af846d48..099e4993 100644 --- a/configure.ac +++ b/configure.ac @@ -178,7 +178,7 @@ fi AC_FUNC_ALLOCA AC_FUNC_VPRINTF AC_CHECK_FUNCS([memmove memset setlocale fcntl strerror \ - strcasecmp strchr strrchr strdup strstr strtol gettimeofday]) + strcasecmp strchr strrchr strdup strstr strtol]) # Check for timezone AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[timezone = 3600;]])],