comparison configure.ac @ 3764:995ea1223b4d

[xemacs-hg @ 2006-12-28 12:23:57 by malcolmp] configure.ac: Register --enable and --with forms with the option checking list.
author malcolmp
date Thu, 28 Dec 2006 12:23:57 +0000
parents 6d4dc9ec7240
children e1dc2edc2719
comparison
equal deleted inserted replaced
3763:142260edb7b5 3764:995ea1223b4d
250 --with-FEATURE[=ARG] include FEATURE [ARG=yes] 250 --with-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --enable-FEATURE[=ARG] alias for --with-FEATURE 251 --enable-FEATURE[=ARG] alias for --with-FEATURE
252 --without-FEATURE do not use FEATURE (same as --with-FEATURE=no) 252 --without-FEATURE do not use FEATURE (same as --with-FEATURE=no)
253 --disable-FEATURE alias for --without-FEATURE]])dnl 253 --disable-FEATURE alias for --without-FEATURE]])dnl
254 m4_divert_once([HELP_ENABLE], m4_bpatsubst([[$2]],[--enable\([^ ]+\) ],[--with\1 ]))dnl 254 m4_divert_once([HELP_ENABLE], m4_bpatsubst([[$2]],[--enable\([^ ]+\) ],[--with\1 ]))dnl
255 dnl Register both forms with the option checking list.
256 dnl Options are only checked with autoconf > 2.61.
257 m4_append_uniq([_AC_USER_OPTS], [enable_]m4_bpatsubst([$1], -, _), [:])dnl
258 m4_append_uniq([_AC_USER_OPTS], [with_]m4_bpatsubst([$1], -, _), [:])dnl
255 # If --with-$1 or --without-$1 were given then copy the value to the 259 # If --with-$1 or --without-$1 were given then copy the value to the
256 # equivalent enable_$1 variable. 260 # equivalent enable_$1 variable.
257 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then 261 if test "[${with_]m4_bpatsubst([$1], -, _)+set}" = set; then
258 [enable_]m4_bpatsubst([$1], -, _)="[$with_]m4_bpatsubst([$1], -, _)" 262 [enable_]m4_bpatsubst([$1], -, _)="[$with_]m4_bpatsubst([$1], -, _)"
259 fi; 263 fi;