comparison configure.ac @ 3683:72e6cbbc65e0

[xemacs-hg @ 2006-11-16 11:22:25 by malcolmp] Autoconf 2.60 support.
author malcolmp
date Thu, 16 Nov 2006 11:22:33 +0000
parents 833d460acd43
children 3246cf3e564d
comparison
equal deleted inserted replaced
3682:be6b3f49446d 3683:72e6cbbc65e0
20 dnl Autoconf startup. 20 dnl Autoconf startup.
21 dnl 21 dnl
22 dnl Due to a dependence on the implementation of certain internal autoconf 22 dnl Due to a dependence on the implementation of certain internal autoconf
23 dnl macros, die if any version other than 2.59 is used. 23 dnl macros, die if any version other than 2.59 is used.
24 AC_PREREQ(2.59)dnl 24 AC_PREREQ(2.59)dnl
25 m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]), [2.59]), 1,
26 [m4_fatal([This script can only be generated with autoconf 2.59])], [])dnl
27 AC_INIT([XEmacs],[21.5],[xemacs-beta@xemacs.org])dnl 25 AC_INIT([XEmacs],[21.5],[xemacs-beta@xemacs.org])dnl
28 AC_CONFIG_SRCDIR(src/lisp.h)dnl 26 AC_CONFIG_SRCDIR(src/lisp.h)dnl
29 dnl 27 dnl
30 dnl ------------------------------------------------------------------------- 28 dnl -------------------------------------------------------------------------
31 dnl Local copyright notices. 29 dnl Local copyright notices.
229 define([XE_SPACE],[ 227 define([XE_SPACE],[
230 T="" 228 T=""
231 for W in $2; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 229 for W in $2; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
232 $1="$T" 230 $1="$T"
233 ])dnl XE_SPACE 231 ])dnl XE_SPACE
232 dnl Autoconf 2.59 and 2.60 have slightly different versions of m4_cdr that
233 dnl return different values for an empty list. XE_CDR is a copy of the 2.60
234 dnl version which will be used with both versions.
235 define([XE_CDR],
236 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
237 [$#], 1, [],
238 [m4_dquote(m4_shift($@))])])dnl
234 dnl 239 dnl
235 dnl XE_MERGED_ARG(FEATURE, HELP-STRING, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) 240 dnl XE_MERGED_ARG(FEATURE, HELP-STRING, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
236 dnl ------------------------------------------------------------------------ 241 dnl ------------------------------------------------------------------------
237 dnl 242 dnl
238 dnl Arguments that can be specified with either --enable or --with. The 243 dnl Arguments that can be specified with either --enable or --with. The
377 dnl ---------------------------------------------- 382 dnl ----------------------------------------------
378 dnl 383 dnl
379 dnl Internal macro to recursively expand all the options in the option list. 384 dnl Internal macro to recursively expand all the options in the option list.
380 dnl 385 dnl
381 define([XE_EXPAND_COMPLEX_OPTIONS], 386 define([XE_EXPAND_COMPLEX_OPTIONS],
382 [m4_if([$2], [[]], [], 387 [m4_if([$2], [], [],
383 [XE_EXPAND_COMPLEX_OPTION([$1], m4_fst($2))[]dnl 388 [XE_EXPAND_COMPLEX_OPTION([$1], m4_fst($2))[]dnl
384 XE_EXPAND_COMPLEX_OPTIONS([$1], m4_cdr($2))])])dnl 389 XE_EXPAND_COMPLEX_OPTIONS([$1], XE_CDR($2))])])dnl
385 dnl 390 dnl
386 dnl XE_INIT_COMPLEX_OPTION(prefix, option_list) 391 dnl XE_INIT_COMPLEX_OPTION(prefix, option_list)
387 dnl ------------------------------------------- 392 dnl -------------------------------------------
388 dnl 393 dnl
389 dnl Internal macro to initialise the complex option shell variables. 394 dnl Internal macro to initialise the complex option shell variables.