c++ - Autoconf not defining a variable properly -


I am using GNU autotulle for my project. The Configure.ac script has the following snippet.

AC_ARG_WITH (chkhere, AC_HELP_STRING ([-unctional], [not compiled]), [ac_cv_chkhere = $ withval], [ac_cv_chkhere = yes]) # Check if "x $ ac_cv_chkhere "=" Xyes "AC_DEFIN (HVVCHEDED) ASCO" Chakra: Enabled "Echo" Chakra: Disabled "and" Vertigo: Disabled "fix

and I have variables in the C ++ code HAVE_CHECKED Checking for this works for the non-chakra option.

When I'm giving up / Configure - Together, this shows the message "chkhere: enabled" as needed, but the code gets undefined within HAVE_CHECKED C ++.

Please tell where I am going wrong, or if I check it differently? Thank you.

P: I am following orders of this order: automake; Libtoolize; Aclocal-I M4; Autoconf;

If you did not call autoheader then config .h .in may be outdated and may not be mentioned HAVE_CHECKED . I suggest that you sort your commands and use autoreconf instead, what would you need it?


Comments