Re: Command-line option processing

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

 



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.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux