regex.h revision 1.1.1.3
1/* $NetBSD: regex.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $ */ 2 3/* Generic Regex */ 4/* OpenLDAP: pkg/ldap/include/ac/regex.h,v 1.17.2.5 2010/04/13 20:22:51 kurt Exp */ 5/* This work is part of OpenLDAP Software <http://www.openldap.org/>. 6 * 7 * Copyright 1998-2010 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