dl-fldigi/m4/funcs.m4

16 wiersze
498 B
Plaintext
Czysty Zwykły widok Historia

2008-08-03 00:15:10 +00:00
# args: function, search-libs, other-libraries
AC_DEFUN([AC_FLDIGI_SEARCH_LIBS], [
m4_define([FUNC_NAME_UC], m4_translit([$1], [a-z], [A-Z]))
2009-04-17 18:17:55 +00:00
LIBS_search_libs_save="$LIBS"
2008-08-03 00:15:10 +00:00
LIBS=""
AC_SEARCH_LIBS($1, $2, [ac_cv_have_func_[]$1=1], [ac_cv_have_func_[]$1=0], $3)
if test "x$LIBS" != "x"; then
echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
fi
AC_DEFINE_UNQUOTED([HAVE_]FUNC_NAME_UC, $ac_cv_have_func_[]$1, [Define to 1 if we have $1])
2009-04-17 18:17:55 +00:00
LIBS="$LIBS_search_libs_save"
2008-08-03 00:15:10 +00:00
])