]> granicus.if.org Git - curl/commitdiff
Extra function-find magic for platforms that don't like the way the
authorDaniel Stenberg <daniel@haxx.se>
Thu, 13 Mar 2003 17:06:55 +0000 (17:06 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 Mar 2003 17:06:55 +0000 (17:06 +0000)
default AC_CHECK_FUNCS() work. HPUX 11 is one of them.

configure.in

index 8ec776f65e611f3d8252d308d5d3d82c88788401..841e645202df7657f9679e07b68a8407398d0ad2 100644 (file)
@@ -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