9fadc0
commit 1ff5f3d2a0fcd48add9462567c30fe0e14585fb4
9fadc0
Author: Matt Whitlock <whitslack@users.noreply.github.com>
9fadc0
Date:   Wed Jun 9 10:25:18 2021 -0400
9fadc0
9fadc0
    configure.ac: fix SYSCONFDEFDIR default value
9fadc0
    
9fadc0
    configure.ac was using AC_ARG_WITH incorrectly, yielding a generated configure script like:
9fadc0
    
9fadc0
        # Check whether --with-sysconfdefdir was given.
9fadc0
        if test "${with_sysconfdefdir+set}" = set; then :
9fadc0
          withval=$with_sysconfdefdir; SYSCONFDEFDIR=$withval
9fadc0
        else
9fadc0
          "/etc/sysconfig"
9fadc0
        fi
9fadc0
    
9fadc0
    This commit fixes the default case so that the SYSCONFDEFDIR variable is assigned the value "/etc/sysconfig" rather than trying to execute "/etc/sysconfig" as a command.
9fadc0
    
9fadc0
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
9fadc0
9fadc0
diff --git a/configure.ac b/configure.ac
9fadc0
index f7d1947..33b81fe 100644
9fadc0
--- a/configure.ac
9fadc0
+++ b/configure.ac
9fadc0
@@ -172,7 +172,7 @@ AC_SUBST([RASSTATEDIR])
9fadc0
 AC_ARG_WITH(sysconfdefdir,
9fadc0
     AC_HELP_STRING([--with-sysconfdefdir=DIR], [rasdaemon environment file dir]),
9fadc0
     [SYSCONFDEFDIR=$withval],
9fadc0
-    ["/etc/sysconfig"])
9fadc0
+    [SYSCONFDEFDIR=/etc/sysconfig])
9fadc0
 AC_SUBST([SYSCONFDEFDIR])
9fadc0
 
9fadc0
 AC_DEFINE([RAS_DB_FNAME], ["ras-mc_event.db"], [ras events database])