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.0 MB): HTTPS / SSH
hg clone https://bitbucket.org/erikg/revelation
hg clone ssh://hg@bitbucket.org/erikg/revelation

Revelation / acinclude.m4

AC_DEFUN(RVL_FDO_MIME, [
        AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no)
        AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no)

        AC_ARG_ENABLE(desktop-update, [AC_HELP_STRING(--disable-desktop-update, Disable the MIME desktop database update)], disable_desktop=yes, disable_desktop=no)
        AC_ARG_ENABLE(mime-update, [AC_HELP_STRING(--disable-mime-update, Disable the MIME database update)], disable_mime=yes, disable_mime=no)

        AM_CONDITIONAL(HAVE_FDO_DESKTOP, test "x$UPDATE_DESKTOP_DATABASE" != "xno" -a "x$disable_desktop" = "xno")
        AM_CONDITIONAL(HAVE_FDO_MIME, test "x$UPDATE_MIME_DATABASE" != "xno" -a "x$disable_mime" = "xno")
])

AC_DEFUN(RVL_GCONF, [
        AC_PATH_PROG(GCONFTOOL, gconftool-2, no)

        if test "x$GCONFTOOL" = "xno"; then
                AC_MSG_ERROR(gconftool-2 not found in your path)
        fi

        AM_GCONF_SOURCE_2
])

AC_DEFUN(RVL_PYTHON_MODULE, [
        AC_MSG_CHECKING(python module $1)

        $PYTHON -c "import $1" 2>/dev/null

        if test $? -eq 0; then
                AC_MSG_RESULT(yes)
                eval AS_TR_CPP(HAVE_PYMOD_$1)=yes
        else
                AC_MSG_RESULT(no)
                AC_MSG_ERROR(failed to find module $1)
                exit 1
        fi
])

AC_DEFUN(RVL_PYTHON_PATH, [
        AC_MSG_CHECKING(Python include path)
        AC_ARG_WITH(python-include, [AC_HELP_STRING(--with-python-include=PATH, Path to Pyton include dir)], PYTHON_INCLUDE=$withval)

        if test -z "$PYTHON_INCLUDE" ; then
                PYTHON_INCLUDE=$PYTHON
                rvl_py_include_path=`echo $PYTHON_INCLUDE | sed -e "s/bin/include/"`
                rvl_py_version="`$PYTHON -c "import sys; print sys.version[[0:3]]"`";
                PYTHON_INCLUDE="$rvl_py_include_path$rvl_py_version"
        fi

        AC_MSG_RESULT($PYTHON_INCLUDE)
        AC_SUBST(PYTHON_INCLUDE)
])