2006-04-06 Stepan Kasal <kasal@ucw.cz>
+ * lib/autoconf/general.m4 (AC_PRESERVE_HELP_ORDER): Do not define
+ _AC_PRESERVE_HELP_ORDER, ...
+ (AC_ARG_ENABLE, AC_ARG_WITH): ... use AC_PROVIDE_IFELSE insetad.
+
* lib/autoconf/general.m4 (AC_ARG_VAR): Do not use m4_divert_once
inside m4_expand_once; it is redundant.
# Emit help strings in the order given, rather than grouping all --enable-FOO
# and all --with-BAR.
AC_DEFUN([AC_PRESERVE_HELP_ORDER],
-[m4_define([_AC_PRESERVE_HELP_ORDER], 1)
-m4_divert_once([HELP_ENABLE], [[
+[m4_divert_once([HELP_ENABLE], [[
Optional Features and Packages:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
# AC_ARG_ENABLE(FEATURE, HELP-STRING, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
# ------------------------------------------------------------------------
AC_DEFUN([AC_ARG_ENABLE],
-[m4_ifndef([_AC_PRESERVE_HELP_ORDER],
+[AC_PROVIDE_IFELSE([AC_PRESERVE_HELP_ORDER],
+[],
[m4_divert_once([HELP_ENABLE], [[
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
# AC_ARG_WITH(PACKAGE, HELP-STRING, ACTION-IF-TRUE, [ACTION-IF-FALSE])
# --------------------------------------------------------------------
AC_DEFUN([AC_ARG_WITH],
-[m4_ifndef([_AC_PRESERVE_HELP_ORDER],
+[AC_PROVIDE_IFELSE([AC_PRESERVE_HELP_ORDER],
+[],
[m4_divert_once([HELP_WITH], [[
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
-.TH AUTORECONF "1" "January 2006" "autoreconf 2.59c" "User Commands"
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
+.TH AUTORECONF "1" "April 2006" "autoreconf 2.59c" "User Commands"
.SH NAME
autoreconf \- Update generated configuration files
.SH SYNOPSIS
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
-.TH AUTOSCAN "1" "January 2006" "autoscan 2.59c" "User Commands"
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
+.TH AUTOSCAN "1" "April 2006" "autoscan 2.59c" "User Commands"
.SH NAME
autoscan \- Generate a preliminary configure.in
.SH SYNOPSIS
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
-.TH AUTOUPDATE "1" "January 2006" "autoupdate 2.59c" "User Commands"
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
+.TH AUTOUPDATE "1" "April 2006" "autoupdate 2.59c" "User Commands"
.SH NAME
autoupdate \- Update a configure.in to a newer Autoconf
.SH SYNOPSIS