aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-03-13 17:06:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-03-13 17:06:55 +0000
commit70b80b01604f40984b45301132c0302c460d4411 (patch)
tree679be95f1422d0276009cfb0cdc455822eba3cff
parent64067a04b597a5837df13a34ac6987c41ff2c2d6 (diff)
Extra function-find magic for platforms that don't like the way the
default AC_CHECK_FUNCS() work. HPUX 11 is one of them.
-rw-r--r--configure.in15
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 8ec776f65..841e64520 100644
--- a/configure.in
+++ b/configure.in
@@ -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