diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-04 14:46:44 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-04 14:46:44 -0400 |
commit | dc53edf2132fa7a25a75e2f8f12ed4623c4cbb2a (patch) | |
tree | 9323ea7d11f548d17f871635961eb67fbd24876f | |
parent | 89d3815e07e883f7f399b69c709518667af179a0 (diff) | |
download | xorg-lib-libXaw-dc53edf2132fa7a25a75e2f8f12ed4623c4cbb2a.tar.gz |
add --disable-const option, from libXt
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
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 |