autogen.sh

来自「libeXosip2-3.0.3.tar.gz」· Shell 代码 · 共 103 行

SH
103
字号
#!/bin/sh## $Id: autogen.sh,v 1.4 2005/07/24 00:15:35 aymeric Exp $#DIE=0srcdir=`dirname $0`test -z "$srcdir" && srcdir=.test "$srcdir" = "." && srcdir=`pwd`PROJECT=src# failure subroutine.# syntax: do-something || failfail() {    status=$?    echo "Last command failed with status $status in directory $(pwd)."    echo "Aborting."    exit $status}(autoconf${AUTOCONF_SUFFIX} --version) < /dev/null > /dev/null 2>&1 || {    echo    echo "You must have autoconf installed to compile $PROJECT from CVS."    echo "Download the appropriate package for your distribution,"    echo "or get the source tarball at ftp://ftp.gnu.org/gnu/autoconf/"    DIE=1}(libtool --version) < /dev/null > /dev/null 2>&1 || {    echo    echo "You must have libtool installed to compile $PROJECT from CVS."    echo "Download the appropriate package for your distribution,"    echo "or get the source tarball at ftp://ftp.gnu.org/gnu/libtool/"    DIE=1}(automake${AUTOMAKE_SUFFIX} --version) < /dev/null > /dev/null 2>&1 || {    echo    echo "You must have automake installed to compile $PROJECT from CVS."    echo "Download the appropriate package for your distribution,"    echo "or get the source tarball at ftp://ftp.gnu.org/gnu/automake/"    DIE=1}if test "$DIE" -eq 1; then    exit 1fitest -f include/eXosip2/eXosip.h || {        echo "You must run this script in the top-level $PROJECT directory"        exit 1}case "$CC" in*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;esacACLOCAL_FLAGS="-I ${srcdir}/scripts ${ACLOCAL_FLAGS}"(echo "Cleaning stuff generated by libtoolize"rm -f scripts/ltmain.sh scripts/config.guess scripts/config.subecho "Running libtoolize --copy"libtoolize --copy || failecho "Cleaning stuff generated by aclocal"rm -f aclocal.m4echo "Running aclocal${AUTOMAKE_SUFFIX} $ACLOCAL_FLAGS"aclocal${AUTOMAKE_SUFFIX} $ACLOCAL_FLAGS || failecho "Cleaning stuff generated by autoheader"rm -f config.h.inecho "Running autoheader${AUTOCONF_SUFFIX}"autoheader${AUTOCONF_SUFFIX} || failecho "Cleaning stuff generated by automake"find . -name '*.am' -print | grep -v SCCS |  	while read file	do # remove all .in files with a corresponding .am file	    sed 's/\.am$/.in/g' | xargs rm -f	donerm -f depcomp install-sh missing mkinstalldirsrm -f stamp-h*echo "Running automake${AUTOMAKE_SUFFIX} --add-missing --gnu $am_opt"automake${AUTOMAKE_SUFFIX} --add-missing --gnu $am_opt || failecho "Cleaning stuff generated by autoconf"rm -f configurerm -rf autom4te-*.cache/echo "Running autoconf${AUTOCONF_SUFFIX}"    autoconf${AUTOCONF_SUFFIX} || failecho "Finished") || failecho echo "$PROJECT is now ready for configuration."

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?