For X:
prefix = /usr/X11R6
sysconfdir = /etc
CFLAGS="${MY_CFLAGS}" LDFLAGS="${MY_LDFLAGS}" \
${srcdir}/configure \
--srcdir=${srcdir} --prefix=${prefix} \
--exec-prefix=${prefix} --sysconfdir=${sysconfdir} \
--libdir=${prefix}/lib --includedir=${prefix}/include \
--libexecdir='${sbindir}' --localstatedir=/var \
--datadir='/usr/share'
Hmm, does 'mandir' derive from 'datadir'? If so, then I think
this is the same layout as I describe below.
I can see the scripts being duplicated, since native scripts should call
the native gs.exe, and the X11 gs.exe should have its own wrapper scripts
which call the X11 version of gs.exe. (In other words, /usr/bin/ps2pdf
should call /usr/bin/gs, while /usr/X11R6/bin/ps2pdf should call
/usr/X11R6/bin/gs.)
On the other hand, the Ghostscript manual pages themselves make no
distinction between X11 and native builds, so my preference would be to
install manual pages only in /usr/share/man. The only reason I think
manual pages should be installed into /usr/X11R6/man is if they are X11
specific manual pages, i.e. document only X11-specific behavior or
functionality.