mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
build: Prefer AS_IF macro rather than shell if statement.
This commit is contained in:
parent
9eb2d6bafc
commit
a42d85ea21
27
configure.ac
27
configure.ac
@ -16,10 +16,7 @@ AC_PROG_SED
|
|||||||
AC_PROG_MKDIR_P
|
AC_PROG_MKDIR_P
|
||||||
AC_CHECK_PROG(WIDL, [widl], [widl], [no])
|
AC_CHECK_PROG(WIDL, [widl], [widl], [no])
|
||||||
|
|
||||||
if test "x$WIDL" = xno
|
AS_IF([test "x$WIDL" = "xno"], [AC_MSG_ERROR([widl is required to build header files.])])
|
||||||
then
|
|
||||||
AC_MSG_ERROR([widl is required to build header files.])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([1.11 foreign silent-rules subdir-objects -Wall -Werror])
|
AM_INIT_AUTOMAKE([1.11 foreign silent-rules subdir-objects -Wall -Werror])
|
||||||
AM_MAINTAINER_MODE([enable])
|
AM_MAINTAINER_MODE([enable])
|
||||||
@ -30,16 +27,13 @@ LT_INIT
|
|||||||
|
|
||||||
dnl Check compiler specific flags
|
dnl Check compiler specific flags
|
||||||
AC_SUBST(VKD3D_CFLAGS, "")
|
AC_SUBST(VKD3D_CFLAGS, "")
|
||||||
if test "x${GCC}" = "xyes"
|
AS_IF([test "x${GCC}" = "xyes"],
|
||||||
then
|
[VKD3D_CFLAGS="-Wall -pipe"
|
||||||
VKD3D_CFLAGS="-Wall -pipe"
|
VKD3D_CHECK_CFLAGS([-std=c99])
|
||||||
|
VKD3D_CHECK_CFLAGS([-Wdeclaration-after-statement])
|
||||||
VKD3D_CHECK_CFLAGS([-std=c99])
|
VKD3D_CHECK_CFLAGS([-Wmissing-prototypes])
|
||||||
VKD3D_CHECK_CFLAGS([-Wdeclaration-after-statement])
|
VKD3D_CHECK_CFLAGS([-Wunused-but-set-parameter])
|
||||||
VKD3D_CHECK_CFLAGS([-Wmissing-prototypes])
|
VKD3D_CHECK_CFLAGS([-Wvla])])
|
||||||
VKD3D_CHECK_CFLAGS([-Wunused-but-set-parameter])
|
|
||||||
VKD3D_CHECK_CFLAGS([-Wvla])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Check for headers
|
dnl Check for headers
|
||||||
AC_CHECK_HEADERS([vulkan/vulkan.h], [], [AC_MSG_ERROR([vulkan.h not found.])])
|
AC_CHECK_HEADERS([vulkan/vulkan.h], [], [AC_MSG_ERROR([vulkan.h not found.])])
|
||||||
@ -80,10 +74,7 @@ AC_OUTPUT
|
|||||||
dnl Output configuration info
|
dnl Output configuration info
|
||||||
echo ""
|
echo ""
|
||||||
WIDL_VERSION=`$WIDL -V`
|
WIDL_VERSION=`$WIDL -V`
|
||||||
if test $? -eq 0
|
AS_IF([test $? -eq 0], [WIDL_VERSION=`echo $WIDL_VERSION | cut -d' ' -f5`])
|
||||||
then
|
|
||||||
WIDL_VERSION=`echo $WIDL_VERSION | cut -d' ' -f5`
|
|
||||||
fi
|
|
||||||
echo " widl version: $WIDL_VERSION"
|
echo " widl version: $WIDL_VERSION"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user