📄 configure.in.int64_t
字号:
dnl autoconf rules for 64-bit integersdnl $Id: configure.in.int64_t,v 1.6 1999/10/13 22:52:59 heideman Exp $dnldnl start by looking for supporting functionsdnlAC_CHECK_FUNCS(strtoq strtoll)dnldnl int64_t seems to be what C 9x will have (in stdint.h),dnl but we're not there yet, so poke around for alternatives.dnlINT64_T_ALTERNATIVE=noneHAVE_SUPPORTING_FUNC=falseAC_CHECK_SIZEOF(long,0)if test $ac_cv_sizeof_long -ge 8then INT64_T_ALTERNATIVE=long AC_CHECK_FUNC(strtol)fiAC_CACHE_CHECK([for __int64_t],int64_t_HAVE___INT64_T,[AC_TRY_RUN([main() { __int64_t x; exit (sizeof(x) >= 8 ? 0 : 1); }],int64_t_HAVE___INT64_T=yes,int64_t_HAVE___INT64_T=no,int64_t_HAVE___INT64_T=cross)])if test x"$int64_t_HAVE___INT64_T" = x"yes" -a "x$INT64_T_ALTERNATIVE" = xnone; then INT64_T_ALTERNATIVE=__int64_tfiAC_CACHE_CHECK([for long long],int64_t_HAVE_LONG_LONG,[AC_TRY_RUN([main() { long long x; exit (sizeof(x) >= 8 ? 0 : 1); }],int64_t_HAVE_LONG_LONG=yes,int64_t_HAVE_LONG_LONG=no,int64_t_HAVE_LONG_LONG=cross)])if test x"$int64_t_HAVE_LONG_LONG" = x"yes" -a "x$INT64_T_ALTERNATIVE" = xnone; then INT64_T_ALTERNATIVE="long long"fidnldnl icky ickydnldnl AC_CHECK_TYPE_UNQUOTED(TYPE, DEFAULT)AC_DEFUN(AC_CHECK_TYPE_UNQUOTED,[AC_REQUIRE([AC_HEADER_STDC])dnlAC_MSG_CHECKING(for $1)AC_CACHE_VAL(ac_cv_type_$1,[AC_EGREP_CPP(dnlchangequote(<<,>>)dnl<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnlchangequote([,]), [#include <sys/types.h>#if STDC_HEADERS#include <stdlib.h>#include <stddef.h>#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnlAC_MSG_RESULT($ac_cv_type_$1)if test $ac_cv_type_$1 = no; then AC_DEFINE_UNQUOTED($1, $2)fi])dnldnl now set up int64_tdnlAC_CHECK_TYPE_UNQUOTED(int64_t,$INT64_T_ALTERNATIVE)dnldnl and broadcast our discoverydnlAC_MSG_CHECKING([which kind of 64-bit int to use])if test $ac_cv_type_int64_t = yes -o "$INT64_T_ALTERNATIVE" != nonethen if test "$INT64_T_ALTERNATIVE" = long -o "$ac_cv_func_strtoq" = yes -o "$ac_cv_func_strtoll" = yes then AC_DEFINE(HAVE_INT64) if test $ac_cv_type_int64_t = yes then AC_MSG_RESULT([int64_t]) else AC_MSG_RESULT($INT64_T_ALTERNATIVE) fi else AC_MSG_RESULT([missing strto 64-bit-type]) fielse AC_MSG_RESULT(none)fidnldnl see tclcl or ns's config.h for other STRTOI64 and STRTOI64_FMTSTRdnl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -