usr/src/cmd/zip/configure.patch
author Jon Tibble <meths@btinternet.com>
Mon, 04 May 2015 14:04:39 +0100
branchoi_151a
changeset 254 9c2a4ac793f0
parent 0 b34509ac961f
permissions -rw-r--r--
Bash patch catchup including shellshock

*** zip-2.32/unix/configure.orig	2009-08-28 15:16:26.003011531 -0700
--- zip-2.32/unix/configure	2009-08-28 15:17:49.679065910 -0700
***************
*** 65,91 ****
  
  echo Check if we can use asm code
  OBJA=""
- if eval "$CPP match.S > _match.s 2>/dev/null"; then
-   if test ! -s _match.s || grep error < _match.s > /dev/null; then
-     :
-   elif eval "$CC -c _match.s >/dev/null 2>/dev/null" && [ -f _match.o ]; then
-     CFLAGS="${CFLAGS} -DASMV"
-     OBJA="match.o"
-     echo "int foo() { return 0;}" > conftest.c
-     $CC -c conftest.c >/dev/null 2>/dev/null
-     echo Check if compiler generates underlines
-     nm conftest.o | grep "(^|[^_])foo" >/dev/null 2>/dev/null
-     [ $? -eq 0 ] && CPP="${CPP} -DNO_UNDERLINE"
-     if eval "$CPP crc_i386.S > _crc_i386.s 2>/dev/null"; then
-       if eval "$CC -c _crc_i386.s >/dev/null 2>/dev/null" && [ -f _crc_i386.o ]
-       then
-         OBJA="$OBJA crc_i386.o"
-         CFLAGS="${CFLAGS} -DASM_CRC"
-       fi
-     fi
-   fi
- fi
- rm -f _match.s _match.o _crc_i386.s _crc_i386.o
  
  # ANSI options for compilers that don't have __STDC__ defined by default
  # Currently HPUX, pyramid, Dynix, AIX, OSF/1 and ultrix
--- 65,70 ----