Changeset 0a9a0f5 in rtems


Ignore:
Timestamp:
11/20/02 02:57:38 (21 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
fd5e23a
Parents:
cd1fac6
Message:

2002-11-19 Ralf Corsepius <corsepiu@…>

  • aclocal/quoting.m4: Reworked (Part of fix to PR 312).
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rcd1fac6 r0a9a0f5  
     12002-11-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * aclocal/quoting.m4: Reworked (Part of fix to PR 312).
     4
    152002-11-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • aclocal/quoting.m4

    rcd1fac6 r0a9a0f5  
    11dnl RTEMS_CONFIGURE_ARGS_QUOTE(dnl RETURN_VAR, [ADDITIONAL_CASES], [VAR_TO_PROCESS]])
    22dnl
    3 AC_DEFUN([RTEMS_CONFIGURE_ARGS_QUOTE],
     3AC_DEFUN([_RTEMS_CONFIGURE_ARGS_QUOTE],
    44[
     5$1_prune()
     6{
    57  # Remove --cache-file and --srcdir arguments so they do not pile up.
    68  $1=
    79  ac_prev=
    8   for ac_arg in m4_if([$3],,[$ac_configure_args],[[$]$3]); do
     10  for ac_arg
     11  do
    912    if test -n "$ac_prev"; then
    1013      ac_prev=
    1114      continue
    1215    fi
    13     # the eval casts away sh quotes
    14     case `eval echo $ac_arg` in
     16    case $ac_arg in
    1517    -cache-file | --cache-file | --cache-fil | --cache-fi \
    1618    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
     
    2729      ;;
    2830    m4_if([$2],,,[$2])
    29     *) $1="$$1 $ac_arg" ;;
     31    *) $1="$$1 '$ac_arg'" ;;
    3032    esac
    3133  done
     34  export $1
     35}
    3236])
     37
     38AC_DEFUN([RTEMS_CONFIGURE_ARGS_QUOTE],[
     39m4_expand_once([_RTEMS_CONFIGURE_ARGS_QUOTE([$1],[$2])])
     40eval $1_prune m4_if([$3],,[$ac_configure_args],[[$]$3])
     41])
Note: See TracChangeset for help on using the changeset viewer.