SF.net SVN: geany: [2268] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Wed Feb 20 12:37:00 UTC 2008
Revision: 2268
http://geany.svn.sourceforge.net/geany/?rev=2268&view=rev
Author: eht16
Date: 2008-02-20 04:36:59 -0800 (Wed, 20 Feb 2008)
Log Message:
-----------
Apply patch from Yura Siamashka to fix cross-compiling (thanks).
Modified Paths:
--------------
trunk/ChangeLog
trunk/configure.in
trunk/scintilla/ScintillaGTK.cxx
trunk/src/Makefile.am
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-02-20 11:24:23 UTC (rev 2267)
+++ trunk/ChangeLog 2008-02-20 12:36:59 UTC (rev 2268)
@@ -3,6 +3,8 @@
* plugins/*, src/*, tagmanager/*:
Apply patch from Daniel Richard G. to fix to fix several
compiler warnings, C89 violations and minor code problems (thanks).
+ * configure.in, scintilla/ScintillaGTK.cxx, src/Makefile.am:
+ Apply patch from Yura Siamashka to fix cross-compiling (thanks).
2008-02-18 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2008-02-20 11:24:23 UTC (rev 2267)
+++ trunk/configure.in 2008-02-20 12:36:59 UTC (rev 2268)
@@ -117,28 +117,6 @@
AC_ARG_ENABLE(deprecated, [ --disable-deprecated Disable deprecated GTK functions. ],
[GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"], [])
-# socket support
-AC_ARG_ENABLE(socket, AC_HELP_STRING([--enable-socket],[enable if you want to detect a running instance [[default=yes]]]),
- [want_socket="$enableval"], [want_socket="yes"])
-
-if test "x$want_socket" = "xyes"; then
- AC_DEFINE(HAVE_SOCKET, 1, [Define if you want to detect a running instance])
- # this should bring in libsocket on Solaris:
- AC_SEARCH_LIBS([connect],[socket],[],[],[])
-fi
-
-# VTE support
-AC_ARG_ENABLE(vte, AC_HELP_STRING([--enable-vte],
- [enable if you want virtual termninal support [[default=yes]]]),
- [want_vte="$enableval"], [want_vte="yes"])
-if test "x$want_vte" = "xyes"; then
- AC_DEFINE(HAVE_VTE, 1, [Define if you want VTE support])
-fi
-AC_ARG_WITH(vte-module-path, AC_HELP_STRING([--with-vte-module-path=PATH],
- [Path to a loadable libvte [[default=None]]]), [AC_DEFINE_UNQUOTED([VTE_MODULE_PATH],
- ["$withval"], [Path to a loadable libvte])])
-
-
# Plugins support
AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support [[default=no]]])], , enable_plugins=yes)
@@ -155,13 +133,45 @@
AC_CHECK_FILE([/dev/random], AC_DEFINE([HAVE_DEVRANDOM], [1], [Define that you found /dev/random]))
fi
-if test "x$host" = "xi386-mingw32msvc"; then
+case "${host}" in
+ *mingw*)
AC_DEFINE_UNQUOTED([WIN32], 1, [we are cross compiling for WIN32])
want_vte="no"
+ want_socket="no"
AC_EXEEXT
+ AM_CONDITIONAL(MINGW, true)
+ ;;
+ *)
+ AM_CONDITIONAL(MINGW, false)
+ ;;
+esac
+
+dnl skip check if already decided
+if test "x$want_socket" = "x"; then
+ # socket support
+ AC_ARG_ENABLE(socket, AC_HELP_STRING([--enable-socket],[enable if you want to detect a running instance [[default=yes]]]),
+ [want_socket="$enableval"], [want_socket="yes"])
+
+ if test "x$want_socket" = "xyes"; then
+ AC_DEFINE(HAVE_SOCKET, 1, [Define if you want to detect a running instance])
+ # this should bring in libsocket on Solaris:
+ AC_SEARCH_LIBS([connect],[socket],[],[],[])
+ fi
fi
-AM_CONDITIONAL(MINGW, test "x$host" = "xi386-mingw32msvc")
+dnl skip check if already decided
+if test "x$want_vte" = "x"; then
+ # VTE support
+ AC_ARG_ENABLE(vte, AC_HELP_STRING([--enable-vte],
+ [enable if you want virtual termninal support [[default=yes]]]),
+ [want_vte="$enableval"], [want_vte="yes"])
+ if test "x$want_vte" = "xyes"; then
+ AC_DEFINE(HAVE_VTE, 1, [Define if you want VTE support])
+ fi
+ AC_ARG_WITH(vte-module-path, AC_HELP_STRING([--with-vte-module-path=PATH],
+ [Path to a loadable libvte [[default=None]]]), [AC_DEFINE_UNQUOTED([VTE_MODULE_PATH],
+ ["$withval"], [Path to a loadable libvte])])
+fi
GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
Modified: trunk/scintilla/ScintillaGTK.cxx
===================================================================
--- trunk/scintilla/ScintillaGTK.cxx 2008-02-20 11:24:23 UTC (rev 2267)
+++ trunk/scintilla/ScintillaGTK.cxx 2008-02-20 12:36:59 UTC (rev 2268)
@@ -15,7 +15,7 @@
#include "Platform.h"
#if PLAT_GTK_WIN32
-#include "Windows.h"
+#include "windows.h"
#endif
#include "Scintilla.h"
Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am 2008-02-20 11:24:23 UTC (rev 2267)
+++ trunk/src/Makefile.am 2008-02-20 12:36:59 UTC (rev 2268)
@@ -49,19 +49,22 @@
if MINGW
# build Geany for Windows on non-Windows systems (cross-compile)
-WINDRES = /usr/local/cross-tools/bin/i386-mingw32msvc-windres
+WINDRES = $(host)-windres
geany_SOURCES = $(SRCS) win32.c win32.h
geany_LDADD = ../scintilla/libscintilla.a ../tagmanager/libtagmanager.a -lstdc++ @GTK_LIBS@ \
$(INTLLIBS) -lgdi32 -limm32 -lshell32 -lole32 -luuid -liberty -lcomdlg32 -lcomctl32 \
geany_private.res
-AM_CFLAGS = -mms-bitfields
-geany_LDFLAGS = -mwindows
+AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
+ -DGEANY_LOCALEDIR=\"data\" \
+ -DGEANY_LIBDIR=\"\" \
+ -DGEANY_PREFIX=\"\" \
+geany_LDFLAGS = -mwindows -mms-bitfields
INCLUDES = -I$(srcdir)/../scintilla/include -I$(srcdir)/../tagmanager/include -DENABLE_NLS \
-I/usr/local/cross-tools/include @GTK_CFLAGS@
-geany_windres.res:
+geany_private.res:
$(WINDRES) -i ../geany_private.rc --input-format=rc -o geany_private.res -O coff;
clean-local:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list