input: --warning about TOTEM sometimes being available
Set -DLIBINPUT_HAS_TOTEM per file rather than per target so that all targets that build it have the define. This particular file is also used by some tests and this fixes the warning that this ifdef resolves at once for all targets.
Edited by Aleix Pol Gonzalez