2 # Configure script for MO-Eval
3 # (c) 2008 Martin Mares <mj@ucw.cz>
10 my $pkgfile = "judge/token.c";
11 if (!defined ($srcdir = $ENV{"SRCDIR"})) {
14 } elsif ($0 =~ m@^(.*)/configure$@ && -f "$1/$pkgfile") {
17 die "Don't know how to find myself. Please set SRCDIR manually.";
20 require "$srcdir/lib/perl/Configure.pm";
21 UCW::Configure::import UCW::Configure;
24 Init($srcdir, "default.cfg");
25 Include "lib/default.cfg";
26 Log "### Configuring MO-Eval ###\n\n";
27 Include Get("CONFIG");
28 Include "lib/autoconf.cfg";
30 if (Get("CONFIG_SUBMIT") || Get("CONFIG_MOP")) {
31 # Build libucw only if it is needed
32 Set("CONFIG_UCW_LIBS" => 1);
36 Log "\nConfigured, run `make' to build everything.\n";