]SXE_ADD_[]$1[]_OBJ([$i])[
done
])dnl
-
+
m4_define([SXE_SUBST_]$1[_OBJS], [
AC_SUBST($2_objs)
## subst additional vars
dnl creates SXE_ADD_SXEUI_{OBJ,OBJS}
__SXE_MAKE_ADDER([SXEUIX11], [libsxeuiX11])
-dnl creates SXE_ADD_SXEUI_{OBJ,OBJS}
-__SXE_MAKE_ADDER([SXEUIGTK], [libsxeuiGtk])
-
dnl SXE_ADD_STATMOD_A(foo.o ...)
AC_DEFUN([SXE_ADD_STATMOD_A], [
statmod_archives="$statmod_archives [$1]" && \
dnl SXE_APPEND(value, varname)
AC_DEFUN([SXE_APPEND],
[SXE_CONSECUTIVE_UNDUP($2,"$[$2] [$1]")
- if test "$extra_verbose" = "yes"; then
+ if test "$extra_verbose" = "yes"; then
echo " Appending \"[$1]\" to [$2]
- (now \"$[$2]\")"
+ (now \"$[$2]\")"
fi])
dnl SXE_PREPEND(value, varname)
AC_DEFUN([SXE_PREPEND],
[SXE_CONSECUTIVE_UNDUP($2,"[$1] $[$2]")
- if test "$extra_verbose" = "yes"; then
+ if test "$extra_verbose" = "yes"; then
echo " Prepending \"[$1]\" to [$2]
- (now \"$[$2]\")"
+ (now \"$[$2]\")"
fi])
dnl SXE_APPEND(value, varname)
AC_DEFUN([SXE_APPEND_UNDUP],
[SXE_UNDUP($2,"$[$2] [$1]")
- if test "$extra_verbose" = "yes"; then
+ if test "$extra_verbose" = "yes"; then
echo " Appending and dedupping \"[$1]\" to [$2]
- (now \"$[$2]\")"
+ (now \"$[$2]\")"
fi])
dnl SXE_PREPEND(value, varname)
AC_DEFUN([SXE_PREPEND_UNDUP],
[SXE_UNDUP($2,"[$1] $[$2]")
- if test "$extra_verbose" = "yes"; then
+ if test "$extra_verbose" = "yes"; then
echo " Prepending and dedupping \"[$1]\" to [$2]
- (now \"$[$2]\")"
+ (now \"$[$2]\")"
fi])
dnl SXE_DIE(message)
-e "s|^/amd/|/net/|")
fi
-dnl if test -d "[$]tmpp"; then
-dnl ## the easy way ...
-dnl ## just let the filesystem implementation do the hard work
-dnl tmpp[]=$(cd [$]tmpp[] && echo $(pwd))
-dnl elif test -f "[$]tmpp"; then
-dnl ## the easy way ...
-dnl ## just let the filesystem implementation do the hard work
-dnl tmpp[]=$(cd $(dirname [$]tmpp[]) && \
-dnl echo $(pwd)/$(basename [$]tmpp[]))
-dnl else
+dnl if test -d "[$]tmpp"; then
+dnl ## the easy way ...
+dnl ## just let the filesystem implementation do the hard work
+dnl tmpp[]=$(cd [$]tmpp[] && echo $(pwd))
+dnl elif test -f "[$]tmpp"; then
+dnl ## the easy way ...
+dnl ## just let the filesystem implementation do the hard work
+dnl tmpp[]=$(cd $(dirname [$]tmpp[]) && \
+dnl echo $(pwd)/$(basename [$]tmpp[]))
+dnl else
## simple magic
canonicalised="no"
while test "$canonicalised" = "no"; do
dnl SXE_CONSECUTIVE_UNDUP(var, words)
AC_DEFUN([SXE_CONSECUTIVE_UNDUP],[
-$1=`echo "$2" | awk -v RS=" " '{if([$]1[] != SXEL) {printf "%s ", [$]1[]} SXEL=[$]1[]}' `
+$1=`echo "$2" | ${AWK-awk} 'BEGIN {RS=" "} {if([$]1[] != SXEL) {printf "%s ", [$]1[]} SXEL=[$]1[]}' `
])dnl SXE_CONSECUTIVE_UNDUP
dnl SXE_UNDUP(var, words)
AC_DEFUN([SXE_UNDUP],[
-$1=`echo "$2" | awk -v RS=" " '{VAL=[$]1[]; if(VAL in SXEL){}else{printf "%s ", VAL} SXEL[[VAL]]=1}' `
+$1=`echo "$2" | ${AWK-awk} 'BEGIN {RS=" "} {VAL=[$]1[]; if(VAL in SXEL){}else{printf "%s ", VAL} SXEL[[VAL]]=1}' `
])dnl SXE_UNDUP
\f
--enable-largefile | --disable-largefile | \
--enable-dependency-tracking | --disable-dependency-tracking | \
--enable-option-checking | --disable-option-checking | \
+ --enable-silent-rules | --disable-silent-rules | \
--with-x | --x-includes | --x-libraries | \
--build | --host | \
--program-prefix | --program-suffix | --program-transform-name | \