6583543 Can't build X with JDS CBE 1.6
authorAlan Coopersmith <Alan.Coopersmith@Sun.COM>
Wed, 25 Jul 2007 12:48:36 -0700
changeset 191 8c3443e72486
parent 190 d5db89b94a20
child 192 7ea213419026
6583543 Can't build X with JDS CBE 1.6
open-src/app/xpm/Makefile
open-src/common/Makefile.inc
open-src/common/delibtoolize.pl
open-src/driver/xf86-video-ati/Makefile
open-src/driver/xf86-video-cirrus/Makefile
open-src/driver/xf86-video-i810/Makefile
open-src/driver/xf86-video-mga/Makefile
open-src/driver/xf86-video-trident/Makefile
open-src/xserver/xorg/Makefile
open-src/xserver/xorg/automake-1.10.patch
open-src/xserver/xorg/dtlogin-userinfo.patch
--- a/open-src/app/xpm/Makefile	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/app/xpm/Makefile	Wed Jul 25 12:48:36 2007 -0700
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.5	07/05/15
+# @(#)Makefile	1.6	07/07/20
 #
 
 PWD:sh=pwd
@@ -76,10 +76,8 @@
 	PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig:$(TOP)/common/pc-files/$(BUILD_DIR) 
 
 # Run configure script
-$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
-	(cd $(SOURCE_DIR) ; cat acinclude.m4 >> aclocal.m4 ; \
-	 automake && autoconf  && \
-	 $(CONFIG_ENV) ./configure $(CONFIG_OPTS) )
+$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET) autoreconf
+	(cd $(SOURCE_DIR) && $(CONFIG_ENV) ./configure $(CONFIG_OPTS) )
 
 # Binary built in tree
 APP_BIN=$(SOURCE_DIR)/cxpm/cxpm $(SOURCE_DIR)/sxpm/sxpm 
--- a/open-src/common/Makefile.inc	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/common/Makefile.inc	Wed Jul 25 12:48:36 2007 -0700
@@ -28,7 +28,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile.inc	1.76	07/05/15
+# @(#)Makefile.inc	1.77	07/07/25
 #
 
 # Borrowed from Solaris OS/Net makefile.master:
@@ -154,6 +154,7 @@
 X11_INCLUDES_DIR=$(X11_DIR)/include
 X11_DOC_DIR=$(X11_DIR)/share/doc
 X11_LOCALE_DIR=$(X11_DIR)/share/locale
+X11_ACLOCAL_DIR=$(X11_DIR)/share/aclocal
 X11_LC_MESSAGES_DIR=$(X11_LOCALE_DIR)/C/LC_MESSAGES
 # Subdirectory of /usr/X11/lib for X server private libraries
 X11_SERVERLIBS_SUBDIR=/X11/xserver
@@ -230,7 +231,8 @@
 
 source_gen::
 	mkdir -p $(BUILD_DIR)
-	@if [ "x$(SOURCE_TARBALL_NAME)" != "xNONE" ] ; then \
+	@case '$(MFLAGS)' in *[ik]*) set +e;; esac; \
+	if [ "x$(SOURCE_TARBALL_NAME)" != "xNONE" ] ; then \
 	    if [ "x$(SOURCE_UNCOMPRESS)" = "x" ] ; then \
 	        echo "bzcat $(SOURCE_TARBALL) | (cd $(BUILD_DIR) ; tar -xf - )" ; \
 	        ( bzcat $(SOURCE_TARBALL) | (cd $(BUILD_DIR) ; tar -xf - )) ; \
@@ -238,8 +240,8 @@
 	        echo "$(SOURCE_UNCOMPRESS) $(SOURCE_TARBALL) | (cd $(BUILD_DIR) ; tar -xf - )" ; \
 	        ( $(SOURCE_UNCOMPRESS) $(SOURCE_TARBALL) | (cd $(BUILD_DIR) ; tar -xf - )) ; \
 	    fi ; \
-	fi
-	@if [ "x$(SOURCE_PATCHES)" != "x" ] ; then \
+	fi ; \
+	if [ "x$(SOURCE_PATCHES)" != "x" ] ; then \
 	    for p in $(SOURCE_PATCHES) x ; do \
 	        if [ "$$p" != "x" ] ; then \
 		    PATCH_CMD=`echo $$p | awk -F, '{if (NF > 1) FLAGS = $$2; else FLAGS="-p0" ; printf "gpatch -d $(SOURCE_DIR) %s < %s\n", FLAGS, $$1}'` ; \
@@ -247,15 +249,15 @@
 		    eval $${PATCH_CMD} ; \
 		fi ; \
 	    done ; \
-	fi
-	@if [ "x$(SUNTOUCHED_MANPAGES)" != "x" ] ; then \
+	fi ; \
+	if [ "x$(SUNTOUCHED_MANPAGES)" != "x" ] ; then \
 	    echo "/usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
 		$(SUNTOUCH_MAN_FLAGS) $(SUNTOUCHED_MANPAGES)" ; \
 	    (cd $(SOURCE_DIR) && \
 		/usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
 		$(SUNTOUCH_MAN_FLAGS) $(SUNTOUCHED_MANPAGES) ) ; \
-	fi
-	@if [ "x$(FIX_PC_FILES)"  != "x" ] ; then \
+	fi ; \
+	if [ "x$(FIX_PC_FILES)"  != "x" ] ; then \
 	    echo "/usr/perl5/bin/perl -i.orig -p \
 			$(FIX_PC_OPS) $(FIX_PC_FILES)" ; \
 	    (cd $(SOURCE_DIR) && \
@@ -264,6 +266,14 @@
 	fi
 	touch $(BUILD_DIR)/.unpack_done
 
+### Regenerate autoconf/automake/libtools files after patching when needed
+
+# Include Xorg autoconf macros when rebuilding configure scripts
+ACLOCAL_PATH=aclocal -I $(PROTODIR)/usr/X11/share/aclocal
+
+autoreconf: $(UNPACK_TARGET)
+	(cd $(SOURCE_DIR) && \
+	 ACLOCAL="$(ACLOCAL_PATH)" autoreconf -v --install --force )
 
 ### Source tarballs & downloading if necessary
 
@@ -279,7 +289,7 @@
 $(SOURCE_URL_DEFAULT)	SOURCE_URL=$(XORG_RELEASES_URL)/$(SOURCE_TARBALL_DIR)/$(SOURCE_TARBALL_NAME)
 
 download:
-	if [ ! -f $(SOURCE_TARBALL) ] ; then \
+	if [ ! -s $(SOURCE_TARBALL) ] ; then \
 		$(WGET) -O $(SOURCE_TARBALL) $(SOURCE_URL) ;\
 	fi
 
--- a/open-src/common/delibtoolize.pl	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/common/delibtoolize.pl	Wed Jul 25 12:48:36 2007 -0700
@@ -3,7 +3,7 @@
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident	"@(#)delibtoolize.pl	1.5	07/02/03 SMI"
+# ident	"@(#)delibtoolize.pl	1.6	07/07/25 SMI"
 #
 
 #
@@ -62,23 +62,37 @@
 
     my $curtarget = "";
 
-    foreach $l (@inlines) {
+    my $l = "";
+
+    foreach my $curline (@inlines) {
+      $l .= $curline;
+      next if ($curline =~ m/\\$/);
+
       # Remove libtool script from compile steps &
       # add PIC flags that libtool normally provides
-      $l =~ s%\$\(LIBTOOL\)( --tag=CC)? --mode=compile\s*(\$\(CC\))%$2 $picflags%;
-      $l =~ s%\$\(LIBTOOL\)( --tag=CC)? --mode=compile\s*(\$\(CCAS\))%$2 $picflags%;
+      $l =~ s{\$\(LIBTOOL\)
+	      (?:[\\\s]+ --tag=CC)?
+	      (?:[\\\s]+ \$\(AM_LIBTOOLFLAGS\) [\\\s]+ \$\(LIBTOOLFLAGS\))?
+	      [\\\s]+ --mode=compile
+	      [\\\s]+ (\$\(CC\)|\$\(CCAS\))
+	    }{$1 $picflags}xs;
 
       # Remove libtool script from link step
-      $l =~ s%\$\(LIBTOOL\)( --tag=CC)? --mode=link\s*%%;
+      $l =~ s{\$\(LIBTOOL\)
+	      (?:[\\\s]+ --tag=CC)?
+	      (?:[\\\s]+ \$\(AM_LIBTOOLFLAGS\) [\\\s]+ \$\(LIBTOOLFLAGS\))?
+	      [\\\s]+ --mode=link
+	    }{}xs;
 
       # Change -rpath to -R in link arguments
-      $l =~ s%(\s*)-rpath(\s*)%$1-R$2%g;
+      $l =~ s{(\s*)-rpath(\s*)}{$1-R$2}g;
 
       # Change flags for building shared object from arguments to libtool
       # script into arguments to linker
-      $l =~ s%(_la_LDFLAGS\s*=.*) -module%$1 $sharedobjflags%;
-      $l =~ s%(_la_LDFLAGS\s*=.*) -version-number (\d+)[:\d]+%$1 $sharedobjflags%;
-      $l =~ s%(_la_LDFLAGS\s*=.*) -no-undefined%$1 -z defs%;
+      $l =~ s{(_la_LDFLAGS\s*=.*) -module}{$1 $sharedobjflags};
+      $l =~ s{(_la_LDFLAGS\s*=.*) -version-number (\d+)[:\d]+}
+	     {$1 $sharedobjflags};
+      $l =~ s{(_la_LDFLAGS\s*=.*) -no-undefined}{$1 -z defs};
 
       # Change file names
       my $so;
@@ -102,6 +116,7 @@
       }
 
       print NEW $l;
+      $l = "";
     }
     close(NEW) or die;
   }
