Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
http://sourceforge.net/projects/libtirpc/
+config BR2_PACKAGE_LIBTIRPC_GSS
+ bool "gss"
+ depends on BR2_USE_MMU # libkrb5
+ depends on BR2_PACKAGE_LIBTIRPC
+ select BR2_PACKAGE_LIBKRB5
+ help
+ Enable GSSAPI support
+
comment "libtirpc needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
# getrpcby{number,name} are only provided if 'GQ' is defined
LIBTIRPC_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DGQ"
-LIBTIRPC_CONF_OPTS = --disable-gssapi
+ifeq ($(BR2_PACKAGE_LIBTIRPC_GSS),y)
+LIBTIRPC_CONF_ENV += KRB5_CONFIG=$(STAGING_DIR)/usr/bin/krb5-config
+LIBTIRPC_CONF_OPTS += --enable-gssapi
+LIBTIRPC_DEPENDENCIES += libkrb5
+else
+LIBTIRPC_CONF_OPTS += --disable-gssapi
+endif
HOST_LIBTIRPC_CONF_OPTS = --disable-gssapi
$(eval $(autotools-package))