aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure b/configure
index e672f36..6baa34f 100755
--- a/configure
+++ b/configure
@@ -698,6 +698,32 @@ EOF
698 fi 698 fi
699fi 699fi
700 700
701echo >> configure.log
702
703# find a four-byte unsiged integer type for crc calculations
704cat > $test.c <<EOF
705#include <stdio.h>
706#define is32(n,t) for(n=1,k=0;n;n<<=1,k++);if(k==32){puts(t);return 0;}
707int main() {
708 int k;
709 unsigned i;
710 unsigned long l;
711 unsigned short s;
712 is32(i, "unsigned")
713 is32(l, "unsigned long")
714 is32(s, "unsigned short")
715 return 1;
716}
717EOF
718Z_U4=""
719if try $CC $CFLAGS $test.c -o $test && Z_U4=`$test` && test -n "$Z_U4"; then
720 sed < zconf.h "/#define Z_U4/s/\/\* \.\/configure may/#define Z_U4 $Z_U4 \/* .\/configure put the/" > zconf.temp.h
721 mv zconf.temp.h zconf.h
722 echo "Looking for a four-byte integer type... Found." | tee -a configure.log
723else
724 echo "Looking for a four-byte integer type... Not found." | tee -a configure.log
725fi
726
701# clean up files produced by running the compiler and linker 727# clean up files produced by running the compiler and linker
702rm -f $test.[co] $test $test$shared_ext $test.gcno 728rm -f $test.[co] $test $test$shared_ext $test.gcno
703 729
@@ -724,6 +750,7 @@ echo SHAREDLIBV = $SHAREDLIBV >> configure.log
724echo STATICLIB = $STATICLIB >> configure.log 750echo STATICLIB = $STATICLIB >> configure.log
725echo TEST = $TEST >> configure.log 751echo TEST = $TEST >> configure.log
726echo VER = $VER >> configure.log 752echo VER = $VER >> configure.log
753echo Z_U4 = $Z_U4 >> configure.log
727echo exec_prefix = $exec_prefix >> configure.log 754echo exec_prefix = $exec_prefix >> configure.log
728echo includedir = $includedir >> configure.log 755echo includedir = $includedir >> configure.log
729echo libdir = $libdir >> configure.log 756echo libdir = $libdir >> configure.log