summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2009-01-08 19:22:35 -0800
committerRoland McGrath <roland@redhat.com>2009-01-08 19:22:35 -0800
commit7a647878b28ec3dee77c76cccc76330c1a05e58d (patch)
treef4fba60b20b6c405289c83da5b1f94fedac0548b /configure.ac
parente06762c31cdc3c5dcabe586e613984bbe9ae6284 (diff)
downloadelfutils-7a647878b28ec3dee77c76cccc76330c1a05e58d.tar.gz
Move eu_ZIPLIB macro to m4/zip.am, new file.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 2 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index dac33924..6a3b6a7f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -182,21 +182,8 @@ AC_SUBST([LIBEBL_SUBDIR])
AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR")
AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.])
-m4_defun([eu_ZIPLIB], [with_[$1]lib=default
-AC_ARG_WITH([[$1]lib],
-AC_HELP_STRING([--with-[$1]lib], [support g[$1]ip compression in libdwfl]))
-if test $with_[$1]lib != no; then
- AC_SEARCH_LIBS([$4], [$3], [with_[$1]lib=yes],
- [test $with_[$1]lib = default ||
- AC_MSG_ERROR([missing -l[$3] for --with-[$1]lib])])
-fi
-AM_CONDITIONAL([$2]LIB, test $with_[$1]lib = yes)
-if test $with_[$1]lib = yes; then
- AC_DEFINE(USE_[$2]LIB)
-fi
-AH_TEMPLATE(USE_[$2]LIB, [Support $5 decompression via -l$3.])
-])
-
+dnl Test for zlib and bzlib, gives ZLIB/BZLIB .am
+dnl conditional and config.h USE_ZLIB/USE_BZLIB #define.
save_LIBS="$LIBS"
LIBS=
eu_ZIPLIB(z,Z,z,gzdopen,gzip)