X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=05516ed863daf23a7aa20b9654d59125da239c52;hb=1647278f9393f7382b6e8b8a5e9e14ce50aae718;hp=1a6e943a92e7158d8fde0917f1c3fa2849d7581c;hpb=8a7556db44cd91ac0bb52279472bcc2abaa3f18e;p=Rakka.git diff --git a/configure.ac b/configure.ac index 1a6e943..05516ed 100644 --- a/configure.ac +++ b/configure.ac @@ -2,6 +2,7 @@ AC_INIT([Rakka], [], [phonohawk at ps dot sakura dot ne dot jp]) AC_CONFIG_SRCDIR([Rakka.cabal]) + # $localstatedir has a reference to ${prefix} but the ${prefix} is # "NONE" at this time. AC_OUTPUT changes the value of ${prefix} from # "NONE" to $ac_default_prefix but it's too late! @@ -12,6 +13,25 @@ fi RAKKA_LOCALSTATEDIR=`eval echo "$localstatedir"`/rakka AC_SUBST([RAKKA_LOCALSTATEDIR]) + +# Since the Cabal executes ./configure with no arguments, the only way +# we can receive options from user is to see environment variables. +AC_ARG_VAR([BUILD_TEST_SUITE], [build and install the test suite. (yes / no) (default: no)]) +if test "$BUILD_TEST_SUITE" = ""; then + BUILD_TEST_SUITE=False +else + if test "$BUILD_TEST_SUITE" = "yes"; then + BUILD_TEST_SUITE=True + else + if test "$BUILD_TEST_SUITE" = "no"; then + BUILD_TEST_SUITE=False + else + AC_MSG_ERROR([BUILD_TEST_SUITE must be either yes or no.]) + fi + fi +fi + + AC_CONFIG_FILES([ Rakka.buildinfo ])