Changeset 3174a7ed in rtems
- Timestamp:
- 10/31/00 21:20:00 (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 6fd829a
- Parents:
- 846027b
- Files:
-
- 1 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r846027b r3174a7ed 1 2000-10-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * configure.in: New, Cygnus/GNU style configuration. 4 * Makefile.am: Add macros/, reflect new configure.in, 5 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/macros 6 * automake/compile.am: BSP_SPECS, remove RTEMS_CANONICALIZATION. 7 * automake/lib.am: Remove RTEMS_CANONICALIZATION. 8 * macros/tool-prefix.m4: Remove. 9 * macros/target.m4: Remove RTEMS_CONFIG_SUBDIRS, RTEMS_OUTPUT_SUBDIRS. 10 * macros/enable-rtemsbsp.m4: Add RTEMS_CONFIG_PER_BSP, add setting 11 RTEMS_ROOT. 12 * macros/i386-gas-code16.m4: Define NEW_GAS only for 16bit mode- 13 * macros/multilib.m4: Various minor fixes. 14 * macros/project-root.m4: Remove setting PROJECT_TOPdir, 15 PROJECT_ROOT, RTEMS_ROOT. 16 * macros/rtems-top.m4: Remove RTEMS_CANONICALIZATION, TARGET_SUBDIRS; 17 Add with_target_subdirs, PROJECT_TOPdir, PROJECT_ROOT. 18 1 19 2000-10-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 20 -
Makefile.am
r846027b r3174a7ed 8 8 9 9 AUTOMAKE_OPTIONS = foreign 1.4 10 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/ aclocal10 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/macros 11 11 12 SUBDIRS = doc make tools @TARGET_SUBDIRS@12 SUBDIRS = doc make tools $(HOST_SUBDIRS) $(TARGET_SUBDIRS) 13 13 14 14 AUTOMAKE_FILES = automake/compile.am automake/host.am automake/lib.am \ 15 automake/local.am automake/multilib.am automake/subdirs.am15 automake/local.am automake/multilib.am automake/subdirs.am 16 16 17 ACLOCAL_FILES += aclocal/ar-s.m4 aclocal/bsp-alias.m4 \ 18 aclocal/canonical-host.m4 aclocal/canonical-target-name.m4 \ 19 aclocal/canonicalize-tools.m4 aclocal/check-bsps.m4 \ 20 aclocal/check-bsp-cache.m4 aclocal/check-cpu.m4 aclocal/check-cxx.m4 \ 21 aclocal/check-itron.m4 aclocal/check-multiprocessing.m4 \ 22 aclocal/check-networking.m4 aclocal/check-newlib.m4 \ 23 aclocal/check-posix.m4 aclocal/check-rdbg.m4 aclocal/enable-bare.m4 \ 24 aclocal/enable-cxx.m4 aclocal/enable-gcc28.m4 \ 25 aclocal/enable-inlines.m4 aclocal/enable-itron.m4 \ 26 aclocal/enable-libcdir.m4 aclocal/enable-multiprocessing.m4 \ 27 aclocal/enable-networking.m4 aclocal/enable-posix.m4 \ 28 aclocal/enable-rdbg.m4 aclocal/enable-rtemsbsp.m4 \ 29 aclocal/enable-tests.m4 aclocal/gcc-pipe.m4 aclocal/gcc-specs.m4 \ 30 aclocal/i386-gas-code16.m4 aclocal/path-ksh.m4 aclocal/path-perl.m4 \ 31 aclocal/prog-cc.m4 aclocal/prog-cxx.m4 aclocal/project-root.m4 \ 32 aclocal/rtems-top.m4 aclocal/sysv-ipc.m4 aclocal/target.m4 \ 33 aclocal/tool-paths.m4 aclocal/tool-prefix.m4 aclocal/multilib.m4 \ 34 aclocal/rtems-debug.m4 aclocal/rtems-test-no-pause.m4 17 ACLOCAL_FILES += macros/bsp-alias.m4 macros/canonical-host.m4 \ 18 macros/canonical-target-name.m4 macros/canonicalize-tools.m4 \ 19 macros/check-bsp-cache.m4 macros/check-bsps.m4 macros/check-cpu.m4 \ 20 macros/check-cxx.m4 macros/check-itron.m4 \ 21 macros/check-multiprocessing.m4 macros/check-networking.m4 \ 22 macros/check-newlib.m4 macros/check-posix.m4 macros/check-rdbg.m4 \ 23 macros/enable-bare.m4 macros/enable-cxx.m4 macros/enable-gcc28.m4 \ 24 macros/enable-inlines.m4 macros/enable-itron.m4 macros/enable-libcdir.m4 \ 25 macros/enable-multiprocessing.m4 macros/enable-networking.m4 \ 26 macros/enable-posix.m4 macros/enable-rdbg.m4 macros/enable-rtemsbsp.m4 \ 27 macros/enable-tests.m4 macros/gcc-pipe.m4 macros/gcc-specs.m4 \ 28 macros/i386-gas-code16.m4 macros/multilib.m4 macros/path-ksh.m4 \ 29 macros/path-perl.m4 macros/prog-cc.m4 macros/prog-cxx.m4 \ 30 macros/project-root.m4 macros/rtems-debug.m4 \ 31 macros/rtems-test-no-pause.m4 macros/rtems-top.m4 macros/sysv-ipc.m4 \ 32 macros/target.m4 macros/tool-paths.m4 35 33 36 34 noinst_SCRIPTS = bootstrap -
automake/compile.am
r846027b r3174a7ed 65 65 else 66 66 ## gcc >= 2.8.x 67 ## FIXME: This is BSP-specific and will fail for BSP-independent directories 68 GCCSPECS = -B$(PROJECT_RELEASE)/lib/ -specs bsp_specs -qrtems 67 if RTEMS_CONFIG_PER_BSP 68 BSP_SPECS = -specs bsp_specs -qrtems 69 endif 70 71 GCCSPECS = -B$(PROJECT_RELEASE)/lib/ $(BSP_SPECS) 69 72 endif 70 73 else … … 274 277 ## ------------------------------------------------------------------------- 275 278 276 ## FIXME: This will probably vanish, when GNU canonicalization will be277 ## introduced278 if RTEMS_CANONICALIZATION279 280 CC = $(CC_FOR_TARGET) $(GCCSPECS)281 CXX = $(CXX_FOR_TARGET) $(GCCSPECS)282 AR_FOR_TARGET = @AR_FOR_TARGET@283 AR = $(AR_FOR_TARGET)284 AS_FOR_TARGET = @AS_FOR_TARGET@285 AS = $(AS_FOR_TARGET)286 RANLIB_FOR_TARGET = @RANLIB_FOR_TARGET@287 RANLIB = $(RANLIB_FOR_TARGET)288 LD_FOR_TARGET = @LD_FOR_TARGET@289 LD = $(LD_FOR_TARGET)290 NM_FOR_TARGET = @NM_FOR_TARGET@291 NM = $(NM_FOR_TARGET)292 OBJCOPY_FOR_TARGET = @OBJCOPY_FOR_TARGET@293 OBJCOPY = $(OBJCOPY_FOR_TARGET)294 SIZE_FOR_TARGET = @SIZE_FOR_TARGET@295 SIZE = $(SIZE_FOR_TARGET)296 STRIP_FOR_TARGET = @STRIP_FOR_TARGET@297 STRIP = $(STRIP_FOR_TARGET)298 else299 279 CC = @CC@ $(GCCSPECS) 300 280 CXX = @CXX@ $(GCCSPECS) … … 303 283 SIZE = @SIZE@ 304 284 STRIP = @STRIP@ 305 endif306 285 307 286 ## -
automake/lib.am
r846027b r3174a7ed 3 3 ## 4 4 5 if RTEMS_CANONICALIZATION6 else7 5 AR = @AR@ 8 6 RANLIB = @RANLIB@ 9 endif10 7 11 8 define make-library -
configure.in
r846027b r3174a7ed 15 15 fi 16 16 17 RTEMS_CANONICAL_TARGET_CPU 18 AM_INIT_AUTOMAKE( rtems,$RTEMS_VERSION,no)17 AC_CANONICAL_SYSTEM 18 AM_INIT_AUTOMAKE(cross,0,no) 19 19 AM_MAINTAINER_MODE 20 21 dnl RTEMS_ENABLE_BARE22 dnl RTEMS_ENABLE_RTEMSBSP(rtems_bsp)23 20 24 21 dnl These option are only in here to let --help report all supported … … 33 30 RTEMS_ENABLE_GCC28 34 31 RTEMS_ENABLE_LIBCDIR 35 RTEMS_ENABLE_TESTS 32 RTEMS_ENABLE_TESTS 36 33 RTEMS_ENABLE_RTEMS_DEBUG 37 34 38 RTEMS_CHECK_CPU 39 RTEMS_CANONICAL_HOST 40 41 AC_CONFIG_SUBDIRS(tools/build) 42 AC_CONFIG_SUBDIRS(tools/update) 43 AC_CONFIG_SUBDIRS(tools/cpu) 44 45 # List all subdirectories to be compiled for the target here 46 RTEMS_CONFIG_SUBDIRS(c) 47 48 if test "$target_alias" != "$host_alias"; then 35 # these tools are built for the build environment 36 # 37 build_tools="tools/build tools/update tools/cpu" 38 39 # these libraries are used for the host environment 40 # 41 host_libs="" 42 43 # these tools are built for the host environment 44 # 45 host_tools="" 46 47 # these libraries are built for the target environment, and are built after 48 # the host libraries and the host tools (which may be a cross compiler) 49 # 50 target_libs="c" 51 52 # these tools are built using the target libs, and are intended to run only 53 # in the target environment 54 # 55 target_tools="" 56 57 ## All tools belong in one of the four categories, and are assigned above 58 ## We assign ${configdirs} this way to remove all embedded newlines. This 59 ## is important because configure will choke if they ever get through. 60 ## ${configdirs} is directories we build using the host tools. 61 ## ${target_configdirs} is directories we build using the target tools. 62 # 63 configdirs="${host_libs} ${host_tools}" 64 AC_SUBST(configdirs) 65 66 target_configdirs="${target_libs} ${target_tools}" 67 AC_SUBST(target_configdirs) 68 69 # Record target_configdirs and the configure arguments in Makefile. 70 targargs=`echo "${ac_configure_args}" | \ 71 sed -e 's/--no[^ ]*//' \ 72 -e 's/--cache[a-z-]*=[^ ]*//' \ 73 -e 's/--ho[a-z-]*=[^ ]*//' \ 74 -e 's/--bu[a-z-]*=[^ ]*//' \ 75 -e 's/--ta[a-z-]*=[^ ]*//'`; 76 77 targargs="--host=${target_alias} --build=${build_alias} ${targargs}" 78 AC_SUBST(targargs) 79 80 target_subdir=${target_alias} 81 49 82 changequote(,)dnl 50 TARGET_SUBDIRS=`echo "$target_subdirs" | \ 51 sed -e "s%\([a-zA-Z0-9][a-zA-Z0-9]*\)%${target_alias}/\1%g"` 83 if test $target_alias = $host_alias; 84 then 85 HOST_SUBDIRS="$configdirs $target_configdirs" 86 TARGET_SUBDIRS="" 87 else 88 HOST_SUBDIRS="$configdirs" 89 TARGET_SUBDIRS=`echo "$target_configdirs" | \ 90 sed -e "s%\([^ ]\+\)%$target_alias/\1%g"` 91 fi 52 92 changequote([,])dnl 93 94 if test $host_alias = $build_alias; 95 then 96 HOST_SUBDIRS="$build_tools $HOST_SUBDIRS" 53 97 else 54 TARGET_SUBDIRS="$target_subdirs"98 build_configdirs="$build_tools" 55 99 fi 100 101 AC_CONFIG_SUBDIRS($HOST_SUBDIRS) 56 102 AC_SUBST(TARGET_SUBDIRS) 57 58 # Explicitly list all Makefiles here 59 AC_OUTPUT( 103 AC_SUBST(HOST_SUBDIRS) 104 105 AC_OUTPUT( 60 106 Makefile 61 107 tools/Makefile … … 63 109 make/custom/Makefile 64 110 make/Templates/Makefile 65 make/compilers/Makefile 111 make/compilers/Makefile 66 112 doc/Makefile) 67 113 68 RTEMS_OUTPUT_SUBDIRS(RTEMS_TGT_SUBDIRS) 114 if test "$no_recursion" != yes; then 115 116 if test $target_alias != $host_alias; then 117 # Remove --srcdir arguments so they do not pile up. 118 ac_sub_configure_args= 119 ac_prev= 120 for ac_arg in $targargs; do 121 if test -n "$ac_prev"; then 122 ac_prev= 123 continue 124 fi 125 case "$ac_arg" in 126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 127 ac_prev=srcdir ;; 128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 129 ;; 130 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 131 esac 132 done 133 134 test -d $target_subdir || mkdir $target_subdir 135 for ac_config_dir in $target_configdirs; do 136 # Do not complain, so a configure script can configure whichever 137 # parts of a large source tree are present. 138 if test ! -d $srcdir/$ac_config_dir; then 139 continue 140 fi 141 142 echo configuring in $target_subdir/$ac_config_dir 143 144 case "$srcdir" in 145 .) ;; 146 *) 147 if test -d $target_subdir/$ac_config_dir || mkdir $target_subdir/$ac_config_dir; then :; 148 else 149 AC_MSG_ERROR(can not create `pwd`/$target_subdir/$ac_config_dir) 150 fi 151 ;; 152 esac 153 154 ac_popdir=`pwd` 155 cd $target_subdir/$ac_config_dir 156 157 changequote(, )dnl 158 # A "../" for each directory in /$ac_config_dir. 159 ac_dots=`echo $target_subdir/$ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` 160 changequote([, ])dnl 161 162 case "$srcdir" in 163 .) # No --srcdir option. We are building in place. 164 ac_sub_srcdir=$srcdir ;; 165 /*) # Absolute path. 166 ac_sub_srcdir=$srcdir/$ac_config_dir ;; 167 *) # Relative path. 168 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; 169 esac 170 171 # Check for configure 172 if test -f $ac_sub_srcdir/configure; then 173 ac_sub_configure=$ac_sub_srcdir/configure 174 else 175 AC_MSG_WARN(no configuration information is in $ac_config_dir) 176 ac_sub_configure= 177 fi 178 179 # The recursion is here. 180 if test -n "$ac_sub_configure"; then 181 182 # Make the cache file name correct relative to the subdirectory. 183 ac_sub_cache_file=$cache_file 184 ifdef([AC_PROVIDE_AC_PROG_INSTALL], 185 [ case "$ac_given_INSTALL" in 186 changequote(, )dnl 187 [/$]*) INSTALL="$ac_given_INSTALL" ;; 188 changequote([, ])dnl 189 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 190 esac 191 ])dnl 192 193 echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir" 194 # The eval makes quoting arguments work. 195 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \ 196 $ac_sub_configure_args --srcdir=$ac_sub_srcdir \ 197 --with-target-subdir=$target_subdir \ 198 --cache-file=$ac_sub_cache_file \ 199 --libdir='${exec_prefix}'/$target_alias/lib 200 then : 201 else 202 AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir) 203 fi 204 fi 205 206 cd $ac_popdir 207 done 208 fi 209 210 if test $build_alias != $host_alias; then 211 # Remove --srcdir arguments so they do not pile up. 212 ac_sub_configure_args= 213 ac_prev= 214 for ac_arg in $targargs; do 215 if test -n "$ac_prev"; then 216 ac_prev= 217 continue 218 fi 219 case "$ac_arg" in 220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 221 ac_prev=srcdir ;; 222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 223 ;; 224 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 225 esac 226 done 227 228 # test -d $target_subdir || mkdir $target_subdir 229 for ac_config_dir in $build_configdirs; do 230 # Do not complain, so a configure script can configure whichever 231 # parts of a large source tree are present. 232 if test ! -d $srcdir/$ac_config_dir; then 233 continue 234 fi 235 236 echo configuring in $ac_config_dir 237 238 case "$srcdir" in 239 .) ;; 240 *) 241 if test -d $ac_config_dir || mkdir $ac_config_dir; then :; 242 else 243 AC_MSG_ERROR(can not create `pwd`/$ac_config_dir) 244 fi 245 ;; 246 esac 247 248 ac_popdir=`pwd` 249 cd $ac_config_dir 250 251 changequote(, )dnl 252 # A "../" for each directory in /$ac_config_dir. 253 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` 254 changequote([, ])dnl 255 256 case "$srcdir" in 257 .) # No --srcdir option. We are building in place. 258 ac_sub_srcdir=$srcdir ;; 259 /*) # Absolute path. 260 ac_sub_srcdir=$srcdir/$ac_config_dir ;; 261 *) # Relative path. 262 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; 263 esac 264 265 # Check for guested configure; otherwise get Cygnus style configure. 266 if test -f $ac_sub_srcdir/configure; then 267 ac_sub_configure=$ac_sub_srcdir/configure 268 else 269 AC_MSG_WARN(no configuration information is in $ac_config_dir) 270 ac_sub_configure= 271 fi 272 273 # The recursion is here. 274 if test -n "$ac_sub_configure"; then 275 276 # Make the cache file name correct relative to the subdirectory. 277 ac_sub_cache_file=$cache_file 278 ifdef([AC_PROVIDE_AC_PROG_INSTALL], 279 [ case "$ac_given_INSTALL" in 280 changequote(, )dnl 281 [/$]*) INSTALL="$ac_given_INSTALL" ;; 282 changequote([, ])dnl 283 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 284 esac 285 ])dnl 286 287 echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir" 288 # The eval makes quoting arguments work. 289 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \ 290 $ac_sub_configure_args --srcdir=$ac_sub_srcdir \ 291 --cache-file=$ac_sub_cache_file \ 292 --build=$build_alias --host=$build_alias 293 then : 294 else 295 AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir) 296 fi 297 fi 298 299 cd $ac_popdir 300 done 301 fi 302 fi -
macros/enable-rtemsbsp.m4
r846027b r3174a7ed 39 39 AC_SUBST(BARE_CPU_CFLAGS) 40 40 41 ## RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP 42 ## AC_SUBST(RTEMS_ROOT) 41 RTEMS_ROOT=$PROJECT_ROOT/c/$RTEMS_BSP 42 AC_SUBST(RTEMS_ROOT) 43 AM_CONDITIONAL(RTEMS_CONFIG_PER_BSP, test x = x); 43 44 ]) 44 45 … … 53 54 RTEMS_BSP="$rtems_cv_RTEMS_BSP" 54 55 AC_SUBST(RTEMS_BSP) 55 ## RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c56 ##AC_SUBST(RTEMS_ROOT)56 RTEMS_ROOT=$PROJECT_ROOT/c 57 AC_SUBST(RTEMS_ROOT) 57 58 fi 58 59 ]) -
macros/i386-gas-code16.m4
r846027b r3174a7ed 24 24 fi 25 25 AC_SUBST(RTEMS_GAS_CODE16) 26 AC_DEFINE_UNQUOTED(NEW_GAS,1,[if using 16 bit mode assembler support]) 26 if test x"${RTEMS_GAS_CODE16}" = x"yes"; 27 then 28 AC_DEFINE_UNQUOTED(NEW_GAS,1,[if using 16 bit mode assembler support]) 29 fi 27 30 ]) 28 31 -
macros/multilib.m4
r846027b r3174a7ed 23 23 dnl --with-target-subdir, --with-multisrctop, --with-multisubdir 24 24 25 test -z "[$]{with_target_subdir}" && with_target_subdir=.26 27 25 if test "[$]{srcdir}" = "."; then 28 26 if test "[$]{with_target_subdir}" != "."; then … … 43 41 44 42 AC_OUTPUT_COMMANDS( 45 if test -n "$CONFIG_FILES"; do46 $ac_file" =ifelse([$1],,Makefile,[$1]) \43 if test -n "$CONFIG_FILES"; then 44 ac_file=[]ifelse([$1],,Makefile,[$1]) \ 47 45 . ${multilib_basedir}/../config-ml.in 48 fi, 46 fi,[ 49 47 srcdir=${srcdir} 50 48 host=${host} 51 49 target=${target} 52 #with_multisrctop="${with_multisrctop}"53 #with_target_subdir="${with_target_subdir}"50 with_multisrctop="${with_multisrctop}" 51 with_target_subdir="${with_target_subdir}" 54 52 with_multisubdir="${with_multisubdir}" 55 53 ac_configure_args="${multilib_arg} ${ac_configure_args}" 56 54 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 57 55 multilib_basedir=${multilib_basedir} 58 CC="${CC}" )56 CC="${CC}"]) 59 57 ]) -
macros/prog-cc.m4
r846027b r3174a7ed 10 10 AC_BEFORE([$0], [AC_PROG_CC])dnl 11 11 AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl 12 AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl13 12 AC_REQUIRE([RTEMS_ENABLE_LIBCDIR])dnl 14 13 AC_REQUIRE([RTEMS_ENABLE_GCC28])dnl -
macros/prog-cxx.m4
r846027b r3174a7ed 9 9 AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl 10 10 AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl 11 AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl12 11 AC_REQUIRE([RTEMS_ENABLE_LIBCDIR])dnl 13 12 -
macros/project-root.m4
r846027b r3174a7ed 16 16 [dnl 17 17 AC_REQUIRE([RTEMS_TOP]) 18 if test "$TARGET_SUBDIR" = "." ; then19 # Native20 PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)'21 PROJECT_ROOT=${RTEMS_TOPdir}/'$(top_builddir)';22 else23 # FIXME: Moving the build-tree24 # PROJECT_TOPdir=../${RTEMS_TOPdir}/'$(top_builddir)'25 # PROJECT_ROOT=${RTEMS_TOPdir}/'$(top_builddir)'26 27 # FIXME: Old, per-bsp building style28 PROJECT_TOPdir=../${RTEMS_TOPdir}/'$(top_builddir)'29 PROJECT_ROOT=../${RTEMS_TOPdir}/'$(top_builddir)'30 fi31 AC_SUBST(PROJECT_ROOT)32 AC_SUBST(PROJECT_TOPdir)33 34 # FIXME: This should not be here35 RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP36 AC_SUBST(RTEMS_ROOT)37 18 38 19 PACKHEX="\$(PROJECT_TOPdir)/tools/build/packhex" -
macros/rtems-top.m4
r846027b r3174a7ed 16 16 AC_SUBST(ENDIF) 17 17 18 ## HACK to destinguish between using GNU and RTEMS canonicalization 19 AM_CONDITIONAL(RTEMS_CANONICALIZATION,test "x" = "y") 20 18 # with_target_subdir 21 19 AC_ARG_WITH(target-subdir, 22 20 [ --with-target-subdir=DIR], 23 TARGET_SUBDIR="$withval",24 TARGET_SUBDIR=".")21 with_target_subdir="$withval", 22 with_target_subdir=".") 25 23 26 24 RTEMS_TOPdir="$1"; 27 25 AC_SUBST(RTEMS_TOPdir) 26 27 if test "$with_target_subdir" = "." ; then 28 # Native 29 PROJECT_TOPdir=${RTEMS_TOPdir}/'$(top_builddir)' 30 else 31 # Cross 32 changequote(, )dnl 33 dots=`echo $with_target_subdir|\ 34 sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` 35 changequote([, ])dnl 36 PROJECT_TOPdir=${dots}${RTEMS_TOPdir}/'$(top_builddir)' 37 fi 38 AC_SUBST(PROJECT_TOPdir) 39 40 if test "$with_target_subdir" = "." ; then 41 # Native 42 PROJECT_ROOT=${RTEMS_TOPdir}/'$(top_builddir)'; 43 else 44 # Cross 45 PROJECT_ROOT=${RTEMS_TOPdir}/'$(top_builddir)' 46 fi 47 AC_SUBST(PROJECT_ROOT) 28 48 29 49 dnl Determine RTEMS Version string from the VERSION file -
macros/target.m4
r846027b r3174a7ed 16 16 if test "$no_recursion" != yes; then 17 17 if test $build_alias != $host_alias; then 18 target_subdir="$ target_alias"18 target_subdir="$host_alias" 19 19 else 20 20 target_subdir="." … … 120 120 fi 121 121 ]) 122 dnl $Id$123 124 AC_DEFUN(RTEMS_CONFIG_SUBDIRS,125 [126 define([RTEMS_TGT_SUBDIRS],127 ifdef([RTEMS_TGT_SUBDIRS], [RTEMS_TGT_SUBDIRS ],)[$1])dnl128 target_subdirs="RTEMS_TGT_SUBDIRS"129 AC_SUBST(target_subdirs)130 ])131 132 dnl Derived from automake-1.4's AC_OUTPUT_SUBDIRS133 AC_DEFUN(RTEMS_OUTPUT_SUBDIRS,134 [135 if test "$no_recursion" != yes; then136 if test $target_alias != $host_alias; then137 target_subdir="$target_alias"138 else139 target_subdir="."140 fi141 # Remove --cache-file and --srcdir arguments so they do not pile up.142 ac_sub_configure_args=143 ac_prev=144 for ac_arg in $ac_configure_args; do145 if test -n "$ac_prev"; then146 ac_prev=147 continue148 fi149 case "$ac_arg" in150 -cache-file | --cache-file | --cache-fil | --cache-fi \151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)152 ac_prev=cache_file ;;153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)155 ;;156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)157 ac_prev=srcdir ;;158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)159 ;;160 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;161 esac162 done163 164 test -d $target_subdir || mkdir $target_subdir165 for ac_config_dir in $1; do166 167 # Do not complain, so a configure script can configure whichever168 # parts of a large source tree are present.169 if test ! -d $srcdir/$ac_config_dir; then170 continue171 fi172 173 echo configuring in $target_subdir/$ac_config_dir174 175 case "$srcdir" in176 ## .) ;;177 *)178 if test -d $target_subdir/$ac_config_dir || mkdir $target_subdir/$ac_config_dir; then :;179 else180 AC_MSG_ERROR(can not create `pwd`/$target_subdir/$ac_config_dir)181 fi182 ;;183 esac184 185 ac_popdir=`pwd`186 cd $target_subdir/$ac_config_dir187 188 changequote(, )dnl189 # A "../" for each directory in /$ac_config_dir.190 ac_dots=`echo $target_subdir/$ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`191 changequote([, ])dnl192 193 case "$srcdir" in194 ## .) # No --srcdir option. We are building in place.195 ## ac_sub_srcdir=$srcdir ;;196 /*) # Absolute path.197 ac_sub_srcdir=$srcdir/$ac_config_dir ;;198 *) # Relative path.199 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;200 esac201 202 # Check for guested configure; otherwise get Cygnus style configure.203 if test -f $ac_sub_srcdir/configure; then204 ac_sub_configure=$ac_sub_srcdir/configure205 elif test -f $ac_sub_srcdir/configure.in; then206 ac_sub_configure=$ac_configure207 else208 AC_MSG_WARN(no configuration information is in $ac_config_dir)209 ac_sub_configure=210 fi211 212 # The recursion is here.213 if test -n "$ac_sub_configure"; then214 215 # Make the cache file name correct relative to the subdirectory.216 if test "$target_alias" != "$host_alias"; then217 ac_sub_cache_file=$cache_file218 else219 case "$cache_file" in220 /*) ac_sub_cache_file=$cache_file ;;221 *) # Relative path.222 ac_sub_cache_file="$ac_dots$cache_file" ;;223 esac224 fi225 ifdef([AC_PROVIDE_AC_PROG_INSTALL],226 [ case "$ac_given_INSTALL" in227 changequote(, )dnl228 [/$]*) INSTALL="$ac_given_INSTALL" ;;229 changequote([, ])dnl230 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;231 esac232 ])dnl233 234 echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"235 # The eval makes quoting arguments work.236 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure \237 $ac_sub_configure_args --srcdir=$ac_sub_srcdir \238 --with-target-subdir=$target_subdir --cache-file=$ac_sub_cache_file239 then :240 else241 AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir)242 fi243 fi244 245 cd $ac_popdir246 done247 fi248 ])
Note: See TracChangeset
for help on using the changeset viewer.