openssl_ldflags="$openssl_libs -lssl -lcrypto"
AC_SUBST(openssl_ldflags)
- client_errlist_objs="$client_errlist_objs crypt"
audiod_errlist_objs="$audiod_errlist_objs crypt"
check_gcrypt="no"
gcrypt_ldflags="$gcrypt_libs -lgcrypt"
AC_SUBST(gcrypt_ldflags)
- client_errlist_objs="$client_errlist_objs gcrypt"
audiod_errlist_objs="$audiod_errlist_objs gcrypt"
else
AC_MSG_WARN([gcrypt library not found])
fi
if test "$have_readline" = "yes"; then
+ :
AC_SUBST(readline_cppflags)
AC_SUBST(readline_ldflags)
- client_errlist_objs="$client_errlist_objs interactive"
AC_DEFINE(HAVE_READLINE, 1, define to 1 to turn on readline support)
else
AC_MSG_WARN([libreadline not found or unusable])
build_client="yes"
executables="$executables client"
client_cmdline_objs="client"
- client_errlist_objs="$client_errlist_objs
+ client_errlist_objs="
client
net
string
version
ggo
"
+ if test "$have_openssl" = "yes"; then
+ client_errlist_objs="$client_errlist_objs crypt"
+ fi
+ if test "$have_gcrypt" = "yes"; then
+ client_errlist_objs="$client_errlist_objs gcrypt"
+ fi
+ if test "$have_readline" = "yes"; then
+ client_errlist_objs="$client_errlist_objs interactive"
+ fi
+ client_objs="add_cmdline($client_cmdline_objs) $client_errlist_objs"
+ AC_SUBST(client_objs, add_dot_o($client_objs))
+ AC_DEFINE_UNQUOTED(INIT_CLIENT_ERRLISTS,
+ objlist_to_errlist($client_errlist_objs), errors used by para_client)
else
build_client="no"
fi
filter_objs="add_cmdline($filter_cmdline_objs) $filter_errlist_objs"
audiod_objs="add_cmdline($audiod_cmdline_objs) $audiod_errlist_objs"
-client_objs="add_cmdline($client_cmdline_objs) $client_errlist_objs"
AC_SUBST(filter_objs, add_dot_o($filter_objs))
AC_DEFINE_UNQUOTED(INIT_FILTER_ERRLISTS,
AC_DEFINE_UNQUOTED(INIT_AUDIOD_ERRLISTS, objlist_to_errlist($audiod_errlist_objs),
errors used by para_audiod)
-AC_SUBST(client_objs, add_dot_o($client_objs))
-AC_SUBST(client_ldflags, $client_ldflags)
-AC_DEFINE_UNQUOTED(INIT_CLIENT_ERRLISTS,
- objlist_to_errlist($client_errlist_objs), errors used by para_client)
-
AC_SUBST(gui_objs, add_dot_o($gui_objs))
AC_DEFINE_UNQUOTED(INIT_GUI_ERRLISTS,
objlist_to_errlist($gui_errlist_objs), errors used by para_gui)