nanogui: A very, very, very ugly POSE patch


Previous by date: 13 Feb 2001 22:32:44 -0000 Re: Trouble building Microwindows for MIPS target, Greg Haerr
Next by date: 13 Feb 2001 22:32:44 -0000 Re: Trouble building Microwindows for MIPS target, Jun Sun
Previous in thread:
Next in thread:

Subject: A very, very, very ugly POSE patch
From: Jordan Crouse ####@####.####
Date: 13 Feb 2001 22:32:44 -0000
Message-Id: <3A89B70E.CB63A6FD@censoft.com>

OK!  Due to popular demand, I am attaching a patch of the hacks I did to
POSE to make it run under Microwindows.  I am warning you all,
 that this is an *HUGE* hack, and that I am not proud.

The configure script has been modified to have --with-microwin= and
--with-fltk= (much in the same style as FLNX and viewML).  This will let
you
specify a directory where those files live.  You will also have to go
through and edit the occasional makefile to get it working correctly
(basically, I didn't get all of the needed header locations into the
configure script).

Anyway, I give this to you all in the hope that it will be useful.  It
is a major hack (can't specify that enough), so much so that I am going
to have to send this one out as unsupported -- you are all on your own
on this one....  I will be more helpful when I actually get a version
that will build directly from the configure script...  if this patch
frustrates you, then wait about a week or so, and I'll hand out a better
copy.  Until then, don't get angry if I don't answer any questions.

Good luck to all!
Jordan

PS - Please send any patches back my way, so we can keep a pretty
current version going.  If we get this working reliably enough, we'll
send the patches back to the POSE folks so they can include it in the
official build.

Only in NXPOSE/BuildUnix: .deps
Only in NXPOSE/BuildUnix/Gzip: .deps
Only in NXPOSE/BuildUnix/Gzip: Makefile
diff -urn Emulator_Src_3.0a7/BuildUnix/Gzip/Makefile.in NXPOSE/BuildUnix/Gzip/Makefile.in
d1 1
a1 1
# Makefile.in generated automatically by automake 1.4 from Makefile.am
d48 1
a48 1
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
d51 1
a78 1
X_LIBS = @X_LIBS@
d106 4
d271 1
a271 1
	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
Only in NXPOSE/BuildUnix: Makefile
diff -urn Emulator_Src_3.0a7/BuildUnix/Makefile.in NXPOSE/BuildUnix/Makefile.in
d1 1
a1 1
# Makefile.in generated automatically by automake 1.4 from Makefile.am
d48 1
a48 1
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
d51 1
a78 1
X_LIBS = @X_LIBS@
d125 4
d271 2
a272 2
	    echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
	     $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
d529 1
a529 1
	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
diff -urn Emulator_Src_3.0a7/BuildUnix/aclocal.m4 NXPOSE/BuildUnix/aclocal.m4
d1 1
a1 1
dnl aclocal.m4 generated automatically by aclocal 1.4
d24 2
Only in NXPOSE/BuildUnix: config.status
diff -urn Emulator_Src_3.0a7/BuildUnix/configure NXPOSE/BuildUnix/configure
d15 1
a15 1
  --with-microwin=DIR         use MICROWIN in DIR"
d791 1
d804 1
a804 1
echo "configure:804: checking for working aclocal" >&5
d817 1
a817 1
echo "configure:817: checking for working autoconf" >&5
d830 1
a830 1
echo "configure:830: checking for working automake" >&5
d843 1
a843 1
echo "configure:843: checking for working autoheader" >&5
d856 1
a856 1
echo "configure:856: checking for working makeinfo" >&5
d871 1
a871 1
echo "configure:871: checking whether ${MAKE-make} sets \${MAKE}" >&5
d900 1
a900 1
echo "configure:900: checking for $ac_word" >&5
d930 1
a930 1
echo "configure:930: checking for $ac_word" >&5
d981 1
a981 1
echo "configure:981: checking for $ac_word" >&5
d1013 1
a1013 1
echo "configure:1013: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d1024 1
a1024 1
#line 1024 "configure"
d1029 1
a1029 1
if { (eval echo configure:1029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1055 1
a1055 1
echo "configure:1055: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1060 1
a1060 1
echo "configure:1060: checking whether we are using GNU C" >&5
d1069 1
a1069 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1088 1
a1088 1
echo "configure:1088: checking whether ${CC-cc} accepts -g" >&5
d1124 1
a1124 1
echo "configure:1124: checking for $ac_word" >&5
d1156 1
a1156 1
echo "configure:1156: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
d1167 1
a1167 1
#line 1167 "configure"
d1172 1
a1172 1
if { (eval echo configure:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1198 1
a1198 1
echo "configure:1198: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
d1203 1
a1203 1
echo "configure:1203: checking whether we are using GNU C++" >&5
d1212 1
a1212 1
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1231 1
a1231 1
echo "configure:1231: checking whether ${CXX-g++} accepts -g" >&5
d1265 1
a1265 1
echo "configure:1265: checking for $ac_word" >&5
d1296 1
a1296 1
echo "configure:1296: checking how to run the C preprocessor" >&5
d1311 1
a1311 1
#line 1311 "configure"
d1317 1
a1317 1
{ (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1328 1
a1328 1
#line 1328 "configure"
d1334 1
a1334 1
{ (eval echo configure:1334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1345 1
a1345 1
#line 1345 "configure"
d1351 1
a1351 1
{ (eval echo configure:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1378 831
a2208 8
# Check whether --with-microwin or --without-microwin was given.
if test "${with_microwin+set}" = set; then
  withval="$with_microwin"
  
		      echo "Using microwindows in $withval..."
        CPPFLAGS="${CFLAGS} -I$withval/include"
        LDFLAGS="${LDFLAGS} -L$withval/lib"
	X_LIBS=""
d2217 1
a2217 1
	CPPFLAGS="${CFLAGS} -I$withval"
d2230 1
a2230 1
echo "configure:1407: checking for $ac_hdr that defines DIR" >&5
d2235 1
a2235 1
#line 1412 "configure"
d2243 1
a2243 1
if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2268 1
a2268 1
echo "configure:1445: checking for opendir in -ldir" >&5
d2276 1
a2276 1
#line 1453 "configure"
d2287 1
a2287 1
if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2309 1
a2309 1
echo "configure:1486: checking for opendir in -lx" >&5
d2317 1
a2317 1
#line 1494 "configure"
d2328 1
a2328 1
if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2351 1
a2351 1
echo "configure:1528: checking for ANSI C header files" >&5
d2356 1
a2356 1
#line 1533 "configure"
d2364 1
a2364 1
{ (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2381 1
a2381 1
#line 1558 "configure"
d2399 1
a2399 1
#line 1576 "configure"
d2420 1
a2420 1
#line 1597 "configure"
d2431 1
a2431 1
if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2458 1
a2458 1
echo "configure:1635: checking for $ac_hdr" >&5
d2463 1
a2463 1
#line 1640 "configure"
d2468 1
a2468 1
{ (eval echo configure:1645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2498 1
a2498 1
echo "configure:1675: checking for working const" >&5
d2503 1
a2503 1
#line 1680 "configure"
d2552 1
a2552 1
if { (eval echo configure:1729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2573 1
a2573 1
echo "configure:1750: checking for inline" >&5
d2580 1
a2580 1
#line 1757 "configure"
d2587 1
a2587 1
if { (eval echo configure:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2622 1
a2622 1
echo "configure:1799: checking for 'sa_len' in 'struct sockaddr'" >&5
d2627 1
a2627 1
#line 1804 "configure"
d2640 1
a2640 1
if { (eval echo configure:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2660 1
a2660 1
echo "configure:1837: checking for 'sin_len' in 'struct sockaddr_in'" >&5
d2665 1
a2665 1
#line 1842 "configure"
d2679 1
a2679 1
if { (eval echo configure:1856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2699 1
a2699 1
echo "configure:1876: checking for 'socklen_t'" >&5
d2704 1
a2704 1
#line 1881 "configure"
d2717 1
a2717 1
if { (eval echo configure:1894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2742 1
a2742 1
echo "configure:1919: checking for working alloca.h" >&5
d2747 1
a2747 1
#line 1924 "configure"
d2754 1
a2754 1
if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2775 1
a2775 1
echo "configure:1952: checking for alloca" >&5
d2780 1
a2780 1
#line 1957 "configure"
d2808 1
a2808 1
if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2840 1
a2840 1
echo "configure:2017: checking whether alloca needs Cray hooks" >&5
d2845 1
a2845 1
#line 2022 "configure"
d2870 1
a2870 1
echo "configure:2047: checking for $ac_func" >&5
d2875 1
a2875 1
#line 2052 "configure"
d2898 1
a2898 1
if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2925 1
a2925 1
echo "configure:2102: checking stack direction for C alloca" >&5
d2933 1
a2933 1
#line 2110 "configure"
d2952 1
a2952 1
if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2976 1
a2976 1
echo "configure:2153: checking for $ac_func" >&5
d2981 1
a2981 1
#line 2158 "configure"
d3004 1
a3004 1
if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3117 48
a3222 2


d3406 4
a3410 1
s%@X_LIBS@%$X_LIBS%g
diff -urn Emulator_Src_3.0a7/BuildUnix/configure.in NXPOSE/BuildUnix/configure.in
d31 1
a31 6
AC_ARG_WITH(microwin, [  --with-microwin=DIR         use MICROWIN in DIR], [
		      echo "Using microwindows in $withval..."
        CPPFLAGS="${CFLAGS} -I$withval/include"
        LDFLAGS="${LDFLAGS} -L$withval/lib"
	X_LIBS=""
])
d34 1
a34 1
	CPPFLAGS="${CFLAGS} -I$withval"
d223 3
a225 3
dnl AC_CHECK_LIB(fltk, fl_height__Fv, [],
dnl	[AC_MSG_ERROR(*** FLTK *must* be installed before running configure. ***)],
dnl	-L$x_libraries -lXext -lX11 -lm $X_EXTRA_LIBS)
a292 2

AC_SUBST(X_LIBS)
Only in NXPOSE/BuildUnix/espws-2.0: .deps
Only in NXPOSE/BuildUnix/espws-2.0: Makefile
diff -urn Emulator_Src_3.0a7/BuildUnix/espws-2.0/Makefile.in NXPOSE/BuildUnix/espws-2.0/Makefile.in
d1 1
a1 1
# Makefile.in generated automatically by automake 1.4 from Makefile.am
d48 1
a48 1
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
d51 1
a78 1
X_LIBS = @X_LIBS@
d104 4
d294 1
a294 1
	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
Only in NXPOSE/BuildUnix/jpeg: .deps
Only in NXPOSE/BuildUnix/jpeg: Makefile
diff -urn Emulator_Src_3.0a7/BuildUnix/jpeg/Makefile.in NXPOSE/BuildUnix/jpeg/Makefile.in
d1 1
a1 1
# Makefile.in generated automatically by automake 1.4 from Makefile.am
d48 1
a48 1
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
d51 1
a78 1
X_LIBS = @X_LIBS@
d107 4
d289 1
a289 1
	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
diff -urn Emulator_Src_3.0a7/SrcUnix/Document.cpp NXPOSE/SrcUnix/Document.cpp
d34 1
a34 1
#include <FL/filename.H>		// filename_setext
diff -urn Emulator_Src_3.0a7/SrcUnix/Platform_Unix.cpp NXPOSE/SrcUnix/Platform_Unix.cpp
d35 1
a35 1
#include <FL/n_x.h>
a913 1
#ifdef NOTUSED
d924 1
a924 1
	  //XKeyboardControl new_state;
d933 3
a935 3
		//XChangeKeyboardControl (fl_display,
		//	KBBellPercent | KBBellPitch | KBBellDuration,
		//	&new_state);
d937 2
a938 2
		//XBell (fl_display, 100); // Give beep command
		//XFlush (fl_display);	// Flush beep command to the server
d943 7
a949 7
		//new_state.bell_percent = -1;
		//new_state.bell_pitch = -1;
		//new_state.bell_duration = -1;

		//XChangeKeyboardControl (fl_display,
		//	KBBellPercent | KBBellPitch | KBBellDuration,
		//	&new_state);
a950 2
#endif

diff -urn Emulator_Src_3.0a7/SrcUnix/espws-2.0/FileChooser2.cxx NXPOSE/SrcUnix/espws-2.0/FileChooser2.cxx
d44 1
a44 1
#include <FL/n_x.h>
d513 1
a513 1
      //XBell(fl_display, 100);

Previous by date: 13 Feb 2001 22:32:44 -0000 Re: Trouble building Microwindows for MIPS target, Greg Haerr
Next by date: 13 Feb 2001 22:32:44 -0000 Re: Trouble building Microwindows for MIPS target, Jun Sun
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.