Changeset 9e4d710 in rtems
- Timestamp:
- 11/19/02 14:17:00 (21 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 984123f
- Parents:
- 824bf2e4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r824bf2e4 r9e4d710 1 2002-11-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * acinclude.m4: Lots of changes addressing PR 312. 4 1 5 2002-11-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 6 -
acinclude.m4
r824bf2e4 r9e4d710 172 172 173 173 if test -n "${$2_SUBDIRS}"; then 174 RTEMS_CONFIGURE_ARGS_QUOTE([ac_sub_configure_args],[ 175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 176 ac_prev=prefix ;; 177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 178 ;; 179 ],[$1args]) 174 ac_sub_configure_args="[$]$1args" 180 175 181 176 # Always prepend --prefix to ensure using the same prefix … … 227 222 esac 228 223 229 ac_sub_configure_args="$ac_sub_configure_args '--cache-file=$ac_sub_cache_file'"230 ac_sub_configure_args="$ac_sub_configure_args '--srcdir=$ac_srcdir'"231 232 # The eval makes quoting arguments work.233 224 ac_sub_configure_vars= 225 ac_sub_configure_vars="$ac_sub_configure_vars '--cache-file=$ac_sub_cache_file'" 226 ac_sub_configure_vars="$ac_sub_configure_vars '--srcdir=$ac_srcdir'" 227 234 228 test -n "[$]CC_FOR_$2" && \ 235 ac_sub_configure_vars=" 'CC=[$]CC_FOR_$2'"229 ac_sub_configure_vars="$ac_sub_configure_vars 'CC=[$]CC_FOR_$2'" 236 230 test -n "[$]CXX_FOR_$2" && \ 237 231 ac_sub_configure_vars="$ac_sub_configure_vars 'CXX=[$]CXX_FOR_$2'" … … 241 235 ac_sub_configure_vars="$ac_sub_configure_vars 'CXXFLAGS=[$]CXXFLAGS_FOR_$2'" 242 236 237 # The eval makes quoting arguments work. 243 238 AC_MSG_NOTICE([running $ac_sub_configure $ac_sub_configure_args $ac_sub_configure_vars]) 244 239 eval $ac_sub_configure $ac_sub_configure_args $ac_sub_configure_vars || … … 267 262 AC_DEFUN([_RTEMS_CONFIGURE_ARGS_PRUNE], 268 263 [ 269 for ac_arg in m4_if([$3],,[$ac_configure_args],[[$]$3]); do 264 $1_prune() 265 { 266 $1= 267 for ac_arg 268 do 270 269 if test -n "$ac_prev"; then 271 270 ac_prev= 272 271 continue 273 272 fi 274 # the eval casts away sh quotes 275 case `eval echo $ac_arg` in 273 case $ac_arg in 274 -cache-file | --cache-file | --cache-fil | --cache-fi \ 275 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 276 ac_prev=cache_file ;; 277 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 278 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 279 | --c=*) 280 ;; 281 --config-cache | -C) 282 ;; 283 284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 285 ac_prev=srcdir ;; 286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 287 ;; 288 276 289 -host* | --host* );; 277 -host ) ac_prev=host_alias;; 290 -host | --host ) 291 ac_prev=host_alias;; 278 292 -target* | --target* );; 279 -target | --target ) ac_prev=target_alias;; 293 -target | --target ) 294 ac_prev=target_alias;; 280 295 -build* | --build* );; 281 -build | --build ) ac_prev=build_alias;; 282 --cache* );; 296 -build | --build ) 297 ac_prev=build_alias;; 298 299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 300 ac_prev=prefix ;; 301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 302 ;; 303 283 304 *_alias=* );; 305 284 306 m4_if([$2],,,[$2]) 285 307 *) $1="$$1 '$ac_arg'" ;; 286 308 esac 287 309 done 310 export $1 311 } 288 312 ]) 289 313 290 314 AC_DEFUN(_RTEMS_BUILD_CONFIG_PREPARE,[ 291 # Record the configure arguments in Makefile.315 ## # Record the configure arguments in Makefile. 292 316 m4_ifdef([_RTEMS_BUILD_CONFIGDIRS_LIST], 293 317 [ 294 _RTEMS_CONFIGURE_ARGS_PRUNE([buildargs]) 318 m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([buildargs])]) 319 eval buildargs_prune $ac_configure_args 295 320 buildargs="'--host=${build}' '--build=${build}' '--target=${target_alias}' ${buildargs}" 296 AC_SUBST(buildargs)321 ## AC_SUBST(buildargs) 297 322 298 323 build_subdir="." … … 329 354 m4_ifdef([_RTEMS_HOST_CONFIGDIRS_LIST], 330 355 [ 331 # Record configure arguments in Makefile. 332 _RTEMS_CONFIGURE_ARGS_PRUNE([hostargs]) 356 ## Record configure arguments in Makefile. 357 m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([hostargs])]) 358 eval hostargs_prune $ac_configure_args 333 359 hostargs="'--host=${host_alias}' '--build=${build}' '--target=${target_alias}' ${hostargs}" 334 AC_SUBST(hostargs)360 ## AC_SUBST(hostargs) 335 361 336 362 host_subdir="${host_alias}" … … 367 393 m4_ifdef([_RTEMS_TARGET_CONFIGDIRS_LIST], 368 394 [ 369 # Record the configure arguments in Makefile. 370 _RTEMS_CONFIGURE_ARGS_PRUNE([targetargs]) 395 ## Record the configure arguments in Makefile. 396 m4_expand_once([_RTEMS_CONFIGURE_ARGS_PRUNE([targetargs])]) 397 eval targetargs_prune $ac_configure_args 371 398 targetargs="'--host=${target_alias}' '--build=${build}' '--target=${target_alias}' ${targetargs}" 372 AC_SUBST(targetargs)399 ## AC_SUBST(targetargs) 373 400 374 401 target_subdir="${target_alias}"
Note: See TracChangeset
for help on using the changeset viewer.