Skip to content

Commit a6fd4fb

Browse files
sortiegitster
authored andcommitted
autoconf: check for setitimer()
The Makefile has provisions for this case, so let's detect it in the configure script as well. Signed-off-by: Jonas 'Sortie' Termansen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6441090 commit a6fd4fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

configure.ac

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,12 @@ AC_CHECK_LIB([iconv], [locale_charset],
911911
[CHARSET_LIB=-lcharset])])
912912
GIT_CONF_SUBST([CHARSET_LIB])
913913
#
914+
# Define NO_SETITIMER if you don't have setitimer.
915+
GIT_CHECK_FUNC(setitimer,
916+
[NO_SETITIMER=],
917+
[NO_SETITIMER=YesPlease])
918+
GIT_CONF_SUBST([NO_SETITIMER])
919+
#
914920
# Define NO_STRCASESTR if you don't have strcasestr.
915921
GIT_CHECK_FUNC(strcasestr,
916922
[NO_STRCASESTR=],

0 commit comments

Comments
 (0)