emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] - Introduce reference to a new Emacs build target - NaCl


From: Pete Williamson
Subject: [PATCH] - Introduce reference to a new Emacs build target - NaCl
Date: Fri, 13 Mar 2015 14:57:31 -0700

I would like to request feedback on this patch for the emacs configure.ac file.

As I mentioned in previous patch requests, I'm adding support for a new build target, the chromium browser's Native Client (NaCl) platform.  We have a patch for emacs working today (for some definitions of working ^_^) in NaCl ports, and we would like to port the changes back to the emacs code base.

Is this the right way to introduce a new build target?  Once this is checked in, I have more changes for the config.ac file, but I wanted to vette the approach with the good folks on this email list before proceeding.

For a preview of the other changes I hope to port to the configure.ac file, here is a list of changes in our port today, I hope to port most or all of these to the regular emacs code base in future patches.

--- a/configure
+++ b/configure
@@ -4631,6 +4631,10 @@ case "${canonical}" in
esac
;;

+ *-nacl )
+ opsys=nacl
+ ;;
+
## Intel 386 machines where we don't care about the manufacturer.
i[3456]86-*-* )
case "${canonical}" in
@@ -8206,6 +8210,7 @@ rm -f core conftest.err conftest.$ac_objext \

test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
case "$opsys" in
+ nacl) CANNOT_DUMP=yes ;;
your-opsys-here) CANNOT_DUMP=yes ;;
esac

@@ -9828,6 +9833,7 @@ system_malloc=no
case "$opsys" in
## darwin ld insists on the use of malloc routines in the System framework.
darwin|sol2-10) system_malloc=yes ;;
+ nacl) system_malloc=yes ;;
esac

if test "${system_malloc}" = "yes"; then
@@ -15169,7 +15175,7 @@ esac
emacs_broken_SIGIO=no

case $opsys in
- hpux* | irix6-5 | openbsd | sol2* | unixware )
+ hpux* | irix6-5 | openbsd | sol2* | unixware | nacl )
emacs_broken_SIGIO=yes
;;

@@ -15277,7 +15283,7 @@ case $opsys in

;;

- gnu-linux | gnu-kfreebsd | freebsd | netbsd )
+ nacl | gnu-linux | gnu-kfreebsd | freebsd | netbsd )
if test "x$ac_cv_func_grantpt" = xyes; then

$as_echo "#define UNIX98_PTYS 1" >>confdefs.h
@@ -15430,7 +15436,7 @@ if test $emacs_glibc = yes; then
emacs_pending_output=unknown

case $opsys in
- gnu | gnu-linux | gnu-kfreebsd )
+ nacl | gnu | gnu-linux | gnu-kfreebsd )
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
$as_echo_n "checking for style of pending output formalism... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -24659,7 +24665,7 @@ LD_FIRSTFLAG=
ORDINARY_LINK=
case "$opsys" in
## gnu: GNU needs its own crt0.
- aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
+ nacl|aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;

## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
## library search parth, i.e. it won't search /usr/lib for libc and Thanks!
 

Attachment: 0001-Add-NaCl-to-list-of-supported-OSs.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]