summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-02-19 18:02:03 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-02-19 18:02:03 +0000
commit62dba86c81debf2677230c674902ddb98ba8e4c2 (patch)
tree781ccb454bb271a1d3bcab499b9af30e9a9bfccf /glib
parent2fbc8c20c169c6f931a773026b8ca19bba484646 (diff)
downloadgtk+-62dba86c81debf2677230c674902ddb98ba8e4c2.tar.gz
the value of ---enable_debug is written into glibconfig.h so everything is
Thu Feb 19 12:18:24 1998 Owen Taylor <owt1@cornell.edu> * glib/configure.in glib/glibconfig.h.in: the value of ---enable_debug is written into glibconfig.h so everything is recompiled when it changes. (HACK) * gtk/gtkmain.c gdk/gdk.c docs/debugging.txt: Added --gdk-no-debug and --gtk-no-debug switches. Effect of switches is no cumulative.
Diffstat (limited to 'glib')
-rw-r--r--glib/acconfig.h1
-rw-r--r--glib/configure.in2
-rw-r--r--glib/glibconfig.h.in3
3 files changed, 6 insertions, 0 deletions
diff --git a/glib/acconfig.h b/glib/acconfig.h
index 8fb6672b92..86edcee2a8 100644
--- a/glib/acconfig.h
+++ b/glib/acconfig.h
@@ -32,6 +32,7 @@
/* Other stuff */
+#undef G_COMPILED_WITH_DEBUGGING
#undef HAVE_BROKEN_WCTYPE
#undef HAVE_DOPRNT
#undef HAVE_FLOAT_H
diff --git a/glib/configure.in b/glib/configure.in
index 7f3815d911..0816180ee5 100644
--- a/glib/configure.in
+++ b/glib/configure.in
@@ -32,6 +32,8 @@ else
fi
fi
+AC_DEFINE_UNQUOTED(G_COMPILED_WITH_DEBUGGING, "${enable_debug}")
+
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_STDC
diff --git a/glib/glibconfig.h.in b/glib/glibconfig.h.in
index 5fd8a65a0f..a8ca74bdc7 100644
--- a/glib/glibconfig.h.in
+++ b/glib/glibconfig.h.in
@@ -3,6 +3,9 @@
/* Define to empty if the keyword does not work. */
#undef const
+/* Force recompilation when --enable-debug value changes */
+#undef G_COMPILED_WITH_DEBUGGING
+
/* Define if you don't have vprintf but do have _doprnt. */
#undef HAVE_DOPRNT