No adverse reactions, so here is a patch :)
Basically use which to detect getopt and then use it if found :)
david
Using port 2401
Index: runConfigure
===================================================================
RCS file: /home/cvspublic/xml-xerces/c/src/xercesc/runConfigure,v
retrieving revision 1.18
diff -u -r1.18 runConfigure
--- runConfigure 4 Sep 2002 17:15:44 -0000 1.18
+++ runConfigure 6 Oct 2002 21:17:15 -0000
@@ -86,7 +86,7 @@
echo " where options may be any of the following:"
echo " -p <platform> (accepts 'aix', 'linux', 'freebsd',
'solaris',
'hp-10', 'hp-11', 'openserver', 'unixware', 'os400', 'irix',
- 'ptx', 'tru64', 'macosx'. 'cygwin')"
+ 'ptx', 'tru64', 'macosx', 'cygwin')"
echo " -c <C compiler name> (e.g. gcc, cc, xlc_r, icc or ecc)"
echo " -x <C++ compiler name> (e.g. g++, CC, aCC, xlC_r, icc or
ecc)"
echo " -d (specifies that you want to build debug version)"
@@ -124,9 +124,11 @@
exit ${ERROR_EXIT_CODE}
fi
+#Use which to try and find getopt
+getopt=`which getopt`
# Check the command line parameters
-if test -x /usr/bin/getopt; then
-getoptErr=`getopt p:c:x:dm:n:t:r:b:l:z:P:C:h $*`
+if [ "x$getopt" != "x" ] ; then
+getoptErr=`$getopt p:c:x:dm:n:t:r:b:l:z:P:C:h $*`
else
getoptErr=`getopts p:c:x:dm:n:t:r:b:l:z:P:C:h `$*``
fi
@@ -137,8 +139,8 @@
fi
# Now get the command line parameters
-if test -x /usr/bin/getopt; then
-set -- `getopt p:c:x:dm:n:t:r:b:l:z:P:C:h $*`
+if [ "x$getopt" != "x" ] ; then
+set -- `$getopt p:c:x:dm:n:t:r:b:l:z:P:C:h $*`
else
set -- `getopts p:c:x:dm:n:t:r:b:l:z:P:C:h `$*``
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]