>>>> "sb" == SL Baur <steve(a)xemacs.org>
writes:
sb> Jeff Miller <jmiller(a)smart.net> writes:
> I'm suggesting a "--bare-bones" style option to
turn off as much as
> possible for those that want a lean & mean xemacs.
sb> What flags do you have in mind so far?
sb> I need the following:
sb> ./configure --with-x11=no --error-checking=none --debug=no \
sb> --extra-verbose=no --with-shlib=no --with-database=no \
sb> --with-sound=none --with-gpm=no
almost easier just to post the patch. :-) What I have in mind turns off
the majority of the autoenabled features, at least on my setup.
Basically, i just used --bare-bones=tty or --bare-bones=x11 to test. I
didn't monkey with the error cheching or debugging stuff, since i figured
they were off in the net releases.
I basically just kept checking the Installation file and doing a ldd
xemacs to make sure features/libs were not getting compiled in.
--- configure.in.orig Mon May 4 21:03:46 1998
+++ configure.in Thu May 7 00:27:05 1998
@@ -524,6 +524,7 @@
site_includes | \
site_libraries | \
site_prefixes | \
+ bare_bones | \
site_runtime_libraries )
dnl If the value was omitted, get it from the next argument.
if test "$valomitted" = "yes" ; then
@@ -788,6 +789,38 @@
test "$with_dlmalloc" = "yes" && \
USAGE_ERROR(--with-dlmalloc=yes requires --use-minimal-tagbits=yes)
with_dlmalloc=no
+fi
+
+dnl --bare-bones is an alias to build a minimal xemacs
+
+if test -n "$bare_bones"; then
+ test -z "$with_cde" && with_cde="no"
+ test -z "$with_database_berkdb" &&
with_database_berkdb="no"
+ test -z "$with_database_dbm " && with_database_db="no"
+ test -z "$with_database_gnudbm" &&
with_database_gnudbm="no"
+ test -z "$with_gif" && with_gif="no"
+ test -z "$with_gpm" && with_gpm="no"
+ test -z "$with_jpeg" && with_jpeg="no"
+ test -z "$with_dialogs" && with_dialogs="no"
+ test -z "$with_menubars" && with_menubars="no"
+ test -z "$with_offix" && with_offix="no"
+ test -z "$with_png" && with_png="no"
+ test -z "$with_scrollbars" && with_scrollbars="no"
+ test -z "$with_shlib" && with_shlib="no"
+ test -z "$with_sound" && with_sound="no"
+ test -z "$with_tiff" && with_tiff="no"
+ test -z "$with_toolbars" && with_toolbars="no"
+ test -z "$with_xface" && with_xface="no"
+ test -z "$with_xpm" && with_xpm="no"
+ if test "$bare_bones" = "tty"; then
+ test -z "$with_tty" && with_tty="yes"
+ test -z "$with_x11" && with_x11="no"
+ test -z "$with_ncurses" && with_ncurses="no"
+ else
+ test -z "$with_x11" && with_x11="yes"
+ test -z "$with_tty" && with_tty="no"
+ test -z "$with_ncurses" && with_ncurses="no"
+ fi
fi
dnl# Ignore useless run-in-place flag
> I've already got a bit of something worked up, but of course,
it currently
> is really one suited to my Linux box. It probably wouldn't configure
> correctly for the MS port, for example.
> What do others think? Is it worthwhile? There always seem to be
chatter
> on the xemacs list about wanting a smaller xemacs.
> I currently get an xemacs that is ~2.75M in size.
sb> That's about what I see.
> If there is interest, I can post what I have to
xemacs-patches.....
sb> I've worked it out on my own, so I definitely have interest in it.
It would be kinda cool to see how well this works on other oses/windowing
systems.