Changeset 3174a7ed in rtems for macros/rtems-top.m4


Ignore:
Timestamp:
Oct 31, 2000, 9:20:00 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
6fd829a
Parents:
846027b
Message:

2000-10-30 Ralf Corsepius <corsepiu@…>

  • configure.in: New, Cygnus/GNU style configuration.
  • Makefile.am: Add macros/, reflect new configure.in, ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/macros
  • automake/compile.am: BSP_SPECS, remove RTEMS_CANONICALIZATION.
  • automake/lib.am: Remove RTEMS_CANONICALIZATION.
  • macros/tool-prefix.m4: Remove.
  • macros/target.m4: Remove RTEMS_CONFIG_SUBDIRS, RTEMS_OUTPUT_SUBDIRS.
  • macros/enable-rtemsbsp.m4: Add RTEMS_CONFIG_PER_BSP, add setting RTEMS_ROOT.
  • macros/i386-gas-code16.m4: Define NEW_GAS only for 16bit mode-
  • macros/multilib.m4: Various minor fixes.
  • macros/project-root.m4: Remove setting PROJECT_TOPdir, PROJECT_ROOT, RTEMS_ROOT.
  • macros/rtems-top.m4: Remove RTEMS_CANONICALIZATION, TARGET_SUBDIRS; Add with_target_subdirs, PROJECT_TOPdir, PROJECT_ROOT.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • macros/rtems-top.m4

    r846027b r3174a7ed  
    1616AC_SUBST(ENDIF)
    1717
    18 ## HACK to destinguish between using GNU and RTEMS canonicalization
    19 AM_CONDITIONAL(RTEMS_CANONICALIZATION,test "x" = "y")
    20 
     18# with_target_subdir
    2119AC_ARG_WITH(target-subdir,
    2220[  --with-target-subdir=DIR],
    23 TARGET_SUBDIR="$withval",
    24 TARGET_SUBDIR=".")
     21with_target_subdir="$withval",
     22with_target_subdir=".")
    2523
    2624RTEMS_TOPdir="$1";
    2725AC_SUBST(RTEMS_TOPdir)
     26
     27if test "$with_target_subdir" = "." ; then
     28# Native
     29PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'
     30else
     31# Cross
     32changequote(, )dnl
     33dots=`echo $with_target_subdir|\
     34sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
     35changequote([, ])dnl
     36PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)'
     37fi
     38AC_SUBST(PROJECT_TOPdir)
     39
     40if test "$with_target_subdir" = "." ; then
     41# Native
     42PROJECT_ROOT=${RTEMS_TOPdir}/'$(top_builddir)';
     43else
     44# Cross
     45PROJECT_ROOT=${RTEMS_TOPdir}/'$(top_builddir)'
     46fi
     47AC_SUBST(PROJECT_ROOT)
    2848
    2949dnl Determine RTEMS Version string from the VERSION file
Note: See TracChangeset for help on using the changeset viewer.