[AC_TRY_LINK([#include <langinfo.h>],
[char* cs = nl_langinfo(YESEXPR); return !cs;],
[gl_cv_langinfo_yesexpr=yes],
[gl_cv_langinfo_yesexpr=no])
])
if test $gl_cv_langinfo_yesexpr = yes; then
[AC_TRY_LINK([#include <langinfo.h>],
[char* cs = nl_langinfo(YESEXPR); return !cs;],
[gl_cv_langinfo_yesexpr=yes],
[gl_cv_langinfo_yesexpr=no])
])
if test $gl_cv_langinfo_yesexpr = yes; then