From: Mika Lindqvist Date: Wed, 31 May 2023 04:30:57 +0000 (+0300) Subject: Make sure file exists before adding it as dependency in configure. X-Git-Tag: 2.1.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=154441aeac2fa9d051e0f0d95d3846c910ef28d4;p=thirdparty%2Fzlib-ng.git Make sure file exists before adding it as dependency in configure. --- diff --git a/configure b/configure index f84233e09..a7ecc370b 100755 --- a/configure +++ b/configure @@ -2148,8 +2148,12 @@ sed < $SRCDIR/Makefile.in " /^ARCH_SHARED_OBJS *=/s#=.*#=$ARCH_SHARED_OBJS# " > Makefile -# Append header files dependences. +# Append header files dependencies. for file in $SRCDIR/*.c $SRCDIR/test/*.c $SRCDIR/test/fuzz/*.c $SRCDIR/$ARCHDIR/*.c $SRCDIR/tools/*.c; do + if test ! -f $file; then + continue + fi + short_name=$(echo $file | sed -e "s#$SRCDIR/##g") incs=$(grep -h include $file | sed -n 's/# *\include *"\(.*\.h\)".*/\1/p' | sort | uniq) includes=$(for i in $incs; do @@ -2222,8 +2226,12 @@ sed < $SRCDIR/$ARCHDIR/Makefile.in " /^PPCFLAGS *=/s#=.*#=$vmxflag# " > $ARCHDIR/Makefile -# Append header files dependences. +# Append header files dependencies. for file in $SRCDIR/$ARCHDIR/*.c; do + if test ! -f $file; then + continue + fi + incs=$(grep -h include $file | sed -n 's/# *\include *"\(.*\.h\)".*/\1/p' | sort | uniq) includes=$(for i in $incs; do # Check that the include file exists in the current dir,