diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2015-06-02 17:15:44 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-03 09:38:19 -0700 |
commit | 96658060d7d4317fa5e6f9309d058bdc4fd129db (patch) | |
tree | b5fdef72ebecf04016af9fdf8dce4ddf6edce180 /configure.ac | |
parent | 4e3687858e1bcd20865ad28fd6c2d05f421bed51 (diff) | |
download | git-96658060d7d4317fa5e6f9309d058bdc4fd129db.tar.gz git-96658060d7d4317fa5e6f9309d058bdc4fd129db.tar.xz |
configure: add getdelim() check
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>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index bbdde85c3..14012fad7 100644 --- 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. # |