diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-25 20:57:49 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-25 20:57:49 (GMT) |
commit | d1c4bf158203c4e8ec29fdeb83fd311e36320885 (patch) | |
tree | 15874534e282f67505ce4af5ba805a1ff70ec43e /funtools/ac_c_long_long.m4 | |
parent | e19a18e035dc4d0e8e215f9b452bb9ef6f58b9d7 (diff) | |
parent | 339420dd5dd874c41f6bab5808291fb4036dd022 (diff) | |
download | blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.zip blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.gz blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.bz2 |
Merge commit '339420dd5dd874c41f6bab5808291fb4036dd022' as 'funtools'
Diffstat (limited to 'funtools/ac_c_long_long.m4')
-rw-r--r-- | funtools/ac_c_long_long.m4 | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/funtools/ac_c_long_long.m4 b/funtools/ac_c_long_long.m4 new file mode 100644 index 0000000..fb6df1e --- /dev/null +++ b/funtools/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 +]) |