]> granicus.if.org Git - libjpeg-turbo/commitdiff
Convert the BUILD stamp to AC_ARG_WITH argument, so we can make the build reproducible
authorOndřej Surý <ondrej@sury.org>
Tue, 28 Jul 2015 07:19:13 +0000 (09:19 +0200)
committerDRC <information@libjpeg-turbo.org>
Wed, 29 Jul 2015 18:23:27 +0000 (13:23 -0500)
configure.ac

index 6ef4b5c6a28e5d33a4a9e9752204a052b3816899..e639d591865ba190c2e25830ff20960958e1b326 100644 (file)
@@ -3,7 +3,6 @@
 
 AC_PREREQ([2.56])
 AC_INIT([libjpeg-turbo], [1.4.1])
-BUILD=`date +%Y%m%d`
 
 AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2])
 AC_PREFIX_DEFAULT(/opt/libjpeg-turbo)
@@ -22,6 +21,10 @@ AC_PROG_INSTALL
 AC_PROG_LIBTOOL
 AC_PROG_LN_S
 
+AC_ARG_WITH([build-date], [Use custom build string to enable reproducible builds (default: YYMMDD)],
+  [BUILD="$with_build_date"],
+  [BUILD=`date +%Y%m%d`])
+
 # When the prefix is /opt/libjpeg-turbo, we assume that an "official" binary is
 # being created, and thus we install things into specific locations.