[DVDnav-discuss] r1078 - trunk/libdvdread/autogen.sh

nicodvb subversion at mplayerhq.hu
Fri Jun 6 22:33:01 CEST 2008


Author: nicodvb
Date: Fri Jun  6 22:33:00 2008
New Revision: 1078

Log:
simplified detect_autoconf() and removed some unexplainable nonsense

Modified:
   trunk/libdvdread/autogen.sh

Modified: trunk/libdvdread/autogen.sh
==============================================================================
--- trunk/libdvdread/autogen.sh	(original)
+++ trunk/libdvdread/autogen.sh	Fri Jun  6 22:33:00 2008
@@ -39,19 +39,13 @@ detect_configure_ac() {
 # AUTOCONF
 #-------------------
 detect_autoconf() {
-  set -- `type autoconf 2>/dev/null`
-  RETVAL=$?
-  NUM_RESULT=$#
-  RESULT_FILE=$3
-  if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then
     AC="`autoconf --version | sed -n 1p | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
-    AUTOCONF_MIN="`echo $AUTOCONF_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
     if test $AC -lt 100 ; then
       AC=`expr $AC \* 10`
     fi
+    AUTOCONF_MIN="`echo $AUTOCONF_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
     if [ `expr $AC` -ge $AUTOCONF_MIN ]; then
       autoconf_ok=yes
-    fi
   else
     echo
     echo "**Error**: You must have \`autoconf' >= $AUTOCONF_MIN installed to" 



More information about the DVDnav-discuss mailing list