aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 12 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 673fb33..43b4d1b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
-AC_INIT([SciTECO], [2.5.1],
+AC_INIT([SciTECO], [2.5.2],
[hackers@fmsbw.de],
[sciteco],
[https://sciteco.fmsbw.de/])
@@ -18,10 +18,10 @@ AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AX_CHECK_ENABLE_DEBUG
-AM_CONDITIONAL(DEBUG, [test x$ax_enable_debug != xno])
if [[ x$ax_enable_debug = xno ]]; then
# glib does not look at NDEBUG
AC_DEFINE(G_DISABLE_ASSERT, 1, [Disable g_assert()])
+ DLMALLOC_CPPFLAGS="$DLMALLOC_CPPFLAGS -DINSECURE=1"
fi
# Use the user provided CXXFLAGS for Scintilla as well.
@@ -215,7 +215,7 @@ case $host in
*-*-linux* | *-*-*bsd* | *-*-darwin* | *-*-cygwin* | *-*-haiku*)
# NOTE: Keep this on a single line for compatibility
# with ancient versions of Autoconf.
- AC_CHECK_FUNCS([realpath readlink pathconf fchown dup dup2 getpid open read kill mmap popen pclose isatty fork execv setsid], , [
+ AC_CHECK_FUNCS([realpath readlink pathconf fchown dup dup2 getpid open read kill mmap popen pclose isatty fork execv setsid sigaction], , [
AC_MSG_ERROR([Missing libc function])
])
AC_SEARCH_LIBS(dladdr, [dl], , [
@@ -224,6 +224,13 @@ case $host in
;;
esac
+# Optional UNIX libc functions.
+# FreeBSD arm64 and riscv are missing sbrk(), which can be used by dlmalloc.
+AC_CHECK_FUNCS([sbrk], , [
+ DLMALLOC_CPPFLAGS="$DLMALLOC_CPPFLAGS -DHAVE_MORECORE=0"
+])
+AC_SUBST(DLMALLOC_CPPFLAGS)
+
#
# Config options
#
@@ -307,7 +314,7 @@ case $INTERFACE in
# Scinterm cares about the correct flags itself.
AC_DEFINE(NCURSES_WIDECHAR, 1, [Provide wide-character functions])
- AC_CHECK_FUNCS([tigetstr])
+ AC_CHECK_FUNCS([tigetstr use_default_colors])
;;
netbsd-curses)
@@ -331,7 +338,7 @@ case $INTERFACE in
CXXFLAGS="$CXXFLAGS $CURSES_CFLAGS"
LIBS="$LIBS $CURSES_LIBS"
- AC_CHECK_FUNCS([tigetstr])
+ AC_CHECK_FUNCS([tigetstr use_default_colors])
;;
xcurses)