This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Help on aclocal/autoconf ;)
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: pcarlini at unitus dot it
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 12 Nov 2002 18:22:19 -0600 (CST)
- Subject: Re: Help on aclocal/autoconf ;)
- References: <3DD18140.6030706@unitus.it>
- Reply-to: rittle at labs dot mot dot com
In article <3DD18140.6030706@unitus.it>,
Paolo Carlini<pcarlini@unitus.it> writes:
> So, I tried to add the following lines to acinclude.m4:
> AC_DEFUN(AC_ISATTY, [
[...]
> What I'm doing wrong?
1. Do not name your new macro with a leading AC_ since that is
reserved for official autoconf macros.
2. Add the fact that you want to actually INVOKE the new test that you
defined. ;-) AC_DEFUN defines a new test but doesn't actually run it.
More general commentary: Consider defining a more general test:
GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_2 modeled after
GLIBCPP_CHECK_STDLIB_DECL_AND_LINKAGE_2. Consider defining
GLIBCPP_CHECK_UNISTD_SUPPORT modeled after
GLIBCPP_CHECK_STDLIB_SUPPORT (both to acinclude.m4). Then add
invocation to configure.in.
Regards,
Loren