mkvtoolnix/ac
Moritz Bunkus ecf44d0dbc
configure: fix setting HAVE_QTDBUS if module is found
The m4 macro `AC_DEFINE()` seems to write the definition into a file
that's later evaluated and from which `config.h` is built. This
temporary file must reside in the proper directory, otherwise
`configure` will only know that `HAVE_QTDBUS` might be defined but not
that it should actually be set.

The function checking for Qt6 uses a different temporary directory for
its checks whether `qmake` can compile with certain modules. For the
invocations it changes the current working directory to the temporary
directory. If `AC_DEFINE()` is used while the working directory is
changed, this will break the mechanism described above.

The solution is to only use `AC_DEFINE()` once the current working
directory's been changed back to the original one.

fixes #3744
2024-10-01 12:50:14 +02:00
..
ax_boost_base.m4
ax_boost_check_headers.m4
ax_boost_filesystem.m4
ax_boost_system.m4
ax_docbook.m4
benchmark.m4
boost.m4
c++-features.m4
check_version.m4
cmark.m4
compiler_version.m4
debugging_profiling.m4
drmingw.m4
dvdread.m4
endianess.m4
extra_inc_lib.m4
flac.m4
fmt.m4
gnurx.m4
gtest.m4
iconv.m4
initialization.m4
inttypes.m4
macos.m4
manpages_translations.m4
matroska.m4
mingw.m4 add MSIX packaging 2021-03-20 13:56:55 +01:00
nl_langinfo.m4
nlohmann_jsoncpp.m4
ogg.m4
other_features.m4
pandoc.m4
pkg.m4
po4a.m4
precompiled_headers.m4
pugixml.m4
qt6.m4 configure: fix setting HAVE_QTDBUS if module is found 2024-10-01 12:50:14 +02:00
static.m4
tiocgwinsz.m4
translations.m4
utf8cpp.m4
vorbis.m4
zlib.m4