shithub: sox

Download patch

ref: 249492720dd72818eb33988ea49359d72ad60031
parent: 3e0a1693e5a3e97374f856c46562d710df5c6984
author: robs <robs>
date: Fri Nov 14 03:48:09 EST 2008

replace auto detect of distro name with manual option

--- a/configure.ac
+++ b/configure.ac
@@ -117,14 +117,14 @@
 AC_SUBST(APP_LDFLAGS)
 AC_SUBST(WARN_CFLAGS)
 
-dnl Get distro name from /etc/issue
-if test -r /etc/issue; then
-  AC_MSG_CHECKING([distro name])
-  DISTRO=`sed -e "s/.[0-9][0-9;]*[mJH]//g" < /etc/issue|tr "\n" " " | sed -e "s/(\\\\?\\\\\\\\.*//" -e "s/  */ /g" -e "s/^ //" -e "s/ $//"`
-  AC_MSG_RESULT("$DISTRO")
+AC_ARG_WITH(distro, AC_HELP_STRING([--with-distro=distro], [Provide distribution name]))
+if test "x$with_distro" != "x"; then
+  DISTRO="$with_distro"
   AC_SUBST(DISTRO)
   AC_DEFINE(HAVE_DISTRO, 1, [1 if DISTRO is defined])
   have_distro=yes
+else
+  DISTRO="not specified!"
 fi
 AM_CONDITIONAL(HAVE_DISTRO, test x$have_distro = xyes)
 
@@ -602,6 +602,7 @@
 
 dnl Report configuration.
 echo
+echo "Distro name ...................... $DISTRO"
 echo "Debugging build................... $enable_debug"
 echo "External module support........... $using_libltdl"
 echo "ALSA driver....................... $enable_alsa"