Juergen Lock wrote:
> At least FreeBSD's expr(1) doesnt understand the syntax now used in
> configure:
> 
> Index: qemu/configure
> @@ -157,7 +157,7 @@
>  fi
>  
>  for opt do
> -  optarg=`expr "$opt" : '[^=]*=\(.*\)'`
> +  optarg=`echo "$opt" |sed 's/^[^=]*=//'`
>    case "$opt" in
>    --help|-h) show_help=yes
>    ;;

The GNU Autoconf manual, and its code, recommends something like this
(note the "x" prefix):

  optarg=`expr "x$opt" : 'x[^=]*=\(.*\)'`

Your echo version suffers from non-portable results when opt matches "-n*",
"-e*", "-E*", or something with a backslash in.

-- Jamie


_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to