Fix symlinking of libraries in /lib on non-Linux systems

Makefiles were explicitly looking for a libraries suffixed with the full
libtool versioning, such as "libglapi.so.0.0.0". However, on some
systems, libtool only uses a shorter name, such as "libglapi.so.0".

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63269
ERESTART doesn't exist on *BSD; use EINTR instead
Use libdevq where libudev is required on Linux
Add missing -I$(top_srcdir)/include/EGL to EGL
gallivm: Fix build with LLVM >= 3.4 r181680.

Tested-by: Laurent Carlier <lordheavym@gmail.com>
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
gallivm: Remove llvm::DisablePrettyStackTrace for LLVM >= 3.4.

LLVM 3.4 r193971 removed llvm::DisablePrettyStackTrace and made the
pretty stack trace opt-in rather than opt-out.

The default value of DisablePrettyStackTrace has changed to true in LLVM
3.4 and newer.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60929
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
r600g: Add $(DEFINES) to AM_CXXFLAGS

This way llvm_wrapper.cpp is compiled with -DHAVE_LLVM=0x....
radeon/llvm: Fix build with LLVM 3.3
radeon/llvm: remove uneeded inclusion

The include isn't needed and the file has moved with LLVM master.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Fix build with LLVM 3.3

Solution taken here:
  https://bugs.freedesktop.org/show_bug.cgi?id=66847