From bab430316c0c5b88a59c1145a92c55bb55c7da11 Mon Sep 17 00:00:00 2001 From: mszulecki Date: Wed, 21 Feb 2007 17:18:01 +0000 Subject: First attempt at an autotools D helloworld. git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@2 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- configure.ac | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..01a7375 --- /dev/null +++ b/configure.ac @@ -0,0 +1,43 @@ +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(README) + +PACKAGE=helloworld +VERSION=1.0.0 + +AM_INIT_AUTOMAKE($PACKAGE,$VERSION) +AM_MAINTAINER_MODE + +AC_GNU_SOURCE + +AC_PROG_INSTALL +AC_PROG_LIBTOOL + +dnl Check for GNU D Compiler +CC=gdc +AC_PATH_PROG(GDC, $CC, no) + +if test "x$GDC" = "xno"; then + AC_MSG_ERROR([No D compiler found]) +fi + +AC_SUBST(GDC) + +dnl TODO: Check for duit GTK+ D Bindings +AC_SUBST(DEPS_CFLAGS) +AC_SUBST(DEPS_LIBS) + +AC_CONFIG_FILES([ +Makefile +src/Makefile +]) + +AC_OUTPUT() + +dnl Configuration Summary +echo "" +echo "Configuration summary" +echo "" +echo " * Installation prefix = $prefix" +echo " * D compiler: $GDC" +echo "" -- cgit v1.1-32-gdbae