# HG changeset patch # User pl # Date 1004829344 0 # Node ID 994b95f443f2b503f5980016f7b4102e4aac2725 # Parent 11f4c2b2b70f10d715ec4d95a352f7130e8a02e2 avoids spitting bad compilation messages at the user when sthg does not work diff -r 11f4c2b2b70f -r 994b95f443f2 configure --- a/configure Sat Nov 03 23:01:17 2001 +0000 +++ b/configure Sat Nov 03 23:15:44 2001 +0000 @@ -116,7 +116,7 @@ # SOME MACROS/USEFUL FUNCTIONS # Returns error code only - NO displaye cc_check() { - "$_cc" "$TMPC" -o "$TMPO" "$@" >/dev/null 2>&1 + ( "$_cc" "$TMPC" -o "$TMPO" "$@" ) >/dev/null 2>&1 return "$?" } @@ -970,7 +970,7 @@ if test "$_x11" = yes ; then cc_check $_x11libdir -lX11 -lXext -lXdpms $_socklib && _xdpms_3=yes -nm `echo $_x11libdir|cut -c 3-`/libXext.a | grep DPMSQueryExtension > /dev/null 2>&1 && _xdpms_4=yes +( nm `echo $_x11libdir | cut -c 3-`/libXext.a | grep DPMSQueryExtension ) > /dev/null 2>&1 && _xdpms_4=yes cc_check $_x11libdir -lX11 -lXext -lXv $_socklib && _xv=yes cc_check $_x11libdir -lX11 -lXext -lXxf86vm $_socklib && _vm=yes cc_check $_x11libdir -lX11 -lXext -lXinerama $_socklib && _xinerama=yes @@ -1769,7 +1769,7 @@ # check if compiler supports C++ and C++-libs are installed correctly if test "$_win32" = yes && test "$_dshow" = yes ; then -cat > $TMPCPP << EOF +cat > "$TMPCPP" << EOF /* very useful C++ test program by atmos */ #include @@ -1791,10 +1791,10 @@ } EOF echo $_echo_n "Checking if your compiler '$_cc' supports C++ ... $_echo_c" -if $_cc $TMPCPP -o $TMPO > /dev/null 2>&1 ; then +if ( "$_cc" "$TMPCPP" -o "$TMPO" ) > /dev/null 2>&1 ; then echo yes echo $_echo_n "Checking for proper C++ runtime enviroment ... $_echo_c" - if $TMPO ; then + if "$TMPO" ; then echo yes else echo no