+2024-10-26 Bruno Haible <bruno@clisp.org>
+
+ regex: Avoid dialog while running configure test on Haiku/x86_64.
+ Reported by Alexandru Popa <alpopa@gmail.com> in
+ <https://sourceforge.net/p/clisp/mailman/message/58831511/>.
+ * m4/regex.m4 (gl_REGEX): Disable dialog upon abort on Haiku.
+
2024-10-26 Bruno Haible <bruno@clisp.org>
regex: Make configure test more maintainable.
-# serial 76
+# serial 77
# Copyright (C) 1996-2001, 2003-2024 Free Software Foundation, Inc.
#
# include <malloc.h> /* defines M_CHECK_ACTION on glibc */
#endif
- #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
+ #if defined __HAIKU__ || defined M_CHECK_ACTION || HAVE_DECL_ALARM
# include <signal.h>
# include <unistd.h>
#endif
- #ifdef M_CHECK_ACTION
+ #if defined __HAIKU__ || defined M_CHECK_ACTION
/* Exit with distinguishable exit code. */
static void sigabrt_no_core (int sig) { raise (SIGTERM); }
#endif
signal (SIGALRM, SIG_DFL);
alarm (2);
#endif
+#ifdef __HAIKU__
+ signal (SIGABRT, sigabrt_no_core);
+#endif
#ifdef M_CHECK_ACTION
signal (SIGABRT, sigabrt_no_core);
mallopt (M_CHECK_ACTION, 2);