autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command-line option processing


From: Sébastien Hinderer
Subject: Re: Command-line option processing
Date: Mon, 29 Oct 2007 16:47:22 +0100

Hi Benoît,

> AC_ARG_WITH([foo],
>             [AC_HELP_STRING([--with-foo=whatever],
>                             [Specifies something for foo @<:@default value 
> here@:>@])],
>             [], [with_foo=no])
>
> case $with_foo in
>    no) echo some default action
>        ;;
>   bar) echo do whatever you want
>        ;;
>     *) AC_MSG_ERROR([Invalid value for --with-foo: `$with_foo'])
>        ;;
> esac
>
> Is that what you want?

No. I am looking for a way to catch the options the script really knows
nothing about. To be more concrete: the configure script of the brltty
project uses an option called -with-braille-drivers=. For the moment,
when configure is called with the mis-spelled
-with-braile-drivers=something (one l instead of two ls), the user is
not warned. We would like to detect the incorrect options and to report
them. Is that possible ?

Thanks,
Sébastien.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]