19 |
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
20 |
# Boston, MA 02111-1307, USA. |
# Boston, MA 02111-1307, USA. |
21 |
|
|
22 |
# serial 2 |
# serial 3 |
23 |
|
|
24 |
# m4_REGEX([path/to/regex.c]) |
# m4_REGEX([path/to/regex.c]) |
25 |
# --------------------------- |
# --------------------------- |
27 |
AC_DEFUN([m4_REGEX], |
AC_DEFUN([m4_REGEX], |
28 |
[AC_BEFORE([gl_REGEX], [m4_REGEX]) |
[AC_BEFORE([gl_REGEX], [m4_REGEX]) |
29 |
if test $ac_use_included_regex = no; then |
if test $ac_use_included_regex = no; then |
|
# The system provides a good regex. `#include <regex.h>' will work. |
|
30 |
INCLUDE_REGEX_H='#include <regex.h>' |
INCLUDE_REGEX_H='#include <regex.h>' |
31 |
REGEX_H= |
REGEX_H= |
32 |
else |
else |
33 |
# The system does not provide regex.h, or the user has specified |
INCLUDE_REGEX_H='#include <gnu/regex.h>' |
|
# to build without it. Unfortunately we can't leave an regex.h |
|
|
# file around anywhere in the include path if the system also |
|
|
# provides an implementation: So we ship regex_.h, and link it to |
|
|
# m4/regex.h at Make time (to substitute the missing system supplied |
|
|
# version). Hence, `#include <m4/regex.h>' will work. |
|
|
INCLUDE_REGEX_H='#include <m4/regex.h>' |
|
34 |
REGEX_H=regex.h |
REGEX_H=regex.h |
35 |
fi |
fi |
36 |
AC_SUBST(REGEX_H) |
AC_SUBST(REGEX_H) |