]> andersk Git - openssh.git/commitdiff
- (dtucker) [configure.ac] Prevent configure --with-zlib from adding -Iyes
authordtucker <dtucker>
Sun, 20 Mar 2005 22:55:17 +0000 (22:55 +0000)
committerdtucker <dtucker>
Sun, 20 Mar 2005 22:55:17 +0000 (22:55 +0000)
   and -Lyes to CFLAGS and LIBS.  Pointed out by peter at slagheap.net,
   with & ok tim@

ChangeLog
configure.ac

index 583ea78b7552ad3186b7f4c88783339ce2bfd07c..e30ab164be032f0661f40b6342bb83f3f2ac5b84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+20050321
+ - (dtucker) [configure.ac] Prevent configure --with-zlib from adding -Iyes
+   and -Lyes to CFLAGS and LIBS.  Pointed out by peter at slagheap.net,
+   with & ok tim@
+
 20050317
  - (tim) [configure.ac] Bug 998. Make path for --with-opensc optional.
    Make --without-opensc work.
index 1e8b14558d3adc9febbb20e6b1960222b84c71ac..1a1f55458e8810d2d9ee542eec7a7434d23501e8 100644 (file)
@@ -587,10 +587,9 @@ AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME))
 dnl zlib is required
 AC_ARG_WITH(zlib,
        [  --with-zlib=PATH        Use zlib in PATH],
-       [
-               if test "x$withval" = "xno" ; then
-                       AC_MSG_ERROR([*** zlib is required ***])
-               fi
+       [ if test "x$withval" = "xno" ; then
+               AC_MSG_ERROR([*** zlib is required ***])
+         elif test "x$withval" != "xyes"; then
                if test -d "$withval/lib"; then
                        if test -n "${need_dash_r}"; then
                                LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
@@ -609,7 +608,7 @@ AC_ARG_WITH(zlib,
                else
                        CPPFLAGS="-I${withval} ${CPPFLAGS}"
                fi
-       ]
+       fi ]
 )
 
 AC_CHECK_LIB(z, deflate, ,
This page took 0.13369 seconds and 5 git commands to generate.