void version(const char *progname)
{
    const char* progname_real; /* contains the real name of the program (without path) */

    progname_real = strrchr(progname, '/');
    if (progname_real == NULL) /* no path in progname: use progname */
    {
        progname_real = progname;
    }
    else
    {
        progname_real++;
    }

    fprintf(stderr, "\n%s version %s (%s)\n\n",
            progname_real, PACKAGE_VERSION, PACKAGE_DATE);
}
void version(const char *progname)
{
    const char* progname_real;  

    progname_real = strrchr(progname, '/');
    if (progname_real == NULL)  
    {
        progname_real = progname;
    }
    else
    {
        progname_real++;
    }

    fprintf(stderr, "\n%s version %s (%s)\n\n",
            progname_real, PACKAGE_VERSION, PACKAGE_DATE);
}