summaryrefslogtreecommitdiff
path: root/source3/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source3/aclocal.m4')
-rw-r--r--source3/aclocal.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/aclocal.m4 b/source3/aclocal.m4
index e97084e9ac..45ee7b23ad 100644
--- a/source3/aclocal.m4
+++ b/source3/aclocal.m4
@@ -61,3 +61,15 @@ else
fi
rm -f conftest*
])])
+
+dnl check for a function in a library, but don't
+dnl keep adding the same library to the LIBS variable.
+dnl AC_LIBTESTFUNC(lib,func)
+AC_DEFUN(AC_LIBTESTFUNC,
+[case "$LIBS" in
+ *-l$1*) AC_CHECK_FUNCS($2) ;;
+ *) AC_CHECK_LIB($1, $2)
+ AC_CHECK_FUNCS($2)
+ ;;
+ esac
+])