build: replace obsolete AC_TRY_LINK_FUNC checks
This commit is contained in:
parent
0b47c812da
commit
95560eaef3
1 changed files with 12 additions and 6 deletions
16
configure.ac
16
configure.ac
|
|
@ -1362,9 +1362,12 @@ if $PKG_CONFIG --uninstalled $PANGO_PACKAGES; then
|
|||
else
|
||||
gtk_save_LIBS="$LIBS"
|
||||
LIBS="$PANGO_LIBS $LIBS"
|
||||
AC_TRY_LINK_FUNC(pango_context_new, :, AC_MSG_ERROR([
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_CALL([], [pango_context_new])],
|
||||
[:],
|
||||
[AC_MSG_ERROR([
|
||||
*** Can't link to Pango. Pango is required to build
|
||||
*** GTK+. For more information see http://www.pango.org]))
|
||||
*** GTK+. For more information see http://www.pango.org])])
|
||||
LIBS="$gtk_save_LIBS"
|
||||
fi
|
||||
|
||||
|
|
@ -1419,9 +1422,12 @@ if $PKG_CONFIG --uninstalled $ATK_PACKAGES; then
|
|||
else
|
||||
gtk_save_LIBS="$LIBS"
|
||||
LIBS="$ATK_LIBS $LIBS"
|
||||
AC_TRY_LINK_FUNC(atk_object_get_type, : , AC_MSG_ERROR([
|
||||
*** Cannot link to Accessibility Toolkit. Accessibility Toolkit is required
|
||||
*** to build GTK+]))
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_CALL([], [atk_object_get_type])],
|
||||
[:],
|
||||
[AC_MSG_ERROR([
|
||||
*** Can't link to Accessibility Toolkit. Accessibility Toolkit is required
|
||||
*** to build GTK+. For more information see http://www.gtk.org])])
|
||||
LIBS="$gtk_save_LIBS"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue