Daniel Stenberg <[EMAIL PROTECTED]> writes:

> 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.

Believe it or not, I wasn't aware of that.  Furthermore, I'm pretty
certain that older versions of Autoconf handled HPUX just fine.  The
level of overengineering that went into Autoconf in the last several
years is appalling.  :-(

> 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)
>                )

Would it make sense to simply always use this check?

Reply via email to