diff options
author | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 1997-08-24 15:33:49 +0000 |
---|---|---|
committer | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 1997-08-24 15:33:49 +0000 |
commit | a46d5ff2dd478f2e67c999c830879906f416e249 (patch) | |
tree | 1803e5be413b32c18634abc02138b070c5420518 /libguile/regex-posix.c | |
parent | 68aed3ea96dcce600044eab567bd8c231033d273 (diff) | |
download | guile-a46d5ff2dd478f2e67c999c830879906f416e249.tar.gz |
* regex-posix.c: If <regex.h> can't be found, try <rxposix.h> or
<rx/rxposix.h>. (This is in order to accomodate for the GNU Rx
library.)
Diffstat (limited to 'libguile/regex-posix.c')
-rw-r--r-- | libguile/regex-posix.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libguile/regex-posix.c b/libguile/regex-posix.c index 28afdd6b1..e941393d0 100644 --- a/libguile/regex-posix.c +++ b/libguile/regex-posix.c @@ -58,8 +58,18 @@ the file is CPP'able (for dependency scanning) even on systems that don't have a <regex.h> header. */ #ifdef HAVE_REGCOMP +#ifdef HAVE_REGEX_H #include <regex.h> -#endif +#else +#ifdef HAVE_RXPOSIX_H +#include <rxposix.h> /* GNU Rx library */ +#else +#ifdef HAVE_RX_RXPOSIX_H +#include <rx/rxposix.h> /* GNU Rx library on Linux */ +#endif +#endif +#endif +#endif #include "smob.h" #include "symbols.h" |