common/autoconf/configure.ac

Print this page

        

@@ -1002,11 +1002,15 @@
 # Used on GNU/Linux systems, can be empty...
 #AC_PATH_PROG(ELFDUMP, elfdump)
 
 # Setup default logging of stdout and stderr to build.log in the output root.
 BUILD_LOG='$(OUTPUT_ROOT)/build.log'
-BUILD_LOG_WRAPPER='$(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
+if test -x $SRC_ROOT/common/bin/logger.sh ; then
+        BUILD_LOG_WRAPPER='$(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
+else
+        BUILD_LOG_WRAPPER='$(SH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
+fi
 AC_SUBST(BUILD_LOG)
 AC_SUBST(BUILD_LOG_WRAPPER)
 
 ###############################################################################
 #