Fix asterisk-1.4.x build.
[openwrt/svn-archive/archive.git] / net / asterisk-1.4.x / patches / 030-acinclude.patch
1 diff -urN asterisk-1.4.11.orig/acinclude.m4 asterisk-1.4.11/acinclude.m4
2 --- asterisk-1.4.11.orig/acinclude.m4 2008-09-13 04:34:47.000000000 +0200
3 +++ asterisk-1.4.11/acinclude.m4 2008-09-13 04:35:19.000000000 +0200
4 @@ -585,7 +585,7 @@
5 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
6 [test "$withval" = no || with_gnu_ld=yes],
7 [with_gnu_ld=no])
8 -AC_REQUIRE([AST_PROG_SED])dnl
9 +AC_REQUIRE([AC_PROG_SED])dnl
10 AC_REQUIRE([AC_PROG_CC])dnl
11 AC_REQUIRE([AC_CANONICAL_HOST])dnl
12 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
13 @@ -690,28 +690,6 @@
14 AC_SUBST([EGREP])
15 ])]) # AST_PROG_EGREP
16
17 -# AST_PROG_SED
18 -# -----------
19 -# Check for a fully functional sed program that truncates
20 -# as few characters as possible. Prefer GNU sed if found.
21 -AC_DEFUN([AST_PROG_SED],
22 -[AC_CACHE_CHECK([for a sed that does not truncate output], ac_cv_path_SED,
23 - [dnl ac_script should not contain more than 99 commands (for HP-UX sed),
24 - dnl but more than about 7000 bytes, to catch a limit in Solaris 8 /usr/ucb/sed.
25 - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
26 - for ac_i in 1 2 3 4 5 6 7; do
27 - ac_script="$ac_script$as_nl$ac_script"
28 - done
29 - echo "$ac_script" | sed 99q >conftest.sed
30 - $as_unset ac_script || ac_script=
31 - _AC_PATH_PROG_FEATURE_CHECK(SED, [sed gsed],
32 - [_AC_FEATURE_CHECK_LENGTH([ac_path_SED], [ac_cv_path_SED],
33 - ["$ac_path_SED" -f conftest.sed])])])
34 - SED="$ac_cv_path_SED"
35 - AC_SUBST([SED])dnl
36 - rm -f conftest.sed
37 -])# AST_PROG_SED
38 -
39 dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
40 dnl
41 dnl @summary figure out how to build C programs using POSIX threads