summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2007-05-09 04:36:13 +0000
committerBrian Cameron <bcameron@src.gnome.org>2007-05-09 04:36:13 +0000
commitfb4aa10818bbf9b4c082c299d916fda890d91f99 (patch)
treeb58b470588b45d55ea2322a3ab0843446491fe46
parent848c91755b5f06313156b2b4e3c3195c5d069d1a (diff)
downloadgdm-fb4aa10818bbf9b4c082c299d916fda890d91f99.tar.gz
Fix check for Xserver to work on Solaris also.
2007-05-09 Brian Cameron <brian.cameron@sun.com> * configure.ac: Fix check for Xserver to work on Solaris also. svn path=/trunk/; revision=4905
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac17
2 files changed, 18 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b1430a4e..0c79ef22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-05-09 Brian Cameron <brian.cameron@sun.com>
+ * configure.ac: Fix check for Xserver to work on Solaris
+ also.
+
+2007-05-09 Brian Cameron <brian.cameron@sun.com>
+
* configure.ac: Fix check for Xserver to work for Debian
and Ubuntu. Fixes bug #436879. Patch by Lo\357c Minier
<lool+gnome@via.ecp.fr>
diff --git a/configure.ac b/configure.ac
index 798f64a6..aecec443 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1034,11 +1034,20 @@ case "$host" in
;;
esac
-# First check with "! -h" for /usr/X11R6 and /usr/X11 since they often
-# symlink to each other, and configure should use the more stable
-# location (the real directory) if possible.
+# On Solaris, the /usr/bin/Xserver script is used to decide whether to
+# use Xsun or Xorg, so this is used on Solaris.
#
-if test ! -h /usr/X11R6 -a ! -h /usr/X11R6/bin -a -x /usr/X11R6/bin/X; then
+# When testing for /usr/X11R6, first check with "! -h" for /usr/X11R6
+# and /usr/X11 since they often symlink to each other, and configure
+# should use the more stable location (the real directory) if possible.
+#
+if test -x /usr/X11/bin/Xserver; then
+ X_PATH="/usr/X11/bin"
+ X_SERVER_PATH="/usr/X11/bin"
+ X_SERVER="/usr/X11/bin/Xserver"
+ GDM_USER_PATH="$GDM_USER_PATH:/usr/X11/bin"
+ X_CONFIG_OPTIONS="-audit 0"
+elif test ! -h /usr/X11R6 -a ! -h /usr/X11R6/bin -a -x /usr/X11R6/bin/X; then
X_PATH="/usr/X11R6/bin"
X_SERVER_PATH="/usr/X11R6/bin"
X_SERVER="/usr/X11R6/bin/X"