improce memory handling
[gpgme.git] / configure.ac
index 55ab067..928008a 100644 (file)
@@ -177,9 +177,18 @@ dnl
 dnl Create config files 
 dnl
 
+/* FIXME: Only build if supported.  */
+AM_CONDITIONAL(BUILD_ASSUAN, test "$GPGSM" != "no")
+
 AM_CONDITIONAL(BUILD_COMPLUS, test "$component_system" = "COM+")
 AM_CONDITIONAL(BUILD_BONOBO,  test "$component_system" = "Bonobo")
 
+GPGMEPLUG=no
+AC_ARG_ENABLE(gpgmeplug,
+           AC_HELP_STRING([--enable-gpgmeplug], [build GPGME Crypt Plug-In]),
+           GPGMEPLUG=$enableval)
+AM_CONDITIONAL(BUILD_GPGMEPLUG, test "$GPGMEPLUG" = "yes")
+
 dnl Make the version number in gpgme/gpgme.h the same as the one here.
 dnl (this is easier than to have a *.in file just for one substitution)
 GNUPG_FIX_HDR_VERSION(gpgme/gpgme.h, GPGME_VERSION)
@@ -190,8 +199,10 @@ GPGME_CFLAGS=""
 AC_SUBST(GPGME_LIBS)
 AC_SUBST(GPGME_CFLAGS)
 
-AC_CONFIG_FILES(Makefile jnlib/Makefile gpgme/Makefile tests/Makefile
-               doc/Makefile bonobo/Makefile complus/Makefile)
+AC_CONFIG_FILES(Makefile assuan/Makefile jnlib/Makefile gpgme/Makefile
+               tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile
+               doc/Makefile
+               bonobo/Makefile complus/Makefile gpgmeplug/Makefile)
 AC_CONFIG_FILES(gpgme/gpgme-config, chmod +x gpgme/gpgme-config)
 AC_OUTPUT
 
@@ -203,4 +214,6 @@ echo "
 
         GpgSM version: min. $NEED_GPGSM_VERSION
        GpgSM path:    $GPGSM
+
+       GPGME CryptPlug: $GPGMEPLUG
 "