develooper Front page | perl.perl5.porters | Postings from December 2004

[PATCH] Allow Configure's d_attribut to be set from the command line

Thread Next
From:
Gisle Aas
Date:
December 30, 2004 03:39
Subject:
[PATCH] Allow Configure's d_attribut to be set from the command line
Message ID:
lrllbgypzb.fsf@caliper.activestate.com
This is a trivial patch that we applied to ActivePerl because we build
ActivePerl for HP-UX with './Configure -Dd_attribut=undef ...'.  The
reason we disable __attribute__ is that it allows perl to be compiled
with gcc while still allowing extensions be compiled with HP's own
compiler.

Regards,
Gisle


diff -ru perl-5.8.x/Configure /home/gisle/activeperl-gecko/src/Core/Configure
--- perl-5.8.x/Configure	2004-09-10 08:46:02.000000000 +0200
+++ /home/gisle/activeperl-gecko/src/Core/Configure	2004-11-01 22:25:06.000000000 +0100
@@ -9855,6 +9855,8 @@
 eval $inlibc
 
 : Look for GNU-cc style attribute checking
+case "$d_attribut" in
+'')
 echo " "
 echo "Checking whether your compiler can handle __attribute__ ..." >&4
 $cat >attrib.c <<'EOCP'
@@ -9873,6 +9875,9 @@
 	echo "Your C compiler doesn't seem to understand __attribute__ at all."
 	val="$undef"
 fi
+;;
+*) val="$d_attribut" ;;
+esac
 set d_attribut
 eval $setvar
 $rm -f attrib*

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About