diff options
| -rw-r--r-- | meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-configure-Check-for-function-from-respective-library.patch | 72 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb | 1 |
2 files changed, 73 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-configure-Check-for-function-from-respective-library.patch b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-configure-Check-for-function-from-respective-library.patch new file mode 100644 index 0000000000..5ee368f6ee --- /dev/null +++ b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/0001-configure-Check-for-function-from-respective-library.patch | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | From 366c4a1c8b7724241ad2b703e48615ca5affa32e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 1 Sep 2022 12:46:07 -0700 | ||
| 4 | Subject: [PATCH] configure: Check for function from respective library in | ||
| 5 | AC_CHECK_LIB | ||
| 6 | |||
| 7 | This helps in doing correct checks especially with newer autoconf and | ||
| 8 | toolchain | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | configure.ac | 16 ++++++++-------- | ||
| 14 | 1 file changed, 8 insertions(+), 8 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/configure.ac b/configure.ac | ||
| 17 | index d4915a1..6154514 100644 | ||
| 18 | --- a/configure.ac | ||
| 19 | +++ b/configure.ac | ||
| 20 | @@ -332,8 +332,8 @@ if [test "$enable_tests"]; then | ||
| 21 | fi | ||
| 22 | |||
| 23 | if [test "$test_gcov" == "yes"]; then | ||
| 24 | - AC_CHECK_LIB(gcc,main) | ||
| 25 | - AC_CHECK_LIB(gcov,main) | ||
| 26 | + AC_CHECK_LIB(gcc,_Unwind_GetIP) | ||
| 27 | + AC_CHECK_LIB(gcov,gcov_write_summary) | ||
| 28 | AC_PATH_PROG(LCOV,lcov,yes,no) | ||
| 29 | AC_PATH_PROG(GENHTML,genhtml,yes,no) | ||
| 30 | if test "$LCOV" == "no" -o "$GENHTML" == "no" ; then | ||
| 31 | @@ -400,7 +400,7 @@ fi | ||
| 32 | |||
| 33 | if test "$enable_pam" == "yes"; then | ||
| 34 | AC_DEFINE(HAVE_PAM,,[PAM support enabled.]) | ||
| 35 | - AC_CHECK_LIB(pam,main,[SFCB_LIBPAM=-lpam],[AC_MSG_ERROR(Could not find required pam library.)]) | ||
| 36 | + AC_CHECK_LIB(pam,pam_start,[SFCB_LIBPAM=-lpam],[AC_MSG_ERROR(Could not find required pam library.)]) | ||
| 37 | SFCB_CONF_BASICAUTHLIB=sfcBasicPAMAuthentication | ||
| 38 | SFCB_CONF_DOBASICAUTH=true | ||
| 39 | else | ||
| 40 | @@ -470,16 +470,16 @@ if test "$HAVE_UNZIP" = "no" ; then | ||
| 41 | fi | ||
| 42 | |||
| 43 | # Checks for libraries. | ||
| 44 | -AC_CHECK_LIB(pthread,main) | ||
| 45 | -AC_CHECK_LIB(dl,main) | ||
| 46 | -AC_CHECK_LIB(z,main,[SFCB_LIBZ=-lz],[AC_MSG_ERROR([Could not find required libz])]) | ||
| 47 | +AC_CHECK_LIB(pthread,pthread_create) | ||
| 48 | +AC_CHECK_LIB(dl,dlopen) | ||
| 49 | +AC_CHECK_LIB(z,inflate,[SFCB_LIBZ=-lz],[AC_MSG_ERROR([Could not find required libz])]) | ||
| 50 | # Test for the newest function here to make sure it's up to date. | ||
| 51 | AC_CHECK_LIB(sfcUtil,invalid_uint,, \ | ||
| 52 | [AC_MSG_ERROR([Function invalid_uint not found. Is the required version of sfcCommon installed?])]) | ||
| 53 | if test "$enable_indications" = "yes" ; then | ||
| 54 | LOAD_INDICATION_PROVIDER= | ||
| 55 | AC_DEFINE(HAVE_INDICATIONS,1,[Indication support enabled.]) | ||
| 56 | - AC_CHECK_LIB(curl,main) | ||
| 57 | + AC_CHECK_LIB(curl,curl_easy_init) | ||
| 58 | else | ||
| 59 | LOAD_INDICATION_PROVIDER='#' | ||
| 60 | fi | ||
| 61 | @@ -487,7 +487,7 @@ fi | ||
| 62 | AC_SUBST(LOAD_INDICATION_PROVIDER) | ||
| 63 | |||
| 64 | if test "$enable_ssl" = "yes"; then | ||
| 65 | - AC_CHECK_LIB(ssl,main) | ||
| 66 | + AC_CHECK_LIB(ssl,SSL_CTX_new) | ||
| 67 | SFCB_CONF_HTTPS=true | ||
| 68 | SFCB_CONF_HTTP=false | ||
| 69 | else | ||
| 70 | -- | ||
| 71 | 2.37.3 | ||
| 72 | |||
diff --git a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb index 4b9ae4758f..5f398fb0d2 100644 --- a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb +++ b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb | |||
| @@ -27,6 +27,7 @@ SRC_URI = "http://downloads.sourceforge.net/sblim/${BP}.tar.bz2 \ | |||
| 27 | file://0001-Replace-need-for-error.h-when-it-does-not-exist.patch \ | 27 | file://0001-Replace-need-for-error.h-when-it-does-not-exist.patch \ |
| 28 | file://sblim-sfcb-1.4.9-fix-sfcbinst2mof.patch \ | 28 | file://sblim-sfcb-1.4.9-fix-sfcbinst2mof.patch \ |
| 29 | file://0001-Avoid-variable-definition-in-header-files.patch \ | 29 | file://0001-Avoid-variable-definition-in-header-files.patch \ |
| 30 | file://0001-configure-Check-for-function-from-respective-library.patch \ | ||
| 30 | " | 31 | " |
| 31 | 32 | ||
| 32 | SRC_URI[md5sum] = "28021cdabc73690a94f4f9d57254ce30" | 33 | SRC_URI[md5sum] = "28021cdabc73690a94f4f9d57254ce30" |
