X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=acsite.m4;h=dd9c8e13300fa68a4c3c3f369e58bc5dda9ccb62;hb=55845bbbb926c48b0b95216a319bf247f81d763c;hp=3a0e116ea4d8d9dba0656cc3c276dcc9697c1f54;hpb=5173d709e090b953eaf800cbcd1bf897de332a12;p=simgear.git diff --git a/acsite.m4 b/acsite.m4 index 3a0e116e..dd9c8e13 100644 --- a/acsite.m4 +++ b/acsite.m4 @@ -392,3 +392,24 @@ if test "$have_timezone" = no; then AC_MSG_RESULT(no)) fi ])dnl + +## AC_BZ_SET_COMPILER: Addition by Theodore Papadopoulo +## Patch by Jim McKelvey: change sed -e 's/ /@/g' to sed -e 's/ /@/' +AC_DEFUN(AC_SG_SET_COMPILER, + [cxxwith=`echo $1 | sed -e 's/ /@/'` + case "$cxxwith" in + *:*@*) # Full initialization syntax + CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)@.*/\1/p'` + CXXFLAGS=`echo "$cxxwith" | sed -n -e 's/.*:.*@\(.*\)/\1/p'` + ;; + *:*) # Simple initialization syntax + CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)/\1/p'` + CXXFLAGS=$3 + ;; + *) # Default values + CXX=$2 + CXXFLAGS=$3 + CC="$2 --c" +## CFLAGS= + ;; + esac])