#!/bin/sh
# @functions install PCRE (Perl Compatible Regular Expressions) Liberary (for Apache Installation)
function InstallPCRE()
{
    ShowResult "[green]正在安装PCRE库... [/green]" 1
    
    # install
    cd ${_PATH_COMPILATION_}
    eval rm -rf ./pcre-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval unzip ${_PATH_SOFTWARE_}/pcre-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd pcre-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval ./configure --prefix=/usr/local/pcre ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make ${_SYS_MAKE_EXT_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make install ${_SYS_SHOW_INSTALL_DETAILS_}
    
    ShowStatus $?
}