From 33bd0afe7d44d1cc1142ad4384175c84ec20147e Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Thu, 9 Aug 2018 10:55:32 -0400 Subject: rename --machine-id to --machine-id-path --- configure.ac | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index d13b943..813238a 100644 --- a/configure.ac +++ b/configure.ac @@ -22,18 +22,17 @@ AS_CASE([$enable_debug], [AC_MSG_ERROR([invalid argument to --enable-debug])] ) -AC_ARG_WITH([machine-id], - AC_HELP_STRING(--with-machine-id, [manually specify machine-id location [/etc/machine-id, /var/lib/dbus/machine-id]]), - [machine_id=$withval] +AC_ARG_WITH([machine-id-path], + AC_HELP_STRING(--with-machine-id-path, [manually specify machine-id location [/etc/machine-id, /var/lib/dbus/machine-id]]), + [machine_id_path=$withval] ) - -AS_IF([test -n "$machine_id"], +AS_IF([test -n "$machine_id_path"], [ - AS_CASE($machine_id, + AS_CASE($machine_id_path, [/*], [], [AC_MSG_ERROR([relative machine id path is invalid])] ) - AC_DEFINE_UNQUOTED(MACHINE_ID_PATH, "$machine_id", [machine id location]) + AC_DEFINE_UNQUOTED(MACHINE_ID_PATH, "$machine_id_path", [machine id location]) ] ) -- cgit v1.2.3-70-g09d2