source: rtems/c/acinclude.m4 @ af981ca0

4.115
Last change on this file since af981ca0 was af981ca0, checked in by Ralf Corsépius <ralf.corsepius@…>, on May 4, 2012 at 6:57:50 AM

Remove CVS-Ids.

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