comparison m4/gc-random.m4 @ 9879:e0ce0891df69

Avoid some more autoconf warnings. * m4/acl.m4 (gl_FUNC_ACL): s/AC_HELP_STRING/AS_HELP_STRING/. * m4/afs.m4 (gl_AFS): Likewise. * m4/gc-random.m4 (gl_GC_RANDOM): Likewise. * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): s/AC_FOREACH/m4_foreach_w/. * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED) (gl_INTEGER_TYPE_SUFFIX): Likewise. * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE) (AC_CHECK_DECLS_ONCE): Likewise. Rename file... * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that gnulib-tool requires autoconf 2.59 or better. * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Wed, 09 Apr 2008 08:24:35 -0600
parents 1eae086746a0
children f6cba5a556ce
comparison
equal deleted inserted replaced
9878:f3f53950d4f1 9879:e0ce0891df69
1 # gc-random.m4 serial 2 1 # gc-random.m4 serial 3
2 dnl Copyright (C) 2005-2007 Free Software Foundation, Inc. 2 dnl Copyright (C) 2005-2008 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation 3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it, 4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved. 5 dnl with or without modifications, as long as this notice is preserved.
6 6
7 AC_DEFUN([gl_GC_RANDOM], 7 AC_DEFUN([gl_GC_RANDOM],
37 ;; 37 ;;
38 esac 38 esac
39 39
40 AC_MSG_CHECKING([device with (strong) random data...]) 40 AC_MSG_CHECKING([device with (strong) random data...])
41 AC_ARG_ENABLE(random-device, 41 AC_ARG_ENABLE(random-device,
42 AC_HELP_STRING([--enable-random-device], 42 AS_HELP_STRING([--enable-random-device],
43 [device with (strong) randomness (for Nettle)]), 43 [device with (strong) randomness (for Nettle)]),
44 NAME_OF_RANDOM_DEVICE=$enableval) 44 NAME_OF_RANDOM_DEVICE=$enableval)
45 AC_MSG_RESULT($NAME_OF_RANDOM_DEVICE) 45 AC_MSG_RESULT($NAME_OF_RANDOM_DEVICE)
46 46
47 AC_MSG_CHECKING([device with pseudo random data...]) 47 AC_MSG_CHECKING([device with pseudo random data...])
48 AC_ARG_ENABLE(pseudo-random-device, 48 AC_ARG_ENABLE(pseudo-random-device,
49 AC_HELP_STRING([--enable-pseudo-random-device], 49 AS_HELP_STRING([--enable-pseudo-random-device],
50 [device with pseudo randomness (for Nettle)]), 50 [device with pseudo randomness (for Nettle)]),
51 NAME_OF_PSEUDO_RANDOM_DEVICE=$enableval) 51 NAME_OF_PSEUDO_RANDOM_DEVICE=$enableval)
52 AC_MSG_RESULT($NAME_OF_PSEUDO_RANDOM_DEVICE) 52 AC_MSG_RESULT($NAME_OF_PSEUDO_RANDOM_DEVICE)
53 53
54 AC_MSG_CHECKING([device with unpredictable data for nonces...]) 54 AC_MSG_CHECKING([device with unpredictable data for nonces...])
55 AC_ARG_ENABLE(nonce-device, 55 AC_ARG_ENABLE(nonce-device,
56 AC_HELP_STRING([--enable-nonce-device], 56 AS_HELP_STRING([--enable-nonce-device],
57 [device with unpredictable nonces (for Nettle)]), 57 [device with unpredictable nonces (for Nettle)]),
58 NAME_OF_NONCE_DEVICE=$enableval) 58 NAME_OF_NONCE_DEVICE=$enableval)
59 AC_MSG_RESULT($NAME_OF_NONCE_DEVICE) 59 AC_MSG_RESULT($NAME_OF_NONCE_DEVICE)
60 60
61 if test "$cross_compiling" != yes; then 61 if test "$cross_compiling" != yes; then
70 if test "$NAME_OF_NONCE_DEVICE" != "no"; then 70 if test "$NAME_OF_NONCE_DEVICE" != "no"; then
71 AC_CHECK_FILE($NAME_OF_NONCE_DEVICE,, 71 AC_CHECK_FILE($NAME_OF_NONCE_DEVICE,,
72 AC_MSG_WARN([[Device `$NAME_OF_NONCE_DEVICE' does not exist, consider to use --enable-nonce-device]])) 72 AC_MSG_WARN([[Device `$NAME_OF_NONCE_DEVICE' does not exist, consider to use --enable-nonce-device]]))
73 fi 73 fi
74 else 74 else
75 AC_MSG_NOTICE([[Cross compiling, assuming random devices exists on the target host...]]) 75 AC_MSG_NOTICE([[Cross compiling, assuming random devices exists on the target host...]])
76 fi 76 fi
77 77
78 # FIXME?: Open+read 42 bytes+close twice and compare data. Should differ. 78 # FIXME?: Open+read 42 bytes+close twice and compare data. Should differ.
79 79
80 AC_DEFINE_UNQUOTED(NAME_OF_RANDOM_DEVICE, "$NAME_OF_RANDOM_DEVICE", 80 AC_DEFINE_UNQUOTED(NAME_OF_RANDOM_DEVICE, "$NAME_OF_RANDOM_DEVICE",