dnl
dnl AC_SEARCH_HEADER(filename, paths, result-path)
dnl
AC_DEFUN(AC_SEARCH_HEADER_PATH,[
	AC_MSG_CHECKING(where the file $1 is )
	ac_search_header_path_result="" ;
	for ac_search_header_path_targ in $2 ; do
		if test -z "$ac_search_header_path_result" ; then
			if test -f $ac_search_header_path_targ/$1 ; then
				ac_search_header_path_result="$ac_search_header_path_targ" ;
			fi
		fi
	done
	$3="$ac_search_header_path_result" 
	if test -z "$ac_search_header_path_result" ; then
		AC_MSG_RESULT([not found])
	else
		AC_MSG_RESULT([$ac_search_header_path_result])
	fi
])

