]> git.pld-linux.org Git - packages/xchat-gnome.git/commitdiff
- fix perl detection in configure
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 15 Sep 2014 20:56:57 +0000 (22:56 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 15 Sep 2014 20:56:57 +0000 (22:56 +0200)
perl-detect.patch [new file with mode: 0644]
xchat-gnome.spec

diff --git a/perl-detect.patch b/perl-detect.patch
new file mode 100644 (file)
index 0000000..2d5f262
--- /dev/null
@@ -0,0 +1,11 @@
+--- xchat-gnome-0.26.1/configure.ac~   2009-04-12 15:49:32.000000000 +0200
++++ xchat-gnome-0.26.1/configure.ac    2014-09-15 22:56:20.000621295 +0200
+@@ -173,7 +173,7 @@
+ if test "x$have_perl" != "xno"; then
+       AC_MSG_CHECKING(for Perl header files)
+-      PERL_HEADER_TEST=`PT=perltest.c ; echo "#include <EXTERN.h>" > $PT;  echo "#include <perl.h>" >> $PT;  echo "#include <XSUB.h>" >> $PT ;  echo "int main() { return 0; }" >> $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
++      PERL_HEADER_TEST=`PT=perltest.c ; echo "#include <EXTERN.h>" > $PT;  echo "#include <perl.h>" >> $PT;  echo "#include <XSUB.h>" >> $PT ;  echo "int main() { return 0; }" >> $PT ; $CC -c -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
+       if test "x$PERL_HEADER_TEST" = "x0" ; then
+               PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
index 756547a82e0af7f93451fb11ba7400e8cb833301..f41a0152f07ba27a6f7d8eaff9287c222442f82a 100644 (file)
@@ -12,6 +12,7 @@ Source0:      http://ftp.gnome.org/pub/GNOME/sources/xchat-gnome/0.26/%{name}-%{versi
 Patch0:                %{name}-long-delimiter.patch
 Patch1:                %{name}-notify.patch
 Patch2:                %{name}-makefile.patch
+Patch3:                perl-detect.patch
 URL:           http://xchat-gnome.navi.cx/
 BuildRequires: GConf2-devel >= 2.24.0
 BuildRequires: autoconf >= 2.60
@@ -83,6 +84,7 @@ Wtyczka dodająca do XChata możliwość uruchamiania skryptów w Pythonie.
 %patch0 -p1
 %patch1        -p1
 %patch2        -p1
+%patch3        -p1
 
 %build
 %{__libtoolize}
This page took 0.295273 seconds and 4 git commands to generate.