]> sigrok.org Git - libsigrok.git/commitdiff
Build: Delay expansion of $datadir in FIRMWARE_DIR
authorDaniel Elstner <redacted>
Fri, 14 Aug 2015 16:03:47 +0000 (18:03 +0200)
committerDaniel Elstner <redacted>
Sun, 16 Aug 2015 16:28:13 +0000 (18:28 +0200)
Make it so that $(datadir) is resolved at make time, as per
autotools recommendations.  Note that $datadir is not fully
resolved at configure time to begin with, i.e. part of it
already was evaluated at make time.

configure.ac

index fe07938f91ac55649d1b20ff510c47436433c383..46ed9de379e934263dd0d62fc18baf9c0a09c7ea 100644 (file)
@@ -559,7 +559,7 @@ AM_CONDITIONAL(BINDINGS_JAVA, test x$BINDINGS_JAVA = xyes)
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_BIGENDIAN
 
-AC_SUBST(FIRMWARE_DIR, "$datadir/sigrok-firmware")
+AC_SUBST([FIRMWARE_DIR], ['$(datadir)/sigrok-firmware'])
 AC_SUBST(MAKEFLAGS, '--no-print-directory')
 AC_SUBST(AM_LIBTOOLFLAGS, '--silent')