libiberty.m4 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. dnl Bits libiberty clients must do on their autoconf step.
  2. dnl
  3. dnl Copyright (C) 2012-2022 Free Software Foundation, Inc.
  4. dnl
  5. dnl This file is free software; you can redistribute it and/or modify
  6. dnl it under the terms of the GNU General Public License as published by
  7. dnl the Free Software Foundation; either version 3 of the License, or
  8. dnl (at your option) any later version.
  9. dnl
  10. dnl This program is distributed in the hope that it will be useful,
  11. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. dnl GNU General Public License for more details.
  14. dnl
  15. dnl You should have received a copy of the GNU General Public License
  16. dnl along with this program; see the file COPYING3. If not see
  17. dnl <http://www.gnu.org/licenses/>.
  18. dnl
  19. dnl Checks for declarations ansidecl.h and libiberty.h themselves
  20. dnl check with HAVE_DECL_XXX, etc.
  21. AC_DEFUN([libiberty_INIT],
  22. [
  23. # Check for presence and size of long long.
  24. AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
  25. AC_CHECK_DECLS([basename(char *), ffs, asprintf, vasprintf, snprintf, vsnprintf])
  26. AC_CHECK_DECLS([strtol, strtoul, strtoll, strtoull])
  27. AC_CHECK_DECLS([strverscmp])
  28. ])