diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-02-26 21:35:52 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-02-26 21:35:52 (GMT) |
commit | 4e98790eef8c37e8e16734574cc9c2c9b564892b (patch) | |
tree | acc5eb75a48b7ec6ff3f60f71d7192bb09070f3e /win/configure | |
parent | 1884b124718fae2f0fc70fc56a3645d9c918cbb4 (diff) | |
parent | 672ad30f66fb7d68caca7ccfd50dfa6abfc551d2 (diff) | |
download | tk-4e98790eef8c37e8e16734574cc9c2c9b564892b.zip tk-4e98790eef8c37e8e16734574cc9c2c9b564892b.tar.gz tk-4e98790eef8c37e8e16734574cc9c2c9b564892b.tar.bz2 |
Provide fallback for _strtoi64
Diffstat (limited to 'win/configure')
-rwxr-xr-x | win/configure | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/win/configure b/win/configure index 70b9eca..37df097 100755 --- a/win/configure +++ b/win/configure @@ -4028,6 +4028,73 @@ fi +#------------------------------------------- +# Check for _strtoi64 +#------------------------------------------- + +echo "$as_me:$LINENO: checking availability of _strtoi64" >&5 +echo $ECHO_N "checking availability of _strtoi64... $ECHO_C" >&6 +if test "${tcl_have_strtoi64+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <stdlib.h> +int +main () +{ +_strtoi64(0,0,0) + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + tcl_have_strtoi64=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +tcl_have_strtoi64=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $tcl_have_strtoi64" >&5 +echo "${ECHO_T}$tcl_have_strtoi64" >&6 +if test $tcl_have_strtoi64 = no; then + +cat >>confdefs.h <<\_ACEOF +#define NO_STRTOI64 1 +_ACEOF + +fi + #-------------------------------------------------------------------- # Windows XP theme engine header for Ttk #-------------------------------------------------------------------- |