forked from Imagelibrary/rtems
2001-09-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/canonical-target-name.m4: Use AC_CANONICAL_TARGET instead of AC_CANONICAL_SYSTEM. * aclocal/config-subdirs.m4: Use AS_MKDIR_P instead of mkinstalldirs and mkdir. * aclocal/target.m4: Obsolete RTEMS_OUTPUT_BUILD_SUBDIRS, hack RTEMS_CONFIG_BUILD_SUBDIRS, introduce _RTEMS_OUTPUT_BUILD_SUBDIRS.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,13 @@
|
|||||||
|
2001-09-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
|
* aclocal/canonical-target-name.m4: Use AC_CANONICAL_TARGET instead
|
||||||
|
of AC_CANONICAL_SYSTEM.
|
||||||
|
* aclocal/config-subdirs.m4: Use AS_MKDIR_P instead of
|
||||||
|
mkinstalldirs and mkdir.
|
||||||
|
* aclocal/target.m4: Obsolete RTEMS_OUTPUT_BUILD_SUBDIRS,
|
||||||
|
hack RTEMS_CONFIG_BUILD_SUBDIRS, introduce
|
||||||
|
_RTEMS_OUTPUT_BUILD_SUBDIRS.
|
||||||
|
|
||||||
2001-09-13 Joel Sherrill <joel@OARcorp.com>
|
2001-09-13 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* missing: Updated to latest version.
|
* missing: Updated to latest version.
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ dnl and we have to fix it for rtems ourselves
|
|||||||
|
|
||||||
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
AC_DEFUN(RTEMS_CANONICAL_TARGET_CPU,
|
||||||
[
|
[
|
||||||
AC_CANONICAL_SYSTEM
|
AC_CANONICAL_TARGET
|
||||||
AC_MSG_CHECKING(rtems target cpu)
|
AC_MSG_CHECKING(rtems target cpu)
|
||||||
case "${target}" in
|
case "${target}" in
|
||||||
# hpux unix port should go here
|
# hpux unix port should go here
|
||||||
|
|||||||
@@ -15,16 +15,9 @@ AC_DEFUN(_RTEMS_PUSH_BUILDDIR,
|
|||||||
[
|
[
|
||||||
# _RTEMS_PUSH_BUILDDIR
|
# _RTEMS_PUSH_BUILDDIR
|
||||||
echo configuring in $1
|
echo configuring in $1
|
||||||
## We use mkinstalldirs below as a workaround to mkdir -p not being
|
|
||||||
## available everywhere, but us wanting to support deep directories.
|
|
||||||
case "$srcdir" in
|
case "$srcdir" in
|
||||||
.) ;;
|
.) ;;
|
||||||
*)
|
*) AS_MKDIR_P([$1])
|
||||||
if ${ac_aux_dir}/mkinstalldirs $1;
|
|
||||||
then :;
|
|
||||||
else
|
|
||||||
AC_MSG_ERROR([can not create `pwd`/$1])
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -130,7 +123,11 @@ if test "$no_recursion" != yes; then
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
test -n "$target_configdirs" && test -d $target_subdir || mkdir $target_subdir
|
if test -n "$target_configdirs" && test -d $target_subdir;
|
||||||
|
then :;
|
||||||
|
else
|
||||||
|
AS_MKDIR_P(["$target_subdir"])
|
||||||
|
fi
|
||||||
|
|
||||||
for ac_config_dir in $target_configdirs; do
|
for ac_config_dir in $target_configdirs; do
|
||||||
# Do not complain, so a configure script can configure whichever
|
# Do not complain, so a configure script can configure whichever
|
||||||
@@ -207,7 +204,11 @@ if test "$no_recursion" != yes; then
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
test -n "$host_configdirs" && test -d $host_subdir || mkdir $host_subdir
|
if test -n "$host_configdirs" && test -d $host_subdir;
|
||||||
|
then :;
|
||||||
|
else
|
||||||
|
AS_MKDIR_P(["$host_subdir"])
|
||||||
|
fi
|
||||||
|
|
||||||
for ac_config_dir in $host_configdirs; do
|
for ac_config_dir in $host_configdirs; do
|
||||||
# Do not complain, so a configure script can configure whichever
|
# Do not complain, so a configure script can configure whichever
|
||||||
|
|||||||
@@ -3,63 +3,65 @@ dnl $Id$
|
|||||||
## HACK: Work-around to structural issue with RTEMS
|
## HACK: Work-around to structural issue with RTEMS
|
||||||
## The macros below violate most autoconf and canonicalization standards
|
## The macros below violate most autoconf and canonicalization standards
|
||||||
AC_DEFUN(RTEMS_CONFIG_BUILD_SUBDIRS,
|
AC_DEFUN(RTEMS_CONFIG_BUILD_SUBDIRS,
|
||||||
[
|
[AC_REQUIRE([_RTEMS_OUTPUT_BUILD_SUBDIRS])
|
||||||
define([RTEMS_BUILD_SUBDIRS],
|
RTEMS_BUILD_SUBDIRS="$RTEMS_BUILD_SUBDIRS [$1]"
|
||||||
ifdef([RTEMS_BUILD_SUBDIRS], [RTEMS_BUILD_SUBDIRS ],)[$1])dnl
|
|
||||||
build_subdirs="RTEMS_BUILD_SUBDIRS"
|
|
||||||
AC_SUBST(build_subdirs)
|
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Derived from automake-1.4's AC_OUTPUT_SUBDIRS
|
dnl Derived from automake-1.4's AC_OUTPUT_SUBDIRS
|
||||||
AC_DEFUN(RTEMS_OUTPUT_BUILD_SUBDIRS,
|
AC_DEFUN([_RTEMS_OUTPUT_BUILD_SUBDIRS],
|
||||||
|
[AC_CONFIG_COMMANDS([bsp-tools],
|
||||||
[
|
[
|
||||||
|
# HACK: This is a blantant hack and breaks Canadian crosses
|
||||||
|
build_alias="$build_alias"
|
||||||
|
host_alias="$build_alias"
|
||||||
if test "$no_recursion" != yes; then
|
if test "$no_recursion" != yes; then
|
||||||
if test $build_alias != $host_alias; then
|
if test x"$build_alias" != x"$host_alias"; then
|
||||||
target_subdir="$host_alias"
|
target_subdir="$host_alias"
|
||||||
else
|
else
|
||||||
target_subdir="."
|
target_subdir="."
|
||||||
fi
|
fi
|
||||||
# Remove --cache-file and --srcdir arguments so they do not pile up.
|
# Remove --cache-file and --srcdir arguments so they do not pile up.
|
||||||
ac_sub_configure_args=
|
ac_sub_configure_args=
|
||||||
ac_prev=
|
rtems_prev=
|
||||||
for ac_arg in $ac_configure_args; do
|
for rtems_arg in $ac_configure_args; do
|
||||||
if test -n "$ac_prev"; then
|
if test -n "$rtems_prev"; then
|
||||||
ac_prev=
|
rtems_prev=
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
case "$ac_arg" in
|
case "$rtems_arg" in
|
||||||
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
||||||
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
||||||
ac_prev=cache_file ;;
|
rtems_prev=cache_file ;;
|
||||||
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
||||||
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
||||||
;;
|
;;
|
||||||
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
||||||
ac_prev=srcdir ;;
|
rtems_prev=srcdir ;;
|
||||||
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||||
;;
|
;;
|
||||||
--target*) ;;
|
--target*) ;;
|
||||||
--build*) ;;
|
--build*) ;;
|
||||||
--host*) ;;
|
--host*) ;;
|
||||||
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
*_alias* ) ;; # HACK: Workaround to autoconf passing *_alias
|
||||||
|
*) ac_sub_configure_args="$ac_sub_configure_args $rtems_arg" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
for ac_config_dir in $1; do
|
for rtems_config_dir in $RTEMS_BUILD_SUBDIRS; do
|
||||||
|
|
||||||
# Do not complain, so a configure script can configure whichever
|
# Do not complain, so a configure script can configure whichever
|
||||||
# parts of a large source tree are present.
|
# parts of a large source tree are present.
|
||||||
if test ! -d $srcdir/$ac_config_dir; then
|
if test ! -d $srcdir/$rtems_config_dir; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_RTEMS_PUSH_BUILDDIR([$ac_config_dir])
|
_RTEMS_PUSH_BUILDDIR([$rtems_config_dir])
|
||||||
|
|
||||||
_RTEMS_SUB_SRCDIR([$ac_config_dir])
|
_RTEMS_SUB_SRCDIR([$rtems_config_dir])
|
||||||
|
|
||||||
# The recursion is here.
|
# The recursion is here.
|
||||||
if test -n "$ac_sub_configure"; then
|
if test -n "$ac_sub_configure"; then
|
||||||
ac_sub_cache_file=./config.cache
|
# ac_sub_cache_file=./config.cache
|
||||||
|
ac_sub_cache_file=/dev/null
|
||||||
_RTEMS_GIVEN_INSTALL
|
_RTEMS_GIVEN_INSTALL
|
||||||
|
|
||||||
echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
|
echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
|
||||||
@@ -71,11 +73,17 @@ if test "$no_recursion" != yes; then
|
|||||||
--cache-file=$ac_sub_cache_file
|
--cache-file=$ac_sub_cache_file
|
||||||
then :
|
then :
|
||||||
else
|
else
|
||||||
AC_MSG_ERROR([$ac_sub_configure failed for $ac_config_dir])
|
AC_MSG_ERROR([$ac_sub_configure failed for $rtems_config_dir])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_RTEMS_POP_BUILDDIR
|
_RTEMS_POP_BUILDDIR
|
||||||
done
|
done
|
||||||
fi
|
fi],
|
||||||
|
[
|
||||||
|
RTEMS_BUILD_SUBDIRS="$RTEMS_BUILD_SUBDIRS"
|
||||||
])
|
])
|
||||||
|
])
|
||||||
|
|
||||||
|
## FIXME: This is obsolete. Only kept for backward compatibility
|
||||||
|
AU_DEFUN([RTEMS_OUTPUT_BUILD_SUBDIRS],[])
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ define make-exe
|
|||||||
-u atexit -u __vectors -u start \
|
-u atexit -u __vectors -u start \
|
||||||
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
$(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
|
||||||
$(NM) -g -n $(basename $@)_sym.exe> $(basename $@).nm
|
$(NM) -g -n $(basename $@)_sym.exe> $(basename $@).nm
|
||||||
$(STRIP) -o $(basename $@).exe $(basename $@)_sym-exe
|
$(STRIP) -O $(basename $@).exe $(basename $@)_sym-exe
|
||||||
$(SIZE) $(basename $@)_sym.exe
|
$(SIZE) $(basename $@)_sym.exe
|
||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user