diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a624294..51397a3 100644 --- a/configure.ac +++ b/configure.ac @@ -37,4 +37,13 @@ AS_IF([test -n "$machine_id"], ] ) +AC_ARG_WITH([default-seed-path], + AC_HELP_STRING(--with-default-seed-path, [default seed path if no command line argument [/var/lib/random-seed]]), + [default_seed_path=$withval], + [default_seed_path=/var/lib/random-seed]) +AC_DEFINE_UNQUOTED(DEFAULT_SEED_PATH, "$default_seed_path", [default seed path]) +# assume people will not specify default_seed_path=/ +default_seed_path_dir=${default_seed_path%/*} +AC_SUBST(default_seed_path_dir) + AC_OUTPUT(Makefile) |