* m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h> rather
authorDerek R. Price <derek@ximbiot.com>
Wed, 19 Apr 2006 16:47:17 +0000 (16:47 +0000)
committerDerek R. Price <derek@ximbiot.com>
Wed, 19 Apr 2006 16:47:17 +0000 (16:47 +0000)
than "/full/path.h".  Update comment to match.  Shorten & generalize
m4_translit call via AS_TR_CPP.

m4/ChangeLog
m4/full-header-path.m4

index c443a4773dd8df3f21dcb458baeaeae0d3ed677c..1bb420dd50d4f48078592badff394fbb5807ddf2 100644 (file)
@@ -1,8 +1,14 @@
+2006-04-19  Derek Price  <derek@ximbiot.com>
+           Eric Blake  <ebb9@byu.net>
+
+       * full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h> rather
+       than "/full/path.h".  Update comment to match.  Shorten & generalize
+       m4_translit call via AS_TR_CPP.
+
 2006-04-18  Derek Price  <derek@ximbiot.com>
            Paul Eggert  <eggert@cs.ucla.edu>
 
-       * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next: New
-       files.
+       * _inttypes_h.m4, full-header-path.m4, include_next: New files.
 
 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
 
index 3a1e2f08f137e37aeed651e82e4bd330a6780af1..b923215fccbceb9452bd0082c3a3e58992591a46 100644 (file)
@@ -11,9 +11,9 @@ dnl From Derek Price.
 # Find the full path to a header file, when the #include_next directive
 # doesn't work and the header exists in the first place.  If the header were
 # sys/inttypes.h (and it existed and #include_next didn't work), this macro
-# would define FULL_PATH_SYS_INTTYPES_H to the quoted full path to
+# would define FULL_PATH_SYS_INTTYPES_H to the `<>' quoted full path to
 # sys/inttypes.h in config.h
-# (e.g. `#define FULL_PATH_SYS_INTTYPES_H "/usr/include/sys/inttypes.h"').
+# (e.g. `#define FULL_PATH_SYS_INTTYPES_H </usr/include/sys/inttypes.h>').
 AC_DEFUN([gl_FULL_HEADER_PATH],
 [AC_LANG_PREPROC_REQUIRE()dnl
 AC_REQUIRE([gl_INCLUDE_NEXT])dnl
@@ -36,10 +36,8 @@ sed -n '\#/]m4_quote(m4_defn([gl_HEADER_NAME]))[#{s#.*"\(.*/]m4_quote(m4_defn([g
     fi
     AS_VAR_POPDEF([ac_header_exists])dnl
     ])dnl
-  AC_DEFINE_UNQUOTED([FULL_PATH_]m4_quote(translit(m4_defn([gl_HEADER_NAME]),
-                                                   [-./abcdefghijklmnopqrstuvwxyz],
-                                                   [___ABCDEFGHIJKLMNOPQRSTUVWXYZ])),
-                     ["AS_VAR_GET(gl_full_header_path)"],
+  AC_DEFINE_UNQUOTED(AS_TR_CPP([FULL_PATH_]m4_quote(m4_defn([gl_HEADER_NAME]))),
+                     [<AS_VAR_GET(gl_full_header_path)>],
                      [Define this to the full path to <]m4_quote(m4_defn([gl_HEADER_NAME]))[>.])
   AS_VAR_POPDEF([gl_full_header_path])dnl
 ])dnl