Ignore:
Timestamp:
Sep 22, 2009, 9:50:20 PM (11 years ago)
Author:
toby@…
Message:

base: work around bizarre curl-config --libs output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r58137 r58139  
    761761
    762762        CFLAGS_LIBCURL=$($CURL_CONFIG --cflags)
    763         # Due to a bug in dist, --arch flags are improperly supplied by curl-config.
    764         # Get rid of them.
    765         LDFLAGS_LIBCURL=$($CURL_CONFIG --libs | [sed 's/-arch [A-Za-z0-9_]* //g'])
     763        if test "x$curlprefix" = "x"; then
     764                # System curl-config emits absurd output for --libs
     765                LDFLAGS_LIBCURL="-lcurl"
     766        else
     767                # Due to a bug in dist, --arch flags are improperly supplied by curl-config.
     768                # Get rid of them.
     769                LDFLAGS_LIBCURL=$($CURL_CONFIG --libs | [sed 's/-arch [A-Za-z0-9_]* //g'])
     770        fi
    766771
    767772        AC_SUBST(CFLAGS_LIBCURL)
Note: See TracChangeset for help on using the changeset viewer.