summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-11-18 02:55:01 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-11-18 02:55:01 +0000
commitbcf4d5bc29da62ed7d9f8f7a3f5ad552ea3d6a31 (patch)
treecd55af6e4fefc114a50c359a852b1934dbf0c5b8 /acinclude.m4
parentf934a9d630c3653d8258e6bdcbcd46ad14be7c77 (diff)
downloadrtems-bcf4d5bc29da62ed7d9f8f7a3f5ad552ea3d6a31.tar.bz2
2002-11-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* acinclude.m4: Use AS_IF instead of if/then/else/endif. * configure.ac: Ditto.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m456
1 files changed, 22 insertions, 34 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2dc9691262..5defa283f4 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -306,24 +306,18 @@ m4_append([_RTEMS_HOST_CONFIGDIRS_LIST],[ $1])dnl
if test $build = $host;
then
- if test $host = $target;
- then
- _RTEMS_SUBST_IFNOT([build_configdirs],[$1])
- else
- _RTEMS_SUBST_IFNOT([build_configdirs],[$1])
- fi
+ AS_IF([test $host = $target],
+ [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])],
+ [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])]
+ )
else
- if test $host = $target;
- then
- _RTEMS_SUBST_IFNOT([host_configdirs],[$1])
- else
- if test $build = $target;
- then
- _RTEMS_SUBST_IFNOT([host_configdirs],[$1])
- else
- _RTEMS_SUBST_IFNOT([host_configdirs],[$1])
- fi
- fi
+ AS_IF([test $host = $target],
+ [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])],
+ [AS_IF([test $build = $target],
+ [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])],
+ [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])]
+ )]
+ )
fi
m4_divert_text([DEFAULTS],
@@ -350,24 +344,18 @@ m4_append([_RTEMS_TARGET_CONFIGDIRS_LIST],[ $1])
if test $build = $host;
then
- if test $host = $target;
- then
- _RTEMS_SUBST_IFNOT([build_configdirs],[$1])
- else
- _RTEMS_SUBST_IFNOT([target_configdirs],[$1])
- fi
+ AS_IF([test $host = $target],
+ [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])],
+ [_RTEMS_SUBST_IFNOT([target_configdirs],[$1])]
+ )
else
- if test $host = $target;
- then
- _RTEMS_SUBST_IFNOT([host_configdirs],[$1])
- else
- if test $build = $target;
- then
- _RTEMS_SUBST_IFNOT([build_configdirs],[$1])
- else
- _RTEMS_SUBST_IFNOT([target_configdirs],[$1])
- fi
- fi
+ AS_IF([test $host = $target],
+ [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])],
+ [AS_IF([test $build = $target],
+ [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])],
+ [_RTEMS_SUBST_IFNOT([target_configdirs],[$1])]
+ )]
+ )
fi
m4_divert_text([DEFAULTS],