]> git.sur5r.net Git - openldap/blob - include/ac/regex.h
s/Id/OpenLDAP/ in RCSids
[openldap] / include / ac / regex.h
1 /* Generic Regex */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms are permitted only
8  * as authorized by the OpenLDAP Public License.  A copy of this
9  * license is available at http://www.OpenLDAP.org/license.html or
10  * in file LICENSE in the top-level directory of the distribution.
11  */
12 #ifndef _AC_REGEX_H_
13 #define _AC_REGEX_H_
14
15 #ifdef HAVE_SYS_TYPES_H
16 #include <sys/types.h>
17 #endif
18
19 #ifndef HAVE_REGEX_H
20 /*      NO POSIX REGEX!!
21         you'll need to install a POSIX compatible REGEX library.
22         Either Henry Spencer's or GNU regex will do.
23
24         For NT: http://people.delphi.com/gjc/hs_regex.html
25 */
26 #error "No POSIX REGEX available."
27
28 #elif HAVE_GNUREGEX_H
29         /* system has GNU gnuregex.h */ 
30 #       include <gnuregex.h>
31 #else
32         /* have regex.h, assume it's POSIX compliant */
33 #       include <regex.h>
34 #endif /* regex.h */
35
36 #endif /* _AC_REGEX_H_ */