[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoreconf error: possibly undefine macro: AC_DEFINE
From: |
Ralf Wildenhues |
Subject: |
Re: autoreconf error: possibly undefine macro: AC_DEFINE |
Date: |
Fri, 26 Aug 2005 09:51:57 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi Carlos,
* Carlos Eduardo Rodrigues Diogenes wrote on Thu, Aug 25, 2005 at 09:26:47PM
CEST:
>
> I'm running autoreconf and I'm getting the following error:
>
> configure.ac:38: error: possibly undefined macro: AC_DEFINE
> If this token and others are legitimate, please use m4_pattern_allow.
> See the Autoconf documentation.
>
> Anyone know why this is ocurring and, in the perfect fashion, how to
> solve it?
Hmm. I cannot reproduce it.
> Here is the configure.ac file that I have, a peace of it:
I saved this snippet, added AC_OUTPUT at the end, removed your error
mark, ran aclocal, automake --add, autoconf, autoheader, ./configure.
Beside the missing definition for XORG_PROG_RAWCPP (which I suppose is
present in your environment) I could not see any problems.
Please try to describe a way to reproduce the issue. Which versions of
the respective autotools did you use?
Cheers,
Ralf
*snip*
> AC_PREREQ([2.57])
> AC_INIT(xdm,[0.99.1],
> [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xdm)
> AM_INIT_AUTOMAKE([dist-bzip2])
> AM_MAINTAINER_MODE
>
> AM_CONFIG_HEADER(config.h)
>
> AC_PROG_CC
> AC_PROG_INSTALL
> AC_CANONICAL_HOST
>
> XORG_PROG_RAWCPP
>
> AC_FUNC_FORK
> AC_CHECK_FUNC(mkstemp, AC_DEFINE(HAS_MKSTEMP,1, <== the error
> occur here
> [Define to 1 if you have the 'mkstemp' function.]))
> AC_CHECK_FUNC(getifaddrs, AC_DEFINE(HAS_GETIFADDRS,1,
> [Define to 1 if you have the 'getifaddrs' function.]))
> AC_CHECK_FUNC(getspnam, AC_DEFINE(USESHADOW,1,
> [Define to 1 if you have the shadow password functions.]))