Commit 30de3e8e authored by Alexandre Julliard's avatar Alexandre Julliard

aclocal.m4: Avoid invalid characters in the cache variable name in WINE_GET_SONAME.

parent f66c8e32
...@@ -33,22 +33,22 @@ dnl ...@@ -33,22 +33,22 @@ dnl
dnl Usage: WINE_GET_SONAME(LIBRARY, FUNCTION, [OTHER_LIBRARIES]) dnl Usage: WINE_GET_SONAME(LIBRARY, FUNCTION, [OTHER_LIBRARIES])
dnl dnl
AC_DEFUN([WINE_GET_SONAME], AC_DEFUN([WINE_GET_SONAME],
[AC_REQUIRE([WINE_PATH_LDD]) [AC_REQUIRE([WINE_PATH_LDD])dnl
AC_CACHE_CHECK([for -l$1 soname], ac_cv_lib_soname_$1, AS_VAR_PUSHDEF([ac_Lib],[ac_cv_lib_soname_$1])dnl
AC_CACHE_CHECK([for -l$1 soname], ac_Lib,
[ac_get_soname_save_LIBS=$LIBS [ac_get_soname_save_LIBS=$LIBS
LIBS="-l$1 $3 $LIBS" LIBS="-l$1 $3 $LIBS"
AC_LINK_IFELSE([AC_LANG_CALL([], [$2])], AC_LINK_IFELSE([AC_LANG_CALL([], [$2])],
[ac_cv_lib_soname_$1=`$ac_cv_path_LDD conftest$ac_exeext | grep lib$1\\.$LIBEXT | sed -e "s/^.*\(lib$1\.$LIBEXT[[^ ]]*\).*$/\1/"';2,$d'` [AS_VAR_SET(ac_Lib,[`$ac_cv_path_LDD conftest$ac_exeext | grep lib$1\\.$LIBEXT | sed -e "s/^.*\(lib$1\.$LIBEXT[[^ ]]*\).*$/\1/"';2,$d'`])
if test "x$ac_cv_lib_soname_$1" = "x" if test "x$ac_Lib" = "x"
then then
ac_cv_lib_soname_$1="lib$1.$LIBEXT" AS_VAR_SET(ac_Lib,"lib$1.$LIBEXT")
fi], fi],
[ac_cv_lib_soname_$1="lib$1.$LIBEXT"]) [AS_VAR_SET(ac_Lib,"lib$1.$LIBEXT")])
LIBS=$ac_get_soname_save_LIBS]) LIBS=$ac_get_soname_save_LIBS])
if test "x$ac_cv_lib_soname_$1" != xNONE AS_VAR_SET_IF(ac_Lib,[AC_DEFINE_UNQUOTED(AS_TR_CPP(SONAME_LIB$1),["]AS_VAR_GET(ac_Lib)["],
then AC_DEFINE_UNQUOTED(AS_TR_CPP(SONAME_LIB$1),"$ac_cv_lib_soname_$1", [Define to the soname of the lib$1 library.])])dnl
[Define to the soname of the lib$1 library.])dnl AS_VAR_POPDEF([ac_Lib])])
fi])
dnl **** Link C code with an assembly file **** dnl **** Link C code with an assembly file ****
dnl dnl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment