tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit 235a93537c18a080de905aefb12c55e87b19948b
parent 42f239a8d6f00010d3d6223babb99a1bbe2b0dd1
Author: boyska <piuttosto@logorroici.org>
Date:   Sat,  8 Sep 2012 14:36:07 +0200

--without-gtk supported

Diffstat:
Mconfigure.ac | 17++++++++++++++++-
Msrc/Makefile.am | 5++++-
2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -89,12 +89,27 @@ dnl --------------------------------------------------------------- PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.16], :, AC_MSG_ERROR([*** Gtk+2 >=2.16 development files not found!])) +AC_ARG_WITH(gtk, "used for tomb-status[reccomended]", [], [with_gtk=check]) +GTK_DETECTED=no +AS_IF([test "x$with_gtk" != xno], + [ PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.16], + [GTK_DETECTED=yes], + [if test "x$with_gtk" != check; then + AC_MSG_ERROR([*** Gtk+2 >=2.16 development files not found!]) + fi] + ) + ] + ) +AM_CONDITIONAL([GTK], [test "x$GTK_DETECTED" = xyes]) + + + AC_ARG_WITH(gcrypt, "used for kdf=pbkdf2 [reccomended]", [], [with_gcrypt=check]) GCRYPT_DETECTED=no AS_IF([test "x$with_gcrypt" != xno], [ AM_PATH_LIBGCRYPT([1.5.0], [GCRYPT_DETECTED=yes], - [if test "x$with_readline" != check; then + [if test "x$with_gcrypt" != check; then AC_MSG_ERROR([gcrypt development files not found]) fi]) ] ) diff --git a/src/Makefile.am b/src/Makefile.am @@ -1,7 +1,10 @@ - bin_SCRIPTS = tomb tomb-open undertaker +if GTK bin_PROGRAMS = tomb-status +else +bin_PROGRAMS = +endif tomb_status_SOURCES = tomb-status.c tomb_status_LDADD = @GTK2_LIBS@ @NOTIFY_LIBS@