Only build the krb5 locator when building shared libs
[ira/wip.git] / source3 / configure.in
index 0393a75b5011ca93e2601cfe3e93c9fe89b1f4ba..e505253a5222b66acab0061a972c142fa3e4d955 100644 (file)
@@ -3327,7 +3327,9 @@ if test x"$with_ads_support" != x"no"; then
   AC_CHECK_HEADERS(krb5/locate_plugin.h)
   if test x"$ac_cv_header_krb5_locate_plugin_h" = x"yes"; then
        WINBIND_KRB5_LOCATOR="bin/winbind_krb5_locator.$SHLIBEXT"
-       EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WINBIND_KRB5_LOCATOR"
+       if test x"$BLDSHARED" = x"true" ; then
+               EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WINBIND_KRB5_LOCATOR"
+       fi
   fi
 fi