OSSP CVS Repository

ossp - Check-in [443]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 443
Date: 2001-Apr-28 10:18:51 (local)
2001-Apr-28 08:18:51 (UTC)
User:rse
Branch:
Comment: *** empty log message ***
Tickets:
Inspections:
Files:
ossp-pkg/str/configure      1.9 -> 1.10     61 inserted, 6 deleted
ossp-pkg/str/configure.in      1.8 -> 1.9     1 inserted, 0 deleted
ossp-pkg/str/str_config.h.in      added-> 1.4
ossp-pkg/str/str_format.c      1.23 -> 1.24     8 inserted, 0 deleted

ossp-pkg/str/configure 1.9 -> 1.10

--- 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 <<EOF
+#line 1492 "configure"
+#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $ac_func(); below.  */
+#include <assert.h>
+/* 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 <<EOF
+#define $ac_tr_func 1
+EOF
+ 
+else
+  echo "$ac_t""no" 1>&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 <<EOF
-#line 1491 "configure"
+#line 1546 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char modf(); below.  */
@@ -1510,7 +1565,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:1514: \"$ac_link\") 1>&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 <<EOF
-#line 1540 "configure"
+#line 1595 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1547,7 +1602,7 @@
 modf()
 ; return 0; }
 EOF
-if { (eval echo configure:1551: \"$ac_link\") 1>&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


ossp-pkg/str/configure.in 1.8 -> 1.9

--- 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))
 


ossp-pkg/str/str_config.h.in -> 1.4

*** /dev/null    Sat Nov 23 01:32:01 2024
--- -    Sat Nov 23 01:32:25 2024
***************
*** 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


ossp-pkg/str/str_format.c 1.23 -> 1.24

--- 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

CVSTrac 2.0.1