[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59]
From: |
Howard Chu |
Subject: |
Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59] |
Date: |
Thu, 25 Aug 2005 13:53:10 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050821 SeaMonkey/1.0a |
Howard Chu wrote:
Howard Chu wrote:
Something like this seems to be pretty painless...
Of course I got the quoting wrong that time. This works for both cases.
Sent the old diff twice, sheesh. This time for sure.
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/
--- general.m4.O 2004-10-01 18:09:15.000000000 -0700
+++ general.m4 2005-08-25 12:49:04.000000000 -0700
@@ -1284,14 +1284,25 @@
## Selecting optional features. ##
## ----------------------------- ##
+AC_DEFUN([AC_PRESERVE_HELP_ORDER],
+[m4_define([_AC_PRESERVE_HELP_ORDER], 1)
+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]
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)]])
+m4_define([_m4_divert(HELP_ENABLE)], _m4_divert(HELP_WITH))
+])# AC_PRESERVE_HELP_ORDER
# AC_ARG_ENABLE(FEATURE, HELP-STRING, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
# ------------------------------------------------------------------------
AC_DEFUN([AC_ARG_ENABLE],
+[m4_ifndef([_AC_PRESERVE_HELP_ORDER],
[m4_divert_once([HELP_ENABLE], [[
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]]])dnl
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]]])])dnl
m4_divert_once([HELP_ENABLE], [$2])dnl
# Check whether --enable-$1 or --disable-$1 was given.
if test "[${enable_]m4_bpatsubst([$1], -, _)+set}" = set; then
@@ -1316,10 +1327,11 @@
# AC_ARG_WITH(PACKAGE, HELP-STRING, ACTION-IF-TRUE, [ACTION-IF-FALSE])
# --------------------------------------------------------------------
AC_DEFUN([AC_ARG_WITH],
+[m4_ifndef([_AC_PRESERVE_HELP_ORDER],
[m4_divert_once([HELP_WITH], [[
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)]])
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)]])])
m4_divert_once([HELP_WITH], [$2])dnl
# Check whether --with-$1 or --without-$1 was given.
if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then
- [Fwd: libtool AC_ARG_WITH and autoconf 2.59], Howard Chu, 2005/08/24
- Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59], Stepan Kasal, 2005/08/25
- Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59], Howard Chu, 2005/08/25
- Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59], Stepan Kasal, 2005/08/25
- Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59], Hallvard B Furuseth, 2005/08/25
- Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59], Howard Chu, 2005/08/25
- Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59], Howard Chu, 2005/08/25
- Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59], Howard Chu, 2005/08/25
- Re: [Fwd: libtool AC_ARG_WITH and autoconf 2.59],
Howard Chu <=