Index: ossp-pkg/str/configure RCS File: /v/ossp/cvs/ossp-pkg/str/Attic/configure,v rcsdiff -q -kk '-r1.9' '-r1.10' -u '/v/ossp/cvs/ossp-pkg/str/Attic/configure,v' 2>/dev/null --- configure 2000/07/14 11:04:42 1.9 +++ configure 2001/04/28 08:18:51 1.10 @@ -1480,14 +1480,69 @@ fi done +for ac_func in isnan isinf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:1487: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + echo $ac_n "checking for modf""... $ac_c" 1>&6 -echo "configure:1486: checking for modf" >&5 +echo "configure:1541: checking for modf" >&5 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_modf=yes" else @@ -1528,7 +1583,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6 -echo "configure:1532: checking for modf in -lm" >&5 +echo "configure:1587: checking for modf in -lm" >&5 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1536,7 +1591,7 @@ ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else Index: ossp-pkg/str/configure.in RCS File: /v/ossp/cvs/ossp-pkg/str/Attic/configure.in,v rcsdiff -q -kk '-r1.8' '-r1.9' -u '/v/ossp/cvs/ossp-pkg/str/Attic/configure.in,v' 2>/dev/null --- configure.in 2000/07/14 11:04:42 1.8 +++ configure.in 2001/04/28 08:18:51 1.9 @@ -29,6 +29,7 @@ AC_CHECK_SIZEOF(void *, 4) AC_HAVE_FUNCS(memmove memset memcmp memchr) +AC_HAVE_FUNCS(isnan isinf) AC_CHECK_FUNC(modf, , AC_CHECK_LIB(m, modf)) Index: ossp-pkg/str/str_config.h.in RCS File: /v/ossp/cvs/ossp-pkg/str/Attic/str_config.h.in,v co -q -kk -p'1.4' '/v/ossp/cvs/ossp-pkg/str/Attic/str_config.h.in,v' | diff -u /dev/null - -L'ossp-pkg/str/str_config.h.in' 2>/dev/null --- ossp-pkg/str/str_config.h.in +++ - 2024-05-15 11:30:46.781779373 +0200 @@ -0,0 +1,42 @@ +/* str_config.h.in. Generated automatically from configure.in by autoheader. */ + +#undef STR_DEBUG + +/* The number of bytes in a char. */ +#undef SIZEOF_CHAR + +/* The number of bytes in a int. */ +#undef SIZEOF_INT + +/* The number of bytes in a long. */ +#undef SIZEOF_LONG + +/* The number of bytes in a long long. */ +#undef SIZEOF_LONG_LONG + +/* The number of bytes in a short. */ +#undef SIZEOF_SHORT + +/* The number of bytes in a void *. */ +#undef SIZEOF_VOID_P + +/* Define if you have the isinf function. */ +#undef HAVE_ISINF + +/* Define if you have the isnan function. */ +#undef HAVE_ISNAN + +/* Define if you have the memchr function. */ +#undef HAVE_MEMCHR + +/* Define if you have the memcmp function. */ +#undef HAVE_MEMCMP + +/* Define if you have the memmove function. */ +#undef HAVE_MEMMOVE + +/* Define if you have the memset function. */ +#undef HAVE_MEMSET + +/* Define if you have the m library (-lm). */ +#undef HAVE_LIBM Index: ossp-pkg/str/str_format.c RCS File: /v/ossp/cvs/ossp-pkg/str/str_format.c,v rcsdiff -q -kk '-r1.23' '-r1.24' -u '/v/ossp/cvs/ossp-pkg/str/str_format.c,v' 2>/dev/null --- str_format.c 2001/04/27 12:24:52 1.23 +++ str_format.c 2001/04/28 08:18:51 1.24 @@ -112,6 +112,14 @@ #define NUM_BUF_SIZE 512 #define NDIG 80 +/* compatibility */ +#if !defined(HAVE_ISNAN) +#define isnan(d) (0) +#endif +#if !defined(HAVE_ISINF) +#define isinf(d) (0) +#endif + /* * Convert decimal number to its string representation. The number of * digits is specified by ndigit decpt is set to the position of the