Skip to content
Snippets Groups Projects
Commit 70b80b01 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Extra function-find magic for platforms that don't like the way the

default AC_CHECK_FUNCS() work. HPUX 11 is one of them.
parent 64067a04
No related branches found
No related tags found
No related merge requests found
......@@ -749,7 +749,20 @@ AC_CHECK_FUNCS( socket \
dlopen \
utime \
sigsetjmp \
poll
poll,
dnl if found
[],
dnl if not found, $ac_func is the name we check for
func="$ac_func"
AC_MSG_CHECKING([deeper for $func])
AC_TRY_LINK( [],
[ $func ();],
AC_MSG_RESULT(yes!)
def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
AC_DEFINE($def, 1, [If you have $func]),
AC_MSG_RESULT(but still no)
)
)
dnl sigsetjmp() might be a macro and no function so if it isn't found already
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment