From: Derek R. Price Date: Wed, 19 Apr 2006 16:47:17 +0000 (+0000) Subject: * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use rather X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7a344de97770ebd6503cedef97ad214e9f679fb;p=pspp * 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 index c443a4773d..1bb420dd50 100644 --- 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 index 3a1e2f08f1..b923215fcc 100644 --- a/m4/full-header-path.m4 +++ b/m4/full-header-path.m4 @@ -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 '). 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]))), + [], [Define this to the full path to <]m4_quote(m4_defn([gl_HEADER_NAME]))[>.]) AS_VAR_POPDEF([gl_full_header_path])dnl ])dnl