4.115
Rev | Line | |
---|
[d2efe941] | 1 | dnl Misc utility macros for subdir handling to work around missing abilities |
---|
| 2 | dnl in autoconf, automake and structural issues with RTEMS |
---|
| 3 | dnl |
---|
| 4 | dnl Contains parts derived from autoconf-2.13 AC_OUTPUT_SUBDIRS and Cygnus' |
---|
| 5 | dnl configure.in. |
---|
| 6 | dnl |
---|
| 7 | |
---|
| 8 | dnl |
---|
| 9 | dnl _AC_DOTS(PATH) |
---|
| 10 | dnl |
---|
[dfc099fd] | 11 | AC_DEFUN([_AC_DOTS],[ |
---|
[d2efe941] | 12 | # A "../" for each directory in $1. |
---|
| 13 | ac_dots=`echo $1 | \ |
---|
| 14 | sed -e 's%^\./%%' -e 's%[[^/]]$%&/%' -e 's%[[^/]]*/%../%g'` |
---|
| 15 | ]) |
---|
| 16 | |
---|
| 17 | dnl |
---|
| 18 | dnl _RTEMS_ADJUST_SRCDIR(REVAR,CONFIG_DIR[,TARGET_SUBDIR]) |
---|
| 19 | dnl |
---|
[dfc099fd] | 20 | AC_DEFUN([_RTEMS_ADJUST_SRCDIR],[ |
---|
[d2efe941] | 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.