mirror of
https://github.com/X11Libre/xf86-video-sis.git
synced 2026-03-23 17:19:39 +00:00
configure: Automatically detect the default xorg-module-dir.
The module directory has changed to a per ABI folder in the xlibre-xserver. Now the default value of `xorg-module-dir` will be detected from the `moduledir` variable in xorg-server.pc. Signed-off-by: b-aaz <b-aazbsd.proton.me>
This commit is contained in:
@@ -18,6 +18,10 @@
|
|||||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
# During distcheck, system locations (as provided by pkg-config) may
|
||||||
|
# not be writable; provide instead relative locations.
|
||||||
|
DISTCHECK_CONFIGURE_FLAGS = --with-xorg-module-dir='$${libdir}/xorg/modules'
|
||||||
|
|
||||||
SUBDIRS = src man
|
SUBDIRS = src man
|
||||||
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
||||||
|
|
||||||
|
|||||||
@@ -45,11 +45,12 @@ LT_INIT([disable-static])
|
|||||||
AH_TOP([#include "xorg-server.h"])
|
AH_TOP([#include "xorg-server.h"])
|
||||||
|
|
||||||
# Define a configure option for an alternate module directory
|
# Define a configure option for an alternate module directory
|
||||||
|
PKG_PROG_PKG_CONFIG([0.25])
|
||||||
AC_ARG_WITH(xorg-module-dir,
|
AC_ARG_WITH(xorg-module-dir,
|
||||||
AS_HELP_STRING([--with-xorg-module-dir=DIR],
|
AS_HELP_STRING([--with-xorg-module-dir=DIR],
|
||||||
[Default xorg module directory [[default=$libdir/xorg/modules]]]),
|
[Default xorg module directory]),
|
||||||
[moduledir="$withval"],
|
[moduledir="$withval"],
|
||||||
[moduledir="$libdir/xorg/modules"])
|
[moduledir=`$PKG_CONFIG --variable=moduledir xorg-server`])
|
||||||
|
|
||||||
AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
|
AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
|
||||||
[Disable DRI support [[default=auto]]]),
|
[Disable DRI support [[default=auto]]]),
|
||||||
|
|||||||
Reference in New Issue
Block a user