File: zip.m4

package info (click to toggle)
elfutils 0.194-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,680 kB
  • sloc: ansic: 114,970; sh: 35,537; cpp: 4,998; makefile: 1,986; yacc: 1,388; lex: 130; asm: 77; sed: 39; awk: 35
file content (20 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
dnl -*- Autoconf -*- test for either zlib or bzlib.
dnl Defines --with-$1 argument, $2 automake conditional,
dnl and sets AC_DEFINE(USE_$2) and LIBS.

AC_DEFUN([eu_ZIPLIB], [dnl
AC_ARG_WITH([[$1]],
AS_HELP_STRING([--with-[$1]], [support [$1] compression in libdwfl]),,
	    [with_[$1]=default])
if test $with_[$1] != no; then
  AC_SEARCH_LIBS([$4], [$3], [with_[$1]=yes],
  	         [test $with_[$1] = default ||
		  AC_MSG_ERROR([missing -l[$3] for --with-[$1]])])
fi
AM_CONDITIONAL([$2], test $with_[$1] = yes)
if test $with_[$1] = yes; then
  AC_DEFINE(USE_[$2])
else
  with_[$1]=no
fi
AH_TEMPLATE(USE_[$2], [Support $5 decompression via -l$3.])])