On Sat, Jun 2, 2012 at 9:37 AM, illusionoflife
<ill...@gm...> wrote:
> Hello. I am trying to use autoopts,
> so I call
> AG_PATH_AUTOOPTS([5.12,[ ,[AC_MSG_ERROR([Autogen not found])]]])
>
> in configure.ac
> But I get following error. I suspect, that my version of autotools is too new.
> But what have I to do?
I can see how you might make this mistake, based on the documentation
in the source of AG_PATH_AUTOOPTS:
dnl AG_PATH_AUTOOPTS([MIN-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
The [] above are not intended to be correct m4 quoting, but rather
simply show that all the arguments are optional. Try:
AG_PATH_AUTOOPTS([5.12], [], [AC_MSG_ERROR([Autoopts not found])])
or possibly
AG_PATH_AUTOOPTS([5.12], [], AC_MSG_ERROR([Autoopts not found]))
My hunch is the first one will work, my head thinks the second one
makes more sense. So much for understanding m4 :)
Cheers,
Dave Hart
|