Changeset 0a9a0f5 in rtems for aclocal


Ignore:
Timestamp:
Nov 20, 2002, 2:57:38 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
fd5e23a
Parents:
cd1fac6
Message:

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

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

Legend:

Unmodified
Added
Removed
  • 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.