--- autofs-5.1.3.orig/configure.in	2017-05-24 04:16:59.000000000 +0200
+++ autofs-5.1.3/configure.in	2017-06-25 22:09:22.834510245 +0200
@@ -124,8 +124,7 @@ AC_SUBST(flagdir)
 #
 # Use libtirpc
 #
-AF_WITH_LIBTIRPC()
-AC_SUBST(TIRPCLIB)
+PKG_CHECK_MODULES([TIRPC], [tirpc])
 
 #
 # Optional include dmalloc
