Merge lp:~dandrader/frame/lp1080819 into lp:frame
| Status: | Merged |
|---|---|
| Merged at revision: | 103 |
| Proposed branch: | lp:~dandrader/frame/lp1080819 |
| Merge into: | lp:frame |
| Diff against target: |
399 lines (+139/-30) 12 files modified
.bzrignore (+1/-0) Makefile.am (+10/-1) configure.ac (+61/-2) frame-x11.pc.in (+9/-0) include/oif/frame.h.in (+4/-0) src/Makefile.am (+10/-2) src/value.h (+0/-2) test/Makefile.am (+11/-2) test/regular/Makefile.am (+17/-5) test/regular/accept-ended-touch.cpp (+2/-2) test/regular/frame-x11-fixture.cpp (+10/-10) test/regular/frame-x11-fixture.h (+4/-4) |
| To merge this branch: | bzr merge lp:~dandrader/frame/lp1080819 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Stephen M. Webb (community) | 2012-11-20 | Approve on 2012-11-26 | |
|
Review via email:
|
|||
Description of the Change
Fixes bug 1080819.
- 104. By Daniel d'Andrada on 2012-11-20
-
Add frame-x11.pc
So that configure scripts can know if the installed frame has X11 support.
- 105. By Daniel d'Andrada on 2012-11-21
-
Remove stray #include
- 106. By Daniel d'Andrada on 2012-11-26
-
Improve implementation of the pretty summary of the configure script
- Do not use device-specific terminal commands directly
- Use AC_MSG_NOTICE instead of echo to ensure the messages go to the right places
and obey configure options such as --quiet - 107. By Daniel d'Andrada on 2012-11-26
-
No need to configure libframe.ver
Fixed according to review comments from Stephen Webb:
"It is not an error to mention a symbol name in a GNU linker version script and
that symbol is not present. That means there is no need to run the preprocessor
on the version script. A single version script should suffice regardless of
package build options selected."
| Daniel d'Andrada (dandrader) wrote : | # |
Updated according to comments.
| Stephen M. Webb (bregma) wrote : | # |
include/
Other than that warning, this looks good.
| Daniel d'Andrada (dandrader) wrote : | # |
That's odd, I've run "./configure --disable-x11" followed by "make dist" and the generated tarball did include frame_x11.h

I approve of most of these changes in general, with the following exceptions.
(1) as far as I know, it is not an error to mention a symbol name in a GNU linker version script and that symbol is not present. That means there is no need to run the preprocessor on the version script; a single version script should suffice regardless of package build options selected. Less to go wrong.
(2) You should avoid embedding device-specific control in the diagnostic output of configure. The right way to get pretty colour into the diagnostic output is to use the tput program. For example,
bold_green=$(tput bold)$(tput setf 2)
bold_white=$(tput bold)$(tput setf 7)
reset=$(tput sgr0)
You should also use AC_MSG_NOTICE to send notices to the diagnostic output because (a) it send it to all the right places (echo only sends to stdout), and (2) the autoconf tool facilities react properly to command-line options like --quiet.