Fix build on OpenIndiana
authorSteve Youngs <steve@sxemacs.org>
Tue, 31 Jan 2012 02:31:43 +0000 (12:31 +1000)
committerSteve Youngs <steve@sxemacs.org>
Tue, 31 Jan 2012 02:31:43 +0000 (12:31 +1000)
"Fix" is probably too strong a word here, it wasn't really broken in the
first place.  Just a tiny tweak to autogen.sh was the only "fix" needed
here.

This changeset also documents (in PROBLEMS) the missing deps needed to
build SXEmacs on OpenIndiana.

* autogen.sh: Only add the xpg4/bin directory to the $PATH if this
isn't OpenIndiana.

* PROBLEMS: Document build quirks for OpenIndiana.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
PROBLEMS
autogen.sh

index 24cda27..0e7e449 100644 (file)
--- a/PROBLEMS
+++ b/PROBLEMS
@@ -300,6 +300,45 @@ crashes on all applications.
 In order to give SXEmacs developers with good diagnosis information it
 is recommended the mode be Developer.
 
+** OpenIndiana
+
+SXEmacs does build and run on OpenIndiana (151a) but you will need to
+install a few files/packages beforehand.  Namely...
+
+    Common Name             OpenIndiana Package Name
+
+       GCC                     gcc-3
+       GNU M4                  gnu-m4
+       automake                automake-110
+       autoconf                autoconf
+       libtool                 libtool (also install libltdl)
+       pkg-config              gettext
+       math.h                  header-math
+       bison                   bison
+       gmp                     gmp
+       mpfr                    mpfr
+
+Yes, you read that right... to get pkg-config you must install the
+"gettext" package. :-)
+
+In that list, `bison', `gmp', and `mpfr' are not critical, but you
+will get extra functionality in your SXEmacs if you have them.
+
+*** automake additional instructions for OpenIndiana
+
+When you install the automake-110 OpenIndiana package it won't set up
+the symlinks to /usr/bin/automake or /usr/bin/aclocal.  Fix that
+with...
+
+       sudo ln -sv automake-1.10 /usr/bin/automake
+       sudo ln -sv aclocal-1.10 /usr/bin/aclocal
+
+*** Running SXEmacs configure on OpenIndiana
+
+There's one more quirk with OpenIndiana when you try to run SXEmacs'
+configure... you MUST set $CONFIG_SHELL
+
+            CONFIG_SHELL=/bin/bash ../configure [opts]
 
 * XEmacs Packages
 =================
index a3690c1..4b2ee13 100755 (executable)
@@ -36,7 +36,8 @@ fi
 
 # To cater for Solaris
 if test -d "/usr/xpg4/bin"; then
-    PATH=/usr/xpg4/bin:$PATH
+    # don't add xpg4 dir to PATH if on OpenIndiana
+    grep -q OpenIndiana /etc/release 2>/dev/null||PATH=/usr/xpg4/bin:$PATH
     export PATH
 fi