Lines 117-131
Link Here
|
117 |
AC_SUBST(APP_LDFLAGS) |
117 |
AC_SUBST(APP_LDFLAGS) |
118 |
AC_SUBST(WARN_CFLAGS) |
118 |
AC_SUBST(WARN_CFLAGS) |
119 |
|
119 |
|
120 |
dnl Get distro name from /etc/issue |
120 |
AC_ARG_WITH(distro, |
121 |
if test -r /etc/issue; then |
121 |
AC_HELP_STRING([--with-distro=distro], |
122 |
AC_MSG_CHECKING([distro name]) |
122 |
[Provide distribution name, by default will try to grep /etc/issue])) |
123 |
DISTRO=`sed -e "s/.[0-9][0-9;]*[mJH]//g" < /etc/issue|tr "\n" " " | sed -e "s/(\\\\?\\\\\\\\.*//" -e "s/ */ /g" -e "s/^ //" -e "s/ $//"` |
123 |
|
124 |
AC_MSG_RESULT("$DISTRO") |
124 |
if test "$with_distro" != "no"; then |
125 |
AC_SUBST(DISTRO) |
125 |
DISTRO=$with_distro |
126 |
AC_DEFINE(HAVE_DISTRO, 1, [1 if DISTRO is defined]) |
126 |
else |
127 |
have_distro=yes |
127 |
dnl Get distro name from /etc/issue |
|
|
128 |
if test -r /etc/issue; then |
129 |
AC_MSG_CHECKING([distro name]) |
130 |
DISTRO=`sed -e "s/.[0-9][0-9;]*[mJH]//g" < /etc/issue|tr "\n" " " | sed -e "s/(\\\\?\\\\\\\\.*//" -e "s/ */ /g" -e "s/^ //" -e "s/ $//"` |
131 |
AC_MSG_RESULT("$DISTRO") |
132 |
fi |
128 |
fi |
133 |
fi |
|
|
134 |
AC_SUBST(DISTRO) |
135 |
AC_DEFINE(HAVE_DISTRO, 1, [1 if DISTRO is defined]) |
136 |
have_distro=yes |
129 |
AM_CONDITIONAL(HAVE_DISTRO, test x$have_distro = xyes) |
137 |
AM_CONDITIONAL(HAVE_DISTRO, test x$have_distro = xyes) |
130 |
|
138 |
|
131 |
dnl Check for system dependent features. |
139 |
dnl Check for system dependent features. |