summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2007-01-16 00:52:36 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit9bbe28c7416427b568381d617afb0010c7972fe3 (patch)
treed92487723b1c0c301e36714060850be58be6ed83
parentff47cff02e841ddd0cf19d7481b5d6e1a708bc3a (diff)
downloadxalan-c-9bbe28c7416427b568381d617afb0010c7972fe3.zip
xalan-c-9bbe28c7416427b568381d617afb0010c7972fe3.tar.gz
- fix getopt parsing so that could use CC with spaces
Changed files: xalan-c-getopt.patch -> 1.1
-rw-r--r--xalan-c-getopt.patch29
1 files changed, 29 insertions, 0 deletions
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";