Commit 70784023 authored by Manish Singh's avatar Manish Singh

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
parent 6047ed3e
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>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type
......
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>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type
......
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>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type
......
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>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type
......
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>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type
......
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>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type
......
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>
* gtk/gtkenums.h: fixed a stupid error of mine about the run type
......
......@@ -71,12 +71,12 @@ AC_ARG_WITH(threads, [ --with-threads=[posix] support threading ])
if test "x$enable_debug" = "xyes"; then
test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
CFLAGS="$CFLAGS -DG_ENABLE_DEBUG"
GTK_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
else
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
CFLAGS="$CFLAGS -DGTK_NO_CHECK_CASTS"
GTK_DEBUG_FLAGS="-DGTK_NO_CHECK_CASTS"
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.)])))
if test "x$enable_xim" = "xyes"; then
CFLAGS="$CFLAGS -DUSE_XIM"
GTK_XIM_FLAGS="-DUSE_XIM"
fi
if test x$with_glib = xyes ; then
......@@ -291,21 +291,21 @@ fi
# Threads
CFLAGS="$saved_cflags"
LDFLAGS="$saved_ldflags"
if test "x$with_threads" = "xposix" || test "x$with_threads" = "xyes"; then
AC_CHECK_LIB(pthread, pthread_attr_init,
[AC_DEFINE(USE_PTHREADS)
x_libs="$x_libs -lpthread"
CFLAGS="$CFLAGS -D_REENTRANT"],
GTK_THREAD_FLAGS="-D_REENTRANT"],
# AIX has libpthreads, cause they're special. Special friends (TM)
AC_CHECK_LIB(pthreads, pthread_attr_init,
[AC_DEFINE(USE_PTHREADS)
x_libs="$x_libs -lpthreads"
CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"]))
GTK_THREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
fi
CFLAGS="$saved_cflags"
LDFLAGS="$saved_ldflags"
AC_SUBST(x_cflags)
AC_SUBST(x_includes)
AC_SUBST(x_ldflags)
......@@ -404,7 +404,7 @@ need_x_locale=yes)
AC_MSG_RESULT($need_x_locale)
if test $need_x_locale = yes; then
CFLAGS="$CFLAGS -DX_LOCALE"
GTK_LOCALE_CFLAGS="-DX_LOCALE"
fi
# Checks for header files.
......@@ -493,6 +493,11 @@ fi
AC_MSG_RESULT($gtk_ok)
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([
Makefile
gtk-config
......
......@@ -4,7 +4,15 @@ gdkincludedir = $(includedir)/gdk
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 = \
gdk.c \
......
......@@ -340,10 +340,16 @@ EXTRA_DIST = \
circles.xbm
INCLUDES = \
-DG_LOG_DOMAIN=\"Gtk\" \
-DGTK_EXE_PREFIX=\"$(exec_prefix)\" \
-DGTK_DATA_PREFIX=\"$(prefix)\" \
-I$(top_srcdir) @GLIB_CFLAGS@ @x_cflags@
-DG_LOG_DOMAIN=\"Gtk\" \
-DGTK_EXE_PREFIX=\"$(exec_prefix)\" \
-DGTK_DATA_PREFIX=\"$(prefix)\" \
-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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment