feed the contents of config.h and glibconfig.h into the preprocessor,
authorManish Singh <yosh@gimp.org>
Mon, 7 Feb 2005 06:01:18 +0000 (06:01 +0000)
committerManish Singh <yosh@src.gnome.org>
Mon, 7 Feb 2005 06:01:18 +0000 (06:01 +0000)
Sun Feb  6 22:00:46 2005  Manish Singh  <yosh@gimp.org>

        * abicheck.sh: feed the contents of config.h and glibconfig.h
        into the preprocessor, since glib.symbols could need #defines
        from them.

gobject/ChangeLog
gobject/abicheck.sh

index f9624f5..8fbdabc 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  6 22:00:46 2005  Manish Singh  <yosh@gimp.org>
+
+       * abicheck.sh: feed the contents of config.h and glibconfig.h
+       into the preprocessor, since glib.symbols could need #defines
+       from them.
+
 2005-01-12  Matthias Clasen  <mclasen@redhat.com>
 
        Cosmetic fixes (#163792, BenoĆ®t Carpentier):
index 3875e7f..745db40 100755 (executable)
@@ -1,5 +1,13 @@
 #! /bin/sh
 
-cpp -P -DG_OS_UNIX ${srcdir:-.}/gobject.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
+egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp
+
+INCLUDES="-include ${top_builddir:-..}/config.h"
+INCLUDES="$INCLUDES -include glibconfig.cpp"
+
+cpp -P $INCLUDES ${srcdir:-.}/gobject.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
+rm glibconfig.cpp
+
 nm -D .libs/libgobject-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi
+
 diff -u expected-abi actual-abi && rm expected-abi actual-abi