瀏覽代碼

configure.ac: Allow configuration of random device path

Julien 'Lta' BALLET 10 年之前
父節點
當前提交
43475888af
共有 1 個文件被更改,包括 8 次插入1 次删除
  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";