~ :
~ :This won't work, because translit is an m4 construct, and $sn_decl is
~ :a shell variable. This will convert $sn_decl to $SN_DECL, and let the
~ :shell cope with that.
oops.. yep. Noticed that :-\ Thanks.
~ :My macro won't work if you call it with a shell variable, so you can't
~ :call i
On 29 Feb 2000 out of nowhere Ian Lance Taylor spoke:
~ :
~ :I don't know what sort of playing around you were doing.
here's exact piece which I made based on the macro you suggested:
AC_DEFUN(SN_CHECK_DECL,[
AC_MSG_CHECKING([whether $1 must be declared])
AC_CACHE_VAL(sn_cv_decl_needed_$1,
[AC_
~ :> sure. it's Mandrake linux release 6.0, it's based on r.h. 6.0 package
~ :> though, so redhat might have it too.
~ :>
~ :As a datapoint, none of the rh dists that i've tried (6.0, 6.1, 6.2
~ :beta) have a listing or version string for autoconf >= 2.14. All of
~ :them are 2.13.
hmm.. So it'
~ :CyberPsychotic> am using autoconf 1.4.1 package (shipped with
~ :CyberPsychotic> r.h. 6.0) and this macro isn't defined there, starting
~ :
~ :Can you tell me who packaged Autoconf 2.14.1 (I guess that's what you
~ :meant).
sure. it's Mandrake linux release 6.0, it's
~ :The GNU binutils use this macro to detect this case:
~ :
oh, by the way while playing with this macro I noticed a couple of
problems :
1. `test $bfd_cv_decl_needed_$1` didn't work because $bfd_cv_decl_needed
was considered as two shell variables $bfd_cv_decl_needed and $1, so I had
to tweak it
~ :
~ : - Macro: AC_CHECK_DECL (SYMBOL, [ACTION-IF-FOUND],
~ : [ACTION-IF-NOT-FOUND], [INCLUDES])
This one sounds exactly what I am looking for, but I am using autoconf
1.4.1 package (shipped with r.h. 6.0) and this macro isn't defined there,
starting with what release this macro has be
On 26 Feb 2000 out of nowhere Ian Lance Taylor spoke:
~ :They are not defined on SunOS because SunOS is not an ANSI C compliant
~ :system, and never has been. It doesn't even ship with an ANSI C
~ :compiler.
yeah, I noticed so, naitive compilers breaks on the code, however lots of
people use gc
Hello people,
Is there a way to pass command line switches to compiler when it tries to
detect whether certain function is present with AC_CHECK_FUNCS f.e.?
What I am actually trying to figure out is whether certain function
prototypes (printf, fprintf etc) are defined in includes by passing
-pe