Menu

#122 All executables are linked to libldap

None
closed-fixed
Jan Kara
None
5
2016-01-19
2016-01-07
No

Since 4.03 release, all executables are linked to ldap library, altough this is required only for warnquota executable.

The reason is empty if-found action at ldap AC_CHECK_LIB check:

    AC_CHECK_LIB([ldap], [ldap_initialize], [], [
        build_ldap=no
        AS_IF([test "x$enable_ldapmail" = "xyes"], [
            AC_MSG_ERROR([LDAP support required but library not found.]);
        ])
    ])

I though it is a bug in my Autoconf, by it seems to be a feature. See https://bugzilla.redhat.com/show_bug.cgi?id=1296455 for more details.

I corrected it by using [:;], but recommend fix is probably move the folloing AS_IF body there.

Discussion

  • Jan Kara

    Jan Kara - 2016-01-19
    • status: open --> closed-fixed
    • assigned_to: Jan Kara
    • Group: -->
     
  • Jan Kara

    Jan Kara - 2016-01-19

    Thanks for report! I have fixed the problem by moving the AS_IF body instead of the empty action-if-found.

     

Anonymous
Anonymous

Add attachments
Cancel