mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-16 07:59:53 +00:00
autoconf: Fail from autoconf if the pkg-config macros aren't defined
Instead of postponing the error from missing pkg-config macros to when configure is run, make autoconf exit by using m4 macros.
This commit is contained in:
parent
9a43570f8c
commit
7154d661a6
11
configure.ac
11
configure.ac
@ -36,9 +36,14 @@ AC_CHECK_FUNC([dlopen], [],
|
||||
|
||||
dnl Make sure the pkg-config macros are defined
|
||||
m4_ifdef([PKG_PROG_PKG_CONFIG],,[
|
||||
AC_MSG_ERROR([The pkg-config autoconf macros are not defined.
|
||||
Did you run 'make configure'?])]
|
||||
)
|
||||
m4_errprint([Error: Could not locate the pkg-config autoconf macros.
|
||||
These are usually located in /usr/share/aclocal/pkg.m4. If your
|
||||
macros are in a different location, try setting the environment
|
||||
variable ACLOCAL="aclocal -I/other/macro/dir" before running
|
||||
autoreconf.
|
||||
])
|
||||
m4_exit([1])
|
||||
])
|
||||
PKG_PROG_PKG_CONFIG()
|
||||
|
||||
dnl LIB_DIR - library basename
|
||||
|
Loading…
x
Reference in New Issue
Block a user