configure
authorAlan Knowles <alan@roojs.com>
Fri, 15 Feb 2019 07:13:46 +0000 (15:13 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Feb 2019 07:13:46 +0000 (15:13 +0800)
configure

index d5a85e9..1118a68 100755 (executable)
--- a/configure
+++ b/configure
@@ -220,9 +220,10 @@ while [ $# != 0 ]; do
         "--datarootdir")
             CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATAROOTDIR=$(quote "$2")"; shift;;
         "--datadir="*)
-            DATADIR=$(quote "${1#*=}")";;
-            CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATADIR=$(quote "${1#*=}")";;
+            DATA_DIR=$(quote "${1#*=}"); shift;;
         "--datadir")
+            DATA_DIR=$(quote "$2"); shift;;
+            shift;;
             CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATADIR=$(quote "$2")"; shift;;
         "--infodir="*)
             CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INFODIR=$(quote "${1#*=}")";;