Changeset 72f4ec87 in rtems for aclocal


Ignore:
Timestamp:
Aug 29, 2002, 3:54:00 PM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
b88e366
Parents:
6c15108
Message:

2002-08-29 Ralf Corsepius <corsepiu@…>

  • aclocal/bsp-configure.m4: Create bspopts.h on the fly, filter out autoconf-2.53 PACKAGE crap.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal/bsp-configure.m4

    r6c15108 r72f4ec87  
    1313
    1414  RTEMS_CANONICAL_HOST
    15   AM_CONFIG_HEADER([include/bspopts.h])
     15  AM_CONFIG_HEADER([include/bspopts.tmp:include/bspopts.h.in],[
     16echo "/* BSP dependent options file */"         >$tmp/config.h
     17echo "/* automatically generated -- DO NOT EDIT!! */" >>$tmp/config.h
     18echo                                                  >>$tmp/config.h
     19echo "#ifndef __BSP_OPTIONS_h"                        >>$tmp/config.h
     20echo "#define __BSP_OPTIONS_h"                        >>$tmp/config.h
     21echo                                                  >>$tmp/config.h
     22sed -e '/.*PACKAGE.*/d' include/bspopts.tmp >> $tmp/config.h
     23echo                                                  >>$tmp/config.h
     24echo "#endif"                                         >>$tmp/config.h
     25  AS_IF([cmp -s include/bspopts.h $tmp/config.h 2>/dev/null],[
     26    AC_MSG_NOTICE([include/bspopts.h is unchanged])
     27    rm -f $tmp/config.h],[
     28    AC_MSG_NOTICE([creating include/bspopts.h])
     29    rm -f include/bspopts.h
     30    mv $tmp/config.h include/bspopts.h
     31  ])
     32])
    1633  RTEMS_PROJECT_ROOT
    1734
Note: See TracChangeset for help on using the changeset viewer.