Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_c_long_long.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_C_LONG_LONG
  8. #
  9. # DESCRIPTION
  10. #
  11. # Provides a test for the existence of the long long int type and defines
  12. # HAVE_LONG_LONG if it is found.
  13. #
  14. # LICENSE
  15. #
  16. # Copyright (c) 2008 Caolan McNamara <caolan@skynet.ie>
  17. #
  18. # Copying and distribution of this file, with or without modification, are
  19. # permitted in any medium without royalty provided the copyright notice
  20. # and this notice are preserved. This file is offered as-is, without any
  21. # warranty.
  22. #serial 6
  23. AU_ALIAS([AC_C_LONG_LONG], [AX_C_LONG_LONG])
  24. AC_DEFUN([AX_C_LONG_LONG],
  25. [AC_CACHE_CHECK(for long long int, ac_cv_c_long_long,
  26. [if test "$GCC" = yes; then
  27. ac_cv_c_long_long=yes
  28. else
  29. AC_TRY_COMPILE(,[long long int i;],
  30. ac_cv_c_long_long=yes,
  31. ac_cv_c_long_long=no)
  32. fi])
  33. if test $ac_cv_c_long_long = yes; then
  34. AC_DEFINE(HAVE_LONG_LONG, 1, [compiler understands long long])
  35. fi
  36. ])