Commit 943509efe8f09fcf9102eab25f1c8fd7b403ad47
1 parent
b0e1cd43
Exists in
master
and in
2 other branches
Allow change of the application id from configure.
Showing
1 changed file
with
13 additions
and
8 deletions
Show diff stats
configure.ac
| ... | ... | @@ -178,6 +178,19 @@ AC_SUBST(PACKAGE_MAJOR_RELEASE,$app_rls_major) |
| 178 | 178 | AC_SUBST(PACKAGE_MINOR_RELEASE,$app_rls_minor) |
| 179 | 179 | |
| 180 | 180 | dnl --------------------------------------------------------------------------- |
| 181 | +dnl Set application id & product name | |
| 182 | +dnl --------------------------------------------------------------------------- | |
| 183 | + | |
| 184 | +AC_ARG_WITH([product-name], [AS_HELP_STRING([--with-product-name], [Set product name])], [ app_cv_product="$withval" ],[ app_cv_product=`pkg-config --variable=product_name lib3270` ]) | |
| 185 | +AC_DEFINE_UNQUOTED(PRODUCT_NAME, $app_cv_product) | |
| 186 | +AC_SUBST(PRODUCT_NAME,$app_cv_product) | |
| 187 | + | |
| 188 | +AC_ARG_WITH([application-id], [AS_HELP_STRING([--application-id], [Set the application ID])], [ app_cv_application_id="$withval" ],[ app_cv_application_id="br.com.bb.$app_cv_product" ]) | |
| 189 | + | |
| 190 | +AC_DEFINE_UNQUOTED(APPLICATION_ID, $app_cv_application_id) | |
| 191 | +AC_SUBST(APPLICATION_ID,$app_cv_application_id) | |
| 192 | + | |
| 193 | +dnl --------------------------------------------------------------------------- | |
| 181 | 194 | dnl Check for LIBV3270 |
| 182 | 195 | dnl --------------------------------------------------------------------------- |
| 183 | 196 | |
| ... | ... | @@ -186,18 +199,10 @@ PKG_CHECK_MODULES( [LIBV3270], [libv3270], AC_DEFINE(HAVE_LIBV3270), AC_MSG_ERRO |
| 186 | 199 | AC_SUBST(LIBV3270_LIBS) |
| 187 | 200 | AC_SUBST(LIBV3270_CFLAGS) |
| 188 | 201 | |
| 189 | -AC_ARG_WITH([product-name], [AS_HELP_STRING([--with-product-name], [Set product name])], [ app_cv_product="$withval" ],[ app_cv_product=`pkg-config --variable=product_name lib3270` ]) | |
| 190 | -AC_DEFINE_UNQUOTED(PRODUCT_NAME, $app_cv_product) | |
| 191 | -AC_SUBST(PRODUCT_NAME,$app_cv_product) | |
| 192 | - | |
| 193 | 202 | AC_ARG_WITH([library-name], [AS_HELP_STRING([--with-library-name], [Set protocol library name])], [ app_cv_library="$withval" ],[ app_cv_library=`pkg-config --variable=library_name lib3270` ]) |
| 194 | 203 | AC_DEFINE_UNQUOTED(LIBRARY_NAME, $app_cv_library) |
| 195 | 204 | AC_SUBST(LIBRARY_NAME,$app_cv_library) |
| 196 | 205 | |
| 197 | -app_cv_application_id="br.com.bb.$app_cv_product" | |
| 198 | -AC_DEFINE_UNQUOTED(APPLICATION_ID, $app_cv_application_id) | |
| 199 | -AC_SUBST(APPLICATION_ID,$app_cv_application_id) | |
| 200 | - | |
| 201 | 206 | dnl --------------------------------------------------------------------------- |
| 202 | 207 | dnl Check for GTK |
| 203 | 208 | dnl --------------------------------------------------------------------------- | ... | ... |