Changeset 1017
- Timestamp:
- 07/07/07 22:06:23 (1 year ago)
- Files:
-
- 1.8.3/branches/devel/CHANGES.182 (modified) (1 diff)
- 1.8.3/branches/devel/config.h.in (modified) (1 diff)
- 1.8.3/branches/devel/configure (modified) (11 diffs)
- 1.8.3/branches/devel/configure.in (modified) (3 diffs)
- 1.8.3/branches/devel/hdrs/externs.h (modified) (1 diff)
- 1.8.3/branches/devel/src/bsd.c (modified) (1 diff)
- 1.8.3/branches/devel/src/parse.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.3/branches/devel/CHANGES.182
r1001 r1017 29 29 * Fixed handling of telnet NOPs sent by clients. [SW] 30 30 * The OpenSSL random number pool wasn't getting adequately 31 initialized on systems without /dev/urandom 31 initialized on systems without /dev/urandom [SW] 32 * Infinite loop in math code. Reported by Ashen-Sugar. [GM] 32 33 33 34 Version 1.8.2 patchlevel 5 June 13, 2007 1.8.3/branches/devel/config.h.in
r974 r1017 168 168 #undef HAS_CRYPT 169 169 170 #undef HAS_FPSETMASK 171 172 #undef HAS_FPSETROUND 170 #undef HAVE_FPSETMASK 171 172 #undef HAVE_FPSETROUND 173 174 #undef HAVE_ISNORMAL 173 175 174 176 #undef HAS_GAI_STRERROR 1.8.3/branches/devel/configure
r974 r1017 13837 13837 fi 13838 13838 13839 { echo "$as_me:$LINENO: checking for fpsetmask" >&5 13840 echo $ECHO_N "checking for fpsetmask... $ECHO_C" >&6; } 13841 if test "${ac_cv_func_fpsetmask+set}" = set; then 13839 13840 13841 for ac_func in fpsetmask fpsetround 13842 do 13843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13844 { echo "$as_me:$LINENO: checking for $ac_func" >&5 13845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13842 13847 echo $ECHO_N "(cached) $ECHO_C" >&6 13843 13848 else … … 13848 13853 cat >>conftest.$ac_ext <<_ACEOF 13849 13854 /* end confdefs.h. */ 13850 /* Define fpsetmask to an innocuous variant, in case <limits.h> declares fpsetmask.13855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13851 13856 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13852 #define fpsetmask innocuous_fpsetmask13857 #define $ac_func innocuous_$ac_func 13853 13858 13854 13859 /* System header to define __stub macros and hopefully few prototypes, 13855 which can conflict with char fpsetmask(); below.13860 which can conflict with char $ac_func (); below. 13856 13861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13857 13862 <limits.h> exists even on freestanding compilers. */ … … 13863 13868 #endif 13864 13869 13865 #undef fpsetmask13870 #undef $ac_func 13866 13871 13867 13872 /* Override any GCC internal prototype to avoid an error. … … 13871 13876 extern "C" 13872 13877 #endif 13873 char fpsetmask();13878 char $ac_func (); 13874 13879 /* The GNU C library defines this for functions which it implements 13875 13880 to always fail with ENOSYS. Some functions are actually named 13876 13881 something starting with __ and the normal name is an alias. */ 13877 #if defined __stub_ fpsetmask || defined __stub___fpsetmask13882 #if defined __stub_$ac_func || defined __stub___$ac_func 13878 13883 choke me 13879 13884 #endif … … 13882 13887 main () 13883 13888 { 13884 return fpsetmask();13889 return $ac_func (); 13885 13890 ; 13886 13891 return 0; … … 13921 13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13922 13927 (exit $ac_status); }; }; then 13923 ac_cv_func_fpsetmask=yes13928 eval "$as_ac_var=yes" 13924 13929 else 13925 13930 echo "$as_me: failed program was:" >&5 13926 13931 sed 's/^/| /' conftest.$ac_ext >&5 13927 13932 13928 ac_cv_func_fpsetmask=no13933 eval "$as_ac_var=no" 13929 13934 fi 13930 13935 … … 13932 13937 conftest$ac_exeext conftest.$ac_ext 13933 13938 fi 13934 { echo "$as_me:$LINENO: result: $ac_cv_func_fpsetmask" >&5 13935 echo "${ECHO_T}$ac_cv_func_fpsetmask" >&6; } 13936 if test $ac_cv_func_fpsetmask = yes; then 13937 cat >>confdefs.h <<\_ACEOF 13938 #define HAS_FPSETMASK 1 13939 _ACEOF 13940 13941 fi 13942 13943 { echo "$as_me:$LINENO: checking for fpsetround" >&5 13944 echo $ECHO_N "checking for fpsetround... $ECHO_C" >&6; } 13945 if test "${ac_cv_func_fpsetround+set}" = set; then 13946 echo $ECHO_N "(cached) $ECHO_C" >&6 13947 else 13948 cat >conftest.$ac_ext <<_ACEOF 13949 /* confdefs.h. */ 13950 _ACEOF 13951 cat confdefs.h >>conftest.$ac_ext 13952 cat >>conftest.$ac_ext <<_ACEOF 13953 /* end confdefs.h. */ 13954 /* Define fpsetround to an innocuous variant, in case <limits.h> declares fpsetround. 13955 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13956 #define fpsetround innocuous_fpsetround 13957 13958 /* System header to define __stub macros and hopefully few prototypes, 13959 which can conflict with char fpsetround (); below. 13960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13961 <limits.h> exists even on freestanding compilers. */ 13962 13963 #ifdef __STDC__ 13964 # include <limits.h> 13965 #else 13966 # include <assert.h> 13967 #endif 13968 13969 #undef fpsetround 13970 13971 /* Override any GCC internal prototype to avoid an error. 13972 Use char because int might match the return type of a GCC 13973 builtin and then its argument prototype would still apply. */ 13974 #ifdef __cplusplus 13975 extern "C" 13976 #endif 13977 char fpsetround (); 13978 /* The GNU C library defines this for functions which it implements 13979 to always fail with ENOSYS. Some functions are actually named 13980 something starting with __ and the normal name is an alias. */ 13981 #if defined __stub_fpsetround || defined __stub___fpsetround 13982 choke me 13983 #endif 13984 13985 int 13986 main () 13987 { 13988 return fpsetround (); 13989 ; 13990 return 0; 13939 ac_res=`eval echo '${'$as_ac_var'}'` 13940 { echo "$as_me:$LINENO: result: $ac_res" >&5 13941 echo "${ECHO_T}$ac_res" >&6; } 13942 if test `eval echo '${'$as_ac_var'}'` = yes; then 13943 cat >>confdefs.h <<_ACEOF 13944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13945 _ACEOF 13946 13947 fi 13948 done 13949 13950 { echo "$as_me:$LINENO: checking for isnormal" >&5 13951 echo $ECHO_N "checking for isnormal... $ECHO_C" >&6; } 13952 cat >conftest.$ac_ext <<_ACEOF 13953 13954 #include <math.h> 13955 int main(void) { 13956 return !isnormal(1.0); 13991 13957 } 13992 _ACEOF 13993 rm -f conftest.$ac_objext conftest$ac_exeext 13994 if { (ac_try="$ac_link" 13958 13959 _ACEOF 13960 rm -f conftest.$ac_objext 13961 if { (ac_try="$ac_compile" 13995 13962 case "(($ac_try" in 13996 13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; … … 13998 13965 esac 13999 13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14000 (eval "$ac_ link") 2>conftest.er113967 (eval "$ac_compile") 2>conftest.er1 14001 13968 ac_status=$? 14002 13969 grep -v '^ *+' conftest.er1 >conftest.err … … 14015 13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14016 13983 (exit $ac_status); }; } && 14017 { ac_try='test -s conftest $ac_exeext'13984 { ac_try='test -s conftest.$ac_objext' 14018 13985 { (case "(($ac_try" in 14019 13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; … … 14025 13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14026 13993 (exit $ac_status); }; }; then 14027 ac_cv_func_fpsetround=yes 13994 { echo "$as_me:$LINENO: result: yes" >&5 13995 echo "${ECHO_T}yes" >&6; } 13996 cat >>confdefs.h <<\_ACEOF 13997 #define HAVE_ISNORMAL 1 13998 _ACEOF 13999 14028 14000 else 14029 14001 echo "$as_me: failed program was:" >&5 14030 14002 sed 's/^/| /' conftest.$ac_ext >&5 14031 14003 14032 ac_cv_func_fpsetround=no 14033 fi 14034 14035 rm -f core conftest.err conftest.$ac_objext \ 14036 conftest$ac_exeext conftest.$ac_ext 14037 fi 14038 { echo "$as_me:$LINENO: result: $ac_cv_func_fpsetround" >&5 14039 echo "${ECHO_T}$ac_cv_func_fpsetround" >&6; } 14040 if test $ac_cv_func_fpsetround = yes; then 14041 cat >>confdefs.h <<\_ACEOF 14042 #define HAS_FPSETROUND 1 14043 _ACEOF 14044 14045 fi 14004 { echo "$as_me:$LINENO: result: no" >&5 14005 echo "${ECHO_T}no" >&6; } 14006 fi 14007 14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14046 14009 14047 14010 { echo "$as_me:$LINENO: checking for gai_strerror" >&5 … … 17369 17332 done 17370 17333 17371 { echo "$as_me:$LINENO: checking checkingfor union wait" >&517372 echo $ECHO_N "checking checkingfor union wait... $ECHO_C" >&6; }17334 { echo "$as_me:$LINENO: checking for union wait" >&5 17335 echo $ECHO_N "checking for union wait... $ECHO_C" >&6; } 17373 17336 { echo "$as_me:$LINENO: checking for union wait" >&5 17374 17337 echo $ECHO_N "checking for union wait... $ECHO_C" >&6; } 1.8.3/branches/devel/configure.in
r974 r1017 161 161 AC_CHECK_FUNC(bindtextdomain, [AC_DEFINE(HAS_BINDTEXTDOMAIN)]) 162 162 AC_CHECK_FUNC(crypt, [AC_DEFINE(HAS_CRYPT)]) 163 AC_CHECK_FUNC(fpsetmask, [AC_DEFINE(HAS_FPSETMASK)]) 164 AC_CHECK_FUNC(fpsetround, [AC_DEFINE(HAS_FPSETROUND)]) 163 AC_CHECK_FUNCS([fpsetmask fpsetround]) 164 AC_MSG_CHECKING([for isnormal]) 165 AC_COMPILE_IFELSE([ 166 #include <math.h> 167 int main(void) { 168 return !isnormal(1.0); 169 } 170 ], 171 [AC_MSG_RESULT(yes)] 172 [AC_DEFINE(HAVE_ISNORMAL)], 173 AC_MSG_RESULT(no)) 174 165 175 AC_CHECK_FUNC(gai_strerror, [AC_DEFINE(HAS_GAI_STRERROR)]) 166 176 AC_CHECK_FUNC(getaddrinfo, [AC_DEFINE(HAS_GETADDRINFO)]) … … 203 213 204 214 AC_CHECK_FUNCS([wait3 wait]) 205 AC_MSG_CHECKING( checking for union wait)215 AC_MSG_CHECKING([for union wait]) 206 216 AC_CHECK_TYPES([union wait], [AC_DEFINE(UNION_WAIT) 207 217 AC_MSG_RESULT(yes)], AC_MSG_RESULT(no), … … 231 241 232 242 # Will toupper()ing an already uppercase character be a problem? 233 AC_MSG_CHECKING( if it is safe to toupper uppers)243 AC_MSG_CHECKING([if it is safe to toupper uppers]) 234 244 AC_TRY_COMPILE( 235 245 [#include <ctype.h>], 1.8.3/branches/devel/hdrs/externs.h
r1007 r1017 332 332 bool is_strict_number(const char *str); 333 333 bool is_strict_integer(const char *str); 334 #ifdef HAVE_ISNORMAL 335 #define is_good_number(n) isnormal((n)) 336 #else 334 337 bool is_good_number(NVAL val); 338 #endif 335 339 336 340 /* From plyrlist.c */ 1.8.3/branches/devel/src/bsd.c
r998 r1017 513 513 #endif 514 514 515 /* These are FreeBSDisms to fix floating point exceptions */516 #ifdef HA S_FPSETROUND515 /* These are BSDisms to fix floating point exceptions */ 516 #ifdef HAVE_FPSETROUND 517 517 fpsetround(FP_RN); 518 518 #endif 519 #ifdef HA S_FPSETMASK519 #ifdef HAVE_FPSETMASK 520 520 fpsetmask(0L); 521 521 #endif 1.8.3/branches/devel/src/parse.c
r1007 r1017 353 353 } 354 354 355 #ifndef HAVE_ISNORMAL 355 356 /** Is string a number that isn't inf or nan? 357 * Only needed for systems without isnormal() 356 358 * \param num NVAL 357 359 * \retval 1 num is a good number. … … 373 375 return 1; 374 376 } 377 #endif 375 378 376 379 /** Is string an integer by the strict definition?
