diff -rN -u darcs-old-2/files/patch-configure.ac darcs-new-1/files/patch-configure.ac
old
|
new
|
|
| 1 | --- configure.ac 2004-07-29 22:58:50.000000000 +0200 |
| 2 | +++ configure.ac 2004-07-29 20:14:49.000000000 +0200 |
| 3 | @@ -265,6 +265,9 @@ |
| 4 | fi |
| 5 | AC_SUBST(USE_HIDEOUS_MALLOC_HACK) |
| 6 | |
| 7 | +dnl Find awk |
| 8 | + |
| 9 | +AC_PROG_AWK |
| 10 | |
| 11 | dnl Find libcurl and other libraries needed by hscurl.c |
| 12 | |
| 13 | @@ -276,7 +279,11 @@ |
| 14 | AC_MSG_CHECKING([for libcurl]) |
| 15 | if eval curl-config --version 2>/dev/null >/dev/null; then |
| 16 | ver=`curl-config --version | sed -e "s/libcurl //g"` |
| 17 | - CURLFLAGS=`curl-config --libs | sed "s_-arch [^ ]+__"` |
| 18 | + if test -z "$AWK"; then |
| 19 | + CURLFLAGS=`curl-config --libs | sed "s_-arch @<:@^ @:>@+__"` |
| 20 | + else |
| 21 | + CURLFLAGS=`curl-config --libs | $AWK '{sub(/-arch @<:@^ @:>@+/,""); print}'` |
| 22 | + fi |
| 23 | AC_MSG_RESULT($ver) |
| 24 | else |
| 25 | AC_MSG_RESULT(FAILED) |