1# Look for functions in $list. Return as soon as the first function is found,
2# defining has_$fun
3for fun in $list; do
4  if ($CC $CFLAGS has_$fun.c -o $exe $extra_flags > /dev/null 2>&1); then
5    if test -s $exe ; then
6      if test -x $exe -o "$osname" = os2 ; then
7        eval "has_$fun=yes"; echo ..."Found $fun."
8        case "$_has_list" in
9          *has_$fun*);;
10          *) _has_list="$_has_list has_$fun";;
11        esac
12        break
13      fi
14    fi
15  fi;
16  eval "has_$fun=no"; echo ..."I did not find $fun."
17done
18rm -f $exe
19