From eb38e590e5c518583fbc2941ad21c2a501aea411 Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Thu, 8 Dec 2005 20:15:45 +0000 Subject: [PATCH] New autoconf macro "BOINC_CHECK_CYGWIN" to give people who need to modify their configure script to work with CYGWIN a place to do their work. Right now the only thing done here is to check whether to use the Windows GUI or X11. Graphical compiles of BOINC under CYGWIN currently do not function due to both __unix__ and _WIN32 being defined. svn path=/trunk/boinc/; revision=9053 --- m4/boinc_check_cygwin.m4 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 m4/boinc_check_cygwin.m4 diff --git a/m4/boinc_check_cygwin.m4 b/m4/boinc_check_cygwin.m4 new file mode 100644 index 0000000000..ff344092d0 --- /dev/null +++ b/m4/boinc_check_cygwin.m4 @@ -0,0 +1,31 @@ +AC_DEFUN([BOINC_CHECK_CYGWIN],[ + AC_MSG_CHECKING([whether we are compiling for cygwin]) + case "$target" in + *cygwin*) + with_cygwin=yes + ;; + *) with_cygwin=no + ;; + esac + AC_MSG_RESULT($with_cygwin) + if test "${with_cygwin}" = "yes" ; then + AC_MSG_CHECKING([whether to use X11 or WIN32 GUI]) + if test "${with_x+set}" = set; then + with_x="${with_x}" + else + with_x="no" + fi + if test "${with_x}" = "no" ; then + AC_MSG_RESULT(WIN32) + ac_cv_header_windows_h=yes + AC_DEFINE(XMD_H,[1],[Define to prevent redefinition of INT32 in jconfig.h]) + AC_DEFINE(CYGWIN_USE_WIN32,[1],[Define to 1 if CYGWIN should use the WIN32 GUI]) + LIBS="-L/usr/lib/w32api ${LIBS}" + CFLAGS="-I/usr/include/w32api -D_WIN32 -DWIN32 ${CFLAGS}" + CXXFLAGS="-I/usr/include/w32api -D_WIN32 -DWIN32 ${CXXFLAGS}" + CPPFLAGS="-I/usr/include/w32api -D_WIN32 -DWIN32 ${CPPFLAGS}" + else + AC_MSG_RESULT(X11) + fi + fi +])