Hi Simon,

* Simon Josefsson wrote on Wed, Mar 08, 2006 at 10:36:28AM CET:
> Ralf Wildenhues <[EMAIL PROTECTED]> writes:
> 
> > Better, thanks.  But
> >   --disable-random-device  (--enable-random-devide=no)
> > could IMVHO still be given a useful meaning, which it currently does not
> > have.  Since I don't actually use this code in any project, I can't tell
> > you how realistic this usage case would be.
> 
> I'm inclined to fix this in the source code, so that
> --disable-random-device actually end up disabling the use of just that
> device.  What do you think?

Oh, sure, I guess that would be fine.  In the macro, you'd have to
change the AC_ARG_ENABLE argument ACTION-IF-GIVEN though:
  test "$enableval" != "no" && NAME_OF_RANDOM_DEVICE=$enableval

to set the value in any case (so the user can override your defaults),
and avoid the warning later that file `no' does not exist:
    AC_CHECK_FILE($NAME_OF_RANDOM_DEVICE,,
      AC_MSG_WARN([[device for (strong) random data `$NAME_OF_RANDOM_DEVICE' 
does not exist]]))

Or am I missing something here (untested)?

Cheers,
Ralf


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to