Server IP : 87.107.10.74  /  Your IP : 216.73.216.213
Web Server : LiteSpeed
System : Linux box401.parsvds.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User : aubxzmbu ( 3121)
PHP Version : 7.4.33
Disable Function : exec,shell_exec,system,passthru,popen,eval,proc_close,proc_open,pcntl_exec,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_getpriority,pcntl_setpriority
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/aclocal/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/aclocal/dovecot-pigeonhole.m4
# pigeonhole.m4 - Check presence of pigeonhole -*-Autoconf-*-
#.

# serial 5

AC_DEFUN([DC_PIGEONHOLE],[
	AC_ARG_WITH(pigeonhole,
	[  --with-pigeonhole=DIR   Pigeonhole base directory],
	pigeonholedir="$withval",
	[
		pg_prefix=$prefix
		test "x$pg_prefix" = xNONE && pg_prefix=$ac_default_prefix
		pigeonholedir="$pg_prefix/include/dovecot/sieve"
	]
	)

	AC_MSG_CHECKING([for pigeonhole in "$pigeonholedir"])

	top=`pwd`
	cd $pigeonholedir
	pigeonholedir=`pwd`
	cd $top
	AC_SUBST(pigeonholedir)

	PIGEONHOLE_TESTSUITE=
	if test -f "$pigeonholedir/src/lib-sieve/sieve.h"; then
		AC_MSG_RESULT([found])
		pigeonhole_incdir="$pigeonholedir"
		LIBSIEVE_INCLUDE='\
			-I$(pigeonhole_incdir) \
			-I$(pigeonhole_incdir)/src/lib-sieve \
			-I$(pigeonhole_incdir)/src/lib-sieve/util \
			-I$(pigeonhole_incdir)/src/lib-sieve/plugins/copy \
			-I$(pigeonhole_incdir)/src/lib-sieve/plugins/enotify \
			-I$(pigeonhole_incdir)/src/lib-sieve/plugins/imap4flags \
			-I$(pigeonhole_incdir)/src/lib-sieve/plugins/mailbox \
			-I$(pigeonhole_incdir)/src/lib-sieve/plugins/variables'
		PIGEONHOLE_TESTSUITE="${pigeonholedir}/src/testsuite/testsuite"
	elif test -f "$pigeonholedir/sieve.h"; then
		AC_MSG_RESULT([found])
		pigeonhole_incdir="$pigeonholedir"
		LIBSIEVE_INCLUDE='-I$(pigeonhole_incdir)'
	else
		AC_MSG_RESULT([not found])
		AC_MSG_NOTICE([
			Pigeonhole Sieve headers not found from $pigeonholedir and they
			are not installed in the Dovecot include path, use --with-pigeonhole=PATH
 			to give path to Pigeonhole sources or installed headers.])
		AC_MSG_ERROR([pigeonhole not found])
	fi

	DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --with-pigeonhole=$pigeonholedir"
	
	AM_CONDITIONAL(PIGEONHOLE_TESTSUITE_AVAILABLE, ! test -z "$PIGEONHOLE_TESTSUITE")

	pigeonhole_incdir="$pigeonholedir"

	AC_SUBST(pigeonhole_incdir)

	AC_SUBST(LIBSIEVE_INCLUDE)
	AC_SUBST(PIGEONHOLE_TESTSUITE)
])