Annotation of parser3/buildall-with-xml, revision 1.12

1.2       paf         1: #!/bin/sh
                      2: 
1.12    ! misha       3: # $Id: buildall-with-xml,v 1.11 2007/04/18 10:08:22 misha Exp $
1.2       paf         4: 
                      5: install_directory=$HOME/parser3install
                      6: sendmail_command="/usr/sbin/sendmail -i -t -f postmaster"
                      7: 
                      8: echo "buildall-with-xml"
                      9: echo "Script author: Alexander Petrosian <paf@design.ru> (http://paf.design.ru)"
                     10: echo
                     11: echo "Building..."
                     12: 
                     13: parser3_directory=`pwd`
                     14: cd ..
                     15: project_directory=`pwd`
                     16: mkdir src >/dev/null 2>&1
                     17: 
                     18: if test ! -f "$project_directory/gc/lib/libgc.a"; then
                     19:   cd $project_directory/src
1.7       misha      20:   libgc="gc6.8"
                     21:   if test ! -f "$libgc.tar.gz"; then
                     22:     echo "Downloading libgc [1 lib of 3]..."
                     23:     wget -c http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$libgc.tar.gz
                     24:   fi
                     25:   echo "Unpacking gc..."
1.9       misha      26:   rm -rf $libgc
1.7       misha      27:   gunzip -c $libgc.tar.gz | tar vxf - >/dev/null
                     28:   cd $libgc
1.2       paf        29:   echo "Configuring libgc..."
1.3       paf        30:   CPPFLAGS="-DUSE_LIBC_PRIVATES -DUSE_MMAP -DUSE_MUNMAP" \
1.2       paf        31:   ./configure --prefix=$project_directory/gc --disable-threads --disable-shared --silent
                     32:   echo "Building libgc..."
                     33:   make
                     34:   make install
1.12    ! misha      35: #  rm -rf $libgc
1.2       paf        36: fi
                     37: 
                     38: 
                     39: if test ! -f "$project_directory/gnome/lib/libxml2.a"; then
                     40:   cd $project_directory/src
1.11      misha      41:   libxml2="libxml2-2.6.28"
1.7       misha      42:   if test ! -f "$libxml2.tar.gz"; then
                     43:     echo "Downloading libxml [2 lib of 3]..."
                     44:     wget -c --passive-ftp ftp://xmlsoft.org/libxml2/$libxml2.tar.gz
                     45:   fi
                     46:   echo "Unpacking libxml2... (be patient)"
1.8       misha      47:   rm -rf $libxml2
1.7       misha      48:   gunzip -c $libxml2.tar.gz | tar vxf - >/dev/null
                     49:   cd $libxml2
1.8       misha      50:   #sax1, output, tree, xinclude[in libxslt], html[in libxslt, mode=html?], xptr[xinclude], http, pattern -- needed!
1.2       paf        51:   echo "Configuring libxml..."
                     52:   ./configure --prefix=$project_directory/gnome \
                     53:     --without-iconv --without-threads --without-debug \
                     54:     --without-iso8859x --without-legacy \
1.8       misha      55:     --without-push --without-python \
1.2       paf        56:     --without-reader --without-writer --without-readline --without-regexps \
                     57:     --without-schemas --without-schematron \
1.9       misha      58:     --without-modules --without-ftp --without-docbook \
1.2       paf        59:     --without-zlib \
                     60:     --disable-shared --silent
                     61:   echo "int main(){return 0;}">testapi.c
                     62:   echo "int main(){return 0;}">runtest.c
                     63:   echo "Building libxml..."
                     64:   make
                     65:   make install
1.12    ! misha      66: #  rm -rf $libxml2
1.2       paf        67: fi
                     68: 
                     69: if test ! -f "$project_directory/gnome/lib/libxslt.a"; then
                     70:   cd $project_directory/src
1.7       misha      71:   libxslt="libxslt-1.1.20"
                     72:   if test ! -f "$libxslt.tar.gz"; then
                     73:     echo "Downloading libxslt [3 lib of 3]..."
                     74:     wget -c --passive-ftp ftp://xmlsoft.org/libxslt/$libxslt.tar.gz
                     75:   fi
                     76:   echo "Unpacking libxslt... (be patient)"
1.8       misha      77:   rm -rf $libxslt
1.7       misha      78:   gunzip -c $libxslt.tar.gz | tar vxf - >/dev/null
                     79:   cd $libxslt
1.2       paf        80:   echo "Configuring libxslt..."
                     81:   ./configure --prefix=$project_directory/gnome \
                     82:      --with-libxml-prefix=$project_directory/gnome \
                     83:      --without-debug --without-debugger --without-crypto --without-plugins --disable-shared  --silent
                     84:   echo "Building libxslt..."
                     85:   make
                     86:   make install
1.12    ! misha      87: #  rm -rf $libxslt
1.2       paf        88: fi
                     89: 
                     90: cd $parser3_directory
                     91: 
                     92: if test ! -f "Makefile"; then
                     93:   echo "Configuring parser3..."
                     94:   ./configure --prefix=$install_directory \
                     95:      "--with-sendmail=$sendmail_command" \
                     96:      --with-static-gc=$project_directory/gc/lib \
                     97:      --with-static-xml=$project_directory/gnome \
1.10      misha      98: #     --disable-safe-mode \
1.12    ! misha      99: #     --with-dynamic-stdcpp \
1.2       paf       100:      --silent
                    101: fi
                    102: echo "Building parser3..."
                    103: make install
                    104: echo "DONE"
                    105: 
                    106: echo
                    107: echo
                    108: echo "********************************************************************************************************"
                    109: echo "Now you can copy $install_directory with subdirectories"
                    110: echo "  -Parser3 with XML support-"
                    111: echo "to your cgi-bin directory"
                    112: echo "Read more about installing Parser here:"
                    113: echo "  http://www.parser.ru/en/docs/lang/install4apachecgi.htm in English"
                    114: echo "  http://www.parser.ru/docs/lang/install4apachecgi.htm in Russian"
                    115: echo "********************************************************************************************************"

E-mail: