]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - configure.ac
wrote more...
[Rakka.git] / configure.ac
index 1a6e943a92e7158d8fde0917f1c3fa2849d7581c..05516ed863daf23a7aa20b9654d59125da239c52 100644 (file)
@@ -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
 ])