Update of /cvsroot/mplayer/main In directory mail:/var/tmp.root/cvs-serv11442 Modified Files: configure Log Message: Yet another instance of solaris' /bin/sh not happy with the posix "!" boolean operator (``!: not found''). Added a shell utility function "not" and use that instead of operator "!". Index: configure =================================================================== RCS file: /cvsroot/mplayer/main/configure,v retrieving revision 1.633 retrieving revision 1.634 diff -u -r1.633 -r1.634 --- configure 4 Jan 2003 19:07:46 -0000 1.633 +++ configure 4 Jan 2003 19:26:04 -0000 1.634 @@ -84,6 +84,16 @@ esac } +# not boolean test: implement the posix shell "!" operator for a +# non-posix /bin/sh. +# usage: not {command} +# returns exit status "success" when the execution of "command" +# fails. +not() { + eval "$@" + test $? -ne 0 +} + # Use this before starting a check echocheck() { echo "============ Checking for $@ ============" >> "$TMPLOG" @@ -707,7 +717,7 @@ cc_check -march=$proc -mcpu=$proc || proc=k6 fi if test "$proc" = "k6"; then - if ! cc_check -march=$proc -mcpu=$proc; then + if not cc_check -march=$proc -mcpu=$proc; then if cc_check -march=i586 -mcpu=i686; then proc=i586-i686 else @@ -5406,7 +5416,7 @@ EOF fi -if x86 && ! cygwin; then +if x86 && not cygwin; then if test "$_win32" = no ; then if test "$_win32libdir" ; then cat <<EOF
participants (2)
-
Diego Biurrun -
J�rgen Keil CVS