+2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
+
+ * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
+ * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
+ * configure: Regenerate.
+
2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
* configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
fi
])dnl
-# Work around a bug in autoheader. This can go away when we switch to
-# autoconf >2.50. The use of define instead of AC_DEFUN is
-# deliberate.
-define(AC_DEFINE_NOAUTOHEADER,
-[cat >> confdefs.h <<\EOF
-[#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1)
-EOF
-])
-
# We always want a C version of alloca() compiled into libiberty,
# because native-compiler support for the real alloca is so !@#$%
# unreliable that GCC has decided to use it only when being compiled
# dont have to check them here.
# Of the functions in $checkfuncs, newlib only has strerror.
- cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_STRERROR 1
-EOF
+_ACEOF
setobjs=yes
case "${host}" in
*-*-cygwin* | *-*-mingw*)
- cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_SYS_ERRLIST 1
-EOF
+_ACEOF
- cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_SYS_NERR 1
-EOF
+_ACEOF
;;
esac
# don't have to check them here.
# Of the functions in $checkfuncs, VxWorks only has strerror.
- cat >> confdefs.h <<\EOF
+ cat >>confdefs.h <<\_ACEOF
#define HAVE_STRERROR 1
-EOF
+_ACEOF
setobjs=yes
# dont have to check them here.
# Of the functions in $checkfuncs, newlib only has strerror.
- AC_DEFINE_NOAUTOHEADER(HAVE_STRERROR)
+ AC_DEFINE(HAVE_STRERROR)
setobjs=yes
case "${host}" in
*-*-cygwin* | *-*-mingw*)
- AC_DEFINE_NOAUTOHEADER(HAVE_SYS_ERRLIST)
- AC_DEFINE_NOAUTOHEADER(HAVE_SYS_NERR)
+ AC_DEFINE(HAVE_SYS_ERRLIST)
+ AC_DEFINE(HAVE_SYS_NERR)
;;
esac
# don't have to check them here.
# Of the functions in $checkfuncs, VxWorks only has strerror.
- AC_DEFINE_NOAUTOHEADER(HAVE_STRERROR)
+ AC_DEFINE(HAVE_STRERROR)
setobjs=yes
;;