--- a/open-src/driver/xf86-video-ati/Makefile	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/driver/xf86-video-ati/Makefile	Wed Jul 25 12:48:36 2007 -0700
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.11	07/06/13
+# @(#)Makefile	1.12	07/07/25
 #
 
 # Package name used in tarballs
@@ -71,8 +71,7 @@
 
 include ../Makefile.inc
 
-source_gen:: $(UNPACK_TARGET)
-	(cd $(SOURCE_DIR) && automake && autoconf)
+source_gen:: autoreconf
 
 install_gen::
 	mkdir -p $(PROTODIR)$(X11_DOC_DIR)
--- a/open-src/driver/xf86-video-cirrus/Makefile	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/driver/xf86-video-cirrus/Makefile	Wed Jul 25 12:48:36 2007 -0700
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.4	07/01/31
+# @(#)Makefile	1.5	07/07/25
 #
 
 # Package name used in tarballs
@@ -55,5 +55,5 @@
 
 include ../Makefile.inc
 
-source_gen:: $(UNPACK_TARGET)
-	(cd $(SOURCE_DIR) && automake)
+source_gen:: $(UNPACK_TARGET) autoreconf
+
--- a/open-src/driver/xf86-video-i810/Makefile	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/driver/xf86-video-i810/Makefile	Wed Jul 25 12:48:36 2007 -0700
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.9	07/06/01
+# @(#)Makefile	1.10	07/07/25
 #
 
 # Package name used in tarballs
@@ -62,8 +62,7 @@
 
 include ../Makefile.inc
 
-source_gen:: $(UNPACK_TARGET)
-	(cd $(SOURCE_DIR) && automake && autoconf)
+source_gen:: $(UNPACK_TARGET) autoreconf
 
 install_gen::
 	mkdir -p $(PROTODIR)$(X11_DOC_DIR)
--- a/open-src/driver/xf86-video-mga/Makefile	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/driver/xf86-video-mga/Makefile	Wed Jul 25 12:48:36 2007 -0700
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.7	07/02/26
+# @(#)Makefile	1.8	07/07/25
 #
 
 # Package name used in tarballs
@@ -60,5 +60,5 @@
 
 include ../Makefile.inc
 
-source_gen::
-	(cd $(SOURCE_DIR) && automake)
+source_gen:: $(UNPACK_TARGET) autoreconf
+
--- a/open-src/driver/xf86-video-trident/Makefile	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/driver/xf86-video-trident/Makefile	Wed Jul 25 12:48:36 2007 -0700
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.4	07/01/31
+# @(#)Makefile	1.5	07/07/25
 #
 
 # Package name used in tarballs
@@ -58,5 +58,5 @@
 
 include ../Makefile.inc
 
-source_gen::
-	(cd $(SOURCE_DIR) && automake)
+source_gen:: $(UNPACK_TARGET) autoreconf
+
--- a/open-src/xserver/xorg/Makefile	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/xserver/xorg/Makefile	Wed Jul 25 12:48:36 2007 -0700
@@ -30,7 +30,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile	1.49	07/07/13
+# @(#)Makefile	1.50	07/07/25
 #
 
 PWD:sh=pwd
