# Check for programs
AC_PROG_CC
+AC_PROG_CXX
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
# Enable quiet compiles on automake 1.11.
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+AC_ARG_WITH(utest, AS_HELP_STRING([--with-utest=yes/no], [whether build/run unit tests or not]),
+ [ utest="$withval" ],
+ [ utest="no" ])
+
+AM_CONDITIONAL(HAVE_UTEST, test "x$utest" = "xyes")
+
AC_PATH_PROG([wayland_scanner], [wayland-scanner])
if test x$wayland_scanner = x; then
AC_MSG_ERROR([wayland-scanner is needed to compile])
src/Makefile
client/libtdm-client.pc
client/Makefile
- tools/Makefile])
+ tools/Makefile
+ ut/Makefile])
echo ""
echo "$PACKAGE_STRING will be compiled with:"