[go: up one dir, main page]

File: acinclude.m4

package info (click to toggle)
ima-evm-utils 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 252 kB
  • sloc: ansic: 2,354; sh: 68; makefile: 42
file content (14 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

AC_DEFUN([PKG_ARG_ENABLE],
	[
	AC_MSG_CHECKING(whether to enable $1)
	AC_ARG_ENABLE([$1], AC_HELP_STRING([--enable-$1], [enable $1 (default is $2)]), 
	[pkg_cv_enable_$1=$enableval],	
	[AC_CACHE_VAL([pkg_cv_enable_$1], [pkg_cv_enable_$1=$2])])
	if test $pkg_cv_enable_$1 = yes; then
		AC_DEFINE([$3],, [$4])
	fi
	AC_MSG_RESULT([$pkg_cv_enable_$1])
	AM_CONDITIONAL($3, test $pkg_cv_enable_$1 = yes)
])