1
0
gettext-runtime/gettext-configure.patch
Dr. Werner Fink 25fafc3944 Accepting request 179093 from home:AndreasSchwab:ff
- Add glib2-devel libcroco-devel libxml2-devel to build requires to avoid
  using the included copies.
- gettext-configure.patch: Fix syntax in libxml check to avoid spurious
  failure

OBS-URL: https://build.opensuse.org/request/show/179093
OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=71
2013-06-15 15:31:42 +00:00

102 lines
3.7 KiB
Diff

Index: gettext-0.18.2.1/gettext-tools/configure
===================================================================
--- gettext-0.18.2.1.orig/gettext-tools/configure
+++ gettext-0.18.2.1/gettext-tools/configure
@@ -40566,13 +40566,13 @@ fi
LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-[#include <libxml/xmlversion.h>
+#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
- ]
+
int
main ()
{
-[xmlCheckVersion (0); xmlFree ((void *) 0);]
+xmlCheckVersion (0); xmlFree ((void *) 0);
;
return 0;
}
@@ -40590,13 +40590,13 @@ rm -f core conftest.err conftest.$ac_obj
CPPFLAGS="$CPPFLAGS $INCXML2"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-[#include <libxml/xmlversion.h>
+#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
- ]
+
int
main ()
{
-[xmlCheckVersion (0); xmlFree ((void *) 0);]
+xmlCheckVersion (0); xmlFree ((void *) 0);
;
return 0;
}
@@ -40746,13 +40746,13 @@ rm -f conftest.err conftest.i conftest.$
CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-[#include <libxml/xmlversion.h>
+#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
- ]
+
int
main ()
{
-[xmlCheckVersion (0); xmlFree ((void *) 0);]
+xmlCheckVersion (0); xmlFree ((void *) 0);
;
return 0;
}
Index: gettext-0.18.2.1/gettext-tools/gnulib-m4/libxml.m4
===================================================================
--- gettext-0.18.2.1.orig/gettext-tools/gnulib-m4/libxml.m4
+++ gettext-0.18.2.1/gettext-tools/gnulib-m4/libxml.m4
@@ -42,10 +42,10 @@ AC_DEFUN([gl_LIBXML],
dnl -Wl,--disable-auto-import.
AC_LIB_LINKFLAGS_BODY([xml2])
LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV"
- AC_TRY_LINK([[#include <libxml/xmlversion.h>
+ AC_TRY_LINK([#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
- ]],
- [[xmlCheckVersion (0); xmlFree ((void *) 0);]],
+ ],
+ [xmlCheckVersion (0); xmlFree ((void *) 0);],
[gl_cv_libxml=yes
gl_cv_LIBXML="$LIBXML2 $LIBICONV"
gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
@@ -53,10 +53,10 @@ AC_DEFUN([gl_LIBXML],
if test "$gl_cv_libxml" != yes; then
gl_save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $INCXML2"
- AC_TRY_LINK([[#include <libxml/xmlversion.h>
+ AC_TRY_LINK([#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
- ]],
- [[xmlCheckVersion (0); xmlFree ((void *) 0);]],
+ ],
+ [xmlCheckVersion (0); xmlFree ((void *) 0);],
[gl_cv_libxml=yes
gl_cv_LIBXML="$LIBXML2 $LIBICONV"
gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
@@ -80,10 +80,10 @@ AC_DEFUN([gl_LIBXML],
fi
if test -n "$libxml2_include_dir" && test -d "$libxml2_include_dir"; then
CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir"
- AC_TRY_LINK([[#include <libxml/xmlversion.h>
+ AC_TRY_LINK([#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
- ]],
- [[xmlCheckVersion (0); xmlFree ((void *) 0);]],
+ ],
+ [xmlCheckVersion (0); xmlFree ((void *) 0);],
[gl_cv_libxml=yes
gl_cv_LIBXML="$LIBXML2 $LIBICONV"
gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"