/[m4]/m4/acm4/m4-regex.m4
ViewVC logotype

Diff of /m4/acm4/m4-regex.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by gary, Thu Sep 23 16:29:33 2004 UTC revision 1.4 by gary, Fri Dec 24 23:07:05 2004 UTC
# Line 19  Line 19 
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  # ---------------------------  # ---------------------------
# Line 27  Line 27 
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)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26