home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnuawk.zip / aclocal.m4 < prev    next >
M4 Source File  |  1996-12-18  |  1KB  |  41 lines

  1. dnl
  2. dnl aclocal.m4 --- autoconf input file for gawk
  3. dnl 
  4. dnl Copyright (C) 1995, 96 the Free Software Foundation, Inc.
  5. dnl 
  6. dnl This file is part of GAWK, the GNU implementation of the
  7. dnl AWK Progamming Language.
  8. dnl 
  9. dnl GAWK is free software; you can redistribute it and/or modify
  10. dnl it under the terms of the GNU General Public License as published by
  11. dnl the Free Software Foundation; either version 2 of the License, or
  12. dnl (at your option) any later version.
  13. dnl 
  14. dnl GAWK is distributed in the hope that it will be useful,
  15. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. dnl GNU General Public License for more details.
  18. dnl 
  19. dnl You should have received a copy of the GNU General Public License
  20. dnl along with this program; if not, write to the Free Software
  21. dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  22. dnl
  23.  
  24. dnl gawk-specific macros for autoconf. one day hopefully part of autoconf
  25.  
  26. AC_DEFUN(GAWK_AC_C_STRINGIZE, [
  27. AC_REQUIRE([AC_PROG_CPP])
  28. AC_MSG_CHECKING([for ANSI stringizing capability])
  29. AC_CACHE_VAL(gawk_cv_c_stringize, 
  30. AC_EGREP_CPP([#teststring],[
  31. #define x(y) #y
  32.  
  33. char *s = x(teststring);
  34. ], gawk_cv_c_stringize=no, gawk_cv_c_stringize=yes))
  35. if test "${gawk_cv_c_stringize}" = yes
  36. then
  37.     AC_DEFINE(HAVE_STRINGIZE)
  38. fi
  39. AC_MSG_RESULT([${gawk_cv_c_stringize}])
  40. ])dnl
  41.