Die if no host is provided.

Exit with an error message if no host is provided via the config or
on the command line instead of running into a curl error.
Adjust the manpage which said that host defaults to twitter.

Bug reported at http://bugs.debian.org/563098
Name correct hosts in prompts.

The prompt "Enter twitter {account,password}" is a bit misleading
if host is set to identi.ca or a custim host.
Add hostname to the session struct and use in for prompting and logging.

Reported as http://bugs.debian.org/563099
Merge branch 'master' into gregoa
Merge branch 'master' into gregoa
build system: use consistently pkg-config to check for dependencies

Rather than rely on the old m4 macros for libxml2 and libcurl, which were
also misused, always use PKG_CHECK_MODULES (also assuming a new enough
version that calls AC_SUBST by itself), and fix the Makefile.am to use
_CFLAGS properly as well.

Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
build system: use AC_SEARCH_LIBS rather than assuming -ldl is needed.

On a number of operating systems, such as the *BSD, the dlopen() function
is present in the standard C library, not in a separate libdl library.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Remove autoscan-generated bad tests.
Use arrays rather than pointers for static strings.

While this change does not do anything on most common systems, as
executables are not PIC, it is very useful when dealing with Position
Independent Executables (PIE) as used for instance by Gentoo Hardened.
Typo fix.
Split --background from --bash, and make the latter imply the former.

This allows to use send-in-background without mangling the message's text.
Collapse more fprintf() calls.
Update my copyright date.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Reduce the number of calls to fprintf.

Thanks to Flameeyes for the original patch, just changed it a bit
to work with the latest tree and to handle the version as a string.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
release 028
Merge branch 'master' into gregoa
Update my copyright date.
Fixing Identi.ca's OAuth request_token URI

Revision "a" of OAuth 1.0 mandates the presence of "oauth_callback"
parameter.

Usually libraries appends an "oob" (Out of Band) oauth_callback if you
don't provide a valid callback url, and don't specify that you don't
want "OAuth 1.0a".

But apparently our library of choice for OAuth (liboauth) does not do
this, though the code is in library but commented out.

src/oauth.c:675-680 (as in HEAD, and 0.9.0 tarball):

675 #if 0 // oauth_version 1.0 Rev A
676   if (!oauth_param_exists(argv,argc,"oauth_callback")) {
677     snprintf(oarg, 1024, "oauth_callback=oob");
678     oauth_add_param_to_array(argcp, argvp, oarg);
679   }
680 #endif

So for now, we have to add this to our request_token URI.
Support shrinking with bit.ly and j.mp.

To use bit.ly or j.mp you need to specify the host name in ~/.bti with
shrink_host, your bit.ly login with shrink_bitly_login and your bit.ly key with
shrink_bitly_key.  You can register at:

  http://bit.ly/a/sign_up

If you already have an account, you can find your API key at:

  http://bit.ly/a/your_api_key
Support proper 'reply_to' and 'retweet'

Signed-off-by: Dwi Sasongko S <ruckuus@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Merge branch 'master' into gregoa