From: Peter Eisentraut Date: Thu, 6 Nov 2003 10:28:54 +0000 (+0000) Subject: Make the detection of nsgmls more robust for funny shells. X-Git-Tag: REL7_4_RC2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b15cb18cb2c56cbca936119f16563dd681d19409;p=postgresql Make the detection of nsgmls more robust for funny shells. --- diff --git a/config/docbook.m4 b/config/docbook.m4 index c2b9568ac0..93f34c25a8 100644 --- a/config/docbook.m4 +++ b/config/docbook.m4 @@ -1,4 +1,4 @@ -# $Header: /cvsroot/pgsql/config/docbook.m4,v 1.4 2002/07/16 00:51:37 momjian Exp $ +# $Header: /cvsroot/pgsql/config/docbook.m4,v 1.4.6.1 2003/11/06 10:28:54 petere Exp $ # PGAC_PROG_JADE # -------------- @@ -31,11 +31,13 @@ AC_CACHE_CHECK([for DocBook V$1], [pgac_cv_check_docbook], EOF -${NSGMLS-false} -s conftest.sgml 1>&AS_MESSAGE_LOG_FD 2>&1 -if test $? -eq 0; then - pgac_cv_check_docbook=yes -else - pgac_cv_check_docbook=no +pgac_cv_check_docbook=no + +if test -n "$NSGMLS"; then + $NSGMLS -s conftest.sgml 1>&AS_MESSAGE_LOG_FD 2>&1 + if test $? -eq 0; then + pgac_cv_check_docbook=yes + fi fi rm -f conftest.sgml]) diff --git a/configure b/configure index 635ace535b..b528989175 100755 --- a/configure +++ b/configure @@ -17441,11 +17441,13 @@ else EOF -${NSGMLS-false} -s conftest.sgml 1>&5 2>&1 -if test $? -eq 0; then - pgac_cv_check_docbook=yes -else - pgac_cv_check_docbook=no +pgac_cv_check_docbook=no + +if test -n "$NSGMLS"; then + $NSGMLS -s conftest.sgml 1>&5 2>&1 + if test $? -eq 0; then + pgac_cv_check_docbook=yes + fi fi rm -f conftest.sgml fi