1N/A# SHOPT_* option probe
1N/A : check for shell magic #!
1N/A then echo "#define SHELLMAGIC 1"
1N/A option() # name value
1N/A 0) echo "#ifndef SHOPT_$1"
1N/A echo "# define SHOPT_$1 1"
1N/A *) echo "#undef SHOPT_$1"
1N/A case `echo a | tr a '\012' | wc -l` in
1N/A *1*) option MULTIBYTE 0 ;;
1N/A #if !_PACKAGE_ast && ( (MB_LEN_MAX-1)<=0 || !defined(_lib_mbtowc) )
1N/A # undef SHOPT_MULTIBYTE