X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=configure.ac;h=2b7ace568b60eddb682ea5c34d9d814d672accc6;hp=e6b9211c87a76ecf44884768b8c446a7f2cbf768;hb=0195634254d90bac8517076685032ccffee75456;hpb=0614a2e61ccbf150cc51d4fd3073b285983417c5 diff --git a/configure.ac b/configure.ac index e6b9211..2b7ace5 100644 --- a/configure.ac +++ b/configure.ac @@ -238,7 +238,10 @@ AC_SUBST([URCU_LIBRARY_VERSION], [urcu_lib_version]) AC_SUBST(LT_NO_UNDEFINED) -AM_CPPFLAGS="-include config.h" +# The order in which the include folders are searched is important. +# The top_builddir should always be searched first in the event that a build +# time generated file is included. +AM_CPPFLAGS="-I\$(top_builddir)/include -I\$(top_srcdir)/include -include config.h" AC_SUBST(AM_CPPFLAGS) AM_CFLAGS="-Wall -Wextra -Wno-unused-parameter $PTHREAD_CFLAGS"