Attached are some hacks that smooth a couple corners in
the directx LibGII build.  The closesocket changes are a terrible
hack (but then, so is windows :-)  What is "fixed" is that
directx SDK common include paths are checked/used, and 
closesocket is chased into winsock32, if that is where it is 
hiding.

dinput and tcp inputs get complaints by libtool that a static
binary was created.  Don't know if this is normal or not.

input-mouse warns that "undefined symbols are not allowed" in
cygwin dlls.

After manually fixing dinput.h I was able to complete a make install.
Some of the lt-demo magic doesn't work on cygwin due to a failure
to have a working utime.  Trying to run the demos directly results
in a dll not found; tries LD_LIBRARY_PATH to no avail.

I didn't want to commit these as there are others more experienced 
with cygwin working in the tree, so I send them here in case they are 
of any use.

--
Brian
Index: configure.in
===================================================================
RCS file: /cvsroot/ggi/ggi-core/libgii/configure.in,v
retrieving revision 1.2
diff -r1.2 configure.in
141,142c141,142
<       termios.h malloc.h vgl.h \
<       windows.h dinput.h \
---
>       termios.h linux/termios.h malloc.h vgl.h \
>       windows.h \
144a145,152
> DIRECTX_INCDIRS=
> save_CPPFLAGS="$CPPFLAGS"
> CPPFLAGS="$CPPFLAGS -Ic:/mssdk/include -I/cygdrive/c/mssdk/include 
>-I/mssdk/include";
> AC_CHECK_HEADERS(dinput.h)
> if test "x$ac_cv_header_dinput_h" = "xyes"; then
>   DIRECTX_INCDIRS='-Ic:/mssdk/include -I/cygdrive/c/mssdk/include -I/mssdk/include';
> fi
> CPPFLAGS="$save_CPPFLAGS"
247c255
< AC_CHECK_WINFUNCS(gettimeofday strdup nanosleep usleep _exit \
---
> AC_CHECK_WINFUNCS(closesocket gettimeofday strdup nanosleep usleep _exit \
308a317,332
> if test "x$ac_cv_func_closesocket" = "xno"; then
>   AC_MSG_CHECKING([for closesocket in -lwsock32])
>   SAVELIBS="$LIBS"
>   LIBS="$LIBS -lwsock32"
>   AC_TRY_LINK([
> #include <winsock.h>
> ],[
> closesocket(0);
> ],
>     NETLIBS="$NETLIBS -lwsock32"
>     ac_cv_func_closesocket=yes
>     AC_MSG_RESULT(yes),
>     AC_MSG_RESULT(no))
>   LIBS="$SAVELIBS"
> fi
> 
491c515
<       "x$ac_cv_header_termios_h" = "xyes"; then
---
>       "x$ac_cv_header_linux_termios_h" = "xyes"; then
634a659
> AC_SUBST(DIRECTX_INCDIRS)
Index: input/directx/Makefile.am
===================================================================
RCS file: /cvsroot/ggi/ggi-core/libgii/input/directx/Makefile.am,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 Makefile.am
1c1
< INCLUDES = -I${top_srcdir}/include -I${top_builddir}/include ${extra_includes}
---
> INCLUDES = @DIRECTX_INCDIRS@ -I${top_srcdir}/include -I${top_builddir}/include 
>${extra_includes}

Reply via email to