summaryrefslogtreecommitdiffstats
path: root/lib/libtqtrla
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-10-02 14:18:45 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2016-10-02 14:18:45 -0500
commit46ffa2376fa1fed81cc971d46d5f1b8ea4062bd5 (patch)
tree5f4d525becb44f892815c88084db4db43d3ec8c0 /lib/libtqtrla
parent907295169181066b8c4fc6968b2b754f7ee48fea (diff)
downloadulab-46ffa2376fa1fed81cc971d46d5f1b8ea4062bd5.tar.gz
ulab-46ffa2376fa1fed81cc971d46d5f1b8ea4062bd5.zip
Fix libtqtrla FTBFS on newer Debian and Ubuntu versions
Diffstat (limited to 'lib/libtqtrla')
-rw-r--r--lib/libtqtrla/configure.in.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libtqtrla/configure.in.in b/lib/libtqtrla/configure.in.in
index 3b3f6bf..23db149 100644
--- a/lib/libtqtrla/configure.in.in
+++ b/lib/libtqtrla/configure.in.in
@@ -13,3 +13,18 @@ lt_age="0"
AC_SUBST(lt_current)
AC_SUBST(lt_revision)
AC_SUBST(lt_age)
+
+dnl this package requires heimdal Kerberos to compile
+KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [AC_MSG_WARN([Could not find pkg-config ])
+])
+
+if test -n "$PKGCONFIG"; then
+ vers=`$PKGCONFIG krb5 --modversion 2>/dev/null | sed -e 's/libkrb5 //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
+ if test -n "$vers" && test "$vers" -ge 1000000
+ then
+ KRB5_CFLAGS="`$PKGCONFIG krb5 --cflags`"
+ CPPFLAGS="$CPPFLAGS $KRB5_CFLAGS"
+ else
+ AC_CHECK_HEADER(kadm5/admin.h)
+ fi
+fi