qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] buildfix: check for old pod2man versions
@ 2012-03-29  8:55 Gerd Hoffmann
  2012-03-31 13:02 ` Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: Gerd Hoffmann @ 2012-03-29  8:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Older pod2man don't have a --utf8 switch, check for this in conffigure
and use it only when present.  Fixes build on RHEL-5.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 Makefile  |    1 -
 configure |    8 ++++++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index d8e1f36..35c7a2a 100644
--- a/Makefile
+++ b/Makefile
@@ -348,7 +348,6 @@ QMP/qmp-commands.txt: $(SRC_PATH)/qmp-commands.hx
 qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
 	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@,"  GEN   $@")
 
-POD2MAN = pod2man --utf8
 qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
 	$(call quiet-command, \
 	  perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu.pod && \
diff --git a/configure b/configure
index 14ef738..6e870ad 100755
--- a/configure
+++ b/configure
@@ -2821,6 +2821,13 @@ if test "$solaris" = "no" ; then
     fi
 fi
 
+# test if pod2man has --utf8 option
+if pod2man --help | grep -q utf8; then
+    POD2MAN="pod2man --utf8"
+else
+    POD2MAN="pod2man"
+fi
+
 # Use ASLR, no-SEH and DEP if available
 if test "$mingw32" = "yes" ; then
     for flag in --dynamicbase --no-seh --nxcompat; do
@@ -3358,6 +3365,7 @@ echo "LIBS+=$LIBS" >> $config_host_mak
 echo "LIBS_TOOLS+=$libs_tools" >> $config_host_mak
 echo "EXESUF=$EXESUF" >> $config_host_mak
 echo "LIBS_QGA+=$libs_qga" >> $config_host_mak
+echo "POD2MAN=$POD2MAN" >> $config_host_mak
 
 # generate list of library paths for linker script
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] buildfix: check for old pod2man versions
  2012-03-29  8:55 [Qemu-devel] [PATCH] buildfix: check for old pod2man versions Gerd Hoffmann
@ 2012-03-31 13:02 ` Blue Swirl
  0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2012-03-31 13:02 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

Thanks, applied.

On Thu, Mar 29, 2012 at 08:55, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Older pod2man don't have a --utf8 switch, check for this in conffigure
> and use it only when present.  Fixes build on RHEL-5.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  Makefile  |    1 -
>  configure |    8 ++++++++
>  2 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index d8e1f36..35c7a2a 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -348,7 +348,6 @@ QMP/qmp-commands.txt: $(SRC_PATH)/qmp-commands.hx
>  qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
>        $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@,"  GEN   $@")
>
> -POD2MAN = pod2man --utf8
>  qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
>        $(call quiet-command, \
>          perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu.pod && \
> diff --git a/configure b/configure
> index 14ef738..6e870ad 100755
> --- a/configure
> +++ b/configure
> @@ -2821,6 +2821,13 @@ if test "$solaris" = "no" ; then
>     fi
>  fi
>
> +# test if pod2man has --utf8 option
> +if pod2man --help | grep -q utf8; then
> +    POD2MAN="pod2man --utf8"
> +else
> +    POD2MAN="pod2man"
> +fi
> +
>  # Use ASLR, no-SEH and DEP if available
>  if test "$mingw32" = "yes" ; then
>     for flag in --dynamicbase --no-seh --nxcompat; do
> @@ -3358,6 +3365,7 @@ echo "LIBS+=$LIBS" >> $config_host_mak
>  echo "LIBS_TOOLS+=$libs_tools" >> $config_host_mak
>  echo "EXESUF=$EXESUF" >> $config_host_mak
>  echo "LIBS_QGA+=$libs_qga" >> $config_host_mak
> +echo "POD2MAN=$POD2MAN" >> $config_host_mak
>
>  # generate list of library paths for linker script
>
> --
> 1.7.1
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-31 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29  8:55 [Qemu-devel] [PATCH] buildfix: check for old pod2man versions Gerd Hoffmann
2012-03-31 13:02 ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).