@matheusbsbs / matheus-bagliano / commits / 2439755630
Fork 0

autoconf: Add tests for memmem, strtoumax and mkdtemp functions

Update configure.ac (and config.mak.in) to keep up with git development by adding tests for memmem (NO_MEMMEM), strtoumax (NO_STRTOUMAX) and mkdtemp (NO_MKDTEMP) functions. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jakub Narebski committed Nov 19, 2007 at 19:47 UTC 2439755630de90abc9378483e73d3ba54c36ee71
2 files changed +21
config.mak.in
+3
@@ -35,7 +35,10 @@ NO_SOCKADDR_STORAGE=@NO_SOCKADDR_STORAGE@
35 NO_IPV6=@NO_IPV6@
36 NO_C99_FORMAT=@NO_C99_FORMAT@
37 NO_STRCASESTR=@NO_STRCASESTR@
38 +NO_MEMMEM=@NO_MEMMEM@
39 NO_STRLCPY=@NO_STRLCPY@
40 +NO_STRTOUMAX=@NO_STRTOUMAX@
41 NO_SETENV=@NO_SETENV@
42 +NO_MKDTEMP=@NO_MKDTEMP@
43 NO_ICONV=@NO_ICONV@
44 NO_DEFLATE_BOUND=@NO_DEFLATE_BOUND@
configure.ac
+18
@@ -289,18 +289,36 @@ AC_CHECK_FUNC(strcasestr,
289 [NO_STRCASESTR=YesPlease])
290 AC_SUBST(NO_STRCASESTR)
291 #
292 +# Define NO_MEMMEM if you don't have memmem.
293 +AC_CHECK_FUNC(memmem,
294 +[NO_MEMMEM=],
295 +[NO_MEMMEM=YesPlease])
296 +AC_SUBST(NO_MEMMEM)
297 +#
298 # Define NO_STRLCPY if you don't have strlcpy.
299 AC_CHECK_FUNC(strlcpy,
300 [NO_STRLCPY=],
301 [NO_STRLCPY=YesPlease])
302 AC_SUBST(NO_STRLCPY)
303 #
304 +# Define NO_STRTOUMAX if you don't have strtoumax in the C library.
305 +AC_CHECK_FUNC(strtoumax,
306 +[NO_STRTOUMAX=],
307 +[NO_STRTOUMAX=YesPlease])
308 +AC_SUBST(NO_STRTOUMAX)
309 +#
310 # Define NO_SETENV if you don't have setenv in the C library.
311 AC_CHECK_FUNC(setenv,
312 [NO_SETENV=],
313 [NO_SETENV=YesPlease])
314 AC_SUBST(NO_SETENV)
315 #
316 +# Define NO_MKDTEMP if you don't have mkdtemp in the C library.
317 +AC_CHECK_FUNC(mkdtemp,
318 +[NO_MKDTEMP=],
319 +[NO_MKDTEMP=YesPlease])
320 +AC_SUBST(NO_MKDTEMP)
321 +#
322 # Define NO_MMAP if you want to avoid mmap.
323 #
324 # Define NO_ICONV if your libc does not properly support iconv.