source: rtems/c/acinclude.m4 @ f2e0f8e

5
Last change on this file since f2e0f8e was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on May 3, 2012 at 3:09:24 PM

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 806 bytes
RevLine 
[33a105fb]1dnl
[d2efe941]2dnl Misc utility macros for subdir handling to work around missing abilities
3dnl in autoconf, automake and structural issues with RTEMS
4dnl
5dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'
6dnl configure.in.
7dnl
8
9dnl
10dnl _AC_DOTS(PATH)
11dnl
[dfc099fd]12AC_DEFUN([_AC_DOTS],[
[d2efe941]13# A "../" for each directory in $1.
14    ac_dots=`echo $1 | \
15             sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
16])
17
18dnl
19dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])
20dnl
[dfc099fd]21AC_DEFUN([_RTEMS_ADJUST_SRCDIR],[
[d2efe941]22    _AC_DOTS(ifelse([$3], ,[$2],[$3/$2]))
23
24    case "$srcdir" in
25    .) # No --srcdir option.  We are building in place.
26      $1=$srcdir ;;
27    [[\\/]]* | ?:[[\\/]]*) # Absolute path.
28      $1=$srcdir/$2 ;;
29    *) # Relative path.
30      $1=$ac_dots$srcdir/$2 ;;
31    esac
32])
Note: See TracBrowser for help on using the repository browser.