Load sections and add their widget to the dialog.
[tweakr] / configure.ac
index 4d54615..24e263f 100644 (file)
@@ -46,6 +46,14 @@ if test "x$coverage" = "xyes"; then
     CFLAGS="$CFLAGS -g -fprofile-arcs -ftest-coverage"
 fi
 
+AC_ARG_WITH(modules_dir, AS_HELP_STRING([--with-modules-dir=<path>],[Directory for storing maemo-tweaks modules]))
+if test -z "$with_modules_dir" ; then
+    modulesdir=$libdir/maemo-tweaks/modules
+else
+    modulesdir=$with_modules_dir
+fi
+AC_SUBST(modulesdir)
+
 AC_OUTPUT([
            Makefile
            libmaemo-tweaks-section/Makefile