configure revision 1.1
11.1Schristos#!/bin/sh
21.1Schristos# configure script for zlib. This script is needed only if
31.1Schristos# you wish to build a shared library and your system supports them,
41.1Schristos# of if you need special compiler, flags or install directory.
51.1Schristos# Otherwise, you can just use directly "make test; make install"
61.1Schristos#
71.1Schristos# To create a shared library, use "configure --shared"; by default a static
81.1Schristos# library is created. If the primitive shared library support provided here
91.1Schristos# does not work, use ftp://prep.ai.mit.edu/pub/gnu/libtool-*.tar.gz
101.1Schristos#
111.1Schristos# To impose specific compiler or flags or install directory, use for example:
121.1Schristos#    prefix=$HOME CC=cc CFLAGS="-O4" ./configure
131.1Schristos# or for csh/tcsh users:
141.1Schristos#    (setenv prefix $HOME; setenv CC cc; setenv CFLAGS "-O4"; ./configure)
151.1Schristos# LDSHARED is the command to be used to create a shared library
161.1Schristos
171.1Schristos# Incorrect settings of CC or CFLAGS may prevent creating a shared library.
181.1Schristos# If you have problems, try without defining CC and CFLAGS before reporting
191.1Schristos# an error.
201.1Schristos
211.1SchristosLIBS=libz.a
221.1SchristosLDFLAGS="-L. ${LIBS}"
231.1SchristosVER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`
241.1SchristosVER2=`sed -n -e '/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p' < zlib.h`
251.1SchristosVER1=`sed -n -e '/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p' < zlib.h`
261.1SchristosAR=${AR-"ar rc"}
271.1SchristosRANLIB=${RANLIB-"ranlib"}
281.1Schristosprefix=${prefix-/usr/local}
291.1Schristosexec_prefix=${exec_prefix-'${prefix}'}
301.1Schristoslibdir=${libdir-'${exec_prefix}/lib'}
311.1Schristosincludedir=${includedir-'${prefix}/include'}
321.1Schristosmandir=${mandir-'${prefix}/share/man'}
331.1Schristosshared_ext='.so'
341.1Schristosshared=0
351.1Schristosgcc=0
361.1Schristosold_cc="$CC"
371.1Schristosold_cflags="$CFLAGS"
381.1Schristos
391.1Schristoswhile test $# -ge 1
401.1Schristosdo
411.1Schristoscase "$1" in
421.1Schristos    -h* | --h*)
431.1Schristos      echo 'usage:'
441.1Schristos      echo '  configure [--shared] [--prefix=PREFIX]  [--exec_prefix=EXPREFIX]'
451.1Schristos      echo '     [--libdir=LIBDIR] [--includedir=INCLUDEDIR]'
461.1Schristos        exit 0;;
471.1Schristos    -p*=* | --p*=*) prefix=`echo $1 | sed 's/[-a-z_]*=//'`; shift;;
481.1Schristos    -e*=* | --e*=*) exec_prefix=`echo $1 | sed 's/[-a-z_]*=//'`; shift;;
491.1Schristos    -l*=* | --libdir=*) libdir=`echo $1 | sed 's/[-a-z_]*=//'`; shift;;
501.1Schristos    -i*=* | --includedir=*) includedir=`echo $1 | sed 's/[-a-z_]*=//'`;shift;;
511.1Schristos    -p* | --p*) prefix="$2"; shift; shift;;
521.1Schristos    -e* | --e*) exec_prefix="$2"; shift; shift;;
531.1Schristos    -l* | --l*) libdir="$2"; shift; shift;;
541.1Schristos    -i* | --i*) includedir="$2"; shift; shift;;
551.1Schristos    -s* | --s*) shared=1; shift;;
561.1Schristos    *) echo "unknown option: $1"; echo "$0 --help for help"; exit 1;;
571.1Schristos    esac
581.1Schristosdone
591.1Schristos
601.1Schristostest=ztest$$
611.1Schristoscat > $test.c <<EOF
621.1Schristosextern int getchar();
631.1Schristosint hello() {return getchar();}
641.1SchristosEOF
651.1Schristos
661.1Schristostest -z "$CC" && echo Checking for gcc...
671.1Schristoscc=${CC-gcc}
681.1Schristoscflags=${CFLAGS-"-O3"}
691.1Schristos# to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
701.1Schristoscase "$cc" in
711.1Schristos  *gcc*) gcc=1;;
721.1Schristosesac
731.1Schristos
741.1Schristosif test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
751.1Schristos  CC="$cc"
761.1Schristos  SFLAGS=${CFLAGS-"-fPIC -O3"}
771.1Schristos  CFLAGS="$cflags"
781.1Schristos  case `(uname -s || echo unknown) 2>/dev/null` in
791.1Schristos  Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"};;
801.1Schristos  CYGWIN* | Cygwin* | cygwin* | OS/2* )
811.1Schristos             EXE='.exe';;
821.1Schristos  QNX*)  # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4
831.1Schristos         # (alain.bonnefoy@icbt.com)
841.1Schristos                 LDSHARED=${LDSHARED-"$cc -shared -Wl,-hlibz.so.1"};;
851.1Schristos  HP-UX*)
861.1Schristos         LDSHARED=${LDSHARED-"$cc -shared $SFLAGS"}
871.1Schristos         case `(uname -m || echo unknown) 2>/dev/null` in
881.1Schristos         ia64)
891.1Schristos                 shared_ext='.so'
901.1Schristos                 SHAREDLIB='libz.so';;
911.1Schristos         *)
921.1Schristos                 shared_ext='.sl'
931.1Schristos                 SHAREDLIB='libz.sl';;
941.1Schristos         esac;;
951.1Schristos  Darwin*)   shared_ext='.dylib'
961.1Schristos             SHAREDLIB=libz$shared_ext
971.1Schristos             SHAREDLIBV=libz.$VER$shared_ext
981.1Schristos             SHAREDLIBM=libz.$VER1$shared_ext
991.1Schristos             LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER"};;
1001.1Schristos  *)             LDSHARED=${LDSHARED-"$cc -shared"};;
1011.1Schristos  esac
1021.1Schristoselse
1031.1Schristos  # find system name and corresponding cc options
1041.1Schristos  CC=${CC-cc}
1051.1Schristos  case `(uname -sr || echo unknown) 2>/dev/null` in
1061.1Schristos  HP-UX*)    SFLAGS=${CFLAGS-"-O +z"}
1071.1Schristos             CFLAGS=${CFLAGS-"-O"}
1081.1Schristos#            LDSHARED=${LDSHARED-"ld -b +vnocompatwarnings"}
1091.1Schristos             LDSHARED=${LDSHARED-"ld -b"}
1101.1Schristos         case `(uname -m || echo unknown) 2>/dev/null` in
1111.1Schristos         ia64)
1121.1Schristos             shared_ext='.so'
1131.1Schristos             SHAREDLIB='libz.so';;
1141.1Schristos         *)
1151.1Schristos             shared_ext='.sl'
1161.1Schristos             SHAREDLIB='libz.sl';;
1171.1Schristos         esac;;
1181.1Schristos  IRIX*)     SFLAGS=${CFLAGS-"-ansi -O2 -rpath ."}
1191.1Schristos             CFLAGS=${CFLAGS-"-ansi -O2"}
1201.1Schristos             LDSHARED=${LDSHARED-"cc -shared"};;
1211.1Schristos  OSF1\ V4*) SFLAGS=${CFLAGS-"-O -std1"}
1221.1Schristos             CFLAGS=${CFLAGS-"-O -std1"}
1231.1Schristos             LDSHARED=${LDSHARED-"cc -shared  -Wl,-soname,libz.so -Wl,-msym -Wl,-rpath,$(libdir) -Wl,-set_version,${VER}:1.0"};;
1241.1Schristos  OSF1*)     SFLAGS=${CFLAGS-"-O -std1"}
1251.1Schristos             CFLAGS=${CFLAGS-"-O -std1"}
1261.1Schristos             LDSHARED=${LDSHARED-"cc -shared"};;
1271.1Schristos  QNX*)      SFLAGS=${CFLAGS-"-4 -O"}
1281.1Schristos             CFLAGS=${CFLAGS-"-4 -O"}
1291.1Schristos             LDSHARED=${LDSHARED-"cc"}
1301.1Schristos             RANLIB=${RANLIB-"true"}
1311.1Schristos             AR="cc -A";;
1321.1Schristos  SCO_SV\ 3.2*) SFLAGS=${CFLAGS-"-O3 -dy -KPIC "}
1331.1Schristos             CFLAGS=${CFLAGS-"-O3"}
1341.1Schristos             LDSHARED=${LDSHARED-"cc -dy -KPIC -G"};;
1351.1Schristos  SunOS\ 5*) SFLAGS=${CFLAGS-"-fast -xcg89 -KPIC -R."}
1361.1Schristos             CFLAGS=${CFLAGS-"-fast -xcg89"}
1371.1Schristos             LDSHARED=${LDSHARED-"cc -G"};;
1381.1Schristos  SunOS\ 4*) SFLAGS=${CFLAGS-"-O2 -PIC"}
1391.1Schristos             CFLAGS=${CFLAGS-"-O2"}
1401.1Schristos             LDSHARED=${LDSHARED-"ld"};;
1411.1Schristos  SunStudio\ 9*) SFLAGS=${CFLAGS-"-DUSE_MMAP -fast -xcode=pic32 -xtarget=ultra3 -xarch=v9b"}
1421.1Schristos             CFLAGS=${CFLAGS-"-DUSE_MMAP -fast -xtarget=ultra3 -xarch=v9b"}
1431.1Schristos             LDSHARED=${LDSHARED-"cc -xarch=v9b"};;
1441.1Schristos  UNIX_System_V\ 4.2.0)
1451.1Schristos             SFLAGS=${CFLAGS-"-KPIC -O"}
1461.1Schristos             CFLAGS=${CFLAGS-"-O"}
1471.1Schristos             LDSHARED=${LDSHARED-"cc -G"};;
1481.1Schristos  UNIX_SV\ 4.2MP)
1491.1Schristos             SFLAGS=${CFLAGS-"-Kconform_pic -O"}
1501.1Schristos             CFLAGS=${CFLAGS-"-O"}
1511.1Schristos             LDSHARED=${LDSHARED-"cc -G"};;
1521.1Schristos  OpenUNIX\ 5)
1531.1Schristos             SFLAGS=${CFLAGS-"-KPIC -O"}
1541.1Schristos             CFLAGS=${CFLAGS-"-O"}
1551.1Schristos             LDSHARED=${LDSHARED-"cc -G"};;
1561.1Schristos  AIX*)  # Courtesy of dbakker@arrayasolutions.com
1571.1Schristos             SFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
1581.1Schristos             CFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
1591.1Schristos             LDSHARED=${LDSHARED-"xlc -G"};;
1601.1Schristos  # send working options for other systems to support@gzip.org
1611.1Schristos  *)         SFLAGS=${CFLAGS-"-O"}
1621.1Schristos             CFLAGS=${CFLAGS-"-O"}
1631.1Schristos             LDSHARED=${LDSHARED-"cc -shared"};;
1641.1Schristos  esac
1651.1Schristosfi
1661.1Schristos
1671.1SchristosSHAREDLIB=${SHAREDLIB-"libz$shared_ext"}
1681.1SchristosSHAREDLIBV=${SHAREDLIBV-"libz$shared_ext.$VER"}
1691.1SchristosSHAREDLIBM=${SHAREDLIBM-"libz$shared_ext.$VER1"}
1701.1Schristos
1711.1Schristosif test $shared -eq 1; then
1721.1Schristos  echo Checking for shared library support...
1731.1Schristos  # we must test in two steps (cc then ld), required at least on SunOS 4.x
1741.1Schristos  if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
1751.1Schristos     test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
1761.1Schristos    CFLAGS="$SFLAGS"
1771.1Schristos    LIBS="$SHAREDLIBV"
1781.1Schristos    echo Building shared library $SHAREDLIBV with $CC.
1791.1Schristos  elif test -z "$old_cc" -a -z "$old_cflags"; then
1801.1Schristos    echo No shared library support.
1811.1Schristos    shared=0;
1821.1Schristos  else
1831.1Schristos    echo 'No shared library support; try without defining CC and CFLAGS'
1841.1Schristos    shared=0;
1851.1Schristos  fi
1861.1Schristosfi
1871.1Schristosif test $shared -eq 0; then
1881.1Schristos  LDSHARED="$CC"
1891.1Schristos  echo Building static library $LIBS version $VER with $CC.
1901.1Schristoselse
1911.1Schristos  LDFLAGS="-L. ${SHAREDLIBV}"
1921.1Schristosfi
1931.1Schristos
1941.1Schristoscat > $test.c <<EOF
1951.1Schristos#include <unistd.h>
1961.1Schristosint main() { return 0; }
1971.1SchristosEOF
1981.1Schristosif test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
1991.1Schristos  sed < zconf.in.h "/HAVE_UNISTD_H/s%0%1%" > zconf.h
2001.1Schristos  echo "Checking for unistd.h... Yes."
2011.1Schristoselse
2021.1Schristos  cp -p zconf.in.h zconf.h
2031.1Schristos  echo "Checking for unistd.h... No."
2041.1Schristosfi
2051.1Schristos
2061.1Schristoscat > $test.c <<EOF
2071.1Schristos#include <stdio.h>
2081.1Schristos#include <stdarg.h>
2091.1Schristos#include "zconf.h"
2101.1Schristos
2111.1Schristosint main()
2121.1Schristos{
2131.1Schristos#ifndef STDC
2141.1Schristos  choke me
2151.1Schristos#endif
2161.1Schristos
2171.1Schristos  return 0;
2181.1Schristos}
2191.1SchristosEOF
2201.1Schristos
2211.1Schristosif test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
2221.1Schristos  echo "Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()"
2231.1Schristos
2241.1Schristos  cat > $test.c <<EOF
2251.1Schristos#include <stdio.h>
2261.1Schristos#include <stdarg.h>
2271.1Schristos
2281.1Schristosint mytest(char *fmt, ...)
2291.1Schristos{
2301.1Schristos  char buf[20];
2311.1Schristos  va_list ap;
2321.1Schristos
2331.1Schristos  va_start(ap, fmt);
2341.1Schristos  vsnprintf(buf, sizeof(buf), fmt, ap);
2351.1Schristos  va_end(ap);
2361.1Schristos  return 0;
2371.1Schristos}
2381.1Schristos
2391.1Schristosint main()
2401.1Schristos{
2411.1Schristos  return (mytest("Hello%d\n", 1));
2421.1Schristos}
2431.1SchristosEOF
2441.1Schristos
2451.1Schristos  if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
2461.1Schristos    echo "Checking for vsnprintf() in stdio.h... Yes."
2471.1Schristos
2481.1Schristos    cat >$test.c <<EOF
2491.1Schristos#include <stdio.h>
2501.1Schristos#include <stdarg.h>
2511.1Schristos
2521.1Schristosint mytest(char *fmt, ...)
2531.1Schristos{
2541.1Schristos  int n;
2551.1Schristos  char buf[20];
2561.1Schristos  va_list ap;
2571.1Schristos
2581.1Schristos  va_start(ap, fmt);
2591.1Schristos  n = vsnprintf(buf, sizeof(buf), fmt, ap);
2601.1Schristos  va_end(ap);
2611.1Schristos  return n;
2621.1Schristos}
2631.1Schristos
2641.1Schristosint main()
2651.1Schristos{
2661.1Schristos  return (mytest("Hello%d\n", 1));
2671.1Schristos}
2681.1SchristosEOF
2691.1Schristos
2701.1Schristos    if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
2711.1Schristos      echo "Checking for return value of vsnprintf()... Yes."
2721.1Schristos    else
2731.1Schristos      CFLAGS="$CFLAGS -DHAS_vsnprintf_void"
2741.1Schristos      echo "Checking for return value of vsnprintf()... No."
2751.1Schristos      echo "  WARNING: apparently vsnprintf() does not return a value. zlib"
2761.1Schristos      echo "  can build but will be open to possible string-format security"
2771.1Schristos      echo "  vulnerabilities."
2781.1Schristos    fi
2791.1Schristos  else
2801.1Schristos    CFLAGS="$CFLAGS -DNO_vsnprintf"
2811.1Schristos    echo "Checking for vsnprintf() in stdio.h... No."
2821.1Schristos    echo "  WARNING: vsnprintf() not found, falling back to vsprintf(). zlib"
2831.1Schristos    echo "  can build but will be open to possible buffer-overflow security"
2841.1Schristos    echo "  vulnerabilities."
2851.1Schristos
2861.1Schristos    cat >$test.c <<EOF
2871.1Schristos#include <stdio.h>
2881.1Schristos#include <stdarg.h>
2891.1Schristos
2901.1Schristosint mytest(char *fmt, ...)
2911.1Schristos{
2921.1Schristos  int n;
2931.1Schristos  char buf[20];
2941.1Schristos  va_list ap;
2951.1Schristos
2961.1Schristos  va_start(ap, fmt);
2971.1Schristos  n = vsprintf(buf, fmt, ap);
2981.1Schristos  va_end(ap);
2991.1Schristos  return n;
3001.1Schristos}
3011.1Schristos
3021.1Schristosint main()
3031.1Schristos{
3041.1Schristos  return (mytest("Hello%d\n", 1));
3051.1Schristos}
3061.1SchristosEOF
3071.1Schristos
3081.1Schristos    if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
3091.1Schristos      echo "Checking for return value of vsprintf()... Yes."
3101.1Schristos    else
3111.1Schristos      CFLAGS="$CFLAGS -DHAS_vsprintf_void"
3121.1Schristos      echo "Checking for return value of vsprintf()... No."
3131.1Schristos      echo "  WARNING: apparently vsprintf() does not return a value. zlib"
3141.1Schristos      echo "  can build but will be open to possible string-format security"
3151.1Schristos      echo "  vulnerabilities."
3161.1Schristos    fi
3171.1Schristos  fi
3181.1Schristoselse
3191.1Schristos  echo "Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()"
3201.1Schristos
3211.1Schristos  cat >$test.c <<EOF
3221.1Schristos#include <stdio.h>
3231.1Schristos
3241.1Schristosint mytest()
3251.1Schristos{
3261.1Schristos  char buf[20];
3271.1Schristos
3281.1Schristos  snprintf(buf, sizeof(buf), "%s", "foo");
3291.1Schristos  return 0;
3301.1Schristos}
3311.1Schristos
3321.1Schristosint main()
3331.1Schristos{
3341.1Schristos  return (mytest());
3351.1Schristos}
3361.1SchristosEOF
3371.1Schristos
3381.1Schristos  if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
3391.1Schristos    echo "Checking for snprintf() in stdio.h... Yes."
3401.1Schristos
3411.1Schristos    cat >$test.c <<EOF
3421.1Schristos#include <stdio.h>
3431.1Schristos
3441.1Schristosint mytest()
3451.1Schristos{
3461.1Schristos  char buf[20];
3471.1Schristos
3481.1Schristos  return snprintf(buf, sizeof(buf), "%s", "foo");
3491.1Schristos}
3501.1Schristos
3511.1Schristosint main()
3521.1Schristos{
3531.1Schristos  return (mytest());
3541.1Schristos}
3551.1SchristosEOF
3561.1Schristos
3571.1Schristos    if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
3581.1Schristos      echo "Checking for return value of snprintf()... Yes."
3591.1Schristos    else
3601.1Schristos      CFLAGS="$CFLAGS -DHAS_snprintf_void"
3611.1Schristos      echo "Checking for return value of snprintf()... No."
3621.1Schristos      echo "  WARNING: apparently snprintf() does not return a value. zlib"
3631.1Schristos      echo "  can build but will be open to possible string-format security"
3641.1Schristos      echo "  vulnerabilities."
3651.1Schristos    fi
3661.1Schristos  else
3671.1Schristos    CFLAGS="$CFLAGS -DNO_snprintf"
3681.1Schristos    echo "Checking for snprintf() in stdio.h... No."
3691.1Schristos    echo "  WARNING: snprintf() not found, falling back to sprintf(). zlib"
3701.1Schristos    echo "  can build but will be open to possible buffer-overflow security"
3711.1Schristos    echo "  vulnerabilities."
3721.1Schristos
3731.1Schristos    cat >$test.c <<EOF
3741.1Schristos#include <stdio.h>
3751.1Schristos
3761.1Schristosint mytest()
3771.1Schristos{
3781.1Schristos  char buf[20];
3791.1Schristos
3801.1Schristos  return sprintf(buf, "%s", "foo");
3811.1Schristos}
3821.1Schristos
3831.1Schristosint main()
3841.1Schristos{
3851.1Schristos  return (mytest());
3861.1Schristos}
3871.1SchristosEOF
3881.1Schristos
3891.1Schristos    if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
3901.1Schristos      echo "Checking for return value of sprintf()... Yes."
3911.1Schristos    else
3921.1Schristos      CFLAGS="$CFLAGS -DHAS_sprintf_void"
3931.1Schristos      echo "Checking for return value of sprintf()... No."
3941.1Schristos      echo "  WARNING: apparently sprintf() does not return a value. zlib"
3951.1Schristos      echo "  can build but will be open to possible string-format security"
3961.1Schristos      echo "  vulnerabilities."
3971.1Schristos    fi
3981.1Schristos  fi
3991.1Schristosfi
4001.1Schristos
4011.1Schristoscat >$test.c <<EOF
4021.1Schristos#include <errno.h>
4031.1Schristosint main() { return 0; }
4041.1SchristosEOF
4051.1Schristosif test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
4061.1Schristos  echo "Checking for errno.h... Yes."
4071.1Schristoselse
4081.1Schristos  echo "Checking for errno.h... No."
4091.1Schristos  CFLAGS="$CFLAGS -DNO_ERRNO_H"
4101.1Schristosfi
4111.1Schristos
4121.1Schristoscat > $test.c <<EOF
4131.1Schristos#include <sys/types.h>
4141.1Schristos#include <sys/mman.h>
4151.1Schristos#include <sys/stat.h>
4161.1Schristoscaddr_t hello() {
4171.1Schristos  return mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0);
4181.1Schristos}
4191.1SchristosEOF
4201.1Schristosif test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
4211.1Schristos  CFLAGS="$CFLAGS -DUSE_MMAP"
4221.1Schristos  echo Checking for mmap support... Yes.
4231.1Schristoselse
4241.1Schristos  echo Checking for mmap support... No.
4251.1Schristosfi
4261.1Schristos
4271.1SchristosCPP=${CPP-"$CC -E"}
4281.1Schristoscase $CFLAGS in
4291.1Schristos  *ASMV*)
4301.1Schristos    if test "`nm $test.o | grep _hello`" = ""; then
4311.1Schristos      CPP="$CPP -DNO_UNDERLINE"
4321.1Schristos      echo Checking for underline in external names... No.
4331.1Schristos    else
4341.1Schristos      echo Checking for underline in external names... Yes.
4351.1Schristos    fi;;
4361.1Schristosesac
4371.1Schristos
4381.1Schristosrm -f $test.[co] $test $test$shared_ext
4391.1Schristos
4401.1Schristos# udpate Makefile
4411.1Schristossed < Makefile.in "
4421.1Schristos/^CC *=/s#=.*#=$CC#
4431.1Schristos/^CFLAGS *=/s#=.*#=$CFLAGS#
4441.1Schristos/^CPP *=/s#=.*#=$CPP#
4451.1Schristos/^LDSHARED *=/s#=.*#=$LDSHARED#
4461.1Schristos/^LIBS *=/s#=.*#=$LIBS#
4471.1Schristos/^SHAREDLIB *=/s#=.*#=$SHAREDLIB#
4481.1Schristos/^SHAREDLIBV *=/s#=.*#=$SHAREDLIBV#
4491.1Schristos/^SHAREDLIBM *=/s#=.*#=$SHAREDLIBM#
4501.1Schristos/^AR *=/s#=.*#=$AR#
4511.1Schristos/^RANLIB *=/s#=.*#=$RANLIB#
4521.1Schristos/^EXE *=/s#=.*#=$EXE#
4531.1Schristos/^prefix *=/s#=.*#=$prefix#
4541.1Schristos/^exec_prefix *=/s#=.*#=$exec_prefix#
4551.1Schristos/^libdir *=/s#=.*#=$libdir#
4561.1Schristos/^includedir *=/s#=.*#=$includedir#
4571.1Schristos/^mandir *=/s#=.*#=$mandir#
4581.1Schristos/^LDFLAGS *=/s#=.*#=$LDFLAGS#
4591.1Schristos" > Makefile
460