-chmod a+x configure config.sub config.guess setup/general/* setup/shared/*
-./configure --with-shared --with-motif --without-gtk --with-debug_flag --with-debug_info --without-threads
-make makefiles
+rm -f *.cache
+chmod a+x configure config.sub config.guess samples/configure demos/configure contrib/configure
+./configure --disable-shared --with-motif --without-gtk --with-debug_flag --with-debug_info --enable-debug --without-sockets --without-odbc --without-threads --enable-newgrid