Lines Matching +full:log +full:-

5 # If you want to build just a static library, use: ./configure --static
8 # prefix=$HOME CC=cc CFLAGS="-O4" ./configure
10 # (setenv prefix $HOME; setenv CC cc; setenv CFLAGS "-O4"; ./configure)
16 # start off configure.log
17 echo -------------------- >> configure.log
18 echo $0 $* >> configure.log
19 date >> configure.log
25 ZINCOUT="-I."
28 ZINC='-include zconf.h'
29 ZINCOUT='-I. -I$(SRCDIR)'
33 # set command prefix for cross-compilation
34 if [ -n "${CHOST}" ]; then
35 …uname="`echo "${CHOST}" | sed -e 's/^[^-]*-\([^-]*\)$/\1/' -e 's/^[^-]*-[^-]*-\([^-]*\)$/\1/' -e '…
36 CROSS_PREFIX="${CHOST}-"
43 VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < ${SRCDIR}zlib.h`
44 VER3=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\\.[0-9]*\).*/\1/p' < ${SRCDIR}zlib.h`
45 VER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < ${SRCDIR}zlib.h`
46 VER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < ${SRCDIR}zlib.h`
49 if "${CROSS_PREFIX}ar" --version >/dev/null 2>/dev/null || test $? -lt 126; then
50 AR=${AR-"${CROSS_PREFIX}ar"}
51 test -n "${CROSS_PREFIX}" && echo Using ${AR} | tee -a configure.log
53 AR=${AR-"ar"}
54 test -n "${CROSS_PREFIX}" && echo Using ${AR} | tee -a configure.log
56 ARFLAGS=${ARFLAGS-"rc"}
57 if "${CROSS_PREFIX}ranlib" --version >/dev/null 2>/dev/null || test $? -lt 126; then
58 RANLIB=${RANLIB-"${CROSS_PREFIX}ranlib"}
59 test -n "${CROSS_PREFIX}" && echo Using ${RANLIB} | tee -a configure.log
61 RANLIB=${RANLIB-"ranlib"}
63 if "${CROSS_PREFIX}nm" --version >/dev/null 2>/dev/null || test $? -lt 126; then
64 NM=${NM-"${CROSS_PREFIX}nm"}
65 test -n "${CROSS_PREFIX}" && echo Using ${NM} | tee -a configure.log
67 NM=${NM-"nm"}
71 LDCONFIG=${LDCONFIG-"ldconfig"}
72 LDSHAREDLIBC="${LDSHAREDLIBC--lc}"
74 prefix=${prefix-/usr/local}
75 exec_prefix=${exec_prefix-'${prefix}'}
76 libdir=${libdir-'${exec_prefix}/lib'}
77 sharedlibdir=${sharedlibdir-'${libdir}'}
78 includedir=${includedir-'${prefix}/include'}
79 mandir=${mandir-'${prefix}/share/man'}
99 echo "** $0 aborting." | tee -a configure.log
101 rm -f $test.[co] $test $test$shared_ext $test.gcno ./--version
102 echo -------------------- >> configure.log
103 echo >> configure.log
104 echo >> configure.log
109 while test $# -ge 1
112 -h* | --help)
113 echo 'usage:' | tee -a configure.log
114 …echo ' configure [--const] [--zprefix] [--prefix=PREFIX] [--eprefix=EXPREFIX]' | tee -a configur…
115 echo ' [--static] [--64] [--libdir=LIBDIR] [--sharedlibdir=LIBDIR]' | tee -a configure.log
116 … echo ' [--includedir=INCLUDEDIR] [--archs="-arch i386 -arch x86_64"]' | tee -a configure.log
118 -p*=* | --prefix=*) prefix=`echo $1 | sed 's/.*=//'`; shift ;;
119 -e*=* | --eprefix=*) exec_prefix=`echo $1 | sed 's/.*=//'`; shift ;;
120 -l*=* | --libdir=*) libdir=`echo $1 | sed 's/.*=//'`; shift ;;
121 --sharedlibdir=*) sharedlibdir=`echo $1 | sed 's/.*=//'`; shift ;;
122 -i*=* | --includedir=*) includedir=`echo $1 | sed 's/.*=//'`;shift ;;
123 -u*=* | --uname=*) uname=`echo $1 | sed 's/.*=//'`;shift ;;
124 -p* | --prefix) prefix="$2"; shift; shift ;;
125 -e* | --eprefix) exec_prefix="$2"; shift; shift ;;
126 -l* | --libdir) libdir="$2"; shift; shift ;;
127 -i* | --includedir) includedir="$2"; shift; shift ;;
128 -s* | --shared | --enable-shared) shared=1; shift ;;
129 -t | --static) shared=0; shift ;;
130 --solo) solo=1; shift ;;
131 --cover) cover=1; shift ;;
132 -z* | --zprefix) zprefix=1; shift ;;
133 -6* | --64) build64=1; shift ;;
134 -a*=* | --archs=*) ARCHS=`echo $1 | sed 's/.*=//'`; shift ;;
135 --sysconfdir=*) echo "ignored option: --sysconfdir" | tee -a configure.log; shift ;;
136 --localstatedir=*) echo "ignored option: --localstatedir" | tee -a configure.log; shift ;;
137 -c* | --const) zconst=1; shift ;;
138 -w* | --warn) warn=1; shift ;;
139 -d* | --debug) debug=1; shift ;;
141 echo "unknown option: $1" | tee -a configure.log
142 echo "$0 --help for help" | tee -a configure.log
150 # put arguments in log, also put test file in log if used in arguments
155 echo === $test.c === >> configure.log
156 cat $test.c >> configure.log
157 echo === >> configure.log;;
159 echo $* >> configure.log
168 test -z "$CC" && echo Checking for ${CROSS_PREFIX}gcc... | tee -a configure.log
169 cc=${CC-${CROSS_PREFIX}gcc}
170 cflags=${CFLAGS-"-O3"}
171 # to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
176 case `$cc -v 2>&1` in
181 show $cc -c $test.c
182 if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
183 echo ... using gcc >> configure.log
185 CFLAGS="${CFLAGS--O3}"
186 SFLAGS="${CFLAGS--O3} -fPIC"
191 if test $build64 -eq 1; then
192 CFLAGS="${CFLAGS} -m64"
193 SFLAGS="${SFLAGS} -m64"
195 if test "$warn" -eq 1; then
196 if test "$zconst" -eq 1; then
197 CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual -pedantic -DZLIB_CONST"
199 CFLAGS="${CFLAGS} -Wall -Wextra -pedantic"
202 if test $debug -eq 1; then
203 CFLAGS="${CFLAGS} -DZLIB_DEBUG"
204 SFLAGS="${SFLAGS} -DZLIB_DEBUG"
206 if test -z "$uname"; then
207 uname=`(uname -s || echo unknown) 2>/dev/null`
211 … LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"} ;;
213 LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"}
214 LDCONFIG="ldconfig -m" ;;
219 rm -f $test.[co] $test $test$shared_ext
220 echo "Please use win32/Makefile.gcc instead." | tee -a configure.log
222 LDSHARED=${LDSHARED-"$cc -shared"}
227 LDSHARED=${LDSHARED-"$cc -shared -Wl,-hlibz.so.1"} ;;
228 HP-UX*)
229 LDSHARED=${LDSHARED-"$cc -shared $SFLAGS"}
230 case `(uname -m || echo unknown) 2>/dev/null` in
243 …LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER…
244 if libtool -V 2>&1 | grep Apple > /dev/null; then
249 ARFLAGS="-o" ;;
250 *) LDSHARED=${LDSHARED-"$cc -shared"} ;;
254 CC=${CC-cc}
256 echo ... using $CC >> configure.log
257 if test -z "$uname"; then
258 uname=`(uname -sr || echo unknown) 2>/dev/null`
261 HP-UX*) SFLAGS=${CFLAGS-"-O +z"}
262 CFLAGS=${CFLAGS-"-O"}
263 # LDSHARED=${LDSHARED-"ld -b +vnocompatwarnings"}
264 LDSHARED=${LDSHARED-"ld -b"}
265 case `(uname -m || echo unknown) 2>/dev/null` in
273 IRIX*) SFLAGS=${CFLAGS-"-ansi -O2 -rpath ."}
274 CFLAGS=${CFLAGS-"-ansi -O2"}
275 LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so.1"} ;;
276 OSF1\ V4*) SFLAGS=${CFLAGS-"-O -std1"}
277 CFLAGS=${CFLAGS-"-O -std1"}
278 LDFLAGS="${LDFLAGS} -Wl,-rpath,."
279 …LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so -Wl,-msym -Wl,-rpath,$(libdir) -Wl,-set_versi…
280 OSF1*) SFLAGS=${CFLAGS-"-O -std1"}
281 CFLAGS=${CFLAGS-"-O -std1"}
282 LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so.1"} ;;
283 QNX*) SFLAGS=${CFLAGS-"-4 -O"}
284 CFLAGS=${CFLAGS-"-4 -O"}
285 LDSHARED=${LDSHARED-"cc"}
286 RANLIB=${RANLIB-"true"}
288 ARFLAGS="-A" ;;
289 SCO_SV\ 3.2*) SFLAGS=${CFLAGS-"-O3 -dy -KPIC "}
290 CFLAGS=${CFLAGS-"-O3"}
291 LDSHARED=${LDSHARED-"cc -dy -KPIC -G"} ;;
293 LDSHARED=${LDSHARED-"cc -G -h libz$shared_ext.$VER1"}
294 SFLAGS=${CFLAGS-"-fast -KPIC"}
295 CFLAGS=${CFLAGS-"-fast"}
296 if test $build64 -eq 1; then
297 # old versions of SunPRO/Workshop/Studio don't support -m64,
299 flag64=`$CC -flags | egrep -- '^-m64'`
301 CFLAGS="${CFLAGS} -m64"
302 SFLAGS="${SFLAGS} -m64"
304 case `(uname -m || echo unknown) 2>/dev/null` in
306 SFLAGS="$SFLAGS -xarch=amd64"
307 CFLAGS="$CFLAGS -xarch=amd64" ;;
309 SFLAGS="$SFLAGS -xarch=v9"
310 CFLAGS="$CFLAGS -xarch=v9" ;;
314 if test -n "$ZINC"; then
315 ZINC='-I- -I. -I$(SRCDIR)'
318 SunOS\ 4*) SFLAGS=${CFLAGS-"-O2 -PIC"}
319 CFLAGS=${CFLAGS-"-O2"}
320 LDSHARED=${LDSHARED-"ld"} ;;
321 SunStudio\ 9*) SFLAGS=${CFLAGS-"-fast -xcode=pic32 -xtarget=ultra3 -xarch=v9b"}
322 CFLAGS=${CFLAGS-"-fast -xtarget=ultra3 -xarch=v9b"}
323 LDSHARED=${LDSHARED-"cc -xarch=v9b"} ;;
325 SFLAGS=${CFLAGS-"-KPIC -O"}
326 CFLAGS=${CFLAGS-"-O"}
327 LDSHARED=${LDSHARED-"cc -G"} ;;
329 SFLAGS=${CFLAGS-"-Kconform_pic -O"}
330 CFLAGS=${CFLAGS-"-O"}
331 LDSHARED=${LDSHARED-"cc -G"} ;;
333 SFLAGS=${CFLAGS-"-KPIC -O"}
334 CFLAGS=${CFLAGS-"-O"}
335 LDSHARED=${LDSHARED-"cc -G"} ;;
337 SFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
338 CFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
339 LDSHARED=${LDSHARED-"xlc -G"} ;;
341 *) SFLAGS=${CFLAGS-"-O"}
342 CFLAGS=${CFLAGS-"-O"}
343 LDSHARED=${LDSHARED-"cc -shared"} ;;
348 SHAREDLIB=${SHAREDLIB-"libz$shared_ext"}
349 SHAREDLIBV=${SHAREDLIBV-"libz$shared_ext.$VER"}
350 SHAREDLIBM=${SHAREDLIBM-"libz$shared_ext.$VER1"}
352 echo >> configure.log
359 if ($CC -c $CFLAGS $test.c) 2>/dev/null; then
363 test "`( $* ) 2>&1 | tee -a configure.log`" = ""
365 echo - using any output from compiler to indicate an error >> configure.log
370 ( $* ) >> configure.log 2>&1
372 if test $ret -ne 0; then
373 echo "(exit code "$ret")" >> configure.log
384 printf %s "$got" >> configure.log
385 if test $ret -ne 0; then
394 echo "Checking for obsessive-compulsive compiler options..." >> configure.log
395 if try $CC -c $CFLAGS $test.c; then
398 …cho "Compiler error reporting is too harsh for $0 (perhaps remove -Werror)." | tee -a configure.log
402 echo >> configure.log
409 if test $shared -eq 1; then
410 echo Checking for shared library support... | tee -a configure.log
412 if try $CC -w -c $SFLAGS $test.c &&
413 try $LDSHARED $SFLAGS -o $test$shared_ext $test.o; then
414 echo Building shared library $SHAREDLIBV with $CC. | tee -a configure.log
415 elif test -z "$old_cc" -a -z "$old_cflags"; then
416 echo No shared library support. | tee -a configure.log
419 echo 'No shared library support; try without defining CC and CFLAGS' | tee -a configure.log
423 if test $shared -eq 0; then
430 echo Building static library $STATICLIB version $VER with $CC. | tee -a configure.log
437 CPP=${CPP-"$CC -E"}
440 echo >> configure.log
442 if test "`$NM $test.o | grep _hello | tee -a configure.log`" = ""; then
443 CPP="$CPP -DNO_UNDERLINE"
444 echo Checking for underline in external names... No. | tee -a configure.log
446 echo Checking for underline in external names... Yes. | tee -a configure.log
450 echo >> configure.log
458 if try $CC -c $CFLAGS $test.c; then
459 echo "Checking for size_t... Yes." | tee -a configure.log
462 echo "Checking for size_t... No." | tee -a configure.log
466 echo >> configure.log
469 if test $need_sizet -eq 1; then
473 if try $CC -c $CFLAGS $test.c; then
474 echo "Checking for long long... Yes." | tee -a configure.log
485 echo "Checking for long long... No." | tee -a configure.log
495 if try $CC $CFLAGS -o $test $test.c; then
497 echo "Checking for a pointer-size integer type..." $sizet"." | tee -a configure.log
499 echo "Failed to find a pointer-size integer type." | tee -a configure.log
504 if test $need_sizet -eq 1; then
505 CFLAGS="${CFLAGS} -DNO_SIZE_T=${sizet}"
506 SFLAGS="${SFLAGS} -DNO_SIZE_T=${sizet}"
509 echo >> configure.log
516 if try $CC -c $CFLAGS -D_LARGEFILE64_SOURCE=1 $test.c; then
517 CFLAGS="${CFLAGS} -D_LARGEFILE64_SOURCE=1"
518 SFLAGS="${SFLAGS} -D_LARGEFILE64_SOURCE=1"
521 echo "Checking for off64_t... Yes." | tee -a configure.log
522 echo "Checking for fseeko... Yes." | tee -a configure.log
524 echo "Checking for off64_t... No." | tee -a configure.log
525 echo >> configure.log
533 if try $CC $CFLAGS -o $test $test.c; then
534 echo "Checking for fseeko... Yes." | tee -a configure.log
536 CFLAGS="${CFLAGS} -DNO_FSEEKO"
537 SFLAGS="${SFLAGS} -DNO_FSEEKO"
538 echo "Checking for fseeko... No." | tee -a configure.log
542 echo >> configure.log
550 if try $CC $CFLAGS -o $test $test.c; then
551 echo "Checking for strerror... Yes." | tee -a configure.log
553 CFLAGS="${CFLAGS} -DNO_STRERROR"
554 SFLAGS="${SFLAGS} -DNO_STRERROR"
555 echo "Checking for strerror... No." | tee -a configure.log
559 cp -p ${SRCDIR}zconf.h.in zconf.h
561 echo >> configure.log
568 if try $CC -c $CFLAGS $test.c; then
571 echo "Checking for unistd.h... Yes." | tee -a configure.log
573 echo "Checking for unistd.h... No." | tee -a configure.log
576 echo >> configure.log
583 if try $CC -c $CFLAGS $test.c; then
586 echo "Checking for stdarg.h... Yes." | tee -a configure.log
588 echo "Checking for stdarg.h... No." | tee -a configure.log
592 if test $zprefix -eq 1; then
595 echo >> configure.log
596 echo "Using z_ prefix on all symbols." | tee -a configure.log
599 # if --solo compilation was requested, save that in zconf.h and remove gz stuff from object lists
600 if test $solo -eq 1; then
610 # if code coverage testing was requested, use older gcc if defined, e.g. "gcc-4.2" on Mac OS X
611 if test $cover -eq 1; then
612 CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage"
613 if test -n "$GCC_CLASSIC"; then
618 echo >> configure.log
636 if try $CC -c $CFLAGS $test.c; then
637 …ecking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()." | tee -a configure.log
639 echo >> configure.log
657 if try $CC $CFLAGS -o $test $test.c; then
658 echo "Checking for vsnprintf() in stdio.h... Yes." | tee -a configure.log
660 echo >> configure.log
680 if try $CC -c $CFLAGS $test.c; then
681 echo "Checking for return value of vsnprintf()... Yes." | tee -a configure.log
683 CFLAGS="$CFLAGS -DHAS_vsnprintf_void"
684 SFLAGS="$SFLAGS -DHAS_vsnprintf_void"
685 echo "Checking for return value of vsnprintf()... No." | tee -a configure.log
686 echo " WARNING: apparently vsnprintf() does not return a value. zlib" | tee -a configure.log
687 echo " can build but will be open to possible string-format security" | tee -a configure.log
688 echo " vulnerabilities." | tee -a configure.log
691 CFLAGS="$CFLAGS -DNO_vsnprintf"
692 SFLAGS="$SFLAGS -DNO_vsnprintf"
693 echo "Checking for vsnprintf() in stdio.h... No." | tee -a configure.log
694 echo " WARNING: vsnprintf() not found, falling back to vsprintf(). zlib" | tee -a configure.log
695 echo " can build but will be open to possible buffer-overflow security" | tee -a configure.log
696 echo " vulnerabilities." | tee -a configure.log
698 echo >> configure.log
718 if try $CC -c $CFLAGS $test.c; then
719 echo "Checking for return value of vsprintf()... Yes." | tee -a configure.log
721 CFLAGS="$CFLAGS -DHAS_vsprintf_void"
722 SFLAGS="$SFLAGS -DHAS_vsprintf_void"
723 echo "Checking for return value of vsprintf()... No." | tee -a configure.log
724 echo " WARNING: apparently vsprintf() does not return a value. zlib" | tee -a configure.log
725 echo " can build but will be open to possible string-format security" | tee -a configure.log
726 echo " vulnerabilities." | tee -a configure.log
730 …hecking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()." | tee -a configure.log
732 echo >> configure.log
747 if try $CC $CFLAGS -o $test $test.c; then
748 echo "Checking for snprintf() in stdio.h... Yes." | tee -a configure.log
750 echo >> configure.log
764 if try $CC -c $CFLAGS $test.c; then
765 echo "Checking for return value of snprintf()... Yes." | tee -a configure.log
767 CFLAGS="$CFLAGS -DHAS_snprintf_void"
768 SFLAGS="$SFLAGS -DHAS_snprintf_void"
769 echo "Checking for return value of snprintf()... No." | tee -a configure.log
770 echo " WARNING: apparently snprintf() does not return a value. zlib" | tee -a configure.log
771 echo " can build but will be open to possible string-format security" | tee -a configure.log
772 echo " vulnerabilities." | tee -a configure.log
775 CFLAGS="$CFLAGS -DNO_snprintf"
776 SFLAGS="$SFLAGS -DNO_snprintf"
777 echo "Checking for snprintf() in stdio.h... No." | tee -a configure.log
778 echo " WARNING: snprintf() not found, falling back to sprintf(). zlib" | tee -a configure.log
779 echo " can build but will be open to possible buffer-overflow security" | tee -a configure.log
780 echo " vulnerabilities." | tee -a configure.log
782 echo >> configure.log
796 if try $CC -c $CFLAGS $test.c; then
797 echo "Checking for return value of sprintf()... Yes." | tee -a configure.log
799 CFLAGS="$CFLAGS -DHAS_sprintf_void"
800 SFLAGS="$SFLAGS -DHAS_sprintf_void"
801 echo "Checking for return value of sprintf()... No." | tee -a configure.log
802 echo " WARNING: apparently sprintf() does not return a value. zlib" | tee -a configure.log
803 echo " can build but will be open to possible string-format security" | tee -a configure.log
804 echo " vulnerabilities." | tee -a configure.log
810 if test "$gcc" -eq 1; then
811 echo >> configure.log
820 if tryboth $CC -c $CFLAGS $test.c; then
821 CFLAGS="$CFLAGS -DHAVE_HIDDEN"
822 SFLAGS="$SFLAGS -DHAVE_HIDDEN"
823 echo "Checking for attribute(visibility) support... Yes." | tee -a configure.log
825 echo "Checking for attribute(visibility) support... No." | tee -a configure.log
829 # show the results in the log
830 echo >> configure.log
831 echo ALL = $ALL >> configure.log
832 echo AR = $AR >> configure.log
833 echo ARFLAGS = $ARFLAGS >> configure.log
834 echo CC = $CC >> configure.log
835 echo CFLAGS = $CFLAGS >> configure.log
836 echo CPP = $CPP >> configure.log
837 echo EXE = $EXE >> configure.log
838 echo LDCONFIG = $LDCONFIG >> configure.log
839 echo LDFLAGS = $LDFLAGS >> configure.log
840 echo LDSHARED = $LDSHARED >> configure.log
841 echo LDSHAREDLIBC = $LDSHAREDLIBC >> configure.log
842 echo OBJC = $OBJC >> configure.log
843 echo PIC_OBJC = $PIC_OBJC >> configure.log
844 echo RANLIB = $RANLIB >> configure.log
845 echo SFLAGS = $SFLAGS >> configure.log
846 echo SHAREDLIB = $SHAREDLIB >> configure.log
847 echo SHAREDLIBM = $SHAREDLIBM >> configure.log
848 echo SHAREDLIBV = $SHAREDLIBV >> configure.log
849 echo STATICLIB = $STATICLIB >> configure.log
850 echo TEST = $TEST >> configure.log
851 echo VER = $VER >> configure.log
852 echo Z_U4 = $Z_U4 >> configure.log
853 echo SRCDIR = $SRCDIR >> configure.log
854 echo exec_prefix = $exec_prefix >> configure.log
855 echo includedir = $includedir >> configure.log
856 echo libdir = $libdir >> configure.log
857 echo mandir = $mandir >> configure.log
858 echo prefix = $prefix >> configure.log
859 echo sharedlibdir = $sharedlibdir >> configure.log
860 echo uname = $uname >> configure.log
916 " | sed -e "