diff options
author | Roland McGrath <roland@redhat.com> | 2009-01-08 19:22:35 -0800 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-01-08 19:22:35 -0800 |
commit | 7a647878b28ec3dee77c76cccc76330c1a05e58d (patch) | |
tree | f4fba60b20b6c405289c83da5b1f94fedac0548b /m4/zip.m4 | |
parent | e06762c31cdc3c5dcabe586e613984bbe9ae6284 (diff) |
Move eu_ZIPLIB macro to m4/zip.am, new file.
Diffstat (limited to 'm4/zip.m4')
-rw-r--r-- | m4/zip.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/zip.m4 b/m4/zip.m4 new file mode 100644 index 00000000..398d1be5 --- /dev/null +++ b/m4/zip.m4 @@ -0,0 +1,17 @@ +dnl Test for either zlib or bzlib. +dnl Defines --with-$1lib argument, $2LIB automake conditional, +dnl and sets AC_DEFINE(USE_$2LIB) and LIBS. + +AC_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.])]) |