source: rtems/aclocal/quoting.m4 @ 1da0c52

4.104.114.84.95
Last change on this file since 1da0c52 was 59d28b7, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/11/02 at 04:27:07

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

  • aclocal/quoting.m4: New (Implements RTEMS_CONFIGURE_ARGS_QUOTE).
  • acinclude.m4: Apply RTEMS_CONFIGURE_ARGS_QUOTE.
  • Property mode set to 100644
File size: 950 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    case $ac_arg in
14    -cache-file | --cache-file | --cache-fil | --cache-fi \
15    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16          ac_prev=cache_file ;;
17    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19    | --c=*)
20      ;;
21    --config-cache | -C)
22      ;;
23    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24          ac_prev=srcdir ;;
25    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26      ;;
27    m4_if([$2],,,[$2])
28    *) $1="$$1 $ac_arg" ;;
29    esac
30  done
31])
Note: See TracBrowser for help on using the repository browser.