configure.in gdk/Makefile.am Put -DFOO stuff into Makefile.am INCLUDES.

* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.

-Yosh
This commit is contained in:
Manish Singh 1998-12-01 10:42:01 +00:00
parent 6047ed3ebd
commit 7078402341
10 changed files with 83 additions and 15 deletions

View File

@ -1,3 +1,10 @@
Tue Dec 1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.
Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org> Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type * gtk/gtkenums.h: fixed a stupid error of mine about the run type

View File

@ -1,3 +1,10 @@
Tue Dec 1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.
Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org> Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type * gtk/gtkenums.h: fixed a stupid error of mine about the run type

View File

@ -1,3 +1,10 @@
Tue Dec 1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.
Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org> Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type * gtk/gtkenums.h: fixed a stupid error of mine about the run type

View File

@ -1,3 +1,10 @@
Tue Dec 1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.
Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org> Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type * gtk/gtkenums.h: fixed a stupid error of mine about the run type

View File

@ -1,3 +1,10 @@
Tue Dec 1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.
Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org> Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type * gtk/gtkenums.h: fixed a stupid error of mine about the run type

View File

@ -1,3 +1,10 @@
Tue Dec 1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.
Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org> Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type * gtk/gtkenums.h: fixed a stupid error of mine about the run type

View File

@ -1,3 +1,10 @@
Tue Dec 1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.
Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org> Tue Dec 1 02:19:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type * gtk/gtkenums.h: fixed a stupid error of mine about the run type

View File

@ -71,12 +71,12 @@ AC_ARG_WITH(threads, [ --with-threads=[posix] support threading ])
if test "x$enable_debug" = "xyes"; then if test "x$enable_debug" = "xyes"; then
test "$cflags_set" = set || CFLAGS="$CFLAGS -g" test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
CFLAGS="$CFLAGS -DG_ENABLE_DEBUG" GTK_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
else else
if test "x$enable_debug" = "xno"; then if test "x$enable_debug" = "xno"; then
CFLAGS="$CFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DGTK_NO_CHECK_CASTS" GTK_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DGTK_NO_CHECK_CASTS"
else else
CFLAGS="$CFLAGS -DGTK_NO_CHECK_CASTS" GTK_DEBUG_FLAGS="-DGTK_NO_CHECK_CASTS"
fi fi
fi fi
@ -164,7 +164,7 @@ AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)]))) AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
if test "x$enable_xim" = "xyes"; then if test "x$enable_xim" = "xyes"; then
CFLAGS="$CFLAGS -DUSE_XIM" GTK_XIM_FLAGS="-DUSE_XIM"
fi fi
if test x$with_glib = xyes ; then if test x$with_glib = xyes ; then
@ -291,21 +291,21 @@ fi
# Threads # Threads
CFLAGS="$saved_cflags"
LDFLAGS="$saved_ldflags"
if test "x$with_threads" = "xposix" || test "x$with_threads" = "xyes"; then if test "x$with_threads" = "xposix" || test "x$with_threads" = "xyes"; then
AC_CHECK_LIB(pthread, pthread_attr_init, AC_CHECK_LIB(pthread, pthread_attr_init,
[AC_DEFINE(USE_PTHREADS) [AC_DEFINE(USE_PTHREADS)
x_libs="$x_libs -lpthread" x_libs="$x_libs -lpthread"
CFLAGS="$CFLAGS -D_REENTRANT"], GTK_THREAD_FLAGS="-D_REENTRANT"],
# AIX has libpthreads, cause they're special. Special friends (TM) # AIX has libpthreads, cause they're special. Special friends (TM)
AC_CHECK_LIB(pthreads, pthread_attr_init, AC_CHECK_LIB(pthreads, pthread_attr_init,
[AC_DEFINE(USE_PTHREADS) [AC_DEFINE(USE_PTHREADS)
x_libs="$x_libs -lpthreads" x_libs="$x_libs -lpthreads"
CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"])) GTK_THREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
fi fi
CFLAGS="$saved_cflags"
LDFLAGS="$saved_ldflags"
AC_SUBST(x_cflags) AC_SUBST(x_cflags)
AC_SUBST(x_includes) AC_SUBST(x_includes)
AC_SUBST(x_ldflags) AC_SUBST(x_ldflags)
@ -404,7 +404,7 @@ need_x_locale=yes)
AC_MSG_RESULT($need_x_locale) AC_MSG_RESULT($need_x_locale)
if test $need_x_locale = yes; then if test $need_x_locale = yes; then
CFLAGS="$CFLAGS -DX_LOCALE" GTK_LOCALE_CFLAGS="-DX_LOCALE"
fi fi
# Checks for header files. # Checks for header files.
@ -493,6 +493,11 @@ fi
AC_MSG_RESULT($gtk_ok) AC_MSG_RESULT($gtk_ok)
AC_SUBST(GDK_WLIBS) AC_SUBST(GDK_WLIBS)
AC_SUBST(GTK_DEBUG_FLAGS)
AC_SUBST(GTK_XIM_FLAGS)
AC_SUBST(GTK_LOCALE_FLAGS)
AC_SUBST(GTK_THREAD_FLAGS)
AC_OUTPUT([ AC_OUTPUT([
Makefile Makefile
gtk-config gtk-config

View File

@ -4,7 +4,15 @@ gdkincludedir = $(includedir)/gdk
lib_LTLIBRARIES = libgdk.la lib_LTLIBRARIES = libgdk.la
INCLUDES = -DG_LOG_DOMAIN=\"Gdk\" -I$(top_srcdir) @GLIB_CFLAGS@ @x_cflags@ INCLUDES = \
-DG_LOG_DOMAIN=\"Gdk\" \
-I$(top_srcdir) \
@GTK_DEBUG_FLAGS@ \
@GTK_XIM_FLAGS@ \
@GTK_LOCALE_FLAGS@ \
@GTK_THREAD_FLAGS@ \
@GLIB_CFLAGS@ \
@x_cflags@
libgdk_la_SOURCES = \ libgdk_la_SOURCES = \
gdk.c \ gdk.c \

View File

@ -340,10 +340,16 @@ EXTRA_DIST = \
circles.xbm circles.xbm
INCLUDES = \ INCLUDES = \
-DG_LOG_DOMAIN=\"Gtk\" \ -DG_LOG_DOMAIN=\"Gtk\" \
-DGTK_EXE_PREFIX=\"$(exec_prefix)\" \ -DGTK_EXE_PREFIX=\"$(exec_prefix)\" \
-DGTK_DATA_PREFIX=\"$(prefix)\" \ -DGTK_DATA_PREFIX=\"$(prefix)\" \
-I$(top_srcdir) @GLIB_CFLAGS@ @x_cflags@ -I$(top_srcdir) \
@GTK_DEBUG_FLAGS@ \
@GTK_XIM_FLAGS@ \
@GTK_LOCALE_FLAGS@ \
@GTK_THREAD_FLAGS@ \
@GLIB_CFLAGS@ \
@x_cflags@
noinst_PROGRAMS = testgtk testinput testselection testthreads testrgb testdnd simple noinst_PROGRAMS = testgtk testinput testselection testthreads testrgb testdnd simple