OSDN Git Service

* src/lharc.c (print_tiny_usage_and_exit): added credit.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 18 May 2002 21:04:27 +0000 (21:04 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 18 May 2002 21:04:27 +0000 (21:04 +0000)
(print_version): print PLATFORM.

* configure.ac, configure.in, config.h.in: define PLATFORM.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@61 6a8cc165-1e22-0410-a132-eb4e3f353aba

config.h.in
configure.ac
configure.in
src/lharc.c

index 84fe458..f3ff199 100644 (file)
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
 
+/* the type of system on which the package will run. */
+#undef PLATFORM
+
 /* Define as the return type of signal handlers (`int' or `void'). */
 #undef RETSIGTYPE
 
index 65509b0..2f18d08 100644 (file)
@@ -5,6 +5,9 @@ AM_CONFIG_HEADER(config.h)
 
 AC_CANONICAL_HOST
 
+AC_DEFINE_UNQUOTED(PLATFORM, "$ac_cv_host",
+                  [the type of system on which the package will run.])
+
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_GCC_TRADITIONAL
index da110da..7170bb7 100644 (file)
@@ -5,6 +5,9 @@ AM_CONFIG_HEADER(config.h)
 
 AC_CANONICAL_HOST
 
+AC_DEFINE_UNQUOTED(PLATFORM, "$ac_cv_host",
+                  [the type of system on which the package will run.])
+
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_GCC_TRADITIONAL
index 7850e05..b09e6d9 100644 (file)
@@ -146,6 +146,7 @@ LHx(arc) for OSK   V 2.01  Modified     1990  Momozou\n\
 LHa      for UNIX  V 1.00  Copyright(C) 1992  Masaru Oki\n\
 LHa      for UNIX  V 1.14  Modified     1995  Nobutaka Watazaki\n\
 LHa      for UNIX  V 1.14i Modified     2000  Tsugio Okamoto\n\
+LHa      for UNIX  V 1.14i Autoconfiscated 2001,2002 Koji Arai\n
 ");
        fprintf(stderr, "\
 usage: lha [-]{axelvudmcp[q[num]][vnfodizg012]}[w=<dir>] archive_file [file...]\n\
@@ -458,7 +459,7 @@ work:
 static void
 print_version()
 {
-       fprintf(stderr, "%s\n", LHA_VERSION);
+       fprintf(stderr, "%s (%s)\n", LHA_VERSION, PLATFORM);
 }
 
 /* ------------------------------------------------------------------------ */