summaryrefslogtreecommitdiffstats
path: root/set_soenv.in
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2011-06-22 12:05:19 +0200
committerPetr Mladek <pmladek@suse.cz>2011-06-22 12:05:19 +0200
commit17466b2d28bdac35667ee5f141ed968c02504deb (patch)
tree7bd25c9de533cd076c99fc94ce706e1183358c94 /set_soenv.in
parentupdate the configure flags to reflect reality (diff)
downloadcore-17466b2d28bdac35667ee5f141ed968c02504deb.tar.gz
core-17466b2d28bdac35667ee5f141ed968c02504deb.zip
fix configure without the optional translations module
Diffstat (limited to 'set_soenv.in')
-rwxr-xr-xset_soenv.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/set_soenv.in b/set_soenv.in
index f015babca21a..8e393148cbc6 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1068,9 +1068,11 @@ $XCLASSPATH = '$JAVA_HOME'.$ds.'jre'.$LIB.$ds."rt.jar".$wps.'.';
$L10N_MODULE = PathFormat($SRC_ROOT."/translations");
# Check for poor help localizations, i.e. no help translation at all...
-opendir(DIR,$L10N_MODULE . "/source");
-@languages = readdir(DIR);
-closedir(DIR);
+@languages=();
+if (opendir(DIR,$L10N_MODULE . "/source"))
+{ @languages = readdir(DIR);
+ closedir(DIR);
+}
$WITH_POOR_HELP_LOCALIZATIONS = "";
foreach $language (@languages)