Originally committed as revision 7915 to svn://svn.ffmpeg.org/ffmpeg/trunk
fi ;;
SunOS)
dv1394="no"
- make="gmake"
FFLDFLAGS=""
FFSERVERLDFLAGS=""
SHFLAGS="-shared -Wl,-h,\$@"
;;
NetBSD)
dv1394="no"
- make="gmake"
add_extralibs "-lossaudio"
;;
OpenBSD)
dv1394="no"
need_memalign="no"
- make="gmake"
LIBOBJFLAGS="\$(PIC)"
LDCONFIG="ldconfig -m \$(shlibdir)"
SHFLAGS='-shared'
;;
FreeBSD)
dv1394="no"
- make="gmake"
need_memalign="no"
add_cflags "-pthread"
;;
BSD/OS)
dv1394="no"
extralibs="-lpoll -lgnugetopt -lm"
- make="gmake"
strip="strip -d"
;;
Darwin)
IRIX*)
targetos=IRIX
ranlib="echo ignoring ranlib"
- make="gmake"
;;
OS/2)
TMPE=$TMPE".exe"
esac
fi
+gnu_make(){
+ $1 --version 2>&1 | grep -q GNU
+}
+
+if ! gnu_make $make; then
+ gnu_make gmake && make=gmake || die "GNU make not found."
+fi
+
# make sure we can execute files in $TMPDIR
cat >$TMPE 2>>$logfile <<EOF
#! /bin/sh