From: Guy Harris Date: Tue, 3 Mar 2020 01:07:43 +0000 (-0800) Subject: $srcdir suffices. X-Git-Tag: tcpdump-4.99-bp~487 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/273c23a52e9793c7f96b1b631db52587ef0e0c4a $srcdir suffices. It's "the name of the top source directory, assuming that the working directory is the top build directory"; when running the configure script, the working directory will, in fact, be the top build directory. --- diff --git a/configure b/configure index ade0e52b..abda7ae4 100755 --- a/configure +++ b/configure @@ -9124,7 +9124,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} case $ac_file$ac_mode in "default-1":C) if test -f .devel; then echo timestamp > stamp-h - cat $ac_top_srcdir/Makefile-devel-adds >> Makefile + cat $srcdir/Makefile-devel-adds >> Makefile make depend fi ;; diff --git a/configure.ac b/configure.ac index 7c8ea351..1fb36e2b 100644 --- a/configure.ac +++ b/configure.ac @@ -992,7 +992,7 @@ AC_CONFIG_HEADER(config.h) AC_OUTPUT_COMMANDS([if test -f .devel; then echo timestamp > stamp-h - cat $ac_top_srcdir/Makefile-devel-adds >> Makefile + cat $srcdir/Makefile-devel-adds >> Makefile make depend fi]) AC_OUTPUT(Makefile tcpdump.1)