[Mplayer-cvslog] CVS: main configure,1.219,1.220

pl pl at mplayer.dev.hu
Sun Nov 4 00:16:52 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv15019

Modified Files:
	configure 
Log Message:
avoids spitting bad compilation messages at the user when sthg does not work


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.219
retrieving revision 1.220
diff -u -r1.219 -r1.220
--- configure	3 Nov 2001 21:25:55 -0000	1.219
+++ configure	3 Nov 2001 23:15:44 -0000	1.220
@@ -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 <string>
 
@@ -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




More information about the MPlayer-cvslog mailing list