GNU autoconf is used to handle the configuration, compilation, and installation of mgv so the standard
./configure make make installshould work.
The configure
script will disable debug information and enable
optimization by default but this can be changed with the following switches:
Enable or disable debugging, debugging is disabled by default.
The default debug switch it -g but you can change it by
setting the DEBUGFLAG environment variable before running
configure
.
Enable or disable optimization, optimization is enabled by default.
The default optimization switch is -O2 but you can change it
by setting the OPTFLAG environment variable before running
configure
.
configure
.
If the configure
script is having trouble finding X on your
system then you may have to specify the header and library paths explicitly
with one or more of the following switches:
Specify the location of the X11 headers and libraries.
Specify the location of the Motif headers and libraries.
Specify the location of the XPM headers and libraries. If you don't want to use XPM even though you have it, you can disable XPM with --without-xpm.
I assume ANSI and POSIX support, if your system doesn't have an ANSI C compiler and POSIX libraries then you're out of luck. I'm not willing to give up this assumption, trying to support non-POSIX systems is more trouble than I care to think about.
If you have installed any of the 1.x versions of mgv you should delete
the old application defaults file (probably
/usr/X11/lib/app-defaults/MGv
or something similar) before running
mgv; if you don't, mgv will warn you about it and the user interface
will be really screwed up. If you have just compiled a new version of
mgv and you haven't installed it yet, you can set the XENVIRONMENT
environment variable to temporarily fix the version problem:
XENVIRONMENT=MGv ./mgvHowever, you really should delete the old application defaults file anyway: none of the mgv versions need it, the whole application defaults file has always been compiled in as default resources.
I have had success reports on the following systems: