+2002-08-30 [alfons] 0.8.2claws13
+
+ * acconfig.h
+ * configure.in
+ * src/crash.c
+ enable crash dialog on compilation time
+ (--enable-crash-dialog configure option)
+
2002-08-30 [alfons] 0.8.2claws12
* AUTHORS
MICRO_VERSION=2
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws12
+EXTRA_VERSION=claws13
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
CFLAGS="$CFLAGS_SAVE"
LDFLAGS="$LDFLAGS_SAVE"
+dnl want crash dialog
+AC_ARG_ENABLE(crash-dialog,
+ [ --enable-crash-dialog Enable crash dialog [default=no]],
+ [ac_cv_enable_crash_dialog=$enableval], [ac_cv_enable_crash_dialog=no])
+if test $ac_cv_enable_crash_dialog = yes; then
dnl check if GDB is somewhere
-AC_CHECK_PROG(HAVE_GDB, gdb, yes, no)
-if test $HAVE_GDB = yes; then
- AC_DEFINE(HAVE_GDB)
+ AC_CHECK_PROG(ac_cv_enable_crash_dialog, gdb, yes, no)
+ AC_MSG_CHECKING([whether to use crash dialog])
+ if test $ac_cv_enable_crash_dialog = yes; then
+ AC_DEFINE(CRASH_DIALOG)
+ fi
+ AC_MSG_RESULT($ac_cv_enable_crash_dialog)
fi
dnl Checks for header files.
echo "libjconv : $ac_cv_enable_jconv"
echo "IPv6 : $ac_cv_enable_ipv6"
echo "GNU/aspell : $ac_cv_enable_aspell"
+echo "Crash dialog : $ac_cv_enable_crash_dialog"
echo ""
echo "The binary will be installed in $prefix/bin"
echo ""
*/
void crash_install_handlers(void)
{
-#if HAVE_GDB
+#if CRASH_DIALOG
sigset_t mask;
if (!is_crash_dialog_allowed()) return;
#endif
sigprocmask(SIG_UNBLOCK, &mask, 0);
-#endif /* HAVE_GDB */
+#endif /* CRASH_DIALOG */
}
/***/
*/
void crash_main(const char *arg)
{
-#if HAVE_GDB
+#if CRASH_DIALOG
gchar *text;
gchar **tokens;
unsigned long pid;
g_string_free(output, TRUE);
g_free(text);
g_strfreev(tokens);
-#endif /* HAVE_GDB */
+#endif /* CRASH_DIALOG */
}
/*!