[Macro Index Page] [Download M4 Source]

ac_c_long_long

Synopsis

AC_C_LONG_LONG

Description

Provides a test for the existance of the long long int type and defines HAVE_LONG_LONG if it is found.

Version

1.1 (last modified: 2001-12-23)

Author

Caolan McNamara <caolan@skynet.ie>

M4 Source Code

AC_DEFUN([AC_C_LONG_LONG],
[AC_CACHE_CHECK(for long long int, ac_cv_c_long_long,
[if test "$GCC" = yes; then
  ac_cv_c_long_long=yes
  else
        AC_TRY_COMPILE(,[long long int i;],
   ac_cv_c_long_long=yes,
   ac_cv_c_long_long=no)
   fi])
   if test $ac_cv_c_long_long = yes; then
     AC_DEFINE(HAVE_LONG_LONG)
   fi
])

Copyright

GNU General Public License with this special exception.