Commit d4746e6c3d84c83c122a690cd063f047f440b4ca
1 parent
cf645ade
Exists in
master
and in
2 other branches
Fixing 'default host' option.
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
configure.ac
@@ -522,8 +522,10 @@ AC_ARG_WITH([default-host], [AS_HELP_STRING([--with-default-host], [Set lib3270 | @@ -522,8 +522,10 @@ AC_ARG_WITH([default-host], [AS_HELP_STRING([--with-default-host], [Set lib3270 | ||
522 | [ app_default_host="\"$withval\""], | 522 | [ app_default_host="\"$withval\""], |
523 | [ app_default_host=""]) | 523 | [ app_default_host=""]) |
524 | 524 | ||
525 | -AC_DEFINE_UNQUOTED(LIB3270_DEFAULT_HOST, $app_default_host, ["The default tn3270 host"]) | ||
526 | -AC_SUBST(LIB3270_DEFAULT_HOST,$app_default_host) | 525 | +if test "$app_default_host" != ""; then |
526 | + AC_DEFINE_UNQUOTED(LIB3270_DEFAULT_HOST, $app_default_host, ["The default tn3270 host"]) | ||
527 | + AC_SUBST(LIB3270_DEFAULT_HOST,$app_default_host) | ||
528 | +fi | ||
527 | 529 | ||
528 | AC_ARG_ENABLE([static], | 530 | AC_ARG_ENABLE([static], |
529 | [AS_HELP_STRING([--enable-static], [Enable build and install the static library])], | 531 | [AS_HELP_STRING([--enable-static], [Enable build and install the static library])], |