do_usr_include() { if ! hasq -I${ROOT}usr/include ${CFLAGS}; then export CFLAGS="${CFLAGS} -I${ROOT}usr/include" fi } do_lib() { if ! hasq -L${ROOT}lib ${LDFLAGS}; then export LDFLAGS="${LDFLAGS} -L${ROOT}lib" fi } do_usr_lib() { if ! hasq -L${ROOT}usr/lib ${LDFLAGS}; then export LDFLAGS="${LDFLAGS} -L${ROOT}usr/lib" fi } if [ "$PN" == "bash" ]; then # https://bugs.gentoo.org/show_bug.cgi?id=135242 export ac_cv_func_setvbuf_reversed="no" do_lib do_usr_include fi unset do_lib do_usr_lib do_usr_include