[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus configure.in
From: |
Ingo Ruhnke |
Subject: |
[Stratagus-CVS] stratagus configure.in |
Date: |
Fri, 22 Aug 2003 08:13:10 -0400 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Ingo Ruhnke <address@hidden> 03/08/22 08:13:10
Modified files:
. : configure.in
Log message:
- added check for bzip2
Patches:
Index: stratagus/configure.in
diff -u stratagus/configure.in:1.22 stratagus/configure.in:1.23
--- stratagus/configure.in:1.22 Fri Aug 8 06:16:43 2003
+++ stratagus/configure.in Fri Aug 22 08:13:10 2003
@@ -153,10 +153,13 @@
dnl --- CHECK FOR BZIP2 --------
AC_ARG_WITH(bzip2,
- [ --with-bzip2 [Use bzip2 (default: enabled)]],
BZIP2="$with_bzip2",)
-if test "$BZIP2" != "no"; then
- BZ2_CFLAGS="-DUSE_BZ2LIB"
- BZ2_LIBS="-lbz2"
+ [ --with-bzip2 [Use bzip2 (default: enabled)]],,
with_bzip2="yes")
+if test "$with_bzip2" != "no"; then
+ AC_CHECK_LIB(bz2, main,
+ [BZ2_CFLAGS="-DUSE_BZ2LIB"
+ BZ2_LIBS="-lbz2"],
+ [BZ2_CFLAGS=""
+ BZ2_LIBS=""])
else
BZ2_CFLAGS=""
BZ2_LIBS=""