📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script for gzipdnldnl Same as AC_RETSIGTYPE, but use a void default.dnldefine(AC_RETSIGTYP,[AC_COMPILE_CHECK([return type of signal handlers],[#include <sys/types.h>#include <signal.h>#ifdef signal#undef signal#endifextern void (*signal ()) ();],[int i;],[],[AC_DEFINE(RETSIGTYPE, int)],)])dnldnldnl End of local macrosdnlAC_INIT(gzip.c)AC_PROG_CCAC_PROG_CPPdnldnl Try to assemble match.S with and without leading underline.dnl cc -E produces incorrect asm files on SVR4, we must use /lib/cpp.dnl Also, "gcc -E match.s" ignores -E, so we must use match.S.echo checking for underline in external namestest -z "$ASCPP" -a -f /lib/cpp && ASCPP=/lib/cpptest -z "$ASCPP" && ASCPP="$CC -E"cat > conftest.c <<EOFint foo() {return 0;}EOFeval "$CC -c conftest.c > /dev/null 2>&1"if nm conftest.o | grep _foo > /dev/null 2>&1 ; then :else ASCPP="${ASCPP} -DNO_UNDERLINE"firm -f _match.o conftest.c conftest.oif echo "$DEFS" | grep NO_ASM >/dev/null; then :else echo checking for assembler OBJA="" if eval "$ASCPP $srcdir/match.S > _match.s 2>/dev/null"; then if test ! -s _match.s || grep error < _match.s > /dev/null; then : elif eval "$CC -c _match.s >/dev/null 2>&1" && test -f _match.o; then DEFS="${DEFS} -DASMV" OBJA=match.o fi fi rm -f _match.s _match.ofidnlAC_PROG_INSTALLAC_AIXAC_MINIXAC_ISC_POSIXAC_DYNIX_SEQAC_STDC_HEADERSdnl if STDC_HEADERS can't be defined, look for special files:AC_HEADER_CHECK(string.h, ,AC_DEFINE(NO_STRING_H))AC_HEADER_CHECK(stdlib.h, ,AC_DEFINE(NO_STDLIB_H))AC_HEADER_CHECK(memory.h, ,AC_DEFINE(NO_MEMORY_H))AC_HEADER_CHECK(fcntl.h, ,AC_DEFINE(NO_FCNTL_H))AC_HEADER_CHECK(time.h, ,AC_DEFINE(NO_TIME_H))AC_HAVE_HEADERS(unistd.h)utime=0AC_HEADER_CHECK(utime.h, utime=1 ,AC_DEFINE(NO_UTIME_H))if test $utime -eq 0; then AC_HAVE_HEADERS(sys/utime.h)fiAC_DIR_HEADERAC_XENIX_DIRAC_RETSIGTYPAC_SIZE_TAC_HEADER_EGREP(off_t, sys/types.h, ,AC_DEFINE(NO_OFF_T))AC_HAVE_POUNDBANG([SEDCMD="1d"], [SEDCMD=""])AC_PREFIX(gzip)if test -z "$G" -a -n "$prefix" -a -f $prefix/bin/gznew; then G=gfiif test -z "$ZCAT"; then if test -n "$prefix" -a -f $prefix/bin/gzcat; then ZCAT=gzcat else ZCAT=${G}zcat fifiAC_SUBST(ZCAT)dnlAC_SUBST(G)dnlAC_SUBST(CFLAGS)dnlAC_SUBST(ASCPP)dnlAC_SUBST(OBJA)dnlAC_SUBST(SEDCMD)dnlAC_OUTPUT(Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -