1 /* $NetBSD: regex.h,v 1.3 2021/08/14 16:14:55 christos Exp $ */ 2 3 /* Generic Regex */ 4 /* $OpenLDAP$ */ 5 /* This work is part of OpenLDAP Software <http://www.openldap.org/>. 6 * 7 * Copyright 1998-2021 The OpenLDAP Foundation. 8 * All rights reserved. 9 * 10 * Redistribution and use in source and binary forms, with or without 11 * modification, are permitted only as authorized by the OpenLDAP 12 * Public License. 13 * 14 * A copy of this license is available in file LICENSE in the 15 * top-level directory of the distribution or, alternatively, at 16 * <http://www.OpenLDAP.org/license.html>. 17 */ 18 19 #ifndef _AC_REGEX_H_ 20 #define _AC_REGEX_H_ 21 22 #ifdef HAVE_SYS_TYPES_H 23 #include <sys/types.h> 24 #endif 25 26 #ifndef HAVE_REGEX_H 27 /* NO POSIX REGEX!! 28 * You'll need to install a POSIX compatible REGEX library. 29 * Either Henry Spencer's or GNU regex will do. 30 */ 31 #error "No POSIX REGEX available." 32 33 #elif HAVE_GNUREGEX_H 34 /* system has GNU gnuregex.h */ 35 # include <gnuregex.h> 36 #else 37 /* have regex.h, assume it's POSIX compliant */ 38 # include <regex.h> 39 #endif /* regex.h */ 40 41 #endif /* _AC_REGEX_H_ */ 42