Fix libGL.a check on configure

Anderson Lizardo andersonlizardo at yahoo.com.br
Tue Jun 28 15:22:57 CDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexandre Julliard wrote:
> Anderson Lizardo <andersonlizardo at yahoo.com.br> writes:
>>Fixed the libGL.a configure check for systems where
>>/usr/X11R6/lib/libGL.so is a symbolic link.
>>
>>
>>PS.: I've not used a simple "test -e" because
>>http://www.winehq.org/hypermail/wine-patches/2002/01/0206.html says this
>>does not work on Solaris.
> 
> 
> My guess is that if test -e doesn't work, test -L won't work either...

What about the attached patch? It uses "ls" instead of "test" to test
for file presence (assuming ls returns non-zero code on a non-present
file, which is true for a POSIX compliant system).

Snippet:

- -        if test -f /usr/X11R6/lib/libGL.a -a ! -f
/usr/X11R6/lib/libGL.so -a ! -f /usr/X11R6/lib/libGL.dylib
+        if ls /usr/X11R6/lib/libGL.a >/dev/null 2>&1 -a \
+         ! ls /usr/X11R6/lib/libGL.so >/dev/null 2>&1 -a \
+         ! ls /usr/X11R6/lib/libGL.dylib >/dev/null 2>&1

Best regards,
- --
Anderson Lizardo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCwbGhtyCO/xz4QpMRAoVBAJ9Iqt0dhdAiTEofYLDc3IlbPpChwQCfWKMx
eYoJmCPW8QIwyodJqGfP3fU=
=YEd8
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-cvs-fix_libgl_check.patch
Type: text/x-patch
Size: 1642 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050628/354ef86b/wine-cvs-fix_libgl_check.bin


More information about the wine-devel mailing list