Do not disable 'gb.crypt' if libcrypt is not found. Let's suppose it is located in the C system library, as on some systems based on musl and busybox.

[CONFIGURATION]
* NEW: Fix some messages

[GB.CRYPT]
* NEW: Do not disable the component if libcrypt is not found. Let's suppose it is located in the C system library, as on some systems.
This commit is contained in:
gambas 2018-09-29 04:40:24 +02:00
parent 28617a6208
commit aa6b7825d8
3 changed files with 11 additions and 5 deletions

View file

@ -928,7 +928,7 @@ AC_DEFUN([GB_COMPONENT_PKG_CONFIG],
touch DISABLED.$3
fi
AC_MSG_RESULT([** NOT FOUND **])
AC_MSG_RESULT(no)
for pkgcmp in $5
do

View file

@ -11,8 +11,14 @@ GB_COMPONENT(
crypt, CRYPT, gb.crypt, [src],
[],
[GB_FIND(libcrypt.$SHLIBEXT, $prefix /usr/local /usr, lib)],
[-lcrypt])
[-lcrypt],
[],
[Cannot find 'libcrypt' library. It may be merged inside the system C library, so you can ignore that warning...])
dnl ---- Remove DISABLED file that could have been generated before
rm -f DISABLED DISABLED.*
AC_OUTPUT( \
Makefile \
src/Makefile \

View file

@ -36,7 +36,7 @@ GB_COMPONENT(
[GB_FIND(libiconv.$SHLIBEXT, /opt/local /usr/local /usr, lib)],
[-liconv],
[],
[Cannot find 'libiconv' library. It may be located inside the system C library, so you can ignore that warning...])
[Cannot find 'libiconv' library. It may be merged inside the system C library, so you can ignore that warning...])
dnl ---- Remove DISABLED file that could have been generated before
@ -52,7 +52,7 @@ GB_COMPONENT(
[GB_FIND(libgettextlib.$SHLIBEXT, /opt/local /usr/local /usr, lib)],
[-lgettextlib],
[],
[Cannot find 'libgettextlib' library. It may be located inside the system C library, so you can ignore that warning...])
[Cannot find 'libgettextlib' library. It may be merged inside the system C library, so you can ignore that warning...])
fi