configure.log 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. --------------------
  2. ./configure --prefix ../zlib
  3. Wed Jan 9 06:41:21 PST 2013
  4. Checking for gcc...
  5. === ztest3938.c ===
  6. extern int getchar();
  7. int hello() {return getchar();}
  8. ===
  9. gcc -c -O3 ztest3938.c
  10. ... using gcc
  11. Checking for shared library support...
  12. === ztest3938.c ===
  13. extern int getchar();
  14. int hello() {return getchar();}
  15. ===
  16. gcc -w -c -O3 -fPIC ztest3938.c
  17. gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map -O3 -fPIC -o ztest3938.so ztest3938.o
  18. Building shared library libz.so.1.2.7 with gcc.
  19. === ztest3938.c ===
  20. #include <sys/types.h>
  21. off64_t dummy = 0;
  22. ===
  23. gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3938.c
  24. Checking for off64_t... Yes.
  25. Checking for fseeko... Yes.
  26. === ztest3938.c ===
  27. #include <string.h>
  28. #include <errno.h>
  29. int main() { return strlen(strerror(errno)); }
  30. ===
  31. gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest3938 ztest3938.c
  32. Checking for strerror... Yes.
  33. === ztest3938.c ===
  34. #include <unistd.h>
  35. int main() { return 0; }
  36. ===
  37. gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3938.c
  38. Checking for unistd.h... Yes.
  39. === ztest3938.c ===
  40. #include <stdarg.h>
  41. int main() { return 0; }
  42. ===
  43. gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3938.c
  44. Checking for stdarg.h... Yes.
  45. === ztest3938.c ===
  46. #include <stdio.h>
  47. #include <stdarg.h>
  48. #include "zconf.h"
  49. int main()
  50. {
  51. #ifndef STDC
  52. choke me
  53. #endif
  54. return 0;
  55. }
  56. ===
  57. gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3938.c
  58. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
  59. === ztest3938.c ===
  60. #include <stdio.h>
  61. #include <stdarg.h>
  62. int mytest(const char *fmt, ...)
  63. {
  64. char buf[20];
  65. va_list ap;
  66. va_start(ap, fmt);
  67. vsnprintf(buf, sizeof(buf), fmt, ap);
  68. va_end(ap);
  69. return 0;
  70. }
  71. int main()
  72. {
  73. return (mytest("Hello%d\n", 1));
  74. }
  75. ===
  76. gcc -O3 -D_LARGEFILE64_SOURCE=1 -o ztest3938 ztest3938.c
  77. Checking for vsnprintf() in stdio.h... Yes.
  78. === ztest3938.c ===
  79. #include <stdio.h>
  80. #include <stdarg.h>
  81. int mytest(const char *fmt, ...)
  82. {
  83. int n;
  84. char buf[20];
  85. va_list ap;
  86. va_start(ap, fmt);
  87. n = vsnprintf(buf, sizeof(buf), fmt, ap);
  88. va_end(ap);
  89. return n;
  90. }
  91. int main()
  92. {
  93. return (mytest("Hello%d\n", 1));
  94. }
  95. ===
  96. gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3938.c
  97. Checking for return value of vsnprintf()... Yes.
  98. === ztest3938.c ===
  99. #define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
  100. int ZLIB_INTERNAL foo;
  101. int main()
  102. {
  103. return 0;
  104. }
  105. ===
  106. gcc -c -O3 -D_LARGEFILE64_SOURCE=1 ztest3938.c
  107. Checking for attribute(visibility) support... Yes.
  108. === ztest3938.c ===
  109. #include <stdio.h>
  110. #define is32(n,t) for(n=1,k=0;n;n<<=1,k++);if(k==32){puts(t);return 0;}
  111. int main() {
  112. int k;
  113. unsigned i;
  114. unsigned long l;
  115. unsigned short s;
  116. is32(i, "unsigned")
  117. is32(l, "unsigned long")
  118. is32(s, "unsigned short")
  119. return 1;
  120. }
  121. ===
  122. gcc -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN ztest3938.c -o ztest3938
  123. Looking for a four-byte integer type... Found.
  124. ALL = static shared all64
  125. AR = ar
  126. ARFLAGS = rc
  127. CC = gcc
  128. CFLAGS = -O3 -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
  129. CPP = gcc -E
  130. EXE =
  131. LDCONFIG = ldconfig
  132. LDFLAGS =
  133. LDSHARED = gcc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map
  134. LDSHAREDLIBC = -lc
  135. OBJC = $(OBJZ) $(OBJG)
  136. PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG)
  137. RANLIB = ranlib
  138. SFLAGS = -O3 -fPIC -D_LARGEFILE64_SOURCE=1 -DHAVE_HIDDEN
  139. SHAREDLIB = libz.so
  140. SHAREDLIBM = libz.so.1
  141. SHAREDLIBV = libz.so.1.2.7
  142. STATICLIB = libz.a
  143. TEST = all teststatic testshared test64
  144. VER = 1.2.7
  145. Z_U4 = unsigned
  146. exec_prefix = ${prefix}
  147. includedir = ${prefix}/include
  148. libdir = ${exec_prefix}/lib
  149. mandir = ${prefix}/share/man
  150. prefix = ../zlib
  151. sharedlibdir = ${libdir}
  152. uname = Linux
  153. --------------------