Erik Grinaker is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

erikg / Revelation

Revelation is a password manager for the GNOME desktop, released under the GNU GPL license. It stores all your accounts and passwords in a single, secure place, and gives you access to it through a user-friendly graphical interface.

Clone this repository (size: 2.1 MB): HTTPS / SSH
hg clone https://bitbucket.org/erikg/revelation
hg clone ssh://hg@bitbucket.org/erikg/revelation

Revelation / acinclude.m4

commit
546c9c94d2eb
parent
ac9e3621e5ea
branch
default

check for mkdict/packer under /sbin and /usr/sbin in addition to /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5:/opt/ati/bin:/opt/Acrobat5:/opt/stuffit/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/opt/HelixPlayer:/usr/games/bin:/opt/vmware/bin

1
bffe619c6cec
AC_DEFUN(RVL_CRACKLIB, [
2
bffe619c6cec
	AC_CHECK_LIB(crack, FascistCheck, [], AC_MSG_ERROR(cracklib2 not found))
3
bffe619c6cec
4
bffe619c6cec
	RVL_CRACKLIB_DICTPATH
5
bffe619c6cec
6
546c9c94d2eb
	AC_PATH_PROG(CRACK_MKDICT, mkdict, no, $PATH:/sbin:/usr/sbin)
7
bffe619c6cec
	if test x"$CRACK_MKDICT" = xno; then
8
bffe619c6cec
		AC_MSG_ERROR([mkdict executable from cracklib not found in your path])
9
bffe619c6cec
	fi
10
546c9c94d2eb
	AC_PATH_PROG(CRACK_PACKER, packer, no, $PATH:/sbin:/usr/sbin)
11
bffe619c6cec
	if test x"$CRACK_PACKER" = xno; then
12
bffe619c6cec
		AC_MSG_ERROR([packer executable from cracklib not found in your path])
13
bffe619c6cec
	fi
14
bffe619c6cec
])
15
bffe619c6cec
16
bffe619c6cec
AC_DEFUN(RVL_CRACKLIB_DICTPATH, [
17
bffe619c6cec
	AC_MSG_CHECKING([cracklib dictionary database])
18
bffe619c6cec
	AC_ARG_WITH(cracklib-dict, [  --with-cracklib-dict=PATH  path to cracklib dictionary database], CRACK_DICTPATH=$withval)
19
bffe619c6cec
20
bffe619c6cec
	if test -z "$CRACK_DICTPATH"; then
21
bffe619c6cec
		cat > dictpath-test.c << EOF
22
bffe619c6cec
#include <crack.h>
23
bffe619c6cec
24
bffe619c6cec
int main()
25
bffe619c6cec
{
26
bffe619c6cec
	printf(CRACKLIB_DICTPATH);
27
bffe619c6cec
	return 0;
28
bffe619c6cec
}
29
bffe619c6cec
EOF
30
bffe619c6cec
31
bffe619c6cec
		${CC-cc} -o dictpath-test $CFLAGS dictpath-test.c >/dev/null 2>&1
32
bffe619c6cec
33
bffe619c6cec
		if test -e dictpath-test; then
34
bffe619c6cec
			CRACK_DICTPATH=`./dictpath-test`
35
bffe619c6cec
			AC_MSG_RESULT($CRACK_DICTPATH)
36
bffe619c6cec
		else
37
bffe619c6cec
			CRACK_DICTPATH="$datadir/revelation/pwdict"
38
bffe619c6cec
			AC_MSG_RESULT(using builtin)
39
bffe619c6cec
		fi
40
bffe619c6cec
41
bffe619c6cec
		rm -f dictpath-test* core core.dictpath-test
42
bffe619c6cec
	else
43
bffe619c6cec
		AC_MSG_RESULT($CRACK_DICTPATH)
44
bffe619c6cec
	fi
45
bffe619c6cec
46
bffe619c6cec
	AC_SUBST(CRACK_DICTPATH)
47
bffe619c6cec
])
48
bffe619c6cec
49
ab267e8bc63d
AC_DEFUN(RVL_FDO_MIME, [
50
ab267e8bc63d
	AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no)
51
ab267e8bc63d
	AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no)
