comparison configure.ac @ 392:54465fca8b9e

Use PKG_CHECK_MODULES to find the gsf-1 library It uses the architecture-prefixed pkg-config binary, so cross-compiling libpst on multi-arch systems works. Fixes: https://bugs.debian.org/838390
author Paul Wise <pabs3@bonedaddy.net>
date Mon, 23 Dec 2019 12:23:22 +0800
parents 5c0ce43c7532
children ffbb5e3f2551
comparison
equal deleted inserted replaced
391:f2742d1160a4 392:54465fca8b9e
369 enable_profiling=no 369 enable_profiling=no
370 ]) 370 ])
371 AC_MSG_RESULT([$enable_profiling]) 371 AC_MSG_RESULT([$enable_profiling])
372 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"]) 372 AM_CONDITIONAL(GPROF_PROFILING, [test "$enable_profiling" = "yes"])
373 373
374 gsf_flags="`pkg-config libgsf-1 --cflags`" 374 PKG_CHECK_MODULES([GSF], [libgsf-1])
375 gsf_libs="`pkg-config libgsf-1 --libs`"
376 if test "$gsf_flags" = ""; then
377 AC_MSG_ERROR(libgsf not found)
378 fi
379
380 AC_SUBST(GSF_FLAGS, [$gsf_flags])
381 AC_SUBST(GSF_LIBS, [$gsf_libs])
382 375
383 PKG_CHECK_MODULES([ZLIB], [zlib]) 376 PKG_CHECK_MODULES([ZLIB], [zlib])
384 377
385 AC_OUTPUT( \ 378 AC_OUTPUT( \
386 Makefile \ 379 Makefile \