Extending configure.ac

Abdallah Elshamy <[email protected]>
Newsgroups gmane.comp.gnu.octave.maintainers
Message-ID <CAAVkm5Dw0424jEQoYx9AT+M6UmVfXxDVqwK0SsNo0Yhd_28X4A@mail.gmail.com>
Greetings,

I was trying to add RapidJSON [1] to Octave. At first, I thought about
using AC_CHECK_LIB (after some reading in configure.ac, I noticed that
Octave uses the custom macro OCTAVE_CHECK_LIB which I think is the same
thing with some extra parameters.) But, since RapidJSON [1] is a
header-only library, I thought about using AC_CHECK_HEADER. Which option is
more preferable?

Also, should I stop the configure script (with AC_MSG_ERROR for example) If
the library is not found or should I disable the functions ? (I think the
latter is better. If it is, any source on how to do this will be helpful.)

Thanks in advance,
Abdallah

[1] https://rapidjson.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.