Workshop o mikrokontrolérech na SKSP 2024.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
878 B

2 months ago
#!/usr/bin/perl
# Configure Script for UCW Libraries
# (c) 2007--2010 Martin Mares <mj@ucw.cz>
use warnings;
use strict;
our $srcdir;
BEGIN {
my $pkgfile = "ucw/wildmatch.c";
if (!defined ($srcdir = $ENV{"SRCDIR"})) {
if (-f $pkgfile) {
$srcdir=".";
} elsif ($0 =~ m@^(.*)/configure$@ && -f "$1/$pkgfile") {
$srcdir=$1;
} else {
die "Don't know how to find myself. Please set SRCDIR manually.\n";
}
}
}
use lib "$srcdir/ucw/perl/";
use UCW::Configure;
Init($srcdir, "default.cfg");
Include "ucw/default.cfg";
Log "### Configuring UCW Libraries " . Get("UCW_VERSION") . " with configuration " . Get("CONFIG") . "\n";
Include Get("CONFIG");
require UCW::Configure::Paths;
require UCW::Configure::C;
require UCW::Configure::LibUCW;
require UCW::Configure::Doc;
require UCW::Configure::Perl;
Finish();
Log "\nConfigured, run `make' to build everything.\n";