[FreeSWITCH]: Ref. to FS git commit bb258288801b50e8fb673a620a6c2b4855e11daf
[feed/telephony.git] / net / freeswitch / patches / musl / rel / configure_ac.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -254,7 +254,7 @@ AX_COMPILER_VENDOR
4 if test "x${cross_compiling}" = "xyes"; then
5 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
6 case "$host" in
7 - arm*-linux-gnueabi*|arm*-*-linux-gnueabi*)
8 + arm*-linux-gnueabi*|arm*-*-linux-*)
9 # spandsp modem
10 ac_cv_file__dev_ptmx=yes
11 # libjs
12 @@ -273,7 +273,7 @@ if test "x${cross_compiling}" = "xyes";
13 export apr_cv_mutex_recursive=yes
14 export ac_cv_func_pthread_rwlock_init=yes
15 export apr_cv_type_rwlock_t=yes
16 - export apr_cv_process_shared_works=yes
17 + export apr_cv_process_shared_works=no
18 export apr_cv_mutex_robust_shared=yes
19 ;;
20 esac
21 @@ -405,9 +405,6 @@ elif test "x${ax_cv_c_compiler_vendor}"
22 elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
23 APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
24 APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
25 - if test "$ac_cv_gcc_supports_w_no_unused_result" = yes; then
26 - APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
27 - fi
28 if test "${enable_64}" = "yes"; then
29 case "$host" in
30 *darwin*)
31 @@ -901,7 +898,6 @@ AC_CHECK_LIB(pthread, pthread_setschedpa
32
33 AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket))
34
35 -AC_CHECK_FILE(/dev/ptmx, [AC_DEFINE(HAVE_DEV_PTMX, 1, [Define if you have /dev/ptmx])])
36 AC_CHECK_LIB(util, openpty, [AC_DEFINE(HAVE_OPENPTY, 1, [Define if you have openpty()])])
37
38 AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[
39 @@ -1474,14 +1470,14 @@ AM_CONDITIONAL([HAVE_MYSQL],[test "$foun
40 # perl checks
41 #
42
43 -AC_CHECK_PROG(PERL,perl,[ac_cv_have_perl=yes],[ac_cv_have_perl=no])
44 +AC_CHECK_PROG(PERL,[perl],[ac_cv_have_perl=yes],[ac_cv_have_perl=no],[${STAGING_DIR}/../host/usr/bin])
45 +PERL=$as_dir/$ac_word$ac_exec_ext
46
47 # -a "x$ac_cv_have_EXTERN_h" != "xno"
48
49 if test "x$ac_cv_have_perl" != "xno"; then
50 - PERL=perl
51 - PERL_SITEDIR="`$PERL -MConfig -e 'print $Config{archlib}'`"
52 - PERL_LIBDIR="-L`$PERL -MConfig -e 'print $Config{archlib}'`/CORE"
53 + PERL_SITEDIR="`$PERL -MConfig -e 'print $Config{archlibexp}'`"
54 + PERL_LIBDIR="-L`$PERL -MConfig -e 'print $Config{archlibexp}'`/CORE"
55 PERL_LIBS="`$PERL -MConfig -e 'print $Config{libs}'`"
56 PERL_CFLAGS="-w -DMULTIPLICITY `$PERL -MExtUtils::Embed -e ccopts | sed -e 's|-arch x86_64 -arch i386||'` -DEMBED_PERL"
57 PERL_LDFLAGS="`$PERL -MExtUtils::Embed -e ldopts| sed -e 's|-arch x86_64 -arch i386||'`"
58 @@ -1498,6 +1494,7 @@ if test "x$ac_cv_have_perl" != "xno"; th
59 AC_CHECK_LIB([perl], [perl_alloc], ac_cv_use_libperl=yes, ac_cv_use_libperl=no)
60 LDFLAGS="$save_LDFLAGS"
61
62 + AC_SUBST(PERL)
63 AC_SUBST(PERL_SITEDIR)
64 AC_SUBST(PERL_LIBDIR)
65 AC_SUBST(PERL_LIBS)