mirror of
https://github.com/openwrt/telephony.git
synced 2025-05-02 13:30:51 +08:00

Since OpenWrt updated autoconf to 2.71 configure fails, because "$ac_dir" is now empty when configure attempts to run "./tools/versioncheck". With previous autoconf "$ac_dir" contained "autoconf" at this point in the script. As a workaround "$ac_dir" is replaced with "$ac_aux_dir", which incidentally contains "autoconf". Also a build dependency is added for gettext-full, as it provides iconv.m4. Previously this was provided by libiconv, but not anymore. Without iconv.m4 autoreconf fails. Some patches were refreshed to allow CI to pass. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
21 lines
513 B
Diff
21 lines
513 B
Diff
--- a/autoconf/extra.m4
|
|
+++ b/autoconf/extra.m4
|
|
@@ -516,17 +516,6 @@ AC_DEFUN([CS_ENABLE_OPTIMIZATION], [
|
|
], SUPPORTED_CFLAGS)
|
|
])
|
|
AC_SUBST([strip_binaries])
|
|
- ], [
|
|
- CFLAGS_saved="`echo ${CFLAGS_saved} |sed -e 's/\-O[0-9]\ \?//g' -e 's/[^|\ ]\-g[$|\ ]//g'`"
|
|
- optimize_flag="-O0"
|
|
- case "${CC}" in
|
|
- *gcc*)
|
|
- AX_CHECK_COMPILE_FLAG(-Og, [
|
|
- optimize_flag="-Og"
|
|
- ])
|
|
- ;;
|
|
- esac
|
|
- CFLAGS_saved="${CFLAGS_saved} ${optimize_flag} "
|
|
])
|
|
|
|
AS_IF([test "X${enable_debug}" == "Xyes"], [
|