--- a/src/test/resources/golden-sample/configure2 Mon Sep 18 23:20:29 2023 +0200 +++ b/src/test/resources/golden-sample/configure2 Tue Sep 19 19:29:19 2023 +0200 @@ -199,6 +199,13 @@ # DEPENDENCIES # +# check languages +lang_c= +lang_cpp= +if detect_c_compiler ; then + lang_c=1 +fi + # create buffer for make variables required by dependencies echo > "$TEMP_DIR/make.mk" @@ -423,6 +430,9 @@ return 0 } + + + # start collecting dependency information echo > "$TEMP_DIR/flags.mk" @@ -436,9 +446,7 @@ do while true do - if detect_c_compiler ; then - : - else + if [ -z "$lang_c" ] ; then ERROR=1 break fi