diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-01-21 14:32:14 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-01-21 14:32:14 +0100 |
commit | 1c4cf93d166d146262afcf3df69a8f1b0a9c2ee2 (patch) | |
tree | 29bd590d464d8b5c9eee17d9c28fcd368739fa7f /configure.ac | |
parent | daae650d765423c6455001299473f2bc2ce6b278 (diff) | |
download | systemtap-steved-1c4cf93d166d146262afcf3df69a8f1b0a9c2ee2.tar.gz systemtap-steved-1c4cf93d166d146262afcf3df69a8f1b0a9c2ee2.tar.xz systemtap-steved-1c4cf93d166d146262afcf3df69a8f1b0a9c2ee2.zip |
Only muck with CPPFLAGS when actually building with bundled elfutils.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 7e705811..dd0e40eb 100644 --- a/configure.ac +++ b/configure.ac @@ -306,13 +306,14 @@ if test $build_elfutils = yes; then LDFLAGS="$LDFLAGS $elfutils_rpath" && make install-data # so that elfutils/version.h - if any - may be found. ) + save_CPPFLAGS=${CPPFLAGS} + CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils + AC_CHECK_HEADERS([elfutils/version.h]) + CPPFLAGS="$save_CPPFLAGS" +else + AC_CHECK_HEADERS([elfutils/version.h]) fi -save_CPPFLAGS=${CPPFLAGS} -CPPFLAGS="${CPPFLAGS} -Iinclude-elfutils" # in case bundled elfutils -AC_CHECK_HEADERS([elfutils/version.h]) -CPPFLAGS="$save_CPPFLAGS" - dnl This is here mainly to make sure that configure --prefix=... changes dnl the config.h files so files depending on it are recompiled dnl prefix is passed through indirectly in the Makefile.am AM_CPPFLAGS. |