Lines 186-203
Link Here
|
186 |
libstrl_found="no" |
186 |
libstrl_found="no" |
187 |
AC_CHECK_FUNCS([strlcat strlcpy], [strl_found="yes"], |
187 |
AC_CHECK_FUNCS([strlcat strlcpy], [strl_found="yes"], |
188 |
[ |
188 |
[ |
189 |
saved_LIBS="$LIBS" |
189 |
AC_CHECK_HEADERS([strl.h], |
190 |
LIBS="" |
190 |
[ |
191 |
AC_SEARCH_LIBS([strlcat], |
191 |
saved_LIBS="$LIBS" |
192 |
[strl], |
192 |
LIBS="" |
193 |
[libstrl_found="yes"], |
193 |
AC_SEARCH_LIBS([strlcat], |
194 |
[strl_found="no"]) |
194 |
[strl], |
195 |
AC_SEARCH_LIBS([strlcpy], |
195 |
[libstrl_found="yes"], |
196 |
[strl], |
196 |
[strl_found="no"]) |
197 |
[libstrl_found="yes"], |
197 |
AC_SEARCH_LIBS([strlcpy], |
198 |
[strl_found="no"]) |
198 |
[strl], |
199 |
STRL_LIBS="$LIBS" |
199 |
[libstrl_found="yes"], |
200 |
LIBS="$saved_LIBS" |
200 |
[strl_found="no"]) |
|
|
201 |
STRL_LIBS="$LIBS" |
202 |
LIBS="$saved_LIBS" |
203 |
], |
204 |
[strl_found="no"]) |
201 |
]) |
205 |
]) |
202 |
AM_CONDITIONAL([STRL], |
206 |
AM_CONDITIONAL([STRL], |
203 |
[test x"$strl_found" != x"yes" -a x"$libstrl_found" != x"yes"]) |
207 |
[test x"$strl_found" != x"yes" -a x"$libstrl_found" != x"yes"]) |