⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 autogen.sh

📁 gpsd, a popular GPS daemon.
💻 SH
字号:
#!/bin/sh# $Id: autogen.sh 3486 2006-09-21 00:58:22Z ckuethe $# AutomakeversionAM_1=1AM_2=7AM_3=6# AutoconfversionAC_1=2AC_2=57# LibtoolversionLT_1=1LT_2=5# Check automake versionAM_VERSION=`automake --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\)\.*\([0-9]*\).*$#\1 \2 \3#p'`AM_V1=`echo $AM_VERSION | awk '{print $1}'`AM_V2=`echo $AM_VERSION | awk '{print $2}'`AM_V3=`echo $AM_VERSION | awk '{print $3}'`if [ "$AM_1" -gt "$AM_V1" ]; then	AM_ERROR=1 else	if [ "$AM_1" -eq "$AM_V1" ]; then		if [ "$AM_2" -gt "$AM_V2" ]; then			AM_ERROR=1 		else			if [ "$AM_2" -eq "$AM_V2" ]; then				if [ -n "$AM_V3" -o "$AM_3" -gt "$AM_V3" ]; then					AM_ERROR=1 				fi			fi		fi	fifiif [ "$AM_ERROR" = "1" ]; then	echo -e  '\E[31;m'	echo -n "Your automake version `automake --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\.[0-9]*\).*#\1#p'`"	echo " is older than the suggested one, $AM_1.$AM_2.$AM_3"	echo "Go on at your own risk. :-)"	echo	tput sgr0fi# Check autoconf versionAC_VERSION=`autoconf --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\).*$#\1 \2#p'`AC_V1=`echo $AC_VERSION | awk '{print $1}'`AC_V2=`echo $AC_VERSION | awk '{print $2}'`if [ "$AC_1" -gt "$AC_V1" ]; then	AC_ERROR=1 else	if [ "$AC_1" -eq "$AC_V1" ]; then		if [ "$AC_2" -gt "$AC_V2" ]; then			AC_ERROR=1 		fi	fifiif [ "$AC_ERROR" = "1" ]; then	echo -e  '\E[31;m'	echo -n "Your autoconf version `autoconf --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\).*#\1#p'`"	echo " is older than the suggested one, $AC_1.$AC_2"	echo "Go on at your own risk. :-)"	echo	tput sgr0fi# Check libtool versionLT_VERSION=`libtool --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\).*$#\1 \2#p'`LT_V1=`echo $LT_VERSION | awk '{print $1}'`LT_V2=`echo $LT_VERSION | awk '{print $2}'`if [ "$LT_1" -gt "$LT_V1" ]; then	LT_ERROR=1 else	if [ "$LT_1" -eq "$LT_V1" ]; then		if [ "$LT_2" -gt "$LT_V2" ]; then			LT_ERROR=1 		fi	fifiif [ "$LT_ERROR" = "1" ]; then	echo -e  '\E[31;m'	echo -n "Your libtool version `libtool --version | sed -n -e 's#[^0-9]* \([0-9]*\.[0-9]*\).*#\1#p'`"	echo " is older than the suggested one, $LT_1.$LT_2"	echo "Go on at your own risk. :-)"	echo	tput sgr0fiecho Configuring build environment for gpsdaclocal \  && libtoolize --force --copy \  && autoheader --force \  && automake --add-missing --foreign --copy  --include-deps \  && autoconf --force \  && echo Now running configure to configure gpsd \  && echo "./configure $@" \  && ./configure $@

⌨️ 快捷键说明

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