From 0e5c325ca431d3f66584b0be32e353bcf37303a6 Mon Sep 17 00:00:00 2001 From: mszulecki Date: Wed, 13 Jun 2007 22:59:27 +0000 Subject: Make libtool use GDC and fix CC variable usage. git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@30 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- configure.ac | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6ae4eaf..8c6a6bd 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,19 @@ AM_MAINTAINER_MODE AC_GNU_SOURCE +dnl Check for GNU D Compiler +AC_PATH_PROG(GDC, "gdc", no) + +if test "x$GDC" = "xno"; then + AC_MSG_ERROR([No D compiler found]) +fi + +AC_SUBST(GDC) +AC_SUBST(GDC_VERSION,[$($GDC --version | grep -P -o "(?<=\()gdc (.*?)(?=,)")]) + +CC=$GDC +DFLAGS="-g -O2" + AC_PROG_INSTALL AC_PROG_LIBTOOL @@ -27,18 +40,6 @@ else AC_SUBST(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale") fi -dnl Check for GNU D Compiler -AC_PATH_PROG(GDC, "gdc", no) - -if test "x$GDC" = "xno"; then - AC_MSG_ERROR([No D compiler found]) -fi - -AC_SUBST(GDC) -AC_SUBST(GDC_VERSION,[$($GDC --version | grep -P -o "(?<=\()gdc (.*?)(?=,)")]) - -DFLAGS="-g -O2" - dnl Should I generate the documentation? AC_ARG_ENABLE(doc, AS_HELP_STRING(--disable-doc, do not generate documentation),, [ -- cgit v1.1-32-gdbae