gtk.m4 patch
- From: Tero Pulkkinen <terop students cc tut fi>
- To: gtk-list redhat com
- Subject: gtk.m4 patch
- Date: 18 Mar 1998 02:57:41 +0200
Here's a patch for gtk.m4 that will add CXXFLAGS support for it.
The gtk.m4 did not work correctly if there was AC_PROC_CC, AC_PROC_CXX and
AC_LANG_CPLUSPLUS in the configure.in.
(still, it would prolly be better if AC_SUBST(GTK_CXXFLAGS) could be used,
but I couldnt get that one working, so it modifies CXXFLAGS directly.. )
--
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --
--- gtk.m4 Wed Mar 18 00:04:12 1998
+++ /home/p150650/modeemi-b/automake/share/aclocal/gtk.m4 Wed Mar 18 01:31:28 1998
@@ -17,7 +17,9 @@
GTK_LIBS=`$GTK_CONFIG --libs`
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
+ ac_save_CXXFLAGS="$CXXFLAGS"
CFLAGS="$CFLAGS $GTK_CFLAGS"
+ CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
LIBS="$LIBS $GTK_LIBS"
dnl
dnl Now check if the installed GTK is sufficiently new. (Also sanity
@@ -43,6 +45,7 @@
}
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
+ CXXFLAGS="$ac_save_CXXFLAGS"
LIBS="$ac_save_LIBS"
else
no_gtk=yes
@@ -56,6 +59,9 @@
GTK_LIBS=""
ifelse([$3], , :, [$3])
fi
+ CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
+ AC_SUBST(CXXFLAGS)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
])
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]