is defined, V8 regular expresion functions are used if REGEXP is defined, and BSD regular expression functions are used if neither are defined. And defined REGEX in sys.h so that programs using libedit don't have to link with libcompat.