Changeset bcf4d5bc in rtems for acinclude.m4


Ignore:
Timestamp:
Nov 18, 2002, 2:55:01 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
3ae9de1
Parents:
f934a9d6
Message:

2002-11-18 Ralf Corsepius <corsepiu@…>

  • acinclude.m4: Use AS_IF instead of if/then/else/endif.
  • configure.ac: Ditto.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • acinclude.m4

    rf934a9d6 rbcf4d5bc  
    307307if test $build = $host;
    308308then
    309   if test $host = $target;
    310   then
    311     _RTEMS_SUBST_IFNOT([build_configdirs],[$1])
    312   else
    313     _RTEMS_SUBST_IFNOT([build_configdirs],[$1])
    314   fi
     309  AS_IF([test $host = $target],
     310    [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])],
     311    [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])]
     312  )
    315313else
    316   if test $host = $target;
    317   then
    318     _RTEMS_SUBST_IFNOT([host_configdirs],[$1])
    319   else
    320     if test $build = $target;
    321     then
    322       _RTEMS_SUBST_IFNOT([host_configdirs],[$1])
    323     else
    324       _RTEMS_SUBST_IFNOT([host_configdirs],[$1])
    325     fi
    326   fi
     314  AS_IF([test $host = $target],
     315    [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])],
     316    [AS_IF([test $build = $target],
     317      [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])],
     318      [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])]
     319    )]
     320  )
    327321fi
    328322
     
    351345if test $build = $host;
    352346then
    353   if test $host = $target;
    354   then
    355     _RTEMS_SUBST_IFNOT([build_configdirs],[$1])
    356   else
    357     _RTEMS_SUBST_IFNOT([target_configdirs],[$1])
    358   fi
     347  AS_IF([test $host = $target],
     348    [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])],
     349    [_RTEMS_SUBST_IFNOT([target_configdirs],[$1])]
     350  )
    359351else
    360   if test $host = $target;
    361   then
    362     _RTEMS_SUBST_IFNOT([host_configdirs],[$1])
    363   else
    364     if test $build = $target;
    365     then
    366       _RTEMS_SUBST_IFNOT([build_configdirs],[$1])
    367     else
    368       _RTEMS_SUBST_IFNOT([target_configdirs],[$1])
    369     fi
    370   fi
     352  AS_IF([test $host = $target],
     353    [_RTEMS_SUBST_IFNOT([host_configdirs],[$1])],
     354    [AS_IF([test $build = $target],
     355      [_RTEMS_SUBST_IFNOT([build_configdirs],[$1])],
     356      [_RTEMS_SUBST_IFNOT([target_configdirs],[$1])]
     357    )]
     358  )
    371359fi
    372360
Note: See TracChangeset for help on using the changeset viewer.