diff --git a/configure b/configure index bc315fc..da07cac 100755 --- a/configure +++ b/configure @@ -4939,7 +4939,7 @@ OFP_CURR_JDK_DIR="$OFP_JAVA_PATH" if test -n "$with_java_incs" ; then # the user supplied the include flags to configure with --with-java-incs - OFP_CFLAGS="$with_java_incs" + OFP_CFLAGS="-I$with_java_incs" OFP_ENABLE_C_ACTIONS="yes" else case "${host}" in diff --git a/src/fortran/ofp/cparser/CFortranParser.g b/src/fortran/ofp/cparser/CFortranParser.g index e7241bb..8210609 100644 --- a/src/fortran/ofp/cparser/CFortranParser.g +++ b/src/fortran/ofp/cparser/CFortranParser.g @@ -5380,7 +5380,7 @@ main_program { c_action_main_program(hasProgramStmt, hasExecutionPart, hasInternalSubprogramPart); } - : ( program_stmt {hasProgramStmt = ANTLR3_TRUE} )? + : ( program_stmt {hasProgramStmt = ANTLR3_TRUE;} )? specification_part ( execution_part {hasExecutionPart = ANTLR3_TRUE;} )?