Ticket #2752 (closed enhancement: wontfix)
configure.ac improvements, part 2
| Reported by: | Fab | Owned by: | asterix |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | None | Version: | svn |
| Severity: | normal | Keywords: | configure checks autotools |
| Cc: | OS: |
Description
The enable link-local messaging feature seems to be cool, but there's only one problem : I don't need it :-)
Consequences :
- I don't need avahi
- I need a --disable-zeroconf option for ./configure
- If zeroconf is disabled at ./configure time, the checkbox must always be disabled, even if avahi is installed 6 months later (see the following explanation)
Explanation : Suppose that I build Gajim without zeroconf support : avahi is not required.
Six months later, I decide to install another software which require avahi.
If the checkbox auto-magically appear when avahi is installed, zeroconf support will be enable in Gajim, but for the package system of my distro (yes, I'm on Gentoo :p), Gajim will seems to be built without zeroconf support.
--> it make no sense.
I'll attach another patch. To apply it, you must :
- apply the patch of my precedent ticket #2751
- rename src/config.py to src/config.py.in
- apply it
This part of the patch :
# ... and enabled with --enable-zeroconf configure option if @BUILD_ZEROCONF@: import os
will be switched to :
# ... and enabled with --enable-zeroconf configure option if True: import os
or
# ... and enabled with --enable-zeroconf configure option if False: import os
Tests are welcome. Thanks.
