]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2661] deal with space after -L in python-config output; it helps some solaris.
authorJINMEI Tatuya <jinmei@isc.org>
Tue, 5 Feb 2013 21:49:10 +0000 (13:49 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Tue, 5 Feb 2013 21:49:10 +0000 (13:49 -0800)
configure.ac

index 2075a74df6ef39f1393b4b51737b9f45d4a4f220..fad1e2082367cb8b57ae6850961cb33cf4a20467 100644 (file)
@@ -298,7 +298,11 @@ AC_SUBST(COMMON_PYTHON_PATH)
 if test -x ${PYTHON}-config; then
        PYTHON_INCLUDES=`${PYTHON}-config --includes`
 
-       for flag in `${PYTHON}-config --ldflags`; do
+       # make a copy of python-config --ldflags, removing any spaces and tabs
+       # between "-L" and its argument (some instances of python-config
+       # insert a space, which would confuse the code below)
+       python_config_ldflags=`${PYTHON}-config --ldflags | sed -ne 's/\([ \t]*-L\)[ ]*\([^ \t]*[ \t]*\)/\1\2/pg'`
+       for flag in $python_config_ldflags; do
                # add any '-L..." flags to PYTHON_LDFLAGS
                flag=`echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'`
                if test "X${flag}" != X; then