diff liboctave/regexp.cc @ 14025:9867be070ee1

use pcre/pcre.h if it is present * configure.ac: Check for pcre/pcre.h. * liboctave/regexp.cc: Include either pcre.h or pcre/pcre.h depending on which is available.
author John W. Eaton <jwe@octave.org>
date Sun, 11 Dec 2011 22:35:13 -0500
parents fc9f204faea0
children 7e60182e6a1c
line wrap: on
line diff
--- a/liboctave/regexp.cc	Sun Dec 11 22:19:57 2011 -0500
+++ b/liboctave/regexp.cc	Sun Dec 11 22:35:13 2011 -0500
@@ -31,7 +31,11 @@
 #include <string>
 #include <vector>
 
+#if defined (HAVE_PCRE_H)
 #include <pcre.h>
+#elif defined (HAVE_PCRE_PCRE_H)
+#include <pcre/pcre.h>
+#endif
 
 #include "Matrix.h"
 #include "base-list.h"