0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-29 00:32:34 +08:00

tar doesn't accept -C flag on solaris while extracting

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
This commit is contained in:
Mikko Koppanen 2010-12-07 11:15:51 +01:00 committed by Martin Sustrik
parent a3353150f8
commit 1d81d2f1d4

View File

@ -326,9 +326,13 @@ if test "x$with_pgm_ext" != "xno"; then
# Unpack libpgm # Unpack libpgm
AC_MSG_NOTICE([Unpacking ${pgm_basename}.tar.gz]) AC_MSG_NOTICE([Unpacking ${pgm_basename}.tar.gz])
if ! gzip -dc foreign/openpgm/${pgm_basename}.tar.gz | tar -xf - -C foreign/openpgm/; then ac_zmq_pwd=`pwd`
AC_MSG_ERROR([cannot unpack the foreign/openpgm/${pgm_basename}.tar.gz file.]) 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 fi
cd "${ac_zmq_pwd}"
# Success! # Success!
AC_DEFINE(ZMQ_HAVE_OPENPGM, 1, [Have OpenPGM extension]) AC_DEFINE(ZMQ_HAVE_OPENPGM, 1, [Have OpenPGM extension])