diff -ur xerces-c-src_2_3_0-orig/samples/runConfigure xerces-c-src_2_3_0/samples/runConfigure --- xerces-c-src_2_3_0-orig/samples/runConfigure 2003-05-27 10:04:37.000000000 -0500 +++ xerces-c-src_2_3_0/samples/runConfigure 2004-06-24 09:14:55.000000000 -0500 @@ -119,9 +119,9 @@ # Check the command line parameters if test -x /usr/bin/getopt; then -getoptErr=`getopt p:c:x:dr:b:l:z:h $*` +getoptErr=`getopt p:c:x:dr:b:l:z:C:h $*` else -getoptErr=`getopts p:c:x:dr:b:l:z:h `$*`` +getoptErr=`getopts p:c:x:dr:b:l:z:C:h `$*`` fi if [ $? != 0 ] then @@ -131,9 +131,9 @@ # Now get the command line parameters if test -x /usr/bin/getopt; then -set -- `getopt p:c:x:dr:b:l:z:h $*` +set -- `getopt p:c:x:dr:b:l:z:C:h $*` else -set -- `getopts p:c:x:dr:b:l:z:h `$*`` +set -- `getopts p:c:x:dr:b:l:z:C:h `$*`` fi # Set up the default values for each parameter @@ -141,6 +141,8 @@ transcoder=native # by default use native transcoder thread=none # by default no need to have threads bitsToBuild=32 # by default 32 bit build assumed +configureoptions="" + while [ $# -gt 0 ] do case $1 in @@ -169,6 +171,9 @@ -l) linkeroptions="$linkeroptions $2"; shift 2;; + -C) + configureoptions="$configureoptions $2"; shift 2;; + -h) usage exit ${ERROR_EXIT_CODE};; @@ -191,6 +196,7 @@ echo "bitsToBuild option: $bitsToBuild" echo "Extra compile options: $compileroptions" echo "Extra link options: $linkeroptions" +echo "Extra configure options: $configureoptions" # # Now check if the options are correct or not, bail out if incorrect @@ -466,11 +472,11 @@ rm -f config.log rm -f config.status if test $platform = "os400"; then -./configure --host AS400-OS400 +./configure --host AS400-OS400 $configureoptions elif test $platform = "ptx"; then -./configure --prefix=$XMLINSTALL +./configure --prefix=$XMLINSTALL $configureoptions else -./configure +./configure $configureoptions fi # exit if configure failed if test $? != 0; then @@ -488,7 +494,7 @@ echo export CFLAGS=\"$CFLAGS\" echo export LDFLAGS=\"$LDFLAGS\" echo export EXTRA_LIBS=\"$EXTRA_LIBS\" -echo configure +echo configure $configureoptions echo echo If the result of the above commands look OK to you, go to the directory