comparison src/auto/configure @ 8289:6ae3fb4fe7c1 v7.4.1437

commit https://github.com/vim/vim/commit/136f29a91dbafce424e31a4af133155f997e8f78 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 27 20:14:15 2016 +0100 patch 7.4.1437 Problem: Old system doesn't have isinf() and NAN. (Ben Fritz) Solution: Adjust #ifdefs. Detect isnan() and isinf() functions with configure. Use a replacement when missing. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Sat, 27 Feb 2016 20:15:04 +0100
parents 74b15ed0a259
children 446558924b66
comparison
equal deleted inserted replaced
8288:b4645b1175dd 8289:6ae3fb4fe7c1
10976 *) 10976 *)
10977 as_fn_error $? "unknown endianness 10977 as_fn_error $? "unknown endianness
10978 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 10978 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10979 esac 10979 esac
10980 10980
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10982 $as_echo_n "checking for inline... " >&6; }
10983 if ${ac_cv_c_inline+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 ac_cv_c_inline=no
10987 for ac_kw in inline __inline__ __inline; do
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990 #ifndef __cplusplus
10991 typedef int foo_t;
10992 static $ac_kw foo_t static_foo () {return 0; }
10993 $ac_kw foo_t foo () {return 0; }
10994 #endif
10995
10996 _ACEOF
10997 if ac_fn_c_try_compile "$LINENO"; then :
10998 ac_cv_c_inline=$ac_kw
10999 fi
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11001 test "$ac_cv_c_inline" != no && break
11002 done
11003
11004 fi
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11006 $as_echo "$ac_cv_c_inline" >&6; }
11007
11008 case $ac_cv_c_inline in
11009 inline | yes) ;;
11010 *)
11011 case $ac_cv_c_inline in
11012 no) ac_val=;;
11013 *) ac_val=$ac_cv_c_inline;;
11014 esac
11015 cat >>confdefs.h <<_ACEOF
11016 #ifndef __cplusplus
11017 #define inline $ac_val
11018 #endif
11019 _ACEOF
11020 ;;
11021 esac
11022
10981 11023
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
10983 $as_echo_n "checking for rlim_t... " >&6; } 11025 $as_echo_n "checking for rlim_t... " >&6; }
10984 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11026 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
11814 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 11856 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
11815 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 11857 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
11816 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 11858 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
11817 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 11859 sigvec strcasecmp strerror strftime stricmp strncasecmp \
11818 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 11860 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
11819 usleep utime utimes 11861 usleep utime utimes isnan isinf
11820 do : 11862 do :
11821 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11822 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11823 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11865 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11824 cat >>confdefs.h <<_ACEOF 11866 cat >>confdefs.h <<_ACEOF