Add --with-xsession-path option to configure.ac.
authorFred Chien <fred@lxde.org>
Thu, 28 Feb 2008 17:22:18 +0000 (17:22 +0000)
committerFred Chien <fred@lxde.org>
Thu, 28 Feb 2008 17:22:18 +0000 (17:22 +0000)
git-svn-id: https://lxde.svn.sourceforge.net/svnroot/lxde/trunk/lxde-data@300 3baf7735-d320-0410-8b56-b11ef3703fae

Makefile.am
configure.ac

index 128c7dc..9a66282 100644 (file)
@@ -1,8 +1,7 @@
 bin_SCRIPTS = startlxde lxde-logout
 
 # Currently these paths are hardcoded.
-#xsessiondir=$(datadir)/xsessions
-xsessiondir=/usr/share/xsessions
+xsessiondir=$(xsesspath)
 xsession_DATA = LXDE.desktop
 
 defaultsdir=/etc/xdg/lxsession/LXDE
index 33071b1..7851495 100644 (file)
@@ -18,6 +18,15 @@ dnl AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
 dnl ALL_LINGUAS="zh_TW hu es sk pl"
 dnl AM_GLIB_GNU_GETTEXT
 
+# xsessions data of path for GDM
+AC_ARG_WITH([xsession-path],
+    AS_HELP_STRING(
+        [--with-xsession-path=PATH],
+        [set the install path of xsession data (default=/usr/share/xsessions)]),
+        [test x$withval != x && xsesspath="$withval"],
+        [xsesspath=/usr/share/xsessions])
+AC_SUBST(xsesspath)
+
 AC_OUTPUT([
   Makefile
   startlxde