| 1 | 
 -------------------- | 
 
 
 
 
 
 | 2 | 
 ./configure | 
 
 
 
 
 
 | 3 | 
 Sat Sep 17 11:33:47 WEST 2016 | 
 
 
 
 
 
 | 4 | 
 Checking for gcc... | 
 
 
 
 
 
 | 5 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 6 | 
 extern int getchar(); | 
 
 
 
 
 
 | 7 | 
 int hello() {return getchar();} | 
 
 
 
 
 
 | 8 | 
 === | 
 
 
 
 
 
 | 9 | 
 gcc -c ztest1268.c | 
 
 
 
 
 
 | 10 | 
 ... using gcc | 
 
 
 
 
 
 | 11 | 
  | 
 
 
 
 
 
 | 12 | 
 Checking for obsessive-compulsive compiler options... | 
 
 
 
 
 
 | 13 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 14 | 
 int foo() { return 0; } | 
 
 
 
 
 
 | 15 | 
 === | 
 
 
 
 
 
 | 16 | 
 gcc -c -O3 ztest1268.c | 
 
 
 
 
 
 | 17 | 
  | 
 
 
 
 
 
 | 18 | 
 Checking for shared library support... | 
 
 
 
 
 
 | 19 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 20 | 
 extern int getchar(); | 
 
 
 
 
 
 | 21 | 
 int hello() {return getchar();} | 
 
 
 
 
 
 | 22 | 
 === | 
 
 
 
 
 
 | 23 | 
 gcc -w -c -O3 -fPIC ztest1268.c | 
 
 
 
 
 
 | 24 | 
 gcc -dynamiclib -install_name ${exec_prefix}/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.8 -O3 -fPIC -o ztest1268.dylib ztest1268.o | 
 
 
 
 
 
 | 25 | 
 Building shared library libz.1.2.8.dylib with gcc. | 
 
 
 
 
 
 | 26 | 
  | 
 
 
 
 
 
 | 27 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 28 | 
 #include <sys/types.h> | 
 
 
 
 
 
 | 29 | 
 off64_t dummy = 0; | 
 
 
 
 
 
 | 30 | 
 === | 
 
 
 
 
 
 | 31 | 
 gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest1268.c | 
 
 
 
 
 
 | 32 | 
 ztest1268.c:2:1: error: unknown type name 'off64_t'; did you mean 'off_t'? | 
 
 
 
 
 
 | 33 | 
 off64_t dummy = 0; | 
 
 
 
 
 
 | 34 | 
 ^~~~~~~ | 
 
 
 
 
 
 | 35 | 
 off_t | 
 
 
 
 
 
 | 36 | 
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_types/_off_t.h:30:25: note: 'off_t' declared here | 
 
 
 
 
 
 | 37 | 
 typedef __darwin_off_t          off_t; | 
 
 
 
 
 
 | 38 | 
                                 ^ | 
 
 
 
 
 
 | 39 | 
 1 error generated. | 
 
 
 
 
 
 | 40 | 
 (exit code 1) | 
 
 
 
 
 
 | 41 | 
 Checking for off64_t... No. | 
 
 
 
 
 
 | 42 | 
  | 
 
 
 
 
 
 | 43 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 44 | 
 #include <stdio.h> | 
 
 
 
 
 
 | 45 | 
 int main(void) { | 
 
 
 
 
 
 | 46 | 
   fseeko(NULL, 0, 0); | 
 
 
 
 
 
 | 47 | 
   return 0; | 
 
 
 
 
 
 | 48 | 
 } | 
 
 
 
 
 
 | 49 | 
 === | 
 
 
 
 
 
 | 50 | 
 gcc -O3 -o ztest1268 ztest1268.c | 
 
 
 
 
 
 | 51 | 
 Checking for fseeko... Yes. | 
 
 
 
 
 
 | 52 | 
  | 
 
 
 
 
 
 | 53 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 54 | 
 #include <string.h> | 
 
 
 
 
 
 | 55 | 
 #include <errno.h> | 
 
 
 
 
 
 | 56 | 
 int main() { return strlen(strerror(errno)); } | 
 
 
 
 
 
 | 57 | 
 === | 
 
 
 
 
 
 | 58 | 
 gcc -O3 -o ztest1268 ztest1268.c | 
 
 
 
 
 
 | 59 | 
 Checking for strerror... Yes. | 
 
 
 
 
 
 | 60 | 
  | 
 
 
 
 
 
 | 61 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 62 | 
 #include <unistd.h> | 
 
 
 
 
 
 | 63 | 
 int main() { return 0; } | 
 
 
 
 
 
 | 64 | 
 === | 
 
 
 
 
 
 | 65 | 
 gcc -c -O3 ztest1268.c | 
 
 
 
 
 
 | 66 | 
 Checking for unistd.h... Yes. | 
 
 
 
 
 
 | 67 | 
  | 
 
 
 
 
 
 | 68 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 69 | 
 #include <stdarg.h> | 
 
 
 
 
 
 | 70 | 
 int main() { return 0; } | 
 
 
 
 
 
 | 71 | 
 === | 
 
 
 
 
 
 | 72 | 
 gcc -c -O3 ztest1268.c | 
 
 
 
 
 
 | 73 | 
 Checking for stdarg.h... Yes. | 
 
 
 
 
 
 | 74 | 
  | 
 
 
 
 
 
 | 75 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 76 | 
 #include <stdio.h> | 
 
 
 
 
 
 | 77 | 
 #include <stdarg.h> | 
 
 
 
 
 
 | 78 | 
 #include "zconf.h" | 
 
 
 
 
 
 | 79 | 
 int main() | 
 
 
 
 
 
 | 80 | 
 { | 
 
 
 
 
 
 | 81 | 
 #ifndef STDC | 
 
 
 
 
 
 | 82 | 
   choke me | 
 
 
 
 
 
 | 83 | 
 #endif | 
 
 
 
 
 
 | 84 | 
   return 0; | 
 
 
 
 
 
 | 85 | 
 } | 
 
 
 
 
 
 | 86 | 
 === | 
 
 
 
 
 
 | 87 | 
 gcc -c -O3 ztest1268.c | 
 
 
 
 
 
 | 88 | 
 Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). | 
 
 
 
 
 
 | 89 | 
  | 
 
 
 
 
 
 | 90 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 91 | 
 #include <stdio.h> | 
 
 
 
 
 
 | 92 | 
 #include <stdarg.h> | 
 
 
 
 
 
 | 93 | 
 int mytest(const char *fmt, ...) | 
 
 
 
 
 
 | 94 | 
 { | 
 
 
 
 
 
 | 95 | 
   char buf[20]; | 
 
 
 
 
 
 | 96 | 
   va_list ap; | 
 
 
 
 
 
 | 97 | 
   va_start(ap, fmt); | 
 
 
 
 
 
 | 98 | 
   vsnprintf(buf, sizeof(buf), fmt, ap); | 
 
 
 
 
 
 | 99 | 
   va_end(ap); | 
 
 
 
 
 
 | 100 | 
   return 0; | 
 
 
 
 
 
 | 101 | 
 } | 
 
 
 
 
 
 | 102 | 
 int main() | 
 
 
 
 
 
 | 103 | 
 { | 
 
 
 
 
 
 | 104 | 
   return (mytest("Hello%d\n", 1)); | 
 
 
 
 
 
 | 105 | 
 } | 
 
 
 
 
 
 | 106 | 
 === | 
 
 
 
 
 
 | 107 | 
 gcc -O3 -o ztest1268 ztest1268.c | 
 
 
 
 
 
 | 108 | 
 Checking for vsnprintf() in stdio.h... Yes. | 
 
 
 
 
 
 | 109 | 
  | 
 
 
 
 
 
 | 110 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 111 | 
 #include <stdio.h> | 
 
 
 
 
 
 | 112 | 
 #include <stdarg.h> | 
 
 
 
 
 
 | 113 | 
 int mytest(const char *fmt, ...) | 
 
 
 
 
 
 | 114 | 
 { | 
 
 
 
 
 
 | 115 | 
   int n; | 
 
 
 
 
 
 | 116 | 
   char buf[20]; | 
 
 
 
 
 
 | 117 | 
   va_list ap; | 
 
 
 
 
 
 | 118 | 
   va_start(ap, fmt); | 
 
 
 
 
 
 | 119 | 
   n = vsnprintf(buf, sizeof(buf), fmt, ap); | 
 
 
 
 
 
 | 120 | 
   va_end(ap); | 
 
 
 
 
 
 | 121 | 
   return n; | 
 
 
 
 
 
 | 122 | 
 } | 
 
 
 
 
 
 | 123 | 
 int main() | 
 
 
 
 
 
 | 124 | 
 { | 
 
 
 
 
 
 | 125 | 
   return (mytest("Hello%d\n", 1)); | 
 
 
 
 
 
 | 126 | 
 } | 
 
 
 
 
 
 | 127 | 
 === | 
 
 
 
 
 
 | 128 | 
 gcc -c -O3 ztest1268.c | 
 
 
 
 
 
 | 129 | 
 Checking for return value of vsnprintf()... Yes. | 
 
 
 
 
 
 | 130 | 
  | 
 
 
 
 
 
 | 131 | 
 === ztest1268.c === | 
 
 
 
 
 
 | 132 | 
 #define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) | 
 
 
 
 
 
 | 133 | 
 int ZLIB_INTERNAL foo; | 
 
 
 
 
 
 | 134 | 
 int main() | 
 
 
 
 
 
 | 135 | 
 { | 
 
 
 
 
 
 | 136 | 
   return 0; | 
 
 
 
 
 
 | 137 | 
 } | 
 
 
 
 
 
 | 138 | 
 === | 
 
 
 
 
 
 | 139 | 
 gcc -c -O3 ztest1268.c | 
 
 
 
 
 
 | 140 | 
 Checking for attribute(visibility) support... Yes. | 
 
 
 
 
 
 | 141 | 
  | 
 
 
 
 
 
 | 142 | 
 ALL = static shared | 
 
 
 
 
 
 | 143 | 
 AR = libtool | 
 
 
 
 
 
 | 144 | 
 ARFLAGS = -o | 
 
 
 
 
 
 | 145 | 
 CC = gcc | 
 
 
 
 
 
 | 146 | 
 CFLAGS = -O3 -DHAVE_HIDDEN | 
 
 
 
 
 
 | 147 | 
 CPP = gcc -E | 
 
 
 
 
 
 | 148 | 
 EXE = | 
 
 
 
 
 
 | 149 | 
 LDCONFIG = ldconfig | 
 
 
 
 
 
 | 150 | 
 LDFLAGS = | 
 
 
 
 
 
 | 151 | 
 LDSHARED = gcc -dynamiclib -install_name ${exec_prefix}/lib/libz.1.dylib -compatibility_version 1 -current_version 1.2.8 | 
 
 
 
 
 
 | 152 | 
 LDSHAREDLIBC = -lc | 
 
 
 
 
 
 | 153 | 
 OBJC = $(OBJZ) $(OBJG) | 
 
 
 
 
 
 | 154 | 
 PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG) | 
 
 
 
 
 
 | 155 | 
 RANLIB = ranlib | 
 
 
 
 
 
 | 156 | 
 SFLAGS = -O3 -fPIC -DHAVE_HIDDEN | 
 
 
 
 
 
 | 157 | 
 SHAREDLIB = libz.dylib | 
 
 
 
 
 
 | 158 | 
 SHAREDLIBM = libz.1.dylib | 
 
 
 
 
 
 | 159 | 
 SHAREDLIBV = libz.1.2.8.dylib | 
 
 
 
 
 
 | 160 | 
 STATICLIB = libz.a | 
 
 
 
 
 
 | 161 | 
 TEST = all teststatic testshared | 
 
 
 
 
 
 | 162 | 
 VER = 1.2.8 | 
 
 
 
 
 
 | 163 | 
 Z_U4 = | 
 
 
 
 
 
 | 164 | 
 exec_prefix = ${prefix} | 
 
 
 
 
 
 | 165 | 
 includedir = ${prefix}/include | 
 
 
 
 
 
 | 166 | 
 libdir = ${exec_prefix}/lib | 
 
 
 
 
 
 | 167 | 
 mandir = ${prefix}/share/man | 
 
 
 
 
 
 | 168 | 
 prefix = /usr/local | 
 
 
 
 
 
 | 169 | 
 sharedlibdir = ${libdir} | 
 
 
 
 
 
 | 170 | 
 uname = Darwin | 
 
 
 
 
 
 | 171 | 
 -------------------- | 
 
 
 
 
 
 | 172 | 
  | 
 
 
 
 
 
 | 173 | 
  |