tce-load -i telepathy-glib-dev networkmanager-dev upower-dev perl5

cd telepathy-mission-control-5.16.3

patch -Np1 -i ../telepathy-mission-control-5.16.3-restore-deprecated-code.patch

CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -Os -pipe -fno-exceptions -fno-rtti"  ./configure --prefix=/usr/local --disable-static --localstatedir=/var --libexecdir=/usr/local/lib/mission-control-5 --enable-deprecated

find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \;

make
sudo make install

cd . && /bin/bash /usr/src/telepathy-mission-control-5.16.3/build-aux/missing automake-1.13 --gnu
configure.ac:20: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:20: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:20: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
configure.ac:15: error: required file 'build-aux/compile' not found
configure.ac:15:   'automake --add-missing' can install 'compile'
mission-control-plugins/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
plugins/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am:55: warning: source file '_gen/signals-marshal.c' is in a subdirectory,
src/Makefile.am:55: but option 'subdir-objects' is disabled
automake-1.13: warning: possible forward-incompatibility.
automake-1.13: At least a source file is in a subdirectory, but the 'subdir-objects'
automake-1.13: automake option hasn't been enabled.  For now, the corresponding output
automake-1.13: object file(s) will be placed in the top-level directory.  However,
automake-1.13: this behaviour will change in future Automake versions: they will
automake-1.13: unconditionally cause object files to be placed in the same subdirectory
automake-1.13: of the corresponding sources.
automake-1.13: You are advised to start using 'subdir-objects' option throughout your
automake-1.13: project, to avoid future incompatibilities.
src/Makefile.am:55: warning: source file '_gen/svc-Account_Interface_Conditions.c' is in a subdirectory,
src/Makefile.am:55: but option 'subdir-objects' is disabled
src/Makefile.am:55: warning: source file '_gen/svc-Account_Interface_External_Password_Storage.c' is in a subdirectory,
src/Makefile.am:55: but option 'subdir-objects' is disabled
src/Makefile.am:55: warning: source file '_gen/svc-Account_Interface_Hidden.c' is in a subdirectory,
src/Makefile.am:55: but option 'subdir-objects' is disabled
src/Makefile.am:55: warning: source file '_gen/svc-Account_Manager_Interface_Hidden.c' is in a subdirectory,
src/Makefile.am:55: but option 'subdir-objects' is disabled
src/Makefile.am:55: warning: source file '_gen/svc-dispatcher.c' is in a subdirectory,
src/Makefile.am:55: but option 'subdir-objects' is disabled
tests/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
tests/twisted/Makefile.am:228: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Makefile:445: recipe for target 'Makefile.in' failed
make: *** [Makefile.in] Error 1
