Mercurial > mplayer.hg
comparison configure @ 32281:adc80f8de1a6
Update documentation on how to add checks; mention helper functions.
author | diego |
---|---|
date | Sun, 26 Sep 2010 19:33:48 +0000 |
parents | 92f94dc1eaee |
children | 150de764e80b |
comparison
equal
deleted
inserted
replaced
32280:92f94dc1eaee | 32281:adc80f8de1a6 |
---|---|
17 # | 17 # |
18 # configure generates a series of configuration files: | 18 # configure generates a series of configuration files: |
19 # - config.h contains #defines that are used in the C code. | 19 # - config.h contains #defines that are used in the C code. |
20 # - config.mak is included from the Makefiles. | 20 # - config.mak is included from the Makefiles. |
21 # | 21 # |
22 # If you want to add a new check for $feature, here is a simple skeleton: | 22 # If you want to add a new check for $feature, look at the existing checks |
23 # | 23 # and try to use helper functions where you can. |
24 # echocheck "$feature" | |
25 # if test "$_feature" = auto; then | |
26 # cat > $TMPC << EOF | |
27 # #include <feature.h> | |
28 # int main(void) { return 0; } | |
29 # EOF | |
30 # _feature=no | |
31 # cc_check && _feature=yes | |
32 # fi | |
33 # if test "$_feature" = yes ; then | |
34 # def_feature='#define CONFIG_FEATURE 1' | |
35 # else | |
36 # def_feature='#undef CONFIG_FEATURE' | |
37 # fi | |
38 # echores "$_feature" | |
39 # | 24 # |
40 # Furthermore you need to add the variable _feature to the list of default | 25 # Furthermore you need to add the variable _feature to the list of default |
41 # settings and set it to one of yes/no/auto. Also add appropriate | 26 # settings and set it to one of yes/no/auto. Also add appropriate |
42 # --enable-feature/--disable-feature command line options. | 27 # --enable-feature/--disable-feature command line options. |
43 # The results of the check should be written to config.h and config.mak | 28 # The results of the check should be written to config.h and config.mak |