dont build editline if not needed. From Guillame Rosse
authorLove Hörnquist Åstrand <lha@kth.se>
Thu, 17 Jul 2008 20:42:30 +0000 (20:42 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Thu, 17 Jul 2008 20:42:30 +0000 (20:42 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23372 ec53bebd-3082-4978-b11e-865c3cabbd6b

cf/krb-readline.m4
lib/Makefile.am

index 4ba2dbd181a5ef565cec68ff2d2df91547ebbde5..0a9b7278ba0677524fa51fc946bd17746b7ba645 100644 (file)
@@ -22,16 +22,20 @@ fi
 dnl readline
 
 ac_foo=no
+build_editline=no
 if test "$with_readline" = yes; then
        :
 elif test "$ac_cv_func_readline" = yes; then
        :
 elif test "$ac_cv_func_el_init" = yes; then
        ac_foo=yes
+       build_editline=yes
        LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
 else
+       build_editline=yes
        LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
 fi
+AM_CONDITIONAL(EDITLINE "$build_editline" = yes)
 AM_CONDITIONAL(el_compat, test "$ac_foo" = yes)
 AC_DEFINE(HAVE_READLINE, 1, 
        [Define if you have a readline compatible library.])dnl
index 1f32a09a83d760743c8defe268e146c5566140ac..c6a7c64a9f1f38053dd25d270476acd9cbd01504 100644 (file)
@@ -2,6 +2,9 @@
 
 include $(top_srcdir)/Makefile.am.common
 
+if EDITLINE
+dir_editline = editline
+endif
 if KRB4
 dir_45 = 45
 endif
@@ -18,6 +21,6 @@ if !HAVE_OPENSSL
 dir_hcrypto = hcrypto
 endif
 
-SUBDIRS = roken vers editline $(dir_com_err) sl wind asn1 sqlite \
+SUBDIRS = roken vers $(dir_editline) $(dir_com_err) sl wind asn1 sqlite \
        $(dir_hcrypto) hx509 krb5 ntlm kafs gssapi hdb kadm5 \
        auth $(dir_45) $(dir_otp) $(dir_dce)