Hack AC_LIBLTDL_INSTALLABLE so it sets LIBLTDLPATH (or not)
[freeradius.git] / aclocal.m4
index 22fef8c..22048b7 100644 (file)
@@ -2383,11 +2383,14 @@ AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
     ac_configure_args="$ac_configure_args --enable-ltdl-install"
     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
+    LIBLTDLPATH=libltdl
   else
     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
     LIBLTDL="-lltdl"
     LTDLINCL=
+    LIBLTDLPATH=
   fi
+  AC_SUBST(LIBLTDLPATH)
   # For backwards non-gettext consistent compatibility...
   INCLTDL="$LTDLINCL"
 ])# AC_LIBLTDL_INSTALLABLE