mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
config.mak.uname: add sysinfo() configuration for cygwin
Although sysinfo() is a 'Linux only' function, cygwin provides an implementation which appears to be functional. The assumption that this function is Linux only is reflected in the way the HAVE_SYSINFO build variable is handled by the Makefile and config.mak.uname. Rework the setting of HAVE_SYSINFO in the Linux section of the system specific config file, along with the corresponding setting of the BASIC_CFLAGS in the Makefile. Add the setting of HAVE_SYSINFO to the cygwin section of 'config.mak.uname'. While here, add a test for the sysinfo() function to the autoconf build system. Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
c9a51775a3
commit
50dec7c566
@@ -1066,6 +1066,14 @@ AC_CHECK_LIB([iconv], [locale_charset],
|
||||
[AC_CHECK_LIB([charset], [locale_charset],
|
||||
[CHARSET_LIB=-lcharset])])
|
||||
GIT_CONF_SUBST([CHARSET_LIB])
|
||||
|
||||
#
|
||||
# Define HAVE_SYSINFO=YesPlease if sysinfo is available.
|
||||
GIT_CHECK_FUNC(sysinfo,
|
||||
[HAVE_SYSINFO=YesPlease],
|
||||
[HAVE_SYSINFO=])
|
||||
GIT_CONF_SUBST([HAVE_SYSINFO])
|
||||
|
||||
#
|
||||
# Define HAVE_CLOCK_GETTIME=YesPlease if clock_gettime is available.
|
||||
GIT_CHECK_FUNC(clock_gettime,
|
||||
|
||||
Reference in New Issue
Block a user