Add "--with-id" configure option that can be used to specify a
authorJerome Pinot <ngc891@gmail.com>
Mon, 4 Nov 2013 13:11:48 +0000 (22:11 +0900)
committerJerome Pinot <ngc891@gmail.com>
Mon, 4 Nov 2013 13:12:12 +0000 (22:12 +0900)
string identifying the build (vendor, maintainer, etc). It defines
EFL_BUILD_ID with default to "none". It can be used by applications
or for bug reports by including Efl_Config.h

Differential Revision: https://phab.enlightenment.org/D288

configure.ac
src/lib/efl/Efl_Config.h.in

index e88cf9c..e8c44e0 100644 (file)
@@ -55,6 +55,16 @@ AC_SUBST(EFL_API_EO_DEF)
 
 #### Additional options to configure
 
+# string to identify the build
+AC_ARG_WITH([id],
+   [AC_HELP_STRING([--with-id=BUILD_ID],
+                   [Specify a string to identify the build (vendor, maintainer, etc).
+                     @<:@default=none@:>@])],
+   [EFL_BUILD_ID="${withval}"],
+   [EFL_BUILD_ID="none"])
+AC_SUBST(EFL_BUILD_ID)
+
+# profile
 AC_ARG_WITH([profile],
    [AC_HELP_STRING([--with-profile=PROFILE],
                    [use the predefined build profile, one of: dev, debug and release.
index ad17684..25420d0 100644 (file)
@@ -15,5 +15,6 @@
 
 #define EFL_VERSION_MAJOR @EFL_VERSION_MAJOR@
 #define EFL_VERSION_MINOR @EFL_VERSION_MINOR@
+#define EFL_BUILD_ID "@EFL_BUILD_ID@"
 
 #endif