--- configure2.orig 2011-10-07 22:20:59.000000000 +0200 +++ configure2 2011-12-09 12:01:14.948827944 +0100 @@ -26,6 +26,7 @@ echo " --help print this message" echo " --prefix=PREFIX install in PREFIX [$PREFIX]" echo " --libdir=DIR install libs in DIR [PREFIX/lib]" + echo " --libdatadir=DIR install pkgconfig files in DIR [PREFIX/lib/pkgconfig]" echo " --shlibdir=DIR install shared libs in DIR [PREFIX/lib]" echo " --incdir=DIR install includes in DIR [PREFIX/include/libdvdread]" echo " --enable-static build static libraries [default=yes]" @@ -67,6 +68,8 @@ ;; --libdir=*) libdir="$optval" ;; + --libdatadir=*) libdatadir="$optval" + ;; --shlibdir=*) shlibdir="$optval" ;; --incdir=*) incdir="$optval" @@ -92,11 +95,12 @@ esac done -PREFIX=`cd $PREFIX && pwd` +#PREFIX=`cd $PREFIX && pwd` test -z "$libdir" && libdir=$PREFIX/lib +test -z "$libdatadir" && libdir=$PREFIX/lib/pkgconfig test -z "$shlibdir" && shlibdir=$PREFIX/lib -test -z "$incdir" && dvdread_incdir=$PREFIX/include/dvdread +test -z "$incdir" && incdir=$PREFIX/include/dvdread targetos=`uname -s` case $targetos in @@ -110,7 +114,7 @@ echo -n "Checking if we're big-endian... " bigendian=no -TMPD=`mktemp -d` +TMPD=`mktemp -d temp.XXXX` TMPC=$TMPD/endian.c TMPO=$TMPD/endian.o cat > $TMPC <> config.h +if test "$bigendian" = "yes" +then + echo "#define WORDS_BIGENDIAN" >> config.h +else + echo "#undef WORDS_BIGENDIAN" >> config.h +fi # build tree in object directory if source path is different from current one if test "$source_path_used" != "no"; then