mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-14 04:45:57 +01:00
Configure: Add an error message when using deprecated "--with-defsdatadir"
This commit is contained in:
committed by
Carlos R. Mafra
parent
24f5b32469
commit
54c8535365
@@ -846,6 +846,12 @@ AC_ARG_WITH([pkgconfdir],
|
||||
[AC_MSG_ERROR([bad path '$withval' for pkgconfdir, expecting an absolute path])])],
|
||||
[with_pkgconfdir=""])
|
||||
|
||||
dnl Provide a message when trying to use "--with-defsdatadir" so that user can update its
|
||||
dnl arguments. Otherwise only a warning is issued, which is likely to be missed, which will
|
||||
dnl lead to perceived misbehaviour much later (and hard to debug).
|
||||
WM_DENY_ARG_WITH([defsdatadir],
|
||||
[AC_MSG_ERROR([option "--with-defsdatadir" have been replaced by "--with-pkgconfdir"])])
|
||||
|
||||
AS_IF([test "x$with_pkgconfdir" != "x"],
|
||||
[pkgconfdir="$with_pkgconfdir"],
|
||||
[pkgconfdir='${sysconfdir}/${PACKAGE_TARNAME}'])
|
||||
|
||||
Reference in New Issue
Block a user