X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fac%2Fregex.h;h=018746e1543251fee08d29f81cdb3fbd388d54de;hb=b46547ada17b4585cc5c40150933be325bb1e9ac;hp=87033a8b7e1cfe342d086b00946e68d2d07a230c;hpb=7fc7988b8ee3c9f0e824d3ac777e7d9475bd15b9;p=openldap
diff --git a/include/ac/regex.h b/include/ac/regex.h
index 87033a8b7e..018746e154 100644
--- a/include/ac/regex.h
+++ b/include/ac/regex.h
@@ -1,15 +1,19 @@
-/*
- * Generic Regex
- */
-/*
- * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+/* Generic Regex */
+/* $OpenLDAP$ */
+/* This work is part of OpenLDAP Software .
+ *
+ * Copyright 1998-2012 The OpenLDAP Foundation.
* All rights reserved.
*
- * Redistribution and use in source and binary forms are permitted only
- * as authorized by the OpenLDAP Public License. A copy of this
- * license is available at http://www.OpenLDAP.org/license.html or
- * in file LICENSE in the top-level directory of the distribution.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * .
*/
+
#ifndef _AC_REGEX_H_
#define _AC_REGEX_H_
@@ -19,11 +23,14 @@
#ifndef HAVE_REGEX_H
/* NO POSIX REGEX!!
- you'll need to install a POSIX compatible REGEX library.
- Either Henry Spencer's or GNU regex will do.
+ * You'll need to install a POSIX compatible REGEX library.
+ * Either Henry Spencer's or GNU regex will do.
+ */
+#error "No POSIX REGEX available."
- For NT: http://people.delphi.com/gjc/hs_regex.html
-*/
+#elif HAVE_GNUREGEX_H
+ /* system has GNU gnuregex.h */
+# include
#else
/* have regex.h, assume it's POSIX compliant */
# include