comparison configure @ 8780:0c0b84a656fe

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 "!".
author jkeil
date Sat, 04 Jan 2003 19:26:04 +0000
parents bd9daec7b087
children d2cb317c7f16
comparison
equal deleted inserted replaced
8779:43b2ecb7543c 8780:0c0b84a656fe
80 ppc() { 80 ppc() {
81 case "$host_arch" in 81 case "$host_arch" in
82 ppc) return 0;; 82 ppc) return 0;;
83 *) return 1;; 83 *) return 1;;
84 esac 84 esac
85 }
86
87 # not boolean test: implement the posix shell "!" operator for a
88 # non-posix /bin/sh.
89 # usage: not {command}
90 # returns exit status "success" when the execution of "command"
91 # fails.
92 not() {
93 eval "$@"
94 test $? -ne 0
85 } 95 }
86 96
87 # Use this before starting a check 97 # Use this before starting a check
88 echocheck() { 98 echocheck() {
89 echo "============ Checking for $@ ============" >> "$TMPLOG" 99 echo "============ Checking for $@ ============" >> "$TMPLOG"
705 fi 715 fi
706 if test "$proc" = "k6-3" || test "$proc" = "k6-2"; then 716 if test "$proc" = "k6-3" || test "$proc" = "k6-2"; then
707 cc_check -march=$proc -mcpu=$proc || proc=k6 717 cc_check -march=$proc -mcpu=$proc || proc=k6
708 fi 718 fi
709 if test "$proc" = "k6"; then 719 if test "$proc" = "k6"; then
710 if ! cc_check -march=$proc -mcpu=$proc; then 720 if not cc_check -march=$proc -mcpu=$proc; then
711 if cc_check -march=i586 -mcpu=i686; then 721 if cc_check -march=i586 -mcpu=i686; then
712 proc=i586-i686 722 proc=i586-i686
713 else 723 else
714 proc=i586 724 proc=i586
715 fi 725 fi
5404 Use --enable-sdl to force usage of libSDL. 5414 Use --enable-sdl to force usage of libSDL.
5405 5415
5406 EOF 5416 EOF
5407 fi 5417 fi
5408 5418
5409 if x86 && ! cygwin; then 5419 if x86 && not cygwin; then
5410 if test "$_win32" = no ; then 5420 if test "$_win32" = no ; then
5411 if test "$_win32libdir" ; then 5421 if test "$_win32libdir" ; then
5412 cat <<EOF 5422 cat <<EOF
5413 Failed to find a Win32 codecs dir at $_win32libdir! 5423 Failed to find a Win32 codecs dir at $_win32libdir!
5414 Create it and copy the DLL files there! (You can get them from your Windows 5424 Create it and copy the DLL files there! (You can get them from your Windows