OSDN Git Service

* configure.ac, configure.in, config.h.in: added a switch
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 3 Jun 2002 22:01:24 +0000 (22:01 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 3 Jun 2002 22:01:24 +0000 (22:01 +0000)
`--enable-user-name-header' whether user/name extended header is
made.

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

config.h.in
configure.ac
configure.in

index 603ee05..55d2768 100644 (file)
 /* Define to 1 if `vfork' works. */
 #undef HAVE_WORKING_VFORK
 
+/* Define you want to make user/group name extended header */
+#undef MAKE_USER_NAME_HEADER
+
 /* Define you want to use multibyte filename */
 #undef MULTIBYTE_CHAR
 
index 2c90026..8ee941f 100644 (file)
@@ -1,4 +1,4 @@
-dnl Process this file with autoconf to produce a configure script.
+# Process this file with autoconf to produce a configure script.
 AC_INIT(lha, 1.14i-ac20020527a, jca02266@nifty.ne.jp)
 AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE
@@ -7,7 +7,7 @@ AM_CONFIG_HEADER(config.h)
 AC_DEFINE_UNQUOTED(PLATFORM, "$ac_cv_host",
                   [the type of system on which the package will run.])
 
-dnl Checks for programs.
+# Checks for programs.
 AC_PROG_CC
 AC_PROG_GCC_TRADITIONAL
 AC_PROG_INSTALL
@@ -15,15 +15,15 @@ AC_PROG_MAKE_SET
 AC_MINIX
 AM_C_PROTOTYPES
 
-dnl Checks for libraries.
+# Checks for libraries.
 
-dnl Checks for header files.
+# Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/param.h sys/time.h)
 AC_CHECK_HEADERS(pwd.h grp.h)
 
-dnl Checks for typedefs, structures, and compiler characteristics.
+# Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_HEADER_TIME
 AC_STRUCT_TM
@@ -50,7 +50,7 @@ AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct stat.st_ino],,,
 #endif
 ])
 
-dnl Checks for library functions.
+# Checks for library functions.
 AC_TYPE_SIGNAL
 AC_FUNC_FORK
 AC_FUNC_UTIME_NULL
@@ -64,7 +64,7 @@ if test $ac_header_dirent = no; then
   AC_LIBOBJ(lhdir)
 fi
 
-dnl support kanji code conversion
+# support kanji code conversion
 AC_SUBST(DEF_KCODE)
 AC_ARG_ENABLE(text_conv,
   AC_HELP_STRING([--enable-text-conv],
@@ -79,7 +79,7 @@ fi
 AC_SUBST(SUPPORT_LZHUFF_METHOD)
 SUPPORT_LZHUFF_METHOD=-DSUPPORT_LH7
 
-dnl whether use the -lh567- method
+# whether use the -lh567- method
 AC_MSG_CHECKING(default archive method is )
 AC_ARG_WITH(default_method,
   AC_HELP_STRING([--with-default-method=[[567]]],
@@ -89,11 +89,10 @@ AC_ARG_WITH(default_method,
    *) AC_MSG_ERROR(you should have specified 5, 6 or 7);;
    esac],
   with_default_method=5)
-
 AC_MSG_RESULT(-lh$with_default_method-)
 AC_DEFINE_UNQUOTED(DEFAULT_LZHUFF_METHOD, LZHUFF${with_default_method}_METHOD_NUM, [Define it to 5, 6 or 7 which you want to use -lhX- method, default])
 
-dnl decide temporary path names
+# decide temporary path names
 AC_MSG_CHECKING(template of the temporary file is )
 AC_ARG_WITH(tmp_file,
   AC_HELP_STRING([--with-tmp-file=TEMPLATE],
@@ -103,35 +102,46 @@ AC_ARG_WITH(tmp_file,
    no)   ;;
    esac],
   with_tmp_file=/tmp/lhXXXXXX)
-
 AC_MSG_RESULT($with_tmp_file)
 if test x"$with_tmp_file" != xno; then
   AC_DEFINE_UNQUOTED(TMP_FILENAME_TEMPLATE, "$with_tmp_file",
     [temporary file template for mktemp/mkstemp])
 fi
 
-dnl incremental indicator
+# incremental indicator
 AC_ARG_ENABLE(indicator,
   AC_HELP_STRING([--enable-indicator],
                 [need incremental indicator [[default=yes]]]),
   ,
   # default
   enable_indicator=yes)
-
 if test "x$enable_indicator" = xyes; then
-  AC_DEFINE(NEED_INCREMENTAL_INDICATOR, 1, [Define you want to use the incremental indicator])
+  AC_DEFINE(NEED_INCREMENTAL_INDICATOR, 1,
+           [Define to 1 if you want to use the incremental indicator])
 fi
 
-dnl support multibyte filename
+# support multibyte filename
 AC_ARG_ENABLE(multibyte-char,
   AC_HELP_STRING([--enable-multibyte-char],
                 [support multibyte filename [[default=yes]]]),
   ,
   # default
   enable_multibyte_char=yes)
-
 if test "x$enable_multibyte_char" = xyes; then
-  AC_DEFINE(MULTIBYTE_CHAR, 1, [Define you want to use multibyte filename])
+  AC_DEFINE(MULTIBYTE_CHAR, 1,
+           [Define to 1 if you want to use multibyte filename])
+fi
+
+# make user/group name extented header
+AC_ARG_ENABLE(user-name-header,
+  AC_HELP_STRING([--enable-user-name-header],
+                [make user/group name extended header [[default=no]]]),
+  ,
+  # default
+  enable_user_name_header=no)
+if test "x$user_name_header" = xyes; then
+  AC_DEFINE(MAKE_USER_NAME_HEADER, 1,
+            [Define to 1 if you want to make user/group name extended header])
 fi
 
 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])
