summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-06 01:51:05 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-06 01:51:05 +0000
commitb289e20f9795ebad2eafa9e06a70250fc833cb9a (patch)
tree9eee53277f4e6d0497ebaeb85502b53ac6d4ddec /media-libs/urt
parentNew version. (diff)
downloadgentoo-2-b289e20f9795ebad2eafa9e06a70250fc833cb9a.tar.gz
gentoo-2-b289e20f9795ebad2eafa9e06a70250fc833cb9a.tar.bz2
gentoo-2-b289e20f9795ebad2eafa9e06a70250fc833cb9a.zip
check to see if we need -L/usr/X11R6/lib like some systems do (Darwin for example) #107428
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'media-libs/urt')
-rw-r--r--media-libs/urt/files/gentoo-config9
1 files changed, 9 insertions, 0 deletions
diff --git a/media-libs/urt/files/gentoo-config b/media-libs/urt/files/gentoo-config
index 1680f11fcc25..a2d9ec3faf2f 100644
--- a/media-libs/urt/files/gentoo-config
+++ b/media-libs/urt/files/gentoo-config
@@ -41,3 +41,12 @@ INCTIFF =
LIBTIFF = -ltiff
INCX11 =
LIBX11 = -lX11
+
+# Most people have migrated X11 to /usr/lib, but just in case ...
+check_x11=$(shell \
+ echo 'int main(){}' > test.c ; \
+ if ! $(CC) test.c -lX11 -o .urt-x11-test 2>/dev/null ; then \
+ echo "-L/usr/X11R6/lib" ; \
+ fi ; \
+ rm -f .urt-x11-test test.c)
+LIBX11 += $(call check_x11)