From 9bbe28c7416427b568381d617afb0010c7972fe3 Mon Sep 17 00:00:00 2001 From: Elan Ruusamäe Date: Tue, 16 Jan 2007 00:52:36 +0000 Subject: - fix getopt parsing so that could use CC with spaces Changed files: xalan-c-getopt.patch -> 1.1 diff --git a/xalan-c-getopt.patch b/xalan-c-getopt.patch new file mode 100644 index 0000000..0cc063a --- /dev/null +++ b/xalan-c-getopt.patch @@ -0,0 +1,29 @@ +--- xml-xalan/c/runConfigure~ 2007-01-16 02:51:41.542772924 +0200 ++++ xml-xalan/c/runConfigure 2007-01-16 02:51:52.393015979 +0200 +@@ -198,14 +198,15 @@ + + # Get the command line parameters + if test -x /bin/getopt -o -x /usr/bin/getopt; then +- set -- `getopt C:p:P:c:x:dm:n:t:m:M:r:b:l:z:h $*` +- ++ t=`getopt -o C:p:P:c:x:dm:n:t:m:M:r:b:l:z:h -- "$@"` + if [ $? != 0 ] + then + usage + exit ${ERROR_EXIT_CODE} + fi + ++ eval set -- "$t" ++ + while [ $# -gt 0 ] + do + case $1 in +@@ -358,7 +359,7 @@ + elif test $platform = "os390"; then + debugflag="-DNDEBUG"; + elif test $platform = "linux"; then +- if test $cppcompiler = "icpc"; then ++ if test "$cppcompiler" = "icpc"; then + debugflag="-O3 -DNDEBUG"; + else + debugflag="-O2 -DNDEBUG"; -- cgit v0.10.2