I have a configure.ac file containing lines like:
AC_DEFINE(CONF_XDISP, ":8", "X screen number")
These constants are used in source C to set the default parameters for compilation. I also have a conf/bumblebee.conf configuration file in which these default values ββshould be set. I was told that AC_SUBST can be used to get @ CONF_XDISP@ replaced with ":8" such that the following line:
VGL_DISPLAY=@CONF _XDISP@
becomes:
VGL_DISPLAY=":8"
Creating an AC_SUBST line for each AC_DEFINE does not look the best to me, as it involves a lot of line duplication. How can I combine these parameters so that I can use something like AC_DEFINE_SUBST ? Other ideas and suggestions for improving this are also welcome.
source share