in reply to Re^2: Installing Perl 5.18.0 in Mac OS X with PerlBrew
in thread Installing Perl 5.18.0 in Mac OS X with PerlBrew

In that case, Configure is failing to parse the output of the C preprocessor. Look at he following code, around line 5413:
echo '#include <stdio.h>' > foo.c $cat >fieldn <<EOF $startsh $cppstdin $cppflags $cppminus <foo.c 2>/dev/null | \ $grep '^[ ]*#.*stdio\.h' | \ while read cline; do pos=1 set \$cline while $test \$# -gt 0; do if $test $testaccess \`echo \$1 | $tr -d '"'\`; then echo "\$pos" exit 0 fi shift pos=\`expr \$pos + 1\` done done EOF
You might want to edit Configure so that it shows the exact command being executed on the $cppstdin line, then run it manually and what output you get.

Dave.