commit 66400c6fcff045f57056d59407c469ae51aa2648 Author: Daniel Swanson Date: Tue Aug 3 15:53:42 2021 -0500 pass along -DHAVE_STRING_VIEW to other repos diff --git a/configure.ac b/configure.ac index 96baab2..b46971f 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,11 @@ AC_CHECK_LIB(xml2, xmlReaderForFile) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h unistd.h stddef.h string_view]) + +have_sv="" +AC_CHECK_HEADERS([string_view], [have_sv="-DHAVE_STRING_VIEW"], [have_sv=""]) +AC_SUBST([have_sv]) + AC_CHECK_HEADER([utf8.h], [], [AC_MSG_ERROR([You don't have utfcpp installed.])]) # Checks for typedefs, structures, and compiler characteristics. diff --git a/lttoolbox.pc.in b/lttoolbox.pc.in index 9ecf8f5..7b43523 100644 --- a/lttoolbox.pc.in +++ b/lttoolbox.pc.in @@ -7,4 +7,4 @@ Name: lttoolbox Description: Augmented letter transducer tools for natural language processing Version: @VERSION@ Libs: -L${libdir} -llttoolbox@VERSION_MAJOR@ -Cflags: -I${includedir}/lttoolbox-@VERSION_API@ +Cflags: -I${includedir}/lttoolbox-@VERSION_API@ @have_sv@