summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Koppanen <mkoppanen@php.net>2010-12-07 11:15:51 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-12-07 11:15:51 +0100
commit1d81d2f1d4549c2cd0999c9544b059c29706f260 (patch)
treedb2d132fc4b3a1ee91767cbae34bdeb29add8838
parenta3353150f845cf0f6e8f2355d3aad760bfba4b64 (diff)
tar doesn't accept -C flag on solaris while extracting
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
-rw-r--r--configure.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index ae64b38..0dfd98e 100644
--- a/configure.in
+++ b/configure.in
@@ -326,9 +326,13 @@ if test "x$with_pgm_ext" != "xno"; then
# Unpack libpgm
AC_MSG_NOTICE([Unpacking ${pgm_basename}.tar.gz])
- if ! gzip -dc foreign/openpgm/${pgm_basename}.tar.gz | tar -xf - -C foreign/openpgm/; then
- AC_MSG_ERROR([cannot unpack the foreign/openpgm/${pgm_basename}.tar.gz file.])
+ ac_zmq_pwd=`pwd`
+ cd foreign/openpgm
+
+ if ! (gzip -dc "${pgm_basename}.tar.gz" || echo "failed") | ${am__untar}; then
+ AC_MSG_ERROR([cannot unpack the foreign/openpgm/${pgm_basename}.tar.gz file])
fi
+ cd "${ac_zmq_pwd}"
# Success!
AC_DEFINE(ZMQ_HAVE_OPENPGM, 1, [Have OpenPGM extension])