--- parser3/buildall 2019/11/28 13:02:14 1.27 +++ parser3/buildall 2021/01/28 16:24:43 1.36 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: buildall,v 1.27 2019/11/28 13:02:14 moko Exp $ +# $Id: buildall,v 1.36 2021/01/28 16:24:43 moko Exp $ install_directory=$HOME/parser3install sendmail_command="/usr/sbin/sendmail -i -t -f postmaster" @@ -36,6 +36,10 @@ for PARAM in "$@"; do options="$options --with-mailreceive=$project_dir/gnome" build_gmime="yes" ;; + "--with-system-mailreceive") + printf ", with mail receiving" + options="$options --with-mailreceive" + ;; "--strip") printf ", without debug information" build_stripped="yes" @@ -46,7 +50,7 @@ for PARAM in "$@"; do ;; "--help") echo - echo "Usage: buildall [--without-xml] [--with-apache] [--with-mailreceive] [--strip] [--direct-download] [--disable-safe-mode] [other configure options ...]" + echo "Usage: buildall [--without-xml] [--with-apache] [--with-mailreceive] [--with-system-mailreceive] [--strip] [--direct-download] [--disable-safe-mode] [other configure options ...]" exit 1 ;; *) @@ -119,14 +123,19 @@ echo mkdir src >/dev/null 2>&1 if test ! -f "$project_dir/gc/lib/libgc.a"; then + lib="libatomic_ops-7.6.2" + prepare_gz ${lib}.tar.gz http://www.hboehm.info/gc/gc_source/ + lib="gc-8.0.4" prepare_gz ${lib}.tar.gz http://www.hboehm.info/gc/gc_source/ + mv ../libatomic_ops-7.6.2 libatomic_ops + echo "Configuring $lib..." CPPFLAGS="-DUSE_MMAP -DDONT_ADD_BYTE_AT_END" \ ./configure --prefix=$project_dir/gc \ - --disable-threads \ --disable-shared \ + --disable-parallel-mark \ --silent $cflags echo "Building $lib..." make install @@ -159,7 +168,6 @@ if test "$build_xml" = "yes" -a ! -f "$p ./configure --prefix=$project_dir/gnome \ --without-catalog \ --without-iconv \ - --without-threads \ --without-debug \ --without-iso8859x \ --without-legacy \ @@ -253,7 +261,13 @@ fi cd $parser3_dir if test ! -f "Makefile"; then echo "Configuring parser3..." - ./configure --prefix=$install_directory "--with-sendmail=$sendmail_command" $options --silent $cflags $gmime_cflags + ./configure --prefix=$install_directory \ + --sysconfdir=$install_directory/bin \ + --datadir=$install_directory/bin \ + --datarootdir="\$confdir" \ + --libdir="\$confdir/lib" \ + --with-sendmail="$sendmail_command" \ + $options $cflags $gmime_cflags fi echo "Building parser3..."