Package: libpam-rsa
Severity: important
Version: 0.8-9-1
Tags: patch


Hi,

the current version fails to build on GNU/kFreeBSD.

It needs update of configure.ac/configure. Please find attached patch with that.

It would also be nice if you can ask upstream
to include this change.

Thanks in advance

                        Petr

only in patch2:
unchanged:
--- libpam-rsa-0.8-9.orig/configure.ac
+++ libpam-rsa-0.8-9/configure.ac
@@ -84,7 +84,7 @@
 AC_CHECK_LIB(dl, dlopen, have_dl=yes, have_dl=no) 
 
 case $host in
-       *-*-linux*)
+       *-*-linux*|*-*-kfreebsd*-gnu|*-*-gnu*)
                AC_DEFINE([HAVE_CONST_IN_PAM_FUNCS],[1],[Define to 1 if the 
third argument to pam_get_item() is qualified as const])
                LIBS="-lcrypto -lpam -lpthread"
                if test "$have_dl" = yes; then
only in patch2:
unchanged:
--- libpam-rsa-0.8-9.orig/configure
+++ libpam-rsa-0.8-9/configure
@@ -5128,7 +5128,7 @@
 
 
 case $host in
-       *-*-linux*)
+       *-*-linux*|*-*-kfreebsd*-gnu|*-*-gnu*)
 
 cat >>confdefs.h <<\_ACEOF
 #define HAVE_CONST_IN_PAM_FUNCS 1

Reply via email to