CVS: rdesktop configure,1.30,1.31
Michael Gernoth <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14509
Modified Files:
configure
Log Message:
configure-test for NEED_ALIGNMENT
Index: configure
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/configure,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** configure 9 Mar 2004 22:50:16 -0000 1.30
--- configure 27 Apr 2004 09:13:50 -0000 1.31
***************
*** 297,300 ****
--- 297,324 ----
# Platform-specific options
+ cat >conftest.$$.c << EOF
+ #include <stdlib.h>
+ #include <signal.h>
+ int main(int argc, char **argv)
+ {
+ unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
+ signal(SIGBUS, exit);
+ signal(SIGABRT, exit);
+ signal(SIGSEGV, exit);
+ if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
+ return 1;
+ }
+ return 0;
+ }
+ EOF
+ $cc -o conftest.$$ conftest.$$.c
+ need_alignment=yes
+ ./conftest.$$ && need_alignment=no
+ if [ "$need_alignment" = "yes" ]; then
+ echo "Architecture needs alignment"
+ echo
+ cflags="$cflags -DNEED_ALIGNMENT"
+ fi
+ rm conftest.$$ conftest.$$.c
# strip leading colon from rpath
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297