Added --with-libxml2 to configure

This commit is contained in:
Olof hagsand 2019-05-24 10:04:29 +02:00
parent e55a27bcac
commit 5b39b63698
8 changed files with 36 additions and 38 deletions

View file

@ -447,11 +447,11 @@ main(int argc, char **argv)
usage(h, argv[0]);
if (strcmp(clicon_yang_regexp(h), "libxml2")==0){
#ifdef HAVE_LIBXML_XMLREGEXP_H
/* Enable XSD libxml2 */
cligen_regex_set(cli_cligen(h), 1);
#ifdef HAVE_LIBXML2
/* Enable XSD libxml2 regex engine */
cligen_regex_xsd_set(cli_cligen(h), 1);
#else
clicon_err(OE_FATAL, 0, "CLICON_YANG_REGEXP set to libxml2, but HAVE_LIBXML_XMLREGEXP_H not set (Either change CLICON_YANG_REGEXP to posix, or configure with libxml2))");
clicon_err(OE_FATAL, 0, "CLICON_YANG_REGEXP set to libxml2, but HAVE_LIBXML2 not set (Either change CLICON_YANG_REGEXP to posix, or run: configure --with-libxml2))");
goto done;
#endif
}