From 3165e4097068ef4490330e80bb7f927ce2c52e11 Mon Sep 17 00:00:00 2001 From: Fabrice Delliaux Date: Sun, 13 Nov 2022 13:48:40 +0100 Subject: AX_HAVE_QT: remove qmake stash file before rmdir Since a long time I'm seeing this when running AX_HAVE_QT : > checking for Qt... Info: creating stash file /tmp/tmp.2FXDo4jy40/.qmake.stash > rmdir: failed to remove '/tmp/tmp.2FXDo4jy40': Directory not empty > $ ls -a /tmp/tmp.2FXDo4jy40/ > . .. .qmake.stash --- m4/ax_have_qt.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m4/ax_have_qt.m4 b/m4/ax_have_qt.m4 index 407e9e9..0a12ccd 100644 --- a/m4/ax_have_qt.m4 +++ b/m4/ax_have_qt.m4 @@ -79,6 +79,7 @@ AC_DEFUN([AX_HAVE_QT], # This pro file dumps qmake's variables, but it only works on Qt 5 or later am_have_qt_dir=`mktemp -d` am_have_qt_pro="$am_have_qt_dir/test.pro" + am_have_qt_stash="$am_have_qt_dir/.qmake.stash" am_have_qt_makefile="$am_have_qt_dir/Makefile" # http://qt-project.org/doc/qt-5/qmake-variable-reference.html#qt cat > $am_have_qt_pro << EOF @@ -122,7 +123,7 @@ EOF $am_have_qt_qmexe $am_have_qt_pro -o $am_have_qt_makefile QT_CXXFLAGS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile CXXFLAGS INCPATH` QT_LIBS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile LIBS` - rm $am_have_qt_pro $am_have_qt_makefile + rm $am_have_qt_pro $am_have_qt_stash $am_have_qt_makefile rmdir $am_have_qt_dir # Look for specific tools in $PATH -- cgit v1.2.1