summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-05-31 14:33:51 +0200
committerBjörn Jacke <bj@sernet.de>2010-05-31 14:33:51 +0200
commita950c6c60097af750d4348cb096fdacb342e9e71 (patch)
treee1fa093053070b1eb727d13642e2f8b8ef54942a
parent8c017022dbb78966589fa98e03dea01d91d003b0 (diff)
downloadsamba-a950c6c60097af750d4348cb096fdacb342e9e71.tar.gz
samba-a950c6c60097af750d4348cb096fdacb342e9e71.tar.bz2
samba-a950c6c60097af750d4348cb096fdacb342e9e71.zip
s3:configre: work around shell problem on HP-UX in AC macro
-rw-r--r--source3/configure.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 5532139e26..6f25be5a9c 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1864,7 +1864,9 @@ AC_CACHE_CHECK([whether building shared libraries actually works],
# variables so they need to be eval'ed.
if AC_TRY_COMMAND([$CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.o ${srcdir-.}/../tests/shlib.c 1>&AS_MESSAGE_LOG_FD])
then
- if AC_TRY_COMMAND([`eval echo "$SHLD $LDSHFLAGS $PICFLAG"` -o "shlib.$SHLIBEXT" shlib.o 1>&AS_MESSAGE_LOG_FD])
+ TESTCMD="`eval echo \"$SHLD $LDSHFLAGS $PICFLAG\"`"
+ TESTCMD="$TESTCMD -o \"shlib.$SHLIBEXT\" shlib.o"
+ if AC_TRY_COMMAND([$TESTCMD 1>&AS_MESSAGE_LOG_FD 2>&1])
then
ac_cv_shlib_works=yes
fi