| --- a/src/configure |
| +++ b/src/configure |
| @@ -195,9 +195,6 @@ if which git >/dev/null; then |
| fi |
| fi |
| |
| -HOSTNAME=`hostname` |
| -DATE=`date +"%d.%m.%Y %H:%M:%S %Z"` |
| - |
| cat > config.h <<EOF |
| /* |
| * tcpproxy config header |
| @@ -211,7 +208,6 @@ cat > config.h <<EOF |
| #define TCPPROXY_config_h_INCLUDED |
| |
| #define VERSION_STRING_0 "tcpproxy version $VERSION" |
| -#define VERSION_STRING_1 "built on $HOSTNAME, $DATE" |
| |
| #define TARGET "$TARGET" |
| #define PREFIX "$PREFIX" |
| --- a/src/options.c |
| +++ b/src/options.c |
| @@ -326,11 +326,9 @@ void options_print_version() |
| { |
| printf("%s\n", VERSION_STRING_0); |
| #if defined(__clang__) |
| - printf("%s, using CLANG %s\n", VERSION_STRING_1, __clang_version__); |
| + printf("using CLANG %s\n", __clang_version__); |
| #elif defined(__GNUC__) |
| - printf("%s, using GCC %d.%d.%d\n", VERSION_STRING_1, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); |
| -#else |
| - printf("%s\n", VERSION_STRING_1); |
| + printf("using GCC %d.%d.%d\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); |
| #endif |
| } |
| |