Simplify the setting of some defaults.
[ffmpeg.git] / configure
index e147b83..64be2bf 100755 (executable)
--- a/configure
+++ b/configure
@@ -327,10 +327,10 @@ TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
 logging="yes"
 logfile="config.err"
 prefix="/usr/local"
-libdir=""
-incdir=""
-mandir=""
-bindir=""
+libdir="${prefix}/lib"
+incdir="${prefix}/include/ffmpeg"
+mandir="${prefix}/man"
+bindir="${prefix}/bin"
 cross_prefix=""
 cross_compile="no"
 cc="gcc"
@@ -1473,22 +1473,6 @@ if test "$gprof" = "yes" ; then
     LDFLAGS="$LDFLAGS -p"
 fi
 
-if test x"$bindir" = x""; then
-    bindir="${prefix}/bin"
-fi
-
-if test x"$libdir" = x""; then
-    libdir="${prefix}/lib"
-fi
-
-if test x"$incdir" = x""; then
-    incdir="${prefix}/include/ffmpeg"
-fi
-
-if test x"$mandir" = x""; then
-    mandir="${prefix}/man"
-fi
-
 echo "install prefix   $prefix"
 echo "source path      $source_path"
 echo "C compiler       $cc"