[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:19:25 -0400 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Ingo Ruhnke <address@hidden> 03/08/22 08:19:24
Modified files:
. : configure.in
Log message:
- added autodetect for zzlib
Patches:
Index: stratagus/configure.in
diff -u stratagus/configure.in:1.23 stratagus/configure.in:1.24
--- stratagus/configure.in:1.23 Fri Aug 22 08:13:10 2003
+++ stratagus/configure.in Fri Aug 22 08:19:24 2003
@@ -153,7 +153,7 @@
dnl --- CHECK FOR BZIP2 --------
AC_ARG_WITH(bzip2,
- [ --with-bzip2 [Use bzip2 (default: enabled)]],,
with_bzip2="yes")
+ [ --with-bzip2 [Use bzip2 (default: yes)]],,
with_bzip2="yes")
if test "$with_bzip2" != "no"; then
AC_CHECK_LIB(bz2, main,
[BZ2_CFLAGS="-DUSE_BZ2LIB"
@@ -170,13 +170,16 @@
dnl --- CHECK FOR ZZIPLIB ------
AC_ARG_WITH(zziplib,
- [ --with-zziplib [Use zziplib (default: disabled)]],
ZZIPLIB="$with_zziplib")
-if test "$ZZIPLIB" != "yes"; then
+ [ --with-zziplib [Use zziplib (default: autodetect)]],,
with_zziplib="yes")
+if test "$ZZIPLIB" != "no"; then
+ AC_CHECK_LIB(zziplib, main,
+ [ZZIPLIB_CFLAGS="-DUSE_ZZIPLIB"
+ ZZIPLIB_LIBS="-lzzip"],
+ [ZZIPLIB_CFLAGS="",
+ ZZIPLIB_LIBS=""])
+else
ZZIPLIB_CFLAGS=""
ZZIPLIB_LIBS=""
-else
- ZZIPLIB_CFLAGS="-DUSE_ZZIPLIB"
- ZZIPLIB_LIBS="-lzzip"
fi
AC_SUBST(ZZIPLIB_CFLAGS)
AC_SUBST(ZZIPLIB_LIBS)