On Thu, 3 Jun 2004, Hrvoje Niksic wrote:

> It seems configure's way of checking for select simply fails on HPUX.
> :-(

The default configure test that checks for the presence of a function is
certainly not optimal for all platforms and environments.

In curl's configure script, we've resorted to a secondary check if the default
check fails, and that one detects select fine even in cases like this.

The concept is basicly like this:

AC_CHECK_FUNCS( select, ,
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!)
               eval "ac_cv_func_$func=yes"
               def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
               AC_DEFINE_UNQUOTED($def, 1, [If you have $func]),
               AC_MSG_RESULT(but still no)
               )

-- 
         -=- Daniel Stenberg -=- http://daniel.haxx.se -=-
  ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol

Reply via email to