qemacs-commit
[Top][All Lists]
Advanced

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

[Qemacs-commit] qemacs configure


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs configure
Date: Sun, 7 May 2017 02:12:39 -0400 (EDT)

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        17/05/07 02:12:39

Modified files:
        .              : configure 

Log message:
        build: Cross-compile using the NetSurf SDK. (F.Revol)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/configure?cvsroot=qemacs&r1=1.29&r2=1.30

Patches:
Index: configure
===================================================================
RCS file: /sources/qemacs/qemacs/configure,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- configure   7 May 2017 06:08:32 -0000       1.29
+++ configure   7 May 2017 06:12:39 -0000       1.30
@@ -54,6 +54,7 @@
 ptsname="yes"
 gprof="no"
 network="yes"
+atari="no"
 win32="no"
 cygwin="no"
 darwin="no"
@@ -203,6 +204,7 @@
 echo "Standard options:"
 echo "  --help                   print this message"
 echo "  --prefix=PREFIX          install in PREFIX [$prefix]"
+echo "  --enable-atari           enable atari cross compile"
 echo "  --enable-win32           enable win32 cross compile"
 echo "  --enable-cygwin          compile for cygwin systems"
 echo "  --disable-x11            disable Xwindow support"
@@ -291,6 +293,9 @@
       --enable-network | --disable-network)
         network="$value"
         ;;
+      --enable-atari)
+        atari="yes"
+        ;;
       --enable-win32)
         win32="yes"
         ;;
@@ -349,6 +354,27 @@
     CFLAGS="-O2"
 fi
 
+if test "$atari" = "yes" ; then
+    if test "$cross_prefix" = ""; then
+        cross_prefix="m68k-atari-mint-"
+    fi
+    if test "$cross_env" = ""; then
+        cross_env="/opt/netsurf/${cross_prefix%-}/env"
+    fi
+    CFLAGS="$CFLAGS -m68020-60 -I${cross_env}/include"
+    LDFLAGS="$LDFLAGS -Wl,--stack,256k -m68020-60 -L${cross_env}/lib"
+    #extralibs="$extralibs -lgem"
+    ptsname="no"
+    network="no"
+    doc="no"
+    plugins="no"
+    initcalls="no"
+    x11="no"
+    mmap="no"
+    cygwin="no"
+    exe=".tos"
+fi
+
 if test "$win32" = "yes" ; then
     if test "$cygwin" = "yes" ; then
         cross_prefix="i686-pc-mingw32-"
@@ -590,6 +616,11 @@
   echo "CONFIG_NETWORK=yes" >> $TMPMAK
 fi
 
+if test "$atari" = "yes" ; then
+  echo "#define CONFIG_ATARI 1" >> $TMPH
+  echo "CONFIG_ATARI=yes" >> $TMPMAK
+fi
+
 if test "$win32" = "yes" ; then
   echo "#define CONFIG_WIN32 1" >> $TMPH
   echo "CONFIG_WIN32=yes" >> $TMPMAK



reply via email to

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