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! if test "x$prefix" = "xNONE"; then prefix=$ac_default_prefix 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 ]) AC_OUTPUT