Seems then that my temporary patch is best? Just delete
the if( WITH_HAL ) test and build with dbus-tqt support regardless of how WITH_HAL or WITH_TDEHWLIB are set?
I would check to see if either WITH_HAL or WITH_TDEHWLIB are set before requiring dbus-tqt; if neither are set then tdebase does not depend on it.
I ran a tdebase build with WITH_HAL=NO, WITH_TDEHWLIB=NO and no related patching. The build fails with the same error about not finding dbus/dbus.h. The failure occurs when building tdm backend, in consolekit.c.
The only fix for now is not test at all to force building with dbus-tqt. If somebody desires to build tdm backend without consolekit support then some other build option and test is needed.
Darrell