summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 23 insertions, 3 deletions
diff --git a/configure b/configure
index 1e3f638..a2337aa 100755
--- a/configure
+++ b/configure
@@ -33,6 +33,8 @@ fi
libdir=""
datadir=""
+localedir=""
+mandir=""
pluginPathSet=""
pluginPaths="/usr/$multilib/mozilla/plugins"
@@ -68,6 +70,8 @@ Options:
--libdir=PATH Sets the directory for libraries. [EPREFIX/$multilib]
--datadir=PATH Sets the directory for architecture-independent
data. [PREFIX/share]
+ --localedir=PATH Sets the directory for translations [DATADIR/locale]
+ --mandir=PATH Sets the directory for man pages. [DATADIR/man]
--plugin-path=PATH Sets the NPAPI plugin path [$pluginPaths]
This option may be repeated if you want to create
plugin links in several places.
@@ -94,6 +98,12 @@ Options:
--datadir=*)
datadir=${flag#--datadir=}
;;
+ --localedir=*)
+ localedir=${flag#--localedir=}
+ ;;
+ --mandir=*)
+ mandir=${flag#--mandir=}
+ ;;
--plugin-path=*)
path=${flag#--plugin-path=}
path=${path%/}
@@ -186,6 +196,14 @@ if [ -z "$datadir" ]; then
datadir="$prefixPath/share"
fi
+if [ -z "$localedir" ]; then
+ localedir="$datadir/locale"
+fi
+
+if [ -z "$mandir" ]; then
+ mandir="$datadir/man"
+fi
+
### Plugin paths
hasPaths=""
@@ -273,13 +291,15 @@ cat <<EOT >"$CONFFILE"
/* This file is automatically generated.
Run the configure script to change the configuration. */
-#define CONFIGVERSION 1
+#define CONFIGVERSION 2
#define PREFIX "$prefixPath"
#define EPREFIX "$execPath"
-#define LIBDIR "$libdir"
-#define DATADIR "$datadir"
+#define LIBDIR "$libdir"
+#define DATADIR "$datadir"
+#define LOCALEDIR "$localedir"
+#define MANDIR "$mandir"
#define NPAPI_PLUGIN_PATHS "$pluginPaths"