1 # Configure template for gzip.
3 # Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
4 # Copyright (C) 1992-1993 Jean-loup Gailly
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 AM_INIT_AUTOMAKE(gzip, 1.3.2)
23 AM_CONFIG_HEADER(config.h)
34 dnl Try to assemble match.S with and without leading underline.
35 dnl cc -E produces incorrect asm files on SVR4, we must use /lib/cpp.
36 dnl Also, "gcc -E match.s" ignores -E, so we must use match.S.
37 echo checking for underline in external names
38 test -z "$ASCPP" -a -f /lib/cpp && ASCPP=/lib/cpp
39 test -z "$ASCPP" && ASCPP="$CC -E"
40 cat > conftest.c <<EOF
43 eval "$CC -c conftest.c > /dev/null 2>&1"
44 if nm conftest.$OBJEXT | grep _foo > /dev/null 2>&1 ; then
47 ASCPP="${ASCPP} -DNO_UNDERLINE"
49 rm -f _match.$OBJEXT conftest.c conftest.$OBJEXT
50 if echo "$DEFS" | grep NO_ASM >/dev/null; then
53 echo checking for assembler
54 if eval "$ASCPP $srcdir/match.S > _match.s 2>/dev/null"; then
55 if test ! -s _match.s || grep error < _match.s > /dev/null; then
57 elif eval "$CC -c _match.s >/dev/null 2>&1" && test -f _match.$OBJEXT; then
59 [Define if an assembler version of longest_match is available.])
60 LIBOBJS="$LIBOBJS match.$OBJEXT"
61 # Work around automake 1.4 bug
62 : LIBOBJS="$LIBOBJS match.o"
65 rm -f _match.s _match.$OBJEXT
72 AC_CHECK_HEADERS(fcntl.h limits.h memory.h \
73 stdlib.h string.h sys/utime.h time.h unistd.h utime.h)
74 AC_CHECK_FUNCS(lstat utime)
75 AC_REPLACE_FUNCS(rpmatch)
86 AC_PREFIX_PROGRAM(gzip)