configure revision ada1678a4262b208a7b87391f520a7767d25287c
2N/A# configure script for zlib. This script is needed only if 2N/A# you wish to build a shared library and your system supports them, 2N/A# of if you need special compiler, flags or install directory. 2N/A# Otherwise, you can just use directly "make test; make install" 2N/A# To create a shared library, use "configure --shared"; by default a static 2N/A# library is created. If the primitive shared library support provided here 2N/A# To impose specific compiler or flags or install directory, use for example: 2N/A# prefix=$HOME CC=cc CFLAGS="-O4" ./configure 2N/A# (setenv prefix $HOME; setenv CC cc; setenv CFLAGS "-O4"; ./configure) 2N/A# LDSHARED is the command to be used to create a shared library 2N/A# Incorrect settings of CC or CFLAGS may prevent creating a shared library. 2N/A# If you have problems, try without defining CC and CFLAGS before reporting 2N/A echo ' configure [--shared] [--prefix=PREFIX] [--exec_prefix=EXPREFIX]' 2N/A echo ' [--libdir=LIBDIR] [--includedir=INCLUDEDIR]' 2N/A -p*=* | --p*=*)
prefix=
`echo $1 | sed 's/[-a-z_]*=//'`;
shift;;
2N/Aextern int getchar(); 2N/Aint hello() {return getchar();} 2N/A# to force the asm version use: CFLAGS="-O3 -DASMV" ./configure 2N/A # find system name and corresponding cc options 2N/A# LDSHARED=${LDSHARED-"ld -b +vnocompatwarnings"} 2N/A # send working options for other systems to support@gzip.org 2N/A # we must test in two steps (cc then ld), required at least on SunOS 4.x 2N/A echo 'No shared library suppport; try without defining CC and CFLAGS' 2N/Aint main() { return 0; } 2N/Aint main() { return 0; } 2N/A#include <sys/types.h> 2N/A#include <sys/mman.h> 2N/A#include <sys/stat.h> 2N/A return mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0);