diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 13 insertions, 12 deletions
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),, [ |