Message405045
Brett, we can use AM_CONDITIONAL() to conditionally enable/disable a feature and AC_CONFIG_FILES() to create a Modules/Setup from a template:
Example:
The conditional
AM_CONDITIONAL([HAVE_SCPROXY], [test "$ac_sys_system" = "Darwin"])
sets HAVE_SCPROXY_FALSE and HAVE_NIS_SCPROXY based on the check.
On macOS:
HAVE_SCPROXY_FALSE='#'
HAVE_SCPROXY_TRUE=''
On Linux:
HAVE_SCPROXY_FALSE=''
HAVE_SCPROXY_TRUE='#'
We can either do something like:
*shared*
@HAVE_SCPROXY_TRUE@_scproxy _scproxy.c -framework SystemConfiguration -framework CoreFoundation
or:
*disabled*
@HAVE_SCPROXY_FALSE*_scproxy |
|
Date |
User |
Action |
Args |
2021-10-26 14:17:53 | christian.heimes | set | recipients:
+ christian.heimes, lemburg, brett.cannon, ned.deily, zach.ware, miss-islington |
2021-10-26 14:17:53 | christian.heimes | set | messageid: <1635257873.45.0.863843426205.issue45548@roundup.psfhosted.org> |
2021-10-26 14:17:53 | christian.heimes | link | issue45548 messages |
2021-10-26 14:17:53 | christian.heimes | create | |
|