1*6c119a46SAndroid Build Coastguard WorkerAC_PREREQ([2.64]) 2*6c119a46SAndroid Build Coastguard Worker 3*6c119a46SAndroid Build Coastguard Workerm4_define([wayland_protocols_major_version], [1]) 4*6c119a46SAndroid Build Coastguard Workerm4_define([wayland_protocols_minor_version], [22]) 5*6c119a46SAndroid Build Coastguard Workerm4_define([wayland_protocols_version], 6*6c119a46SAndroid Build Coastguard Worker [wayland_protocols_major_version.wayland_protocols_minor_version]) 7*6c119a46SAndroid Build Coastguard Worker 8*6c119a46SAndroid Build Coastguard WorkerAC_INIT([wayland-protocols], 9*6c119a46SAndroid Build Coastguard Worker [wayland_protocols_version], 10*6c119a46SAndroid Build Coastguard Worker [https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=wayland&version=unspecified], 11*6c119a46SAndroid Build Coastguard Worker [wayland-protocols], 12*6c119a46SAndroid Build Coastguard Worker [http://wayland.freedesktop.org/]) 13*6c119a46SAndroid Build Coastguard Worker 14*6c119a46SAndroid Build Coastguard WorkerAC_CONFIG_MACRO_DIR([m4]) 15*6c119a46SAndroid Build Coastguard Worker 16*6c119a46SAndroid Build Coastguard WorkerAC_SUBST([WAYLAND_PROTOCOLS_VERSION], [wayland_protocols_version]) 17*6c119a46SAndroid Build Coastguard Worker 18*6c119a46SAndroid Build Coastguard WorkerAC_ARG_VAR([wayland_scanner], [The wayland-scanner executable]) 19*6c119a46SAndroid Build Coastguard WorkerAC_PATH_PROG([wayland_scanner], [wayland-scanner]) 20*6c119a46SAndroid Build Coastguard Workerif test x$wayland_scanner = x; then 21*6c119a46SAndroid Build Coastguard Worker if test "x$cross_compiling" != "xyes"; then 22*6c119a46SAndroid Build Coastguard Worker PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner]) 23*6c119a46SAndroid Build Coastguard Worker wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` 24*6c119a46SAndroid Build Coastguard Worker else 25*6c119a46SAndroid Build Coastguard Worker AC_MSG_WARN([You are cross compiling without wayland-scanner in your path. make check will fail.]) 26*6c119a46SAndroid Build Coastguard Worker fi 27*6c119a46SAndroid Build Coastguard Workerfi 28*6c119a46SAndroid Build Coastguard Worker 29*6c119a46SAndroid Build Coastguard WorkerAM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz tar-ustar]) 30*6c119a46SAndroid Build Coastguard Worker 31*6c119a46SAndroid Build Coastguard WorkerAM_SILENT_RULES([yes]) 32*6c119a46SAndroid Build Coastguard Worker 33*6c119a46SAndroid Build Coastguard WorkerPKG_NOARCH_INSTALLDIR 34*6c119a46SAndroid Build Coastguard Worker 35*6c119a46SAndroid Build Coastguard WorkerAC_CONFIG_FILES([ 36*6c119a46SAndroid Build Coastguard Worker Makefile 37*6c119a46SAndroid Build Coastguard Worker wayland-protocols.pc 38*6c119a46SAndroid Build Coastguard Worker wayland-protocols-uninstalled.pc 39*6c119a46SAndroid Build Coastguard Worker ]) 40*6c119a46SAndroid Build Coastguard WorkerAC_OUTPUT 41*6c119a46SAndroid Build Coastguard Worker 42*6c119a46SAndroid Build Coastguard WorkerAC_MSG_RESULT([ 43*6c119a46SAndroid Build Coastguard Worker Version ${WAYLAND_PROTOCOLS_VERSION} 44*6c119a46SAndroid Build Coastguard Worker Prefix ${prefix} 45*6c119a46SAndroid Build Coastguard Worker ]) 46