Explorar o código

configure.ac: Allow configuration of random device path

Julien 'Lta' BALLET %!s(int64=10) %!d(string=hai) anos
pai
achega
43475888af
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      configure.ac

+ 8 - 1
configure.ac

@@ -88,7 +88,14 @@ AM_CONDITIONAL(COMPAT_STRLCPY, [test x$compat_strlcpy = xyes])
 AC_CHECK_HEADERS([bsd/string.h])
 AC_CHECK_HEADERS([langinfo.h])
 
-## Checks for doxygen presence
+## Configure random device path
+AC_ARG_WITH([urandom], 
+    [AS_HELP_STRING([--with-urandom=PATH], 
+        [Configure the path of the random generation device used @<:@default=/dev/urandom@:>@ ])],
+    [], [with_urandom=/dev/urandom])
+AC_DEFINE_UNQUOTED([URANDOM], ["$with_urandom"], [Path of the random number generation device])
+
+## Check for doxygen presence
 AC_CHECK_PROGS([DOXYGEN], [doxygen])
 AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
 if test -z "$DOXYGEN";