]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
remove unused configure check for HAVE_STDARG_H
authorSebastian Pop <s.pop@samsung.com>
Thu, 13 Dec 2018 16:04:58 +0000 (10:04 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 9 Jan 2019 14:41:01 +0000 (15:41 +0100)
CMakeLists.txt
Makefile.in
configure
zconf-ng.h.in
zconf.h.in

index eed40c204a680e5b895e50d044ffb04122d029b2..07889e54ffe917231903a47bd15a6ae41cbac0bb 100644 (file)
@@ -234,7 +234,6 @@ endif()
 # Check for unistd.h and stdarg.h
 #
 check_include_file(unistd.h Z_HAVE_UNISTD_H)
-check_include_file(stdarg.h Z_HAVE_STDARG_H)
 
 if(WITH_SANITIZERS AND WITH_MSAN)
     message(FATAL_ERROR "Memory sanitizer is incompatible with address sanitizer")
@@ -564,7 +563,6 @@ macro(generate_cmakein input output)
 
         if (_line STREQUAL "#define ZCONF_H")
             file(APPEND ${output} "#cmakedefine Z_HAVE_UNISTD_H\n")
-            file(APPEND ${output} "#cmakedefine Z_HAVE_STDARG_H\n")
         endif()
     endforeach()
 endmacro(generate_cmakein)
index b5dda1b162636309beb3eedf9c94195783b0e085..958fd8cb7e80a4ad248811b2b3332978b42a70d2 100644 (file)
@@ -365,7 +365,7 @@ distclean: clean
        @if [ -f zconf.h.in ]; then \
        cp -p $(SRCDIR)/zconf.h.in zconf.h ; \
        TEMPFILE=zconfh_$$ ; \
-       echo "/#define ZCONF_H/ a\\\n#cmakedefine Z_HAVE_UNISTD_H\\n#cmakedefine Z_HAVE_STDARG_H\n" >> $$TEMPFILE &&\
+       echo "/#define ZCONF_H/ a\\\n#cmakedefine Z_HAVE_UNISTD_H\\n" >> $$TEMPFILE &&\
        sed -f $$TEMPFILE $(SRCDIR)/zconf.h.in > zconf.h.cmakein &&\
        touch -r $(SRCDIR)/zconf.h.in zconf.h.cmakein &&\
        rm $$TEMPFILE ; fi
index 22e7a6a1d723bea56ea0b006aba969943b5bfbf7..c1a15e800fe1a3735b1b0861cd3f51c16a602218 100755 (executable)
--- a/configure
+++ b/configure
@@ -709,19 +709,6 @@ fi
 
 echo >> configure.log
 
-# check for stdarg.h and save result in zconf.h
-cat > $test.c <<EOF
-#include <stdarg.h>
-int main() { return 0; }
-EOF
-if try $CC -c $CFLAGS $test.c; then
-  sed < zconf${SUFFIX}.h "/^#ifdef HAVE_STDARG_H.* may be/s/def HAVE_STDARG_H\(.*\) may be/ 1\1 was/" > zconf${SUFFIX}.temp.h
-  mv zconf${SUFFIX}.temp.h zconf${SUFFIX}.h
-  echo "Checking for stdarg.h... Yes." | tee -a configure.log
-else
-  echo "Checking for stdarg.h... No." | tee -a configure.log
-fi
-
 # if --zlib-compat was requested
 if test $compat -eq 1; then
   gzfileops=1
index 73845eed4c8ef07318e13ad50f98bb9e04e8b935..73150255248456258ade877fbbd08884e604efb2 100644 (file)
@@ -111,10 +111,6 @@ typedef void       *voidp;
 #  define Z_HAVE_UNISTD_H
 #endif
 
-#ifdef HAVE_STDARG_H    /* may be set to #if 1 by ./configure */
-#  define Z_HAVE_STDARG_H
-#endif
-
 #include <sys/types.h>      /* for off_t */
 #include <stdarg.h>         /* for va_list */
 
index 8f741c4653530bcddfb38db5e992ffb697332026..fd019ba828d433b1bb5620addb5f36838da1768f 100644 (file)
@@ -111,10 +111,6 @@ typedef void       *voidp;
 #  define Z_HAVE_UNISTD_H
 #endif
 
-#ifdef HAVE_STDARG_H    /* may be set to #if 1 by ./configure */
-#  define Z_HAVE_STDARG_H
-#endif
-
 #include <sys/types.h>      /* for off_t */
 #include <stdarg.h>         /* for va_list */