From dc53edf2132fa7a25a75e2f8f12ed4623c4cbb2a Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 4 Jul 2019 14:46:44 -0400 Subject: add --disable-const option, from libXt --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 577855a..a75e817 100644 --- a/configure.ac +++ b/configure.ac @@ -106,6 +106,14 @@ case $host_os in ;; esac +AC_MSG_CHECKING(if C const-support is wanted) +AC_ARG_ENABLE(const, AS_HELP_STRING([--disable-const], [Disable const-support]), + USE_CONST="$enableval", USE_CONST="yes") +AC_MSG_RESULT($USE_CONST) +if test "x$USE_CONST" = "xyes" ; then + AC_DEFINE(_CONST_X_STRING, 1, [Define to 1 to use standard C const feature.]) +fi + AC_CONFIG_FILES([Makefile include/Makefile man/Makefile -- cgit v1.2.1