Skip to content

Commit

Permalink
Use relative dir instead of ac_builddir
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
victorjulien committed Jul 11, 2013
1 parent aafc65c commit 4749420
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Expand Up @@ -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'.
Expand Down

0 comments on commit 4749420

Please sign in to comment.