diff --git a/configure.ac b/configure.ac index 577855a21e756b6b2636123d49fa76a09fddbeb7..a75e817f49e896a8d770aa2d3f9292b6ce68f861 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