On Feb 20, 2001, "John R. Jackson" <[EMAIL PROTECTED]> wrote:

> Also, someone has added this test to the main branch, but it's very odd:

> pushdef([AC_DEFINE_SAVED],defn([AC_DEFINE]))
> pushdef([AC_DEFINE],[AC_DEFINE_SAVED([$1],[$2],[Define to $2 if $1 is not defined])])
> AC_CHECK_TYPE(ssize_t, int)
> popdef([AC_DEFINE])
> popdef([AC_DEFINE_SAVED])

> Why is all that pushdef/popdef stuff in there?

Oh, now I remember!

The problem is that we don't have an acconfig.h template since we
moved all define templates into the third argument of AC_DEFINE.
However, AC_CHECK_TYPE calls AC_DEFINE without such an argument, so
autoheader would complain about no template being available for
ssize_t.  This was the ugly work-around I had come up with.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to