Bug 1256988 - Skip the Xt library test for MOZ_WIDGET_TOOLKIT==qt draft
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 16 Mar 2016 14:44:07 +0900
changeset 341014 17188faafeb578d54a86a75dc4d3cecbbf26f765
parent 341013 ec1172762ef776862e52d3ccf7c69817c59481a1
child 341015 9f33957b7da66bb0d5d255e5852a0975ee421767
push id13117
push userbmo:mh+mozilla@glandium.org
push dateWed, 16 Mar 2016 11:04:10 +0000
bugs1256988
milestone48.0a1
Bug 1256988 - Skip the Xt library test for MOZ_WIDGET_TOOLKIT==qt Now that the MOZ_WIDGET_TOOLKIT test is in moz.configure, the value for MOZ_WIDGET_TOOLKIT is now set in old-configure.in very early, which now allows to check for its value before doing to Xt test instead of resetting XT_LIBS later.
old-configure.in
--- a/old-configure.in
+++ b/old-configure.in
@@ -2117,23 +2117,25 @@ if test "$no_x" != "yes"; then
     XLIBS="-lX11 $XLIBS"
     _SAVE_LDFLAGS="$LDFLAGS"
     LDFLAGS="$XLDFLAGS $LDFLAGS"
     AC_CHECK_LIB(X11, XDrawLines, [X11_LIBS="-lX11"],
         [MISSING_X="$MISSING_X -lX11"], $XLIBS)
     AC_CHECK_LIB(Xext, XextAddDisplay, [XEXT_LIBS="-lXext"],
         [MISSING_X="$MISSING_X -lXext"], $XLIBS)
 
+    if test "$MOZ_WIDGET_TOOLKIT" != qt; then
     AC_CHECK_LIB(Xt, XtFree, [ XT_LIBS="-lXt"], [
         unset ac_cv_lib_Xt_XtFree
         AC_CHECK_LIB(ICE, IceFlush, [XT_LIBS="-lICE $XT_LIBS"],, $XT_LIBS $XLIBS)
         AC_CHECK_LIB(SM, SmcCloseConnection, [XT_LIBS="-lSM $XT_LIBS"],, $XT_LIBS $XLIBS)
         AC_CHECK_LIB(Xt, XtFree, [ XT_LIBS="-lXt $XT_LIBS"],
             [MISSING_X="$MISSING_X -lXt"], $X_PRE_LIBS $XT_LIBS $XLIBS)
         ])
+    fi
 
     dnl ========================================================
     dnl = Check for XShm
     dnl ========================================================
     AC_CHECK_LIB(Xext, XShmCreateImage, _HAVE_XSHM_XEXT=1,,
         $XLIBS $XEXT_LIBS)
 
     dnl ========================================================
@@ -3450,17 +3452,16 @@ gtk2)
 
 qt)
     MOZ_ENABLE_QT=1
     if test -z "$WITHOUT_X11"; then
       MOZ_ENABLE_XREMOTE=1
       MOZ_GL_DEFAULT_PROVIDER=GLX
       MOZ_X11=1
       AC_DEFINE(MOZ_X11)
-      XT_LIBS=
     fi
 
     USE_FC_FREETYPE=1
     MOZ_PDF_PRINTING=1
     AC_DEFINE(QT_NO_KEYWORDS)
     ;;
 
 cocoa)