* acconfig.h

* configure.in
* src/crash.c
	enable crash dialog on compilation time
	(--enable-crash-dialog configure option)
This commit is contained in:
Alfons Hoogervorst 2002-08-30 22:53:25 +00:00
parent 8a0dd5ebeb
commit da0b28f963
4 changed files with 27 additions and 10 deletions

View file

@ -1,3 +1,11 @@
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

View file

@ -39,8 +39,8 @@
/* Used to test for a u32 typedef */
#undef HAVE_U32_TYPEDEF
/* If gdb is available */
#undef HAVE_GDB
/* Pop up crash dialog */
#undef CRASH_DIALOG
#undef CLAWS

View file

@ -8,7 +8,7 @@ MINOR_VERSION=8
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
@ -318,10 +318,18 @@ fi
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.
@ -405,6 +413,7 @@ echo "compface : $ac_cv_enable_compface"
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 ""

View file

@ -86,7 +86,7 @@ static const gchar *DEBUG_SCRIPT = "bt\nkill\nq";
*/
void crash_install_handlers(void)
{
#if HAVE_GDB
#if CRASH_DIALOG
sigset_t mask;
if (!is_crash_dialog_allowed()) return;
@ -114,7 +114,7 @@ void crash_install_handlers(void)
#endif
sigprocmask(SIG_UNBLOCK, &mask, 0);
#endif /* HAVE_GDB */
#endif /* CRASH_DIALOG */
}
/***/
@ -124,7 +124,7 @@ void crash_install_handlers(void)
*/
void crash_main(const char *arg)
{
#if HAVE_GDB
#if CRASH_DIALOG
gchar *text;
gchar **tokens;
unsigned long pid;
@ -151,7 +151,7 @@ void crash_main(const char *arg)
g_string_free(output, TRUE);
g_free(text);
g_strfreev(tokens);
#endif /* HAVE_GDB */
#endif /* CRASH_DIALOG */
}
/*!