pwd=`pwd` what=`echo "$pwd"|sed -e 's@^.*/@@'` case "$what" in gnupg-*) where=. ;; *) pwd=`(cd .. && pwd)` what=`echo "$pwd"|sed -e 's@^.*/@@'` case "$what" in gnupg-*) where=.. ;; *) echo "Weird starting directory $pwd" >&2 exit 1 ;; esac ;; esac prefix=/.software/share/$what eprefix=/.software/arch/$what lprefix=/.software/local/$what export CFLAGS="-O2" case "`uname -m`" in i?86) CFLAGS="$CFLAGS -m486" OPTS="$OPTS --enable-m-guard" gcc -v 2>&1|grep egcs>/dev/null || CFLAGS="$CFLAGS -no-strength-reduce" ;; arm*) OPTS="--disable-asm" CFLAGS="-D__USE_GNU -Wall";; esac $where/configure --prefix=$prefix \ --exec-prefix=$eprefix \ --datadir=$eprefix/servers \ --sbindir=$eprefix/servers \ --sysconfdir=$prefix/config \ --disable-nls \ --enable-m-guard \ $OPTS # --enable-static-rnd=[egd|unix|linux|none] # --disable-dev-random disable the use of dev random # --disable-dynload disable use of extensions # --disable-asm do not use assembler modules # --enable-m-debug enable debugging of memory allocation # --enable-m-guard enable memory guard facility # --with-included-zlib use the zlib code included here # --enable-libgcrypt compile the libgcrypt [default=no] # --with-capabilities use linux capabilities [default=no] # --enable-maintainer-mode enable make rules and dependencies not useful # (and sometimes confusing) to the casual installer # --enable-shared[=PKGS] build shared libraries [default=no] # --enable-static[=PKGS] build static libraries [default=yes] # --enable-fast-install[=PKGS] optimize for fast installation [default=yes] # --with-gnu-ld assume the C compiler uses GNU ld [default=no] # --disable-libtool-lock avoid locking (might break parallel builds) # --disable-nls do not use Native Language Support # --with-included-gettext use the GNU gettext library included here # --with-catgets use catgets functions if available