aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 62614d94..4164dd65 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -13,9 +13,19 @@ PKG_NAME=ModemManager
exit 1
}
+polkit="false"
+args=""
+while (( "$#" )); do
+ if [ "$1" == "--with-polkit=yes" ]; then
+ polkit="true"
+ fi
+ args="$args $1"
+ shift
+done
+
(cd $srcdir;
autoreconf --install --symlink &&
- intltoolize --force &&
+ ((eval "$polkit" && intltoolize --force) || true) &&
autoreconf &&
- ./configure --enable-maintainer-mode $@
+ ./configure --enable-maintainer-mode $args
)