[DVDnav-discuss] r1116 - trunk/libdvdnav/configure2
rathann
subversion at mplayerhq.hu
Sun Jul 13 23:12:49 CEST 2008
Author: rathann
Date: Sun Jul 13 23:12:49 2008
New Revision: 1116
Log:
Rework dvdread-config handling. --cflags may be empty.
Modified:
trunk/libdvdnav/configure2
Modified: trunk/libdvdnav/configure2
==============================================================================
--- trunk/libdvdnav/configure2 (original)
+++ trunk/libdvdnav/configure2 Sun Jul 13 23:12:49 2008
@@ -103,13 +103,15 @@ test -z "$libdir" && libdir=$PREFIX/lib
test -z "$shlibdir" && shlibdir=$PREFIX/lib
test -z "$incdir" && incdir=$PREFIX/include/dvdnav
-dvdread_cflags=`$DVDREAD_CONFIG --cflags`
-dvdread_libs=`$DVDREAD_CONFIG --libs`
-if test -z "$dvdread_cflags" ; then
- echo "$DVDREAD_CONFIG --cflags returned an error. Can't proceed"
+dvdread=no
+$DVDREAD_CONFIG --prefix >> /dev/null 2>&1 && dvdread=yes
+test "$dvdread" != "yes" && $DVDREAD_CONFIG --exists >> /dev/null 2>&1 && dvdread=yes
+if test "$dvdread" != "yes" ; then
+ echo "$DVDREAD_CONFIG returned an error. Can't proceed"
exit 1
fi
-
+dvdread_cflags=`$DVDREAD_CONFIG --cflags`
+dvdread_libs=`$DVDREAD_CONFIG --libs`
targetos=`uname -s`
case $targetos in
More information about the DVDnav-discuss
mailing list