52
ab267e8bc63d
53
ab267e8bc63d
	AC_ARG_ENABLE(desktop-update, [AC_HELP_STRING(--disable-desktop-update, Disable the MIME desktop database update)], disable_desktop=yes, disable_desktop=no)
54
ab267e8bc63d
	AC_ARG_ENABLE(mime-update, [AC_HELP_STRING(--disable-mime-update, Disable the MIME database update)], disable_mime=yes, disable_mime=no)
55
ab267e8bc63d
56
ab267e8bc63d
	AM_CONDITIONAL(HAVE_FDO_DESKTOP, test "x$UPDATE_DESKTOP_DATABASE" != "xno" -a "x$disable_desktop" = "xno")
57
ab267e8bc63d
	AM_CONDITIONAL(HAVE_FDO_MIME, test "x$UPDATE_MIME_DATABASE" != "xno" -a "x$disable_mime" = "xno")
58
ab267e8bc63d
])
59
ab267e8bc63d
60
ab267e8bc63d
AC_DEFUN(RVL_GCONF, [
61
ab267e8bc63d
	AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
62
ab267e8bc63d
63
ab267e8bc63d
	if test "x$GCONFTOOL" = "xno"; then
64
ab267e8bc63d
		AC_MSG_ERROR(gconftool-2 not found in your path)
65
ab267e8bc63d
	fi
66
ab267e8bc63d
67
ab267e8bc63d
	AM_GCONF_SOURCE_2
68
ab267e8bc63d
])
69
ab267e8bc63d
70
ab267e8bc63d
AC_DEFUN(RVL_PYTHON_MODULE, [
71
ab267e8bc63d
	AC_MSG_CHECKING(python module $1)
72
ab267e8bc63d
73
ab267e8bc63d
	$PYTHON -c "import $1" 2>/dev/null
74
ab267e8bc63d
75
ab267e8bc63d
	if test $? -eq 0; then
76
ab267e8bc63d
		AC_MSG_RESULT(yes)
77
ab267e8bc63d
		eval AS_TR_CPP(HAVE_PYMOD_$1)=yes
78
ab267e8bc63d
	else
79
ab267e8bc63d
		AC_MSG_RESULT(no)
80
ab267e8bc63d
		AC_MSG_ERROR(failed to find module $1)
81
ab267e8bc63d
		exit 1
82
ab267e8bc63d
	fi
83
ab267e8bc63d
])
84
ab267e8bc63d
85
ab267e8bc63d
AC_DEFUN(RVL_PYTHON_PATH, [
86
13a32d3a5428
	AM_PATH_PYTHON($1)
87
13a32d3a5428
88
ab267e8bc63d
	AC_MSG_CHECKING(Python include path)
89
ab267e8bc63d
	AC_ARG_WITH(python-include, [AC_HELP_STRING(--with-python-include=PATH, Path to Pyton include dir)], PYTHON_INCLUDE=$withval)
90
ab267e8bc63d
91
ab267e8bc63d
	if test -z "$PYTHON_INCLUDE" ; then
92
ab267e8bc63d
		PYTHON_INCLUDE=$PYTHON
93
ab267e8bc63d
		rvl_py_include_path=`echo $PYTHON_INCLUDE | sed -e "s/bin/include/"`
94
ab267e8bc63d
		rvl_py_version="`$PYTHON -c "import sys; print sys.version[[0:3]]"`";
95
c612387bf775
		PYTHON_INCLUDE="$rvl_py_include_path$rvl_py_version"
96
ab267e8bc63d
	fi
97
ab267e8bc63d
98
ab267e8bc63d
	AC_MSG_RESULT($PYTHON_INCLUDE)
99
ab267e8bc63d
	AC_SUBST(PYTHON_INCLUDE)
100
ab267e8bc63d
])
101
ab267e8bc63d