OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rtems-20020807/] [aclocal/] [config-subdirs.m4] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
dnl config-subdirs.m4,v 1.6 2002/01/06 20:12:13 joel Exp
2
 
3
dnl
4
dnl Misc utility macros for subdir handling to work around missing abilities
5
dnl in autoconf, automake and structural issues with RTEMS
6
dnl
7
dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus'
8
dnl configure.in.
9
dnl
10
 
11
dnl
12
dnl _AC_DOTS(PATH)
13
dnl
14
AC_DEFUN(_AC_DOTS,[
15
# A "../" for each directory in $1.
16
    ac_dots=`echo $1 | \
17
             sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'`
18
])
19
 
20
dnl
21
dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR])
22
dnl
23
AC_DEFUN(_RTEMS_ADJUST_SRCDIR,[
24
    _AC_DOTS(ifelse([$3], ,[$2],[$3/$2]))
25
 
26
    case "$srcdir" in
27
    .) # No --srcdir option.  We are building in place.
28
      $1=$srcdir ;;
29
    [[\\/]]* | ?:[[\\/]]*) # Absolute path.
30
      $1=$srcdir/$2 ;;
31
    *) # Relative path.
32
      $1=$ac_dots$srcdir/$2 ;;
33
    esac
34
])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.