Hi PeterB,
[snip]
>How about we use a custom m4 macro:
>
>define([gEDA_m4_check_macro], [ifdef([$1], , [m4_fatal([m4 macro `$1' is no=
>t=20
>defined. Ensure that `$2' is installed in your aclocal search path.],=20
>[1])])])
>
I like this approach. Catches missing macros and the lack
of -devel packages really early for those users who are building from
the repository. Tarball users aren't affected by the lack of a macro.
I tried your macro and m4 wasn't to happy with the empty success
string for the ifdef, so I added a nop there. Here's what I came up with
starting with your above macro:
AC_DEFUN([AC_GEDA_MACRO_CHECK],
[
ifdef( [$1],
true, dnl NOP
[
AC_FATAL(
[m4 macro `$1' is not defined. Ensure that `$2' is
installed in your aclocal search path.],
)
]
)
])
The indentation is for my sanity. :) Any additional thoughts or comments on
this macro? I am planning on putting this macro into libgeda/acinclude.m4
only (and only use the macro in libgeda), since that is the first thing
people should build and that better darn work.
I also need to update the autogen.sh scripts to look at exit status and
do the right thing as they currently do not.
-Ales
_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev