summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-05-08 08:55:45 +0000
committerThies C. Arntzen <thies@php.net>2000-05-08 08:55:45 +0000
commit62d55047068da9426a2703c854f521d74204cf2e (patch)
treeda3027893b2293343a8fad0bfe28f6fce1c7e775 /acinclude.m4
parent3ee9304cd934199d3d06752fa549cdfa7988d425 (diff)
downloadphp-git-62d55047068da9426a2703c854f521d74204cf2e.tar.gz
AC_ADD_LIBRARY_WITH_PATH now always prepends new libraries.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 0715502483..87e8b57d94 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -429,18 +429,19 @@ ifelse($3,,[
if test -n "$2"; then
AC_ADD_LIBPATH($2)
fi
- AC_ADD_LIBRARY($1,1)
+ AC_ADD_LIBRARY($1)
],[
if test "$ext_shared" = "yes"; then
if test -n "$2"; then
- $3="[$]$3 -R$2 -L$2"
+ $3="-R$2 -L$2 -l$1 [$]$3"
+ else
+ $3="-l$1 [$]$3"
fi
- $3="[$]$3 -l$1"
else
if test -n "$2"; then
AC_ADD_LIBPATH($2)
fi
- AC_ADD_LIBRARY($1,1)
+ AC_ADD_LIBRARY($1)
fi
])
])