Enable std-options

With this automake option, "make distcheck" will also require the binary
to write text to stdout and exit with code 0 when called with --version
and --help. This way we get a free (but fairly basic) runtime check.
Also, use the AC_COPYRIGHT macro instead of a comment.
pull/2/head
Stelios Bounanos 2008-01-27 12:37:04 +00:00
rodzic 9d5187bbd3
commit 398f3a3bba
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -1,12 +1,12 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# Copyright (C) 2007 Stelios Bounanos, M0GLD (m0gld AT enotty DOT net)
AC_COPYRIGHT([Copyright (C) 2007 Stelios Bounanos, M0GLD (m0gld AT enotty DOT net)])
AC_PREREQ(2.61)
AC_INIT([fldigi], [2.08G], [w1hkj AT w1hkj DOT com])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall foreign 1.9.6])
AM_INIT_AUTOMAKE([-Wall foreign std-options 1.9.6])
AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR([src/main.cxx])
AC_CONFIG_HEADER([src/config.h])

Wyświetl plik

@ -519,11 +519,11 @@ int parse_args(int argc, char **argv, int& idx)
return 2;
#endif // USE_PORTAUDIO
case OPT_HELP:
cerr << option_help;
cout << option_help;
exit(EXIT_SUCCESS);
case OPT_VERSION:
cerr << version_text;
cout << version_text;
exit(EXIT_SUCCESS);
case '?':