#!/bin/sh
# @function install log4cplus
function InstalLog4CPlus()
{
    ShowResult "[green]正在安装Log4CPlus... [/green]" 1
    
    # install
    eval cd ${_PATH_COMPILATION_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval rm -rf ./log4cplus-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval unzip ${_PATH_SOFTWARE_}/log4cplus-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval cd log4cplus-* ${_SYS_SHOW_INSTALL_DETAILS_}
    eval ./configure ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make ${_SYS_MAKE_EXT_} ${_SYS_SHOW_INSTALL_DETAILS_}
    eval make install ${_SYS_SHOW_INSTALL_DETAILS_}
    
    ShowStatus $? 1
    
    # create conf
    echo '/usr/local/lib/' > /etc/ld.so.conf.d/log4cplus.conf
    eval ldconfig ${_SYS_SHOW_INSTALL_DETAILS_}
    
    ShowStatus $?
}