fdo#71000: Fix SOLARIS-INTEL case

Thanks to Dagobert Michelsen for noticing.

Change-Id: Ife333e74c145ad71c451cb60ba9a8ee4222a2183
(cherry picked from commit 94b2fe9b00c28e12bbd98ade8c5a31179c290da0)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
READELF needs to be defined for unix such as SOLARIS

Change-Id: I749fa8a19e00957a3f83f41e029687b435a3a903
Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit ee49e52c66c18b50d2e92105e75e10e69fe04bf8)
cleanup improper SOLARIS linker libs and options

and, most importantly, forget MOTIF!

Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 7970fa513006af45994122a0ec42486e7b32cbe6)

Conflicts:
	extensions/source/plugin/inc/plugin/unx/plugcon.hxx

Change-Id: I0230932618b396ec4d5bf7638a13e5a80a4fada0
SOLARIS can use/should use posix_madvise under certain conditions.

Change-Id: Idc40752b4beee932b5912e6df9fe6acb15571201
Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 92c5bc7d6bc9dec429114a0f72f6f5989d70f731)
improve SOLARIS guard

Change-Id: Ic5edb7c0977b6c589329cd80616aa320d6cc929b
Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 5f35b74bb1367a07b1f2d85c6665b31c906b9538)
Do as for Linux, borrowed from Gabriele Bulfon <gabriele.bulfon at sonicle.com>

Change-Id: Id15c4b355591678023ae97b1183f8f3a01823084
Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit a395a395e52af67e943eaa80fc003954fe44efae)
update solaris directories being referenced
also borrowed from  Gabriele Bulfon <gabriele.bulfon at sonicle.com>

Change-Id: I17787fbbf12f1bc8b3e78b8dd2e8b33679bab5b1
Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 457105c7d9ede7a4d73d69d1c87306e88d57c0ac)
O_RDWR and O_CREAT are defined in fcntl.h

Change-Id: I568ee2c3f103777720f6c39340a5915b10aeebb4
Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 88a40e70fe921680ed303b8ab69ca866ae67078e)