summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-05-04 11:09:55 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-05-04 11:09:55 +0200
commitd85d34cb8df00e1cd9b78b27bcff55854b60d687 (patch)
treea4315ddc035dc2ae3e3c982b999a3caed376e72c
parent964b840f342dffd83233bf1af6778a8b60b5e742 (diff)
downloadcurl-bagder/memmem-check.tar.gz
configure/cmake: check for memmembagder/memmem-check
-rw-r--r--CMakeLists.txt1
-rwxr-xr-xconfigure.ac1
-rw-r--r--lib/curl_config.h.cmake3
3 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 02474e29c..9934cc477 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -990,6 +990,7 @@ check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL)
check_symbol_exists(strdup "${CURL_INCLUDES}" HAVE_STRDUP)
check_symbol_exists(strstr "${CURL_INCLUDES}" HAVE_STRSTR)
+check_symbol_exists(memmem "${CURL_INCLUDES}" HAVE_MEMMEM)
check_symbol_exists(strtok_r "${CURL_INCLUDES}" HAVE_STRTOK_R)
check_symbol_exists(strftime "${CURL_INCLUDES}" HAVE_STRFTIME)
check_symbol_exists(uname "${CURL_INCLUDES}" HAVE_UNAME)
diff --git a/configure.ac b/configure.ac
index 8b3ff904c..bad25d48a 100755
--- a/configure.ac
+++ b/configure.ac
@@ -3352,6 +3352,7 @@ AC_CHECK_FUNCS([fnmatch \
gettimeofday \
if_nametoindex \
mach_absolute_time \
+ memmem \
pipe \
setlocale \
setmode \
diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake
index fbe17bc5b..553b74990 100644
--- a/lib/curl_config.h.cmake
+++ b/lib/curl_config.h.cmake
@@ -662,6 +662,9 @@
/* Define to 1 if you have the strstr function. */
#cmakedefine HAVE_STRSTR 1
+/* Define to 1 if you have the memmem function. */
+#cmakedefine HAVE_MEMMEM 1
+
/* Define to 1 if you have the strtok_r function. */
#cmakedefine HAVE_STRTOK_R 1