Solution to --without-quicktime problem

Matthias Schwarzott <[email protected]>
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
Hi there!

On gentoo we also had the problem that --without-quicktime disabled all checks 
that based on pkgconfig (like test for libpng).

http://bugs.gentoo.org/show_bug.cgi?id=144551

The problem is this part of code (containing first check via pkgconfig):

have_libquicktime=false
if test x$with_libquicktime != xno ; then
  PKG_CHECK_MODULES(LIBQUICKTIME, [libquicktime >= 0.9.4],
...
fi

In here PKG_CHECK_MODULES is wrapped by if (and thus disabled in our bug 
case).
Unluckily this also expands to the check for pkg-config itself (as that has 
not been in configure before).

That means: --without-quicktime also disables complete pkgconfig.

Solution [Attached PATCH]:
Adding check for pkgconfig outside all ifs.


Greetings
Matthias

-- 
Matthias Schwarzott (zzam)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Mjpeg-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mjpeg-developer
mjpegtools-1.8.0-pkg-config.patch (text/x-diff, 423 B)
diff -ru mjpegtools-1.8.0-orig/configure.ac mjpegtools-1.8.0/configure.ac
--- mjpegtools-1.8.0-orig/configure.ac	2006-08-20 20:39:40.719351212 +0200
+++ mjpegtools-1.8.0/configure.ac	2006-08-20 20:20:43.652651808 +0200
@@ -233,6 +233,8 @@
       have_jpeg=true ],,)
 fi
 
+PKG_PROG_PKG_CONFIG
+
 have_libquicktime=false
 if test x$with_libquicktime != xno ; then
   PKG_CHECK_MODULES(LIBQUICKTIME, [libquicktime >= 0.9.4],
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.