From: Bartosz Golaszewski Date: Tue, 20 Jun 2017 08:36:16 +0000 (+0200) Subject: configure: check for regex functions when building tests X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8ec7f414762bd99ec96d9e2f434d687bcd1ea785;p=qemu-gpiodev%2Flibgpiod.git configure: check for regex functions when building tests Check if regexec() is available if we need to build the test suite. Signed-off-by: Bartosz Golaszewski --- diff --git a/configure.ac b/configure.ac index 02144dd..a4f8f7e 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,7 @@ AC_DEFUN([FUNC_NOT_FOUND_TESTS], if test "x$with_tests" = xtrue then AC_CHECK_FUNC([qsort], [], [FUNC_NOT_FOUND_TESTS([qsort])]) + AC_CHECK_FUNC([regexec], [], [FUNC_NOT_FOUND_TESTS([regexec])]) PKG_CHECK_MODULES(KMOD, libkmod) PKG_CHECK_MODULES(UDEV, libudev)