Use relative dir instead of ac_builddir

When generating src/build-info.h the use of ac_builddir was problematic.
There were several cases where it was undefined leading to the absolute
path /src/build-info.h. ./configure should be called from the parent dir
to the actual src dir, so this should work. Make distcheck and normal builds
complete fine.
pull/421/merge
Victor Julien 12 years ago
parent aafc65c757
commit 4749420f32

@ -1633,9 +1633,9 @@ Generic build parameters:
echo
echo "$SURICATA_BUILD_CONF"
echo "printf(" >${ac_builddir}/src/build-info.h
echo "$SURICATA_BUILD_CONF" | sed -e 's/^/"/' | sed -e 's/$/\\n"/' >>${ac_builddir}/src/build-info.h
echo ");" >>${ac_builddir}/src/build-info.h
echo "printf(" >src/build-info.h
echo "$SURICATA_BUILD_CONF" | sed -e 's/^/"/' | sed -e 's/$/\\n"/' >>src/build-info.h
echo ");" >>src/build-info.h
echo "
To build and install run 'make' and 'make install'.

Loading…
Cancel
Save