]> gitweb @ CieloNegro.org - Rakka.git/blob - configure.ac
Implemented more features
[Rakka.git] / configure.ac
1 AC_INIT([Rakka], [], [phonohawk at ps dot sakura dot ne dot jp])
2
3 AC_CONFIG_SRCDIR([Rakka.cabal])
4
5
6 # $localstatedir has a reference to ${prefix} but the ${prefix} is
7 # "NONE" at this time. AC_OUTPUT changes the value of ${prefix} from
8 # "NONE" to $ac_default_prefix but it's too late!
9 if test "x$prefix" = "xNONE"; then
10    prefix=$ac_default_prefix
11 fi
12
13 RAKKA_LOCALSTATEDIR=`eval echo "$localstatedir"`/rakka
14 AC_SUBST([RAKKA_LOCALSTATEDIR])
15
16
17 # Since the Cabal executes ./configure with no arguments, the only way
18 # we can receive options from user is to see environment variables.
19 AC_ARG_VAR([BUILD_TEST_SUITE], [build and install the test suite. (yes / no) (default: no)])
20 if test "$BUILD_TEST_SUITE" = ""; then
21   BUILD_TEST_SUITE=False
22 elif test "$BUILD_TEST_SUITE" = "yes"; then
23   BUILD_TEST_SUITE=True
24 elif test "$BUILD_TEST_SUITE" = "no"; then
25   BUILD_TEST_SUITE=False
26 else
27   AC_MSG_ERROR([BUILD_TEST_SUITE must be either yes or no.])
28 fi
29
30
31 AC_CONFIG_FILES([
32         Rakka.buildinfo
33 ])
34 AC_OUTPUT
35