Mercurial > hg > octave-lyh > gnulib-hg
changeset 6693:d9fbbc8f7f1d
* gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
$target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Wed, 08 Mar 2006 09:32:40 +0000 |
parents | 9035dce9ba11 |
children | 06478ef0ebcc |
files | m4/ChangeLog m4/gc-random.m4 |
diffstat | 2 files changed, 11 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2006-03-08 Simon Josefsson <jas@extundo.com> + + * gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of + $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>. + 2006-03-07 Paul Eggert <eggert@cs.ucla.edu> * unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
--- a/m4/gc-random.m4 +++ b/m4/gc-random.m4 @@ -9,20 +9,22 @@ # Devices with randomness. # FIXME: Are these the best defaults? - case "${target}" in - *-openbsd*) + AC_REQUIRE([AC_CANONICAL_HOST])dnl + + case "$host_os" in + *openbsd*) NAME_OF_RANDOM_DEVICE="/dev/srandom" NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/prandom" NAME_OF_NONCE_DEVICE="/dev/urandom" ;; - *-netbsd*) + *netbsd*) NAME_OF_RANDOM_DEVICE="/dev/srandom" NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/urandom" NAME_OF_NONCE_DEVICE="/dev/urandom" ;; - *-solaris* | *-irix* | *-dec-osf* ) + *solaris* | *irix* | *dec-osf* ) NAME_OF_RANDOM_DEVICE="/dev/random" NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/random" NAME_OF_NONCE_DEVICE="/dev/random"