]> gitweb.michael.orlitzky.com - emacs-keys.git/blobdiff - configure.ac
Use autotools for the build/dist system.
[emacs-keys.git] / configure.ac
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..51b92a0
--- /dev/null
@@ -0,0 +1,19 @@
+AC_INIT([emacs-keys], [0.0.1], [michael@orlitzky.com])
+AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz])
+
+# --enable-Xmodmap flag, disabled by default, that decides whether or
+# not we install the Xmodmap file.
+AC_ARG_ENABLE(
+       [Xmodmap],
+       [  --enable-Xmodmap    install the Xmodmap file [[default=no]]],
+       [case "${enableval}" in
+    yes) xmodmap=true ;;
+    no)  xmodmap=false ;;
+    *) AC_MSG_ERROR([bad value ${enableval} for --enable-xmodmap]) ;;
+  esac],[xmodmap=false])
+  AM_CONDITIONAL([XMODMAP], [test x$xmodmap = xtrue])
+
+# List of output files.
+AC_CONFIG_FILES([Makefile])
+
+AC_OUTPUT