source: rtems/aclocal/quoting.m4 @ cd1fac6

4.104.114.84.95
Last change on this file since cd1fac6 was e05468fb, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/06/02 at 11:16:52

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

Further preparations for autoconf > 2.52:

  • aclocal/enable-inlines.m4: Use AS_IF instead of if/then/else.
  • aclocal/quoting.m4: Use eval echo $ac_args to unquote $ac_arg.
  • aclocal/target.m4: Use eval echo $rtems_args to unquote $ac_arg.
  • Property mode set to 100644
File size: 998 bytes
Line 
1dnl RTEMS_CONFIGURE_ARGS_QUOTE(dnl RETURN_VAR, [ADDITIONAL_CASES], [VAR_TO_PROCESS]])
2dnl
3AC_DEFUN([RTEMS_CONFIGURE_ARGS_QUOTE],
4[
5  # Remove --cache-file and --srcdir arguments so they do not pile up.
6  $1=
7  ac_prev=
8  for ac_arg in m4_if([$3],,[$ac_configure_args],[[$]$3]); do
9    if test -n "$ac_prev"; then
10      ac_prev=
11      continue
12    fi
13    # the eval casts away sh quotes
14    case `eval echo $ac_arg` in
15    -cache-file | --cache-file | --cache-fil | --cache-fi \
16    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17          ac_prev=cache_file ;;
18    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20    | --c=*)
21      ;;
22    --config-cache | -C)
23      ;;
24    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25          ac_prev=srcdir ;;
26    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27      ;;
28    m4_if([$2],,,[$2])
29    *) $1="$$1 $ac_arg" ;;
30    esac
31  done
32])
Note: See TracBrowser for help on using the repository browser.