diff mbox

[v4l-utils] buildsystem: Fix not reporting if libjpeg is not being used

Message ID 20180115195023.28634-1-aklhfex@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Mayo Jan. 15, 2018, 7:50 p.m. UTC
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
---

If configured --without-jpeg, currently see:

compile time options summary
diff mbox

Patch

============================

    Host OS                    : linux-gnu
    X11                        : yes
    GL                         : yes
    glu                        : yes
    libjpeg                    : 

 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index dc1e9cbf5..cfbdffd99 100644
--- a/configure.ac
+++ b/configure.ac
@@ -195,7 +195,8 @@  AS_IF([test "x$with_jpeg" != xno],
                                      [have_jpeg=no
                                       AC_MSG_WARN(cannot find libjpeg (v6 or later required))])],
                        [have_jpeg=no
-                        AC_MSG_WARN(cannot find libjpeg)])])
+                        AC_MSG_WARN(cannot find libjpeg)])],
+      [have_jpeg=no])
 
 AM_CONDITIONAL([HAVE_JPEG], [test x$have_jpeg = xyes])