Only build the krb5 locator when building shared libs
authorVolker Lendecke <vl@samba.org>
Wed, 20 May 2009 06:39:45 +0000 (08:39 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 20 May 2009 06:41:57 +0000 (08:41 +0200)
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