1#! /bin/sh
2
3egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp
4
5INCLUDES="-include ${top_builddir:-..}/config.h"
6INCLUDES="$INCLUDES -include glibconfig.cpp"
7
8cpp -DINCLUDE_VARIABLES -P $INCLUDES -DALL_FILES ${srcdir:-.}/gobject.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
9rm glibconfig.cpp
10
11nm -D -g --defined-only .libs/libgobject-2.0.so | cut -d ' ' -f 3 | sort > actual-abi
12
13diff -u expected-abi actual-abi && rm expected-abi actual-abi
14