summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/configure b/src/configure
index dd60d70..1cd11fd 100755
--- a/src/configure
+++ b/src/configure
@@ -32,7 +32,7 @@ LUA_VER=''
PREFIX='/usr/local'
BINDIR=''
ETCDIR=''
-LIBDIR=''
+DATAROOTDIR=''
print_usage() {
echo "configure --help print this"
@@ -40,7 +40,7 @@ print_usage() {
echo " --prefix=<PREFIX> the installation prefix (default: /usr/local)"
echo " --bindir=<DIR> the path to the bin directory (default: $PREFIX/bin)"
echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc)"
- echo " --libdir=<DIR> the path to the lua library directory (default: $PREFIX/lib/rhnop)"
+ echo " --datarootdir=<DIR> the path to the native lua libs (default: $PREFIX/share)"
echo " --with-lua=<DIR> use this lua tree instead of system default"
echo " --lua-version=nnn set fixed Lua version for automatic detection (501 -> 5.1, 502 -> 5.2)"
echo " --use-clang use clang/llvm as compiler/linker"
@@ -64,8 +64,8 @@ do
--sysconfdir=*)
ETCDIR=${arg#--sysconfdir=}
;;
- --libdir=*)
- LIBDIR=${arg#--libdir=}
+ --datarootdir=*)
+ DATAROOTDIR=${arg#--datarootdir=}
;;
--with-lua=*)
LUA_DIR=${arg#--with-lua=}
@@ -210,8 +210,8 @@ if [ -z "$ETCDIR" ]; then
ETCDIR=$PREFIX/etc
fi
-if [ -z "$LIBDIR" ]; then
- LIBDIR=$PREFIX/lib/rhnop
+if [ -z "$DATAROOTDIR" ]; then
+ DATAROOTDIR=$PREFIX/share
fi
cat > include.mk <<EOF
@@ -232,7 +232,7 @@ SED := sed
PREFIX := '$PREFIX'
BINDIR := '$BINDIR'
ETCDIR := '$ETCDIR'
-LIBDIR := '$LIBDIR'
+DATAROOTDIR := '$DATAROOTDIR'
EOF
cat > config.h <<EOF
@@ -251,7 +251,7 @@ cat > config.h <<EOF
#define PREFIX "$PREFIX"
#define BINDIR "$BINDIR"
#define ETCDIR "$ETCDIR"
-#define LIBDIR "$LIBDIR"
+#define DATAROOTDIR "$DATAROOTDIR"
#endif
EOF