# HG changeset patch # User Derek R. Price # Date 1145465237 0 # Node ID 93b92cba9e6a6f82f08e8a28b74399de8228b8d3 # Parent 68c436fda42518da6c2ccdae071ac901a1d1a4e7 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use rather than "/full/path.h". Update comment to match. Shorten & generalize m4_translit call via AS_TR_CPP. diff --git a/m4/ChangeLog b/m4/ChangeLog --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,8 +1,14 @@ +2006-04-19 Derek Price + Eric Blake + + * full-header-path.m4 (gl_FULL_HEADER_PATH): Use rather + than "/full/path.h". Update comment to match. Shorten & generalize + m4_translit call via AS_TR_CPP. + 2006-04-18 Derek Price Paul Eggert - * 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 diff --git a/m4/full-header-path.m4 b/m4/full-header-path.m4 --- a/m4/full-header-path.m4 +++ b/m4/full-header-path.m4 @@ -11,9 +11,9 @@ # 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 '). AC_DEFUN([gl_FULL_HEADER_PATH], [AC_LANG_PREPROC_REQUIRE()dnl AC_REQUIRE([gl_INCLUDE_NEXT])dnl @@ -36,10 +36,8 @@ 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]))), + [], [Define this to the full path to <]m4_quote(m4_defn([gl_HEADER_NAME]))[>.]) AS_VAR_POPDEF([gl_full_header_path])dnl ])dnl