1 # ===========================================================================
2 # http://www.gnu.org/software/autoconf-archive/ax_c_long_long.html
3 # ===========================================================================
11 # Provides a test for the existence of the long long int type and defines
12 # HAVE_LONG_LONG if it is found.
16 # Copyright (c) 2008 Caolan McNamara <caolan@skynet.ie>
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
25 AU_ALIAS([AC_C_LONG_LONG], [AX_C_LONG_LONG])
26 AC_DEFUN([AX_C_LONG_LONG],
27 [AC_CACHE_CHECK(for long long int, ac_cv_c_long_long,
28 [if test "$GCC" = yes; then
31 AC_TRY_COMPILE(,[long long int i;],
32 ac_cv_c_long_long=yes,
35 if test $ac_cv_c_long_long = yes; then
36 AC_DEFINE(HAVE_LONG_LONG, 1, [compiler understands long long])