File: env.m4

package info (click to toggle)
pdfedit 0.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 15,220 kB
  • ctags: 17,436
  • sloc: cpp: 156,708; xml: 8,973; makefile: 1,003; sh: 704; ansic: 688; perl: 669; yacc: 589; python: 236; lisp: 51
file content (25 lines) | stat: -rw-r--r-- 401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
AC_DEFUN(CHK_ENV_VAR,[
 if test "x$[]$1" = x; then
  AC_MSG_ERROR($2)
 fi
])
AC_DEFUN(CHK_ENV_VAR_WARN,[
 if test "x$[]$1" = x; then
  AC_MSG_WARN($2)
 fi
])
AC_DEFUN(CHK_ENV_VAR_NOTICE,[
 if test "x$[]$1" = x; then
  AC_MSG_NOTICE($2)
 fi
])

AC_DEFUN(CHK_OR_DEFINE_VAR, [ 
	if test -z "$[]$1"
	then
		$1=$2
		AC_MSG_NOTICE(Using default $1=$2)
	else
		AC_MSG_NOTICE(Using provided $1=$[]$1)
	fi
	])