mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-18 10:45:15 +08:00
1998-09-27 Ben Elliston <bje@cygnus.com>
* acspecific.m4 (AC_C_STRINGIZE): New macro to test the availability of the stringizing operator in the C preprocessor. Contributed by Arnold Robbins <arnold@gnu.org> on behalf of the GNU AWK project. * acconfig.h (HAVE_STRINGIZE): Add for the AC_C_STRINGIZE macro.
This commit is contained in:
parent
ec86515693
commit
2b67d252eb
@ -7,7 +7,12 @@
|
||||
|
||||
* acspecific.m4 (AC_PROG_INSTALL): Substitute `INSTALL_SCRIPT'.
|
||||
Contributed by Franc,ois Pinard <pinard@iro.umontreal.ca>.
|
||||
(AC_C_STRINGIZE): New macro to test the availability of the
|
||||
stringizing operator in the C preprocessor. Contributed by Arnold
|
||||
Robbins <arnold@gnu.org> on behalf of the GNU AWK project.
|
||||
|
||||
* acconfig.h (HAVE_STRINGIZE): Add for the AC_C_STRINGIZE macro.
|
||||
|
||||
* testsuite/Makefile.in (check): If DejaGNU is not installed,
|
||||
print a warning and skip the `dejacheck' target (which will fail).
|
||||
(site.exp): Use tests to guard commands from generating error
|
||||
|
@ -104,6 +104,9 @@
|
||||
/* Define if you have the strftime function. */
|
||||
#undef HAVE_STRFTIME
|
||||
|
||||
/* Define if you have the ANSI # stringizing operator in cpp. */
|
||||
#undef HAVE_STRINGIZE
|
||||
|
||||
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
|
||||
#undef HAVE_SYS_WAIT_H
|
||||
|
||||
|
@ -1768,6 +1768,22 @@ if test $ac_cv_c_const = no; then
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN(AC_C_STRINGIZE, [
|
||||
AC_REQUIRE([AC_PROG_CPP])
|
||||
AC_MSG_CHECKING([for preprocessor stringizing operator])
|
||||
AC_CACHE_VAL(ac_cv_c_stringize,
|
||||
AC_EGREP_CPP([#teststring],[
|
||||
#define x(y) #y
|
||||
|
||||
char *s = x(teststring);
|
||||
], ac_cv_c_stringize=no, ac_cv_c_stringize=yes))
|
||||
if test "${ac_cv_c_stringize}" = yes
|
||||
then
|
||||
AC_DEFINE(HAVE_STRINGIZE)
|
||||
fi
|
||||
AC_MSG_RESULT([${ac_cv_c_stringize}])
|
||||
])dnl
|
||||
|
||||
define(AC_ARG_ARRAY,
|
||||
[errprint(__file__:__line__: [$0] has been removed; don't do unportable things with arguments
|
||||
)m4exit(4)])
|
||||
|
@ -1768,6 +1768,22 @@ if test $ac_cv_c_const = no; then
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN(AC_C_STRINGIZE, [
|
||||
AC_REQUIRE([AC_PROG_CPP])
|
||||
AC_MSG_CHECKING([for preprocessor stringizing operator])
|
||||
AC_CACHE_VAL(ac_cv_c_stringize,
|
||||
AC_EGREP_CPP([#teststring],[
|
||||
#define x(y) #y
|
||||
|
||||
char *s = x(teststring);
|
||||
], ac_cv_c_stringize=no, ac_cv_c_stringize=yes))
|
||||
if test "${ac_cv_c_stringize}" = yes
|
||||
then
|
||||
AC_DEFINE(HAVE_STRINGIZE)
|
||||
fi
|
||||
AC_MSG_RESULT([${ac_cv_c_stringize}])
|
||||
])dnl
|
||||
|
||||
define(AC_ARG_ARRAY,
|
||||
[errprint(__file__:__line__: [$0] has been removed; don't do unportable things with arguments
|
||||
)m4exit(4)])
|
||||
|
Loading…
Reference in New Issue
Block a user