diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 17:38:41 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 17:38:41 (GMT) |
commit | 5b44fb0d6530c4ff66a446afb69933aa8ffd014f (patch) | |
tree | e059f66d1f612e21fe9d83f9620c8715530353ec /funtools/util/ac_c_long_long.m4 | |
parent | da2e3d212171bbe64c1af39114fd067308656990 (diff) | |
parent | 23c7930d27fe11c4655e1291a07a821dbbaba78d (diff) | |
download | blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.zip blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.tar.gz blt-5b44fb0d6530c4ff66a446afb69933aa8ffd014f.tar.bz2 |
Merge commit '23c7930d27fe11c4655e1291a07a821dbbaba78d' as 'funtools'
Diffstat (limited to 'funtools/util/ac_c_long_long.m4')
-rw-r--r-- | funtools/util/ac_c_long_long.m4 | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/funtools/util/ac_c_long_long.m4 b/funtools/util/ac_c_long_long.m4 new file mode 100644 index 0000000..fb6df1e --- /dev/null +++ b/funtools/util/ac_c_long_long.m4 @@ -0,0 +1,36 @@ +##### http://autoconf-archive.cryp.to/ac_c_long_long.html +# +# 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. +# +# LAST MODIFICATION +# +# 2006-10-30 +# +# COPYLEFT +# +# Copyright (c) 2006 Caolan McNamara <caolan@skynet.ie> +# +# Copying and distribution of this file, with or without +# modification, are permitted in any medium without royalty provided +# the copyright notice and this notice are preserved. + +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, 1, [compiler understands long long]) + fi +]) |