]> mj.ucw.cz Git - libucw.git/blobdiff - free/libs/examples/external-ucw-build/configure
Rename CONFIG_LANG to CONFIG_LIBLANG
[libucw.git] / free / libs / examples / external-ucw-build / configure
index 60989a6579b86695db519a8fdd165ad147584d4b..ec4b279e7fbbed3f46fbdcac76280994efa11605 100755 (executable)
@@ -15,13 +15,15 @@ BEGIN {
                } elsif ($0 =~ m@^(.*)/configure$@ && -f "$1/$pkgfile") {
                        $srcdir=$1;
                } else {
                } elsif ($0 =~ m@^(.*)/configure$@ && -f "$1/$pkgfile") {
                        $srcdir=$1;
                } else {
-                       die "Don't know how to find myself. Please set SRCDIR manually.";
+                       die "Don't know how to find myself. Please set SRCDIR manually.\n";
                }
        }
                }
        }
-       # Ask pkg-config for the rest of configure
+       # Ask pkg-config if libucw is installed and find its configure modules
+       `pkg-config libucw --atleast-version=3.13`;
+       !$? or die "Package `libucw' (version 3.13 or newer) not found. Is PKG_CONFIG_PATH set properly?\n";
        $libdir=`pkg-config libucw --variable=perl_modules_dir`;
        chomp $libdir;
        $libdir=`pkg-config libucw --variable=perl_modules_dir`;
        chomp $libdir;
-       die "Package `libucw' not found. Is PKG_CONFIG_PATH set properly?" if $? || not defined $libdir;
+       die "Unable to find the libucw configure system\n" if $? || not defined $libdir;
 }
 use lib $libdir;
 use UCW::Configure;
 }
 use lib $libdir;
 use UCW::Configure;