Use 3-arg form of AC_DEFINE.
authorJim Meyering <jim@meyering.net>
Sun, 31 Jan 1999 05:29:34 +0000 (05:29 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 31 Jan 1999 05:29:34 +0000 (05:29 +0000)
m4/check-type.m4

index 3eb9dbb..717fc87 100644 (file)
@@ -1,7 +1,8 @@
-#serial 1
+#serial 2
 
 dnl Just like AC_CHECK_TYPE from autoconf-2.12, but also checks in unistd.h
 dnl on systems that have it.  Fujitsu UXP/V needs this for ssize_t.
+dnl Now, also uses the three-argument form of AC_DEFINE.
 
 undefine([AC_CHECK_TYPE])
 dnl AC_CHECK_TYPE(TYPE, DEFAULT)
@@ -23,6 +24,7 @@ changequote([,]), [#include <sys/types.h>
 #endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
 AC_MSG_RESULT($ac_cv_type_$1)
 if test $ac_cv_type_$1 = no; then
-  AC_DEFINE($1, $2)
+  AC_DEFINE($1, $2,
+    [  Define to \`$2' if certain system header files doesn't define it.])
 fi
 ])