summaryrefslogtreecommitdiffstats
path: root/m4
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 /m4
parentDon't depend on $(zip_LIBS), just link it in. (diff)
downloadelfutils-7a647878b28ec3dee77c76cccc76330c1a05e58d.tar.gz
elfutils-7a647878b28ec3dee77c76cccc76330c1a05e58d.tar.bz2
elfutils-7a647878b28ec3dee77c76cccc76330c1a05e58d.tar.xz
Move eu_ZIPLIB macro to m4/zip.am, new file.
Diffstat (limited to 'm4')
-rw-r--r--m4/ChangeLog5
-rw-r--r--m4/Makefile.am4
-rw-r--r--m4/zip.m417
3 files changed, 24 insertions, 2 deletions
diff --git a/m4/ChangeLog b/m4/ChangeLog
index e285a0e4..eea78ff0 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
12009-01-08 Roland McGrath <roland@redhat.com>
2
3 * zip.am: New file.
4 * Makefile.am (EXTRA_DIST): Add it.
5
12007-06-05 Ulrich Drepper <drepper@redhat.com> 62007-06-05 Ulrich Drepper <drepper@redhat.com>
2 7
3 * gettext.m4: Update from gettext 0.16.1. 8 * gettext.m4: Update from gettext 0.16.1.
diff --git a/m4/Makefile.am b/m4/Makefile.am
index dd955e68..156010c7 100644
--- a/m4/Makefile.am
+++ b/m4/Makefile.am
@@ -1,6 +1,6 @@
1## Process this file with automake to produce Makefile.in -*-Makefile-*- 1## Process this file with automake to produce Makefile.in -*-Makefile-*-
2## 2##
3## Copyright (C) 2000, 2001, 2002, 2004, 2005 Red Hat, Inc. 3## Copyright (C) 2000-2009 Red Hat, Inc.
4## This file is part of Red Hat elfutils. 4## This file is part of Red Hat elfutils.
5## 5##
6## Red Hat elfutils is free software; you can redistribute it and/or modify 6## Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -26,4 +26,4 @@
26## 26##
27 27
28##m4-files-begin 28##m4-files-begin
29EXTRA_DIST = codeset.m4 gettext.m4 iconv.m4 lcmessage.m4 progtest.m4 29EXTRA_DIST = codeset.m4 gettext.m4 iconv.m4 lcmessage.m4 progtest.m4 zip.m4
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 @@
1dnl Test for either zlib or bzlib.
2dnl Defines --with-$1lib argument, $2LIB automake conditional,
3dnl and sets AC_DEFINE(USE_$2LIB) and LIBS.
4
5AC_DEFUN([eu_ZIPLIB], [with_[$1]lib=default
6AC_ARG_WITH([[$1]lib],
7AC_HELP_STRING([--with-[$1]lib], [support g[$1]ip compression in libdwfl]))
8if test $with_[$1]lib != no; then
9 AC_SEARCH_LIBS([$4], [$3], [with_[$1]lib=yes],
10 [test $with_[$1]lib = default ||
11 AC_MSG_ERROR([missing -l[$3] for --with-[$1]lib])])
12fi
13AM_CONDITIONAL([$2]LIB, test $with_[$1]lib = yes)
14if test $with_[$1]lib = yes; then
15 AC_DEFINE(USE_[$2]LIB)
16fi
17AH_TEMPLATE(USE_[$2]LIB, [Support $5 decompression via -l$3.])])