]> sigrok.org Git - libsigrok.git/commitdiff
Build: Pass nostdinc option to automake
authorDaniel Elstner <redacted>
Sat, 15 Aug 2015 16:10:50 +0000 (18:10 +0200)
committerDaniel Elstner <redacted>
Sun, 16 Aug 2015 16:28:13 +0000 (18:28 +0200)
It seems automake automatically adds the directory containing
the generated version.h to the include path.  Use nostdinc to
disable default includes altogether.

Makefile.am
configure.ac

index 1f63ae5ba28162740b8f101f50286916b6ccd526..a020af4ed074f9df00472e018385c672bc863d2d 100644 (file)
@@ -20,7 +20,7 @@
 
 ACLOCAL_AMFLAGS = -I autostuff
 
-local_includes = -Iinclude -I$(srcdir)/include -I$(srcdir)/src
+local_includes = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I.
 local_includes += -Ibindings/cxx/include -I${srcdir}/bindings/cxx/include -Ibindings/cxx
 
 AM_CPPFLAGS = $(local_includes) -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"'
index a5a309b10a12bad7ced14e86902043760a78df69..9da847752390f866f3fbab1e07921a1acbcf754b 100644 (file)
@@ -34,7 +34,7 @@ AC_CONFIG_MACRO_DIR([autostuff])
 AC_CONFIG_AUX_DIR([autostuff])
 
 # We require at least automake 1.11 (needed for 'silent rules').
-AM_INIT_AUTOMAKE([1.11 -Wall -Werror no-define subdir-objects check-news color-tests])
+AM_INIT_AUTOMAKE([1.11 -Wall -Werror no-define nostdinc subdir-objects check-news color-tests])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])