[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ac_configure_args
From: |
Sam Steingold |
Subject: |
Re: ac_configure_args |
Date: |
Mon, 11 Oct 2010 18:20:22 -0400 |
User-agent: |
Thunderbird 2.0.0.24 (X11/20100721) |
Ralf Wildenhues wrote:
$srcdir/subdir/configure @module_configure_flags@
what is the right way to quote it?
on mingw, when I do
address@hidden@
I get
./makemake: line 194: --srcdir=../src: No such file or directory
and when I do
module_configure_flags='@module_configure_flags@'
I get
./makemake: line 194: -mno-cygwin: command not found
and when I do
module_configure_flags="@module_configure_flags@"
./makemake: line 205: '--srcdir=../src': No such file or directory
./makemake: line 205: '--disable-option-checking': command not found
./makemake: line 205: '--with-dynamic-ffi': command not found
./makemake: line 205: '--with-libffcall-prefix=/cygdrive/c/sds/top': No such fil
e or directory
./makemake: line 205: '--with-libsigsegv-prefix=/cygdrive/c/sds/top': No such fi
le or directory
./makemake: line 205: '--cache-file=config.cache': command not found
./makemake: line 205: 'CC=gcc: command not found
./makemake: line 205: -mno-cygwin': command not found
@module_configure_flags@ is replaced with:
configure:module_configure_flags="$ac_configure_args"
makemake:
===============================================================
[[[line 194]]]module_configure_flags=" '--srcdir=../src'
'--disable-option-checking' '--with-d
ynamic-ffi' '--with-libffcall-prefix=/cygdrive/c/sds/top' '--with-libsigsegv-pre
fix=/cygdrive/c/sds/top' '--cache-file=config.cache' 'CC=gcc -mno-cygwin'"
CP='cp -p'
LN_S='ln -s'
HLN='ln'
# strip out -srcdir* & -cache-file*
tmp=""
keep_next=maybe
for arg in $module_configure_flags; do
case $arg in
CFLAGS* ) continue ;;
[[[line 205]]] *\'*) arg="`$echo "$arg" | sed "s/'/'\\\\\\\\''/g"`" ;;
esac
case $keep_next in
yes ) tmp="$tmp '$arg'"; keep_next=maybe; ;;
no ) keep_next=maybe; ;;
maybe ) case $arg in
--cache-file=* | --srcdir=*) continue ;;
--cache-file | --srcdir ) keep_next=no; ;;
*=* ) tmp="$tmp '$arg'"; ;;
*) tmp="$tmp '$arg'"; keep_next=yes; ;;
esac ;;
esac
done
module_configure_flags="$tmp"
unset tmp
unset arg
unset keep_next
===============================================================
thanks!
- Re: ac_configure_args,
Sam Steingold <=