Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- (
- # Break out if anything looks broken
- set -ex ;
- # Add the local Homebrew version of texinfo into the path.
- export PATH="/opt/brew/opt/texinfo/bin:$PATH" ;
- # Add a few flags so that autoconf can 'see' stuff in /opt/brew
- export CFLAGS="-I/opt/brew/include"
- export LDFLAGS="-L/opt/brew/lib"
- # Regenerate the `configure' script of Emacs itself.
- ./autogen.sh ;
- # Configure Emacs for a text-only build, disabling most of the options
- # related to UI and toolkit support, but keep a few important features
- # enabled for emacs -nw mode (like gnutls, xml2, and zlib support).
- ./configure --prefix=/opt/emacs --infodir=/opt/emacs/info \
- \
- --without-x \
- --with-sound=no \
- --without-x --with-x-toolkit=no --without-ns \
- --without-xft --without-libotf --without-m17n-flt \
- --without-toolkit-scroll-bars \
- --without-xaw3d --without-xim --without-gpm \
- \
- --without-xpm --without-jpeg --without-tiff --without-gif \
- --without-png --without-rsvg --without-cairo \
- --without-imagemagick \
- --with-file-notification=no \
- \
- --without-dbus --without-gconf --without-gsettings \
- --without-selinux \
- \
- --with-zlib \
- --with-gnutls \
- --with-xml2 \
- ;
- # Build a clean copy of GNU Emacs.
- make clean ;
- make bootstrap ;
- ) 2>&1 | tslog | tee $HOME/tmp/emacs-build.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement