Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
configure: add getdelim() check
author
Eric Sunshine
<sunshine@sunshineco.com>
Tue, 2 Jun 2015 21:15:44 +0000
(17:15 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 3 Jun 2015 16:38:19 +0000
(09:38 -0700)
As an optimization, strbuf will take advantage of getdelim() if
available, so add a configure check which defines HAVE_GETDELIM if
found.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
4e36878
)
diff --git
a/configure.ac
b/configure.ac
index bbdde85c3dcca460dd0aebee6415ccce184885dc..14012fad720c1fdade1f305b1a7092abf2146ac1 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-1041,6
+1041,12
@@
GIT_CHECK_FUNC(initgroups,
[NO_INITGROUPS=YesPlease])
GIT_CONF_SUBST([NO_INITGROUPS])
#
+# Define HAVE_GETDELIM if you have getdelim in the C library.
+GIT_CHECK_FUNC(getdelim,
+[HAVE_GETDELIM=YesPlease],
+[HAVE_GETDELIM=])
+GIT_CONF_SUBST([HAVE_GETDELIM])
+#
#
# Define NO_MMAP if you want to avoid mmap.
#