2 # Configure Script for Stand-Alone Sherlock Libraries
3 # (c) 2007 Martin Mares <mj@ucw.cz>
10 my $pkgfile = "lib/wildmatch.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, "defconfig"); ## FIXME: Shouldn't we use default.cfg everywhere?
26 Set("SHERLOCK_VERSION" => "0.0");
27 Log "### Configuring Sherlock Libraries " . Get("SHERLOCK_VERSION") . " with configuration " . Get("CONFIG") . "\n";
28 Include Get("CONFIG");
29 Include "lib/autoconf.cfg";
30 Include "sherlock/autoconf.cfg";
33 Log "\nConfigured, run `make' to build everything.\n";