index eae042a..319fcad 100644 (file)
@@ -1,4 +1,4 @@
-dnl Process this file with autoconf to produce a configure script.
+# Process this file with autoconf to produce a configure script.
 AC_INIT(src/lha.h)
 AM_INIT_AUTOMAKE(lha, 1.14i-ac20020527a)
 AM_CONFIG_HEADER(config.h)
@@ -8,7 +8,7 @@ AC_CANONICAL_HOST
 AC_DEFINE_UNQUOTED(PLATFORM, "$ac_cv_host",
                   [the type of system on which the package will run.])
 
-dnl Checks for programs.
+# Checks for programs.
 AC_PROG_CC
 AC_PROG_GCC_TRADITIONAL
 AC_PROG_INSTALL
@@ -18,15 +18,15 @@ AM_C_PROTOTYPES
 AC_EXEEXT
 AC_OBJEXT
 
-dnl Checks for libraries.
+# Checks for libraries.
 
-dnl Checks for header files.
+# Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/param.h sys/time.h)
 AC_CHECK_HEADERS(pwd.h grp.h)
 
-dnl Checks for typedefs, structures, and compiler characteristics.
+# Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_HEADER_TIME
 AC_STRUCT_TM
@@ -68,7 +68,7 @@ if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then
            [Define if your struct stat has st_ino])
 fi
 
-dnl Checks for library functions.
+# Checks for library functions.
 AC_TYPE_SIGNAL
 AC_FUNC_FORK
 AC_FUNC_UTIME_NULL
@@ -83,7 +83,7 @@ if test $ac_header_dirent = no; then
   LIBOBJS="$LIBOBJS lhdir.o"
 fi
 
-dnl support kanji code conversion
+# support kanji code conversion
 AC_SUBST(DEF_KCODE)
 AC_ARG_ENABLE(text_conv,
   [  --enable-text-conv      support text code convert from/to EUC [default=yes]],
@@ -97,7 +97,7 @@ fi
 AC_SUBST(SUPPORT_LZHUFF_METHOD)
 SUPPORT_LZHUFF_METHOD=-DSUPPORT_LH7
 
-dnl whether use the -lh567- method
+# whether use the -lh567- method
 AC_MSG_CHECKING(default archive method is )
 AC_ARG_WITH(default_method,
   [  --with-default-method=[567]  create the -lh[567]- archive default [default=5]],
@@ -110,7 +110,7 @@ AC_ARG_WITH(default_method,
 AC_MSG_RESULT(-lh$with_default_method-)
 AC_DEFINE_UNQUOTED(DEFAULT_LZHUFF_METHOD, LZHUFF${with_default_method}_METHOD_NUM, [Define it to 5, 6 or 7 which you want to use -lhX- method, default])
 
-dnl decide temporary path names
+# decide temporary path names
 AC_MSG_CHECKING(template of the temporary file is )
 AC_ARG_WITH(tmp_file,
   [  --with-tmp-file=TEMPLATE temporary file template [default=/tmp/lhXXXXXX]],
@@ -126,7 +126,7 @@ if test x"$with_tmp_file" != xno; then
     [temporary file template for mktemp/mkstemp])
 fi
 
-dnl incremental indicator
+# incremental indicator
 AC_ARG_ENABLE(indicator,
   [  --enable-indicator      need incremental indicator [default=yes]],
   ,
@@ -134,10 +134,11 @@ AC_ARG_ENABLE(indicator,
   enable_indicator=yes)
 
 if test "x$enable_indicator" = xyes; then
-  AC_DEFINE(NEED_INCREMENTAL_INDICATOR, 1, [Define you want to use the incremental indicator])
+  AC_DEFINE(NEED_INCREMENTAL_INDICATOR, 1,
+           [Define to 1 if you want to use the incremental indicator])
 fi
 
-dnl support multibyte filename
+# support multibyte filename
 AC_ARG_ENABLE(multibyte-char,
   [  --enable-multibyte-char support multibyte filename [default=yes]],
   ,
@@ -145,7 +146,19 @@ AC_ARG_ENABLE(multibyte-char,
   enable_multibyte_char=yes)
 
 if test "x$enable_multibyte_char" = xyes; then
-  AC_DEFINE(MULTIBYTE_CHAR, 1, [Define you want to use multibyte filename])
+  AC_DEFINE(MULTIBYTE_CHAR, 1,
+           [Define to 1 if you want to use multibyte filename])
+fi
+
+# make user/group name extented header
+AC_ARG_ENABLE(user-name-header,
+  [--enable-user-name-header  make user/group name extended header [default=no]],
+  ,
+  # default
+  enable_user_name_header=no)
+if test "x$user_name_header" = xyes; then
+  AC_DEFINE(MAKE_USER_NAME_HEADER, 1,
+            [Define to 1 if you want to make user/group name extended header])
 fi
 
 AC_OUTPUT([Makefile src/Makefile man/Makefile tests/Makefile tests/lha-test])