mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Synced with pkg.m4 from edelib
This commit is contained in:
parent
427602bed6
commit
807dd35e38
15
m4/pkg.m4
15
m4/pkg.m4
@ -34,12 +34,17 @@ AC_DEFUN([PKG_CHECK_MODULES], [
|
|||||||
AC_MSG_RESULT($$1_CFLAGS)
|
AC_MSG_RESULT($$1_CFLAGS)
|
||||||
|
|
||||||
AC_MSG_CHECKING($1_LIBS)
|
AC_MSG_CHECKING($1_LIBS)
|
||||||
## don't use --libs since that can do evil things like add
|
## don't use --libs since that can do evil things like add -Wl,--export-dynamic
|
||||||
## -Wl,--export-dynamic
|
if test "$SHELL" = "/bin/ksh"; then
|
||||||
$1_LIBS="`$PKG_CONFIG --libs-only-L \"$2\"` `$PKG_CONFIG --libs-only-l \"$2\"`"
|
## ksh does not do escaping properly
|
||||||
AC_MSG_RESULT($$1_LIBS)
|
$1_LIBS="`$PKG_CONFIG --libs-only-L "$2"` `$PKG_CONFIG --libs-only-l "$2"`"
|
||||||
|
else
|
||||||
|
$1_LIBS="`$PKG_CONFIG --libs-only-L \"$2\"` `$PKG_CONFIG --libs-only-l \"$2\"`"
|
||||||
|
fi
|
||||||
|
|
||||||
$1_VERSION=`$PKG_CONFIG --modversion "$2"`
|
$1_LIBS="`$PKG_CONFIG --libs-only-L \"$2\"` `$PKG_CONFIG --libs-only-l \"$2\"`"
|
||||||
|
$1_VERSION=`$PKG_CONFIG --modversion "$2"`
|
||||||
|
AC_MSG_RESULT($$1_LIBS)
|
||||||
else
|
else
|
||||||
$1_CFLAGS=""
|
$1_CFLAGS=""
|
||||||
$1_LIBS=""
|
$1_LIBS=""
|
||||||
|
Loading…
Reference in New Issue
Block a user