(scm_char_alphabetic_p, scm_char_numeric_p, scm_char_whitespace_p,
[bpt/guile.git] / configure.in
index e47c76d..fe30c6e 100644 (file)
@@ -132,6 +132,15 @@ AC_ARG_ENABLE(regex,
   [  --disable-regex         omit regular expression interfaces],,
   enable_regex=yes)
 
+AC_ARG_ENABLE([discouraged],
+  AC_HELP_STRING([--disable-discouraged],[omit discouraged features]))
+
+if test "$enable_discouraged" = no; then
+  SCM_I_GSC_ENABLE_DISCOURAGED=0
+else
+  SCM_I_GSC_ENABLE_DISCOURAGED=1
+fi
+
 AC_ARG_ENABLE([deprecated],
   AC_HELP_STRING([--disable-deprecated],[omit deprecated features]))
 
@@ -851,10 +860,12 @@ AC_CHECK_FUNCS(asinh acosh atanh copysign finite sincos trunc)
 
 # C99 specifies isinf and isnan as macros.
 # HP-UX provides only macros, no functions.
-# Glibc 2.3.2 provides both macros and functions.
+# glibc 2.3.2 provides both macros and functions.
+# IRIX 6.5 and Solaris 8 only provide functions.
 #
-# We're concerned that some systems may have only functions, the following
-# tests are designed to detect both functions and macros.
+# The following tests detect isinf and isnan either as functions or as
+# macros from <math.h>.  Plain AC_CHECK_FUNCS is insufficient, it doesn't
+# use <math.h> so doesn't detect on macro-only systems like HP-UX.
 #
 AC_MSG_CHECKING([for isinf])
 AC_LINK_IFELSE(
@@ -1177,6 +1188,7 @@ AC_SUBST(top_srcdir_absolute)
 # Additional SCM_I_GSC definitions are above.
 AC_SUBST([SCM_I_GSC_GUILE_DEBUG])
 AC_SUBST([SCM_I_GSC_GUILE_DEBUG_FREELIST])
+AC_SUBST([SCM_I_GSC_ENABLE_DISCOURAGED])
 AC_SUBST([SCM_I_GSC_ENABLE_DEPRECATED])
 AC_SUBST([SCM_I_GSC_ENABLE_ELISP])
 AC_SUBST([SCM_I_GSC_HAVE_ARRAYS])