stop configure if '--with-system-bz2' was passed, but no libbz2 is around
authorGuido Günther <agx@sigxcpu.org>
Thu, 25 Oct 2012 17:37:44 +0000 (19:37 +0200)
committerCarsten Schoenert <c.schoenert@t-online.de>
Tue, 9 Jul 2019 20:09:04 +0000 (21:09 +0100)
Gbp-Pq: Topic debian-hacks
Gbp-Pq: Name stop-configure-if-with-system-bz2-was-passed-but-no-.patch

old-configure.in

index 46e823b9f7415a53193ef2106bac9cb6693f7c3f..8f179ad2097a0fae36861d2b75a5854eb6c0fb19 100644 (file)
@@ -1826,7 +1826,7 @@ if test -z "$BZ2_DIR" -o "$BZ2_DIR" = no; then
     MOZ_SYSTEM_BZ2=
 else
     AC_CHECK_LIB(bz2, BZ2_bzread, [MOZ_SYSTEM_BZ2=1 MOZ_BZ2_LIBS="-lbz2"],
-    [MOZ_SYSTEM_BZ2= MOZ_BZ2_CFLAGS= MOZ_BZ2_LIBS=])
+    [AC_MSG_ERROR([You have run configure with --with-system-bz2, but there is no libbz2 around!])])
 fi
 CFLAGS=$_SAVE_CFLAGS
 LDFLAGS=$_SAVE_LDFLAGS