summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b45f5bf..813ee2f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,17 @@ AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_SILENT_RULES([yes])
+AC_PROG_CC
AC_PROG_CXX
+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner])
+
+AS_IF([test -z "$WAYLAND_SCANNER"], [
+ AC_MSG_ERROR([wayland-scanner not found])
+])
+AC_SUBST([WAYLAND_SCANNER])
+
+AC_SUBST([ROOT_DIR], ['${top_srcdir}'])
+AC_SUBST([SRC_DIR], ['${ROOT_DIR}/src'])
AC_CONFIG_FILES([
Makefile