chiark / gitweb /
sd-boot: add EFI boot manager and stub loader
[elogind.git] / m4 / arch.m4
diff --git a/m4/arch.m4 b/m4/arch.m4
new file mode 100644 (file)
index 0000000..f17b427
--- /dev/null
@@ -0,0 +1,13 @@
+
+dnl SET_ARCH(ARCHNAME, PATTERN)
+dnl
+dnl Define ARCH_<archname> condition if the pattern match with the current
+dnl architecture
+dnl
+AC_DEFUN([SET_ARCH], [
+  cpu_$1=false
+  case "$host" in
+   $2) cpu_$1=true ;;
+  esac
+  AM_CONDITIONAL(AS_TR_CPP(ARCH_$1), [test "x$cpu_$1" = xtrue])
+])