mirror of https://github.com/BOINC/boinc.git
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
This commit is contained in:
parent
afe4f0c201
commit
eb38e590e5
|
@ -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
|
||||||
|
])
|
Loading…
Reference in New Issue