1da0c48c4Sopenharmony_cidnl -*- Autoconf -*- test for either zlib or bzlib. 2da0c48c4Sopenharmony_cidnl Defines --with-$1 argument, $2 automake conditional, 3da0c48c4Sopenharmony_cidnl and sets AC_DEFINE(USE_$2) and LIBS. 4da0c48c4Sopenharmony_ci 5da0c48c4Sopenharmony_ciAC_DEFUN([eu_ZIPLIB], [dnl 6da0c48c4Sopenharmony_ciAC_ARG_WITH([[$1]], 7da0c48c4Sopenharmony_ciAS_HELP_STRING([--with-[$1]], [support [$1] compression in libdwfl]),, 8da0c48c4Sopenharmony_ci [with_[$1]=default]) 9da0c48c4Sopenharmony_ciif test $with_[$1] != no; then 10da0c48c4Sopenharmony_ci AC_SEARCH_LIBS([$4], [$3], [with_[$1]=yes], 11da0c48c4Sopenharmony_ci [test $with_[$1] = default || 12da0c48c4Sopenharmony_ci AC_MSG_ERROR([missing -l[$3] for --with-[$1]])]) 13da0c48c4Sopenharmony_cifi 14da0c48c4Sopenharmony_ciAM_CONDITIONAL([$2], test $with_[$1] = yes) 15da0c48c4Sopenharmony_ciif test $with_[$1] = yes; then 16da0c48c4Sopenharmony_ci AC_DEFINE(USE_[$2]) 17da0c48c4Sopenharmony_cielse 18da0c48c4Sopenharmony_ci with_[$1]=no 19da0c48c4Sopenharmony_cifi 20da0c48c4Sopenharmony_ciAH_TEMPLATE(USE_[$2], [Support $5 decompression via -l$3.])]) 21