#!/bin/bash

# Bug 697835 - gtkmm-2.24.3 breaks multiple reverse dependencies

# Compile each header file in gtkmm 2, one at a time.
# Run the script from gtkmm's base directory (where ChangeLog, autogen.sh etc. are).
# The compiler will notice if a header file does not include all other header
# files that it depends on.

CFLAGS="-Igdk -Igtk `pkg-config --cflags gtkmm-2.4`"

for headerfile in gdk/gdkmm/*.h gtk/gtkmm/*.h
do
  echo "=== $headerfile"
  g++ -c -x c++ -o /dev/null $headerfile $CFLAGS
done