@@ -58,6 +58,7 @@
 	immu.h.patch,-p1 \
 	server-libs.patch \
 	dtrace.patch \
+	automake-1.10.patch,-p1 \
 	client-privates-leak.patch,-p1 \
 	ddc.patch,-p1 \
 	xcmisc-security.patch \
@@ -213,12 +214,10 @@
 BUILD_64_FLAGS_i386=ARCH_GCC_FLAGS="$(ARCH64_GCC_FLAGS)" ARCHBINSUBDIR="$(SUBDIR64)"
 BUILD_64_FLAGS=$(BUILD_64_FLAGS_$(MACH))
 
-ACLOCAL_PATH=aclocal -I $(PROTODIR)/usr/X11/share/aclocal
-
 # Run configure script
-$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
-	(cd $(SOURCE_DIR) && ACLOCAL="$(ACLOCAL_PATH)" autoreconf \
-	 && $(CONFIG_ENV) ./configure $(CONFIG_OPTS) )
+$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET) autoreconf
+	(cd $(SOURCE_DIR) && \
+	 $(CONFIG_ENV) ./configure $(CONFIG_OPTS) )
 	(cd $(SOURCE_DIR)/hw/xfree86/xf1bpp && \
 	 $(MAKE) $(MFLAGS) maintainer-clean-generic)
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/open-src/xserver/xorg/automake-1.10.patch	Wed Jul 25 12:48:36 2007 -0700
@@ -0,0 +1,208 @@
+[Patches adjusted from originals in git to match current state of tree.]
+
+commit 8deaaa312ad7f9b492a2ae8ad17d74650112c25c
+Author: Bernhard Rosenkraenzer <[email protected]>
+Date:   Sat Nov 4 18:59:39 2006 +0200
+
+    automake: avoid use of reserved _SOURCES keyword (bug #8866)
+    Avoid using _SOURCES unless we're directly referencing a program or
+    library to be built; use _SRCS instead.  Shuts automake 1.10 up.
+
+diff --git a/hw/xfree86/os-support/linux/Makefile.am b/hw/xfree86/os-support/linux/Makefile.am
+index 9e09fb6..caf6007 100644
+--- a/hw/xfree86/os-support/linux/Makefile.am
++++ b/hw/xfree86/os-support/linux/Makefile.am
+@@ -12,12 +12,12 @@ PLATFORM_PCI_SUPPORT = lnx_ev56.c \
+ endif
+ 
+ if LNXACPI
+-ACPI_SOURCES = lnx_acpi.c lnx_apm.c
++ACPI_SRCS = lnx_acpi.c lnx_apm.c
+ XORG_CFLAGS += -DHAVE_ACPI
+ endif
+ 
+ if LNXAPM
+-APM_SOURCES = lnx_apm.c
++APM_SRCS = lnx_apm.c
+ XORG_CFLAGS += -DHAVE_APM
+ endif
+ 
+@@ -32,8 +32,8 @@ liblinux_la_SOURCES = lnx_init.c lnx_vid
+                      $(srcdir)/../shared/stdResource.c \
+ 		     $(srcdir)/../shared/libc_wrapper.c \
+                      $(srcdir)/../shared/at_scancode.c \
+-                     $(ACPI_SOURCES) \
+-                     $(APM_SOURCES) \
++                     $(ACPI_SRCS) \
++                     $(APM_SRCS) \
+                      $(PLATFORM_PCI_SUPPORT)
+ 
+ AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC $(XORG_CFLAGS) $(PLATFORM_DEFINES)
+@@ -41,13 +41,13 @@ AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC 
+ INCLUDES = $(XORG_INCS) $(PLATFORM_INCLUDES) -I/usr/include/drm # FIXME this last part is crack
+ 
+ # FIXME: These need to be added to the build
+-LNX_EXTRA_SOURCES = \
++LNX_EXTRA_SRCS = \
+ 	lnx_font.c \
+ 	lnx_jstk.c \
+ 	lnxResource.c
+ 
+ EXTRA_DIST = \
+-	$(LNX_EXTRA_SOURCES) \
++	$(LNX_EXTRA_SRCS) \
+ 	lnx.h \
+ 	lnx_kbd.h \
+ 	$(srcdir)/../shared/xf86Axp.h \
+diff --git a/hw/xfree86/os-support/misc/Makefile.am b/hw/xfree86/os-support/misc/Makefile.am
+index f546e1a..8bec350 100644
+--- a/hw/xfree86/os-support/misc/Makefile.am
++++ b/hw/xfree86/os-support/misc/Makefile.am
+@@ -1,18 +1,18 @@
+ # FIXME: Add the *.S files to build when applicable
+-I386_SOURCES = BUSmemcpy.S IODelay.S SlowBcopy.S
+-OTHER_SOURCES = BUSmemcpy.c IODelay.c SlowBcopy.c
++I386_SRCS = BUSmemcpy.S IODelay.S SlowBcopy.S
++OTHER_SRCS = BUSmemcpy.c IODelay.c SlowBcopy.c
+ 
+-ARCH_SOURCES = $(OTHER_SOURCES)
++ARCH_SRCS = $(OTHER_SRCS)
+ 
+ # FIXME: Add to the build (NeedPortIO)
+-PORTIO_SOURCES = PortIO.S
++PORTIO_SRCS = PortIO.S
+ 
+ # FIXME: Add to the build (if HasGcc || HasGcc2)
+-ILHACK_SOURCES = xf86_IlHack.c
++ILHACK_SRCS = xf86_IlHack.c
+ 
+ noinst_LTLIBRARIES = libmisc.la
+ 
+-libmisc_la_SOURCES = xf86_Util.c Delay.c $(ARCH_SOURCES)
++libmisc_la_SOURCES = xf86_Util.c Delay.c $(ARCH_SRCS)
+ 
+ #AM_LDFLAGS = -r
+ 
+@@ -20,4 +20,4 @@ INCLUDES = $(XORG_INCS)
+ 
+ AM_CFLAGS = $(XORG_CFLAGS)
+ 
+-EXTRA_DIST = $(I386_SOURCES) $(PORTIO_SOURCES) $(ILHACK_SOURCES)
++EXTRA_DIST = $(I386_SRCS) $(PORTIO_SRCS) $(ILHACK_SRCS)
+diff --git a/os/Makefile.am b/os/Makefile.am
+index dcfe80a..7381797 100644
+--- a/os/Makefile.am
++++ b/os/Makefile.am
+@@ -3,14 +3,14 @@ noinst_LTLIBRARIES = libos.la libcwrappe
+ AM_CFLAGS = $(DIX_CFLAGS)
+ 
+ # FIXME: Add support for these in configure.ac
+-K5AUTH_SOURCES = k5auth.c
+-SECURERPC_SOURCES = rpcauth.c
+-INTERNALMALLOC_SOURCES = xalloc.c
++K5AUTH_SRCS = k5auth.c
++SECURERPC_SRCS = rpcauth.c
++INTERNALMALLOC_SRCS = xalloc.c
+ 
+-XCSECURITY_SOURCES = secauth.c
+-XDMCP_SOURCES = xdmcp.c
+-STRLCAT_SOURCES = strlcat.c strlcpy.c
+-XORG_SOURCES = log.c
++XCSECURITY_SRCS = secauth.c
++XDMCP_SRCS = xdmcp.c
++STRLCAT_SRCS = strlcat.c strlcpy.c
++XORG_SRCS = log.c
+ 
+ libos_la_SOURCES = 	\
+ 	WaitFor.c	\
+@@ -27,18 +27,18 @@ libos_la_SOURCES = 	\
+ 	xdmauth.c	\
+ 	xstrans.c	\
+ 	xprintf.c	\
+-	$(XORG_SOURCES)
++	$(XORG_SRCS)
+ 
+ if XCSECURITY
+-libos_la_SOURCES += $(XCSECURITY_SOURCES)
++libos_la_SOURCES += $(XCSECURITY_SRCS)
+ endif
+ 
+ if XDMCP
+-libos_la_SOURCES += $(XDMCP_SOURCES)
++libos_la_SOURCES += $(XDMCP_SRCS)
+ endif
+ 
+ if NEED_STRLCAT
+-libos_la_SOURCES += $(STRLCAT_SOURCES)
++libos_la_SOURCES += $(STRLCAT_SRCS)
+ endif
+ 
+ libcwrapper_la_SOURCES = \
+@@ -48,8 +48,8 @@ libcwrapper_la_CFLAGS = \
+ 	-I$(top_srcdir)/hw/xfree86/os-support \
+ 	$(AM_CFLAGS)
+ 
+-EXTRA_DIST = $(K5AUTH_SOURCES) $(SECURERPC_SOURCES) $(INTERNALMALLOC_SOURCES) \
+-     $(XCSECURITY_SOURCES) $(XDMCP_SOURCES) $(STRLCAT_SOURCES)
++EXTRA_DIST = $(K5AUTH_SRCS) $(SECURERPC_SRCS) $(INTERNALMALLOC_SRCS) \
++     $(XCSECURITY_SRCS) $(XDMCP_SRCS) $(STRLCAT_SRCS)
+ 
+ if XSERVER_DTRACE
+ # Generate dtrace object code for probes in libos
+
+
+
+ 
+commit 9fcb30ebf7b7b2137955f759e95c1d58c4f27a11
+Author: Alan Coopersmith <[email protected]>
+Date:   Thu Jul 12 13:00:32 2007 -0700
+
+    Make SOLARIS_INOUT_ARCH substitutions work better with automake-1.10
+
+diff --git a/hw/xfree86/Makefile.am b/hw/xfree86/Makefile.am
+index 50aa673..cef6b5b 100644
+--- a/hw/xfree86/Makefile.am
++++ b/hw/xfree86/Makefile.am
+@@ -69,10 +69,10 @@ if SOLARIS_ASM_INLINE
+ # Needs to be built before any files are compiled when using Sun compilers
+ # so in*/out* inline definitions are properly processed.
+ 
+-BUILT_SOURCES += os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il
++BUILT_SOURCES += os-support/solaris/solaris-@[email protected]
+ 
+-os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il:
+-	cd os-support/solaris ; make solaris-$(SOLARIS_INOUT_ARCH).il
++os-support/solaris/solaris-@[email protected]:
++	cd os-support/solaris ; make solaris-@[email protected]
+ endif
+ 
+ # do not use $(mkdir_p) if you want automake 1.7 to work
+diff --git a/hw/xfree86/os-support/solaris/Makefile.am b/hw/xfree86/os-support/solaris/Makefile.am
+index d01e2e6..c027d9a 100644
+--- a/hw/xfree86/os-support/solaris/Makefile.am
++++ b/hw/xfree86/os-support/solaris/Makefile.am
+@@ -15,11 +15,11 @@ #else
+ #AGP_SRC = $(srcdir)/../shared/agp_noop.c
+ #endif
+ 
+-SOLARIS_INOUT_SRC = solaris-$(SOLARIS_INOUT_ARCH).S
+-DISTCLEANFILES = solaris-$(SOLARIS_INOUT_ARCH).il
++SOLARIS_INOUT_SRC = solaris-@[email protected]
++DISTCLEANFILES = solaris-@[email protected]
+ 
+-solaris-$(SOLARIS_INOUT_ARCH).il: solaris-${SOLARIS_INOUT_ARCH}.S
+-	$(CPP) -P -DINLINE_ASM solaris-${SOLARIS_INOUT_ARCH}.S > $@
++solaris-@[email protected]: solaris-@[email protected]
++	$(CPP) -P -DINLINE_ASM solaris-@[email protected] > $@
+ 
+ noinst_LTLIBRARIES = libsolaris.la
+ libsolaris_la_SOURCES = sun_bios.c sun_init.c $(IO_SRC) $(KBD_SRCS) \
+@@ -32,7 +32,7 @@ libsolaris_la_SOURCES = sun_bios.c sun_i
+ nodist_libsolaris_la_SOURCES = $(SOLARIS_INOUT_SRC)
+ 
+ sdk_HEADERS = agpgart.h
+-nodist_sdk_HEADERS = solaris-$(SOLARIS_INOUT_ARCH).il
++nodist_sdk_HEADERS = solaris-@[email protected]
+ 
+ AM_CFLAGS = -DUSESTDRES -DHAVE_SYSV_IPC $(XORG_CFLAGS)
+ 
--- a/open-src/xserver/xorg/dtlogin-userinfo.patch	Tue Jul 24 17:38:21 2007 -0700
+++ b/open-src/xserver/xorg/dtlogin-userinfo.patch	Wed Jul 25 12:48:36 2007 -0700
@@ -45,7 +45,7 @@
  	xstrans.c	\
  	xprintf.c	\
 +	dtlogin.c	\
- 	$(XORG_SOURCES)
+ 	$(XORG_SRCS)
  
  if XCSECURITY
 @@ -41,6 +42,8 @@ if NEED_STRLCAT