This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help on aclocal/autoconf ;)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]